This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 2/4] Equate MEM_REFs and ARRAY_REFs in tree-ssa-scopedtables.c
- From: Jeff Law <law at redhat dot com>
- To: Alan Lawrence <alan dot lawrence at arm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 4 Jan 2016 12:05:31 -0700
- Subject: Re: [PATCH 2/4] Equate MEM_REFs and ARRAY_REFs in tree-ssa-scopedtables.c
- Authentication-results: sourceware.org; auth=none
- References: <1450703608-8617-3-git-send-email-alan dot lawrence at arm dot com> <1450958105-15859-1-git-send-email-alan dot lawrence at arm dot com>
On 12/24/2015 04:55 AM, Alan Lawrence wrote:
This version changes the test cases to fix failures on some platforms, by
rewriting the initializers so that they aren't pushed out to the constant pool.
gcc/ChangeLog:
* tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
using get_ref_base_and_extent.
(equal_mem_array_ref_p): New.
(hashable_expr_equal_p): Add call to previous.
gcc/testsuite/ChangeLog:
* gcc.dg/tree-ssa/ssa-dom-cse-5.c: New.
* gcc.dg/tree-ssa/ssa-dom-cse-6.c: New.
* gcc.dg/tree-ssa/ssa-dom-cse-7.c: New.
This is fine.
Thanks,
Jeff