mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Replace copyRegToReg with COPY everywhere in lib/CodeGen except for FastISel.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108062 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -194,12 +194,9 @@ MachineRegisterInfo::EmitLiveInCopies(MachineBasicBlock *EntryMBB,
|
||||
--i; --e;
|
||||
} else {
|
||||
// Emit a copy.
|
||||
const TargetRegisterClass *RC = getRegClass(LiveIns[i].second);
|
||||
bool Emitted = TII.copyRegToReg(*EntryMBB, EntryMBB->begin(),
|
||||
LiveIns[i].second, LiveIns[i].first,
|
||||
RC, RC, DebugLoc());
|
||||
assert(Emitted && "Unable to issue a live-in copy instruction!\n");
|
||||
(void) Emitted;
|
||||
BuildMI(*EntryMBB, EntryMBB->begin(), DebugLoc(),
|
||||
TII.get(TargetOpcode::COPY), LiveIns[i].second)
|
||||
.addReg(LiveIns[i].first);
|
||||
|
||||
// Add the register to the entry block live-in set.
|
||||
EntryMBB->addLiveIn(LiveIns[i].first);
|
||||
|
||||
Reference in New Issue
Block a user