diff options
author | Alon Zakai <azakai@google.com> | 2021-04-21 19:54:38 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-21 19:54:38 -0700 |
commit | 0e0147dd18a3875bde24f418b23230d454942c4a (patch) | |
tree | 8ecb81e690058954e22ea3bd813b3ead0a9b4db3 /src/passes/StackCheck.cpp | |
parent | cb776da297a845e15171405b7f7518619122d7aa (diff) | |
download | binaryen-0e0147dd18a3875bde24f418b23230d454942c4a.tar.gz binaryen-0e0147dd18a3875bde24f418b23230d454942c4a.tar.bz2 binaryen-0e0147dd18a3875bde24f418b23230d454942c4a.zip |
Generalize moving of identical code from if/select arms (#3833)
Effects are fine in the moved code, if we are doing so on an if
(which runs just one arm anyhow).
Allow unreachable, which lets us hoist returns for example.
Allow none, which lets us hoist drop and call for example. For
this we also need to be careful with subtyping, as at least drop
is polymorphic, so the child types may not have an LUB (see
example in code).
Adds a small ShallowEffectAnalyzer child of EffectAnalyzer that
calls visit to just do a shallow analysis (instead of walk which
walks the children).
Diffstat (limited to 'src/passes/StackCheck.cpp')
0 files changed, 0 insertions, 0 deletions