[llvm] [NFC][NVPTX] Cleanup getPreferredVectorAction() (PR #114115)
Artem Belevich via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 29 12:54:02 PDT 2024
================
@@ -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);
----------------
Artem-B wrote:
AFAICT, `TargetLoweringBase::getPreferredVectorAction(VT)` will return TypePromoteInteger, which is not what we want here.
https://github.com/llvm/llvm-project/blob/a18af41c20ac9ca22e3c95da3d71475f9f6c31b5/llvm/include/llvm/CodeGen/TargetLowering.h#L518
https://github.com/llvm/llvm-project/pull/114115
More information about the llvm-commits
mailing list