Skip to content

Cranelift: add simplification rules - #14143

Merged
fitzgen merged 1 commit into
bytecodealliance:mainfrom
myunbin:add-rules-260815
Aug 24, 2026
Merged

Cranelift: add simplification rules#14143
fitzgen merged 1 commit into
bytecodealliance:mainfrom
myunbin:add-rules-260815

Conversation

@myunbin

@myunbin myunbin commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Add simplification rules:

  • -C --> (compile time) -C
  • -(X * C) = X * (-C)
  • x >=_u (x & y), and (x & y) <=_u x --> true
  • (x | y) >=_u x, and x <=_u (x | y) --> true
  • x >=_u (x - y) --> x >=_u y
  • x >=_u (x >>_u y) --> true

@myunbin
myunbin requested review from a team as code owners August 15, 2026 19:28
@myunbin
myunbin requested review from fitzgen and removed request for a team August 15, 2026 19:28
@github-actions github-actions Bot added cranelift Issues related to the Cranelift code generator isle Related to the ISLE domain-specific language labels Aug 15, 2026
@github-actions

Copy link
Copy Markdown

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.

@fitzgen fitzgen left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! And sorry for the delay

@fitzgen
fitzgen added this pull request to the merge queue Aug 24, 2026
Merged via the queue into bytecodealliance:main with commit 5f229d9 Aug 24, 2026
53 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