Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit bbf9d3e

Browse files
committed
Use MVT instead of EVT in LowerVECTOR_SHUFFLEtoBlend.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173009 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 9b33ef7 commit bbf9d3e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

lib/Target/X86/X86ISelLowering.cpp

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5692,17 +5692,16 @@ LowerVECTOR_SHUFFLEtoBlend(ShuffleVectorSDNode *SVOp,
56925692

56935693
// Convert i32 vectors to floating point if it is not AVX2.
56945694
// AVX2 introduced VPBLENDD instruction for 128 and 256-bit vectors.
5695-
EVT BlendVT = VT;
5695+
MVT BlendVT = VT;
56965696
if (EltVT == MVT::i64 || (EltVT == MVT::i32 && !Subtarget->hasInt256())) {
5697-
BlendVT = EVT::getVectorVT(*DAG.getContext(),
5698-
EVT::getFloatingPointVT(EltVT.getSizeInBits()),
5699-
NumElems);
5697+
BlendVT = MVT::getVectorVT(MVT::getFloatingPointVT(EltVT.getSizeInBits()),
5698+
NumElems);
57005699
V1 = DAG.getNode(ISD::BITCAST, dl, VT, V1);
57015700
V2 = DAG.getNode(ISD::BITCAST, dl, VT, V2);
57025701
}
57035702

5704-
SDValue Ret = DAG.getNode(X86ISD::BLENDI, dl, BlendVT, V1, V2,
5705-
DAG.getConstant(MaskValue, MVT::i32));
5703+
SDValue Ret = DAG.getNode(X86ISD::BLENDI, dl, BlendVT, V1, V2,
5704+
DAG.getConstant(MaskValue, MVT::i32));
57065705
return DAG.getNode(ISD::BITCAST, dl, VT, Ret);
57075706
}
57085707

0 commit comments

Comments
 (0)