[PATCH] D90125: [CSSPGO] Infrastructure for context-sensitive Sample PGO and Inlining

David Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 10 12:56:46 PST 2020


davidxl added inline comments.


================
Comment at: llvm/include/llvm/ProfileData/SampleProf.h:361
+// Example of full context string (note the wrapping `[]`):
+//    `[main:3 @ _Z5funcAi:1 @ _Z8funcLeafi]`
+// Example of context-less function name (same as AutoFDO):
----------------
The syntax of the context string can probably be made more consistent like:

SampleContext : LeafContext
                           : ParentContext   LeafContext

LeafContext: function_name
ParentContext: [ParentFrames]
ParentFrames:   OneParentFrame   
                        : ParentFrames   OneParentFrame
OneParentFrame:  function_name:line @

So in your example, the full context string should look like:

[main:3 @_Z5funcAi:1 @] _Z8funcLeafi



Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90125/new/

https://reviews.llvm.org/D90125



More information about the llvm-commits mailing list