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

[C-extension] Collect statistics of instructions that may directly map to C-extension instructions #284

Closed
penguinwu opened this issue Oct 22, 2020 · 2 comments
Assignees
Labels

Comments

@penguinwu
Copy link

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

@penguinwu
Copy link
Author

Not sure if @LOGQTAINIA or @luyahan is better suited for this issue. I'll let you two decide

@penguinwu penguinwu changed the title Collect statistics of instructions that may directly map to C-extension instructions [C-extension] Collect statistics of instructions that may directly map to C-extension instructions Oct 22, 2020
@ghost
Copy link

ghost commented Dec 22, 2020

Migrated to v8-riscv/v8-riscv-tools#2

@ghost ghost closed this as completed Dec 22, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants