Author: David Schneider <david.schnei...@picle.org>
Branch: emit-call-arm
Changeset: r64527:191546eab161
Date: 2013-05-23 13:58 -0500
http://bitbucket.org/pypy/pypy/changeset/191546eab161/

Log:    do not emit instructions if we are moving to the same location in
        SAME_AS

diff --git a/rpython/jit/backend/arm/opassembler.py 
b/rpython/jit/backend/arm/opassembler.py
--- a/rpython/jit/backend/arm/opassembler.py
+++ b/rpython/jit/backend/arm/opassembler.py
@@ -365,7 +365,8 @@
 
     def emit_op_same_as(self, op, arglocs, regalloc, fcond):
         argloc, resloc = arglocs
-        self.mov_loc_loc(argloc, resloc)
+        if argloc is not resloc:
+            self.mov_loc_loc(argloc, resloc)
         return fcond
 
     emit_op_cast_ptr_to_int = emit_op_same_as
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to