This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] RFC: Making control flow more explicit
On Wed, 2003-08-06 at 18:12, Zack Weinberg wrote:
> I'll point out that the "jump table" notion is highly
> machine-specific, so should probably be reserved to RTL, and
> furthermore that it would be nice to be able to optimize an
> if/else if/else if/... chain in the user's code to a more
> efficient decision tree, or a jump table, where that makes sense.
> Intuitively, I bet if-chains are easier to cope with for the tree
> optimizers.
>
Sounds reasonable. And much easier to handle.
> This can be a serious size reduction, but writing out the switch
> statement is more portable and arguably more readable (which is why
> the programmer might not have done it themselves).
>
That would be neat, wouldn't it? Interested in getting it done? :)
Diego.