This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/24568] Missed optimization: trivialization of silly code
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Oct 2005 18:18:14 -0000
- Subject: [Bug tree-optimization/24568] Missed optimization: trivialization of silly code
- References: <bug-24568-8513@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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