This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH 6/6] Make SRA replace constant-pool loads
- From: Bernhard Reutner-Fischer <rep dot dot dot nop at gmail dot com>
- To: Alan Lawrence <alan dot lawrence at arm dot com>,gcc-patches at gcc dot gnu dot org
- Date: Sun, 01 Nov 2015 00:47:13 +0100
- Subject: Re: [PATCH 6/6] Make SRA replace constant-pool loads
- Authentication-results: sourceware.org; auth=none
- References: <1446146302-17002-1-git-send-email-alan dot lawrence at arm dot com> <1446146302-17002-7-git-send-email-alan dot lawrence at arm dot com>
On October 29, 2015 8:18:22 PM GMT+01:00, Alan Lawrence <alan.lawrence@arm.com> wrote:
>+
>+static tree
>+subst_constant_pool_initial (tree expr, tree var)
>+{
>+ if (TREE_CODE (expr) == VAR_DECL)
Just a nit, but i thought we had VAR_DECL_P or VAR_P for the TREE_CODE (NODE) == VAR_DECL predicate?
Thanks,