[llvm] [LV] Relax high loop trip count threshold for deciding to interleave a loop (PR #67725)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 25 09:03:54 PST 2024
================
@@ -5404,6 +5409,11 @@ LoopVectorizationCostModel::selectInterleaveCount(ElementCount VF,
MaxInterleaveCount = InterleaveCountUB;
}
} else if (BestKnownTC) {
+ // At least one iteration must be scalar when this constraint holds. So the
+ // maximum available iterations for interleaving is one less.
+ if (requiresScalarEpilogue(VF.isVector()))
+ (*BestKnownTC)--;
----------------
fhahn wrote:
Is KnownTC guaranteed to be > 0 here?
https://github.com/llvm/llvm-project/pull/67725
More information about the llvm-commits
mailing list