[llvm] r262585 - TTI: Fix not using overload of getIntrinsicInstrCost
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 2 21:43:50 PST 2016
Author: arsenm
Date: Wed Mar 2 23:43:49 2016
New Revision: 262585
URL: http://llvm.org/viewvc/llvm-project?rev=262585&view=rev
Log:
TTI: Fix not using overload of getIntrinsicInstrCost
This was always calling the generic version, so the target
custom implementation was never called.
Modified:
llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h
Modified: llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h?rev=262585&r1=262584&r2=262585&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h (original)
+++ llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h Wed Mar 2 23:43:49 2016
@@ -588,7 +588,7 @@ public:
SmallVector<Type *, 4> Types;
for (Value *Op : Args)
Types.push_back(Op->getType());
- return getIntrinsicInstrCost(IID, RetTy, Types);
+ return static_cast<T *>(this)->getIntrinsicInstrCost(IID, RetTy, Types);
}
case Intrinsic::masked_scatter: {
Value *Mask = Args[3];
More information about the llvm-commits
mailing list