This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/9] operand_equal_p: add support for FIELD_DECL
On Tue, Aug 6, 2019 at 5:44 PM Martin Liska <mliska@suse.cz> wrote:
>
>
> gcc/ChangeLog:
So I suppose this isn't to call operand_equal_p on two FIELD_DECLs
but to make two COMPONENT_REFs "more equal"? If so I then
I suggest to make this change "local" to the COMPONENT_REF handling.
This also interacts with path-based disambiguation so you want to make
sure to only make things equal here iff it wouldn't change the outcome
of path-based analysis. Honza?
Richard.
> 2019-07-24 Martin Liska <mliska@suse.cz>
>
> * fold-const.c (operand_equal_p): Support FIELD_DECL
> as well.
> * tree.c (add_expr): Hast DECL_FIELD_OFFSET and
> DECL_FIELD_BIT_OFFSET for FIELD_DECL.
>
> gcc/testsuite/ChangeLog:
>
> 2019-07-24 Martin Liska <mliska@suse.cz>
>
> * gcc.dg/vect/vect-35-big-array.c: Vectorize one more loop.
> * gcc.dg/vect/vect-35.c: Likewise.
> * gcc.dg/pr70740.c: Move from torture and set -O2.
> * gfortran.dg/vect/vect-8.f90: Update scanned pattern.
> ---
> gcc/fold-const.c | 34 ++++++++++++++++---
> gcc/testsuite/gcc.dg/{torture => }/pr70740.c | 3 +-
> gcc/testsuite/gcc.dg/vect/vect-35-big-array.c | 3 +-
> gcc/testsuite/gcc.dg/vect/vect-35.c | 3 +-
> gcc/testsuite/gfortran.dg/vect/vect-8.f90 | 2 +-
> gcc/tree.c | 4 +++
> 6 files changed, 38 insertions(+), 11 deletions(-)
> rename gcc/testsuite/gcc.dg/{torture => }/pr70740.c (77%)
>