summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-11-16 03:33:08 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-11-16 03:33:08 +0000
commit59f8156ea0a45a63f6d2e483081d483ce3f60e6a (patch)
tree1423b17fe088bfcd61732173ff48b50c7b529f80 /llvm/lib/CodeGen
parent9ddd69a8bc46a2ccf9373c88b203aed2828200fd (diff)
downloadbcm5719-llvm-59f8156ea0a45a63f6d2e483081d483ce3f60e6a.tar.gz
bcm5719-llvm-59f8156ea0a45a63f6d2e483081d483ce3f60e6a.zip
RescheduleKillAboveMI() must backtrack to before the rescheduled DBG_VALUE instructions. rdar://10451185
llvm-svn: 144771
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index 2e5111dee56..3e9a0e44e93 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -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) {
OpenPOWER on IntegriCloud