summaryrefslogtreecommitdiff
path: root/src/compiler-support.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-11-13 17:00:12 -0800
committerGitHub <noreply@github.com>2023-11-13 17:00:12 -0800
commitc0d19024c7b11ccb30d452d81d3c32252d6bc924 (patch)
tree66aed0d82601ed98bbb43d1f75c9fb796db4f52d /src/compiler-support.h
parent84f51cd5af96ef4d9e157452d98965301251016a (diff)
downloadbinaryen-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/compiler-support.h')
0 files changed, 0 insertions, 0 deletions