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]

Re: missed optimization, would be very helpful


On Thu, 31 Dec 1998 23:03:25 -0400, Horst von Brand wrote:
>Zack Weinberg <zack@rabi.columbia.edu> said:
>> In a loop of the form
>> 
>> while (condition) (*int_ptr)++;
>> 
>> gcc generates a read-mod-write cycle to the memory location *int_ptr at each
>> iteration of the loop.

>
>It's still there with egcs-19981226. On i586:
>

This is what I see too.  rth doesn't get that on Alpha, so it's an i386.md
problem at this point.  A guess at a kludge: if the incdi pattern were
changed to not allow memory operands, that might force the optimization. 
But that's overkill.

zw


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