aboutsummaryrefslogtreecommitdiff
path: root/tools/eliminator
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-07 09:40:48 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-06-07 10:09:12 -0700
commit265dd5a4e28ebd280dafb5febca1b556abc473e8 (patch)
tree0b978ee187c9f770138d741941722132ef827336 /tools/eliminator
parentbd7db31b42e5f445a0d36bc5cf79e119a4f90fdf (diff)
handle empty loops in new loop optimizations; fixes #1270
Diffstat (limited to 'tools/eliminator')
-rw-r--r--tools/eliminator/asm-eliminator-test-output.js1
-rw-r--r--tools/eliminator/asm-eliminator-test.js3
2 files changed, 4 insertions, 0 deletions
diff --git a/tools/eliminator/asm-eliminator-test-output.js b/tools/eliminator/asm-eliminator-test-output.js
index 9b874ba6..a7eebe25 100644
--- a/tools/eliminator/asm-eliminator-test-output.js
+++ b/tools/eliminator/asm-eliminator-test-output.js
@@ -5047,5 +5047,6 @@ function looop7() {
}
}
HEAP32[$old_0_i107_i >> 2] = HEAP32[$696 >> 2] | 0;
+ while (1) {}
}
diff --git a/tools/eliminator/asm-eliminator-test.js b/tools/eliminator/asm-eliminator-test.js
index 9524bde2..22b6ddec 100644
--- a/tools/eliminator/asm-eliminator-test.js
+++ b/tools/eliminator/asm-eliminator-test.js
@@ -6771,6 +6771,9 @@ function looop7() {
}
}
HEAP32[$old_0_i107_i >> 2] = HEAP32[$696 >> 2] | 0;
+ // empty loop
+ while (1) {
+ }
}
// EMSCRIPTEN_GENERATED_FUNCTIONS: ["asm", "__Z11printResultPiS_j", "_segment_holding", "__ZN5identC2EiPKcPci", "_vec2Length", "exc", "label", "confuusion", "tempDouble", "_org_apache_harmony_luni_util_NumberConverter_freeFormat__", "__ZN23b2EdgeAndPolygonContact8EvaluateEP10b2ManifoldRK11b2TransformS4_", "_java_nio_charset_Charset_forNameInternal___java_lang_String", "looop2", "looop3", "looop4", "looop5", "looop6", "looop7"]