[llvm] 263d198 - [NFC][CSKY] Remove duplicate setOperationAction in CSKYTargetLowering constructor

Zi Xuan Wu via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 14 01:03:28 PST 2022


Author: Zi Xuan Wu
Date: 2022-01-14T17:01:43+08:00
New Revision: 263d1986e32e1d3047b2af50205e88615e5b51f5

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

LOG: [NFC][CSKY] Remove duplicate setOperationAction in CSKYTargetLowering constructor

Added: 
    

Modified: 
    llvm/lib/Target/CSKY/CSKYISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/CSKY/CSKYISelLowering.cpp b/llvm/lib/Target/CSKY/CSKYISelLowering.cpp
index b9cb4cf7ac18f..b253e10574a74 100644
--- a/llvm/lib/Target/CSKY/CSKYISelLowering.cpp
+++ b/llvm/lib/Target/CSKY/CSKYISelLowering.cpp
@@ -95,49 +95,6 @@ CSKYTargetLowering::CSKYTargetLowering(const TargetMachine &TM,
     setOperationAction(ISD::ATOMIC_FENCE, MVT::Other, Expand);
   }
 
-  setOperationAction(ISD::ADDCARRY, MVT::i32, Legal);
-  setOperationAction(ISD::SUBCARRY, MVT::i32, Legal);
-  setOperationAction(ISD::BITREVERSE, MVT::i32, Legal);
-
-  setOperationAction(ISD::SREM, MVT::i32, Expand);
-  setOperationAction(ISD::UREM, MVT::i32, Expand);
-  setOperationAction(ISD::UDIVREM, MVT::i32, Expand);
-  setOperationAction(ISD::SDIVREM, MVT::i32, Expand);
-  setOperationAction(ISD::CTTZ, MVT::i32, Expand);
-  setOperationAction(ISD::CTPOP, MVT::i32, Expand);
-  setOperationAction(ISD::ROTR, MVT::i32, Expand);
-  setOperationAction(ISD::SHL_PARTS, MVT::i32, Expand);
-  setOperationAction(ISD::SRL_PARTS, MVT::i32, Expand);
-  setOperationAction(ISD::SRA_PARTS, MVT::i32, Expand);
-  setOperationAction(ISD::UMUL_LOHI, MVT::i32, Expand);
-  setOperationAction(ISD::SMUL_LOHI, MVT::i32, Expand);
-  setOperationAction(ISD::SELECT_CC, MVT::i32, Expand);
-  setOperationAction(ISD::BR_CC, MVT::i32, Expand);
-  setOperationAction(ISD::BR_JT, MVT::Other, Expand);
-  setOperationAction(ISD::DYNAMIC_STACKALLOC, MVT::i32, Expand);
-  setOperationAction(ISD::STACKSAVE, MVT::Other, Expand);
-  setOperationAction(ISD::STACKRESTORE, MVT::Other, Expand);
-  setOperationAction(ISD::MULHS, MVT::i32, Expand);
-  setOperationAction(ISD::MULHU, MVT::i32, Expand);
-
-  setLoadExtAction(ISD::EXTLOAD, MVT::i32, MVT::i1, Promote);
-  setLoadExtAction(ISD::SEXTLOAD, MVT::i32, MVT::i1, Promote);
-  setLoadExtAction(ISD::ZEXTLOAD, MVT::i32, MVT::i1, Promote);
-
-  if (!Subtarget.hasE2()) {
-    setLoadExtAction(ISD::SEXTLOAD, MVT::i32, MVT::i8, Expand);
-    setLoadExtAction(ISD::SEXTLOAD, MVT::i32, MVT::i16, Expand);
-    setOperationAction(ISD::CTLZ, MVT::i32, Expand);
-    setOperationAction(ISD::BSWAP, MVT::i32, Expand);
-  }
-
-  if (!Subtarget.has2E3()) {
-    setOperationAction(ISD::ABS, MVT::i32, Expand);
-    setOperationAction(ISD::BITREVERSE, MVT::i32, Expand);
-    setOperationAction(ISD::SDIV, MVT::i32, Expand);
-    setOperationAction(ISD::UDIV, MVT::i32, Expand);
-  }
-
   // Compute derived properties from the register classes.
   computeRegisterProperties(STI.getRegisterInfo());
 


        


More information about the llvm-commits mailing list