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

Split up functions with only one basic block into multiple #4

Open
brunph opened this issue Dec 8, 2023 · 0 comments
Open

Split up functions with only one basic block into multiple #4

brunph opened this issue Dec 8, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@brunph
Copy link

brunph commented Dec 8, 2023

Smaller functions with only one basic block breaks most of the transforms. A fix for this would be writing a transform that splits it up into multiple.

mov rax, 1
ret

becomes

:bb1
mov rax, 1
jmp bb2

:bb2
ret
@es3n1n es3n1n added the enhancement New feature or request label Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants