[llvm] [VPlan] Update scalar induction resume values in VPlan. (PR #110577)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 14:56:40 PST 2024
================
@@ -7988,25 +8010,40 @@ EpilogueVectorizerEpilogueLoop::createEpilogueVectorizedLoopSkeleton(
Phi->removeIncomingValue(EPI.MemSafetyCheck);
}
- // Generate a resume induction for the vector epilogue and put it in the
- // vector epilogue preheader
+ // Try to re-use an existing resume phi if it matches the resume values for
+ // the canonical induction. Otherwise generate a resume phi for the canonical
+ // induction for the vector epilogue and put it in the vector epilogue
+ // preheader.
----------------
fhahn wrote:
Updated, thanks
https://github.com/llvm/llvm-project/pull/110577
More information about the llvm-commits
mailing list