[llvm] f118c88 - [RISCV] Remove unnecessary setOperationAction for ISD::SELECT_CC for fixed vectors. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 5 17:35:46 PDT 2024


Author: Craig Topper
Date: 2024-07-05T17:35:34-07:00
New Revision: f118c882fe2f2548b814492aa4e51ef29aa29739

URL: https://github.com/llvm/llvm-project/commit/f118c882fe2f2548b814492aa4e51ef29aa29739
DIFF: https://github.com/llvm/llvm-project/commit/f118c882fe2f2548b814492aa4e51ef29aa29739.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index e935590bc1b7b..9a4d77d9bfd1a 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);
 


        


More information about the llvm-commits mailing list