[llvm] AMDGPU: Query MachineModuleInfo from PM instead of MachineFunction (PR #99679)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 20 00:43:39 PDT 2024
================
@@ -2802,7 +2801,10 @@ bool SIMemoryLegalizer::expandAtomicCmpxchgOrRmw(const SIMemOpInfo &MOI,
bool SIMemoryLegalizer::runOnMachineFunction(MachineFunction &MF) {
bool Changed = false;
- SIMemOpAccess MOA(MF);
+ const MachineModuleInfo &MMI =
+ getAnalysis<MachineModuleInfoWrapperPass>().getMMI();
----------------
arsenm wrote:
It's already in the base MachineFunction getAnalysisUsage
https://github.com/llvm/llvm-project/pull/99679
More information about the llvm-commits
mailing list