Skip to content

Commit c775a5c

Browse files
toppercgithub-actions[bot]
authored andcommitted
Automerge: [TargetLowering] Use getShiftAmountConstant in CTTZTableLookup. NFC
2 parents 2cc516c + eddd342 commit c775a5c

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)