Hi Steven,

> There is a transformation implemented in GCC's
> value profiling to put the most-frequently taken case-label of a
> switch-expr at the top of the switch

Could you point me to the bit of code that does this?

I'm exploring the idea of implementing source hints much like
__builtin_expect which would assign a probability to a case range
in a switch construct. I will have to tweak the case expansion
phase to implement a similar transformation to the one you mentioned
earlier.

Cheers,
Rahul

Reply via email to