[llvm] [VPlan] - Generalize dead cycle removal in removeDeadRecipes. (PR #213632)
Oscar Priego via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 30 23:39:11 PDT 2026
Opriego wrote:
I also tested this against #216543, which appears to be fixed by dc748cf0f3da as well.
I exercised a few broader VPlan shapes around the same cleanup, including the predicated AnyOf VPReductionPHIRecipe -> or -> VPBlendRecipe -> VPReductionPHIRecipe recurrence and corresponding live-result cases. The dead recurrence is removed while observable/live uses remain intact.
I also looked at the conservative bailout for reaching another phi-like recipe. I could reproduce the limitation synthetically for a mutually-dependent multi-phi SCC, but I wasn't able to construct that topology from valid IR accepted by LoopVectorize, so I don't think broadening the implementation is justified on that basis.
https://github.com/llvm/llvm-project/pull/213632
More information about the llvm-commits
mailing list