diff options
author | Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | 2021-02-04 14:26:58 +0100 |
---|---|---|
committer | Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | 2021-02-04 14:26:58 +0100 |
commit | 4d36a2855c9c9ebdd00f0b00e3c2c35d0e41e751 (patch) | |
tree | 06da4a4b7fb27b39648dbfb1eb5535597db88dee /rpython | |
parent | more of same (diff) | |
download | pypy-4d36a2855c9c9ebdd00f0b00e3c2c35d0e41e751.tar.gz pypy-4d36a2855c9c9ebdd00f0b00e3c2c35d0e41e751.tar.bz2 pypy-4d36a2855c9c9ebdd00f0b00e3c2c35d0e41e751.zip |
kill unnecessary imports
Diffstat (limited to 'rpython')
-rw-r--r-- | rpython/jit/metainterp/optimizeopt/intbounds.py | 5 | ||||
-rw-r--r-- | rpython/jit/metainterp/optimizeopt/rewrite.py | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/rpython/jit/metainterp/optimizeopt/intbounds.py b/rpython/jit/metainterp/optimizeopt/intbounds.py index 5b17728f51..628cbf2757 100644 --- a/rpython/jit/metainterp/optimizeopt/intbounds.py +++ b/rpython/jit/metainterp/optimizeopt/intbounds.py @@ -1,8 +1,7 @@ import sys from rpython.jit.metainterp.history import ConstInt from rpython.jit.metainterp.optimize import InvalidLoop -from rpython.jit.metainterp.optimizeopt.intutils import (IntBound, - IntLowerBound, IntUpperBound, ConstIntBound) +from rpython.jit.metainterp.optimizeopt.intutils import IntBound from rpython.jit.metainterp.optimizeopt.optimizer import (Optimization, CONST_1, CONST_0) from rpython.jit.metainterp.optimizeopt.util import ( @@ -214,7 +213,7 @@ class OptIntBounds(Optimization): # intbound.lshift_bound checks for an overflow and if the # lshift can be proven not to overflow sets b.has_upper and # b.has_lower - if b.bounded() + if b.bounded(): # Synthesize the reverse op for optimize_default to reuse self.pure_from_args(rop.INT_RSHIFT, [op, arg1], arg0) diff --git a/rpython/jit/metainterp/optimizeopt/rewrite.py b/rpython/jit/metainterp/optimizeopt/rewrite.py index 5139e4a7f4..61e4b5ce5c 100644 --- a/rpython/jit/metainterp/optimizeopt/rewrite.py +++ b/rpython/jit/metainterp/optimizeopt/rewrite.py @@ -4,7 +4,6 @@ from rpython.jit.metainterp import compile from rpython.jit.metainterp.history import ( Const, ConstInt, make_hashable_int, ConstFloat, CONST_NULL) from rpython.jit.metainterp.optimize import InvalidLoop -from rpython.jit.metainterp.optimizeopt.intutils import IntBound from rpython.jit.metainterp.optimizeopt.optimizer import ( Optimization, OptimizationResult, REMOVED, CONST_0, CONST_1) from rpython.jit.metainterp.optimizeopt.info import ( |