[llvm] [NFC][NVPTX] Cleanup getPreferredVectorAction() (PR #114115)

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 12:08:55 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-nvptx

Author: Justin Fargnoli (justinfargnoli)

<details>
<summary>Changes</summary>

`v2*16` is a legal type in NVPTX. Thus, rely on the default implementation of getPreferredVectorAction().


---
Full diff: https://github.com/llvm/llvm-project/pull/114115.diff


1 Files Affected:

- (modified) llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp (-2) 


``````````diff
diff --git a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
index 57bc5fe0ac361c..377cf8a722b84e 100644
--- a/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+++ b/llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
@@ -1337,8 +1337,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);
 }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/114115


More information about the llvm-commits mailing list