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

Benjamin Maxwell via cfe-commits cfe-commits at lists.llvm.org
Thu Sep 4 02:49:53 PDT 2025


================
@@ -4918,6 +4919,31 @@ Value *CodeGenFunction::EmitAArch64SMEBuiltinExpr(unsigned BuiltinID,
   // Handle builtins which require their multi-vector operands to be swapped
   swapCommutativeSMEOperands(BuiltinID, Ops);
 
+  auto isCntsBuiltin = [&](int64_t &Mul) {
+    switch (BuiltinID) {
----------------
MacDue wrote:

nit: This could just return the `mul`, and the use below could be `if (auto mul = isCntsBuiltin()))`

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


More information about the cfe-commits mailing list