1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

RescheduleKillAboveMI() must backtrack to before the rescheduled DBG_VALUE instructions. rdar://10451185

llvm-svn: 144771
This commit is contained in:
Evan Cheng 2011-11-16 03:33:08 +00:00
parent d756c3ec65
commit 27c17a65d1

View File

@ -1158,7 +1158,7 @@ TwoAddressInstructionPass::RescheduleKillAboveMI(MachineBasicBlock *MBB,
--From;
MBB->splice(InsertPos, MBB, From, To);
nmi = llvm::prior(mi); // Backtrack so we process the moved instruction.
nmi = llvm::prior(InsertPos); // Backtrack so we process the moved instr.
DistanceMap.erase(DI);
if (LV) {