mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-17 13:30:41 +00:00
[SelectionDAG] Remove a check for type being a vector type after calling getShiftAmountTy. NFCI
getShiftAmountTy already returns the vector type when called for vectors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312924 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9fe7bd2f47
commit
6b4918d145
@ -2985,8 +2985,6 @@ bool SelectionDAGLegalize::ExpandNode(SDNode *Node) {
|
||||
// NOTE: we could fall back on load/store here too for targets without
|
||||
// SRA. However, it is doubtful that any exist.
|
||||
EVT ShiftAmountTy = TLI.getShiftAmountTy(VT, DAG.getDataLayout());
|
||||
if (VT.isVector())
|
||||
ShiftAmountTy = VT;
|
||||
unsigned BitsDiff = VT.getScalarSizeInBits() -
|
||||
ExtraVT.getScalarSizeInBits();
|
||||
SDValue ShiftCst = DAG.getConstant(BitsDiff, dl, ShiftAmountTy);
|
||||
|
Loading…
x
Reference in New Issue
Block a user