[Bug middle-end/14842] Another way of expanding a switch statement

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jan 5 23:03:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14842

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|2006-03-05 03:52:22         |2012-01-04
                 CC|gcc-bugs at gcc dot gnu.org |pinskia at gcc dot gnu.org

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-01-05 23:02:34 UTC ---
We should also optimize:
void
bz (int a)
{
  if (a==5||a==7)
    bar();
}

Using the &~2 trick also.



More information about the Gcc-bugs mailing list