diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-25 15:29:29 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-25 15:29:29 -0700 |
commit | 8973fc4a470b4b8ac00cec584dbedb69a7648a66 (patch) | |
tree | de286e914c111aed22b824c5dd4cfdf9461db9c3 /tools/eliminator | |
parent | c5d2ef67e109d8dd18c6254dc31ba3a7149a0ccb (diff) |
do not eliminate into the body/else of if - this is rarely important, and requires much more time and complexity to handle
Diffstat (limited to 'tools/eliminator')
-rw-r--r-- | tools/eliminator/eliminator-test-output.js | 3 | ||||
-rw-r--r-- | tools/eliminator/eliminator-test.js | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/tools/eliminator/eliminator-test-output.js b/tools/eliminator/eliminator-test-output.js index 8fcdd567..5a969284 100644 --- a/tools/eliminator/eliminator-test-output.js +++ b/tools/eliminator/eliminator-test-output.js @@ -112,8 +112,9 @@ function h() { x = y ? x + 1 : 7; var x = -5; } + var oneUse = glob; if (1) { - otherGlob = glob; + otherGlob = oneUse; breakMe(); } var oneUse2 = glob2; diff --git a/tools/eliminator/eliminator-test.js b/tools/eliminator/eliminator-test.js index ebbdc000..16ed51c4 100644 --- a/tools/eliminator/eliminator-test.js +++ b/tools/eliminator/eliminator-test.js @@ -135,7 +135,7 @@ function h() { x = y ? x + 1 : 7; var x = -5; } - var oneUse = glob; + var oneUse = glob; // for now, cannot eliminate into body or else of if if (1) { otherGlob = oneUse; breakMe(); |