@@ -9342,7 +9342,7 @@ X86TargetLowering::LowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG) const {
9342
9342
9343
9343
// See if we can use a vector load to get all of the elements.
9344
9344
{
9345
- SmallVector<SDValue, 64> Ops(Op->op_begin(), Op->op_begin() + NumElems);
9345
+ SmallVector<SDValue, 64> Ops(Op->ops().take_front( NumElems) );
9346
9346
if (SDValue LD =
9347
9347
EltsFromConsecutiveLoads(VT, Ops, dl, DAG, Subtarget, false))
9348
9348
return LD;
@@ -23219,7 +23219,7 @@ static SDValue EmitTest(SDValue Op, X86::CondCode X86CC, const SDLoc &dl,
23219
23219
DAG.getConstant(0, dl, Op.getValueType()));
23220
23220
}
23221
23221
SDVTList VTs = DAG.getVTList(Op.getValueType(), MVT::i32);
23222
- SmallVector<SDValue, 4> Ops(Op->op_begin(), Op->op_begin() + NumOperands);
23222
+ SmallVector<SDValue, 4> Ops(Op->ops().take_front( NumOperands) );
23223
23223
23224
23224
SDValue New = DAG.getNode(Opcode, dl, VTs, Ops);
23225
23225
DAG.ReplaceAllUsesOfValueWith(SDValue(Op.getNode(), 0), New);
@@ -30377,7 +30377,7 @@ static SDValue LowerShift(SDValue Op, const X86Subtarget &Subtarget,
30377
30377
// element to the other.
30378
30378
// This optimized lowering is only valid if the elements in a pair can
30379
30379
// be treated identically.
30380
- SmallVector<SDValue, 32> AmtWideElts(Amt->op_begin(), Amt->op_end ());
30380
+ SmallVector<SDValue, 32> AmtWideElts(Amt->ops ());
30381
30381
SmallVector<SDValue, 32> TmpAmtWideElts;
30382
30382
int WideEltSizeInBits = EltSizeInBits;
30383
30383
while (WideEltSizeInBits < 32) {
@@ -32908,7 +32908,7 @@ static SDValue ExtendToType(SDValue InOp, MVT NVT, SelectionDAG &DAG,
32908
32908
EVT EltVT = InOp.getOperand(0).getValueType();
32909
32909
SDValue FillVal =
32910
32910
FillWithZeroes ? DAG.getConstant(0, dl, EltVT) : DAG.getUNDEF(EltVT);
32911
- SmallVector<SDValue, 16> Ops(InOp->op_begin(), InOp->op_end ());
32911
+ SmallVector<SDValue, 16> Ops(InOp->ops ());
32912
32912
Ops.append(WidenNumElts - InNumElts, FillVal);
32913
32913
return DAG.getBuildVector(NVT, dl, Ops);
32914
32914
}
0 commit comments