aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-t2.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-28 15:16:59 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-28 15:16:59 -0800
commitf705c72430d292432c81737ed424729e56385ea9 (patch)
tree4ce71f6f6fd6fa3e13cd6e1394481fc3f336b8cb /tools/test-js-optimizer-t2.js
parentab12dc1380d89298f289215087ee94a65e37acca (diff)
do not turn shifts into slow additions in optimizeShifts
Diffstat (limited to 'tools/test-js-optimizer-t2.js')
-rw-r--r--tools/test-js-optimizer-t2.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-t2.js b/tools/test-js-optimizer-t2.js
index 5005c91e..907907ef 100644
--- a/tools/test-js-optimizer-t2.js
+++ b/tools/test-js-optimizer-t2.js
@@ -66,5 +66,6 @@ function shifty($id) {
}
pause(6);
q($idx << 1 << 2);
+ q(1 << $idx << 1); // Do not turn this into the slower 1 << $idx + 1 (which is identical though)
}
// EMSCRIPTEN_GENERATED_FUNCTIONS: ["shifty"]