[llvm] [AMDGPU] exclude selection pattern for s_max/min_f32/16 for gfx1170 (PR #207308)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 05:50:55 PDT 2026


================
@@ -2794,6 +2794,11 @@ def NotHasMinMaxDenormModes : Predicate<"!Subtarget->supportsMinMaxDenormModes()
 
 def HasFminFmaxLegacy : Predicate<"Subtarget->hasFminFmaxLegacy()">;
 
+// GFX11.7 has the SALU float instructions but not the SALU float min/max
+// instructions (s_min/max_f32/f16), so those patterns must be disabled there.
+def HasSALUFloatMinMaxInsts :
----------------
arsenm wrote:

This needs to be explicit about *which* min/max

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


More information about the llvm-commits mailing list