diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-10-27 17:15:51 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-10-27 17:15:51 -0700 |
commit | bdeaabb263dee309d5b64f4765183f056a064d19 (patch) | |
tree | be09c718bc0a4428d7b70e763d04dae61aea5ae4 /tools/eliminator | |
parent | a4e8b5f5fc09aee9ec2efb5122d26c426e0f0fa3 (diff) |
eliminate into returns
Diffstat (limited to 'tools/eliminator')
-rw-r--r-- | tools/eliminator/eliminator-test-output.js | 2 | ||||
-rw-r--r-- | tools/eliminator/eliminator-test.js | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/tools/eliminator/eliminator-test-output.js b/tools/eliminator/eliminator-test-output.js index 3d23ac50..c32266df 100644 --- a/tools/eliminator/eliminator-test-output.js +++ b/tools/eliminator/eliminator-test-output.js @@ -89,6 +89,7 @@ function b() { } var $156; HEAP32[$139 + ($136 << 4) + 4 >> 2] = _sqlite3FindFunction($145, $147, $148, $156, $135, 0); + return cheez(); } function c() { var x = MEM[100], y = callMe(5); @@ -101,6 +102,7 @@ function c() { zoom(glob); hail(w2); sunk(y2); + return; } function f() { HEAP[123] = (GLOB[1] + 1) / 2; diff --git a/tools/eliminator/eliminator-test.js b/tools/eliminator/eliminator-test.js index c968d4d7..1c6af7f3 100644 --- a/tools/eliminator/eliminator-test.js +++ b/tools/eliminator/eliminator-test.js @@ -109,6 +109,8 @@ function b() { } var $156; HEAP32[$139 + ($136 << 4) + 4 >> 2] = _sqlite3FindFunction($145, $147, $148, $156, $135, 0); + var finality = cheez(); + return finality; } function c() { var x = MEM[100], y = callMe(5), z = glob; // do not eliminate vars with multiple variables, if there is a call! @@ -122,6 +124,7 @@ function c() { zoom(z2); hail(w2); sunk(y2); + return; } function f() { var unused; |