[llvm] [LAA] Fix incorrect dependency classification. (PR #70819)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 5 02:50:20 PST 2023


================
@@ -0,0 +1,65 @@
+; REQUIRES: asserts
+; RUN: opt -passes='loop-vectorize' -debug-only=loop-accesses -disable-output < %s 2>&1 | FileCheck %s
+
+; void negative_step(int *A) {
+;  for (int i = 1022; i >= 0; i--)
+;    A[i+1] = A[i] + 1;
+; }
+
+;CHECK: LAA: Found a loop in negative_step: loop
----------------
fhahn wrote:

nit: add space after `; `

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


More information about the llvm-commits mailing list