[llvm] [AlwaysInline] Avoid unnecessary BFI fetches (PR #117750)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 26 12:45:40 PST 2024
================
@@ -133,9 +136,12 @@ struct AlwaysInlinerLegacyPass : public ModulePass {
auto GetAssumptionCache = [&](Function &F) -> AssumptionCache & {
return getAnalysis<AssumptionCacheTracker>().getAssumptionCache(F);
};
+ auto GetCachedBFI = [&](Function &) -> BlockFrequencyInfo * {
----------------
fhahn wrote:
```suggestion
auto GetCachedBFI = [](Function &) -> BlockFrequencyInfo * {
```
https://github.com/llvm/llvm-project/pull/117750
More information about the llvm-commits
mailing list