diff options
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 324f3c8..90211ef 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -142,7 +142,7 @@ static bool gimple_ic_transform (gimple_stmt_iterator *); histogram_value gimple_alloc_histogram_value (struct function *fun ATTRIBUTE_UNUSED, - enum hist_type type, gimple stmt, tree value) + enum hist_type type, gimple *stmt, tree value) { histogram_value hist = (histogram_value) xcalloc (1, sizeof (*hist)); hist->hvalue.value = value; @@ -164,13 +164,13 @@ histogram_hash (const void *x) static int histogram_eq (const void *x, const void *y) { - return ((const_histogram_value) x)->hvalue.stmt == (const_gimple) y; + return ((const_histogram_value) x)->hvalue.stmt == (const gimple *) y; } /* Set histogram for STMT. */ static void -set_histogram_value (struct function *fun, gimple stmt, histogram_value hist) +set_histogram_value (struct function *fun, gimple *stmt, histogram_value hist) { void **loc; if (!hist && !VALUE_HISTOGRAMS (fun)) @@ -193,7 +193,7 @@ set_histogram_value (struct function *fun, gimple stmt, histogram_value hist) /* Get histogram list for STMT. */ histogram_value -gimple_histogram_value (struct function *fun, gimple stmt) +gimple_histogram_value (struct function *fun, gimple *stmt) { if (!VALUE_HISTOGRAMS (fun)) return NULL; @@ -204,7 +204,7 @@ gimple_histogram_value (struct function *fun, gimple stmt) /* Add histogram for STMT. */ void -gimple_add_histogram_value (struct function *fun, gimple stmt, +gimple_add_histogram_value (struct function *fun, gimple *stmt, histogram_value hist) { hist->hvalue.next = gimple_histogram_value (fun, stmt); @@ -215,7 +215,7 @@ gimple_add_histogram_value (struct function *fun, gimple stmt, /* Remove histogram HIST from STMT's histogram list. */ void -gimple_remove_histogram_value (struct function *fun, gimple stmt, +gimple_remove_histogram_value (struct function *fun, gimple *stmt, histogram_value hist) { histogram_value hist2 = gimple_histogram_value (fun, stmt); @@ -239,7 +239,7 @@ gimple_remove_histogram_value (struct function *fun, gimple stmt, /* Lookup histogram of type TYPE in the STMT. */ histogram_value -gimple_histogram_value_of_type (struct function *fun, gimple stmt, +gimple_histogram_value_of_type (struct function *fun, gimple *stmt, enum hist_type type) { histogram_value hist; @@ -410,7 +410,7 @@ stream_out_histogram_value (struct output_block *ob, histogram_value hist) /* Dump information about HIST to DUMP_FILE. */ void -stream_in_histogram_value (struct lto_input_block *ib, gimple stmt) +stream_in_histogram_value (struct lto_input_block *ib, gimple *stmt) { enum hist_type type; unsigned int ncounters = 0; @@ -476,7 +476,7 @@ stream_in_histogram_value (struct lto_input_block *ib, gimple stmt) /* Dump all histograms attached to STMT to DUMP_FILE. */ void -dump_histograms_for_stmt (struct function *fun, FILE *dump_file, gimple stmt) +dump_histograms_for_stmt (struct function *fun, FILE *dump_file, gimple *stmt) { histogram_value hist; for (hist = gimple_histogram_value (fun, stmt); hist; hist = hist->hvalue.next) @@ -486,7 +486,7 @@ dump_histograms_for_stmt (struct function *fun, FILE *dump_file, gimple stmt) /* Remove all histograms associated with STMT. */ void -gimple_remove_stmt_histograms (struct function *fun, gimple stmt) +gimple_remove_stmt_histograms (struct function *fun, gimple *stmt) { histogram_value val; while ((val = gimple_histogram_value (fun, stmt)) != NULL) @@ -496,8 +496,8 @@ gimple_remove_stmt_histograms (struct function *fun, gimple stmt) /* Duplicate all histograms associates with OSTMT to STMT. */ void -gimple_duplicate_stmt_histograms (struct function *fun, gimple stmt, - struct function *ofun, gimple ostmt) +gimple_duplicate_stmt_histograms (struct function *fun, gimple *stmt, + struct function *ofun, gimple *ostmt) { histogram_value val; for (val = gimple_histogram_value (ofun, ostmt); val != NULL; val = val->hvalue.next) @@ -514,7 +514,7 @@ gimple_duplicate_stmt_histograms (struct function *fun, gimple stmt, /* Move all histograms associated with OSTMT to STMT. */ void -gimple_move_stmt_histograms (struct function *fun, gimple stmt, gimple ostmt) +gimple_move_stmt_histograms (struct function *fun, gimple *stmt, gimple *ostmt) { histogram_value val = gimple_histogram_value (fun, ostmt); if (val) @@ -565,7 +565,7 @@ verify_histograms (void) FOR_EACH_BB_FN (bb, cfun) for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) { - gimple stmt = gsi_stmt (gsi); + gimple *stmt = gsi_stmt (gsi); for (hist = gimple_histogram_value (cfun, stmt); hist; hist = hist->hvalue.next) @@ -619,7 +619,7 @@ free_histograms (void) somehow. */ static bool -check_counter (gimple stmt, const char * name, +check_counter (gimple *stmt, const char * name, gcov_type *count, gcov_type *all, gcov_type bb_count) { if (*all != bb_count || *count > *all) @@ -668,7 +668,7 @@ gimple_value_profile_transformations (void) { for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) { - gimple stmt = gsi_stmt (gsi); + gimple *stmt = gsi_stmt (gsi); histogram_value th = gimple_histogram_value (cfun, stmt); if (!th) continue; @@ -726,7 +726,7 @@ gimple_divmod_fixed_value (gassign *stmt, tree value, int prob, gassign *stmt1, *stmt2; gcond *stmt3; tree tmp0, tmp1, tmp2; - gimple bb1end, bb2end, bb3end; + gimple *bb1end, *bb2end, *bb3end; basic_block bb, bb2, bb3, bb4; tree optype, op1, op2; edge e12, e13, e23, e24, e34; @@ -887,7 +887,7 @@ gimple_mod_pow2 (gassign *stmt, int prob, gcov_type count, gcov_type all) gassign *stmt1, *stmt2, *stmt3; gcond *stmt4; tree tmp2, tmp3; - gimple bb1end, bb2end, bb3end; + gimple *bb1end, *bb2end, *bb3end; basic_block bb, bb2, bb3, bb4; tree optype, op1, op2; edge e12, e13, e23, e24, e34; @@ -1040,10 +1040,10 @@ gimple_mod_subtract (gassign *stmt, int prob1, int prob2, int ncounts, gcov_type count1, gcov_type count2, gcov_type all) { gassign *stmt1; - gimple stmt2; + gimple *stmt2; gcond *stmt3; tree tmp1; - gimple bb1end, bb2end = NULL, bb3end; + gimple *bb1end, *bb2end = NULL, *bb3end; basic_block bb, bb2, bb3, bb4; tree optype, op1, op2; edge e12, e23 = 0, e24, e34, e14; @@ -1470,7 +1470,7 @@ gimple_ic (gcall *icall_stmt, struct cgraph_node *direct_call, { if (gimple_call_lhs (iretbnd_stmt)) { - gimple copy; + gimple *copy; gimple_set_vdef (iretbnd_stmt, NULL_TREE); gimple_set_vuse (iretbnd_stmt, NULL_TREE); @@ -1860,7 +1860,7 @@ gimple_stringops_transform (gimple_stmt_iterator *gsi) } void -stringop_block_profile (gimple stmt, unsigned int *expected_align, +stringop_block_profile (gimple *stmt, unsigned int *expected_align, HOST_WIDE_INT *expected_size) { histogram_value histogram; @@ -1916,7 +1916,7 @@ stringop_block_profile (gimple stmt, unsigned int *expected_align, division/modulo optimization. */ static void -gimple_divmod_values_to_profile (gimple stmt, histogram_values *values) +gimple_divmod_values_to_profile (gimple *stmt, histogram_values *values) { tree lhs, divisor, op0, type; histogram_value hist; @@ -1974,7 +1974,7 @@ gimple_divmod_values_to_profile (gimple stmt, histogram_values *values) indirect/virtual call optimization. */ static void -gimple_indirect_call_to_profile (gimple stmt, histogram_values *values) +gimple_indirect_call_to_profile (gimple *stmt, histogram_values *values) { tree callee; @@ -2001,7 +2001,7 @@ gimple_indirect_call_to_profile (gimple stmt, histogram_values *values) string operations. */ static void -gimple_stringops_values_to_profile (gimple gs, histogram_values *values) +gimple_stringops_values_to_profile (gimple *gs, histogram_values *values) { gcall *stmt; tree blck_size; @@ -2039,7 +2039,7 @@ gimple_stringops_values_to_profile (gimple gs, histogram_values *values) them to list VALUES. */ static void -gimple_values_to_profile (gimple stmt, histogram_values *values) +gimple_values_to_profile (gimple *stmt, histogram_values *values) { gimple_divmod_values_to_profile (stmt, values); gimple_stringops_values_to_profile (stmt, values); |