[llvm] [PGO] Supporting code for always instrumenting loop entries (PR #116789)
Christian Ulmann via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 19 04:10:32 PST 2024
================
@@ -154,6 +159,9 @@ template <class Edge, class BBInfo> class CFGMST {
}
if (BPI != nullptr)
Weight = BPI->getEdgeProbability(&BB, TargetBB).scale(scaleFactor);
+ if (InstrumentLoopEntries && LI != nullptr &&
----------------
Dinistro wrote:
Nit: Maybe explain in a small comment what is happening here.
https://github.com/llvm/llvm-project/pull/116789
More information about the llvm-commits
mailing list