We don't need to promote it to f32 FMAXNUM/FMINNUM if we can make sure
no NaN in inputs.
Fixes #61271
Paths
| Differential D145867
[X86][FP16] Optimize FMAXNUM/FMINNUM into SMAX/SMIN for FP16 emulation under fast math Changes PlannedPublic Authored by pengfei on Mar 12 2023, 4:42 AM.
Details
Diff Detail
Event Timeline
Comment Actions Address review commnets.
Comment Actions The negative comparison is not correct.
Revision Contents
Diff 504425 llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/half.ll
|
I forget the encoding of exponent. Is the result same for min(vXf16) and min(i16)?