Stream: git-wasmtime

Topic: wasmtime / PR #5113 Cranelift: Avoid calling `ensure_stru...


view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 22:24):

fitzgen opened PR #5113 from avoid-cloning-sigs to main:

Unfortunately, this seems to be perf neutral. I think we already got most of the wins we otherwise would have got when we deduplicated IR signatures during lowering.

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 22:24):

fitzgen requested cfallin for a review on PR #5113.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 22:40):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 22:40):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 22:40):

jameysharp created PR review comment:

I haven't looked at the implementation of uses_special_return. Why does it need to be guarded to only run when there are some return values?

Maybe the answer is just that the old implementation had this guard. But I think the old implementation, using Iterator::any, shouldn't have needed this either: any returns false on an empty iterator.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 22:40):

jameysharp created PR review comment:

/// If the signature needs to be legalized, then return the struct-return

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 22:44):

fitzgen created PR review comment:

It isn't that uses_special_return forces this, it is the pre-existing logic of when we need to legalize, and I have no idea why it is like that, I just faithfully kept it the same.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 22:44):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 22:44):

fitzgen updated PR #5113 from avoid-cloning-sigs to main.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 22:46):

fitzgen updated PR #5113 from avoid-cloning-sigs to main.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 23:38):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 23:38):

cfallin created PR review comment:

Yeah, it looks like it was an over-eager guard that wasn't actually necessary. Latest version looks good.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 24 2022 at 23:38):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 25 2022 at 00:21):

fitzgen merged PR #5113.


Last updated: Dec 23 2024 at 12:05 UTC