Uploaded November 2025 | Updated November 2026, 17 hours ago
2025 US LLVM Developers' Meeting
llvm.org/devmtg/2025-10
------
Title: Automating the search aspects of compiler engineering: IR for auto-tuning & beyond
Speaker: Rolf Morel
------
Slides: llvm.org/devmtg/2025-10/slides/technical_talks/morel.pdf
-----
This talk is about automating the mechanical bits of your job. The main ingredients:
1) encoding plans for pipeline/schedule-manipulations into an IR for pipelines/schedules, and
2) having tools automatically perform the optimization-through-considering-alternatives loop.
Consider an average compiler engineer's plan for an average day:
* Out of all possible optimizations, first try optimization F. Evaluate. If perf isn't there...
* Then tweak F's knobs. Evaluating each time.
* Try optimization G next. Evaluate.
* Then tweak G's knobs. Evaluate.
* Now try F;G. Tweak knobs. Evaluate.
* Then G;F. Tweak knobs. Evaluate.
Most of this is pretty repetitive and hence mechanizable. Except for formulating the plan - this is where you as an engineer are essential.
We build on MLIR's Transform-dialect [0], which exposes fine-grained transformations as operations which compose into schedules. (SSA-values fed into and produced by ops control transform ordering; parameters, i.e. attributes, are tweakable knobs.) We introduce transform ops with non-deterministic choice semantics. For example, an op's parameter can be the result of our new op which represents non-det selection among valid options. We go further: an op which chooses among regions to represent a choice between alternative sub-schedules. Further still: we employ SSA to encode that choices are tied together. E.g., we can encode that a sub-schedule later on should only be selected if a particular sub-schedule was chosen early on.
We demonstrate one approach to dealing with the non-determinism: a driver that obtains all choices - and their dependencies and constraints - and throws them to a solver. The solver selects a viable overall configuration which we use to rewrite the schedule so it no longer has non-determinism (to our knowledge, the first instance of a useful schedule IR rewrite). Thus obtained deterministic schedules are then automatically applied to payloads to obtain perf numbers, which we feed back into the solver for it to learn about the parameter space. The driver runs in a loop until a stopping criteria has been reached (e.g. until you come back into work in the morning).
Finally, we emphasize we go beyond
* auto-tuning, as we "reify" choices into (transform) IR and tune more than just parameters,
* auto-scheduling (systems which automatically compose transforms), as we allow the engineer to effectively specify templates with composition choices at just the places they would have considered in the course of the day.
In short, our approach enables both expressiveness and controllable tractability.
-----
Videos Edited by Bash Films: BashFilms.com
2025 US LLVM Developers' Meeting
llvm.org/devmtg/2025-10
------
Title: Automating the search aspects of compiler engineering: IR for auto-tuning & beyond
Speaker: Rolf Morel
------
Slides: llvm.org/devmtg/2025-10/slides/technical_talks/morel.pdf
-----
This talk is about automating the mechanical bits of your job. The main ingredients:
1) encoding plans for pipeline/schedule-manipulations into an IR for pipelines/schedules, and
2) having tools automatically perform the optimization-through-considering-alternatives loop.
Consider an average compiler engineer's plan for an average day:
* Out of all possible optimizations, first try optimization F. Evaluate. If perf isn't there...
* Then tweak F's knobs. Evaluating each time.
* Try optimization G next. Evaluate.
* Then tweak G's knobs. Evaluate.
* Now try F;G. Tweak knobs. Evaluate.
* Then G;F. Tweak knobs. Evaluate.
Most of this is pretty repetitive and hence mechanizable. Except for formulating the plan - this is where you as an engineer are essential.
We build on MLIR's Transform-dialect [0], which exposes fine-grained transformations as operations which compose into schedules. (SSA-values fed into and produced by ops control transform ordering; parameters, i.e. attributes, are tweakable knobs.) We introduce transform ops with non-deterministic choice semantics. For example, an op's parameter can be the result of our new op which represents non-det selection among valid options. We go further: an op which chooses among regions to represent a choice between alternative sub-schedules. Further still: we employ SSA to encode that choices are tied together. E.g., we can encode that a sub-schedule later on should only be selected if a particular sub-schedule was chosen early on.
We demonstrate one approach to dealing with the non-determinism: a driver that obtains all choices - and their dependencies and constraints - and throws them to a solver. The solver selects a viable overall configuration which we use to rewrite the schedule so it no longer has non-determinism (to our knowledge, the first instance of a useful schedule IR rewrite). Thus obtained deterministic schedules are then automatically applied to payloads to obtain perf numbers, which we feed back into the solver for it to learn about the parameter space. The driver runs in a loop until a stopping criteria has been reached (e.g. until you come back into work in the morning).
Finally, we emphasize we go beyond
* auto-tuning, as we "reify" choices into (transform) IR and tune more than just parameters,
* auto-scheduling (systems which automatically compose transforms), as we allow the engineer to effectively specify templates with composition choices at just the places they would have considered in the course of the day.
In short, our approach enables both expressiveness and controllable tractability.
-----
Videos Edited by Bash Films: BashFilms.com










