[llvm] [AMDGPU] Canonicalize constant CLAMP source (PR #207902)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 30 10:04:02 PDT 2026
================
@@ -1892,27 +1891,27 @@ define amdgpu_kernel void @v_clamp_constant_preserve_denorm_f32(ptr addrspace(1)
; GFX9: ; %bb.0:
; GFX9-NEXT: s_load_dwordx2 s[0:1], s[4:5], 0x24
; GFX9-NEXT: v_lshlrev_b32_e32 v0, 2, v0
-; GFX9-NEXT: v_mov_b32_e32 v1, 0x7fffff
+; GFX9-NEXT: v_mov_b32_e32 v1, 0
; GFX9-NEXT: s_waitcnt lgkmcnt(0)
; GFX9-NEXT: global_store_dword v0, v1, s[0:1]
; GFX9-NEXT: s_endpgm
;
; GFX11-LABEL: v_clamp_constant_preserve_denorm_f32:
----------------
arsenm wrote:
Function name doesn't match anymore?
https://github.com/llvm/llvm-project/pull/207902
More information about the llvm-commits
mailing list