This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/15353] [tree-ssa] Merge two "if"s if one subsumes the other.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Jun 2005 19:16:38 -0000
- Subject: [Bug tree-optimization/15353] [tree-ssa] Merge two "if"s if one subsumes the other.
- References: <20040509200719.15353.kazu@cs.umass.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-06-11 19:16 -------
(In reply to comment #3)
> And it should merge them, too, like for
I better testcase which shows why we don't convert i > j || i == j into i >= j
which is reduced from Richard's tramp3d:
int g(void);
int h(void);
int f(int *i, int *j)
{
while (1)
{
if (*i > *j || *i == *j)
break;
return g();
}
return h();
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15353