diff options
author | Arthur Eubanks <aeubanks@google.com> | 2023-03-15 11:46:44 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2023-03-15 13:17:21 -0700 |
commit | d6c0724eb158efcdcd4e31289dcb954a441c4939 (patch) | |
tree | a021468f4b30f18c5c209f459e80c0ada6705f71 /llvm/lib/LTO/LTOBackend.cpp | |
parent | 20a7ea49f40e2d47eb6b87acf835782dece92f08 (diff) | |
download | llvm-d6c0724eb158efcdcd4e31289dcb954a441c4939.zip llvm-d6c0724eb158efcdcd4e31289dcb954a441c4939.tar.gz llvm-d6c0724eb158efcdcd4e31289dcb954a441c4939.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/LTO/LTOBackend.cpp')
-rw-r--r-- | llvm/lib/LTO/LTOBackend.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |