[llvm] [LV] Vectorize conditional scalar assignments (PR #158088)

Benjamin Maxwell via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 3 03:14:06 PST 2025


================
@@ -0,0 +1,95 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals none --version 5
+; RUN: opt -passes=loop-vectorize,instcombine -S < %s 2>&1 | FileCheck %s --check-prefix=NEON
+; RUN: opt -passes=loop-vectorize,instcombine -mattr=+sve -S < %s 2>&1 | FileCheck %s --check-prefix=SVE
+
+target triple = "aarch64-linux-gnu"
+
----------------
MacDue wrote:

How about testing a pointer type for the data phi, and some negative tests for the cases we bail out for in `isFindPattern` (e.g. multiple users in the loop)?

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


More information about the llvm-commits mailing list