[llvm] [LV] Autovectorization for the all-in-one histogram intrinsic (PR #91458)

Graham Hunter via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 26 03:30:37 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;
----------------
huntergr-arm wrote:

Ah, I was looking for a method taking a Type and didn't see one. But the struct that method takes does include a Type, so I think it should be straightforward to use that. Will split off the cost part into a separate patch.

https://github.com/llvm/llvm-project/pull/91458


More information about the llvm-commits mailing list