[llvm-commits] [llvm] r105982 - /llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Jim Grosbach
grosbach at apple.com
Mon Jun 14 17:41:09 PDT 2010
Author: grosbach
Date: Mon Jun 14 19:41:09 2010
New Revision: 105982
URL: http://llvm.org/viewvc/llvm-project?rev=105982&view=rev
Log:
Make sure to skip dbg_value instructions when finding an insertion point for
the combined load/store instruction. rdar://7797940
Modified:
llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp?rev=105982&r1=105981&r2=105982&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMLoadStoreOptimizer.cpp Mon Jun 14 19:41:09 2010
@@ -1491,7 +1491,8 @@
} 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
More information about the llvm-commits
mailing list