[pypy-commit] pypy s390x-backend: simplified guard_class

plan_rich pypy.commits at gmail.com
Tue Jan 26 03:36:48 EST 2016


Author: Richard Plangger <planrichi at gmail.com>
Branch: s390x-backend
Changeset: r81947:1589c0b36069
Date: 2016-01-26 09:36 +0100
http://bitbucket.org/pypy/pypy/changeset/1589c0b36069/

Log:	simplified guard_class

diff --git a/rpython/jit/backend/zarch/opassembler.py b/rpython/jit/backend/zarch/opassembler.py
--- a/rpython/jit/backend/zarch/opassembler.py
+++ b/rpython/jit/backend/zarch/opassembler.py
@@ -716,9 +716,6 @@
     def _cmp_guard_gc_type(self, loc_ptr, expected_typeid):
         self._read_typeid(r.SCRATCH2, loc_ptr)
         assert 0 <= expected_typeid <= 0x7fffffff   # 4 bytes are always enough
-        if expected_typeid > 0xffff:     # if 2 bytes are not enough
-            self.mc.AGHI(r.SCRATCH2, l.imm(-(expected_typeid >> 16)))
-            expected_typeid = expected_typeid & 0xffff
         self.mc.cmp_op(r.SCRATCH2, l.imm(expected_typeid),
                        imm=True, signed=False)
 


More information about the pypy-commit mailing list