mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-13 14:46:53 +00:00
Replace copyRegToReg with COPY in FastISelEmitter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108071 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e797e0c864
commit
4f8e771ae8
@ -432,11 +432,9 @@ void FastISelMap::PrintFunctionDefinitions(raw_ostream &OS) {
|
||||
|
||||
for (unsigned i = 0; i < Memo.PhysRegs->size(); ++i) {
|
||||
if ((*Memo.PhysRegs)[i] != "")
|
||||
OS << " TII.copyRegToReg(*FuncInfo.MBB, FuncInfo.InsertPt, "
|
||||
<< (*Memo.PhysRegs)[i] << ", Op" << i << ", "
|
||||
<< "TM.getRegisterInfo()->getPhysicalRegisterRegClass("
|
||||
<< (*Memo.PhysRegs)[i] << "), "
|
||||
<< "MRI.getRegClass(Op" << i << "), DL);\n";
|
||||
OS << " BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, "
|
||||
<< "TII.get(TargetOpcode::COPY), "
|
||||
<< (*Memo.PhysRegs)[i] << ").addReg(Op" << i << ");\n";
|
||||
}
|
||||
|
||||
OS << " return FastEmitInst_";
|
||||
@ -524,14 +522,12 @@ void FastISelMap::PrintFunctionDefinitions(raw_ostream &OS) {
|
||||
HasPred = true;
|
||||
}
|
||||
|
||||
for (unsigned i = 0; i < Memo.PhysRegs->size(); ++i) {
|
||||
if ((*Memo.PhysRegs)[i] != "")
|
||||
OS << " TII.copyRegToReg(*FuncInfo.MBB, FuncInfo.InsertPt, "
|
||||
<< (*Memo.PhysRegs)[i] << ", Op" << i << ", "
|
||||
<< "TM.getRegisterInfo()->getPhysicalRegisterRegClass("
|
||||
<< (*Memo.PhysRegs)[i] << "), "
|
||||
<< "MRI.getRegClass(Op" << i << "), DL);\n";
|
||||
}
|
||||
for (unsigned i = 0; i < Memo.PhysRegs->size(); ++i) {
|
||||
if ((*Memo.PhysRegs)[i] != "")
|
||||
OS << " BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, "
|
||||
<< "TII.get(TargetOpcode::COPY), "
|
||||
<< (*Memo.PhysRegs)[i] << ").addReg(Op" << i << ");\n";
|
||||
}
|
||||
|
||||
OS << " return FastEmitInst_";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user