diff options
author | Trevor Saunders <tbsaunde@tbsaunde.org> | 2015-09-20 00:52:59 +0000 |
---|---|---|
committer | Trevor Saunders <tbsaunde@gcc.gnu.org> | 2015-09-20 00:52:59 +0000 |
commit | 355fe0884b8097c32e859f0df57c83bde0c6bd26 (patch) | |
tree | aadb7908b4b80ecaf7e744ca1ae42a59a12b07ea /gcc/predict.c | |
parent | e4f2a3e4588bbc3691b452d8a2c520e8196b0ef3 (diff) | |
download | gcc-355fe0884b8097c32e859f0df57c83bde0c6bd26.zip gcc-355fe0884b8097c32e859f0df57c83bde0c6bd26.tar.gz gcc-355fe0884b8097c32e859f0df57c83bde0c6bd26.tar.bz2 |
switch from gimple to gimple*
This renames the gimple_statement_base struct to gimple removes the
typedef of gimple_statement_base * to gimple, and then adjusts all of
the places that use the type.
gcc/ChangeLog:
2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
* coretypes.h (gimple): Change typedef to be a forward
declaration.
* gimple.h (gimple_statement_base): rename to gimple.
* (all functions and types using gimple): Adjust.
* *.[ch]: Likewise.
gcc/cp/ChangeLog:
2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
* cp-gimplify.c (gimplify_must_not_throw_expr): Adjust.
From-SVN: r227941
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index 965d7cb..0b3016c 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -1142,7 +1142,7 @@ is_comparison_with_loop_invariant_p (gcond *stmt, struct loop *loop, static bool expr_coherent_p (tree t1, tree t2) { - gimple stmt; + gimple *stmt; tree ssa_name_1 = NULL; tree ssa_name_2 = NULL; @@ -1205,7 +1205,7 @@ predict_iv_comparison (struct loop *loop, basic_block bb, enum tree_code loop_bound_code, int loop_bound_step) { - gimple stmt; + gimple *stmt; tree compare_var, compare_base; enum tree_code compare_code; tree compare_step_var; @@ -1394,10 +1394,10 @@ predict_extra_loop_exits (edge exit_edge) { unsigned i; bool check_value_one; - gimple lhs_def_stmt; + gimple *lhs_def_stmt; gphi *phi_stmt; tree cmp_rhs, cmp_lhs; - gimple last; + gimple *last; gcond *cmp_stmt; last = last_stmt (exit_edge->src); @@ -1740,7 +1740,7 @@ static tree expr_expected_value_1 (tree type, tree op0, enum tree_code code, tree op1, bitmap visited, enum br_predictor *predictor) { - gimple def; + gimple *def; if (predictor) *predictor = PRED_UNCONDITIONAL; @@ -1935,7 +1935,7 @@ expr_expected_value (tree expr, bitmap visited, static void tree_predict_by_opcode (basic_block bb) { - gimple stmt = last_stmt (bb); + gimple *stmt = last_stmt (bb); edge then_edge; tree op0, op1; tree type; @@ -2114,7 +2114,7 @@ apply_return_prediction (void) FOR_EACH_EDGE (e, ei, EXIT_BLOCK_PTR_FOR_FN (cfun)->preds) { - gimple last = last_stmt (e->src); + gimple *last = last_stmt (e->src); if (last && gimple_code (last) == GIMPLE_RETURN) { @@ -2178,7 +2178,7 @@ tree_bb_level_predictions (void) for (gsi = gsi_start_bb (bb); !gsi_end_p (gsi); gsi_next (&gsi)) { - gimple stmt = gsi_stmt (gsi); + gimple *stmt = gsi_stmt (gsi); tree decl; if (is_gimple_call (stmt)) @@ -2226,7 +2226,7 @@ tree_estimate_probability_bb (basic_block bb) { edge e; edge_iterator ei; - gimple last; + gimple *last; FOR_EACH_EDGE (e, ei, bb->succs) { @@ -2308,7 +2308,7 @@ tree_estimate_probability_bb (basic_block bb) for (bi = gsi_start_bb (e->dest); !gsi_end_p (bi); gsi_next (&bi)) { - gimple stmt = gsi_stmt (bi); + gimple *stmt = gsi_stmt (bi); if (is_gimple_call (stmt) /* Constant and pure calls are hardly used to signalize something exceptional. */ @@ -3094,7 +3094,7 @@ unsigned int pass_strip_predict_hints::execute (function *fun) { basic_block bb; - gimple ass_stmt; + gimple *ass_stmt; tree var; FOR_EACH_BB_FN (bb, fun) @@ -3102,7 +3102,7 @@ pass_strip_predict_hints::execute (function *fun) gimple_stmt_iterator bi; for (bi = gsi_start_bb (bb); !gsi_end_p (bi);) { - gimple stmt = gsi_stmt (bi); + gimple *stmt = gsi_stmt (bi); if (gimple_code (stmt) == GIMPLE_PREDICT) { |