Stream: git-wasmtime

Topic: wasmtime / PR #7654 Cranelift: More simplification opts f...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 07 2023 at 18:15):

scottmcm opened PR #7654 from scottmcm:normalize-add-sub-const to bytecodealliance:main:

This PR came out of me seeing that the opt patterns were written out to handle both

(!x) + 1 == !(x) - (-1) == ineg(x)

and thus being sad that every pattern including (iadd _ 1) needed to be written again for (isub _ -1).

So this takes a look at more opt patterns around iadd and isub:

I originally had x + -1x - 1 as well, but that regressed codegen with addressing modes -- something that had been in one x64 LEA ended up being a LEA and a SUB. So there's an interesting question about whether to turn all (isub x CONST) into (iadd x CONST), but that felt like something that would need a zulip conversation, and thus it's not included in this hopefully-simpler PR.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 07 2023 at 18:15):

scottmcm requested abrown for a review on PR #7654.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 07 2023 at 18:15):

scottmcm requested wasmtime-compiler-reviewers for a review on PR #7654.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 07 2023 at 19:44):

github-actions[bot] commented on PR #7654:

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:

To subscribe or unsubscribe from this label, edit the <code>.github/subscribe-to-label.json</code> configuration file.

Learn more.
</details>

view this post on Zulip Wasmtime GitHub notifications bot (Dec 07 2023 at 22:45):

alexcrichton submitted PR review:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Dec 07 2023 at 23:20):

alexcrichton merged PR #7654.


Last updated: Dec 23 2024 at 13:07 UTC