diff options
author | Craig Topper <craig.topper@intel.com> | 2017-08-16 23:16:43 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@intel.com> | 2017-08-16 23:16:43 +0000 |
commit | a2df6023fb39d4af5b022471d7dfe15880b5d3b6 (patch) | |
tree | 4d0cf6318b33db35c458ad9650f60b8d8f149efa | |
parent | 4480e9fa9bc4d2e703faa2118e66956ba69e0621 (diff) |
[X86] Use a static array instead of a SmallVector for a small fixed size array. NFC
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311054 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 16473fc5593..edf5fc57e67 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -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); } |