[llvm] [LV] Disable interleaving via hints for uncountable early exit loops (PR #145877)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 26 05:51:47 PDT 2025
================
@@ -10101,6 +10101,13 @@ bool LoopVectorizePass::processLoop(Loop *L) {
// Get user vectorization factor and interleave count.
ElementCount UserVF = Hints.getWidth();
unsigned UserIC = Hints.getInterleave();
+ if (LVL.hasUncountableEarlyExit() && UserIC != 1 &&
+ !VectorizerParams::isInterleaveForced()) {
----------------
david-arm wrote:
I think the problem then is that it becomes extremely difficult to write IR tests for any fixes. Any fixes would have to be unit tests.
https://github.com/llvm/llvm-project/pull/145877
More information about the llvm-commits
mailing list