aeubanks wrote: I don't think we have this sort of functionality elsewhere for the default optimization pipelines, why do you specifically just want this for the LTO pipeline? https://github.com/llvm/llvm-project/pull/71268