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

YunQiang Su via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 25 05:04:46 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:

Yes. But we need sometime to switch FMAXNUM_IEEE to FMAXNUM in common code, such as in `TargetLowering.cpp` etc.

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


More information about the llvm-commits mailing list