[llvm] [InstCombine] Reassociate commutative binops over select/phi/minmax (PR #187493)

via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 01:17:33 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 138558 tests passed
* 3556 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.Transforms/InstCombine/commutative-operation-over-minmax.ll</summary>

```
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -passes=instcombine -S < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\InstCombine\commutative-operation-over-minmax.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\InstCombine\commutative-operation-over-minmax.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -passes=instcombine -S
# .---command stderr------------
# | noundef applies only to load instructions
# |   %lhs = add i32 %z, %min, !noundef !0
# | noundef applies only to load instructions
# |   %ret = add nuw nsw i32 %lhs, %max, !noundef !0
# | noundef applies only to load instructions
# |   %inner = fadd reassoc nnan ninf nsz float %a, %s0, !noundef !0
# | noundef applies only to load instructions
# |   %retf = fadd reassoc nnan ninf nsz float %inner, %s1, !noundef !0
# | c:\_work\llvm-project\llvm-project\build\bin\opt.exe: -: error: input module is broken!
# `-----------------------------
# error: command failed with exit status: 1
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\InstCombine\commutative-operation-over-minmax.ll'
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\InstCombine\commutative-operation-over-minmax.ll
# `-----------------------------
# error: command failed with exit status: 2

--

```
</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/187493


More information about the llvm-commits mailing list