mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-21 04:41:34 +00:00
Instruction selection optimizations may have moved the def of a function argument out of the entry block. rdar://7937489
llvm-svn: 102993
This commit is contained in:
parent
f34574dd89
commit
66ef3ff9c7
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user