------- Comment #2 from xinliangli at gmail dot com  2008-02-23 06:55 -------
(In reply to comment #1)
> Sometimes doing the strength reduction actually increases the code size.  
> Think
> on targets which have auto increments.
> 
> *** This bug has been marked as a duplicate of 22586 ***
> 

Itanium supports address post increment.  The postInc synthesis phase should
not be affected by the strengh reduced address computation code.

When this is fixed by the PRE framework, make sure the conditional increment
case is also covered:

a[i] = i*g;
if (...)
{
   i++;
}
a[i] += ...
... = i*g;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35308

Reply via email to