[llvm] [SCEV] Introduce UDiv::mayTriggerUB (PR #217064)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 18 10:30:20 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 139967 tests passed
* 3713 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.Transforms/IndVarSimplify/rewrite-loop-exit-value.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -passes='loop(indvars),instcombine' -replexitval=always -S < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\IndVarSimplify\rewrite-loop-exit-value.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\IndVarSimplify\rewrite-loop-exit-value.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' '-passes=loop(indvars),instcombine' -replexitval=always -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\IndVarSimplify\rewrite-loop-exit-value.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\IndVarSimplify\rewrite-loop-exit-value.ll:166:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[INC8:%.*]] = phi i16 [ [[INC:%.*]], [[FOR_BODY]] ], [ 0, [[ENTRY:%.*]] ]
# | ^
# | <stdin>:93:10: note: scanning from here
# | for.body: ; preds = %for.body, %entry
# | ^
# | <stdin>:93:10: note: with "FOR_BODY" equal to "%for.body"
# | for.body: ; preds = %for.body, %entry
# | ^
# | <stdin>:93:10: note: pattern attempts to capture variables: "ENTRY", "INC", "INC8"
# | for.body: ; preds = %for.body, %entry
# | ^
# | <stdin>:103:2: note: possible intended match here
# | %3 = udiv i16 %2, %umax
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\IndVarSimplify\rewrite-loop-exit-value.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 88: ; Function Attrs: mustprogress
# | 89: define i16 @pr57336(i16 %end, i16 %m) #0 {
# | 90: entry:
# | 91: br label %for.body
# | 92:
# | 93: for.body: ; preds = %for.body, %entry
# | next:166'0 { search range start (exclusive)
# | next:166'1 error: no match found in search range
# | next:166'2 with "FOR_BODY" equal to "%for.body"
# | next:166'3 pattern attempts to capture variables: "ENTRY", "INC", "INC8"
# | 94: br i1 true, label %crit_edge, label %for.body
# | 95:
# | 96: crit_edge: ; preds = %for.body
# | 97: %0 = add i16 %end, 1
# | 98: %smax = call i16 @llvm.smax.i16(i16 %0, i16 0)
# | 99: %1 = icmp ult i16 %end, 32767
# | 100: %umin = zext i1 %1 to i16
# | 101: %2 = sub nsw i16 %smax, %umin
# | 102: %umax = call i16 @llvm.umax.i16(i16 %m, i16 1)
# | 103: %3 = udiv i16 %2, %umax
# | next:166'4 ? possible intended match
# | 104: %4 = add i16 %3, %umin
# | 105: ret i16 %4
# | 106: }
# | 107:
# | 108: ; Function Attrs: mustprogress vscale_range(2,1024)
# | 109: define i32 @vscale_slt_with_vp_umin(ptr captures(none) %A, i32 %n) #1 {
# | next:166'5 } search range end (exclusive)
# | 110: entry:
# | 111: %vscale = call i32 @llvm.vscale.i32()
# | 112: %VF = shl nuw nsw i32 %vscale, 2
# | 113: %cmp4 = icmp sgt i32 %n, 0
# | 114: br i1 %cmp4, label %for.body.preheader, label %early.exit
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# 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/217064
More information about the llvm-commits
mailing list