aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-07-05 17:34:23 -0700
committerCraig Topper <craig.topper@sifive.com>2024-07-05 17:35:34 -0700
commitf118c882fe2f2548b814492aa4e51ef29aa29739 (patch)
treec96301d07dfb2bf85bbe7fb21d9cbcd294bba073
parent88381cecfff48536230e11901f1598332033fd45 (diff)
downloadllvm-f118c882fe2f2548b814492aa4e51ef29aa29739.zip
llvm-f118c882fe2f2548b814492aa4e51ef29aa29739.tar.gz
llvm-f118c882fe2f2548b814492aa4e51ef29aa29739.tar.bz2
[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.
-rw-r--r--llvm/lib/Target/RISCV/RISCVISelLowering.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index e935590..9a4d77d 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -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);
@@ -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);