[llvm] [SeparateConstOffsetFromGEP] Don't set unsound inbounds flag (PR #130616)
    Matt Arsenault via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Wed Mar 12 04:26:58 PDT 2025
    
    
  
================
@@ -682,10 +682,11 @@ define amdgpu_kernel void @store_load_vindex_kernel() {
 ; GFX9-NEXT:    s_addc_u32 flat_scratch_hi, s9, 0
 ; GFX9-NEXT:    v_mov_b32_e32 v1, v0
 ; GFX9-NEXT:    v_mov_b32_e32 v2, 15
+; GFX9-NEXT:    v_sub_u32_e32 v0, 0, v0
 ; GFX9-NEXT:    scratch_store_dword v1, v2, off
 ; GFX9-NEXT:    s_waitcnt vmcnt(0)
-; GFX9-NEXT:    v_sub_u32_e32 v0, 0, v0
-; GFX9-NEXT:    scratch_load_dword v0, v0, off offset:124 glc
----------------
arsenm wrote:
Wrong or not, this patch is not a solution if this was an incorrect addressing mode fold
https://github.com/llvm/llvm-project/pull/130616
    
    
More information about the llvm-commits
mailing list