Richard Guenther <richard.guent...@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