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 middle-end/23294] fold does not fold a*2-a to a


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


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