summaryrefslogtreecommitdiff
path: root/test/binaryen.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2018-05-10 08:58:09 -0700
committerGitHub <noreply@github.com>2018-05-10 08:58:09 -0700
commit111b4f1950467d51a78211af183f4ae6398aac49 (patch)
tree7f53ab6389e2bcaacf761cbf33846ac0210bd098 /test/binaryen.js
parent6a9ececa2fc9eca99a12b65ca130612942babdce (diff)
downloadbinaryen-111b4f1950467d51a78211af183f4ae6398aac49.tar.gz
binaryen-111b4f1950467d51a78211af183f4ae6398aac49.tar.bz2
binaryen-111b4f1950467d51a78211af183f4ae6398aac49.zip
Optimize equivalent locals (#1540)
If locals are known to contain the same value, we can * Pick which local to use for a get_local of any of them. Makes sense to prefer the most common, to increase the chance of one dropping to zero uses. * Remove copies between a local and one that we know contains the same value. This is a consistent win, small though, around 0.1-0.2%.
Diffstat (limited to 'test/binaryen.js')
-rw-r--r--test/binaryen.js/validation_errors.js.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/binaryen.js/validation_errors.js.txt b/test/binaryen.js/validation_errors.js.txt
index d49aac6b8..6f5053eb1 100644
--- a/test/binaryen.js/validation_errors.js.txt
+++ b/test/binaryen.js/validation_errors.js.txt
@@ -3,4 +3,6 @@
0
[wasm-validator error in function $test] unexpected false: get_local index must be small enough, on
[i32] (get_local $0)
+[wasm-validator error in function $test] unexpected false: get_local must have proper type, on
+[i32] (get_local $0)
0