[llvm] [WIP] Optimize S_MOV frame index elimination support (PR #101322)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 1 04:04:47 PDT 2024


================
@@ -835,13 +835,12 @@ define void @scalar_mov_materializes_frame_index_no_live_scc_no_live_sgprs__lowe
 ; GFX7-NEXT:    v_writelane_b32 v21, s56, 25
 ; GFX7-NEXT:    v_writelane_b32 v21, s57, 26
 ; GFX7-NEXT:    s_and_b64 s[4:5], 0, exec
-; GFX7-NEXT:    v_mov_b32_e32 v22, 16
 ; GFX7-NEXT:    v_writelane_b32 v21, s58, 27
 ; GFX7-NEXT:    ;;#ASMSTART
 ; GFX7-NEXT:    ; def s[0:15], s[16:31], s[32:47], s[48:55], s[56:57], s58, v[0:15], v[16:20], vcc
 ; GFX7-NEXT:    ;;#ASMEND
-; GFX7-NEXT:    v_mad_u32_u24 v22, v22, 64, s32
 ; GFX7-NEXT:    v_lshr_b32_e64 v22, s32, 6
+; GFX7-NEXT:    v_mad_u32_u24 v22, v22, 1, 16
----------------
arsenm wrote:

You've un-reassociated this 

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


More information about the llvm-commits mailing list