[llvm] [LAA] Use MaxStride instead of CommonStride to calculate MaxVF (PR #98142)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed May 7 18:52:10 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `llvm` at step 7 "test-build-unified-tree-check-llvm".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/60/builds/26754

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (test-build-unified-tree-check-llvm) failure: test (failure)
******************** TEST 'LLVM :: Analysis/LoopAccessAnalysis/non-constant-strides-backward.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/b/1/llvm-x86_64-debian-dylib/build/bin/opt -passes='print<access-info>' -disable-output /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Analysis/LoopAccessAnalysis/non-constant-strides-backward.ll 2>&1 | /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Analysis/LoopAccessAnalysis/non-constant-strides-backward.ll # RUN: at line 2
+ /b/1/llvm-x86_64-debian-dylib/build/bin/FileCheck /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Analysis/LoopAccessAnalysis/non-constant-strides-backward.ll
+ /b/1/llvm-x86_64-debian-dylib/build/bin/opt '-passes=print<access-info>' -disable-output /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Analysis/LoopAccessAnalysis/non-constant-strides-backward.ll
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Analysis/LoopAccessAnalysis/non-constant-strides-backward.ll:48:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: Report: unsafe dependent memory operations in loop. Use #pragma clang loop distribute(enable) to allow loop distribution to attempt to isolate the offending operations into a separate loop
              ^
<stdin>:18:7: note: scanning from here
 loop:
      ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Analysis/LoopAccessAnalysis/non-constant-strides-backward.ll:86:15: error: CHECK-NEXT: expected string not found in input
; CHECK-NEXT: Report: unsafe dependent memory operations in loop. Use #pragma clang loop distribute(enable) to allow loop distribution to attempt to isolate the offending operations into a separate loop
              ^
<stdin>:33:7: note: scanning from here
 loop:
      ^

Input file: <stdin>
Check file: /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/test/Analysis/LoopAccessAnalysis/non-constant-strides-backward.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
         .
         .
         .
        13:  Non vectorizable stores to invariant address were not found in loop. 
        14:  SCEV assumptions: 
        15:  
        16:  Expressions re-written: 
        17: Printing analysis 'Loop Access Analysis' for function 'different_non_constant_strides_known_backward_distance_larger_than_trip_count': 
        18:  loop: 
next:48           X error: no match found
        19:  Memory dependences are safe with a maximum safe vector width of 4096 bits 
next:48     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        20:  Dependences: 
next:48     ~~~~~~~~~~~~~~
        21:  BackwardVectorizable: 
next:48     ~~~~~~~~~~~~~~~~~~~~~~~
        22:  %l = load i32, ptr %gep, align 4 ->  
next:48     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        23:  store i32 %add, ptr %gep.mul.2, align 4 
next:48     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
         .
         .
...

```

</details>

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


More information about the llvm-commits mailing list