Simplify code, no functionality change

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31097 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-10-21 05:42:09 +00:00
parent 54108068b7
commit 879d09cf13
2 changed files with 4 additions and 8 deletions

View File

@ -253,12 +253,10 @@ void PPCInstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
return;
}
// Conditional branch
// Two-way Conditional Branch.
BuildMI(&MBB, PPC::COND_BRANCH, 3)
.addReg(Cond[0].getReg()).addImm(Cond[1].getImm()).addMBB(TBB);
if (FBB) // Two-way branch.
BuildMI(&MBB, PPC::B, 1).addMBB(FBB);
BuildMI(&MBB, PPC::B, 1).addMBB(FBB);
}
bool PPCInstrInfo::

View File

@ -389,12 +389,10 @@ void X86InstrInfo::InsertBranch(MachineBasicBlock &MBB, MachineBasicBlock *TBB,
return;
}
// Conditional branch.
// Two-way Conditional branch.
unsigned Opc = GetCondBranchFromCond((X86::CondCode)Cond[0].getImm());
BuildMI(&MBB, Opc, 1).addMBB(TBB);
if (FBB) // Two-way branch.
BuildMI(&MBB, X86::JMP, 1).addMBB(FBB);
BuildMI(&MBB, X86::JMP, 1).addMBB(FBB);
}
bool X86InstrInfo::