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

Evan Cheng evan.cheng at apple.com
Fri Aug 25 16:29:20 PDT 2006



Changes in directory llvm/lib/Target/PowerPC:

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

Add a comment.

---
Diffs of the changes:  (+1 -0)

 PPCBranchSelector.cpp |    1 +
 1 files changed, 1 insertion(+)


Index: llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
diff -u llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.26 llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.27
--- llvm/lib/Target/PowerPC/PPCBranchSelector.cpp:1.26	Fri Aug 25 16:54:44 2006
+++ llvm/lib/Target/PowerPC/PPCBranchSelector.cpp	Fri Aug 25 18:29:06 2006
@@ -133,6 +133,7 @@
         if (Displacement >= -32768 && Displacement <= 32767) {
           BuildMI(*MBB, MBBJ, Opcode, 2).addReg(CRReg).addMBB(trueMBB);
         } else {
+          // Long branch, skip next branch instruction (i.e. $PC+8).
           BuildMI(*MBB, MBBJ, Inverted, 2).addReg(CRReg).addImm(2);
           BuildMI(*MBB, MBBJ, PPC::B, 1).addMBB(trueMBB);
         }






More information about the llvm-commits mailing list