[llvm] 61d29e0 - [LegalizeTypes] Remove a few cases from SplitVectorOperand that should never happen. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 12 21:00:11 PDT 2020


Author: Craig Topper
Date: 2020-09-12T20:59:14-07:00
New Revision: 61d29e0dff0e93f3fa1382fb177634840844b273

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

LOG: [LegalizeTypes] Remove a few cases from SplitVectorOperand that should never happen. NFC

CTTZ, CTLZ, CTPOP, and FCANONICALIZE all have the same input and
output types so the operand should have already been legalized when the
result type was legalized.

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
index 509ae2c6bdcb..9d82d2ed8ec5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
@@ -2044,16 +2044,12 @@ bool DAGTypeLegalizer::SplitVectorOperand(SDNode *N, unsigned OpNo) {
     case ISD::FP_TO_UINT:
     case ISD::STRICT_FP_TO_SINT:
     case ISD::STRICT_FP_TO_UINT:
-    case ISD::CTTZ:
-    case ISD::CTLZ:
-    case ISD::CTPOP:
     case ISD::STRICT_FP_EXTEND:
     case ISD::FP_EXTEND:
     case ISD::SIGN_EXTEND:
     case ISD::ZERO_EXTEND:
     case ISD::ANY_EXTEND:
     case ISD::FTRUNC:
-    case ISD::FCANONICALIZE:
       Res = SplitVecOp_UnaryOp(N);
       break;
 


        


More information about the llvm-commits mailing list