diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-21 05:42:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-21 05:42:09 +0000 |
commit | 879d09cf130f3760a08865913c04d9ff328fad5f (patch) | |
tree | 21e531e42496e81ae816b8bbcc689d61068094b4 | |
parent | 54108068b71a7dbc48f4ebf1b2d7d87ca541070a (diff) |
Simplify code, no functionality change
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31097 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCInstrInfo.cpp | 6 | ||||
-rw-r--r-- | lib/Target/X86/X86InstrInfo.cpp | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/lib/Target/PowerPC/PPCInstrInfo.cpp b/lib/Target/PowerPC/PPCInstrInfo.cpp index 941229dc38..76cb7ed569 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 0cc4c39cfb..29cda248ac 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:: |