[llvm] [DAGCombiner] Fold (smax x (neg x)) to (abs x) (PR #164322)
    Matt Arsenault via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Oct 20 19:58:36 PDT 2025
    
    
  
================
@@ -15,8 +15,8 @@ define amdgpu_kernel void @s_abs_i32(ptr addrspace(1) %out, i32 %val) nounwind {
 }
 
 ; GCN-LABEL: name: v_abs_i32
-; SI:  V_SUB_CO_U32_e64
-; GFX900: V_SUB_U32_e64
+; SI:  V_SUB_CO_U32_e32
----------------
arsenm wrote:
This is an encoding shrink which is good, but why do none of these changes show a new abs use? 
https://github.com/llvm/llvm-project/pull/164322
    
    
More information about the llvm-commits
mailing list