summaryrefslogtreecommitdiff
path: root/src/binaryen-c.cpp
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-04-23 08:33:09 -0700
committerGitHub <noreply@github.com>2024-04-23 08:33:09 -0700
commitbceb02d545aeabb21797ef4148e0f713c57e0e0d (patch)
tree15ac53562eee0308bb9f8349ae2a4040552d69b8 /src/binaryen-c.cpp
parenta3c789008726ccf891b5f5581c87194578c32af4 (diff)
downloadbinaryen-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/binaryen-c.cpp')
0 files changed, 0 insertions, 0 deletions