mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-23 19:17:17 +00:00
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
This commit is contained in:
parent
9342f4f352
commit
400c95fe38
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user