[llvm] [LV] Add a statistic for early exit vectorization (PR #145730)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 25 12:28:04 PDT 2025
================
@@ -10291,6 +10293,9 @@ bool LoopVectorizePass::processLoop(Loop *L) {
auto ExpandedSCEVs = LVP.executePlan(EPI.MainLoopVF, EPI.MainLoopUF,
*BestMainPlan, MainILV, DT, false);
++LoopsVectorized;
+ // TODO: Currently unsupported for early exits.
+ if (BestPlan.hasEarlyExit())
+ ++LoopsEarlyExitVectorized;
----------------
fhahn wrote:
Can we just increment the statistic in a single place, like `executePlan`?
https://github.com/llvm/llvm-project/pull/145730
More information about the llvm-commits
mailing list