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

riscv64: Rollback isub const LHS optimization #7491

Merged
merged 1 commit into from
Nov 7, 2023

Conversation

afonso360
Copy link
Contributor

👋 Hey,

This PR fixes a bug with #7480. Where we used addi instead of isub when either the LHS or RHS are constant. This is correct for the RHS rule, but not for LHS since the subtraction isn't commutative.

@afonso360 afonso360 added the cranelift:area:riscv64 Issues related to the RISC-V 64 backend. label Nov 7, 2023
@afonso360 afonso360 requested a review from a team as a code owner November 7, 2023 10:38
@afonso360 afonso360 requested review from elliottt and removed request for a team November 7, 2023 10:38
@github-actions github-actions bot added the cranelift Issues related to the Cranelift code generator label Nov 7, 2023
@alexcrichton alexcrichton added this pull request to the merge queue Nov 7, 2023
Merged via the queue into bytecodealliance:main with commit a6e559a Nov 7, 2023
25 checks passed
alexcrichton pushed a commit to alexcrichton/wasmtime that referenced this pull request Nov 8, 2023
alexcrichton added a commit that referenced this pull request Nov 8, 2023
* wasi-http: Reject delete of forbidden headers (#7490)

* Don't delete forbidden headers

* Make delete return a result

* Fix test that wasn't updated for fallible delete changes

* riscv64: Rollback isub lhs optimization (#7491)

---------

Co-authored-by: Trevor Elliott <telliott@fastly.com>
Co-authored-by: Afonso Bordado <afonso360@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:riscv64 Issues related to the RISC-V 64 backend. cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants