[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------------
# | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll:9:12: error: LE-NEXT: expected string not found in input
# | ; LE-NEXT: [[L1:%.*]] = load i16, ptr [[P:%.*]], align 1
# |            ^
# | <stdin>:6:38: note: scanning from here
# | define i16 @loadCombine_2consecutive(ptr %p) #0 {
# |                                      ^
# | <stdin>:6:38: note: pattern attempts to capture variables: "L1", "P"
# | define i16 @loadCombine_2consecutive(ptr %p) #0 {
# |                                      ^
# | <stdin>:8:2: note: possible intended match here
# |  %l1 = load i8, ptr %p, align 1
# |  ^
# | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll:59:12: error: LE-NEXT: expected string not found in input
# | ; LE-NEXT: [[L1:%.*]] = load i32, ptr [[P:%.*]], align 1
# |            ^
# | <stdin>:28:38: note: scanning from here
# | define i32 @loadCombine_4consecutive(ptr %p) #0 {
# |                                      ^
# | <stdin>:28:38: note: pattern attempts to capture variables: "L1", "P"
# | define i32 @loadCombine_4consecutive(ptr %p) #0 {
# |                                      ^
# | <stdin>:32:2: note: possible intended match here
# |  %l1 = load i8, ptr %p, align 1
# |  ^
# | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll:155:16: error: RV64LE-NEXT: is not on the line after the previous match
# | ; RV64LE-NEXT: [[P2:%.*]] = getelementptr i32, ptr [[P:%.*]], i32 2
# |                ^
# | <stdin>:72:2: note: 'next' match was here
# |  %p2 = getelementptr i32, ptr %p, i32 2
# |  ^
# | <stdin>:70:31: note: previous match ended here
# | define i128 @loadCombine_i128(ptr %p) #0 {
# |                               ^
# | <stdin>:71:1: note: non-matching line after previous match is here
# |  %p1 = getelementptr i32, ptr %p, i32 1
# | ^
# | /home/buildbot/buildbot-root/llvm-clang-x86_64-sie-ubuntu-fast/llvm-project/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll:313:16: error: RV64LE-NEXT: expected string not found in input
...

```

</details>

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


More information about the llvm-commits mailing list