Skip to content

Commit 84c009f

Browse files
committed
Remove RISCV changes
1 parent b2c98d9 commit 84c009f

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -969,8 +969,6 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
969969
static const unsigned ZvfhminZvfbfminPromoteOps[] = {
970970
ISD::FMINNUM,
971971
ISD::FMAXNUM,
972-
ISD::FMINIMUMNUM,
973-
ISD::FMAXIMUMNUM,
974972
ISD::FADD,
975973
ISD::FSUB,
976974
ISD::FMUL,
@@ -1039,9 +1037,7 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
10391037
// Expand various condition codes (explained above).
10401038
setCondCodeAction(VFPCCToExpand, VT, Expand);
10411039

1042-
setOperationAction(
1043-
{ISD::FMINNUM, ISD::FMAXNUM, ISD::FMAXIMUMNUM, ISD::FMINIMUMNUM}, VT,
1044-
Legal);
1040+
setOperationAction({ISD::FMINNUM, ISD::FMAXNUM}, VT, Legal);
10451041
setOperationAction({ISD::FMAXIMUM, ISD::FMINIMUM}, VT, Custom);
10461042

10471043
setOperationAction({ISD::FTRUNC, ISD::FCEIL, ISD::FFLOOR, ISD::FROUND,
@@ -1456,8 +1452,7 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
14561452
setOperationAction({ISD::FADD, ISD::FSUB, ISD::FMUL, ISD::FDIV,
14571453
ISD::FNEG, ISD::FABS, ISD::FCOPYSIGN, ISD::FSQRT,
14581454
ISD::FMA, ISD::FMINNUM, ISD::FMAXNUM,
1459-
ISD::FMINIMUMNUM, ISD::FMAXIMUMNUM, ISD::IS_FPCLASS,
1460-
ISD::FMAXIMUM, ISD::FMINIMUM},
1455+
ISD::IS_FPCLASS, ISD::FMAXIMUM, ISD::FMINIMUM},
14611456
VT, Custom);
14621457

14631458
setOperationAction({ISD::FTRUNC, ISD::FCEIL, ISD::FFLOOR, ISD::FROUND,
@@ -6816,11 +6811,9 @@ static unsigned getRISCVVLOp(SDValue Op) {
68166811
case ISD::VP_FP_TO_UINT:
68176812
return RISCVISD::VFCVT_RTZ_XU_F_VL;
68186813
case ISD::FMINNUM:
6819-
case ISD::FMINIMUMNUM:
68206814
case ISD::VP_FMINNUM:
68216815
return RISCVISD::VFMIN_VL;
68226816
case ISD::FMAXNUM:
6823-
case ISD::FMAXIMUMNUM:
68246817
case ISD::VP_FMAXNUM:
68256818
return RISCVISD::VFMAX_VL;
68266819
case ISD::LRINT:
@@ -7851,8 +7844,6 @@ SDValue RISCVTargetLowering::LowerOperation(SDValue Op,
78517844
case ISD::FMA:
78527845
case ISD::FMINNUM:
78537846
case ISD::FMAXNUM:
7854-
case ISD::FMINIMUMNUM:
7855-
case ISD::FMAXIMUMNUM:
78567847
if (isPromotedOpNeedingSplit(Op, Subtarget))
78577848
return SplitVectorOp(Op, DAG);
78587849
[[fallthrough]];

0 commit comments

Comments
 (0)