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 : Use function reorder only #92372

Open
Snow-Ning opened this issue May 16, 2024 · 3 comments
Open

BOLT : Use function reorder only #92372

Snow-Ning opened this issue May 16, 2024 · 3 comments
Labels

Comments

@Snow-Ning
Copy link

I want the binary optimized by bolt to reorder only the hot functions and generate .text sections for the reorder functions without modifying the size of any instruction. How should I set the options?

@Snow-Ning
Copy link
Author

Hello,I want the binary optimized by bolt to reorder only the hot functions and generate .text sections for the reorder functions without modifying the size of any instruction. How should I set the options?

@Snow-Ning Snow-Ning reopened this May 16, 2024
@Snow-Ning Snow-Ning changed the title Use function reorder only BOLT : Use function reorder only May 16, 2024
@llvmbot
Copy link
Collaborator

llvmbot commented May 16, 2024

@llvm/issue-subscribers-bolt

Author: None (Snow-Ning)

I want the binary optimized by bolt to reorder only the hot functions and generate .text sections for the reorder functions without modifying the size of any instruction. How should I set the options?

@maksfb
Copy link
Contributor

maksfb commented May 28, 2024

We don't have any special mode that will do exactly as you ask. May I ask why you want it? We have a flag --keep-nops that will leave functions in a state closer to what you want, but there are other passes that can modify instructions even when no optimizations are specified. The caveat with nops is that the alignment will get affected by the new layout, i.e. probably will have to combine it with --align-functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants