re PR tree-optimization/65551 (FAIL: 26_numerics/complex/50880.cc execution test)
PR tree-optimization/65551 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION only for INTEGRAL_TYPE_P types. From-SVN: r221702
This commit is contained in:
parent
8be568519b
commit
552b2afefb
@ -1,3 +1,9 @@
|
|||||||
|
2015-03-26 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
|
PR tree-optimization/65551
|
||||||
|
* tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
|
||||||
|
TYPE_PRECISION only for INTEGRAL_TYPE_P types.
|
||||||
|
|
||||||
2015-03-26 Richard Biener <rguenther@suse.de>
|
2015-03-26 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
PR middle-end/65555
|
PR middle-end/65555
|
||||||
|
@ -1352,7 +1352,11 @@ fully_constant_vn_reference_p (vn_reference_t ref)
|
|||||||
|| TYPE_PRECISION (ref->type) % BITS_PER_UNIT == 0))
|
|| TYPE_PRECISION (ref->type) % BITS_PER_UNIT == 0))
|
||||||
{
|
{
|
||||||
HOST_WIDE_INT off = 0;
|
HOST_WIDE_INT off = 0;
|
||||||
HOST_WIDE_INT size = TYPE_PRECISION (ref->type);
|
HOST_WIDE_INT size;
|
||||||
|
if (INTEGRAL_TYPE_P (ref->type))
|
||||||
|
size = TYPE_PRECISION (ref->type);
|
||||||
|
else
|
||||||
|
size = tree_to_shwi (TYPE_SIZE (ref->type));
|
||||||
if (size % BITS_PER_UNIT != 0
|
if (size % BITS_PER_UNIT != 0
|
||||||
|| size > MAX_BITSIZE_MODE_ANY_MODE)
|
|| size > MAX_BITSIZE_MODE_ANY_MODE)
|
||||||
return NULL_TREE;
|
return NULL_TREE;
|
||||||
|
Loading…
Reference in New Issue
Block a user