Skip to content

Conversation

bongjunj
Copy link
Contributor

@bongjunj bongjunj commented Sep 10, 2025

This considers all commutative LHS cases of (x ^ ~y) & x --> x & y. (#11642)
Corresponding egraph filetests are added too.

;; (x ^ ~y) & x --> x & y
(rule (simplify (band ty (bxor ty x (bnot ty y)) x)) (band ty x y))
(rule (simplify (band ty (bxor ty (bnot ty y) x) x)) (band ty x y))
(rule (simplify (band ty x (bxor ty x (bnot ty y)))) (band ty x y))
(rule (simplify (band ty x (bxor ty (bnot ty y) x))) (band ty x y))

@bongjunj bongjunj requested a review from a team as a code owner September 10, 2025 05:45
@bongjunj bongjunj requested review from fitzgen and removed request for a team September 10, 2025 05:45
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language labels Sep 10, 2025
Copy link

Subscribe to Label Action

cc @cfallin, @fitzgen

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.

Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great but I think there are some conflicts here as well.

@bongjunj
Copy link
Contributor Author

Rebased on #11641.
All the conflicts should be resolved after #11641 is merged.

@fitzgen fitzgen added this pull request to the merge queue Sep 11, 2025
Merged via the queue into bytecodealliance:main with commit 3de15c0 Sep 11, 2025
74 checks passed
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.

2 participants