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


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