You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Initializes the FunctionNameToDIFilename map for the current module and
113
-
// then reads the profile for matching functions.
120
+
// then reads the profile for the matching functions.
114
121
booldoInitialization(Module &M) override;
115
122
116
123
private:
@@ -127,7 +134,7 @@ class BasicBlockSectionsProfileReader : public ImmutablePass {
127
134
inconvertibleErrorCode());
128
135
}
129
136
130
-
// Parses a `ProfileBBID` from `S`.
137
+
// Parses a `ProfileBBID` from `S`. `S` should be in the form "<bbid>" (representing an original block) or "<bbid>.<cloneid>" (representing a cloned block) where bbid is a non-negative integer and cloneid is a positive integer.
// clone basic blocks along a path. The cloned blocks are then specified in the
86
86
// cluster information.
87
87
// The following profile lists two cloning paths (starting with 'p') for
88
-
// function bar and places the total 11 blocks within two clusters. Each cloned
89
-
//block is identified by its original block id, along with its clone id. A
90
-
// block cloned multiple times (2 in this example) appears with distinct clone
91
-
//ids (2.1 and 2.2).
92
-
//---------------------------
88
+
// function bar and places the total 9 blocks within two clusters. The blocks in each path are cloned along the path from the first block (the first block is not cloned).
89
+
//For instance, path 1 (1 -> 3 -> 4) specifies that 3 and 4 must be cloned along the edge 1->3. In the clusters, each cloned
90
+
// block is identified by its original block id, along with its clone id. For instance, the cloned blocks from path 1 are represented by 3.1 and 4.1.
91
+
//A block cloned multiple times appears with distinct clone ids. The CFG for bar
92
+
//is shown below before and after cloning with its final clusters labeled.
0 commit comments