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/15559] [3.3/3.4/4.0 Regression] misses opportunity for hoisting an expression that would simplify control flow


------- 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


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