Skip to content

Cranelift: add simplification rules - #14143

Open
myunbin wants to merge 1 commit into
bytecodealliance:mainfrom
myunbin:add-rules-260815
Open

Cranelift: add simplification rules#14143
myunbin wants to merge 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.

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