[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Evan Cheng
evan.cheng at apple.com
Fri Feb 9 18:43:55 PST 2007
Changes in directory llvm/lib/CodeGen/SelectionDAG:
SelectionDAGISel.cpp updated: 1.358 -> 1.359
---
Log message:
Add function live-ins to entry block live-in set.
---
Diffs of the changes: (+8 -0)
SelectionDAGISel.cpp | 8 ++++++++
1 files changed, 8 insertions(+)
Index: llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.358 llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.359
--- llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp:1.358 Fri Feb 9 19:08:18 2007
+++ llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Fri Feb 9 20:43:39 2007
@@ -3891,6 +3891,14 @@
for (Function::iterator I = Fn.begin(), E = Fn.end(); I != E; ++I)
SelectBasicBlock(I, MF, FuncInfo);
+ // Add function live-ins to entry block live-in set.
+ BasicBlock *EntryBB = &Fn.getEntryBlock();
+ BB = FuncInfo.MBBMap[EntryBB];
+ if (!MF.livein_empty())
+ for (MachineFunction::livein_iterator I = MF.livein_begin(),
+ E = MF.livein_end(); I != E; ++I)
+ BB->addLiveIn(I->first);
+
return true;
}
More information about the llvm-commits
mailing list