From 6a6994cc9bc0327aaf8b005c650ff5eb29d2bcce Mon Sep 17 00:00:00 2001 From: Arthur Eubanks Date: Wed, 15 Mar 2023 11:46:44 -0700 Subject: Reland [StandardInstrumentations] Check function analysis invalidation in module passes as well See comments for why we now need to pass in the MAM instead of the FAM. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D146160 --- llvm/lib/LTO/LTOBackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/LTO/LTOBackend.cpp') diff --git a/llvm/lib/LTO/LTOBackend.cpp b/llvm/lib/LTO/LTOBackend.cpp index 4c41a38..d574ae5 100644 --- a/llvm/lib/LTO/LTOBackend.cpp +++ b/llvm/lib/LTO/LTOBackend.cpp @@ -260,7 +260,7 @@ static void runNewPMPasses(const Config &Conf, Module &Mod, TargetMachine *TM, PassInstrumentationCallbacks PIC; StandardInstrumentations SI(Mod.getContext(), Conf.DebugPassManager); - SI.registerCallbacks(PIC, &FAM); + SI.registerCallbacks(PIC, &MAM); PassBuilder PB(TM, Conf.PTO, PGOOpt, &PIC); RegisterPassPlugins(Conf.PassPlugins, PB); -- cgit v1.1