[llvm] [LV] Vectorize FMax w/o fast-math flags. (PR #146711)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 6 23:02:21 PDT 2025


================
@@ -47,6 +47,8 @@ enum class RecurKind {
   FMul,     ///< Product of floats.
   FMin,     ///< FP min implemented in terms of select(cmp()).
   FMax,     ///< FP max implemented in terms of select(cmp()).
+  FMaxNoFMFs, ///< FP max implemented in terms of select(cmp()), but without
+              ///any fast-math flags. Users need to handle NaNs and signed zeros when generating code.
----------------
arsenm wrote:

Rename to something like FCmpOGTSelect?

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


More information about the llvm-commits mailing list