[llvm] [AMDGPU] Fix S_ADD_I32 frame index folding emitting COPY with immediate (PR #212440)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 28 03:04:46 PDT 2026
================
@@ -0,0 +1,61 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
+; RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -O3 < %s | FileCheck %s
+;
+; eliminateFrameIndex must emit s_mov_b32 for S_ADD_I32 %fi, imm.
+
+define amdgpu_kernel void @kernel() {
----------------
adeshcom14 wrote:
did not find a good existing .ll file to add it into. Adding MIR test itself checks the purpose so maybe we can remove the .ll test instead.
https://github.com/llvm/llvm-project/pull/212440
More information about the llvm-commits
mailing list