[pypy-commit] pypy s390x-backend: for test case zrpy_gc_direct seems that it can prove that float storage is always 0, thus it will not compile for those two
plan_rich
pypy.commits at gmail.com
Mon Feb 1 11:44:39 EST 2016
Author: Richard Plangger <planrichi at gmail.com>
Branch: s390x-backend
Changeset: r82036:72e40b33ebc5
Date: 2016-02-01 17:43 +0100
http://bitbucket.org/pypy/pypy/changeset/72e40b33ebc5/
Log: for test case zrpy_gc_direct seems that it can prove that float
storage is always 0, thus it will not compile for those two
diff --git a/rpython/jit/backend/zarch/pool.py b/rpython/jit/backend/zarch/pool.py
--- a/rpython/jit/backend/zarch/pool.py
+++ b/rpython/jit/backend/zarch/pool.py
@@ -104,6 +104,8 @@
def unique_value(self, val):
if val.type == FLOAT:
+ if val.getfloat() == 0.0:
+ return 0
return float2longlong(val.getfloat())
elif val.type == INT:
return rffi.cast(lltype.Signed, val.getint())
More information about the pypy-commit
mailing list