Remove two unnecessary conversions from MVT to EVT. NFC
authorCraig Topper <craig.topper@gmail.com>
Sun, 25 Oct 2015 03:15:29 +0000 (03:15 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sun, 25 Oct 2015 03:15:29 +0000 (03:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251219 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86TargetTransformInfo.cpp

index d4954d977ea0e937e6a338ae2bb84f68dc4d4faf..ba2f71c6f629ee6f7b8722ee6bf607fa627c3b44 100644 (file)
@@ -293,7 +293,7 @@ int X86TTIImpl::getArithmeticInstrCost(
 
   if (ISD == ISD::SHL &&
       Op2Info == TargetTransformInfo::OK_NonUniformConstantValue) {
-    EVT VT = LT.second;
+    MVT VT = LT.second;
     // Vector shift left by non uniform constant can be lowered
     // into vector multiply (pmullw/pmulld).
     if ((VT == MVT::v8i16 && ST->hasSSE2()) ||
@@ -391,7 +391,7 @@ int X86TTIImpl::getArithmeticInstrCost(
 
   // Look for AVX1 lowering tricks.
   if (ST->hasAVX() && !ST->hasAVX2()) {
-    EVT VT = LT.second;
+    MVT VT = LT.second;
 
     int Idx = CostTableLookup(AVX1CostTable, ISD, VT);
     if (Idx != -1)