Skip to content

Commit a91144e

Browse files
- Fix comments in AArch64ISelDAGToDAG & ArmSMEToLLVM
1 parent f5de33d commit a91144e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -940,9 +940,8 @@ bool AArch64DAGToDAGISel::SelectRDVLImm(SDValue N, SDValue &Imm) {
940940
return false;
941941
}
942942

943-
// Given cntsd = (rdsvl, #1) >> 3, attempt to return a suitable multiplier
944-
// for RDSVL to calculate the streaming vector length in bytes * N. i.e.
945-
// rdsvl, #(ShlImm - 3)
943+
// Given `cntsd = (rdsvl, #1) >> 3`, attempt to return a suitable multiplier
944+
// for RDSVL to calculate `cntsd << N`, i.e. `rdsvl, #(N - 3)`.
946945
template <signed Low, signed High>
947946
bool AArch64DAGToDAGISel::SelectRDSVLShiftImm(SDValue N, SDValue &Imm) {
948947
if (!isa<ConstantSDNode>(N))

mlir/lib/Conversion/ArmSMEToLLVM/ArmSMEToLLVM.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -831,9 +831,9 @@ struct OuterProductWideningOpConversion
831831
/// is converted to:
832832
///
833833
/// %cnt = "arm_sme.intr.cntsd"() : () -> i64
834-
/// %0 = arith.constant 4 : i64
835-
/// %1 = arith.muli %cnt, %0 : i64
836-
/// %2 = arith.index_cast %1 : i64 to index
834+
/// %scale = arith.constant 4 : index
835+
/// %cntIndex = arith.index_cast %cnt : i64 to index
836+
/// %0 = arith.muli %cntIndex, %scale : index
837837
///
838838
struct StreamingVLOpConversion
839839
: public ConvertArmSMEOpToLLVMPattern<arm_sme::StreamingVLOp,

0 commit comments

Comments
 (0)