This is the mail archive of the gcc-bugs@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]

[Bug tree-optimization/32183] [4.3 Regression] reassoc2 can more extra calculations into a loop



------- 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


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