[llvm] [Analysis] Remove global state from `PluginInline{Advisor,Order}Analysis`. (PR #114615)

Arthur Eubanks via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 12 11:28:22 PST 2024


aeubanks wrote:

> In the context I'm working on there are multiple independent optimization pipelines in the same process for different purposes (each pipeline has its own analysis manager instances): for some of them this exact mechanism is being used (due to a static plugin being registered) to customize the inline advisor, and that end up breaking the other pipelines because of the shared global state.

IIUC you only want some of the pipelines in the process to use the custom inline advisor but not others? I'm not understanding how this patch does better than `PassBuilder::registerAnalysisRegistrationCallback`

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


More information about the llvm-commits mailing list