Do this by refactoring the optimization and codegen pipelines into separate functions.
This saves a tiny bit of memory in non-LTO builds [1].
Differential D111582
[clang] Teardown new PM data structures before running codegen pipeline aeubanks on Oct 11 2021, 3:12 PM. Authored by
Details Do this by refactoring the optimization and codegen pipelines into separate functions. This saves a tiny bit of memory in non-LTO builds [1].
Diff Detail
Event TimelineComment Actions Any chance of refactoring this code so naturally these objects are lexically scoped to their necessary lifetime, and just cease to exist before the code gen passes are run? (looks like this function is pretty long and might benefit from being broken up into pieces anyway - and one of those pieces could have these managers as locals, and return once that work is done, before the code gen work is started?) Comment Actions Looks great!
|
Looks like this comment got lost - might be worth preserving in RunCodegenPipeline