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] tree-cfg.c: Speed up tree_redirect_edge_and_branch.


On Mon, 2004-11-29 at 08:33 -0500, Kazu Hirata wrote:
> Hi,
> 
> Attached is a patch to speed up tree_redirect_edge_and_branch.
> 
> The result of find_edge is needed only in the "then" arm of the "if"
> statement shown in the patch.
> 
> The patch simply moves the call to find_edge to the "then" arm.
> 
> Tested on i686-pc-linux-gnu.  OK to apply?
> 
> Kazu Hirata
> 
> 2004-11-29  Kazu Hirata  <kazu@cs.umass.edu>
> 
> 	* tree-cfg.c (tree_redirect_edge_and_branch): Call find_edge
> 	only when needed.
Approved.  Thanks,
Jeff



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