This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Preserve restrict dependence info in FRE/PRE
- From: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- To: Richard Biener <rguenther at suse dot de>,gcc-patches at gcc dot gnu dot org
- Date: Wed, 23 Sep 2015 19:46:32 +0200
- Subject: Re: [PATCH] Preserve restrict dependence info in FRE/PRE
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LSU dot 2 dot 11 dot 1509231458070 dot 5289 at zhemvz dot fhfr dot qr>
On September 23, 2015 3:00:51 PM GMT+02:00, Richard Biener <rguenther@suse.de> wrote:
>*************** copy_reference_ops_from_ref (tree ref, v
>*** 816,826 ****
>--- 828,846 ----
> temp.op0 = TREE_OPERAND (ref, 1);
> if (tree_fits_shwi_p (TREE_OPERAND (ref, 1)))
> temp.off = tree_to_shwi (TREE_OPERAND (ref, 1));
>+ temp.clique = MR_DEPENDENCE_CLIQUE (ref);
>+ temp.base = MR_DEPENDENCE_BASE (ref);
> break;
> case BIT_FIELD_REF:
> /* Record bits and position. */
> temp.op0 = TREE_OPERAND (ref, 1);
> temp.op1 = TREE_OPERAND (ref, 2);
>+ if (tree_fits_shwi_p (TREE_OPERAND (ref, 2)))
>+ {
>+ HOST_WIDE_INT off = tree_to_shwi (TREE_OPERAND (ref, 2));
>+ if (off % BITS_PER_UNIT == 0)
>+ temp.off = off / 8;
s/8/BITS_PER_UNIT/
Thanks,