Skip to content

Commit

Permalink
[RISCV] Remove unnecessary setOperationAction for ISD::SELECT_CC for …
Browse files Browse the repository at this point in the history
…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.
  • Loading branch information
topperc committed Jul 6, 2024
1 parent 88381ce commit f118c88
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions llvm/lib/Target/RISCV/RISCVISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,6 @@ RISCVTargetLowering::RISCVTargetLowering(const TargetMachine &TM,
VT, Custom);

setOperationAction(ISD::VSELECT, VT, Custom);
setOperationAction(ISD::SELECT_CC, VT, Expand);

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

setOperationAction(ISD::SETCC, VT, Custom);
setOperationAction({ISD::VSELECT, ISD::SELECT}, VT, Custom);
setOperationAction(ISD::SELECT_CC, VT, Expand);

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

Expand Down

0 comments on commit f118c88

Please sign in to comment.