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 middle-end/26198] Unfolded comparison after cfg_cleanup



------- Comment #3 from rguenth at gcc dot gnu dot org  2006-10-26 09:53 -------
And note that before TER we have

  p_108 = &this_91->a3.x[0];
  D.3632_327 = p_108 + 15B;
  if (p_108 <= D.3632_327) goto <L203>; else goto <L47>;

it sucks that we don't tree-combine COND_EXPRs.  Testcase:

int foo(int p)
{
  int q = p + 5;
  return q < p;
}
void bar(int p)
{
  int q = p + 5;
  if (q < p)
    link_error ();
}


-- 


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


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