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