[flang-commits] [flang] [llvm] [OpenMPIRBuilder] Clear the debug location when emitting reduction helpers (PR #211395)
via flang-commits
flang-commits at lists.llvm.org
Thu Jul 23 06:19:02 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 143460 tests passed
* 3829 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### Flang
<details>
<summary>Flang.Integration/OpenMP/target-reduction-debug-loc.f90</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 18
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 -emit-llvm -fopenmp -fopenmp-is-target-device -triple amdgcn-amd-amdhsa -debug-info-kind=standalone -O0 -o - C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\target-reduction-debug-loc.f90 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\target-reduction-debug-loc.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' -emit-llvm -fopenmp -fopenmp-is-target-device -triple amdgcn-amd-amdhsa -debug-info-kind=standalone -O0 -o - 'C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\target-reduction-debug-loc.f90'
# 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\target-reduction-debug-loc.f90'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\target-reduction-debug-loc.f90:42:14: error: CHECK-NOT: excluded string found in input
# | ! CHECK-NOT: !dbg
# | ^
# | <stdin>:509:111: note: found here
# | %omp_global_thread_num = call i32 @__kmpc_global_thread_num(ptr addrspacecast (ptr addrspace(1) @5 to ptr)), !dbg !27
# | ^~~~
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\flang\test\Integration\OpenMP\target-reduction-debug-loc.f90
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 479: ; Function Attrs: nounwind
# | 480: declare i32 @__kmpc_get_warp_size() #2
# | 481:
# | 482: declare i64 @__kmpc_shuffle_int64(i64, i16, i16)
# | 483:
# | 484: define internal void @_omp_reduction_inter_warp_copy_func(ptr noundef %0, i32 noundef %1) #0 {
# | not:42'0 { search range start (exclusive)
# | 485: entry:
# | 486: %.addr = alloca ptr, align 8, addrspace(5)
# | 487: %.addr1 = alloca i32, align 4, addrspace(5)
# | 488: %.cnt.addr = alloca i32, align 4, addrspace(5)
# | 489: %.cnt.addr.ascast = addrspacecast ptr addrspace(5) %.cnt.addr to ptr
# | .
# | .
# | .
# | 504: %6 = load i32, ptr %.cnt.addr.ascast, align 4
# | 505: %7 = icmp ult i32 %6, 2
# | 506: br i1 %7, label %body, label %exit
# | 507:
# | 508: body: ; preds = %precond
# | 509: %omp_global_thread_num = call i32 @__kmpc_global_thread_num(ptr addrspacecast (ptr addrspace(1) @5 to ptr)), !dbg !27
# | not:42'1 !~~~ error: no match expected
# | 510: call void @__kmpc_barrier(ptr addrspacecast (ptr addrspace(1) @7 to ptr), i32 %omp_global_thread_num), !dbg !27
# | 511: %warp_master = icmp eq i32 %nvptx_lane_id, 0, !dbg !27
# | 512: br i1 %warp_master, label %then, label %else, !dbg !27
# | 513:
# | 514: then: ; preds = %body
# | .
# | .
# | .
# | 546: %19 = add nsw i32 %6, 1, !dbg !27
# | 547: store i32 %19, ptr %.cnt.addr.ascast, align 4, !dbg !27
# | 548: br label %precond, !dbg !27
# | 549:
# | 550: exit: ; preds = %precond
# | 551: ret void, !dbg !27
# | not:42'2 } search range end (exclusive)
# | 552: }
# | 553:
# | 554: ; Function Attrs: nounwind
# | 555: declare i32 @__kmpc_get_hardware_thread_id_in_block() #2
# | 556:
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# 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/211395
More information about the flang-commits
mailing list