diff options
author | Alon Zakai <azakai@google.com> | 2024-04-23 08:33:09 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-23 08:33:09 -0700 |
commit | bceb02d545aeabb21797ef4148e0f713c57e0e0d (patch) | |
tree | 15ac53562eee0308bb9f8349ae2a4040552d69b8 /src/shell-interface.h | |
parent | a3c789008726ccf891b5f5581c87194578c32af4 (diff) | |
download | binaryen-bceb02d545aeabb21797ef4148e0f713c57e0e0d.tar.gz binaryen-bceb02d545aeabb21797ef4148e0f713c57e0e0d.tar.bz2 binaryen-bceb02d545aeabb21797ef4148e0f713c57e0e0d.zip |
OptimizeInstructions: Optimize subsequent struct.sets after struct.new_with_default (#6523)
Before we preferred not to add default values, as that increases code size. But since
#6495 we turn more things into struct.new_with default, so it is important to handle
this. It seems likely that in most cases the code size downside of adding default
values is offset by avoiding a local.set later, so always do this (rather than add some
kind of heuristic).
Diffstat (limited to 'src/shell-interface.h')
0 files changed, 0 insertions, 0 deletions