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

optimization : arithmetic operations #586

Open
arakov opened this issue Jul 4, 2023 · 0 comments
Open

optimization : arithmetic operations #586

arakov opened this issue Jul 4, 2023 · 0 comments

Comments

@arakov
Copy link
Member

arakov commented Jul 4, 2023

Optimize the following bytecode snip:

       set dp   :-8
       store sp :0
       set dp   :-4
       store sp :1
       copy dp  :-16, :4
       xmov sp  :0, :1            
       iadd dp  :-16, :4
       set dp   :-16
       load     
       save dp  :-12

rearrange the operation, to get rid of xmov sp:0, :1

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

No branches or pull requests

1 participant