This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15559] [3.3/3.4/4.0 Regression] misses opportunity for hoisting an expression that would simplify control flow
- 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: 15 Nov 2004 02:17:30 -0000
- Subject: [Bug tree-optimization/15559] [3.3/3.4/4.0 Regression] misses opportunity for hoisting an expression that would simplify control flow
- References: <20040521043035.15559.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-11-15 02:17 -------
An example of where not doing hurts:
int ii;
int f(int i, int b, int *c)
{
if (b)
ii = i +1;
else
{
*c = ii = i+1;
}
return ii;
}
As there is a store to ii and then a load from it.
--
What |Removed |Added
----------------------------------------------------------------------------
GCC target triplet|powerpc-apple-darwin |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15559