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: Autoincrement examples


>   >  > - By processing each register separately, you miss register-register
>   >  >   copies and three-address adds.  Optimizing code with such constructs
>   >  >   was actually the main objective of my patch.  It actually reduces
>   >  >   register pressure.
>   > 
>   > I have rarely found these cases to be important for autoinc address
>   > generation.  However, reduction of register pressure is a good thing.
> I am somewhat surprised that that this isn't caught by cases B, C & E, at
> least in limited forms.

The regmove patches from 1997 already addressed this kind of 'piecemeal'
optimization.  But it turned out that many worthwhile optimizations
are only discernible as worthwhile when you look at the entire set
of related values.


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