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.


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
--


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