This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/28685] Multiple comparisons are not simplified
- 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: 30 Apr 2008 15:12:57 -0000
- Subject: [Bug middle-end/28685] Multiple comparisons are not simplified
- References: <bug-28685-1649@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from rguenth at gcc dot gnu dot org 2008-04-30 15:12 -------
A third variant is optimized by the ifcombine pass:
int test__(int a, int b)
{
if (a < b)
return 1;
if (a == b)
return 1;
return 0;
}
in principle ifcombine could handle flow-less combining as well. I'll put
that on my TODO.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-08-10 18:18:10 |2008-04-30 15:12:57
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28685