aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-04-25 16:01:47 -0700
committerAlon Zakai <alonzakai@gmail.com>2011-04-25 16:01:47 -0700
commit8700a323173a7222025ffd8e1652a0a4157ebb90 (patch)
tree02f07521ccaca66c234179bcb38e3570a2f87a2b
parentd78652a9b95afea436ea111d4a06af98a938c0ca (diff)
tweak relooper, improves fannkuch
-rw-r--r--src/analyzer.js9
-rw-r--r--tests/runner.py4
2 files changed, 4 insertions, 9 deletions
diff --git a/src/analyzer.js b/src/analyzer.js
index 06fff03c..1b438db4 100644
--- a/src/analyzer.js
+++ b/src/analyzer.js
@@ -834,7 +834,7 @@ function analyzer(data) {
return ret;
}
- if (mustReturn) return makeLoop();
+ if (canReturn) return makeLoop();
// === handle multiple branches from the entry with a 'multiple' ===
//
@@ -886,12 +886,7 @@ function analyzer(data) {
if (handlingNow.length == 0) {
// Spaghetti - cannot even find a single label to do before the rest. What a mess.
- // But if there is looping, perhaps we can use that to simplify matters?
- if (canReturn) {
- return makeLoop();
- } else {
- throw "Spaghetti encountered in relooping.";
- }
+ throw "Spaghetti encountered in relooping.";
}
// This is a 'multiple'
diff --git a/tests/runner.py b/tests/runner.py
index 783e257b..a54c28f0 100644
--- a/tests/runner.py
+++ b/tests/runner.py
@@ -2387,7 +2387,7 @@ else:
assert(os.path.exists(CLOSURE_COMPILER))
- COMPILER = LLVM_GCC
+ COMPILER = CLANG
JS_ENGINE = SPIDERMONKEY_ENGINE
#JS_ENGINE = V8_ENGINE
@@ -2405,7 +2405,7 @@ else:
USE_CLOSURE_COMPILER = 1
- TEST_REPS = 3
+ TEST_REPS = 10
TOTAL_TESTS = 4
tests_done = 0