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:
a0161cd
)
Instruction selection optimizations may have moved the def of a function argument...
author
Evan Cheng
<evan.cheng@apple.com>
Tue, 4 May 2010 00:58:39 +0000
(
00:58
+0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Tue, 4 May 2010 00:58:39 +0000
(
00:58
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102993
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 f48fdfc05ca642b6df508d9277b197f032bd1225..422cb7aaafc73a73f6eee06926db7f74f0733c26 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@
-227,7
+227,8
@@
bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
else {
MachineInstr *Def = RegInfo->getVRegDef(Reg);
MachineBasicBlock::iterator InsertPos = Def;
- EntryMBB->insert(llvm::next(InsertPos), MI);
+ // FIXME: VR def may not be in entry block.
+ Def->getParent()->insert(llvm::next(InsertPos), MI);
}
}