mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Add a DebugLoc argument to TargetInstrInfo::copyRegToReg, so that it
doesn't have to guess. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@103194 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -607,7 +607,8 @@ StackSlotColoring::UnfoldAndRewriteInstruction(MachineInstr *MI, int OldFI,
|
||||
DEBUG(MI->dump());
|
||||
++NumLoadElim;
|
||||
} else {
|
||||
TII->copyRegToReg(*MBB, MI, DstReg, Reg, RC, RC);
|
||||
TII->copyRegToReg(*MBB, MI, DstReg, Reg, RC, RC,
|
||||
MI->getDebugLoc());
|
||||
++NumRegRepl;
|
||||
}
|
||||
|
||||
@@ -623,7 +624,8 @@ StackSlotColoring::UnfoldAndRewriteInstruction(MachineInstr *MI, int OldFI,
|
||||
DEBUG(MI->dump());
|
||||
++NumStoreElim;
|
||||
} else {
|
||||
TII->copyRegToReg(*MBB, MI, Reg, SrcReg, RC, RC);
|
||||
TII->copyRegToReg(*MBB, MI, Reg, SrcReg, RC, RC,
|
||||
MI->getDebugLoc());
|
||||
++NumRegRepl;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user