the combined load/store instruction. rdar://
7797940
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@105982
91177308-0d34-0410-b5e6-
96231b3b80d8
} 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