afonso360 opened PR #6476 from afonso360:riscv-shifts-cleanup
to bytecodealliance:main
:
:wave: Hey,
This is a small cleanup to the shift rules, we had a few rules that lowered to the same instruction and that could be de-duplicated. Additionally this also does a few improvements in certain cases:
- We were missing some opportunities to encode the shift amount into the shift instruction
- Additionally we now look through
uextend
's on the shift amounts to find even more inlining opportunitiesThe first commit adds the tests with the current lowerings, and the follow up commits show how the codegen changes.
afonso360 requested abrown for a review on PR #6476.
afonso360 requested wasmtime-compiler-reviewers for a review on PR #6476.
afonso360 edited PR #6476:
:wave: Hey,
This is a small cleanup to the shift rules, we had a few rules that lowered to the same instruction and that could be de-duplicated. Additionally we now look through
uextend
's on the shift amounts to find even more inlining opportunitiesThe first commit adds the tests with the current lowerings, and the follow up commits show how the codegen changes.
afonso360 updated PR #6476.
alexcrichton submitted PR review:
Nice!
Definitely appreciate the commit separation, made this quite easy to review :+1:
afonso360 updated PR #6476.
afonso360 updated PR #6476.
afonso360 has enabled auto merge for PR #6476.
afonso360 updated PR #6476.
afonso360 merged PR #6476.
Last updated: Dec 23 2024 at 12:05 UTC