[Bug tree-optimization/15559] [3.3/3.4/4.0 Regression] misses opportunity for hoisting an expression that would simplify control flow

dberlin at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue Nov 23 02:49:00 GMT 2004


------- Additional Comments From dberlin at gcc dot gnu dot org  2004-11-23 02:49 -------
(In reply to comment #10)
> 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.


I'm not sure what you are talking about.
At the tree level,  there is only a store.


-- 


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



More information about the Gcc-bugs mailing list