From: Chris Lattner Date: Thu, 25 Aug 2005 00:29:58 +0000 (+0000) Subject: implement unconditional branches, fixing UnitTests/2003-05-02-DependentPHI.c X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=89532c7db03543402dd5376172b87233575beb44;p=oota-llvm.git implement unconditional branches, fixing UnitTests/2003-05-02-DependentPHI.c git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23034 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/PowerPC/PPCISelDAGToDAG.cpp b/lib/Target/PowerPC/PPCISelDAGToDAG.cpp index d11a21abaa1..aaf2bba2ad4 100644 --- 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));