summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2006-08-25 23:29:06 +0000
committerEvan Cheng <evan.cheng@apple.com>2006-08-25 23:29:06 +0000
commit1822ffbab7b2d9051ff57c0d8d7b9c1c2c086e2b (patch)
treeb13536a9c54404d650df017676b3bf576448ffd2
parent08ede262a744f99429658fadb43662441bdcb42d (diff)
downloadllvm-1822ffbab7b2d9051ff57c0d8d7b9c1c2c086e2b.tar.gz
llvm-1822ffbab7b2d9051ff57c0d8d7b9c1c2c086e2b.tar.bz2
llvm-1822ffbab7b2d9051ff57c0d8d7b9c1c2c086e2b.tar.xz
Add a comment.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29889 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/PowerPC/PPCBranchSelector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCBranchSelector.cpp b/lib/Target/PowerPC/PPCBranchSelector.cpp
index 78932a9a76..08c39311fe 100644
--- a/lib/Target/PowerPC/PPCBranchSelector.cpp
+++ b/lib/Target/PowerPC/PPCBranchSelector.cpp
@@ -133,6 +133,7 @@ bool PPCBSel::runOnMachineFunction(MachineFunction &Fn) {
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);
}