myunbin opened PR #14601 from myunbin:add-rules-261007 to bytecodealliance:main:
Add mid-end optimization rules:
sextend(x) OP sextend(y) --> x OP ywhereOP = {==, <s}rotr(x, k) == rotr(y, k) --> x == yselect(c, x, y) OP select(c, y, x) --> x OP y, whereOP = {&, |, ^}select(x == y, 0, x ^ y) --> x ^ yselect(x != y, x ^ y, 0) --> x ^ yselect(k == 0, x, x OP k) --> x OP k, whereOP= {ishl, ushr, sshr, rotl, rotr}and its dual(k != 0).Thanks!
github-actions[bot] added the label cranelift on PR #14601.
github-actions[bot] added the label isle on PR #14601.
github-actions[bot] commented on PR #14601:
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 for all of these!
cfallin added PR #14601 Cranelift: add mid-end opt rules to the merge queue.
github-merge-queue[bot] removed PR #14601 Cranelift: add mid-end opt rules from the merge queue.
cfallin commented on PR #14601:
@myunbin this has a merge conflict now (probably your other PR that just merged) -- happy to merge once fixed!
Last updated: Oct 11 2026 at 04:10 UTC