[llvm] [VPlan] Add VPSingleDefBundleRecipe, replacing extended reduction recipes. (PR #144281)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 30 06:34:18 PDT 2025
================
@@ -2804,12 +2728,10 @@ void VPlanTransforms::convertToConcreteRecipes(VPlan &Plan,
ToRemove.push_back(VPI);
}
for (VPRecipeBase &R : make_early_inc_range(*VPBB)) {
- if (auto *ExtRed = dyn_cast<VPExtendedReductionRecipe>(&R)) {
- expandVPExtendedReduction(ExtRed);
- continue;
+ if (auto *Bundle = dyn_cast<VPSingleDefBundleRecipe>(&R)) {
+ Bundle->unbundle();
+ Bundle->eraseFromParent();
}
----------------
ayalz wrote:
Should this unbundling take place during the above loop over VPBB's recipes, or before it?
Should `Bundle` be added to `ToRemove`?
https://github.com/llvm/llvm-project/pull/144281
More information about the llvm-commits
mailing list