[llvm] [VPlan] Only use selectVectorizationFactor for cross-check (NFCI). (PR #103033)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 05:12:15 PDT 2024


================
@@ -6995,11 +6994,11 @@ LoopVectorizationPlanner::plan(ElementCount UserVF, unsigned UserIC) {
       if (!hasPlanWithVF(UserVF)) {
         LLVM_DEBUG(dbgs() << "LV: No VPlan could be built for " << UserVF
                           << ".\n");
-        return std::nullopt;
+        return;
       }
 
       LLVM_DEBUG(printPlans(dbgs()));
-      return {{UserVF, 0, 0}};
+      return;
     } else
----------------
fhahn wrote:

Doen, thanks!

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


More information about the llvm-commits mailing list