myunbin opened PR #14296 from myunbin:add-rules-260908 to bytecodealliance:main:
Add new opt rules:
x /u (1 << y) ==> x >>u y(x ^ y) ^ (x ^ z) ==> y ^ z(-x) & 1 ==> x & 1(x >>s y) >s -1 ==> x >=s 0(x >>s y) >=s 0 ==> x >=s 0(x & y) & (x | z) ==> x & y(x & y) | (x | z) ==> x | z(x & y) | (x ^ y) ==> x | y~((~x) - y) ==> x + yrotl(x, k) == rotl(y, k) ==> x == y~((~x) >>s y) ==> x >>s yApply
all_zerohelper to existing zero-constant rules in:{arithmetic, bitops, cprop, extends, icmp, selects, shifts}.isle
myunbin requested cfallin for a review on PR #14296.
myunbin requested wasmtime-compiler-reviewers for a review on PR #14296.
myunbin updated PR #14296.
myunbin updated PR #14296.
github-actions[bot] added the label cranelift on PR #14296.
github-actions[bot] added the label isle on PR #14296.
github-actions[bot] commented on PR #14296:
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:
LGTM, thanks!
cfallin added PR #14296 Cranelift: add/modify mid-end opt rules to the merge queue.
:check: cfallin merged PR #14296.
cfallin removed PR #14296 Cranelift: add/modify mid-end opt rules from the merge queue.
Last updated: Sep 20 2026 at 18:08 UTC