[PATCH] D145634: [X86] Support llvm.{min,max}imum.f{32,64}
Phoebe Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 10 00:13:57 PST 2023
pengfei added inline comments.
================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:53284-53287
+ SDValue IsOp0Zero = DAG.getSetCC(DL, SetCCType,
+ DAG.getNode(ISD::BITCAST, DL, IVT, Op0),
+ DAG.getConstant(PreferredZero, DL, IVT),
+ ISD::SETEQ);
----------------
pengfei wrote:
> Can we check if it is 0 or NaN? We can put both in the second operand I think.
We can use `vfpclassps/d` on `AVX512DQ` to optimize it.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145634/new/
https://reviews.llvm.org/D145634
More information about the llvm-commits
mailing list