[llvm] [AMDGPU] Fix eliminateFrameIndex assertion when reusing the frame register. (PR #215182)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 10 00:25:20 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 180250 tests passed
* 3645 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AMDGPU/eliminate-frame-index-flat-scratch-frame-reg-no-sgpr.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -O3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx942 < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/eliminate-frame-index-flat-scratch-frame-reg-no-sgpr.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/eliminate-frame-index-flat-scratch-frame-reg-no-sgpr.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/llc -O3 -mtriple=amdgcn-amd-amdhsa -mcpu=gfx942
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/eliminate-frame-index-flat-scratch-frame-reg-no-sgpr.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/eliminate-frame-index-flat-scratch-frame-reg-no-sgpr.ll:20:10: error: CHECK: expected string not found in input
# | ; CHECK: there is a frame register!
# | ^
# | <stdin>:1:1: note: scanning from here
# | .amdgcn_target "amdgcn-amd-amdhsa-unknown-gfx942"
# | ^
# | <stdin>:4:86: note: possible intended match here
# | .globl no_scavengeable_sgpr_with_frame_register ; -- Begin function no_scavengeable_sgpr_with_frame_register
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AMDGPU/eliminate-frame-index-flat-scratch-frame-reg-no-sgpr.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: .amdgcn_target "amdgcn-amd-amdhsa-unknown-gfx942"
# | check:20'0 { search range start (exclusive)
# | check:20'1 error: no match found in search range
# | 2: .amdhsa_code_object_version 6
# | 3: .text
# | 4: .globl no_scavengeable_sgpr_with_frame_register ; -- Begin function no_scavengeable_sgpr_with_frame_register
# | check:20'2 ? possible intended match
# | 5: .p2align 6
# | 6: .type no_scavengeable_sgpr_with_frame_register, at function
# | 7: no_scavengeable_sgpr_with_frame_register: ; @no_scavengeable_sgpr_with_frame_register
# | check:20'3 } search range end (exclusive)
# | 8: ; %bb.0: ; %entry
# | 9: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
# | 10: s_mov_b64 s[0:1], src_private_base
# | 11: v_mov_b64_e32 v[0:1], 0
# | 12: v_mov_b32_e32 v2, s1
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/215182
More information about the llvm-commits
mailing list