implement unconditional branches, fixing UnitTests/2003-05-02-DependentPHI.c

llvm-svn: 23034
This commit is contained in:
Chris Lattner 2005-08-25 00:29:58 +00:00
parent 4ae278a760
commit 66a6a13225
1 changed files with 4 additions and 1 deletions

View File

@ -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));