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: Tree-SSA and POST_INC address mode inompatible in GCC4?


On Sunday 04 November 2007, Mark Mitchell wrote:
> Kenneth Zadeck wrote:
> > To fix this will require a round of copy propagation, most likely in
> > concert with some induction variable detection, since the most
> > profitable place for this will be in loops.
>
> For code size, it will be profitable everywhere.  On ARM

Not technically true. On Thumb-2 we have variable length instruction encoding. 
For small offsets (< 16bytes IIRC) a pair of post increment loads is larger 
than a pair of offset loads and an add.

However using postincrement everywhere is a good start (probably better than 
what we have) and I'd guess is a prerequisite for adding more advanced cost 
heuristics.

Paul


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