------- Comment #4 from pinskia at gcc dot gnu dot org  2007-06-29 03:05 -------
Note we should also optimize:
int f(int a, int b)
{
  int c = a+4;
  int d = c*2;
  int e = a*2;
  int f = e+4;
  return f+d;
}

into "a*2 + 12;" (or "(a+6)*2" ) so that only one mutliplication is there.


-- 


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

Reply via email to