aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-11-14 20:34:29 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2017-11-14 19:34:29 +0000
commit9684f222a6f15caa6949b8a075d531f824e324e1 (patch)
tree990032a90da1e17de2c3d663bd3c8dd8b3779b54 /gcc
parent30632c7a9742ed959f85b33c6f57f9cc62c76630 (diff)
downloadgcc-9684f222a6f15caa6949b8a075d531f824e324e1.zip
gcc-9684f222a6f15caa6949b8a075d531f824e324e1.tar.gz
gcc-9684f222a6f15caa6949b8a075d531f824e324e1.tar.bz2
tree-ssa-threadupdate.c (compute_path_counts): Remove unused path_in_freq_ptr parameter.
* tree-ssa-threadupdate.c (compute_path_counts): Remove unused path_in_freq_ptr parameter. (ssa_fix_duplicate_block_edges): Do not pass around path_in_freq From-SVN: r254739
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-threadupdate.c14
2 files changed, 8 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a290ecb..5870587 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,11 @@
2017-11-14 Jan Hubicka <hubicka@ucw.cz>
+ * tree-ssa-threadupdate.c (compute_path_counts): Remove
+ unused path_in_freq_ptr parameter.
+ (ssa_fix_duplicate_block_edges): Do not pass around path_in_freq
+
+2017-11-14 Jan Hubicka <hubicka@ucw.cz>
+
* ipa-inline.c (edge_badness): Dump sreal frequency.
(compute_inlined_call_time): Match natural implementaiton ...
* ipa-fnsummary.c (estimate_edge_size_and_time): ... here; remove
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c
index 1dab0f1..3d3aeab 100644
--- a/gcc/tree-ssa-threadupdate.c
+++ b/gcc/tree-ssa-threadupdate.c
@@ -691,8 +691,7 @@ static bool
compute_path_counts (struct redirection_data *rd,
ssa_local_info_t *local_info,
profile_count *path_in_count_ptr,
- profile_count *path_out_count_ptr,
- int *path_in_freq_ptr)
+ profile_count *path_out_count_ptr)
{
edge e = rd->incoming_edges->e;
vec<jump_thread_edge *> *path = THREAD_PATH (e);
@@ -700,7 +699,6 @@ compute_path_counts (struct redirection_data *rd,
profile_count nonpath_count = profile_count::zero ();
bool has_joiner = false;
profile_count path_in_count = profile_count::zero ();
- int path_in_freq = 0;
/* Start by accumulating incoming edge counts to the path's first bb
into a couple buckets:
@@ -740,7 +738,6 @@ compute_path_counts (struct redirection_data *rd,
source block. */
gcc_assert (ein_path->last ()->e == elast);
path_in_count += ein->count ();
- path_in_freq += EDGE_FREQUENCY (ein);
}
else if (!ein_path)
{
@@ -751,10 +748,6 @@ compute_path_counts (struct redirection_data *rd,
}
}
- /* This is needed due to insane incoming frequencies. */
- if (path_in_freq > BB_FREQ_MAX)
- path_in_freq = BB_FREQ_MAX;
-
/* Now compute the fraction of the total count coming into the first
path bb that is from the current threading path. */
profile_count total_count = e->dest->count;
@@ -843,7 +836,6 @@ compute_path_counts (struct redirection_data *rd,
*path_in_count_ptr = path_in_count;
*path_out_count_ptr = path_out_count;
- *path_in_freq_ptr = path_in_freq;
return has_joiner;
}
@@ -954,7 +946,6 @@ ssa_fix_duplicate_block_edges (struct redirection_data *rd,
edge elast = path->last ()->e;
profile_count path_in_count = profile_count::zero ();
profile_count path_out_count = profile_count::zero ();
- int path_in_freq = 0;
/* First determine how much profile count to move from original
path to the duplicate path. This is tricky in the presence of
@@ -963,8 +954,7 @@ ssa_fix_duplicate_block_edges (struct redirection_data *rd,
non-joiner case the path_in_count and path_out_count should be the
same. */
bool has_joiner = compute_path_counts (rd, local_info,
- &path_in_count, &path_out_count,
- &path_in_freq);
+ &path_in_count, &path_out_count);
for (unsigned int count = 0, i = 1; i < path->length (); i++)
{