bongjunj opened PR #13201 from bongjunj:fold-bnot-add to bytecodealliance:main:
<!--
Please make sure you include the following information:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->This folds and canonicalizes
~(x + y)for a constant y as follows:~(x + y) = -(x + y) - 1 ;; ~a = -a - 1 = (~x) - y ;; -x - 1 = ~x = (~x) + (-y)
bongjunj requested alexcrichton for a review on PR #13201.
bongjunj requested wasmtime-compiler-reviewers for a review on PR #13201.
github-actions[bot] added the label cranelift on PR #13201.
github-actions[bot] added the label isle on PR #13201.
github-actions[bot] commented on PR #13201:
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 <code>.github/subscribe-to-label.json</code> configuration file.
Learn more.
</details>
:thumbs_up: fitzgen submitted PR review:
Thanks!
fitzgen added PR #13201 [Cranelift] fold bnot+iadd to the merge queue.
:check: fitzgen merged PR #13201.
fitzgen removed PR #13201 [Cranelift] fold bnot+iadd from the merge queue.
Last updated: May 03 2026 at 22:13 UTC