This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCSE considers read only memory clobbered by function calls.
- From: Mostafa Hagog <MUSTAFA at il dot ibm dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc at gcc dot gnu dot org, stevenb at suse dot de
- Date: Tue, 10 May 2005 10:23:20 +0300
- Subject: Re: GCSE considers read only memory clobbered by function calls.
Richard Henderson <rth@redhat.com> wrote on 09/05/2005 19:35:34:
> On Mon, May 09, 2005 at 05:45:24PM +0300, Mostafa Hagog wrote:
> > EXECUTE_IF_SET_IN_BITMAP (blocks_with_calls, 0, bb_index, bi)
> > {
> > ! if (! MEM_READONLY_P (x))
>
> Looks like you should push this check here:
>
> case MEM:
> if (!MEM_READONLY_P (x))
> {
> ...
> }
> x = XEXP (x, 0);
> goto repeat;
Yes, I agree, no need to waste compile time on those checks, we
know that there is no memory modifications for read-only memory.
>
>
>
> r~