Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BOLT] Add CallSiteInfo entries in YAMLBAT #76896

Merged

Conversation

aaupov
Copy link
Contributor

@aaupov aaupov commented Jan 4, 2024

Attach call counters to YAML profile, covering inter-function control
flow.

Depends on: #86218

Test Plan: Updated bolt/test/X86/bolt-address-translation-yaml.test

Created using spr 1.3.4
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
aaupov added a commit that referenced this pull request Mar 21, 2024
Relax assumptions that YAML output is not supported in BAT mode.
Set up basic infrastructure for emitting YAML for functions not covered
by BAT, such as from `.bolt.org.text` section (code identical to input binary
sans external refs), or non-rewritten functions in non-relocation mode (where
the function stays in the same section but BAT mapping is not emitted).

This diff only produces YAML profile for non-BAT functions (skipped,
non-simple). YAML profile for BAT functions is added in follow-up diffs:
- #76911 emits YAML profile with
  internal control flow information only (branch profile),
- #76896 adds cross-function profile
  (calls profile).

Test Plan: Added bolt/test/X86/bolt-address-translation-yaml.test

Reviewers: ayermolo, dcci, maksfb, rafaelauler

Reviewed By: rafaelauler

Pull Request: #76910
aaupov and others added 2 commits March 21, 2024 16:37
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Copy link
Contributor

@rafaelauler rafaelauler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

chencha3 pushed a commit to chencha3/llvm-project that referenced this pull request Mar 23, 2024
Relax assumptions that YAML output is not supported in BAT mode.
Set up basic infrastructure for emitting YAML for functions not covered
by BAT, such as from `.bolt.org.text` section (code identical to input binary
sans external refs), or non-rewritten functions in non-relocation mode (where
the function stays in the same section but BAT mapping is not emitted).

This diff only produces YAML profile for non-BAT functions (skipped,
non-simple). YAML profile for BAT functions is added in follow-up diffs:
- llvm#76911 emits YAML profile with
  internal control flow information only (branch profile),
- llvm#76896 adds cross-function profile
  (calls profile).

Test Plan: Added bolt/test/X86/bolt-address-translation-yaml.test

Reviewers: ayermolo, dcci, maksfb, rafaelauler

Reviewed By: rafaelauler

Pull Request: llvm#76910
@aaupov aaupov changed the base branch from users/aaupov/spr/main.bolt-add-callsiteinfo-entries-in-yamlbat-1 to main March 25, 2024 22:33
@aaupov aaupov changed the base branch from main to users/aaupov/spr/main.bolt-add-callsiteinfo-entries-in-yamlbat-1 March 25, 2024 22:33
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
@aaupov aaupov changed the base branch from users/aaupov/spr/main.bolt-add-callsiteinfo-entries-in-yamlbat-1 to main March 25, 2024 22:34
@aaupov aaupov merged commit 213eda1 into main Mar 25, 2024
5 checks passed
@aaupov aaupov deleted the users/aaupov/spr/bolt-add-callsiteinfo-entries-in-yamlbat-1 branch March 25, 2024 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants