diff options
author | Alon Zakai <azakai@google.com> | 2022-04-25 08:23:55 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-25 08:23:55 -0700 |
commit | 94d77efa788b46ec3d245fd0e180163877fe2a88 (patch) | |
tree | 35eb706d8fe958df0c963fd2337a1463602182c0 /src/support/small_set.h | |
parent | be25a9cfb881153ab631e52e36a37e1eed872ff5 (diff) | |
download | binaryen-94d77efa788b46ec3d245fd0e180163877fe2a88.tar.gz binaryen-94d77efa788b46ec3d245fd0e180163877fe2a88.tar.bz2 binaryen-94d77efa788b46ec3d245fd0e180163877fe2a88.zip |
OptimizeInstructions: Refinalize after a cast removal (#4611)
Casts can replace a type with a subtype, which normally has no downsides, but
in a corner case of struct types it can lead to us needing to refinalize higher up
too, see details in the comment.
We have avoided any Refinalize calls in OptimizeInstructions, but the case
handled here requires it sadly. I considered moving it to another pass, but this
is a peephole optimization so there isn't really a better place.
Diffstat (limited to 'src/support/small_set.h')
0 files changed, 0 insertions, 0 deletions