[llvm] [AMDGPU] 32-bit ABS is a legal DAG node (PR #163907)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 16 22:52:44 PDT 2025


================
@@ -14945,6 +14945,13 @@ SDValue SITargetLowering::performMinMaxCombine(SDNode *N,
     }
   }
 
+  // max(x, neg(x)) -> abs(x)
----------------
LU-JOHN wrote:

Removed smax transformation from this PR.  Will do it in a separate generic PR.


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


More information about the llvm-commits mailing list