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/28685] Multiple comparisons are not simplified



------- 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


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