[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 12 06:45:01 PDT 2024


================
@@ -8406,6 +8416,34 @@ VPWidenRecipe *VPRecipeBuilder::tryToWiden(Instruction *I,
   };
 }
 
+VPHistogramRecipe *
+VPRecipeBuilder::tryToWidenHistogram(const HistogramInfo *HI,
+                                     ArrayRef<VPValue *> Operands) {
+  // FIXME: Support other operations.
----------------
huntergr-arm wrote:

Added support for sub in the execute method, by negating the increment value.

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


More information about the llvm-commits mailing list