-
Notifications
You must be signed in to change notification settings - Fork 13k
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
[NFC]Refactor static data splitter #125758
Conversation
// Returns true iff any jump table is hot-cold categorized. | ||
bool splitJumpTables(MachineFunction &MF); | ||
void updateStats(bool ProfileAvailable, const MachineJumpTableInfo *MJTI); | ||
void updateJumpTableStats(bool ProfileAvailable, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
document the methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
if (ProfileAvailable) | ||
Changed |= partitionStaticDataWithProfiles(MF); | ||
|
||
updateStats(ProfileAvailable, MF.getJumpTableInfo()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can this be moved up before the partition? With that, an early return can be used when profile is not available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I revised the change to have updateStatsWithoutProfiles
and updateStatsWithProfiles
, and moved updateStatsWithoutProfiles
up.
This is a split of llvm#125756
This is a split of #125756