[clang] [llvm] [mlir] [AArch64][SME] Improve codegen for aarch64.sme.cnts* when not in streaming mode (PR #154761)

Kerry McLaughlin via cfe-commits cfe-commits at lists.llvm.org
Fri Sep 5 08:19:27 PDT 2025


================
@@ -937,6 +940,26 @@ bool AArch64DAGToDAGISel::SelectRDVLImm(SDValue N, SDValue &Imm) {
   return false;
 }
 
+// Given cntsd = (rdsvl, #1) >> 3, attempt to return a suitable multiplier
+// for RDSVL to calculate the streaming vector length in bytes * N. i.e.
+//   rdsvl, #(ShlImm - 3)
----------------
kmclaughlin-arm wrote:

Thanks, I missed this too!

https://github.com/llvm/llvm-project/pull/154761


More information about the cfe-commits mailing list