Stream: git-wasmtime

Topic: wasmtime / PR #5380 Alias analysis: refactor for use by o...


view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 04:28):

cfallin opened PR #5380 from refactor-alias-analysis to main:

This PR pulls the core of the alias analysis infrastructure into a process_inst() method that operates on a single instruction, and allows another compiler pass to apply store-to-load forwarding and redundant-load elimination interleaved with other work. The existing behavior remains unchanged; the pass's toplevel loop calls this extracted method.

This refactor is a prerequisite for using the alias analysis as part of a refactored egraph-based optimization framework.

(Unfortunately the git diff here doesn't pick up the code motion, but almost all of the body of process_inst() is unchanged, just moved.)

<!--

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 (Dec 06 2022 at 04:28):

cfallin requested jameysharp for a review on PR #5380.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 17:27):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 17:27):

jameysharp submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 17:27):

jameysharp created PR review comment:

I think this doesn't need to be &mut any more:

        let mut analysis = AliasAnalysis::new(&self.func, &self.domtree);

It's not important since the next line still has to take a mutable borrow, but still.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 17:48):

cfallin updated PR #5380 from refactor-alias-analysis to main.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 17:48):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 17:48):

cfallin created PR review comment:

Fixed, thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 17:59):

cfallin has enabled auto merge for PR #5380.

view this post on Zulip Wasmtime GitHub notifications bot (Dec 06 2022 at 18:30):

cfallin merged PR #5380.


Last updated: Dec 23 2024 at 12:05 UTC