[llvm] Vectorize: Support fminimumnum and fmaximumnum (PR #131781)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 2 21:19:26 PDT 2025
================
@@ -2776,6 +2776,12 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
}
return Cost;
}
+ case Intrinsic::maximumnum:
+ case Intrinsic::minimumnum: {
+ if (TLI->isOperationLegalOrPromote(llvm::ISD::FMAXNUM_IEEE, LT.second))
----------------
arsenm wrote:
Don't need llvm::
Technically you should also check FMINNUM_IEEE for minimumnum, it's just unlikely these ever differ in practice
https://github.com/llvm/llvm-project/pull/131781
More information about the llvm-commits
mailing list