[llvm] AMDGPU: Handle folding frame indexes into s_add_i32 (PR #101694)

Christudasan Devadasan via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 00:17:57 PDT 2024


================
@@ -21,21 +21,21 @@ machineFunctionInfo:
 body:             |
   bb.0:
     ; MUBUFW64-LABEL: name: s_add_i32__inline_imm__fi_offset0
-    ; MUBUFW64: $sgpr4 = S_LSHR_B32 $sgpr32, 6, implicit-def dead $scc
-    ; MUBUFW64-NEXT: renamable $sgpr7 = S_ADD_I32 12, killed $sgpr4, implicit-def dead $scc
+    ; MUBUFW64: renamable $sgpr4 = S_LSHR_B32 $sgpr32, 6, implicit-def dead $scc
+    ; MUBUFW64-NEXT: renamable $sgpr7 = S_ADD_I32 $sgpr4, 12, implicit-def dead $scc
----------------
cdevadas wrote:

Missed the `killed` flag for sgpr4?
Same for a few more cases below.

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


More information about the llvm-commits mailing list