[pypy-commit] pypy shadowstack-perf: Fix.

arigo noreply at buildbot.pypy.org
Sat Jul 2 14:56:35 CEST 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: shadowstack-perf
Changeset: r45264:c599b6bb9748
Date: 2011-07-02 14:55 +0200
http://bitbucket.org/pypy/pypy/changeset/c599b6bb9748/

Log:	Fix.

diff --git a/pypy/rpython/memory/gctransform/shadowstack.py b/pypy/rpython/memory/gctransform/shadowstack.py
--- a/pypy/rpython/memory/gctransform/shadowstack.py
+++ b/pypy/rpython/memory/gctransform/shadowstack.py
@@ -354,6 +354,8 @@
                     if not result:
                         continue
                     for original_v in op.args:
+                        if isinstance(original_v, Constant):
+                            continue
                         v = spans.find_rep(original_v)
                         # check if 'v' is in all prevop.args
                         for prevop in result:


More information about the pypy-commit mailing list