From: Chris Lattner Date: Sat, 21 Oct 2006 05:42:09 +0000 (+0000) Subject: Simplify code, no functionality change X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=879d09cf130f3760a08865913c04d9ff328fad5f;p=oota-llvm.git Simplify code, no functionality change git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31097 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp index 941229dc386..76cb7ed5694 100644 --- a/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/lib/Target/PowerPC/PPCInstrInfo.cpp @@ -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:: diff --git a/lib/Target/X86/X86InstrInfo.cpp b/lib/Target/X86/X86InstrInfo.cpp index 0cc4c39cfb5..29cda248acf 100644 --- a/lib/Target/X86/X86InstrInfo.cpp +++ b/lib/Target/X86/X86InstrInfo.cpp @@ -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::