[patch] stmt.c (emit_case_nodes): Fix optimization/9707.

law@redhat.com law@redhat.com
Thu Mar 25 16:02:00 GMT 2004


In message <Pine.LNX.4.44.0403250710320.28065-100000@www.eyesopen.com>, Roger S
ayle writes:
 >
 >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.
We haven't tackled this problem yet.  It's on the list of things we want
to investigate in the future.  There's certainly cases where lowering
certain switches to a branch decision tree would be good for tree-ssa.

jeff






More information about the Gcc-patches mailing list