[flang-commits] [flang] [flang] disable SimplifyPassThroughCondBranch pattern at O0 to preserve line location (PR #227215)
via flang-commits
flang-commits at lists.llvm.org
Tue Sep 29 01:48:00 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 4891 tests passed
* 255 tests skipped
* 2 tests failed
## Failed Tests
(click on a test name to see its output)
### Flang
<details>
<summary>Flang.Integration/OpenMP/parallel-private-reduction-worstcase.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fintrinsic-modules-path=C:\_work\llvm-project\llvm-project\build\lib\clang\24\finclude\flang\x86_64-pc-windows-msvc -mmlir --wrap-unstructured-constructs-in-execute-region -fopenmp -emit-llvm C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\parallel-private-reduction-worstcase.f90 -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\parallel-private-reduction-worstcase.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 '-fintrinsic-modules-path=C:\_work\llvm-project\llvm-project\build\lib\clang\24\finclude\flang\x86_64-pc-windows-msvc' -mmlir --wrap-unstructured-constructs-in-execute-region -fopenmp -emit-llvm 'C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\parallel-private-reduction-worstcase.f90' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\parallel-private-reduction-worstcase.f90'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\parallel-private-reduction-worstcase.f90:86:10: error: CHECK: expected string not found in input
# | ! CHECK: br i1 %{{.*}}, label %omp.private.copy13, label %omp.private.copy22
# | ^
# | <stdin>:224:48: note: scanning from here
# | omp.private.copy12: ; preds = %omp.private.copy
# | ^
# | <stdin>:230:2: note: possible intended match here
# | br i1 %123, label %omp.private.copy13, label %omp.private.copy23
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\parallel-private-reduction-worstcase.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 219: br label %omp.private.copy
# | 220:
# | 221: omp.private.copy: ; preds = %omp.region.cont6
# | 222: br label %omp.private.copy12
# | 223:
# | 224: omp.private.copy12: ; preds = %omp.private.copy
# | check:86'0 { search range start (exclusive)
# | check:86'1 error: no match found in search range
# | 225: call void @llvm.memcpy.p0.p0.i32(ptr align 8 %18, ptr align 8 %80, i32 48, i1 false)
# | 226: %120 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %18, i32 0, i32 0
# | 227: %121 = load ptr, ptr %120, align 8
# | 228: %122 = ptrtoint ptr %121 to i64
# | 229: %123 = icmp ne i64 %122, 0
# | 230: br i1 %123, label %omp.private.copy13, label %omp.private.copy23
# | check:86'2 ? possible intended match
# | 231:
# | 232: omp.private.copy23: ; preds = %omp.private.copy22, %omp.private.copy12
# | 233: br label %omp.region.cont11
# | 234:
# | 235: omp.region.cont11: ; preds = %omp.private.copy23
# | .
# | .
# | .
# | 952: !1 = !{i32 2, !"Debug Info Version", i32 3}
# | 953: !2 = !{i32 2, !"CodeView", i32 1}
# | 954: !3 = !{!"flang version 24.0.0 (https://github.com/llvm/llvm-project 1de08861a865cb9aab77e0656c4716b562932014)"}
# | 955: !4 = !{i64 1}
# | 956: !5 = !{!6}
# | 957: !6 = !{i64 2, i64 -1, i64 -1, i1 true}
# | check:86'3 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Flang.Integration/cold_array_repacking.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\flang.exe -fc1 -fintrinsic-modules-path=C:\_work\llvm-project\llvm-project\build\lib\clang\24\finclude\flang\x86_64-pc-windows-msvc -frepack-arrays -emit-llvm C:\_work\llvm-project\llvm-project\flang\test\Integration\cold_array_repacking.f90 -o - | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Integration\cold_array_repacking.f90
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\flang.exe' -fc1 '-fintrinsic-modules-path=C:\_work\llvm-project\llvm-project\build\lib\clang\24\finclude\flang\x86_64-pc-windows-msvc' -frepack-arrays -emit-llvm 'C:\_work\llvm-project\llvm-project\flang\test\Integration\cold_array_repacking.f90' -o -
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\flang\test\Integration\cold_array_repacking.f90'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\flang\test\Integration\cold_array_repacking.f90:14:10: error: CHECK: expected string not found in input
# | ! CHECK: br i1 [[TMP13]], label %[[BB14:.*]], label %[[BB46]], !prof [[PROF2:![0-9]+]]
# | ^
# | <stdin>:27:22: note: scanning from here
# | %12 = and i1 %7, %11
# | ^
# | <stdin>:27:22: note: with "TMP13" equal to "%12"
# | %12 = and i1 %7, %11
# | ^
# | <stdin>:27:22: note: with "BB46" equal to "33"
# | %12 = and i1 %7, %11
# | ^
# | <stdin>:27:22: note: pattern attempts to capture variables: "BB14", "PROF2"
# | %12 = and i1 %7, %11
# | ^
# | <stdin>:28:2: note: possible intended match here
# | br i1 %12, label %13, label %32, !prof !3
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\flang\test\Integration\cold_array_repacking.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 22: %7 = icmp eq i1 %6, false
# | 23: %8 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i32 0, i32 0
# | 24: %9 = load ptr, ptr %8, align 8
# | 25: %10 = ptrtoint ptr %9 to i64
# | 26: %11 = icmp ne i64 %10, 0
# | 27: %12 = and i1 %7, %11
# | check:14'0 { search range start (exclusive)
# | check:14'1 error: no match found in search range
# | check:14'2 with "TMP13" equal to "%12"
# | check:14'3 with "BB46" equal to "33"
# | check:14'4 pattern attempts to capture variables: "BB14", "PROF2"
# | 28: br i1 %12, label %13, label %32, !prof !3
# | check:14'5 ? possible intended match
# | 29:
# | 30: 13: ; preds = %5
# | 31: %14 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i32 0, i32 7, i64 0, i32 0
# | 32: %15 = load i64, ptr %14, align 8
# | 33: %16 = getelementptr { ptr, i64, i32, i8, i8, i8, i8, [1 x [3 x i64]] }, ptr %0, i32 0, i32 7, i64 0, i32 1
# | .
# | .
# | .
# | 90: !llvm.module.flags = !{!1, !2}
# | 91:
# | 92: !0 = !{!"flang version 24.0.0 (https://github.com/llvm/llvm-project 1de08861a865cb9aab77e0656c4716b562932014)"}
# | 93: !1 = !{i32 2, !"Debug Info Version", i32 3}
# | 94: !2 = !{i32 2, !"CodeView", i32 1}
# | 95: !3 = !{!"branch_weights", i32 0, i32 1}
# | check:14'6 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/227215
More information about the flang-commits
mailing list