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

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 08:03:06 PDT 2024


================
@@ -869,6 +870,42 @@ void VPWidenCallRecipe::print(raw_ostream &O, const Twine &Indent,
     O << ")";
   }
 }
+#endif
+
+void VPHistogramRecipe::execute(VPTransformState &State) {
+  assert(State.UF == 1 && "Tried interleaving histogram operation");
----------------
fhahn wrote:

What prevents the recipe to be created only in plans that do not require interleaving? (I suspect your the sve2-histcount.ll`. test to crash when interleave count = 2 is forced (with SVE disabled)

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


More information about the llvm-commits mailing list