[llvm] [LV] Move check if any vector insts will be generated to VPlan. (PR #96622)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 03:46:20 PDT 2024


================
@@ -1,4 +1,4 @@
-; RUN: opt < %s -passes=loop-vectorize -S | FileCheck %s
+; RUN: opt < %s -passes=loop-vectorize -force-vector-width=4 -S | FileCheck %s
----------------
fhahn wrote:

This won't generate any vector instructions due to dead instructions. I think in this case it makes sense to retain the vectorization behavior by forcing the VF, as from the comment the goal is to guard against creating invalid phis outside the vector loop.

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


More information about the llvm-commits mailing list