mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 15:17:25 +00:00
Convert SelectionDAG::MorphNodeTo to use ArrayRef.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -488,7 +488,8 @@ static SDValue performANDCombine(SDNode *N, SelectionDAG &DAG,
|
||||
Log2 == ExtendTySize) {
|
||||
SDValue Ops[] = { Op0->getOperand(0), Op0->getOperand(1), Op0Op2 };
|
||||
DAG.MorphNodeTo(Op0.getNode(), MipsISD::VEXTRACT_ZEXT_ELT,
|
||||
Op0->getVTList(), Ops, Op0->getNumOperands());
|
||||
Op0->getVTList(),
|
||||
ArrayRef<SDValue>(Ops, Op0->getNumOperands()));
|
||||
return Op0;
|
||||
}
|
||||
}
|
||||
@@ -832,7 +833,8 @@ static SDValue performSRACombine(SDNode *N, SelectionDAG &DAG,
|
||||
SDValue Ops[] = { Op0Op0->getOperand(0), Op0Op0->getOperand(1),
|
||||
Op0Op0->getOperand(2) };
|
||||
DAG.MorphNodeTo(Op0Op0.getNode(), MipsISD::VEXTRACT_SEXT_ELT,
|
||||
Op0Op0->getVTList(), Ops, Op0Op0->getNumOperands());
|
||||
Op0Op0->getVTList(),
|
||||
ArrayRef<SDValue>(Ops, Op0Op0->getNumOperands()));
|
||||
return Op0Op0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -751,7 +751,7 @@ SDValue SITargetLowering::LowerBRCOND(SDValue BRCOND,
|
||||
BR->getOperand(0),
|
||||
BRCOND.getOperand(2)
|
||||
};
|
||||
DAG.MorphNodeTo(BR, ISD::BR, BR->getVTList(), Ops, 2);
|
||||
DAG.MorphNodeTo(BR, ISD::BR, BR->getVTList(), Ops);
|
||||
}
|
||||
|
||||
SDValue Chain = SDValue(Result, Result->getNumValues() - 1);
|
||||
|
||||
Reference in New Issue
Block a user