summaryrefslogtreecommitdiff
path: root/test/binaryen.js/validation_errors.js
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2024-01-02 13:02:33 -0800
committerGitHub <noreply@github.com>2024-01-02 13:02:33 -0800
commit4acd47676c0eb91550a448920395ce45bd86ec50 (patch)
tree1d2addc57cc67b0b1cd676f63b1a10314ee4216c /test/binaryen.js/validation_errors.js
parent5e3f81ceb1259de752bb61d80b26381ff1448828 (diff)
downloadbinaryen-4acd47676c0eb91550a448920395ce45bd86ec50.tar.gz
binaryen-4acd47676c0eb91550a448920395ce45bd86ec50.tar.bz2
binaryen-4acd47676c0eb91550a448920395ce45bd86ec50.zip
wasm-reduce: Improve tryToReduceCurrentToConst() (#6193)
Avoid replacing with the exact same thing in the case of RefNull and a default tuple. Also be more careful with handling of numbers. Before we exited immediately if we saw a number, but we can try to replace a number with a 0 or a 1, even if it was a number before. That is, we consider 1 simpler than e.g. 12345678, and 0 simpler than 1.
Diffstat (limited to 'test/binaryen.js/validation_errors.js')
0 files changed, 0 insertions, 0 deletions