[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp

Chris Lattner sabre at nondot.org
Fri Oct 20 22:42:24 PDT 2006



Changes in directory llvm/lib/Target/PowerPC:

PPCInstrInfo.cpp updated: 1.26 -> 1.27
---
Log message:

Simplify code, no functionality change


---
Diffs of the changes:  (+2 -4)

 PPCInstrInfo.cpp |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)


Index: llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
diff -u llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:1.26 llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:1.27
--- llvm/lib/Target/PowerPC/PPCInstrInfo.cpp:1.26	Sat Oct 21 00:36:13 2006
+++ llvm/lib/Target/PowerPC/PPCInstrInfo.cpp	Sat Oct 21 00:42:09 2006
@@ -253,12 +253,10 @@
     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::






More information about the llvm-commits mailing list