commit | 2bee6a8bb74724263eadd550ee76417d6e6465a9 | [log] [tgz] |
---|---|---|
author | Evan Cheng <evan.cheng@apple.com> | Wed Nov 16 03:33:08 2011 +0000 |
committer | Evan Cheng <evan.cheng@apple.com> | Wed Nov 16 03:33:08 2011 +0000 |
tree | a091f53698eb8a4697ec20bf2e6a92740fc50da0 | |
parent | ae7db7af44c9155092d4b80cb4d5d333469f4320 [diff] [blame] |
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
diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index 2e5111d..3e9a0e4 100644 --- a/lib/CodeGen/TwoAddressInstructionPass.cpp +++ b/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -1158,7 +1158,7 @@ --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) {