Skip to content

Commit 6aa75e7

Browse files
justinfargnoliNoumanAmir657
authored andcommitted
[NFC][NVPTX] Cleanup getPreferredVectorAction() (llvm#114115)
`v2*16` is a legal type in NVPTX. Thus, this is dead code.
1 parent 5c98c76 commit 6aa75e7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,8 +1335,6 @@ NVPTXTargetLowering::getPreferredVectorAction(MVT VT) const {
13351335
if (!VT.isScalableVector() && VT.getVectorNumElements() != 1 &&
13361336
VT.getScalarType() == MVT::i1)
13371337
return TypeSplitVector;
1338-
if (Isv2x16VT(VT))
1339-
return TypeLegal;
13401338
return TargetLoweringBase::getPreferredVectorAction(VT);
13411339
}
13421340

0 commit comments

Comments
 (0)