[llvm] [AMDGPU] Fix legacy fmin/fmax combines to preserve NaN and zero ties (PR #220519)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 2 04:05:19 PDT 2026


================
@@ -296,11 +296,15 @@ class AMDGPUTargetLowering : public TargetLowering {
 
   SDValue combineFMinMaxLegacyImpl(const SDLoc &DL, EVT VT, SDValue LHS,
                                    SDValue RHS, SDValue True, SDValue False,
-                                   SDValue CC, DAGCombinerInfo &DCI) const;
+                                   SDValue CC, SDNodeFlags Flags,
+                                   DAGCombinerInfo &DCI) const;
 
+  /// \p Flags must be the select flags, not the compare (a SELECT_CC
----------------
arsenm wrote:

```suggestion
  /// \p Flags must be the select flags, not the compare (SELECT_CC
```

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


More information about the llvm-commits mailing list