[llvm] [InstCombine] Fix #163110: Support peeling off matching shifts from icmp operands via canEvaluateShifted (PR #165975)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 06:26:56 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `sanitizer-x86_64-linux-bootstrap-asan` running on `sanitizer-buildbot2` while building `llvm` at step 2 "annotate".

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

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

```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 97389 of 97937 tests, 64 workers --
Testing:  0.. 10.. 20.
FAIL: LLVM :: Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll (26146 of 97389)
******************** TEST 'LLVM :: Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt < /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll -passes='print<block-freq>' -disable-output 2>&1 | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll
# executed command: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt '-passes=print<block-freq>' -disable-output
# note: command had no output on stdout or stderr
# executed command: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll
# .---command stderr------------
# | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll:28:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: loop.4: float = 0.0,
# |               ^
# | <stdin>:6:29: note: scanning from here
# |  - loop.3: float = 0.0000000000000000002, int = 1
# |                             ^
# | <stdin>:7:4: note: possible intended match here
# |  - loop.4: float = 0.00000000000000000005421, int = 1
# |    ^
# | 
# | Input file: <stdin>
# | Check file: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: Printing analysis results of BFI for function 'extremely_likely_loop_successor': 
# |            2: block-frequency-info: extremely_likely_loop_successor 
# |            3:  - entry: float = 1.0, int = 18014398509481984 
# |            4:  - loop: float = 1.0, int = 18014398509481984 
# |            5:  - loop.2: float = 0.00000000046566, int = 8388608 
# |            6:  - loop.3: float = 0.0000000000000000002, int = 1 
# | next:28'0                                 X~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            7:  - loop.4: float = 0.00000000000000000005421, int = 1 
# | next:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:28'1        ?                                                   possible intended match
Step 11 (stage2/asan check) failure: stage2/asan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 97389 of 97937 tests, 64 workers --
Testing:  0.. 10.. 20.
FAIL: LLVM :: Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll (26146 of 97389)
******************** TEST 'LLVM :: Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt < /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll -passes='print<block-freq>' -disable-output 2>&1 | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll
# executed command: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/opt '-passes=print<block-freq>' -disable-output
# note: command had no output on stdout or stderr
# executed command: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll
# .---command stderr------------
# | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll:28:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: loop.4: float = 0.0,
# |               ^
# | <stdin>:6:29: note: scanning from here
# |  - loop.3: float = 0.0000000000000000002, int = 1
# |                             ^
# | <stdin>:7:4: note: possible intended match here
# |  - loop.4: float = 0.00000000000000000005421, int = 1
# |    ^
# | 
# | Input file: <stdin>
# | Check file: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: Printing analysis results of BFI for function 'extremely_likely_loop_successor': 
# |            2: block-frequency-info: extremely_likely_loop_successor 
# |            3:  - entry: float = 1.0, int = 18014398509481984 
# |            4:  - loop: float = 1.0, int = 18014398509481984 
# |            5:  - loop.2: float = 0.00000000046566, int = 8388608 
# |            6:  - loop.3: float = 0.0000000000000000002, int = 1 
# | next:28'0                                 X~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            7:  - loop.4: float = 0.00000000000000000005421, int = 1 
# | next:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:28'1        ?                                                   possible intended match
Step 13 (stage3/asan check) failure: stage3/asan check (failure)
...
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using lld-link: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/lld-link
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using ld64.lld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/ld64.lld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/llvm/config.py:569: note: using wasm-ld: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/wasm-ld
llvm-lit: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/utils/lit/lit/main.py:74: note: The test suite configuration requested an individual test timeout of 0 seconds but a timeout of 900 seconds was requested on the command line. Forcing timeout to be 900 seconds.
-- Testing: 94176 tests, 64 workers --
Testing:  0.. 10.. 20.
FAIL: LLVM :: Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll (26160 of 94176)
******************** TEST 'LLVM :: Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 1
/home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/opt < /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll -passes='print<block-freq>' -disable-output 2>&1 | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll
# executed command: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/opt '-passes=print<block-freq>' -disable-output
# note: command had no output on stdout or stderr
# executed command: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm_build2_asan/bin/FileCheck /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll
# .---command stderr------------
# | /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll:28:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: loop.4: float = 0.0,
# |               ^
# | <stdin>:6:29: note: scanning from here
# |  - loop.3: float = 0.0000000000000000002, int = 1
# |                             ^
# | <stdin>:7:4: note: possible intended match here
# |  - loop.4: float = 0.00000000000000000005421, int = 1
# |    ^
# | 
# | Input file: <stdin>
# | Check file: /home/b/sanitizer-x86_64-linux-bootstrap-asan/build/llvm-project/llvm/test/Analysis/BlockFrequencyInfo/extremely-likely-loop-successor.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            1: Printing analysis results of BFI for function 'extremely_likely_loop_successor': 
# |            2: block-frequency-info: extremely_likely_loop_successor 
# |            3:  - entry: float = 1.0, int = 18014398509481984 
# |            4:  - loop: float = 1.0, int = 18014398509481984 
# |            5:  - loop.2: float = 0.00000000046566, int = 8388608 
# |            6:  - loop.3: float = 0.0000000000000000002, int = 1 
# | next:28'0                                 X~~~~~~~~~~~~~~~~~~~~~ error: no match found
# |            7:  - loop.4: float = 0.00000000000000000005421, int = 1 
# | next:28'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:28'1        ?                                                   possible intended match

```

</details>

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


More information about the llvm-commits mailing list