[llvm] PowerPC/VSX: Select FMINNUM and FMAXNUM (PR #135739)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 04:55:14 PDT 2025


================
@@ -2731,6 +2731,8 @@ def : Pat<(f32 (fneg (fabs f32:$S))),
                (COPY_TO_REGCLASS $S, VSFRC)), VSSRC))>;
 
 // f32 Min.
+def : Pat<(f32 (fminnum f32:$A, f32:$B)),
+          (f32 FpMinMax.F32Min)>;
----------------
arsenm wrote:

I don't see a need to have a target have coexisting support for both fminnum and fminnum_ieee. We can fully migrate the target to the new behavior in one go 

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


More information about the llvm-commits mailing list