[pypy-commit] pypy small-unroll-improvements: actually use the debug message

cfbolz noreply at buildbot.pypy.org
Mon Apr 14 09:58:50 CEST 2014


Author: Carl Friedrich Bolz <cfbolz at gmx.de>
Branch: small-unroll-improvements
Changeset: r70627:997dc027f625
Date: 2014-04-13 13:16 +0200
http://bitbucket.org/pypy/pypy/changeset/997dc027f625/

Log:	actually use the debug message

diff --git a/rpython/jit/metainterp/optimizeopt/unroll.py b/rpython/jit/metainterp/optimizeopt/unroll.py
--- a/rpython/jit/metainterp/optimizeopt/unroll.py
+++ b/rpython/jit/metainterp/optimizeopt/unroll.py
@@ -533,7 +533,6 @@
                 continue
             extra_guards = []
 
-            debugmsg = 'Did not match '
             try:
                 cpu = self.optimizer.cpu
                 state = target.virtual_state.generate_guards(virtual_state,
@@ -546,6 +545,7 @@
                 else:
                     debugmsg = 'Matched '
             except VirtualStatesCantMatch, e:
+                debugmsg = 'Did not match:\n%s\n' % (e.msg, )
                 target.virtual_state.debug_print(debugmsg, e.state.bad, metainterp_sd=self.optimizer.metainterp_sd)
                 continue
 


More information about the pypy-commit mailing list