summaryrefslogtreecommitdiff
path: root/lib/CodeGen/TwoAddressInstructionPass.cpp
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
commit2bee6a8bb74724263eadd550ee76417d6e6465a9 (patch)
treea091f53698eb8a4697ec20bf2e6a92740fc50da0 /lib/CodeGen/TwoAddressInstructionPass.cpp
parentae7db7af44c9155092d4b80cb4d5d333469f4320 (diff)
downloadllvm-2bee6a8bb74724263eadd550ee76417d6e6465a9.tar.gz
llvm-2bee6a8bb74724263eadd550ee76417d6e6465a9.tar.bz2
llvm-2bee6a8bb74724263eadd550ee76417d6e6465a9.tar.xz
RescheduleKillAboveMI() must backtrack to before the rescheduled DBG_VALUE instructions. rdar://10451185
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TwoAddressInstructionPass.cpp')
-rw-r--r--lib/CodeGen/TwoAddressInstructionPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp
index 2e5111dee5..3e9a0e44e9 100644
--- a/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/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) {