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

Reply via email to