jon
jroelofs.bsky.social
jon
@jroelofs.bsky.social
oh the theatrics
January 16, 2025 at 3:09 AM
if you love all of those and holding your breath, try underwater rugby
January 14, 2025 at 5:55 AM
*machine-IR like
January 3, 2025 at 8:18 PM
but maybe one could dream up an MLIR dialect that preserves high level structure after lowering to a machine-like IR dialect?
January 3, 2025 at 8:18 PM
I think it’s more fundamental than that: SSA form is nice for optimizations, but not great for code size estimation.
January 3, 2025 at 8:16 PM
so you either have to guess about code size via heuristics, or you’ve already lowered past a representation that makes optimizations easy
January 3, 2025 at 8:06 PM
the “too complex” part of the problem is that often the IR you’d want to operate on for optimization decisions is a bit higher level than the one where you’d have precise code size information.
January 3, 2025 at 8:05 PM
I can think of a couple different places in clang where we do something like that, but not for that reason: if-conversion, and outlining.
January 3, 2025 at 8:03 PM