[llvm] [LoopVectorize] Enable more early exit vectorisation tests (PR #117008)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 05:56:42 PST 2024
================
@@ -5001,6 +5019,10 @@ LoopVectorizationCostModel::selectInterleaveCount(ElementCount VF,
if (!Legal->isSafeForAnyVectorWidth())
return 1;
+ // We don't attempt to perform interleaving for early exit loops.
+ if (Legal->hasUncountableEarlyExit())
+ return 1;
----------------
fhahn wrote:
Could you add more details on why not? Is all that would be needed to deal with multiple parts in AnyOf & co?
https://github.com/llvm/llvm-project/pull/117008
More information about the llvm-commits
mailing list