summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-25 00:29:58 +0000
committerChris Lattner <sabre@nondot.org>2005-08-25 00:29:58 +0000
commit66a6a132254e330d6976b37e365ee5294c16ea09 (patch)
tree513015aa8124503b1217c5d7ee10fbc55eb33bf7 /llvm/lib
parent4ae278a760410e7dddfa3c585dc1bb7b1a3cc851 (diff)
downloadbcm5719-llvm-66a6a132254e330d6976b37e365ee5294c16ea09.tar.gz
bcm5719-llvm-66a6a132254e330d6976b37e365ee5294c16ea09.zip
implement unconditional branches, fixing UnitTests/2003-05-02-DependentPHI.c
llvm-svn: 23034
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
index d11a21abaa1..aaf2bba2ad4 100644
--- a/llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
+++ b/llvm/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));
OpenPOWER on IntegriCloud