summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
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
commit1b200574ad032c29a2935e970bd9047bec5e17a7 (patch)
tree77465b01af57539869eac9593dbfd754d90b8a0d /llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
parentfb96c748743409669833b183b540e28e7a31a204 (diff)
downloadbcm5719-llvm-1b200574ad032c29a2935e970bd9047bec5e17a7.tar.gz
bcm5719-llvm-1b200574ad032c29a2935e970bd9047bec5e17a7.zip
Add a comment.
llvm-svn: 29889
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCBranchSelector.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PPCBranchSelector.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
index 78932a9a766..08c39311fed 100644
--- a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp
+++ b/llvm/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);
}
OpenPOWER on IntegriCloud