[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:30 PST 2024


================
@@ -820,7 +820,7 @@ bool GCOVProfiler::emitProfileNotes(
       SplitIndirectBrCriticalEdges(F, /*IgnoreBlocksWithoutPHI=*/false, BPI,
                                    BFI);
 
-      CFGMST<Edge, BBInfo> MST(F, /*InstrumentFuncEntry_=*/false, BPI, BFI);
+      CFGMST<Edge, BBInfo> MST(F, /*InstrumentFuncEntry_=*/false, /*InstrumentLoopEntries_=*/false, BPI, BFI);
----------------
Dinistro wrote:

```suggestion
      CFGMST<Edge, BBInfo> MST(F, /*InstrumentFuncEntry=*/false, /*InstrumentLoopEntries=*/false, BPI, BFI);
```

https://github.com/llvm/llvm-project/pull/116789


More information about the llvm-commits mailing list