[llvm] [LV] Check for vector-to-scalar casts in legalizer (PR #106244)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 5 05:49:41 PDT 2024


================
@@ -0,0 +1,40 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; The test was crashing earlier due to a vectorization attempt; vector-to-scalar cast
+; is now forbidden in the legalizer, and the test isn't a vectorization candidate now.
+; RUN: opt -S --force-widen-divrem-via-safe-divisor=false --force-vector-width=4 --passes=loop-vectorize < %s | FileCheck %s
----------------
fhahn wrote:

```suggestion
; RUN: opt -S -force-widen-divrem-via-safe-divisor=false -force-vector-width=4 --passes=loop-vectorize < %s | FileCheck %s
```

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


More information about the llvm-commits mailing list