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

via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 20 09:02:27 PDT 2024


================
@@ -9936,7 +9930,7 @@ bool LoopVectorizePass::processLoop(Loop *L) {
     VectorizeLoop = false;
   }
 
-  if (!MaybeVF && UserIC > 1) {
+  if (!LVP.hasPlanWithVF(VF.Width) && UserIC > 1) {
----------------
ayalz wrote:

ok, would be good to simplify, as a follow-up.
Also should be turned into `else if`? Independently.

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


More information about the llvm-commits mailing list