This is the mail archive of the gcc@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]

Re: Request of new __attribute__ for switch statements (elimination of the bounds check)


On Tuesday, October 15, 2002, at 05:49  PM, Zack Weinberg wrote:
It's just that I see removing the bounds checks on a switch statement
as a marginal optimization compared to the risk.  I've never seen a
switch be the bottleneck in anything.
I have.  However, it was a switch on (x&7) with 8 cases, not an enum.
I do not think new syntax is the right way to fix this case, which
demonstrates an optimizer deficiency.


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