[llvm] CodeGen/NewPM: Initialize MMI in NewPM path (PR #99754)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 20 09:55:06 PDT 2024


================
@@ -509,6 +509,8 @@ void SelectionDAGISel::initializeAnalysisResults(
     FnVarLocs = &FAM.getResult<DebugAssignmentTrackingAnalysis>(Fn);
 
   auto *UA = FAM.getCachedResult<UniformityInfoAnalysis>(Fn);
+  MMI = &MFAM.getResult<MachineModuleAnalysis>(*MF).getMMI();
----------------
arsenm wrote:

I was expecting this to not compile if it wasn't going to work. I'm not sure how to get a ModuleAnalysisManager from the MachineFunctionAnalysisManager 

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


More information about the llvm-commits mailing list