diff options
author | Alon Zakai <azakai@google.com> | 2023-11-13 17:00:12 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 17:00:12 -0800 |
commit | c0d19024c7b11ccb30d452d81d3c32252d6bc924 (patch) | |
tree | 66aed0d82601ed98bbb43d1f75c9fb796db4f52d /src/wasm-stack.h | |
parent | 84f51cd5af96ef4d9e157452d98965301251016a (diff) | |
download | binaryen-c0d19024c7b11ccb30d452d81d3c32252d6bc924.tar.gz binaryen-c0d19024c7b11ccb30d452d81d3c32252d6bc924.tar.bz2 binaryen-c0d19024c7b11ccb30d452d81d3c32252d6bc924.zip |
OptimizeAddedConstants: Handle a final added constant properly (#6115)
We had an assert there that was wrong. In fact the assert is just in one of two code paths,
and an optional one: the end situation is we have an expression and a constant to add to it,
and the assert was in the case that the expression is a Const so we can do the add at
compile time (the other code path does the add at runtime). This code path is optional as
Precompute would do such compile-time addition anyhow, but it is nice to fix and leave that
path so that this pass emits fully optimal code.
Diffstat (limited to 'src/wasm-stack.h')
0 files changed, 0 insertions, 0 deletions