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/24568] Missed optimization: trivialization of silly code



------- Comment #5 from pinskia at gcc dot gnu dot org  2005-10-28 18:18 -------
Last but not least is:
int f(int i)
{
  if (i < 0) return i/10;
  return i/10;
}


int f2(int i)
{
  return i/10;
}

Which is converted at the rtl level but not at the tree level (I think there is
a bug about this already).


-- 


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


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