[llvm] r251219 - Remove two unnecessary conversions from MVT to EVT. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 24 20:15:30 PDT 2015
Author: ctopper
Date: Sat Oct 24 22:15:29 2015
New Revision: 251219
URL: http://llvm.org/viewvc/llvm-project?rev=251219&view=rev
Log:
Remove two unnecessary conversions from MVT to EVT. NFC
Modified:
llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp
Modified: llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp?rev=251219&r1=251218&r2=251219&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp Sat Oct 24 22:15:29 2015
@@ -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)
More information about the llvm-commits
mailing list