[llvm] [LV] Stability fix for outerloop vectorization (PR #68118)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 23 02:24:22 PDT 2023


================
@@ -0,0 +1,461 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 3
+; RUN: opt -S -passes=loop-vectorize -enable-vplan-native-path < %s -S | FileCheck %s
+; void test(int n, int **a)
+; {
+;   for (int k = 0; k < n; ++k) {
+;     a[k][0] = 0;
+;     #pragma clang loop vectorize_width(4)
+;     for (int i = 0; i < n; ++i) {
+;         for (int j = 0; j < n; ++j) {
+;             a[i][j] = 2 + k;
+;         }
+;     }
+;   }
+; }
+
+define void @test(i64 %n, ptr %a) {
----------------
fhahn wrote:

Would it be possible to use more descriptive names for the test and possible add a brief description of what the test checks? (as mentioned in https://reviews.llvm.org/D150700)

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


More information about the llvm-commits mailing list