[flang-commits] [clang] [flang] [flang] Add -f[no-]unroll-loops flag (PR #122906)
LLVM Continuous Integration via flang-commits
flang-commits at lists.llvm.org
Thu Jan 16 13:54:11 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `ppc64-flang-aix` running on `ppc64-flang-aix-test` while building `clang,flang` at step 6 "test-build-unified-tree-check-flang".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/201/builds/1461
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 6 (test-build-unified-tree-check-flang) failure: test (failure)
******************** TEST 'Flang :: HLFIR/unroll-loops.fir' FAILED ********************
Exit Code: 1
Command Output (stderr):
--
RUN: at line 1: /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/build/bin/flang -fc1 -emit-llvm -O1 -funroll-loops -mllvm -force-vector-width=2 -o- /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang/test/HLFIR/unroll-loops.fir | /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/build/bin/FileCheck /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang/test/HLFIR/unroll-loops.fir --check-prefixes=CHECK,UNROLL
+ /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/build/bin/flang -fc1 -emit-llvm -O1 -funroll-loops -mllvm -force-vector-width=2 -o- /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang/test/HLFIR/unroll-loops.fir
+ /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/build/bin/FileCheck /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang/test/HLFIR/unroll-loops.fir --check-prefixes=CHECK,UNROLL
warning: overriding the module target triple with powerpc64-ibm-aix7.2.0.0 [-Woverride-module]
/home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang/test/HLFIR/unroll-loops.fir:25:18: error: UNROLL-NEXT: is not on the line after the previous match
// UNROLL-NEXT: %[[VIND1:.*]] = add <2 x i64> %[[VIND]], splat (i64 2)
^
<stdin>:20:2: note: 'next' match was here
%vec.ind.next = add <2 x i64> %vec.ind, splat (i64 2)
^
<stdin>:17:92: note: previous match ended here
%vec.ind = phi <2 x i64> [ <i64 1, i64 2>, %vector.ph ], [ %vec.ind.next.4, %vector.body ]
^
<stdin>:18:1: note: non-matching line after previous match is here
%1 = getelementptr i64, ptr %0, i64 %index
^
Input file: <stdin>
Check file: /home/llvm/llvm-external-buildbots/workers/ppc64-flang-aix-test/ppc64-flang-aix-build/llvm-project/flang/test/HLFIR/unroll-loops.fir
-dump-input=help explains the following input dump.
Input was:
<<<<<<
.
.
.
15: vector.body: ; preds = %vector.body, %vector.ph
16: %index = phi i64 [ 0, %vector.ph ], [ %index.next.4, %vector.body ]
17: %vec.ind = phi <2 x i64> [ <i64 1, i64 2>, %vector.ph ], [ %vec.ind.next.4, %vector.body ]
18: %1 = getelementptr i64, ptr %0, i64 %index
19: store <2 x i64> %vec.ind, ptr %1, align 8, !tbaa !1
20: %vec.ind.next = add <2 x i64> %vec.ind, splat (i64 2)
next:25 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: match on wrong line
21: %gep = getelementptr i64, ptr %invariant.gep, i64 %index
22: store <2 x i64> %vec.ind.next, ptr %gep, align 8, !tbaa !1
23: %vec.ind.next.1 = add <2 x i64> %vec.ind, splat (i64 4)
24: %gep2 = getelementptr i64, ptr %invariant.gep1, i64 %index
25: store <2 x i64> %vec.ind.next.1, ptr %gep2, align 8, !tbaa !1
.
.
.
>>>>>>
--
...
```
</details>
https://github.com/llvm/llvm-project/pull/122906
More information about the flang-commits
mailing list