Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f32874f

Browse files
committed
[LegalizeIntegerTypes] Use getShiftAmountConstant.
1 parent 52c583b commit f32874f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5254,9 +5254,9 @@ void DAGTypeLegalizer::ExpandIntRes_XMULO(SDNode *N,
52545254
SDValue MulLo, MulHi;
52555255
TLI.forceExpandWideMUL(DAG, dl, /*Signed=*/true, N->getOperand(0),
52565256
N->getOperand(1), MulLo, MulHi);
5257-
SDValue SRA =
5258-
DAG.getNode(ISD::SRA, dl, VT, MulLo,
5259-
DAG.getConstant(VT.getScalarSizeInBits() - 1, dl, VT));
5257+
SDValue SRA = DAG.getNode(
5258+
ISD::SRA, dl, VT, MulLo,
5259+
DAG.getShiftAmountConstant(VT.getScalarSizeInBits() - 1, VT, dl));
52605260
SDValue Overflow =
52615261
DAG.getSetCC(dl, N->getValueType(1), MulHi, SRA, ISD::SETNE);
52625262
SplitInteger(MulLo, Lo, Hi);

0 commit comments

Comments
 (0)