[llvm] [LV] Vectorize histogram operations (PR #99851)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 30 02:57:21 PDT 2024


================
@@ -274,6 +276,10 @@ static Instruction *getInstructionForCost(const VPRecipeBase *R) {
     return IG->getInsertPos();
   if (auto *WidenMem = dyn_cast<VPWidenMemoryRecipe>(R))
     return &WidenMem->getIngredient();
+  // FIXME: Override the cost method properly to take gather/scatter cost
----------------
fhahn wrote:

Histogram cost computation looks self contained, can we instead directly implement `VPHistogramRecipe::computeCost` instead falling back?

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


More information about the llvm-commits mailing list