1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00

Simplify code, no functionality change

llvm-svn: 31097
This commit is contained in:
Chris Lattner 2006-10-21 05:42:09 +00:00
parent d3e583b2e1
commit 20bb8bfd45
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::