summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-06-15 00:41:09 +0000
committerJim Grosbach <grosbach@apple.com>2010-06-15 00:41:09 +0000
commitf14e08b01b3468f230ea2ea613c0f281238b74fd (patch)
treeb16692a2966e343f0c376ef8916c75b1460b70f7 /llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
parentc7ed7ea390d03bb02c2f03a651b42781af2fa43a (diff)
downloadbcm5719-llvm-f14e08b01b3468f230ea2ea613c0f281238b74fd.tar.gz
bcm5719-llvm-f14e08b01b3468f230ea2ea613c0f281238b74fd.zip
Make sure to skip dbg_value instructions when finding an insertion point for
the combined load/store instruction. rdar://7797940 llvm-svn: 105982
Diffstat (limited to 'llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp')
-rw-r--r--llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
index ab69f1e365f..2840e0e57da 100644
--- a/llvm/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud