summaryrefslogtreecommitdiff
path: root/src/wasm/literal.cpp
diff options
context:
space:
mode:
authorAlon Zakai (kripken) <alonzakai@gmail.com>2018-12-01 18:32:32 -0800
committerAlon Zakai <alonzakai@gmail.com>2018-12-04 10:14:29 -0800
commitf5b8221e9759c37ef44158c2d2858dcee51b6c1f (patch)
tree6b337b7c10ba5a9c507d762e1d6a674264e057ae /src/wasm/literal.cpp
parente6048c1dabde9e511d25c8bd6d2da68461807f74 (diff)
downloadbinaryen-f5b8221e9759c37ef44158c2d2858dcee51b6c1f.tar.gz
binaryen-f5b8221e9759c37ef44158c2d2858dcee51b6c1f.tar.bz2
binaryen-f5b8221e9759c37ef44158c2d2858dcee51b6c1f.zip
Improve selectification in remove-unused-brs
We turned an if into a select when optimizing for size (and if side effects etc. allow so). This patch improves that, doing it not just when optimizing for size, but also when it looks beneficial given the amount of work on both sides of the if. As a result we can create selects in -O3 etc.
Diffstat (limited to 'src/wasm/literal.cpp')
0 files changed, 0 insertions, 0 deletions