Skip to content

[Cranelift] (x | z) & (y | z) => (x & y) | z (and its dual)#12730

Open
myunbin wants to merge 1 commit intobytecodealliance:mainfrom
myunbin:bitops-fold
Open

[Cranelift] (x | z) & (y | z) => (x & y) | z (and its dual)#12730
myunbin wants to merge 1 commit intobytecodealliance:mainfrom
myunbin:bitops-fold

Conversation

@myunbin
Copy link
Contributor

@myunbin myunbin commented Mar 5, 2026

This PR adds a Cranelift bitops simplification rule:

(x | z) & (y | z) => (x & y) | z

and its dual:

(x & z) | (y & z) => (x | y) & z

@myunbin myunbin requested a review from a team as a code owner March 5, 2026 01:10
@myunbin myunbin requested review from fitzgen and removed request for a team March 5, 2026 01:10
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language labels Mar 5, 2026
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

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 .github/subscribe-to-label.json configuration file.

Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant