diff options
author | Alon Zakai <azakai@google.com> | 2021-03-30 10:25:50 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 10:25:50 -0700 |
commit | cdac6b123b1231859dc0dfbcb88dfabe005855e3 (patch) | |
tree | ce4fd0b980f07defcc310cd99bb14f11be3f2eb0 /src/parsing.h | |
parent | a3ea08bd0588099225b5f2b1fb7e6f0ad49dddcb (diff) | |
download | binaryen-cdac6b123b1231859dc0dfbcb88dfabe005855e3.tar.gz binaryen-cdac6b123b1231859dc0dfbcb88dfabe005855e3.tar.bz2 binaryen-cdac6b123b1231859dc0dfbcb88dfabe005855e3.zip |
Fix DeadArgumentElimination pass on non-nullable locals (#3751)
In this case, there is a natural place to fix things up right after
removing a parameter (which is where a local gets added). Doing it
there avoids doing work on all functions unnecessarily.
Note that we could do something even simpler here than calling
the generic code: the parameter was not used, so the new local
is not used, and we could just change the type of the local or not
add it at all. Those would be slightly more code though, and add
complexity to the parameter removal method itself.
Diffstat (limited to 'src/parsing.h')
0 files changed, 0 insertions, 0 deletions