[llvm] [CodeGen] Port FreeMachineFunction to new pass manager (PR #79421)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 25 16:13:49 PST 2024


paperchalice wrote:

> the intention with FreeMachineFunction is to be able to not have all MFs in memory at once right? however, any module pass in the pipeline breaks that since we'll run passes on every machine function before the module pass
> 
> for example, there was a module pass unconditionally added to every codegen pipeline until 2021 in https://reviews.llvm.org/D99707. that makes me wonder, should we just give up on the idea of the FreeMachineFunction pass for simplification, and instead just free all the machine functions at once somehow?

May need memory profile here, IIRC this is a memory space trade-off (https://discourse.llvm.org/t/rfc-introducing-classes-for-the-codegen-driven-by-new-pass-manager/55877/19).

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


More information about the llvm-commits mailing list