[llvm] [LV] Create in-loop sub reductions (PR #147026)
Sam Tebbs via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 17 01:58:51 PDT 2025
================
@@ -9144,6 +9144,14 @@ void LoopVectorizationPlanner::adjustRecipesForReductions(
CurrentLinkI->getFastMathFlags());
LinkVPBB->insert(FMulRecipe, CurrentLink->getIterator());
VecOp = FMulRecipe;
+ } else if (PhiR->isInLoop() && Kind == RecurKind::Add &&
----------------
SamTebbs33 wrote:
I don't think there is a reason so I'll experiment with adding RecurKind::Sub :+1: .
https://github.com/llvm/llvm-project/pull/147026
More information about the llvm-commits
mailing list