[pypy-commit] pypy default: A skipped failing test for a case in which the optimizer gets confused
arigo
noreply at buildbot.pypy.org
Mon Nov 7 15:32:20 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r48864:5631da22e6ed
Date: 2011-11-07 15:31 +0100
http://bitbucket.org/pypy/pypy/changeset/5631da22e6ed/
Log: A skipped failing test for a case in which the optimizer gets
confused and doesn't remove guard_no_exception
diff --git a/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py b/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py
--- a/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py
+++ b/pypy/jit/metainterp/optimizeopt/test/test_optimizeopt.py
@@ -958,6 +958,24 @@
"""
self.optimize_loop(ops, expected, preamble)
+ def test_bug_guard_no_exception(self):
+ py.test.skip("missing optimization for this corner case")
+ ops = """
+ []
+ i0 = call(123, descr=nonwritedescr)
+ p0 = call(0, "xy", descr=s2u_descr) # string -> unicode
+ guard_no_exception() []
+ escape(p0)
+ jump()
+ """
+ expected = """
+ []
+ i0 = call(123, descr=nonwritedescr)
+ escape(u"xy")
+ jump()
+ """
+ self.optimize_loop(ops, expected)
+
# ----------
def test_call_loopinvariant(self):
More information about the pypy-commit
mailing list