diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-12-28 15:16:59 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-12-28 15:16:59 -0800 |
commit | f705c72430d292432c81737ed424729e56385ea9 (patch) | |
tree | 4ce71f6f6fd6fa3e13cd6e1394481fc3f336b8cb /tools/test-js-optimizer-t2.js | |
parent | ab12dc1380d89298f289215087ee94a65e37acca (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.js | 1 |
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"] |