[all-commits] [llvm/llvm-project] f3909e: [MLGO] Gate model tests on optimization-specific l...

ioana ghiban via All-commits all-commits at lists.llvm.org
Thu Sep 10 04:04:33 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f3909e073dd93f830f842c0bfe33b443b8fa0624
      https://github.com/llvm/llvm-project/commit/f3909e073dd93f830f842c0bfe33b443b8fa0624
  Author: ioana ghiban <ioana.ghiban at arm.com>
  Date:   2026-09-10 (Thu, 10 Sep 2026)

  Changed paths:
    M llvm/test/CMakeLists.txt
    M llvm/test/CodeGen/MLRegAlloc/default-eviction-advisor.ll
    M llvm/test/CodeGen/MLRegAlloc/rel-codepath.ll
    M llvm/test/Transforms/Inline/ML/bounds-checks.ll
    M llvm/test/Transforms/Inline/ML/coro-split-func-levels.ll
    M llvm/test/Transforms/Inline/ML/dead-callee.ll
    M llvm/test/Transforms/Inline/ML/enable-inline-advisor-printing-ml.ll
    M llvm/test/Transforms/Inline/ML/fpi-update.ll
    M llvm/test/Transforms/Inline/ML/ml-test-release-mode.ll
    M llvm/test/Transforms/Inline/ML/recursive.ll
    M llvm/test/Transforms/Inline/ML/scc-dead-accounting.ll
    M llvm/test/Transforms/Inline/ML/skip-unreachable.ll
    M llvm/test/Transforms/Inline/ML/state-accounting-skip-non-cold.ll
    M llvm/test/Transforms/Inline/inlining-advisor-default.ll
    M llvm/test/lit.cfg.py
    M llvm/test/lit.site.cfg.py.in
    M llvm/utils/gn/secondary/llvm/test/BUILD.gn

  Log Message:
  -----------
  [MLGO] Gate model tests on optimization-specific lit features (#217906)

### Context

`have_mlir_lowering` only indicates that `LLVM_MLGO_MODELS` is
non-empty. It does not identify which model type was compiled.

### Motivation

An inliner-only configuration incorrectly enabled regalloc-specific test
commands, and vice versa.

### Changes

Add `have_mlir_lowering_inliner` and `have_mlir_lowering_regalloc` lit
features derived from the corresponding model-generation targets. Update
MLGO tests to use the appropriate model-specific feature, including GN
configuration defaults.


I leveraged AI to write this PR.



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