This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH, PR tree-optimization/65002] Disable SRA for functions wrongly marked as read-only
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Richard Biener <richard dot guenther at gmail dot com>
- Cc: Ilya Enkovich <enkovich dot gnu at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 13 Feb 2015 10:27:21 +0100
- Subject: Re: [PATCH, PR tree-optimization/65002] Disable SRA for functions wrongly marked as read-only
- Authentication-results: sourceware.org; auth=none
- References: <20150212141419 dot GA35812 at msticlxl57 dot ims dot intel dot com> <CAFiYyc3eLkyD1qm7qxT2=j4JrunyPcBj2DFU=4gDWsazY7Kgkw at mail dot gmail dot com> <20150213085459 dot GH1746 at tucnak dot redhat dot com> <CAFiYyc03kBfhEbfD-wEsNpiatz1FJ4OZdLB5o_6TmQQoguHJbg at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Fri, Feb 13, 2015 at 10:21:42AM +0100, Richard Biener wrote:
> > I wonder if this won't pessimize const functions that just get called with
> > aggregate arguments passed by value, do those count as memory read or
> > just as parameters?
>
> They count as memory reads and thus cause a VUSE (similar to aggregate
> returns causing a VDEF).
Ok.
Jakub