From 1b200574ad032c29a2935e970bd9047bec5e17a7 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Fri, 25 Aug 2006 23:29:06 +0000 Subject: Add a comment. llvm-svn: 29889 --- llvm/lib/Target/PowerPC/PPCBranchSelector.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/Target/PowerPC/PPCBranchSelector.cpp') diff --git a/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp b/llvm/lib/Target/PowerPC/PPCBranchSelector.cpp index 78932a9..08c39311 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); } -- cgit v1.1