Skip to content

Commit eddd342

Browse files
committed
[TargetLowering] Use getShiftAmountConstant in CTTZTableLookup. NFC
1 parent 2a5ac19 commit eddd342

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9471,7 +9471,7 @@ SDValue TargetLowering::CTTZTableLookup(SDNode *Node, SelectionDAG &DAG,
94719471
ISD::SRL, DL, VT,
94729472
DAG.getNode(ISD::MUL, DL, VT, DAG.getNode(ISD::AND, DL, VT, Op, Neg),
94739473
DAG.getConstant(DeBruijn, DL, VT)),
9474-
DAG.getConstant(ShiftAmt, DL, VT));
9474+
DAG.getShiftAmountConstant(ShiftAmt, VT, DL));
94759475
Lookup = DAG.getSExtOrTrunc(Lookup, DL, getPointerTy(TD));
94769476

94779477
SmallVector<uint8_t> Table(BitWidth, 0);

0 commit comments

Comments
 (0)