[llvm] [Legalizer] Expand fmaximum and fminimum (PR #67301)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 25 02:24:01 PDT 2023


================
@@ -8177,6 +8177,64 @@ SDValue TargetLowering::expandFMINNUM_FMAXNUM(SDNode *Node,
   return SDValue();
 }
 
+SDValue TargetLowering::expandFMINIMUM_FMAXIMUM(SDNode *N,
----------------
jayfoad wrote:

Could you please add one or both of:
- some comments here showing what MIR is generated, and/or
- some MIR tests with -run-pass=legalizer showing the expansion with various combinations of fast math flags.

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


More information about the llvm-commits mailing list