This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23294] fold does not fold a*2-a to a
- 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: 10 Aug 2005 00:45:39 -0000
- Subject: [Bug middle-end/23294] fold does not fold a*2-a to a
- References: <20050809030649.23294.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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