From: Craig Topper Date: Fri, 15 Sep 2017 17:09:05 +0000 (+0000) Subject: [X86] Use SDNode::ops() instead of makeArrayRef and op_begin(). NFCI X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d77fd58694f6967e47cc96e17bbf6f5e64ee846b;p=llvm [X86] Use SDNode::ops() instead of makeArrayRef and op_begin(). NFCI git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@313367 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 1e9c4959d93..ff00d9e5e00 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -5024,8 +5024,8 @@ static SDValue extractSubVector(SDValue Vec, unsigned IdxVal, SelectionDAG &DAG, // If the input is a buildvector just emit a smaller one. if (Vec.getOpcode() == ISD::BUILD_VECTOR) - return DAG.getBuildVector( - ResultVT, dl, makeArrayRef(Vec->op_begin() + IdxVal, ElemsPerChunk)); + return DAG.getBuildVector(ResultVT, dl, + Vec->ops().slice(IdxVal, ElemsPerChunk)); SDValue VecIdx = DAG.getIntPtrConstant(IdxVal, dl); return DAG.getNode(ISD::EXTRACT_SUBVECTOR, dl, ResultVT, Vec, VecIdx); @@ -35801,9 +35801,9 @@ static SDValue combineExtractSubvector(SDNode *N, SelectionDAG &DAG, } if (InVec.getOpcode() == ISD::BUILD_VECTOR) - return DAG.getBuildVector(OpVT, SDLoc(N), - makeArrayRef(InVec.getNode()->op_begin() + IdxVal, - OpVT.getVectorNumElements())); + return DAG.getBuildVector( + OpVT, SDLoc(N), + InVec.getNode()->ops().slice(IdxVal, OpVT.getVectorNumElements())); return SDValue(); }