[llvm] [PGO] Add option to always instrumenting loop entries (PR #116789)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 10:57:13 PST 2024
================
@@ -1980,8 +1995,11 @@ PreservedAnalyses PGOInstrumentationGen::run(Module &M,
auto LookupBFI = [&FAM](Function &F) {
return &FAM.getResult<BlockFrequencyAnalysis>(F);
};
+ auto LookupLI = [&FAM](Function &F) {
+ return &FAM.getResult<LoopAnalysis>(F);
+ };
----------------
ellishg wrote:
Honestly I'm not sure why we don't simply pass the `FAM` rather than these lambdas, but this probably shouldn't block your work.
https://github.com/llvm/llvm-project/pull/116789
More information about the llvm-commits
mailing list