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: "dberlin at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Nov 2004 02:49:36 -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 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