Stream: git-wasmtime

Topic: wasmtime / PR #8139 cranelift: Optimize select_spectre_gu...


view this post on Zulip Wasmtime GitHub notifications bot (Mar 14 2024 at 20:45):

jameysharp opened PR #8139 from jameysharp:optimize-spectre to bytecodealliance:main:

This commit makes two changes to our treatment of
select_spectre_guard.

First, stop annotating this instruction as having any side effects. We only care that if its value result is used, then it's computed without branching on the condition input. We don't otherwise care when the value is computed, or if it's computed at all.

Second, introduce some carefully selected ISLE egraph rewrites for this instruction. These particular rewrites are those where we can statically determine which SSA value will be the result of the instruction. Since there is no actual choice involved, there's no way to accidentally introduce a branch on the condition input.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 14 2024 at 20:45):

jameysharp requested fitzgen for a review on PR #8139.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 14 2024 at 20:45):

jameysharp requested wasmtime-compiler-reviewers for a review on PR #8139.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 14 2024 at 20:46):

jameysharp commented on PR #8139:

Perhaps @cfallin should review this? I was talking about it with him yesterday.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 14 2024 at 21:13):

cfallin requested cfallin for a review on PR #8139.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 14 2024 at 21:13):

cfallin commented on PR #8139:

Sure, happy to take a look.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 14 2024 at 21:23):

cfallin submitted PR review:

This rewrite looks good to me; thanks for thinking through and discussing this yesterday!

A few things I think we'll want:

Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 14 2024 at 21:44):

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

Subscribe to Label Action

cc @cfallin, @fitzgen

<details>
This issue or pull request has been labeled: "cranelift", "cranelift:meta", "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 (Mar 19 2024 at 05:56):

jameysharp updated PR #8139.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2024 at 05:56):

jameysharp requested wasmtime-core-reviewers for a review on PR #8139.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2024 at 05:58):

jameysharp commented on PR #8139:

I think I've addressed all your comments about documentation, Chris, and I'd appreciate feedback on that aspect. I still need to write filetests exercising these new rules, but at least now we can see that this has a positive effect on the typed-funcref tests, as expected.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 19 2024 at 18:18):

cfallin submitted PR review:

New doc comments look great -- thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Mar 20 2024 at 22:16):

jameysharp updated PR #8139.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 20 2024 at 22:16):

jameysharp has enabled auto merge for PR #8139.

view this post on Zulip Wasmtime GitHub notifications bot (Mar 20 2024 at 22:59):

jameysharp merged PR #8139.


Last updated: Nov 22 2024 at 16:03 UTC