[llvm] [LV][NFC] Factor out MinBWs of values from the cost model (PR #194492)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 08:31:19 PDT 2026


================
@@ -5859,6 +5847,7 @@ void LoopVectorizationPlanner::plan(ElementCount UserVF, unsigned UserIC) {
   assert(OrigLoop->isInnermost() && "Inner loop expected.");
   CM.collectValuesToIgnore();
   Config.collectElementTypesForWidening(&CM.ValuesToIgnore);
+  Config.computeMinimalBitwidths();
----------------
fhahn wrote:

It looks like now compute `computeMinimalBitwidths` in cases where we did not before. this is potentially expensive and only used after we picked the maximum VF, right? Can we delay a leas until after he return below?

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


More information about the llvm-commits mailing list