[llvm-branch-commits] [llvm] [LV] Choose best reduction for VPlan (PR #166138)
Sushant Gokhale via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Tue Nov 4 02:27:53 PST 2025
================
@@ -3773,19 +3775,76 @@ static void tryToCreateAbstractReductionRecipe(VPReductionRecipe *Red,
AbstractR = ExtRed;
// Cannot create abstract inloop reduction recipes.
if (!AbstractR)
- return;
+ return false;
AbstractR->insertBefore(*VPBB, IP);
Red->replaceAllUsesWith(AbstractR);
+ return true;
----------------
sushgokh wrote:
Need to add `Red->eraseFromParent();` before this ?
https://github.com/llvm/llvm-project/pull/166138
More information about the llvm-branch-commits
mailing list