[all-commits] [llvm/llvm-project] 3525b5: [mlir][Tosa] Optimize compliance initialization fo...

Mehdi Amini via All-commits all-commits at lists.llvm.org
Thu Sep 10 14:45:51 PDT 2026


  Branch: refs/heads/users/mamini/mlir-tosa-compliance-initialization
  Home:   https://github.com/llvm/llvm-project
  Commit: 3525b510b045edf90f5aca4c45cfd3ac3c5a758e
      https://github.com/llvm/llvm-project/commit/3525b510b045edf90f5aca4c45cfd3ac3c5a758e
  Author: Mehdi Amini <joker.eph at gmail.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp

  Log Message:
  -----------
  [mlir][Tosa] Optimize compliance initialization for size (NFC)

The compliance-map constructor includes a 4,920-line generated initializer.
Mark it minsize because it runs only when creating the validation pass and
optimizing this single large function at -O3 is expensive.

LLVM pass timing attributes most of the saving to code generation. Greedy
register allocation fell from 7.070s to 1.348s as global live-range splitting
fell from 6.403s to 0.021s after the constructor became 47.6% smaller.

Across five controlled rebuilds of the affected TU, median instructions fell
from 205.087B to 66.157B (-67.742%) and median wall time fell from 19.83s to
7.95s (-59.909%).

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