Skip to content

Commit 8dff57a

Browse files
committed
[SelectionDAG] Remove a check for type being a vector type after calling getShiftAmountTy. NFCI
getShiftAmountTy already returns the vector type when called for vectors. llvm-svn: 312924
1 parent bc45547 commit 8dff57a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2985,8 +2985,6 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
29852985
// NOTE: we could fall back on load/store here too for targets without
29862986
// SRA. However, it is doubtful that any exist.
29872987
EVT ShiftAmountTy = TLI.getShiftAmountTy(VT, DAG.getDataLayout());
2988-
if (VT.isVector())
2989-
ShiftAmountTy = VT;
29902988
unsigned BitsDiff = VT.getScalarSizeInBits() -
29912989
ExtraVT.getScalarSizeInBits();
29922990
SDValue ShiftCst = DAG.getConstant(BitsDiff, dl, ShiftAmountTy);

0 commit comments

Comments
 (0)