Bug 1106171 - Add test case. r=me
authorNicolas B. Pierron <nicolas.b.pierron@mozilla.com>
Mon, 19 Oct 2015 20:37:09 +0200
changeset 303570 e6d24d95226fd8f43f61149ee00ea0654efee760
parent 303569 c159526f914587b787d17d352b3d82c5bbae0e05
child 303571 377b13559aeec78161e63ae96f79c7ff89027741
push id1001
push userraliiev@mozilla.com
push dateMon, 18 Jan 2016 19:06:03 +0000
treeherdermozilla-release@8b89261f3ac4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersme
bugs1106171
milestone44.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1106171 - Add test case. r=me
js/src/jit-test/tests/ion/bug1106171-sink.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/ion/bug1106171-sink.js
@@ -0,0 +1,19 @@
+// |jit-test| --ion-sink=on
+// Sink Algorithm should not move instruction into merge blocks
+// which have no corresponding pc.
+
+setJitCompilerOption("ion.warmup.trigger", 30);
+
+var o = {
+  a : 40,
+  b : true
+};
+
+function f(a, b) {
+    do {
+        if (a == 0)
+          return;
+        a--;
+    } while (true || this ? o.a-- : true);
+}
+f(200000, 0);