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] Simplified switch conversion in simple cases


On Mon, 20 Apr 2009, Martin Jambor wrote:
> 	* tree-switch-conversion.c (build_constructors): Split a long line.
> 	(constructor_contains_same_values_p): New function.
> 	(build_one_array): Create assigns of constants if possible, do not call
> 	mark_sym_for_renaming, call update_stmt.
> 	(build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
> 	make_rename_temp.  Do not call mark_symbols_for_renaming, call
> 	update_stmt.
> 	(gen_def_assigns): Do not call mark_symbols_for_renaming or
> 	find_new_referenced_vars, call update_stmt.
> 	(gen_inbound_check): Use create_tmp_var and create ssa names manually
> 	instead of calling make_rename_temp.  Do not call
> 	find_new_referenced_vars or mark_symbols_for_renaming, call
> 	update_stmt.

This patch caused a regression, PR39845.

brgds, H-P


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