This is the mail archive of the
mailing list for the GCC project.
Re: [patch] tree-cfg.c: Speed uptree_try_redirect_by_replacing_jump.
> > * tree-cfg.c (tree_try_redirect_by_replacing_jump): Speed up
> > by restricting to the case with two outgoing edges.
> [ A second thing to investigate would be why we had any
> calls to this routine for pr15524 to begin with. I was
> quite surprised to see it in the profile data as I
> expected everything to have been threaded at the tree
> level for the PR. ]
This seems to me a more fundamental problem than speeding up
redirect_edge_and_branch at the RTL level.
I haven't look at redirect_edge_and_branch at the RTL level in
particular, but I have looked at delete_unreachable_blocks at the RTL
level to see where unreachable blocks come from. I've found a couple
of places that we should be able to easily fix.