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:
parent
d3e583b2e1
commit
20bb8bfd45
@ -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::
|
||||
|
@ -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::
|
||||
|
Loading…
Reference in New Issue
Block a user