Author: Carl Friedrich Bolz <[email protected]>
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
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to