This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/26198] Unfolded comparison after cfg_cleanup
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Oct 2006 09:53:26 -0000
- Subject: [Bug middle-end/26198] Unfolded comparison after cfg_cleanup
- References: <bug-26198-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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