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:
Jakob Stoklund Olesen 2010-07-11 03:53:50 +00:00
parent e797e0c864
commit 4f8e771ae8

View File

@ -432,11 +432,9 @@ void FastISelMap::PrintFunctionDefinitions(raw_ostream &OS) {
for (unsigned i = 0; i < Memo.PhysRegs->size(); ++i) { for (unsigned i = 0; i < Memo.PhysRegs->size(); ++i) {
if ((*Memo.PhysRegs)[i] != "") if ((*Memo.PhysRegs)[i] != "")
OS << " TII.copyRegToReg(*FuncInfo.MBB, FuncInfo.InsertPt, " OS << " BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, "
<< (*Memo.PhysRegs)[i] << ", Op" << i << ", " << "TII.get(TargetOpcode::COPY), "
<< "TM.getRegisterInfo()->getPhysicalRegisterRegClass(" << (*Memo.PhysRegs)[i] << ").addReg(Op" << i << ");\n";
<< (*Memo.PhysRegs)[i] << "), "
<< "MRI.getRegClass(Op" << i << "), DL);\n";
} }
OS << " return FastEmitInst_"; OS << " return FastEmitInst_";
@ -526,11 +524,9 @@ void FastISelMap::PrintFunctionDefinitions(raw_ostream &OS) {
for (unsigned i = 0; i < Memo.PhysRegs->size(); ++i) { for (unsigned i = 0; i < Memo.PhysRegs->size(); ++i) {
if ((*Memo.PhysRegs)[i] != "") if ((*Memo.PhysRegs)[i] != "")
OS << " TII.copyRegToReg(*FuncInfo.MBB, FuncInfo.InsertPt, " OS << " BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, "
<< (*Memo.PhysRegs)[i] << ", Op" << i << ", " << "TII.get(TargetOpcode::COPY), "
<< "TM.getRegisterInfo()->getPhysicalRegisterRegClass(" << (*Memo.PhysRegs)[i] << ").addReg(Op" << i << ");\n";
<< (*Memo.PhysRegs)[i] << "), "
<< "MRI.getRegClass(Op" << i << "), DL);\n";
} }
OS << " return FastEmitInst_"; OS << " return FastEmitInst_";