Simplify code, no functionality change
authorChris Lattner <sabre@nondot.org>
Sat, 21 Oct 2006 05:42:09 +0000 (05:42 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 21 Oct 2006 05:42:09 +0000 (05:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31097 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/X86/X86InstrInfo.cpp

index 941229dc386d10685cb12cbaab5f421be3725a4c..76cb7ed56946fe8c9d4925c3b8b3696bf9ed419e 100644 (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::
index 0cc4c39cfb51506dc53aa924e5ca96584c9df089..29cda248acf11f1b9763b03c631900a7f725ea9b 100644 (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::