mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-07 11:59:09 +00:00
more dbg_value adjustments so debug info doesn't affect codegen
llvm-svn: 105454
This commit is contained in:
parent
f83cdf3d18
commit
b9367dadcf
@ -1291,7 +1291,7 @@ static bool IsSafeAndProfitableToMove(bool isLd, unsigned Base,
|
||||
// some day.
|
||||
SmallSet<unsigned, 4> AddedRegPressure;
|
||||
while (++I != E) {
|
||||
if (MemOps.count(&*I))
|
||||
if (I->isDebugValue() || MemOps.count(&*I))
|
||||
continue;
|
||||
const TargetInstrDesc &TID = I->getDesc();
|
||||
if (TID.isCall() || TID.isTerminator() || TID.hasUnmodeledSideEffects())
|
||||
@ -1574,7 +1574,9 @@ ARMPreAllocLoadStoreOpt::RescheduleLoadStoreInstrs(MachineBasicBlock *MBB) {
|
||||
break;
|
||||
}
|
||||
|
||||
MI2LocMap[MI] = Loc++;
|
||||
if (!MI->isDebugValue())
|
||||
MI2LocMap[MI] = ++Loc;
|
||||
|
||||
if (!isMemoryOp(MI))
|
||||
continue;
|
||||
unsigned PredReg = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user