This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/14842] Another way of expanding a switch statement
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 05 Jan 2012 23:02:34 +0000
- Subject: [Bug middle-end/14842] Another way of expanding a switch statement
- Auto-submitted: auto-generated
- References: <bug-14842-4@http.gcc.gnu.org/bugzilla/>
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.