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

Instruction Fusion #633

Open
xThaid opened this issue Mar 28, 2024 · 0 comments
Open

Instruction Fusion #633

xThaid opened this issue Mar 28, 2024 · 0 comments
Labels
enhancement New feature or request nice to have Could be useful, but not a top priority optimization This is *just* an optimization!

Comments

@xThaid
Copy link

xThaid commented Mar 28, 2024

Since the fetch unit will be able to deliver multiple instructions per cycle soon, we could use that to implement instruction fusion. We could start by simply looking at two consecutive instructions and seeing if we can fuse two isa-ops into a single uop.

Examples:

  • lui r1 0xfffff000 + addi r1, r1, 0xfff (loading immediate)
  • srli r1, r1, 8 + andi r1, r1, 255 (load the second byte)
  • slli r1, r1, 2 + add r1, r1, r2 (multiply by 4 and add)
@xThaid xThaid added enhancement New feature or request nice to have Could be useful, but not a top priority optimization This is *just* an optimization! labels Mar 28, 2024
@tilk tilk added this to the Improve the core's performance milestone Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request nice to have Could be useful, but not a top priority optimization This is *just* an optimization!
Projects
None yet
Development

No branches or pull requests

2 participants