Commit 4edbbd3f by Kazu Hirata Committed by Kazu Hirata

tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge only when needed.

	* tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
	only when needed.

From-SVN: r91476
parent afb7cf18
......@@ -12,6 +12,9 @@
* cfgrtl.c (rtl_tidy_fallthru_edge): Speed up by using
EDGE_COUNT.
* tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
only when needed.
2004-11-29 Alan Modra <amodra@bigpond.net.au>
* varasm.c (default_elf_select_section_1): Only pass DECL_P decl
......
......@@ -4315,12 +4315,12 @@ tree_redirect_edge_and_branch (edge e, basic_block dest)
case SWITCH_EXPR:
{
tree cases = get_cases_for_edge (e, stmt);
edge e2 = find_edge (e->src, dest);
/* If we have a list of cases associated with E, then use it
as it's a lot faster than walking the entire case vector. */
if (cases)
{
edge e2 = find_edge (e->src, dest);
tree last, first;
first = cases;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment