[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:01 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-aarch64-darwin` running on `doug-worker-4` while building `llvm` at step 6 "test-build-unified-tree-check-all".

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

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

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

Command Output (stderr):
--
RUN: at line 2: /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt < /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstCombine/and-or-icmps.ll -passes=instcombine -S | /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstCombine/and-or-icmps.ll
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/opt -passes=instcombine -S
+ /Users/buildbot/buildbot-root/aarch64-darwin/build/bin/FileCheck /Users/buildbot/buildbot-root/aarch64-darwin/llvm-project/llvm/test/Transforms/InstCombine/and-or-icmps.ll
/Users/buildbot/buildbot-root/aarch64-darwin/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: /Users/buildbot/buildbot-root/aarch64-darwin/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 
next:20'0         ^~~~~~~~~~~~~~~~~~~~~~~~
next:20'1         ^~                        captured var "B"
...

```

</details>

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


More information about the llvm-commits mailing list