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

Break multiply into multiply + shift #162

Open
mkst opened this issue Jul 5, 2023 · 0 comments
Open

Break multiply into multiply + shift #162

mkst opened this issue Jul 5, 2023 · 0 comments

Comments

@mkst
Copy link
Contributor

mkst commented Jul 5, 2023

This scratch shows an example where x * 0x500 produces different codegen from (x * 5) << 8.

Looking at the asm you can see that the ops are the same, but it affects other code:

a8:    sll     t4,t3,0x2
ac:    addu    t4,t4,t3
b0:    sll     t5,t4,0x8

Therefore, it would be nice if permuter broke these math operations up (probably just for IDO?).

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

1 participant