[llvm] [LoopVectorize] Add the cost of VPInstruction::AnyOf to vplan (PR #125058)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 31 12:41:22 PST 2025
================
@@ -7539,6 +7539,7 @@ VectorizationFactor LoopVectorizationPlanner::computeBestVF() {
CM.CostKind);
precomputeCosts(BestPlan, BestFactor.Width, CostCtx);
assert((BestFactor.Width == LegacyVF.Width ||
+ Legal->hasUncountableEarlyExit() ||
----------------
fhahn wrote:
Ideally we would be able to reliably check if a VPlan has an early exit directly on the VPlan instead of relying on Legal to do so. Could we check if we have either multiple exit blocks or a single exit block with multiple predecessors?
https://github.com/llvm/llvm-project/pull/125058
More information about the llvm-commits
mailing list