diff options
| author | Dan Gohman <gohman@apple.com> | 2010-04-14 17:13:16 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2010-04-14 17:13:16 +0000 |
| commit | 094fc7b09e06fdcf115f4d92cad671ad3eb1c4ea (patch) | |
| tree | e653ca8e2efbd5e7546c05f369c717b5e33e3105 /llvm/lib | |
| parent | ad0b3ea3ccd55a52b0289f63e1c19b226eb1a2bf (diff) | |
| download | bcm5719-llvm-094fc7b09e06fdcf115f4d92cad671ad3eb1c4ea.tar.gz bcm5719-llvm-094fc7b09e06fdcf115f4d92cad671ad3eb1c4ea.zip | |
Clear the FunctionLoweringInfo object before doing other things that
don't need it.
llvm-svn: 101262
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1438fe2b5d4..4682c294b98 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -216,15 +216,15 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) { SelectAllBasicBlocks(Fn, *MF, TII); + // Release function-specific state. SDB and CurDAG are already cleared + // at this point. + FuncInfo->clear(); + // If the first basic block in the function has live ins that need to be // copied into vregs, emit the copies into the top of the block before // emitting the code for the block. RegInfo->EmitLiveInCopies(MF->begin(), TRI, TII); - // Release function-specific state. SDB and CurDAG are already cleared - // at this point. - FuncInfo->clear(); - return true; } |

