Skip to content

Commit 166f030

Browse files
- Fix comment in SelectRDSVLShiftImm
1 parent a91144e commit 166f030

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ bool AArch64DAGToDAGISel::SelectRDVLImm(SDValue N, SDValue &Imm) {
941941
}
942942

943943
// Given `cntsd = (rdsvl, #1) >> 3`, attempt to return a suitable multiplier
944-
// for RDSVL to calculate `cntsd << N`, i.e. `rdsvl, #(N - 3)`.
944+
// for RDSVL to calculate `cntsd << N`, i.e. `rdsvl, #(1 << (N - 3))`.
945945
template <signed Low, signed High>
946946
bool AArch64DAGToDAGISel::SelectRDSVLShiftImm(SDValue N, SDValue &Imm) {
947947
if (!isa<ConstantSDNode>(N))

0 commit comments

Comments
 (0)