[patch] stmt.c (emit_case_nodes): Fix optimization/9707.
Roger Sayle
roger@eyesopen.com
Thu Mar 25 15:36:00 GMT 2004
On Wed, 24 Mar 2004, Kazu Hirata wrote:
> 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
>
> PR optimization/9707.
> * stmt.c (emit_case_nodes): Emit equality comparisons instead
> of recursing if both children are single-valued cases with no
> children.
>
This is OK for mainline.
I suspect that tree-ssa may have reorganized the way that switch
statements are lowered to RTL, so it would be good to double check
this PR once the tree-ssa branch has been merged. In the meantime,
this patch looks fine.
Roger
--
More information about the Gcc-patches
mailing list