Stream: git-wasmtime

Topic: wasmtime / PR #5072 egraphs: a few miscellaneous compile-...


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

cfallin opened PR #5072 from egraph-misc-opts to main:

These optimizations together are worth about a 2% compile-time reduction, as measured on one more with spidermonkey.wasm as an input, using hyperfine on wasmtime compile.

The changes included are:

<!--

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 18 2022 at 22:12):

cfallin requested elliottt for a review on PR #5072.

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

cfallin requested fitzgen for a review on PR #5072.

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

cfallin updated PR #5072 from egraph-misc-opts to main.

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

cfallin edited PR #5072 from egraph-misc-opts to main:

These optimizations together are worth about a 2% compile-time reduction, as measured on one core with spidermonkey.wasm as an input, using hyperfine on wasmtime compile.

The changes included are:

<!--

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 18 2022 at 23:33):

fitzgen submitted PR review.

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

fitzgen created PR review comment:

                        arity: {
                            debug_assert!(results.len() <= (u16::MAX as usize));
                            results.len() as u16
                        },

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

fitzgen submitted PR review.

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

fitzgen created PR review comment:

Ditto

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

fitzgen created PR review comment:

Can't just be #[inline]? Needs to be inlined in non-optimized builds too?

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

fitzgen created PR review comment:

Ditto

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

cfallin created PR review comment:

I'd prefer not to affect non-optimized builds, but for whatever reason the inline(always) seemed to be necessary to get inlining to happen in optimized builds, unfortunately...

(I'd really love to gain more insight into the heuristics at play here!)

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

cfallin submitted PR review.

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

cfallin updated PR #5072 from egraph-misc-opts to main.

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

cfallin submitted PR review.

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

cfallin created PR review comment:

Fixed! Actually used u16::try_from(...).expect(...) here but result is the same. And, factored out above if/else chain to use below as well.

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

cfallin updated PR #5072 from egraph-misc-opts to main.

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

cfallin has enabled auto merge for PR #5072.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2022 at 01:02):

cfallin has disabled auto merge for PR #5072.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2022 at 01:10):

cfallin updated PR #5072 from egraph-misc-opts to main.

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

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2022 at 18:05):

cfallin merged PR #5072.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2022 at 18:14):

abrown submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 19 2022 at 18:14):

abrown created PR review comment:

Shouldn't this be self.0 & 3 > 0?

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

cfallin submitted PR review.

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

cfallin created PR review comment:

It's an unpack method just for the tag=1 case so I think this is correct?

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

abrown submitted PR review.

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

abrown created PR review comment:

Ah, ok... It seemed like it could have been for all three :+1:


Last updated: Nov 22 2024 at 16:03 UTC