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

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 28 08:59:34 PDT 2024


================
@@ -0,0 +1,41 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
+; RUN: opt --force-widen-divrem-via-safe-divisor=false -passes=loop-vectorize -S --debug-only=loop-vectorize < %s 2>&1 | FileCheck %s
+
----------------
artagnon wrote:

Might be good to add a comment like: "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".

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


More information about the llvm-commits mailing list