[llvm] [LoopVectorizer] Add support for chaining partial reductions (PR #120272)
Sam Tebbs via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 07:45:44 PST 2025
================
@@ -2453,7 +2453,9 @@ class VPPartialReductionRecipe : public VPSingleDefRecipe {
: VPSingleDefRecipe(VPDef::VPPartialReductionSC,
ArrayRef<VPValue *>({Op0, Op1}), ReductionInst),
Opcode(Opcode) {
- assert(isa<VPReductionPHIRecipe>(getOperand(1)->getDefiningRecipe()) &&
+ auto *DefiningRecipe = getOperand(1)->getDefiningRecipe();
----------------
SamTebbs33 wrote:
Perhaps `AccumulatorRecipe` would be more descriptive.
https://github.com/llvm/llvm-project/pull/120272
More information about the llvm-commits
mailing list