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

Collect statistics of instructions that may directly map to C-extension instructions #2

Open
ghost opened this issue Dec 22, 2020 · 0 comments

Comments

@ghost
Copy link

ghost commented Dec 22, 2020

Migrated from riscv-collab/v8#284:

Augment the trace analysis tool to collect statistics on instructions that can be directly rewritten into C-extension instructions.

Those that can be rewritten to C-extension instructions need to satisfy additional constraints such as:

  • the immediate or address offset is small, or
  • one of the registers is the zero register (x0), the ABI link register (x1), or the ABI stack pointer (x2), or
  • the destination register and the first source register are identical, or
  • the registers used are the 8 most popular ones

Report the percentage of instructions (for each regular instruction) that can be rewritten to C-extension instructions (i.e., 40% of add can be rewritten to C-extension add

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

0 participants