diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-05-25 11:35:34 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-05-25 15:04:42 -0700 |
commit | 2275f51a55a91b4a989a7f044f70144dbee8bab6 (patch) | |
tree | e5bb4dc96472bc9dd2c37c1927d314a3ef680078 /tools/eliminator/asm-eliminator-test-output.js | |
parent | 52eda533fa475ae4add8977b5a679d010b38a104 (diff) |
eliminate into switch cases
Diffstat (limited to 'tools/eliminator/asm-eliminator-test-output.js')
-rw-r--r-- | tools/eliminator/asm-eliminator-test-output.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/eliminator/asm-eliminator-test-output.js b/tools/eliminator/asm-eliminator-test-output.js index 8da7a5bc..e3fc4db5 100644 --- a/tools/eliminator/asm-eliminator-test-output.js +++ b/tools/eliminator/asm-eliminator-test-output.js @@ -107,10 +107,9 @@ function label() { } } function switchy() { - var no = 0, yes = 0, a = 0, b = 0; + var yes = 0; while (1) switch (label | 0) { case 1: - no = 100; break; case 2: yes = 111; @@ -120,8 +119,6 @@ function switchy() { print(yes / 2); continue; case 3: - a = 5; - b = a; break; } } |