[llvm] [NewPM][CodeGen] Add `FunctionToMachineFunctionAnalysis` (PR #88610)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 16:59:14 PDT 2024
================
@@ -71,7 +73,9 @@ bool MachineFunctionAnalysisManagerModuleProxy::Result::invalidate(
PreservedAnalyses
ModuleToMachineFunctionPassAdaptor::run(Module &M, ModuleAnalysisManager &AM) {
- auto &MMI = AM.getResult<MachineModuleAnalysis>(M).getMMI();
+ // Ensure we have a MachineModuleInfo
+ AM.getResult<MachineModuleAnalysis>(M).getMMI();
----------------
paperchalice wrote:
Can remove it when we have `ModuleAnalysisManagerMachineFunctionProxy`, like `FunctionAnalysisManagerMachineFunctionProxy`.
https://github.com/llvm/llvm-project/pull/88610
More information about the llvm-commits
mailing list