Use MVT instead of EVT through all of LowerVECTOR_SHUFFLEtoBlend and not just the...
authorCraig Topper <craig.topper@gmail.com>
Mon, 23 Apr 2012 07:36:33 +0000 (07:36 +0000)
committerCraig Topper <craig.topper@gmail.com>
Mon, 23 Apr 2012 07:36:33 +0000 (07:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155339 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86ISelLowering.cpp

index dc942461444403ec251e9621d247a1626417da54..b9dba7bdf31b656a918fb8be6b95d32257f531ec 100644 (file)
@@ -5402,7 +5402,7 @@ static SDValue LowerVECTOR_SHUFFLEtoBlend(ShuffleVectorSDNode *SVOp,
   SDValue V1 = SVOp->getOperand(0);
   SDValue V2 = SVOp->getOperand(1);
   DebugLoc dl = SVOp->getDebugLoc();
-  EVT VT = SVOp->getValueType(0);
+  MVT VT = SVOp->getValueType(0).getSimpleVT();
   unsigned NumElems = VT.getVectorNumElements();
 
   if (!Subtarget->hasSSE41())
@@ -5411,7 +5411,7 @@ static SDValue LowerVECTOR_SHUFFLEtoBlend(ShuffleVectorSDNode *SVOp,
   unsigned ISDNo = 0;
   MVT OpTy;
 
-  switch (VT.getSimpleVT().SimpleTy) {
+  switch (VT.SimpleTy) {
   default: return SDValue();
   case MVT::v8i16:
     ISDNo = X86ISD::BLENDPW;