[pypy-commit] pypy result-in-resops: only care about bounds when dealing with ints
fijal
noreply at buildbot.pypy.org
Sat Oct 27 23:49:48 CEST 2012
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: result-in-resops
Changeset: r58524:0364dd0abcd5
Date: 2012-10-27 23:49 +0200
http://bitbucket.org/pypy/pypy/changeset/0364dd0abcd5/
Log: only care about bounds when dealing with ints
diff --git a/pypy/jit/metainterp/optimizeopt/intbounds.py b/pypy/jit/metainterp/optimizeopt/intbounds.py
--- a/pypy/jit/metainterp/optimizeopt/intbounds.py
+++ b/pypy/jit/metainterp/optimizeopt/intbounds.py
@@ -36,7 +36,8 @@
dispatch_bounds_ops(self, op)
def postprocess_GUARD_TRUE(self, op):
- self.propagate_bounds_backward(op.getarg(0))
+ if op.getarg(0).type == INT:
+ self.propagate_bounds_backward(op.getarg(0))
postprocess_GUARD_FALSE = postprocess_GUARD_TRUE
postprocess_GUARD_VALUE = postprocess_GUARD_TRUE
More information about the pypy-commit
mailing list