myunbin opened PR #14277 from myunbin:add-rules-260904 to bytecodealliance:main:
Add new opt rules:
(x - y) == 0 ==> x == y(x - y) != 0 ==> x != y(x ^ y) == 0 ==> x == y(x ^ y) != 0 ==> x != y(x ^ y) == x ==> y == 0(x + y) != x ==> y != 0x != -y ==> x != y(x == y) ? 0 : (x - y) ==> x - y(c ? y : z) + (c ? z : y) ==> z + y(x != y) ? (x - y) : 0 ==> x - yApply
all_zerohelper for existing rules:
x & 0 == 0 & x == x & not(x) == not(x) & x == 0.
myunbin requested cfallin for a review on PR #14277.
myunbin requested wasmtime-compiler-reviewers for a review on PR #14277.
myunbin edited PR #14277:
Add new opt rules:
(x - y) == 0 ==> x == y(x - y) != 0 ==> x != y(x ^ y) == 0 ==> x == y(x ^ y) != 0 ==> x != y(x ^ y) == x ==> y == 0(x + y) != x ==> y != 0x != -y ==> x != y(x == y) ? 0 : (x - y) ==> x - y(c ? y : z) + (c ? z : y) ==> z + y(x != y) ? (x - y) : 0 ==> x - yApply
all_zerohelper for existing rules:
x & 0 == 0 & x == x & not(x) == not(x) & x == 0
myunbin updated PR #14277.
myunbin updated PR #14277.
myunbin updated PR #14277.
github-actions[bot] added the label isle on PR #14277.
github-actions[bot] added the label cranelift on PR #14277.
github-actions[bot] commented on PR #14277:
Subscribe to Label Action
cc @avanhatt, @cfallin, @fitzgen, @mmcloughlin
<details>
This issue or pull request has been labeled: "cranelift", "isle"Thus the following users have been cc'd because of the following labels:
- avanhatt: isle
- cfallin: isle
- fitzgen: isle
- mmcloughlin: isle
To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
:thumbs_up: cfallin submitted PR review:
Thanks!
cfallin added PR #14277 Cranelift: add/modify mid-end opt rules to the merge queue.
:check: cfallin merged PR #14277.
cfallin removed PR #14277 Cranelift: add/modify mid-end opt rules from the merge queue.
Last updated: Sep 20 2026 at 18:08 UTC