Skip to content

riscv64: Rollback isub const LHS optimization#7491

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
afonso360:riscv-isub-fix
Nov 7, 2023
Merged

riscv64: Rollback isub const LHS optimization#7491
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
afonso360:riscv-isub-fix

Conversation

@afonso360
Copy link
Copy Markdown
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
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