summaryrefslogtreecommitdiff
path: root/src/binaryen-c.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2022-04-25 08:23:55 -0700
committerGitHub <noreply@github.com>2022-04-25 08:23:55 -0700
commit94d77efa788b46ec3d245fd0e180163877fe2a88 (patch)
tree35eb706d8fe958df0c963fd2337a1463602182c0 /src/binaryen-c.cpp
parentbe25a9cfb881153ab631e52e36a37e1eed872ff5 (diff)
downloadbinaryen-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/binaryen-c.cpp')
0 files changed, 0 insertions, 0 deletions