This is the mail archive of the gcc-patches@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: [PATCH] AVR: Solve missed optimization problem due to "double-set" problem for divmod4 patterns.


On Sat, May 14, 2005 at 10:54:52AM +0200, Björn Haase wrote:
> Presently, GCC does not identify that in a sequence like
> 
> int z,n,d,m;
> void
> foo (void)
> { 
>   m = z % n;
>   d = z / n; 
> }
> 
> it is not necessary to call the divmodhi4 subroutine twice.

Why doesn't this work on arv when it does on x86?  You should
figure that out, and not use these dummy announce patterns.


r~


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