[llvm] [LV] Autovectorization for the all-in-one histogram intrinsic (PR #91458)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 25 13:34:07 PDT 2024
================
@@ -1939,6 +1942,7 @@ class TargetTransformInfo::Concept {
unsigned *Fast) = 0;
virtual PopcntSupportKind getPopcntSupport(unsigned IntTyWidthInBit) = 0;
virtual bool haveFastSqrt(Type *Ty) = 0;
+ virtual InstructionCost getHistogramCost(Type *Ty) = 0;
----------------
fhahn wrote:
Do we need a new hook for that or would it be sufficient to implement this in `getIntrinsicInstrCost`? That way the cost changes could also be split off and tested separately.
https://github.com/llvm/llvm-project/pull/91458
More information about the llvm-commits
mailing list