[llvm] e89f821 - [NFC][NVPTX] Cleanup getPreferredVectorAction() (#114115)

via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 30 13:05:44 PDT 2024


Author: Justin Fargnoli
Date: 2024-10-30T13:05:40-07:00
New Revision: e89f8212333ea8e9b534fb32382bb5cacae71b35

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

LOG: [NFC][NVPTX] Cleanup getPreferredVectorAction() (#114115)

`v2*16` is a legal type in NVPTX. Thus, this is dead code.

Added: 
    

Modified: 
    llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
index a95cba586b8fc3..01abf9591e342f 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -1335,8 +1335,6 @@ NVPTXTargetLowering::getPreferredVectorAction(MVT VT) const {
   if (!VT.isScalableVector() && VT.getVectorNumElements() != 1 &&
       VT.getScalarType() == MVT::i1)
     return TypeSplitVector;
-  if (Isv2x16VT(VT))
-    return TypeLegal;
   return TargetLoweringBase::getPreferredVectorAction(VT);
 }
 


        


More information about the llvm-commits mailing list