[llvm] [VPlan] - Generalize dead cycle removal in removeDeadRecipes. (PR #213632)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 28 02:57:49 PDT 2026
================
@@ -687,6 +687,32 @@ static void removeRedundantInductionCasts(VPlan &Plan) {
}
}
+/// If R is a phi-like recipe starting a dead cycle of recipes, erase all
+/// reachable recipes of the dead cycle.
+static void tryToRemoveDeadCycle(VPRecipeBase *R) {
+ auto *PhiR = dyn_cast<VPSingleDefRecipe>(R);
+ if (!PhiR || !isa<VPPhi, VPReductionPHIRecipe>(R))
----------------
fhahn wrote:
dc748cf0f3da04c5155dfbfaa12e7bbb3ea0e02f pushed a fix for a crash (truncated wide IVs), it should have a test that crashed with the original version.
(It would also be helpful to try to use different titles for the fixup commits to make changes slightly easier to find)
https://github.com/llvm/llvm-project/pull/213632
More information about the llvm-commits
mailing list