This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] derive alias information from named address spaces.
- From: Richard Henderson <rth at redhat dot com>
- To: Bingfeng Mei <bmei at broadcom dot com>
- Cc: "gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>, Ulrich Weigand <uweigand at de dot ibm dot com>
- Date: Tue, 20 Sep 2011 09:14:59 -0700
- Subject: Re: [PATCH] derive alias information from named address spaces.
- References: <7FB04A5C213E9943A72EE127DB74F0ADD15FCB0658@SJEXCHCCR02.corp.ad.broadcom.com>
On 09/20/2011 01:46 AM, Bingfeng Mei wrote:
> if (MEM_P (rtlx) && MEM_P (rtly)
> && MEM_ADDR_SPACE (rtlx) != MEM_ADDR_SPACE (rtly))
> - return 0;
> + {
> + if (!targetm.addr_space.subset_p (MEM_ADDR_SPACE (rtlx),
> + MEM_ADDR_SPACE (rtly))
> + && !targetm.addr_space.subset_p (MEM_ADDR_SPACE (rtly),
> + MEM_ADDR_SPACE (rtlx)))
> + return 1;
> + else
> + return 0;
> + }
You have 4 copies of this. Please pull it out into
a new predicate function.
r~