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

YunQiang Su via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 04:52:27 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)>;
----------------
wzssyqa wrote:

We need some steps to remove IEEE variants:
   * Support fminnum/fmaxnum on all architectures with fminnum_ieee/fmaxnum_ieee.
   * Remove all the references of FMAXNUM_IEEE/FMINNUM_IEEE in the common code
   * Remove fminnum_ieee/fmaxnum_ieee in the code of backend.

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


More information about the llvm-commits mailing list