[llvm-branch-commits] [llvm] [LV] Bundle partial reductions inside VPExpressionRecipe (PR #147302)
Sam Tebbs via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Jul 22 08:37:24 PDT 2025
================
@@ -2532,7 +2533,10 @@ class VPPartialReductionRecipe : public VPReductionRecipe {
Opcode(Opcode), VFScaleFactor(ScaleFactor) {
[[maybe_unused]] auto *AccumulatorRecipe =
getChainOp()->getDefiningRecipe();
- assert((isa<VPReductionPHIRecipe>(AccumulatorRecipe) ||
+ // When cloning as part of a VPExpressionRecipe, the chain op could have
+ // been removed from the plan and so doesn't have a defining recipe.
+ assert((!AccumulatorRecipe ||
----------------
SamTebbs33 wrote:
Oh yeah that's correct, I've updated the comment.
https://github.com/llvm/llvm-project/pull/147302
More information about the llvm-branch-commits
mailing list