aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-04-26 11:52:05 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-04-26 09:52:05 +0000
commitae2b08888a183d94f9a4f898600b347e5e66b29d (patch)
tree199315ea3ba0ab8d18c800814ea451dd8cafcb85 /gcc/cgraphunit.c
parent98b2dfbb6d39dc038d047a51c5637358d87b8c18 (diff)
downloadgcc-ae2b08888a183d94f9a4f898600b347e5e66b29d.zip
gcc-ae2b08888a183d94f9a4f898600b347e5e66b29d.tar.gz
gcc-ae2b08888a183d94f9a4f898600b347e5e66b29d.tar.bz2
* cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
From-SVN: r158724
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 7d65b04..fcb96b2 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -2027,7 +2027,7 @@ cgraph_copy_node_for_versioning (struct cgraph_node *old_version,
VEC(cgraph_edge_p,heap) *redirect_callers)
{
struct cgraph_node *new_version;
- struct cgraph_edge *e, *new_e;
+ struct cgraph_edge *e;
struct cgraph_edge *next_callee;
unsigned i;
@@ -2046,10 +2046,10 @@ cgraph_copy_node_for_versioning (struct cgraph_node *old_version,
also cloned. */
for (e = old_version->callees;e; e=e->next_callee)
{
- new_e = cgraph_clone_edge (e, new_version, e->call_stmt,
- e->lto_stmt_uid, 0, e->frequency,
- e->loop_nest, true);
- new_e->count = e->count;
+ cgraph_clone_edge (e, new_version, e->call_stmt,
+ e->lto_stmt_uid, REG_BR_PROB_BASE,
+ CGRAPH_FREQ_BASE,
+ e->loop_nest, true);
}
/* Fix recursive calls.
If OLD_VERSION has a recursive call after the