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/14842] Another way of expanding a switch statement


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.


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