diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-10 22:42:59 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2010-07-10 22:42:59 +0000 |
commit | 0c76d6ec21a2ea55481300655bcf118c20795295 (patch) | |
tree | 4ce5b45cce15cf1224422992abaa373b8b629484 /llvm/lib/CodeGen/MachineRegisterInfo.cpp | |
parent | ad89613b650f8f043bfaa46eecc477809772623a (diff) | |
download | bcm5719-llvm-0c76d6ec21a2ea55481300655bcf118c20795295.tar.gz bcm5719-llvm-0c76d6ec21a2ea55481300655bcf118c20795295.zip |
Replace copyRegToReg with COPY everywhere in lib/CodeGen except for FastISel.
llvm-svn: 108062
Diffstat (limited to 'llvm/lib/CodeGen/MachineRegisterInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineRegisterInfo.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachineRegisterInfo.cpp b/llvm/lib/CodeGen/MachineRegisterInfo.cpp index 64a3753ab07..5d852f26bed 100644 --- a/llvm/lib/CodeGen/MachineRegisterInfo.cpp +++ b/llvm/lib/CodeGen/MachineRegisterInfo.cpp @@ -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); |