Skip to content

Commit f118c88

Browse files
committed
[RISCV] Remove unnecessary setOperationAction for ISD::SELECT_CC for fixed vectors. NFC
We already looped through all builtin operations and marked them as Expand. We don't need to do it to SELECT_CC again.
1 parent 88381ce commit f118c88

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,6 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
12561256
VT, Custom);
12571257

12581258
setOperationAction(ISD::VSELECT, VT, Custom);
1259-
setOperationAction(ISD::SELECT_CC, VT, Expand);
12601259

12611260
setOperationAction(
12621261
{ISD::ANY_EXTEND, ISD::SIGN_EXTEND, ISD::ZERO_EXTEND}, VT, Custom);
@@ -1379,7 +1378,6 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
13791378

13801379
setOperationAction(ISD::SETCC, VT, Custom);
13811380
setOperationAction({ISD::VSELECT, ISD::SELECT}, VT, Custom);
1382-
setOperationAction(ISD::SELECT_CC, VT, Expand);
13831381

13841382
setOperationAction(ISD::BITCAST, VT, Custom);
13851383

0 commit comments

Comments
 (0)