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]

Re: Bug in edge redirection code


On Thu, Jul 26, 2001 at 07:28:44PM +0200, Jan Hubicka wrote:
> +       gcov_type edge_count;
> +       int edge_frequency;
[...]
> ! 	  edge_count = e->count;
> ! 	  edge_frequency = ((e->probability * b->frequency + REG_BR_PROB_BASE / 2)
> ! 			    / REG_BR_PROB_BASE);
> ! 	  if (redirect_edge_and_branch (e, target))

Better as

    else
      {
	gcov_type edge_count = e->count
	int edge_probability = e->probability;

	if (redirect_edge_and_branch (e, target))
	  {
	    ...



r~


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