myunbin opened PR #12743 from myunbin:arithmetic-add-030926 to bytecodealliance:main:
This PR adds several arithmetic/bitwise simplification rules to Cranelift:
(x + y) + (-y) ==> x(x | y) - (x & y) ==> (x ^ y)(x + y) - (x & y) ==> (x | y)(x | y) - (x ^ y) ==> (x & y)(~x) + x ==> -1
myunbin requested fitzgen for a review on PR #12743.
myunbin requested wasmtime-compiler-reviewers for a review on PR #12743.
myunbin edited PR #12743:
This PR adds several arithmetic/bitwise simplification rules to Cranelift:
(x + y) + (-y) ==> x(x | y) - (x & y) ==> (x ^ y)(x + y) - (x & y) ==> (x | y)(x | y) - (x ^ y) ==> (x & y)(~x) + x ==> -1cc @bongjunj
github-actions[bot] added the label cranelift on PR #12743.
github-actions[bot] added the label isle on PR #12743.
github-actions[bot] commented on PR #12743:
Subscribe to Label Action
cc @cfallin, @fitzgen
<details>
This issue or pull request has been labeled: "cranelift", "isle"Thus the following users have been cc'd because of the following labels:
- cfallin: isle
- fitzgen: isle
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
fitzgen submitted PR review:
Thanks!
fitzgen added PR #12743 [Cranelift] add arithmetic simplification rules to the merge queue.
fitzgen merged PR #12743.
fitzgen removed PR #12743 [Cranelift] add arithmetic simplification rules from the merge queue.
Last updated: Mar 23 2026 at 16:19 UTC