------- Comment #9 from pinskia at gcc dot gnu dot org 2007-06-02 00:37 ------- Here is a simple example: int f(int i, int *k, int l) { int j; i*=20; for(j= 0 ;j<10;j++) k[j] *=i; }
Where we change the order to be slower by pulling into the loop the multiply by 20. This is a recent regression too. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|reassoc can more extra |[4.3 Regression] reassoc2 |calculations into a loop |can more extra calculations | |into a loop Target Milestone|--- |4.3.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32183