[llvm-branch-commits] [llvm] [LoopVectorizer] Bundle partial reductions inside VPMulAccumulateReductionRecipe (PR #136173)
Sander de Smalen via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 30 06:43:03 PDT 2025
================
@@ -2432,12 +2437,40 @@ static void tryToCreateAbstractReductionRecipe(VPReductionRecipe *Red,
Red->replaceAllUsesWith(AbstractR);
}
+/// This function tries to create an abstract recipe from a partial reduction to
+/// hide its mul and extends from cost estimation.
+static void
+tryToCreateAbstractPartialReductionRecipe(VPPartialReductionRecipe *PRed) {
----------------
sdesmalen-arm wrote:
Does this need to be given the `Range &` and for that range to be clamped if it doesn't match or if the cost is higher than the individual operations (similar to what happens in `tryToCreateAbstractReductionRecipe`) ?
(note that the cost part is still missing)
https://github.com/llvm/llvm-project/pull/136173
More information about the llvm-branch-commits
mailing list