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
This commit is contained in:
parent
afb7cf1807
commit
4edbbd3f25
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user