[flang-commits] [flang] [llvm] [VPlan] Fix wrap-flags on WidenInduction unroll (PR #187710)
via flang-commits
flang-commits at lists.llvm.org
Fri Mar 20 08:38:09 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 171553 tests passed
* 3064 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Flang
<details>
<summary>Flang.Integration/unroll-loops.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 8
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -emit-llvm -O1 -vectorize-loops -funroll-loops -mllvm -force-vector-width=2 -triple aarch64-unknown-linux-gnu -o- /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Integration/unroll-loops.f90 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Integration/unroll-loops.f90 --check-prefixes=CHECK,UNROLL
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -emit-llvm -O1 -vectorize-loops -funroll-loops -mllvm -force-vector-width=2 -triple aarch64-unknown-linux-gnu -o- /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Integration/unroll-loops.f90
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Integration/unroll-loops.f90 --check-prefixes=CHECK,UNROLL
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Integration/unroll-loops.f90:36:17: error: UNROLL-NEXT: expected string not found in input
# | ! UNROLL-NEXT: %[[NVIND:.*]] = add <2 x i64> %[[VIND]], splat (i64 4)
# | ^
# | <stdin>:19:37: note: scanning from here
# | %index.next = add nuw i64 %index, 4
# | ^
# | <stdin>:19:37: note: with "VIND" equal to "vec.ind"
# | %index.next = add nuw i64 %index, 4
# | ^
# | <stdin>:20:23: note: possible intended match here
# | %vec.ind.next = add nuw nsw <2 x i64> %vec.ind, splat (i64 4)
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Integration/unroll-loops.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 14: %step.add = add nuw nsw <2 x i64> %vec.ind, splat (i64 2)
# | 15: %1 = getelementptr [8 x i8], ptr %0, i64 %index
# | 16: %2 = getelementptr i8, ptr %1, i64 16
# | 17: store <2 x i64> %vec.ind, ptr %1, align 8, !tbaa !2
# | 18: store <2 x i64> %step.add, ptr %2, align 8, !tbaa !2
# | 19: %index.next = add nuw i64 %index, 4
# | next:36'0 X error: no match found
# | next:36'1 with "VIND" equal to "vec.ind"
# | 20: %vec.ind.next = add nuw nsw <2 x i64> %vec.ind, splat (i64 4)
# | next:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:36'2 ? possible intended match
# | 21: %3 = icmp eq i64 %index.next, 1000
# | next:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 22: br i1 %3, label %middle.block, label %vector.body, !llvm.loop !8
# | next:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 23:
# | next:36'0 ~
# | 24: middle.block: ; preds = %vector.body
# | next:36'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 25: ret void
# | next:36'0 ~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Lower/HLFIR/unroll-loops.fir</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 6
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -emit-llvm -O1 -vectorize-loops -funroll-loops -mllvm -force-vector-width=2 -triple aarch64-unknown-linux-gnu -o- /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/HLFIR/unroll-loops.fir | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/HLFIR/unroll-loops.fir --check-prefixes=CHECK,UNROLL
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/flang -fc1 -emit-llvm -O1 -vectorize-loops -funroll-loops -mllvm -force-vector-width=2 -triple aarch64-unknown-linux-gnu -o- /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/HLFIR/unroll-loops.fir
# .---command stderr------------
# | warning: overriding the module target triple with aarch64-unknown-linux-gnu [-Woverride-module]
# `-----------------------------
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/HLFIR/unroll-loops.fir --check-prefixes=CHECK,UNROLL
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/HLFIR/unroll-loops.fir:38:18: error: UNROLL-NEXT: expected string not found in input
# | // UNROLL-NEXT: %[[NVIND:.*]] = add <2 x i64> %[[VIND]], splat (i64 4)
# | ^
# | <stdin>:19:37: note: scanning from here
# | %index.next = add nuw i64 %index, 4
# | ^
# | <stdin>:19:37: note: with "VIND" equal to "vec.ind"
# | %index.next = add nuw i64 %index, 4
# | ^
# | <stdin>:20:23: note: possible intended match here
# | %vec.ind.next = add nuw nsw <2 x i64> %vec.ind, splat (i64 4)
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/flang/test/Lower/HLFIR/unroll-loops.fir
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 14: %step.add = add nuw nsw <2 x i64> %vec.ind, splat (i64 2)
# | 15: %1 = getelementptr [8 x i8], ptr %0, i64 %index
# | 16: %2 = getelementptr i8, ptr %1, i64 16
# | 17: store <2 x i64> %vec.ind, ptr %1, align 8, !tbaa !1
# | 18: store <2 x i64> %step.add, ptr %2, align 8, !tbaa !1
# | 19: %index.next = add nuw i64 %index, 4
# | next:38'0 X error: no match found
# | next:38'1 with "VIND" equal to "vec.ind"
# | 20: %vec.ind.next = add nuw nsw <2 x i64> %vec.ind, splat (i64 4)
# | next:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:38'2 ? possible intended match
# | 21: %3 = icmp eq i64 %index.next, 1000
# | next:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 22: br i1 %3, label %middle.block, label %vector.body, !llvm.loop !7
# | next:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 23:
# | next:38'0 ~
# | 24: middle.block: ; preds = %vector.body
# | next:38'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 25: ret void
# | next:38'0 ~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/187710
More information about the flang-commits
mailing list