mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Instruction selection optimizations may have moved the def of a function argument out of the entry block. rdar://7937489
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102993 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a0161cd6f8
commit
f1ced259b5
@ -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