mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 01:14:12 +00:00
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
This commit is contained in:
parent
fdf8366ecc
commit
89532c7db0
@ -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
Block a user