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

Loop based code motion #652

Open
kirstenmg opened this issue Nov 1, 2024 · 0 comments
Open

Loop based code motion #652

kirstenmg opened this issue Nov 1, 2024 · 0 comments
Assignees

Comments

@kirstenmg
Copy link
Collaborator

To be on par with peggy, we should implement loop based code motion.

Example:

original:

int x = 0;
while (x < 3) {
    x += 1;
}
return x * 5;

optimized:

int x = 0;
while (x < 15) {
    x += 5;
}
return x;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants