[all-commits] [llvm/llvm-project] edf24c: [mlir] Reduce generated assembly printer compile time

Mehdi Amini via All-commits all-commits at lists.llvm.org
Wed Sep 23 06:02:24 PDT 2026


  Branch: refs/heads/users/mamini/mlir-generated-printer-compile-time
  Home:   https://github.com/llvm/llvm-project
  Commit: edf24c1440134c729c4358031f97703579848451
      https://github.com/llvm/llvm-project/commit/edf24c1440134c729c4358031f97703579848451
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M mlir/include/mlir/IR/OpImplementation.h
    M mlir/lib/IR/AsmPrinter.cpp
    M mlir/test/mlir-tblgen/op-decl-and-defs.td
    M mlir/test/mlir-tblgen/op-format.td
    M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
    M mlir/tools/mlir-tblgen/OpFormatGen.cpp

  Log Message:
  -----------
  [mlir] Reduce generated assembly printer compile time

Use fixed arrays for statically elided attributes and combine leading spaces
with literals. Initialize fixed elisions together when runtime elision is
needed; in strict properties mode, print discardable attributes directly.

Move common operand printing out of generated call sites and emit sliced
operand getters to reduce optimizer work in large printers.

For omp.target, the original patch reduced optimized print IR from 3,893 to
2,667 instructions. Its printing benchmark was 2.1% slower. check-mlir
passed before this follow-up.

Assisted-by: Codex



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list