[llvm] [AggressiveInstCombine] Use DL.fitsInLegalInteger instead of TTI.isTypeLegal in consecutive load/store combine. (PR #220310)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 11 12:46:02 PDT 2026
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-clang-x86_64-sie-ubuntu-fast` running on `sie-linux-worker` while building `llvm` at step 6 "test-build-unified-tree-check-all".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/144/builds/64923
<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/AggressiveInstCombine/RISCV/or-load.ll' FAILED ********************
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 2
/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt < /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll -passes=aggressive-instcombine -S -mtriple riscv64 -mattr=+unaligned-scalar-mem | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll --check-prefixes=ALL,LE,RV64LE
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt -passes=aggressive-instcombine -S -mtriple riscv64 -mattr=+unaligned-scalar-mem
# .---command stderr------------
# | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/opt: WARNING: failed to create target machine for 'riscv64': unable to get target for 'riscv64', see --version and --triple.
# `-----------------------------
# executed command: /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/build/bin/FileCheck /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll --check-prefixes=ALL,LE,RV64LE
# .---command stderr------------
# | [1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll:9:12: [0m[0;1;31merror: [0m[1mLE-NEXT: expected string not found in input
[0m# | [1m[0m; LE-NEXT: [[L1:%.*]] = load i16, ptr [[P:%.*]], align 1
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:6:38: [0m[0;1;30mnote: [0m[1mscanning from here
[0m# | [1m[0mdefine i16 @loadCombine_2consecutive(ptr %p) #0 {
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:6:38: [0m[0;1;30mnote: [0m[1mpattern attempts to capture variables: "L1", "P"
[0m# | [1m[0mdefine i16 @loadCombine_2consecutive(ptr %p) #0 {
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:8:2: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m# | [1m[0m %l1 = load i8, ptr %p, align 1
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll:59:12: [0m[0;1;31merror: [0m[1mLE-NEXT: expected string not found in input
[0m# | [1m[0m; LE-NEXT: [[L1:%.*]] = load i32, ptr [[P:%.*]], align 1
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:28:38: [0m[0;1;30mnote: [0m[1mscanning from here
[0m# | [1m[0mdefine i32 @loadCombine_4consecutive(ptr %p) #0 {
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:28:38: [0m[0;1;30mnote: [0m[1mpattern attempts to capture variables: "L1", "P"
[0m# | [1m[0mdefine i32 @loadCombine_4consecutive(ptr %p) #0 {
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:32:2: [0m[0;1;30mnote: [0m[1mpossible intended match here
[0m# | [1m[0m %l1 = load i8, ptr %p, align 1
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll:155:16: [0m[0;1;31merror: [0m[1mRV64LE-NEXT: is not on the line after the previous match
[0m# | [1m[0m; RV64LE-NEXT: [[P2:%.*]] = getelementptr i32, ptr [[P:%.*]], i32 2
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:72:2: [0m[0;1;30mnote: [0m[1m'next' match was here
[0m# | [1m[0m %p2 = getelementptr i32, ptr %p, i32 2
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:70:31: [0m[0;1;30mnote: [0m[1mprevious match ended here
[0m# | [1m[0mdefine i128 @loadCombine_i128(ptr %p) #0 {
# | [0;1;32m ^
[0m# | [0;1;32m[0m[1m<stdin>:71:1: [0m[0;1;30mnote: [0m[1mnon-matching line after previous match is here
[0m# | [1m[0m %p1 = getelementptr i32, ptr %p, i32 1
# | [0;1;32m^
[0m# | [0;1;32m[0m[1m/home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll:313:16: [0m[0;1;31merror: [0m[1mRV64LE-NEXT: expected string not found in input
...
```
</details>
https://github.com/llvm/llvm-project/pull/220310
More information about the llvm-commits
mailing list