forked from OSchip/llvm-project
implement unconditional branches, fixing UnitTests/2003-05-02-DependentPHI.c
llvm-svn: 23034
This commit is contained in:
parent
4ae278a760
commit
66a6a13225
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue