Author: Armin Rigo <ar...@tunes.org>
Branch: conditional_call_value_3
Changeset: r87031:f7694a9bde4e
Date: 2016-09-12 11:26 +0100
http://bitbucket.org/pypy/pypy/changeset/f7694a9bde4e/

Log:    Another case

diff --git a/rpython/jit/codewriter/call.py b/rpython/jit/codewriter/call.py
--- a/rpython/jit/codewriter/call.py
+++ b/rpython/jit/codewriter/call.py
@@ -408,7 +408,7 @@
         v_check = v_result
         fastcase = True
         for op in block.operations[1:]:
-            if (op.opname in ('int_is_true', 'ptr_nonzero')
+            if (op.opname in ('int_is_true', 'ptr_nonzero', 'same_as')
                     and v_check is op.args[0]):
                 v_check = op.result
             elif op.opname == 'ptr_iszero' and v_check is op.args[0]:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to