-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add testdata for a function with multiple cold basic blocks
PiperOrigin-RevId: 696911074
- Loading branch information
1 parent
319bd7f
commit 390f4a4
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## CFG Proto for a function consisting of three cold blocks and two hot blocks. | ||
## | ||
## foo | ||
## | ||
## foo.2 foo.4 | ||
## | ||
## 40 | ||
## foo.3 -----> foo.1 | ||
|
||
cfg { | ||
name: "foo" | ||
function_index: 999 | ||
node { | ||
bb_id: 0 | ||
size: 10 | ||
} | ||
node { | ||
bb_id: 1 | ||
size: 6 | ||
} | ||
node { | ||
bb_id: 2 | ||
size: 5 | ||
} | ||
node { | ||
bb_id: 3 | ||
size: 4 | ||
out_edges { | ||
sink : { | ||
function_index: 999 | ||
bb_index: 1 | ||
} | ||
weight: 40 | ||
kind: BRANCH_OR_FALLTHROUGH | ||
} | ||
} | ||
node { | ||
bb_id: 4 | ||
size: 3 | ||
} | ||
} |