[pypy-commit] pypy unroll-if-const: revert last checkin
fijal
noreply at buildbot.pypy.org
Mon Jul 25 18:49:22 CEST 2011
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: unroll-if-const
Changeset: r45973:5d5a76ae6d79
Date: 2011-07-25 18:45 +0200
http://bitbucket.org/pypy/pypy/changeset/5d5a76ae6d79/
Log: revert last checkin
diff --git a/pypy/jit/codewriter/jtransform.py b/pypy/jit/codewriter/jtransform.py
--- a/pypy/jit/codewriter/jtransform.py
+++ b/pypy/jit/codewriter/jtransform.py
@@ -347,8 +347,7 @@
called_from=self.graph)
no = targetgraph.func._jit_unroll_if_const_[0]
c_no = Constant(no, lltype.Signed)
- op0 = self.rewrite_call(op, 'inline_ifconst_call', [jitcode, c_no,
- op.args[0]])
+ op0 = self.rewrite_call(op, 'inline_ifconst_call', [jitcode, c_no])
op1 = SpaceOperation('-live-', [], None)
return [op0, op1]
diff --git a/pypy/jit/codewriter/test/test_jtransform.py b/pypy/jit/codewriter/test/test_jtransform.py
--- a/pypy/jit/codewriter/test/test_jtransform.py
+++ b/pypy/jit/codewriter/test/test_jtransform.py
@@ -331,8 +331,7 @@
assert op0.opname == 'inline_ifconst_call_%s_%s' % (expectedkind, reskind)
assert op0.args[0] == 'somejitcode'
assert op0.args[1].value == 0
- assert op0.args[2] == op.args[0]
- assert len(op0.args) == 3 + len(expectedkind)
+ assert len(op0.args) == 2 + len(expectedkind)
def direct_call_test(argtypes, restype, expectedkind):
op = get_direct_call_op(argtypes, restype)
More information about the pypy-commit
mailing list