]> granicus.if.org Git - llvm/commitdiff
[X86] Use a static array instead of a SmallVector for a small fixed size array. NFC
authorCraig Topper <craig.topper@intel.com>
Wed, 16 Aug 2017 23:16:43 +0000 (23:16 +0000)
committerCraig Topper <craig.topper@intel.com>
Wed, 16 Aug 2017 23:16:43 +0000 (23:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311054 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index 16473fc5593347372c6f4ec00aeb0bb7203aa98b..edf5fc57e67d8c813d47d6388914c7ba21c65197 100644 (file)
@@ -19130,8 +19130,8 @@ static SDValue getTargetVShiftNode(unsigned Opc, const SDLoc &dl, MVT VT,
     ShAmt = DAG.getNode(ISD::SCALAR_TO_VECTOR, SDLoc(ShAmt), MVT::v4i32, ShAmt);
     ShAmt = DAG.getZeroExtendVectorInReg(ShAmt, SDLoc(ShAmt), MVT::v2i64);
   } else {
-    SmallVector<SDValue, 4> ShOps = {ShAmt, DAG.getConstant(0, dl, SVT),
-                                     DAG.getUNDEF(SVT), DAG.getUNDEF(SVT)};
+    SDValue ShOps[4] = {ShAmt, DAG.getConstant(0, dl, SVT),
+                        DAG.getUNDEF(SVT), DAG.getUNDEF(SVT)};
     ShAmt = DAG.getBuildVector(MVT::v4i32, dl, ShOps);
   }