summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-04-14 17:13:16 +0000
committerDan Gohman <gohman@apple.com>2010-04-14 17:13:16 +0000
commit5dc44335b19dde981e4ad69ab7a650269460ed3c (patch)
tree0bc6bb5653558619cf39e51d1a94af281f589aa9
parent0e026729aef35523e4f8d6124a569dceb4286bbb (diff)
downloadllvm-5dc44335b19dde981e4ad69ab7a650269460ed3c.tar.gz
llvm-5dc44335b19dde981e4ad69ab7a650269460ed3c.tar.bz2
llvm-5dc44335b19dde981e4ad69ab7a650269460ed3c.tar.xz
Clear the FunctionLoweringInfo object before doing other things that
don't need it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101262 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 1438fe2b5d..4682c294b9 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/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;
}