This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]