[llvm] [SCCP] Simplify general icmp instructions (PR #165976)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 19 05:10:10 PST 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 129585 tests passed
* 2871 tests skipped
* 7 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.Transforms/PGOProfile/cspgo_profile_summary.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
c:\_work\llvm-project\llvm-project\build\bin\llvm-profdata.exe merge C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PGOProfile/Inputs/cspgo.proftext -o C:\_work\llvm-project\llvm-project\build\test\Transforms\PGOProfile\Output\cspgo_profile_summary.ll.tmp.profdata
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llvm-profdata.exe' merge 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PGOProfile/Inputs/cspgo.proftext' -o 'C:\_work\llvm-project\llvm-project\build\test\Transforms\PGOProfile\Output\cspgo_profile_summary.ll.tmp.profdata'
# note: command had no output on stdout or stderr
# RUN: at line 4
c:\_work\llvm-project\llvm-project\build\bin\opt.exe < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PGOProfile\cspgo_profile_summary.ll -passes='default<O2>' -disable-preinline -pgo-instrument-entry=false -pgo-kind=pgo-instr-use-pipeline -profile-file=C:\_work\llvm-project\llvm-project\build\test\Transforms\PGOProfile\Output\cspgo_profile_summary.ll.tmp.profdata -S | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PGOProfile\cspgo_profile_summary.ll --check-prefix=PGOSUMMARY
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' '-passes=default<O2>' -disable-preinline -pgo-instrument-entry=false -pgo-kind=pgo-instr-use-pipeline '-profile-file=C:\_work\llvm-project\llvm-project\build\test\Transforms\PGOProfile\Output\cspgo_profile_summary.ll.tmp.profdata' -S
# 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\llvm\test\Transforms\PGOProfile\cspgo_profile_summary.ll' --check-prefix=PGOSUMMARY
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PGOProfile\cspgo_profile_summary.ll:69:15: error: PGOSUMMARY: expected string not found in input
# | ; PGOSUMMARY: %even.odd = select i1 %tobool{{[0-9]*}}, ptr @even, ptr @odd
# | ^
# | <stdin>:20:27: note: scanning from here
# | define dso_local void @bar(i32 %n) local_unnamed_addr #1 !prof !35 {
# | ^
# | <stdin>:99:2: note: possible intended match here
# | %even.odd.i1 = select i1 %1, ptr @odd, ptr @even, !prof !36
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PGOProfile\cspgo_profile_summary.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 15: %i.0.i.0.i.0.i.0.i.0. = load volatile i32, ptr %i, align 4
# | 16: ret i32 %i.0.i.0.i.0.i.0.i.0.
# | 17: }
# | 18:
# | 19: ; Function Attrs: inlinehint mustprogress nofree norecurse nosync nounwind willreturn memory(readwrite, inaccessiblemem: none, target_mem0: none, target_mem1: none)
# | 20: define dso_local void @bar(i32 %n) local_unnamed_addr #1 !prof !35 {
# | check:69'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 21: entry:
# | check:69'0 ~~~~~~~
# | 22: %0 = and i32 %n, 1
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~
# | 23: %1 = icmp eq i32 %0, 0
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 24: %even.odd = select i1 %1, ptr @even, ptr @odd, !prof !36
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 25: %2 = load i32, ptr %even.odd, align 4
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 94: store i32 %spec.select.i, ptr @not_six, align 4
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 95: br label %bar.exit
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~
# | 96:
# | check:69'0 ~
# | 97: bar.exit: ; preds = %for.body, %5
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 98: %add = add nsw i32 %i.i.0.i.i.0.i.i.0.i.0.i.0.i.0.i.0..i, 1
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 99: %even.odd.i1 = select i1 %1, ptr @odd, ptr @even, !prof !36
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:69'1 ? possible intended match
# | 100: %9 = load i32, ptr %even.odd.i1, align 4
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 101: %inc.i2 = add i32 %9, 1
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 102: store i32 %inc.i2, ptr %even.odd.i1, align 4
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 103: %rem.1.i3 = srem i32 %add, 6
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 104: %mul.2.i4 = shl nsw i32 %add, 1
# | check:69'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.Transforms/PhaseOrdering/ARM/arm_mult_q15.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PhaseOrdering\ARM\arm_mult_q15.ll -passes="default<O3>" -S | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PhaseOrdering\ARM\arm_mult_q15.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' '-passes=default<O3>' -S
# 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\llvm\test\Transforms\PhaseOrdering\ARM\arm_mult_q15.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PhaseOrdering\ARM\arm_mult_q15.ll:17:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[MIN_ITERS_CHECK:%.*]] = icmp ult i32 [[BLOCKSIZE]], 8
# | ^
# | <stdin>:12:22: note: scanning from here
# | while.body.preheader: ; preds = %entry
# | ^
# | <stdin>:12:22: note: with "BLOCKSIZE" equal to "%blockSize"
# | while.body.preheader: ; preds = %entry
# | ^
# | <stdin>:13:13: note: possible intended match here
# | %min.iters.check = icmp ult i32 %blockSize, 4
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PhaseOrdering\ARM\arm_mult_q15.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 7: define void @arm_mult_q15(ptr readonly captures(none) %pSrcA, ptr readonly captures(none) %pSrcB, ptr noalias writeonly captures(none) %pDst, i32 %blockSize) local_unnamed_addr #0 {
# | 8: entry:
# | 9: %cmp.not2 = icmp eq i32 %blockSize, 0
# | 10: br i1 %cmp.not2, label %while.end, label %while.body.preheader
# | 11:
# | 12: while.body.preheader: ; preds = %entry
# | next:17'0 X~~~~~~~~~~~~~~~~~ error: no match found
# | next:17'1 with "BLOCKSIZE" equal to "%blockSize"
# | 13: %min.iters.check = icmp ult i32 %blockSize, 4
# | next:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:17'2 ? possible intended match
# | 14: br i1 %min.iters.check, label %while.body.preheader15, label %vector.ph
# | next:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 15:
# | next:17'0 ~
# | 16: vector.ph: ; preds = %while.body.preheader
# | next:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 17: %n.vec = and i32 %blockSize, -4
# | next:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 18: %0 = and i32 %blockSize, 3
# | next:17'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.Transforms/PhaseOrdering/scev-custom-dl.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -passes='default<O3>,print<scalar-evolution>' -disable-output -S < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PhaseOrdering\scev-custom-dl.ll 2>&1 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PhaseOrdering\scev-custom-dl.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' '-passes=default<O3>,print<scalar-evolution>' -disable-output -S
# 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\llvm\test\Transforms\PhaseOrdering\scev-custom-dl.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PhaseOrdering\scev-custom-dl.ll:158:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: %3 = add i32 %z.0.reg2mem.0, %tmp10
# | ^
# | <stdin>:69:39: note: scanning from here
# | --> (%x + %y) U: full-set S: full-set
# | ^
# | <stdin>:70:2: note: possible intended match here
# | %4 = add i32 %z.0.reg2mem.0, %tmp10
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\PhaseOrdering\scev-custom-dl.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 64: %indvar.next = add nuw nsw i32 %indvar, 1
# | 65: --> {1,+,1}<nuw><nsw><%bb1> U: [1,257) S: [1,257) Exits: 256 LoopDispositions: { %bb1: Computable }
# | 66: %tmp10 = mul i32 %x, 255
# | 67: --> (255 * %x) U: full-set S: full-set
# | 68: %z.0.reg2mem.0 = add i32 %y, %x
# | 69: --> (%x + %y) U: full-set S: full-set
# | next:158'0 X error: no match found
# | 70: %4 = add i32 %z.0.reg2mem.0, %tmp10
# | next:158'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:158'1 ? possible intended match
# | 71: --> ((256 * %x) + %y) U: full-set S: full-set
# | next:158'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 72: Determining loop execution counts for: @test_loop_idiom_recogize
# | next:158'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 73: Loop %bb1: backedge-taken count is i32 255
# | next:158'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 74: Loop %bb1: constant max backedge-taken count is i32 255
# | next:158'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 75: Loop %bb1: symbolic max backedge-taken count is i32 255
# | next:158'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.Transforms/SCCP/conditions-ranges.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\conditions-ranges.ll -passes=ipsccp -S | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\conditions-ranges.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -passes=ipsccp -S
# 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\llvm\test\Transforms\SCCP\conditions-ranges.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\conditions-ranges.ll:381:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[BC_2:%.*]] = icmp ugt i32 [[B]], 20
# | ^
# | <stdin>:187:25: note: scanning from here
# | call void @use(i1 %c.2)
# | ^
# | <stdin>:187:25: note: with "B" equal to "%b"
# | call void @use(i1 %c.2)
# | ^
# | <stdin>:198:2: note: possible intended match here
# | %c.4 = icmp ugt i32 %b, 21
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\conditions-ranges.ll:718:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[CMP12:%.*]] = icmp slt i32 [[J_0]], 2
# | ^
# | <stdin>:335:56: note: scanning from here
# | %j.0 = phi i32 [ 0, %for.body ], [ %inc, %for.body14 ]
# | ^
# | <stdin>:335:56: note: with "J_0" equal to "%j.0"
# | %j.0 = phi i32 [ 0, %for.body ], [ %inc, %for.body14 ]
# | ^
# | <stdin>:336:2: note: possible intended match here
# | %0 = icmp ult i32 %j.0, 2
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\conditions-ranges.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 182: call void @use(i1 true)
# | 183: call void @use(i1 true)
# | 184: %c.1 = icmp eq i32 %b, 11
# | 185: call void @use(i1 %c.1)
# | 186: %c.2 = icmp ugt i32 %b, 11
# | 187: call void @use(i1 %c.2)
# | next:381'0 X error: no match found
# | next:381'1 with "B" equal to "%b"
# | 188: %0 = icmp uge i32 %b, 21
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 189: br i1 %0, label %true.2, label %false.2
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 190:
# | next:381'0 ~
# | 191: true.2: ; preds = %true
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 192: call void @use(i1 false)
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 193: call void @use(i1 false)
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 194: call void @use(i1 true)
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 195: call void @use(i1 true)
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 196: %c.3 = icmp eq i32 %b, 21
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 197: call void @use(i1 %c.3)
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 198: %c.4 = icmp ugt i32 %b, 21
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:381'2 ? possible intended match
# | 199: call void @use(i1 %c.4)
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 200: %c.5 = icmp ugt i32 %b, 34
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 201: call void @use(i1 %c.5)
# | next:381'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 202: ret void
# | next:381'0 ~~~~~~~~~~
# | 203:
# | next:381'0 ~
# | .
# | .
# | .
# | 330:
# | 331: for.body: ; preds = %for.cond
# | 332: br label %for.cond11
# | 333:
# | 334: for.cond11: ; preds = %for.body14, %for.body
# | 335: %j.0 = phi i32 [ 0, %for.body ], [ %inc, %for.body14 ]
# | next:718'0 X error: no match found
# | next:718'1 with "J_0" equal to "%j.0"
# | 336: %0 = icmp ult i32 %j.0, 2
# | next:718'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:718'2 ? possible intended match
# | 337: br i1 %0, label %for.body14, label %for.cond.cleanup13
# | next:718'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 338:
# | next:718'0 ~
# | 339: for.cond.cleanup13: ; preds = %for.cond11
# | next:718'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 340: %inc27 = add nsw i32 %i.0, 1
# | next:718'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 341: br label %for.cond
# | next:718'0 ~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.Transforms/SCCP/resolvedundefsin-tracked-fn.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -passes=ipsccp -S C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\resolvedundefsin-tracked-fn.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\resolvedundefsin-tracked-fn.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -passes=ipsccp -S 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\resolvedundefsin-tracked-fn.ll'
# 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\llvm\test\Transforms\SCCP\resolvedundefsin-tracked-fn.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\resolvedundefsin-tracked-fn.ll:61:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TOBOOL:%.*]] = icmp ne i32 [[I]], 0
# | ^
# | <stdin>:32:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:32:7: note: with "I" equal to "%i"
# | entry:
# | ^
# | <stdin>:38:5: note: possible intended match here
# | %tobool1 = icmp ne i32 %call, 0
# | ^
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\resolvedundefsin-tracked-fn.ll:226:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TOBOOL:%.*]] = icmp ne i32 [[I]], 0
# | ^
# | <stdin>:110:7: note: scanning from here
# | entry:
# | ^
# | <stdin>:110:7: note: with "I" equal to "%i"
# | entry:
# | ^
# | <stdin>:116:5: note: possible intended match here
# | %tobool1 = icmp ne i32 %call, 0
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\resolvedundefsin-tracked-fn.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 27: call void @use.1(i1 false)
# | 28: ret i32 undef
# | 29: }
# | 30:
# | 31: define internal i1 @test1_g(ptr %h, i32 range(i32 0, 2) %i) {
# | 32: entry:
# | next:61'0 X error: no match found
# | next:61'1 with "I" equal to "%i"
# | 33: %0 = icmp eq i32 %i, 1
# | next:61'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 34: br i1 %0, label %land.rhs, label %land.end
# | next:61'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 35:
# | next:61'0 ~
# | 36: land.rhs: ; preds = %entry
# | next:61'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 37: %call = call i32 (...) @test1_j()
# | next:61'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 38: %tobool1 = icmp ne i32 %call, 0
# | next:61'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:61'2 ? possible intended match
# | 39: br label %land.end
# | next:61'0 ~~~~~~~~~~~~~~~~~~~~
# | 40:
# | next:61'0 ~
# | 41: land.end: ; preds = %land.rhs, %entry
# | next:61'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 42: %1 = phi i1 [ false, %entry ], [ %tobool1, %land.rhs ]
# | next:61'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 43: ret i1 poison
# | next:61'0 ~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | 105: exit: ; preds = %loop
# | 106: ret i32 undef
# | 107: }
# | 108:
# | 109: define internal i1 @test3_g(ptr %h, i32 range(i32 0, 2) %i) {
# | 110: entry:
# | next:226'0 X error: no match found
# | next:226'1 with "I" equal to "%i"
# | 111: %0 = icmp eq i32 %i, 1
# | next:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~
# | 112: br i1 %0, label %land.rhs, label %land.end
# | next:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 113:
# | next:226'0 ~
# | 114: land.rhs: ; preds = %entry
# | next:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 115: %call = call i32 (...) @test3_j()
# | next:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 116: %tobool1 = icmp ne i32 %call, 0
# | next:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:226'2 ? possible intended match
# | 117: br label %land.end
# | next:226'0 ~~~~~~~~~~~~~~~~~~~~
# | 118:
# | next:226'0 ~
# | 119: land.end: ; preds = %land.rhs, %entry
# | next:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 120: %1 = phi i1 [ false, %entry ], [ %tobool1, %land.rhs ]
# | next:226'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 121: ret i1 poison
# | next:226'0 ~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.Transforms/SCCP/widening.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\widening.ll -passes=sccp -S | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe --check-prefixes=CHECK,SCCP C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\widening.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\widening.ll' -passes=sccp -S
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' --check-prefixes=CHECK,SCCP 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\widening.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\widening.ll:246:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[C_1:%.*]] = icmp slt i32 [[IV]], 2
# | ^
# | <stdin>:139:55: note: scanning from here
# | %iv = phi i32 [ 0, %entry ], [ %iv.next, %loop.body ]
# | ^
# | <stdin>:139:55: note: with "IV" equal to "%iv"
# | %iv = phi i32 [ 0, %entry ], [ %iv.next, %loop.body ]
# | ^
# | <stdin>:140:2: note: possible intended match here
# | %0 = icmp ult i32 %iv, 2
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\SCCP\widening.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 134: define void @loop_with_header_1(i32 %x) {
# | 135: entry:
# | 136: br label %loop.header
# | 137:
# | 138: loop.header: ; preds = %loop.body, %entry
# | 139: %iv = phi i32 [ 0, %entry ], [ %iv.next, %loop.body ]
# | next:246'0 X error: no match found
# | next:246'1 with "IV" equal to "%iv"
# | 140: %0 = icmp ult i32 %iv, 2
# | next:246'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:246'2 ? possible intended match
# | 141: br i1 %0, label %loop.body, label %exit
# | next:246'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 142:
# | next:246'0 ~
# | 143: loop.body: ; preds = %loop.header
# | next:246'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 144: call void @use(i1 true)
# | next:246'0 ~~~~~~~~~~~~~~~~~~~~~~~~~
# | 145: %iv.next = add nuw nsw i32 %iv, 1
# | next:246'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
### Clang
<details>
<summary>Clang.CodeGen/AArch64/pure-scalable-args.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\23\include -nostdsysteminc -O3 -triple aarch64 -target-feature +sve -target-feature +sve2p1 -mvscale-min=1 -mvscale-max=1 -emit-llvm -o - C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\pure-scalable-args.c | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\pure-scalable-args.c --check-prefixes=CHECK,CHECK-AAPCS
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\23\include' -nostdsysteminc -O3 -triple aarch64 -target-feature +sve -target-feature +sve2p1 -mvscale-min=1 -mvscale-max=1 -emit-llvm -o - 'C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\pure-scalable-args.c'
# 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\clang\test\CodeGen\AArch64\pure-scalable-args.c' --check-prefixes=CHECK,CHECK-AAPCS
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\pure-scalable-args.c:408:22: error: CHECK-AAPCS-NEXT: expected string not found in input
# | // CHECK-AAPCS-NEXT: %inreg = icmp samesign ult i32 %gr_offs, -7
# | ^
# | <stdin>:467:50: note: scanning from here
# | store i32 %new_reg_offs, ptr %gr_offs_p, align 8
# | ^
# | <stdin>:468:2: note: possible intended match here
# | %1 = icmp samesign ult i32 %gr_offs, -7
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\CodeGen\AArch64\pure-scalable-args.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 462: %0 = icmp sgt i32 %gr_offs, -1
# | 463: br i1 %0, label %vaarg.on_stack, label %vaarg.maybe_reg
# | 464:
# | 465: vaarg.maybe_reg: ; preds = %entry
# | 466: %new_reg_offs = add nsw i32 %gr_offs, 8
# | 467: store i32 %new_reg_offs, ptr %gr_offs_p, align 8
# | next:408'0 X error: no match found
# | 468: %1 = icmp samesign ult i32 %gr_offs, -7
# | next:408'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:408'1 ? possible intended match
# | 469: br i1 %1, label %vaarg.in_reg, label %vaarg.on_stack
# | next:408'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 470:
# | next:408'0 ~
# | 471: vaarg.in_reg: ; preds = %vaarg.maybe_reg
# | next:408'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 472: %reg_top_p = getelementptr inbounds nuw i8, ptr %ap, i64 8
# | next:408'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 473: %reg_top = load ptr, ptr %reg_top_p, align 8
# | next:408'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/165976
More information about the llvm-commits
mailing list