Clustering switch cases
Paulo J. Matos
pocmatos@gmail.com
Wed Sep 1 09:15:00 GMT 2010
Richard Guenther <richard.guenther@gmail.com> writes:
>>
>> I'd kinda hope that doing the optimization at the tree level means expand_case
>> doesn't have to handle both types. Â The tree code converts sparse case ranges
>> to explicit conditionals (or a switch on a compact perfect hash), so anything
>> left to RTL expansion must be a jump table.
>
You are right, I haven't thought about it but it does make sense. If I
want to provide a patch for this, would it be ok if its a patch against
gcc 4.4.4, or would it be better if its against the latest 4.5.1? Is
there any policy regarding this?
> Yes, that was my idea.
>
Good! I will get to work!
Cheers,
--
PMatos
More information about the Gcc
mailing list