diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-06-15 00:41:09 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-06-15 00:41:09 +0000 |
commit | bb8a0a630475339df6375468255da8157e9c9e0b (patch) | |
tree | 2d52931ea1a495bd2dd1431db28acddbf5d22ff0 /lib | |
parent | f09e4732a29415bd93b07155b20dd6909a017794 (diff) | |
download | external_llvm-bb8a0a630475339df6375468255da8157e9c9e0b.zip external_llvm-bb8a0a630475339df6375468255da8157e9c9e0b.tar.gz external_llvm-bb8a0a630475339df6375468255da8157e9c9e0b.tar.bz2 |
Make sure to skip dbg_value instructions when finding an insertion point for
the combined load/store instruction. rdar://7797940
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/ARM/ARMLoadStoreOptimizer.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp index ab69f1e..2840e0e 100644 --- a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp +++ b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp @@ -1491,7 +1491,8 @@ bool ARMPreAllocLoadStoreOpt::RescheduleOps(MachineBasicBlock *MBB, } else { // This is the new location for the loads / stores. MachineBasicBlock::iterator InsertPos = isLd ? FirstOp : LastOp; - while (InsertPos != MBB->end() && MemOps.count(InsertPos)) + while (InsertPos != MBB->end() + && (MemOps.count(InsertPos) || InsertPos->isDebugValue())) ++InsertPos; // If we are moving a pair of loads / stores, see if it makes sense |