[llvm] Revert "[InstCombine] Folding `(icmp eq/ne (and X, -P2), INT_MIN)`" (PR #111236)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 4 23:35:56 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-win` running on `sie-win-worker` while building `llvm` at step 7 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/46/builds/6011

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/InstCombine/and-or-icmps.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe < Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstCombine\and-or-icmps.ll -passes=instcombine -S | z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstCombine\and-or-icmps.ll
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\opt.exe' -passes=instcombine -S
# executed command: 'z:\b\llvm-clang-x86_64-sie-win\build\bin\filecheck.exe' 'Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstCombine\and-or-icmps.ll'
# .---command stderr------------
# | Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstCombine\and-or-icmps.ll:3338:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[AND2:%.*]] = icmp slt i8 [[X:%.*]], -126
# |               ^
# | <stdin>:1604:28: note: scanning from here
# | define i1 @and_slt_to_mask(i8 %x) {
# |                            ^
# | <stdin>:1606:2: note: possible intended match here
# |  %and2 = icmp eq i8 %1, -128
# |  ^
# | 
# | Input file: <stdin>
# | Check file: Z:\b\llvm-clang-x86_64-sie-win\llvm-project\llvm\test\Transforms\InstCombine\and-or-icmps.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |               1: ; ModuleID = '<stdin>' 
# |               2: source_filename = "<stdin>" 
# |               3:  
# |               4: declare void @use(i1) 
# |               5:  
# |               6: declare void @use32(i32) 
# |               7:  
# |               8: define i1  at PR1817_1(i32 %X) { 
# | label:8'0                  ^~~~~~~~~~
# | label:8'1                  ^~~~~~~~~~
# |               9:  %B = icmp ult i32 %X, 10 
# | next:9'0          ^~~~~~~~~~~~~~~~~~~~~~~~
# | next:9'1          ^~                        captured var "B"
# | next:9'2                            ^~      captured var "X"
# |              10:  ret i1 %B 
# | next:10'0         ^~~~~~~~~
# | next:10'1                    with "B" equal to "%B"
# |              11: } 
# |              12:  
# |              13: define i1  at PR1817_1_logical(i32 %X) { 
# | label:19'0                 ^~~~~~~~~~~~~~~~~~
# | label:19'1                 ^~~~~~~~~~~~~~~~~~
# |              14:  %B = icmp ult i32 %X, 10 
...

```

</details>

https://github.com/llvm/llvm-project/pull/111236


More information about the llvm-commits mailing list