[llvm] r251196 - Call the version of ConvertCostTableLookup that takes a statically sized array rather than pointer and size. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 24 11:40:22 PDT 2015
Author: ctopper
Date: Sat Oct 24 13:40:22 2015
New Revision: 251196
URL: http://llvm.org/viewvc/llvm-project?rev=251196&view=rev
Log:
Call the version of ConvertCostTableLookup that takes a statically sized array rather than pointer and size. NFC
Modified:
llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
Modified: llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp?rev=251196&r1=251195&r2=251196&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/AArch64/AArch64TargetTransformInfo.cpp Sat Oct 24 13:40:22 2015
@@ -281,9 +281,8 @@ int AArch64TTIImpl::getCastInstrCost(uns
{ ISD::FP_TO_UINT, MVT::v2i8, MVT::v2f64, 2 },
};
- int Idx = ConvertCostTableLookup<MVT>(
- ConversionTbl, array_lengthof(ConversionTbl), ISD, DstTy.getSimpleVT(),
- SrcTy.getSimpleVT());
+ int Idx = ConvertCostTableLookup(ConversionTbl, ISD, DstTy.getSimpleVT(),
+ SrcTy.getSimpleVT());
if (Idx != -1)
return ConversionTbl[Idx].Cost;
More information about the llvm-commits
mailing list