[llvm] [LV] Create in-loop sub reductions (PR #147026)
Sander de Smalen via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 18 08:44:31 PDT 2025
================
@@ -9144,6 +9144,15 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
CurrentLinkI->getFastMathFlags());
LinkVPBB->insert(FMulRecipe, CurrentLink->getIterator());
VecOp = FMulRecipe;
+ } else if (PhiR->isInLoop() && Kind == RecurKind::Add &&
----------------
sdesmalen-arm wrote:
Why is this still looking for `RecurdKind::Add` and why does this code still need to look at `CurrentLink->getOpcode()` ?
https://github.com/llvm/llvm-project/pull/147026
More information about the llvm-commits
mailing list