-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[BOLT] Match blocks with pseudo probes #99891
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
Merged
aaupov
merged 65 commits into
main
from
users/shawbyoung/spr/bolt-match-blocks-with-pseudo-probes
Nov 12, 2024
Merged
Changes from 1 commit
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
5a5991a
[𝘀𝗽𝗿] initial version
shawbyoung 94ffb45
[𝘀𝗽𝗿] changes to main this commit is based on
aaupov 0274f69
Changed assignment of profiles with pseudo probe index
shawbyoung 7e3d8d6
Edit test and assert
shawbyoung 780a07e
Fixed failing asserts, pruned prospective pseudo probes for matching
shawbyoung 1638ac1
Added logging for pseudo probe block matching
shawbyoung 144716b
Changed pseudo probe matching failure logging to v=3
shawbyoung 2934710
More loggin
shawbyoung b74fc8b
Logging blocks matched with opcodes
shawbyoung c38fb98
Updated test
shawbyoung b2a3ca7
Name changes in prep for inlined block pseudo probe block matching
shawbyoung 2eb7bf2
Rm unnecessary Blocks vec in StaleMatcher
shawbyoung 212bd00
Improved matched block counting
shawbyoung eb6dfb9
Removed comment from test
shawbyoung 16b5cfb
Added comments and check for null YamlBFGUID in StaleMatcher before P…
shawbyoung 799f20c
Omitting braces in one line if
shawbyoung 1e9af7f
[𝘀𝗽𝗿] changes introduced through rebase
aaupov e3599d4
Pseudo probe matching now is triggered by flag
shawbyoung 33f1b2a
Omit unnecessary braces
shawbyoung 9889f89
Change initialization of index -> probe and probe -> block mappings
shawbyoung 022c517
Formatting
shawbyoung 5109893
Comments
shawbyoung 5bf4220
Changed std ADTs to LLVM
shawbyoung f1179b1
In matchWithPseudoProbe, hoist BlocksPseudoProbes.size(), added loggi…
shawbyoung 5076bab
A more beautiful helper function for matchWithPseudoProbes
shawbyoung 4f2f642
Added inlined block pseudo probe matching
shawbyoung 327eb81
Added flag to trigger pseudo probe block matching
shawbyoung 37793aa
Added flag for pseudo probe block matching
shawbyoung ba00b22
Set flag init val, changed std::string to StringRef
shawbyoung 5e47249
[BOLT][NFC] Add timers for MetadataManager invocations
aaupov 3902eff
[MC][NFC] Count pseudo probes and function records
aaupov d20d4d6
[MC][NFC] Drop unused MCDecodedPseudoProbeInlineTree::ChildrenToProce…
aaupov a857d32
[profgen][NFC] Pass parameter as const_ref
aaupov cddea6a
[MC][NFC] Statically allocate storage for decoded pseudo probes and f…
aaupov 9746055
[MC][profgen][NFC] Expand auto for MCDecodedPseudoProbe
aaupov 3dcef48
[MC][NFC] Reduce Address2ProbesMap size
aaupov ba149d9
[MC][NFC] Use vector for GUIDProbeFunctionMap
aaupov c35e8ac
buildAddress2ProbeMap timers
aaupov 1c469cf
[BOLT][NFC] Rename profile-use-pseudo-probes
aaupov 97f8101
[BOLT][NFCI] Strip suffix in getLTOCommonName
aaupov e0a705e
[BOLT] Only parse probes for profiled functions in profile-write-pseu…
aaupov 66fe5d5
[BOLT] Add pseudo probe inline tree to YAML profile
aaupov 36197b1
Reworked block probe matching
aaupov bfa0afc
[𝘀𝗽𝗿] changes introduced through rebase
aaupov 0f455d0
rebase
aaupov 8fafc04
drop logIf
aaupov b1be6e6
[𝘀𝗽𝗿] changes introduced through rebase
aaupov 4c5156c
Use new profile probe encoding
aaupov 205c79c
[𝘀𝗽𝗿] changes introduced through rebase
aaupov 544a6ad
Test fix
aaupov ee214d5
[𝘀𝗽𝗿] changes introduced through rebase
aaupov 0bb4e3a
Memoize top-level GUID->InlineTree mapping, cuts inference time by ~30%
aaupov 880bd37
[𝘀𝗽𝗿] changes introduced through rebase
aaupov 2ba5591
clang-format
aaupov 75d6229
[𝘀𝗽𝗿] changes introduced through rebase
aaupov 3b4e3f4
Update with #107137 changes
aaupov 41e1fa0
[𝘀𝗽𝗿] changes introduced through rebase
aaupov 7ee82b6
Move matchInlineTrees into InlineTreeNodeMapTy
aaupov 648f2bb
[𝘀𝗽𝗿] changes introduced through rebase
aaupov e8e1cb9
Add test with inline trees, address comments
aaupov ebd3acf
Allow null block participate in majority vote, improves run-time perf…
aaupov c84de42
[𝘀𝗽𝗿] changes introduced through rebase
aaupov e7bce6d
address comments
aaupov 2502434
[𝘀𝗽𝗿] changes introduced through rebase
aaupov 956bcf2
rebase
aaupov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.