This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]