diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2011-11-16 03:33:08 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2011-11-16 03:33:08 +0000 |
| commit | 59f8156ea0a45a63f6d2e483081d483ce3f60e6a (patch) | |
| tree | 1423b17fe088bfcd61732173ff48b50c7b529f80 /llvm/lib/CodeGen | |
| parent | 9ddd69a8bc46a2ccf9373c88b203aed2828200fd (diff) | |
| download | bcm5719-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.cpp | 2 |
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) { |

