This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Bug in edge redirection code
- To: Jan Hubicka <jh at suse dot cz>
- Subject: Re: Bug in edge redirection code
- From: Richard Henderson <rth at redhat dot com>
- Date: Thu, 26 Jul 2001 10:46:27 -0700
- Cc: Daniel Berlin <dan at cgsoftware dot com>, gcc-patches at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org
- References: <87y9pbps2k.fsf@cgsoftware.com> <20010726192844.C9601@atrey.karlin.mff.cuni.cz>
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~