Skip to content

Commit 4a1d2e9

Browse files
committed
Remove RISCV changes
1 parent bc6d639 commit 4a1d2e9

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,
@@ -1459,8 +1455,7 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
14591455
setOperationAction({ISD::FADD, ISD::FSUB, ISD::FMUL, ISD::FDIV,
14601456
ISD::FNEG, ISD::FABS, ISD::FCOPYSIGN, ISD::FSQRT,
14611457
ISD::FMA, ISD::FMINNUM, ISD::FMAXNUM,
1462-
ISD::FMINIMUMNUM, ISD::FMAXIMUMNUM, ISD::IS_FPCLASS,
1463-
ISD::FMAXIMUM, ISD::FMINIMUM},
1458+
ISD::IS_FPCLASS, ISD::FMAXIMUM, ISD::FMINIMUM},
14641459
VT, Custom);
14651460

14661461
setOperationAction({ISD::FTRUNC, ISD::FCEIL, ISD::FFLOOR, ISD::FROUND,
@@ -6903,11 +6898,9 @@ static unsigned getRISCVVLOp(SDValue Op) {
69036898
case ISD::VP_FP_TO_UINT:
69046899
return RISCVISD::VFCVT_RTZ_XU_F_VL;
69056900
case ISD::FMINNUM:
6906-
case ISD::FMINIMUMNUM:
69076901
case ISD::VP_FMINNUM:
69086902
return RISCVISD::VFMIN_VL;
69096903
case ISD::FMAXNUM:
6910-
case ISD::FMAXIMUMNUM:
69116904
case ISD::VP_FMAXNUM:
69126905
return RISCVISD::VFMAX_VL;
69136906
case ISD::LRINT:
@@ -7943,8 +7936,6 @@ SDValue RISCVTargetLowering::LowerOperation(SDValue Op,
79437936
case ISD::FMA:
79447937
case ISD::FMINNUM:
79457938
case ISD::FMAXNUM:
7946-
case ISD::FMINIMUMNUM:
7947-
case ISD::FMAXIMUMNUM:
79487939
if (isPromotedOpNeedingSplit(Op, Subtarget))
79497940
return SplitVectorOp(Op, DAG);
79507941
[[fallthrough]];

0 commit comments

Comments
 (0)