forked from OSchip/llvm-project
Replace copyRegToReg with COPY in FastISelEmitter.
llvm-svn: 108071
This commit is contained in:
parent
7147ab9e78
commit
4a52e2f6a7
|
@ -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_";
|
||||
|
@ -526,11 +524,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_";
|
||||
|
|
Loading…
Reference in New Issue