This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH GCC/pr56124] Don't prefer memory if the source of load operation has side effect
- From: "Bin Cheng" <bin dot cheng at arm dot com>
- To: "'Vladimir Makarov'" <vmakarov at redhat dot com>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Thu, 11 Apr 2013 13:11:07 +0800
- Subject: RE: [PATCH GCC/pr56124] Don't prefer memory if the source of load operation has side effect
- References: <000901ce2928$7d570a50$78051ef0$ at cheng@arm.com> <000101ce333e$50147530$f03d5f90$ at cheng@arm.com> <5165F390 dot 4060709 at redhat dot com>
> -----Original Message-----
> From: Vladimir Makarov [mailto:vmakarov@redhat.com]
> Sent: Thursday, April 11, 2013 7:20 AM
> To: Bin Cheng
> Cc: gcc-patches@gcc.gnu.org
> Subject: Re: [PATCH GCC/pr56124] Don't prefer memory if the source of load
> operation has side effect
>
> On 13-04-06 11:16 PM, Bin Cheng wrote:
> >
> >> -----Original Message-----
> >> From: gcc-patches-owner@gcc.gnu.org
> >> [mailto:gcc-patches-owner@gcc.gnu.org]
> > On
> >> Behalf Of Bin Cheng
> >> Sent: Monday, March 25, 2013 3:15 PM
> >> To: gcc-patches@gcc.gnu.org
> >> Subject: FW: [PATCH GCC/pr56124] Don't prefer memory if the source of
> >> load operation has side effect
> >>
> >> Sorry for the wrong list.
> >>
> >> -----Original Message-----
> >> From: Bin Cheng [mailto:bin.cheng@arm.com]
> >> Sent: Monday, March 25, 2013 3:00 PM
> >> To: gcc@gcc.gnu.org
> >> Subject: [PATCH GCC/pr56124] Don't prefer memory if the source of
> >> load operation has side effect
> >>
> >> Hi,
> >> As reported in PR56124, IRA causes redundant reload by preferring to
> >> put pseudo which is target of loading in memory. Generally this is
> >> good but
> > the
> >> case in which the src of loading has side effect.
> >> This patch fixes this issue by checking whether source of loading has
> >> side effect.
> >>
> >> I tested the patch on x86/thumb2. Is it OK? Thanks.
> >>
> >> 2013-03-25 Bin Cheng <bin.cheng@arm.com>
> >>
> >> PR target/56124
> >> * ira-costs.c (scan_one_insn): Check whether the source rtx of
> >> loading has side effect.
> > Ping.
> This patch is ok for trunk. Thanks. And sorry, for the delay with the
answer.
>
Committed as r197691.
Thanks.