[llvm] [LV] Fix crash when vectorizing function calls with linear args. (PR #76274)

Maciej Gabka via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 28 03:10:03 PST 2023


================
@@ -0,0 +1,31 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --filter "call.*foo" --version 4
+; RUN: opt -passes=loop-vectorize,simplifycfg -force-vector-interleave=1 -force-vector-width=2 -S < %s | FileCheck %s
+
+; Make sure the vectorizer does not crash.
----------------
mgabka wrote:

sorry, I think I mislead you, having a target independent test is not a bad idea, and I am not against.

 I think that having a full coverage in the AArch64 tests would be still good, as we can cover the scalable case, which can not be covered in the target independent tests, the _LLVM_ won't allow to add mappings for scalable vectors.

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


More information about the llvm-commits mailing list