Author: Brian Kearns <[email protected]>
Branch: 
Changeset: r70004:9b585f45af76
Date: 2014-03-17 02:19 -0400
http://bitbucket.org/pypy/pypy/changeset/9b585f45af76/

Log:    emit_operation should handle this

diff --git a/rpython/jit/metainterp/optimizeopt/virtualize.py 
b/rpython/jit/metainterp/optimizeopt/virtualize.py
--- a/rpython/jit/metainterp/optimizeopt/virtualize.py
+++ b/rpython/jit/metainterp/optimizeopt/virtualize.py
@@ -674,11 +674,6 @@
     def optimize_NEW_ARRAY(self, op):
         sizebox = self.get_constant_box(op.getarg(0))
         if sizebox is not None:
-            # if the original 'op' did not have a ConstInt as argument,
-            # build a new one with the ConstInt argument
-            if not isinstance(op.getarg(0), ConstInt):
-                op = ResOperation(rop.NEW_ARRAY, [sizebox], op.result,
-                                  descr=op.getdescr())
             self.make_varray(op.getdescr(), sizebox.getint(), op.result, op)
         else:
             self.getvalue(op.result).ensure_nonnull()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to