[Bug middle-end/23294] fold does not fold a*2-a to a

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Aug 10 00:45:00 GMT 2005


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-10 00:45 -------
Here is an example which is __not__ folded back and shows that we don't optimize it on the RTL level at 
least for i686:
int f(int a)
{
  return a*6-a;
}
int f1(int a)
{
  return a*5;
}

-- 


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



More information about the Gcc-bugs mailing list