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: "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: 11 Jun 2005 19:05:58 -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 rguenth at gcc dot gnu dot org 2005-06-11 19:05 -------
And it should merge them, too, like for
int g(void);
int h(void);
int f(int i, int j)
{
while (1)
{
if (i > j)
break;
if (i == j)
break;
return g();
}
return h();
}
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rguenth at tat dot physik
| |dot uni-tuebingen dot de
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15353