[tree-ssa] RFC: Making control flow more explicit

Diego Novillo dnovillo@redhat.com
Thu Aug 7 01:23:00 GMT 2003


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.



More information about the Gcc mailing list