projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08ede26
)
Add a comment.
author
Evan Cheng
<evan.cheng@apple.com>
Fri, 25 Aug 2006 23:29:06 +0000
(23:29 +0000)
committer
Evan Cheng
<evan.cheng@apple.com>
Fri, 25 Aug 2006 23:29:06 +0000
(23:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29889
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCBranchSelector.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCBranchSelector.cpp
b/lib/Target/PowerPC/PPCBranchSelector.cpp
index 78932a9a766e510d0f3e80fc2626bb8a35b1abcd..08c39311fed44e9bffc820bd4cf87aa4e4dd838e 100644
(file)
--- 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);
}