mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-26 12:20:42 +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:
@@ -210,7 +210,8 @@ void llvm::PHIElimination::LowerAtomicPHINode(
|
||||
} else {
|
||||
entry = IncomingReg = MF.getRegInfo().createVirtualRegister(RC);
|
||||
}
|
||||
TII->copyRegToReg(MBB, AfterPHIsIt, DestReg, IncomingReg, RC, RC);
|
||||
TII->copyRegToReg(MBB, AfterPHIsIt, DestReg, IncomingReg, RC, RC,
|
||||
MPhi->getDebugLoc());
|
||||
}
|
||||
|
||||
// Update live variable information if there is any.
|
||||
@@ -292,7 +293,8 @@ void llvm::PHIElimination::LowerAtomicPHINode(
|
||||
|
||||
// Insert the copy.
|
||||
if (!reusedIncoming && IncomingReg)
|
||||
TII->copyRegToReg(opBlock, InsertPos, IncomingReg, SrcReg, RC, RC);
|
||||
TII->copyRegToReg(opBlock, InsertPos, IncomingReg, SrcReg, RC, RC,
|
||||
MPhi->getDebugLoc());
|
||||
|
||||
// Now update live variable information if we have it. Otherwise we're done
|
||||
if (!LV) continue;
|
||||
|
||||
Reference in New Issue
Block a user