[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:05:02 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `openmp-offload-amdgpu-runtime-2` running on `rocm-worker-hw-02` while building `llvm` at step 3 "annotate".

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

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

```
Step 3 (annotate) failure: 'python ../llvm.src/offload/ci/openmp-offload-amdgpu-libc-runtime.py ...' (failure)
...
PASS: LLVM :: ThinLTO/X86/visibility-macho.ll (47463 of 70344)
PASS: LLVM :: ThinLTO/X86/weak_externals.ll (47464 of 70344)
PASS: LLVM :: Transforms/ADCE/basictest.ll (47465 of 70344)
PASS: LLVM :: Transforms/ADCE/basictest1.ll (47466 of 70344)
PASS: LLVM :: Transforms/AggressiveInstCombine/X86/fptosisat.ll (47467 of 70344)
PASS: LLVM :: Transforms/AggressiveInstCombine/X86/lower-table-based-log2-basics.ll (47468 of 70344)
PASS: LLVM :: ThinLTO/X86/reference_non_importable.ll (47469 of 70344)
PASS: LLVM :: ThinLTO/X86/referenced_by_constant.ll (47470 of 70344)
PASS: LLVM :: Transforms/AggressiveInstCombine/X86/pr175590.ll (47471 of 70344)
PASS: LLVM :: Transforms/AggressiveInstCombine/X86/sqrt.ll (47472 of 70344)
FAIL: LLVM :: Transforms/AggressiveInstCombine/RISCV/or-load.ll (47473 of 70344)
******************** TEST 'LLVM :: Transforms/AggressiveInstCombine/RISCV/or-load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/opt < /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll -passes=aggressive-instcombine -S -mtriple riscv64 -mattr=+unaligned-scalar-mem | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll --check-prefixes=ALL,LE,RV64LE
# executed command: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/opt -passes=aggressive-instcombine -S -mtriple riscv64 -mattr=+unaligned-scalar-mem
# .---command stderr------------
# | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/opt: WARNING: failed to create target machine for 'riscv64': unable to get target for 'riscv64', see --version and --triple.
# `-----------------------------
# executed command: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll --check-prefixes=ALL,LE,RV64LE
# .---command stderr------------
# | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/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/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/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/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll:155:16: error: RV64LE-NEXT: is not on the line after the previous match
Step 10 (run check-llvm) failure: run check-llvm (failure)
...
PASS: LLVM :: ThinLTO/X86/visibility-macho.ll (47463 of 70344)
PASS: LLVM :: ThinLTO/X86/weak_externals.ll (47464 of 70344)
PASS: LLVM :: Transforms/ADCE/basictest.ll (47465 of 70344)
PASS: LLVM :: Transforms/ADCE/basictest1.ll (47466 of 70344)
PASS: LLVM :: Transforms/AggressiveInstCombine/X86/fptosisat.ll (47467 of 70344)
PASS: LLVM :: Transforms/AggressiveInstCombine/X86/lower-table-based-log2-basics.ll (47468 of 70344)
PASS: LLVM :: ThinLTO/X86/reference_non_importable.ll (47469 of 70344)
PASS: LLVM :: ThinLTO/X86/referenced_by_constant.ll (47470 of 70344)
PASS: LLVM :: Transforms/AggressiveInstCombine/X86/pr175590.ll (47471 of 70344)
PASS: LLVM :: Transforms/AggressiveInstCombine/X86/sqrt.ll (47472 of 70344)
FAIL: LLVM :: Transforms/AggressiveInstCombine/RISCV/or-load.ll (47473 of 70344)
******************** TEST 'LLVM :: Transforms/AggressiveInstCombine/RISCV/or-load.ll' FAILED ********************
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/opt < /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll -passes=aggressive-instcombine -S -mtriple riscv64 -mattr=+unaligned-scalar-mem | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll --check-prefixes=ALL,LE,RV64LE
# executed command: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/opt -passes=aggressive-instcombine -S -mtriple riscv64 -mattr=+unaligned-scalar-mem
# .---command stderr------------
# | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/opt: WARNING: failed to create target machine for 'riscv64': unable to get target for 'riscv64', see --version and --triple.
# `-----------------------------
# executed command: /home/botworker/builds/openmp-offload-amdgpu-runtime-2/build/llvm.build/bin/FileCheck /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll --check-prefixes=ALL,LE,RV64LE
# .---command stderr------------
# | /home/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/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/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/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/botworker/builds/openmp-offload-amdgpu-runtime-2/llvm.src/llvm/test/Transforms/AggressiveInstCombine/RISCV/or-load.ll:155:16: error: RV64LE-NEXT: is not on the line after the previous match

```

</details>

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


More information about the llvm-commits mailing list