Skip to content

Commit

Permalink
[TargetLowering] Use getShiftAmountConstant. NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
topperc committed Sep 5, 2022
1 parent baa9eae commit 45e2809
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Expand Up @@ -7043,8 +7043,7 @@ bool TargetLowering::expandMUL_LOHI(unsigned Opcode, EVT VT, const SDLoc &dl,
}

unsigned ShiftAmount = OuterBitSize - InnerBitSize;
EVT ShiftAmountTy = getShiftAmountTy(VT, DAG.getDataLayout());
SDValue Shift = DAG.getConstant(ShiftAmount, dl, ShiftAmountTy);
SDValue Shift = DAG.getShiftAmountConstant(ShiftAmount, VT, dl);

if (!LH.getNode() && !RH.getNode() &&
isOperationLegalOrCustom(ISD::SRL, VT) &&
Expand Down

0 comments on commit 45e2809

Please sign in to comment.