[llvm] [LV] Incorporate trip counts into selection of scalable VFs (PR #80926)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 08:18:12 PST 2024
================
@@ -4933,11 +4933,17 @@ bool LoopVectorizationPlanner::isMoreProfitable(
EstimatedWidthB *= *VScale;
}
+ if (MaxTripCount > 0) {
+ EstimatedWidthA = std::min(EstimatedWidthA, MaxTripCount);
----------------
fhahn wrote:
Ah yes, the cases I was thinking about were limiting to a smaller *scalable* VF.
https://github.com/llvm/llvm-project/pull/80926
More information about the llvm-commits
mailing list