[llvm] [LV] Vectorize FMax w/o fast-math flags. (PR #146711)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 12 03:04:37 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.
----------------
ayalz wrote:
This captures **a** potentially Unordered FMax pattern - potentially with NaN's and signed zeroes - but not **all** possible such FMax patterns, yet? If all other cases should be added to this RecurKind, then that may sound like the right name? Perhaps the existing FMax pattern should be denoted as "Ordered", as it relies on FMF to indicate absence of NaN's (i.e., all elements are "isOrdered()") and signed zeroes.
https://github.com/llvm/llvm-project/pull/146711
More information about the llvm-commits
mailing list