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] Refactor SplitFunctions for function reuse. NFC. #73078

Closed

Conversation

ShatianWang
Copy link
Contributor

@ShatianWang ShatianWang commented Nov 22, 2023

This commit updates SplitFunctions.h and SplitFunctions.cpp to enable
the reuse of createEHTrampolines, mergeEHTrampolines, allBlocksCold
by a distinct function splitting pass (CDSplit). While the SplitFunctions
pass happens before the function reordering pass because function
reordering depends on the function splitting decisions, CDSplit will be
implemented as a separate function splitting pass and called after the
function reordering pass to make use of the fixed function ordering to
achieve better function splitting decisions.

@ShatianWang ShatianWang marked this pull request as ready for review November 22, 2023 04:41
@ShatianWang
Copy link
Contributor Author

ShatianWang commented Nov 22, 2023

Note: this PR is 2/8 for upstreaming a new 3-way (hot-warm-cold) function splitting algorithm CDSplit.
It is one commit ahead of #73076

This commit updates SplitFunctions.h and SplitFunctions.cpp to enable
the reuse of createEHTrampolines, mergeEHTrampolines, hasFullProfile,
and allBlocksCold by a distinct function splitting pass (CDSplit).
@ShatianWang ShatianWang force-pushed the 112123Commit2_SplitFunctionsReuse branch from 61de295 to 4d47f05 Compare November 23, 2023 20:35
@ShatianWang ShatianWang changed the title [BOLT] Refactor SplitFunctions for Function Reuse [BOLT] Refactor SplitFunctions for function reuse. NFC. Nov 23, 2023
@ShatianWang
Copy link
Contributor Author

Based on offline discussion with @maksfb, made the following changes:

@ShatianWang ShatianWang reopened this Nov 25, 2023
@ShatianWang ShatianWang marked this pull request as draft November 26, 2023 06:57
@ShatianWang ShatianWang deleted the 112123Commit2_SplitFunctionsReuse branch December 21, 2023 05:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant