[libcxx-commits] [libcxxabi] [llvm] [libc++abi][NFC] Enable modernize-loop-convert clang-tidy check (PR #213250)

via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 31 06:28:44 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 179936 tests passed
* 3607 tests skipped
* 2 tests failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.Analysis/UniformityAnalysis/AMDGPU/MIR/irreducible/diverged-entry-basic-gmir.mir (Likely Already Failing)</summary>
This test is already failing at the base commit.

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgpu7.00-- -run-pass=print-machine-uniformity -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/irreducible/diverged-entry-basic-gmir.mir 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/irreducible/diverged-entry-basic-gmir.mir
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -mtriple=amdgpu7.00-- -run-pass=print-machine-uniformity -o - /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/irreducible/diverged-entry-basic-gmir.mir
# 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/llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/irreducible/diverged-entry-basic-gmir.mir
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/irreducible/diverged-entry-basic-gmir.mir:7:15: error: CHECK-NEXT: is not on the line after the previous match
# | # CHECK-NEXT: depth=1: entries(bb.3 bb.1) bb.4 bb.2
# |               ^
# | <stdin>:6:2: note: 'next' match was here
# |  depth=1: entries(bb.3 bb.1) bb.4 bb.2
# |  ^
# | <stdin>:4:28: note: previous match ended here
# | CYCLES WITH DIVERGENT EXIT:
# |                            ^
# | <stdin>:5:1: note: non-matching line after previous match is here
# |  depth=2: entries(bb.4 bb.1) bb.2
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/UniformityAnalysis/AMDGPU/MIR/irreducible/diverged-entry-basic-gmir.mir
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: MachineUniformityInfo for function: @divergent_cycle_1 
# |           2: CYCLES ASSUMED DIVERGENT: 
# |           3:  depth=1: entries(bb.3 bb.1) bb.4 bb.2 
# |           4: CYCLES WITH DIVERGENT EXIT: 
# | next:7'0                               {   search range start (exclusive)
# |           5:  depth=2: entries(bb.4 bb.1) bb.2 
# |           6:  depth=1: entries(bb.3 bb.1) bb.4 bb.2 
# | next:7'1      !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~   error: match on wrong line
# |           7:  
# |           8: BLOCK bb.0 
# |           9: DEFINITIONS 
# |          10:  %0: %0:_(s32) = G_CONSTANT i32 0 
# |          11:  %1: %1:_(s32) = G_CONSTANT i32 1 
# |           .
# |           .
# |           .
# |          55: DEFINITIONS 
# |          56:  %13: %13:_(s32) = G_ADD %3:_, %1:_ 
# |          57: TERMINATORS 
# |          58:  S_ENDPGM 0 
# |          59: END BLOCK 
# |          60: MachineUniformityInfo for function: @uniform_cycle_1 
# | next:7'2                                                         }  search range end (exclusive)
# |          61:  
# |          62: BLOCK bb.0 
# |          63: DEFINITIONS 
# |          64:  %0: %0:_(s32) = G_CONSTANT i32 0 
# |          65:  %1: %1:_(s32) = G_CONSTANT i32 1 
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.Analysis/UniformityAnalysis/AMDGPU/irreducible/diverged-entry-basic.ll (Likely Already Failing)</summary>
This test is already failing at the base commit.

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/UniformityAnalysis/AMDGPU/irreducible/diverged-entry-basic.ll -mtriple amdgcn-- -passes='print<uniformity>' -disable-output 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/UniformityAnalysis/AMDGPU/irreducible/diverged-entry-basic.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/UniformityAnalysis/AMDGPU/irreducible/diverged-entry-basic.ll -mtriple amdgcn-- '-passes=print<uniformity>' -disable-output
# 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/llvm/test/Analysis/UniformityAnalysis/AMDGPU/irreducible/diverged-entry-basic.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/UniformityAnalysis/AMDGPU/irreducible/diverged-entry-basic.ll:9:10: error: CHECK: expected string not found in input
# | ; CHECK: depth=2: entries(S P) Q
# |          ^
# | <stdin>:6:27: note: scanning from here
# |  depth=1: entries(R P) S Q
# |                           ^
# | <stdin>:8:1: note: possible intended match here
# | BLOCK entry
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/UniformityAnalysis/AMDGPU/irreducible/diverged-entry-basic.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: UniformityInfo for function 'divergent_cycle_1': 
# |            2: CYCLES ASSUMED DIVERGENT: 
# |            3:  depth=1: entries(R P) S Q 
# |            4: CYCLES WITH DIVERGENT EXIT: 
# |            5:  depth=2: entries(S P) Q 
# |            6:  depth=1: entries(R P) S Q 
# | check:9'0                              {   search range start (exclusive)
# | check:9'1                                  error: no match found in search range
# |            7:  
# |            8: BLOCK entry 
# | check:9'2     ?             possible intended match
# |            9: DEFINITIONS 
# |           10:  %cond.uni = icmp slt i32 %a, 0 
# |           11:  DIVERGENT: %tid = call i32 @llvm.amdgcn.workitem.id.x() 
# |           12:  DIVERGENT: %cond.div = icmp slt i32 %tid, 0 
# |           13: TERMINATORS 
# |            .
# |            .
# |            .
# |           48: DEFINITIONS 
# |           49:  %ee = add i32 %b, 1 
# |           50: TERMINATORS 
# |           51:  ret void 
# |           52: END BLOCK 
# |           53: UniformityInfo for function 'uniform_cycle_1': 
# | check:9'3                                                   }  search range end (exclusive)
# |           54:  
# |           55: BLOCK entry 
# |           56: DEFINITIONS 
# |           57:  %cond.uni = icmp slt i32 %a, 0 
# |           58:  DIVERGENT: %tid = call i32 @llvm.amdgcn.workitem.id.x() 
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# 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/213250


More information about the libcxx-commits mailing list