mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-24 13:18:17 +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:
@@ -51,7 +51,8 @@ void ScheduleDAG::EmitPhysRegCopy(SUnit *SU,
|
||||
}
|
||||
}
|
||||
bool Success = TII->copyRegToReg(*BB, InsertPos, Reg, VRI->second,
|
||||
SU->CopyDstRC, SU->CopySrcRC);
|
||||
SU->CopyDstRC, SU->CopySrcRC,
|
||||
DebugLoc());
|
||||
(void)Success;
|
||||
assert(Success && "copyRegToReg failed!");
|
||||
} else {
|
||||
@@ -62,7 +63,8 @@ void ScheduleDAG::EmitPhysRegCopy(SUnit *SU,
|
||||
isNew = isNew; // Silence compiler warning.
|
||||
assert(isNew && "Node emitted out of order - early");
|
||||
bool Success = TII->copyRegToReg(*BB, InsertPos, VRBase, I->getReg(),
|
||||
SU->CopyDstRC, SU->CopySrcRC);
|
||||
SU->CopyDstRC, SU->CopySrcRC,
|
||||
DebugLoc());
|
||||
(void)Success;
|
||||
assert(Success && "copyRegToReg failed!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user