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/3.5 Regression] SSAPRE misses obvious redundant expression


------- Additional Comments From giovannibajo at libero dot it  2004-06-10 16:12 -------
yes, but if GVNPRE hoists the operation, we end up with:

int f(int i, int b, int *c)
{
  int ii;
  ii = i+1;
  if (b)
    ;
  else
    *c = ii;
  return ii;
}

that can be later simplified to:

int f(int i, int b, int *c)
{
  int ii;
  ii = i+1;
  if (!b)
    *c = ii;
  return ii;
}


-- 


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]