[llvm] 2ce865d - ARM: Avoid using MachineFunction::getMMI

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 24 04:21:19 PDT 2024


Author: Matt Arsenault
Date: 2024-07-24T15:21:14+04:00
New Revision: 2ce865d4905970c07477a9c4e37159664a785c81

URL: https://github.com/llvm/llvm-project/commit/2ce865d4905970c07477a9c4e37159664a785c81
DIFF: https://github.com/llvm/llvm-project/commit/2ce865d4905970c07477a9c4e37159664a785c81.diff

LOG: ARM: Avoid using MachineFunction::getMMI

Added: 
    

Modified: 
    llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
index df7970feecbbc..18cb516d41c1f 100644
--- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
+++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.cpp
@@ -6352,8 +6352,7 @@ ARMBaseInstrInfo::getOutliningTypeImpl(const MachineModuleInfo &MMI,
 
     // We have a function we have information about.  Check if it's something we
     // can safely outline.
-    MachineFunction *MF = MI.getParent()->getParent();
-    MachineFunction *CalleeMF = MF->getMMI().getMachineFunction(*Callee);
+    MachineFunction *CalleeMF = MMI.getMachineFunction(*Callee);
 
     // We don't know what's going on with the callee at all.  Don't touch it.
     if (!CalleeMF)


        


More information about the llvm-commits mailing list