[llvm] [VPlan] Optimize resume values of IVs together with other exit values. (PR #174239)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 4 04:28:35 PST 2026
================
@@ -742,6 +751,30 @@ void VPlanTransforms::createHeaderPhiRecipes(
PhiR->replaceAllUsesWith(HeaderPhiR);
PhiR->eraseFromParent();
}
+
+ for (const auto &[HeaderPhiR, ScalarPhiR] : zip_equal(
+ drop_begin(HeaderVPBB->phis()), Plan.getScalarPreheader()->phis())) {
----------------
fhahn wrote:
Yes, this drops the canonical IV, which does not exist in the scalar loop. Added a helper, thanks
https://github.com/llvm/llvm-project/pull/174239
More information about the llvm-commits
mailing list