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 | d881660366bc0fc714f1d4d6e4f12530ecd99eb7 (patch) | |
tree | bf2909d63613429ea6fd48e2018e96285c315771 /llvm/lib | |
parent | 94e04442eb7faf291dedc294308ed3eb6b6ac4c5 (diff) | |
download | bcm5719-llvm-d881660366bc0fc714f1d4d6e4f12530ecd99eb7.tar.gz bcm5719-llvm-d881660366bc0fc714f1d4d6e4f12530ecd99eb7.zip |
Simplify code, no functionality change
llvm-svn: 31097
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCInstrInfo.cpp | 6 | ||||
-rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp b/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp index 941229dc386..76cb7ed5694 100644 --- a/llvm/lib/Target/PowerPC/PPCInstrInfo.cpp +++ b/llvm/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/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 0cc4c39cfb5..29cda248acf 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/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:: |