projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13d8285
)
Add function live-ins to entry block live-in set.
author
Evan Cheng
<evan.cheng@apple.com>
Sat, 10 Feb 2007 02:43:39 +0000
(
02:43
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Sat, 10 Feb 2007 02:43:39 +0000
(
02:43
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34112
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 3b7fb6b58f619a1ec4b1859424035b59df9b453c..ae7a495bf48665b2e89c5d54fe3c702b7aa7ae63 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@
-3891,6
+3891,14
@@
bool SelectionDAGISel::runOnFunction(Function &Fn) {
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;
}