mirror of git://gcc.gnu.org/git/gcc.git
re PR middle-end/68221 (libgomp reduction-11/12 failures)
2015-11-24 Richard Biener <rguenther@suse.de> PR middle-end/68221 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly use mem_ref_offset. From-SVN: r230806
This commit is contained in:
parent
7efa52b07a
commit
43648352b5
|
|
@ -1,3 +1,9 @@
|
||||||
|
2015-11-24 Richard Biener <rguenther@suse.de>
|
||||||
|
|
||||||
|
PR middle-end/68221
|
||||||
|
* tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
|
||||||
|
use mem_ref_offset.
|
||||||
|
|
||||||
2015-11-24 Jakub Jelinek <jakub@redhat.com>
|
2015-11-24 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
PR target/68483
|
PR target/68483
|
||||||
|
|
|
||||||
|
|
@ -844,8 +844,11 @@ copy_reference_ops_from_ref (tree ref, vec<vn_reference_op_s> *result)
|
||||||
case MEM_REF:
|
case MEM_REF:
|
||||||
/* The base address gets its own vn_reference_op_s structure. */
|
/* The base address gets its own vn_reference_op_s structure. */
|
||||||
temp.op0 = TREE_OPERAND (ref, 1);
|
temp.op0 = TREE_OPERAND (ref, 1);
|
||||||
if (tree_fits_shwi_p (TREE_OPERAND (ref, 1)))
|
{
|
||||||
temp.off = tree_to_shwi (TREE_OPERAND (ref, 1));
|
offset_int off = mem_ref_offset (ref);
|
||||||
|
if (wi::fits_shwi_p (off))
|
||||||
|
temp.off = off.to_shwi ();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case BIT_FIELD_REF:
|
case BIT_FIELD_REF:
|
||||||
/* Record bits and position. */
|
/* Record bits and position. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue