[llvm] [NewPM][X86] Make AsmPrinter work with NewPM (PR #173740)

Alexis Engelke via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 27 23:34:53 PST 2025


aengelke wrote:

> This is not a correctness usage and should only be a small heap memory
> usage regression. If the heap memory usage turns out to be a big deal,
> we can free the machine functions within AsmPrinter itself without
> needing to incur the complexity of splitting the pass.

IIUC, MachineFunctions currently get free'd before the next function is compiled -- does this mean that all MachineFunctions will remain allocated at the same time until the end now? If so, for large modules, this might not be small?

https://github.com/llvm/llvm-project/pull/173740


More information about the llvm-commits mailing list