[llvm] [NewPM][CodeGen] Add `MachineFunctionAnalysis` (PR #88610)

via llvm-commits llvm-commits at lists.llvm.org
Sat May 10 23:46:32 PDT 2025


paperchalice wrote:

> Having the `InvalidateAnalysisPass<MachineFunctionAnalysis>()` is causing a problem with `ModuleToCGSCCPassAdaptor` by deleting machine functions for other functions and ending up with exactly one correctly compiled MF, with the rest being vanished.

If there is no module pass to break the pipeline, there should be only one machine function in memory. This is just the replacement for `FreeMachineFunction`, which also delete current machine function, in legacy pipeline. Does AMDGPU require invalidation granularity in CGSCC?

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


More information about the llvm-commits mailing list