From 3158ada0ee9f5e3d2daf019cfda545498b55285b Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Sat, 10 Sep 2016 10:47:37 -0700 Subject: sort locals by number of total copies --- test/unit.asm.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'test/unit.asm.js') diff --git a/test/unit.asm.js b/test/unit.asm.js index cc4d6880c..c87bb62c6 100644 --- a/test/unit.asm.js +++ b/test/unit.asm.js @@ -391,6 +391,30 @@ function asm(global, env, buffer) { } } + function loophi2() { + var jnc = 0, i = 0, i$lcssa = 0, temp = 0, j = 0; + i = 0; + L7: while(1) { + j = 0; + while(1) { + temp = j; + if (1) { + if (temp) { + i$lcssa = i; + break L7; + } + } + jnc = j + 1 | 0; + if (jnc) { + j = jnc; + } else { + break; + } + } + } + return i$lcssa | 0 + } + var FUNCTION_TABLE_a = [ z, big_negative, z, z ]; var FUNCTION_TABLE_b = [ w, w, importedDoubles, w ]; var FUNCTION_TABLE_c = [ z, cneg ]; -- cgit v1.2.3