[llvm] [NPM] Port ImmutableModuleSummaryAnalysis to NPM (PR #203510)

Vikram Hegde via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 01:25:16 PDT 2026


vikramRH wrote:

> Well it's not getting initialized anywhere. It also seems like a giant footgun to have a no-parameter constructor that initializes the pass to not have anything.

Two clients of this I currently see are stackSafetyGlobalInfo and GlobalMergeFuncPass (this is part of backend pipeline). No parameter should just mean the current state (nullptr) ?. The idea here is we can explicitly register this analysis when we write NPM equivalent of LTO codegen() like legacy does. 
BTW, I should probably update GlobalMergeFuncPass too. currently it has a constructor which takes ModuleSummaryIndex parameter which is not exercised anywhere. this could be a follow-up.

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


More information about the llvm-commits mailing list