Skip to content

Commit 6c6ab2a

Browse files
authored
AArch64: Set FMAXIMUMNUM and FMINIMUMNUM as Promote if not fullfp16 (#135708)
Since Promote will emit FP_EXTEND, the result of it will never be sNaN, so we don't need worry about duplicated of FCANONICALIZE in expandFMINIMUMNUM_FMAXIMUMNUM.
1 parent 77f0708 commit 6c6ab2a

File tree

2 files changed

+1480
-273
lines changed

2 files changed

+1480
-273
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,6 +795,8 @@ AArch64TargetLowering::AArch64TargetLowering(const TargetMachine &TM,
795795
ISD::FMAXNUM,
796796
ISD::FMINIMUM,
797797
ISD::FMAXIMUM,
798+
ISD::FMINIMUMNUM,
799+
ISD::FMAXIMUMNUM,
798800
ISD::FCANONICALIZE,
799801
ISD::STRICT_FADD,
800802
ISD::STRICT_FSUB,

0 commit comments

Comments
 (0)