[llvm] [InlineCost] Cache collectEphemeralValues() to save compile time (PR #130210)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 11 08:52:24 PDT 2025
================
@@ -388,6 +389,8 @@ PreservedAnalyses InlinerPass::run(LazyCallGraph::SCC &InitialC,
Advice->recordUnsuccessfulInlining(IR);
continue;
}
+ // The caller was modified, so invalidate Ephemeral Values.
+ FAM.getResult<EphemeralValuesAnalysis>(F).clear();
----------------
vporpo wrote:
I think so, but let's make this a separate patch in case it breaks something. I added a TODO.
https://github.com/llvm/llvm-project/pull/130210
More information about the llvm-commits
mailing list