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

Byte-code optimization #602

Open
arakov opened this issue Aug 25, 2023 · 0 comments
Open

Byte-code optimization #602

arakov opened this issue Aug 25, 2023 · 0 comments

Comments

@arakov
Copy link
Member

arakov commented Aug 25, 2023

  • Reference inline conversion constructor : no need for the frame
  • open [1,2,3,4}, x
  • dcopy - x86-64, aarch64, ppc64le
  • dcopydpn - x86, x86-64, aarch64, ppc64le
  • int dump[4]; dump[i*2] := 3;
  • dump[0] := 1
  • dispatch opcode optimization for 1,2,3,4
  • createnr - optimization for 1,2,4,8
  • ppc64 optimization : use store multiple for alloc / open opcodes - for filling the stack with zeros
  • aarch64 : use - ldr x17, [x16, #PLT_GOT+0x10] to load value without using another operation
  • aarch64 : use adrp to load some 32bit addresses
  • openheader / open - there should be an optimized version for n < 4 - with reserved raw stack
  • for ppc64 / arm64 - there should be alternative version to deal with args more than 9 / 12 / 16 bits
  • openin / extopenin - increase number of optimization - open 4,0; open 1,n; open 2,n; open 3,n; open 4,n; open 5,n; open 6,n
  • fillir for i = 16
  • copy 16
  • new opcode - loadfp / lloadfp
  • no need to have imul eax,eax,1
@arakov arakov added this to the ELENA 6.0 milestone Aug 25, 2023
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