diff options
author | Tim Northover <tnorthover@apple.com> | 2016-07-26 16:45:30 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2016-07-26 16:45:30 +0000 |
commit | 756eca35cfd6ec39f1dd579e048b41999f348a46 (patch) | |
tree | d0a7f17f5472699d4e2df5fedc7ff671e6a28fda /llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp | |
parent | cc5f76226bac405a09a62e3dadf29e275fdad7ea (diff) | |
download | bcm5719-llvm-756eca35cfd6ec39f1dd579e048b41999f348a46.tar.gz bcm5719-llvm-756eca35cfd6ec39f1dd579e048b41999f348a46.zip |
GlobalISel: add specialized buildCopy function to MachineInstrBuilder.
NFC.
llvm-svn: 276763
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp index e9e42b0102b..521bb795682 100644 --- a/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp +++ b/llvm/lib/CodeGen/GlobalISel/RegBankSelect.cpp @@ -126,7 +126,7 @@ void RegBankSelect::repairReg( "We are about to create several defs for Dst"); // Build the instruction used to repair, then clone it at the right places. - MachineInstr *MI = MIRBuilder.buildInstr(TargetOpcode::COPY, Dst, Src); + MachineInstr *MI = MIRBuilder.buildCopy(Dst, Src); MI->removeFromParent(); DEBUG(dbgs() << "Copy: " << PrintReg(Src) << " to: " << PrintReg(Dst) << '\n'); |