1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[Inliner] Make ModuleInlinerWrapperPass return PreservedAnalyses::all()

The ModulePassManager should already have taken care of all analysis
invalidation. Without this change, upcoming changes will cause more
invalidation than necessary.

Reviewed By: mtrofin

Differential Revision: https://reviews.llvm.org/D101320
This commit is contained in:
Arthur Eubanks 2021-04-26 12:53:09 -07:00
parent 480e72ac58
commit 1f40f70a19

View File

@ -1036,8 +1036,10 @@ PreservedAnalyses ModuleInlinerWrapperPass::run(Module &M,
else
MPM.addPass(createModuleToPostOrderCGSCCPassAdaptor(
createDevirtSCCRepeatedPass(std::move(PM), MaxDevirtIterations)));
auto Ret = MPM.run(M, MAM);
MPM.run(M, MAM);
IAA.clear();
return Ret;
// The ModulePassManager has already taken care of invalidating analyses.
return PreservedAnalyses::all();
}