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:
fdf8366
)
implement unconditional branches, fixing UnitTests/2003-05-02-DependentPHI.c
author
Chris Lattner
<sabre@nondot.org>
Thu, 25 Aug 2005 00:29:58 +0000
(
00:29
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 25 Aug 2005 00:29:58 +0000
(
00:29
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23034
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index d11a21abaa1efbb2ce2db0dd52c7d4e341b74ae9..aaf2bba2ad4313affaf638f9cdc4dc5ad44003c5 100644
(file)
--- a/
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/
lib/Target/PowerPC/PPCISelDAGToDAG.cpp
@@
-1062,7
+1062,10
@@
SDOperand PPC32DAGToDAGISel::Select(SDOperand Op) {
CurDAG->SelectNodeTo(N, MVT::Other, PPC::BLR, Chain);
break;
}
-
+ case ISD::BR:
+ CurDAG->SelectNodeTo(N, MVT::Other, PPC::B, N->getOperand(1),
+ Select(N->getOperand(0)));
+ break;
case ISD::BR_CC:
case ISD::BRTWOWAY_CC: {
SDOperand Chain = Select(N->getOperand(0));