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

Implement RISC-V instruction fusion as optimization. #1540

Open
lvella opened this issue Jul 5, 2024 · 0 comments
Open

Implement RISC-V instruction fusion as optimization. #1540

lvella opened this issue Jul 5, 2024 · 0 comments

Comments

@lvella
Copy link
Member

lvella commented Jul 5, 2024

There are several common instruction sequences in RISC-V that can be optimized in the micro-architecture by "fusing" them as a single optimized implementation.

This seems a good opportunity to reduce the number of rows of powdr assembly programs translated from RISC-V. I can think of a few lui uses (also works for auipc) that could be fused:

  • lui A, <address>
    addi B, A, <address>
  • lui A, <address>
    l{w,h,b} B, <address>(A)
  • lui A, <address>
    s{w,h,b} B, <address>(A)

But certainly there are more, as this is RISC-V talked topic. Reference links:

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