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] Write and parse BF/BB hashes in BAT #76907

Merged
merged 16 commits into from
Mar 20, 2024

Conversation

aaupov
Copy link
Contributor

@aaupov aaupov commented Jan 4, 2024

This increases BAT section size to:

  • large binary: 34832976 bytes (0.90x original),
  • medium binary: 3586800 bytes (0.60x original),
  • small binary: 816 bytes (0.57x original).

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

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
@rafaelauler rafaelauler self-assigned this Jan 25, 2024
LLVM_DEBUG(dbgs() << "BB " << BB.getName() << "\n");
LLVM_DEBUG(dbgs() << " Key: " << Twine::utohexstr(BBOutputOffset)
<< " Val: " << Twine::utohexstr(BBInputOffset) << "\n");
LLVM_DEBUG(dbgs() << "BB " << BB.getName() << "\n"
Copy link
Contributor

Choose a reason for hiding this comment

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

So you're not using the basic block hash anywhere, other than printing it to debug output?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not in this diff. Hashes will be output to YAML in follow up diffs starting with #76910.

@aaupov aaupov marked this pull request as draft January 26, 2024 18:03
@aaupov aaupov marked this pull request as ready for review March 20, 2024 21:56
@aaupov aaupov changed the base branch from users/aaupov/spr/main.bolt-write-and-parse-bfbb-hashes-in-bat to main March 20, 2024 23:23
@aaupov aaupov merged commit ad00e7e into main Mar 20, 2024
8 checks passed
@aaupov aaupov deleted the users/aaupov/spr/bolt-write-and-parse-bfbb-hashes-in-bat branch March 20, 2024 23:24
chencha3 pushed a commit to chencha3/llvm-project that referenced this pull request Mar 23, 2024
This increases BAT section size to:
- large binary: 34832976 bytes (0.90x original),
- medium binary: 3586800 bytes (0.60x original),
- small binary: 816 bytes (0.57x original).

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

Reviewers: rafaelauler, dcci, ayermolo, maksfb

Reviewed By: rafaelauler

Pull Request: llvm#76907
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