diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-02-06 16:35:51 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-02-06 16:35:51 -0800 |
commit | 91b6da47ba6aedfc34974cd8d9f7fe8f0074a4cd (patch) | |
tree | 5687948ab502692349c60975e992530b6cbde968 /tools/eliminator/eliminator-test.js | |
parent | c34404474ee6aa9d1c3f368792057729837812f3 (diff) |
limit eliminator to variables with a single use, to avoid exponential growth of replacements
Diffstat (limited to 'tools/eliminator/eliminator-test.js')
-rw-r--r-- | tools/eliminator/eliminator-test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/eliminator/eliminator-test.js b/tools/eliminator/eliminator-test.js index 4928134a..35bed0bb 100644 --- a/tools/eliminator/eliminator-test.js +++ b/tools/eliminator/eliminator-test.js @@ -88,8 +88,8 @@ function py() { var $4 = HEAP[__PyThreadState_Current]; var $5 = $4 + 12; var $7 = HEAP[$5] + 1; - var $8 = $4 + 12; - HEAP[$8] = $7; + var $8 = $7 + 12; + HEAP[$8] = 99; } function otherPy() { var $4 = HEAP[__PyThreadState_Current]; |