[llvm] [LV] Also clamp MaxVF by trip count when maximizing vector bandwidth. (PR #149794)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 22 06:29:49 PDT 2025


================
@@ -3940,6 +3951,8 @@ ElementCount LoopVectorizationCostModel::getMaximizedVFForTarget(
       }
     }
 
+    MaxVF = clampVFByMaxTripCount(MaxVF, MaxTripCount, FoldTailByMasking);
+
----------------
fhahn wrote:

Yep, updated, thanks

https://github.com/llvm/llvm-project/pull/149794


More information about the llvm-commits mailing list