[llvm] [LV] Linear argument tests for vectorization of function calls (PR #73936)

Maciej Gabka via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 02:35:54 PST 2023


================
@@ -0,0 +1,275 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 2
+; RUN: opt < %s -passes=loop-vectorize,instsimplify -force-vector-interleave=1 -S | FileCheck %s
----------------
mgabka wrote:

I also think we should add at least one test case where step is negative, as that is allowed I think. 
The VFABI mangling allows it, from the specification: "For example, linear(val(i):-3) gives Ln3 when the type of i is integer"

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


More information about the llvm-commits mailing list