[PATCH] D17839: TTI: Fix not using overload of getIntrinsicInstrCost
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 2 19:10:42 PST 2016
arsenm created this revision.
arsenm added a reviewer: hfinkel.
arsenm added a subscriber: llvm-commits.
This was always calling the generic version, so the target
custom implementation was never called.
http://reviews.llvm.org/D17839
Files:
include/llvm/CodeGen/BasicTTIImpl.h
Index: include/llvm/CodeGen/BasicTTIImpl.h
===================================================================
--- include/llvm/CodeGen/BasicTTIImpl.h
+++ include/llvm/CodeGen/BasicTTIImpl.h
@@ -586,7 +586,7 @@
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];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17839.49698.patch
Type: text/x-patch
Size: 531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160303/2c88a5cd/attachment.bin>
More information about the llvm-commits
mailing list