diff options
author | Richard Guenther <rguenther@suse.de> | 2012-08-02 11:41:35 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-08-02 11:41:35 +0000 |
commit | 7cc434a3c1e4ac3b7855d6195c35b23ff6103b60 (patch) | |
tree | 0e0dffe31ea1bae355b8df209a5c5e0b95682e5f /gcc | |
parent | 322445530d0742db2345197405f83bbf505acf9d (diff) | |
download | gcc-7cc434a3c1e4ac3b7855d6195c35b23ff6103b60.zip gcc-7cc434a3c1e4ac3b7855d6195c35b23ff6103b60.tar.gz gcc-7cc434a3c1e4ac3b7855d6195c35b23ff6103b60.tar.bz2 |
tree-flow.h (make_rename_temp): Remove.
2012-08-02 Richard Guenther <rguenther@suse.de>
* tree-flow.h (make_rename_temp): Remove.
* tree-dfa.c (make_rename_temp): Likewise.
* cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg
instead of make_rename_temp.
* omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
expand_omp_atomic_pipeline): Likewise.
* trans-mem.c (tm_log_emit_save_or_restores, build_tm_load,
build_tm_store, expand_call_tm, expand_transaction,
ipa_tm_insert_gettmclone_call): Likewise.
* tree-complex.c (expand_complex_div_wide): Likewise.
* tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
Likewise.
* tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm):
Likewise.
* tree-ssa-math-opts.c (insert_reciprocals): Likewise.
* value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2,
gimple_mod_subtract): Likewise.
From-SVN: r190074
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 20 | ||||
-rw-r--r-- | gcc/cgraphunit.c | 12 | ||||
-rw-r--r-- | gcc/omp-low.c | 12 | ||||
-rw-r--r-- | gcc/trans-mem.c | 14 | ||||
-rw-r--r-- | gcc/tree-complex.c | 4 | ||||
-rw-r--r-- | gcc/tree-dfa.c | 8 | ||||
-rw-r--r-- | gcc/tree-flow.h | 1 | ||||
-rw-r--r-- | gcc/tree-mudflap.c | 12 | ||||
-rw-r--r-- | gcc/tree-ssa-loop-im.c | 4 | ||||
-rw-r--r-- | gcc/tree-ssa-math-opts.c | 2 | ||||
-rw-r--r-- | gcc/value-prof.c | 6 |
11 files changed, 53 insertions, 42 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 52f4a8c..27d5cbd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,25 @@ 2012-08-02 Richard Guenther <rguenther@suse.de> + * tree-flow.h (make_rename_temp): Remove. + * tree-dfa.c (make_rename_temp): Likewise. + * cgraphunit.c (thunk_adjust, assemble_thunk): Use create_tmp_reg + instead of make_rename_temp. + * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk, + expand_omp_atomic_pipeline): Likewise. + * trans-mem.c (tm_log_emit_save_or_restores, build_tm_load, + build_tm_store, expand_call_tm, expand_transaction, + ipa_tm_insert_gettmclone_call): Likewise. + * tree-complex.c (expand_complex_div_wide): Likewise. + * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for): + Likewise. + * tree-ssa-loop-im.c (execute_sm_if_changed_flag_set, execute_sm): + Likewise. + * tree-ssa-math-opts.c (insert_reciprocals): Likewise. + * value-prof.c (gimple_divmod_fixed_value, gimple_mod_pow2, + gimple_mod_subtract): Likewise. + +2012-08-02 Richard Guenther <rguenther@suse.de> + * tree-flow.h (set_default_def): Rename to ... (set_ssa_default_def): ... this. Take a struct function argument. (gimple_default_def): Rename to ... diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 12a254d..a6591b5 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -1280,7 +1280,7 @@ thunk_adjust (gimple_stmt_iterator * bsi, } vtabletmp = - make_rename_temp (build_pointer_type + create_tmp_reg (build_pointer_type (build_pointer_type (vtable_entry_type)), "vptr"); /* The vptr is always at offset zero in the object. */ @@ -1290,7 +1290,7 @@ thunk_adjust (gimple_stmt_iterator * bsi, gsi_insert_after (bsi, stmt, GSI_NEW_STMT); /* Form the vtable address. */ - vtabletmp2 = make_rename_temp (TREE_TYPE (TREE_TYPE (vtabletmp)), + vtabletmp2 = create_tmp_reg (TREE_TYPE (TREE_TYPE (vtabletmp)), "vtableaddr"); stmt = gimple_build_assign (vtabletmp2, build_simple_mem_ref (vtabletmp)); @@ -1304,7 +1304,7 @@ thunk_adjust (gimple_stmt_iterator * bsi, gsi_insert_after (bsi, stmt, GSI_NEW_STMT); /* Get the offset itself. */ - vtabletmp3 = make_rename_temp (TREE_TYPE (TREE_TYPE (vtabletmp2)), + vtabletmp3 = create_tmp_reg (TREE_TYPE (TREE_TYPE (vtabletmp2)), "vcalloffset"); stmt = gimple_build_assign (vtabletmp3, build_simple_mem_ref (vtabletmp2)); @@ -1326,7 +1326,7 @@ thunk_adjust (gimple_stmt_iterator * bsi, ptrtmp = ptr; else { - ptrtmp = make_rename_temp (TREE_TYPE (ptr), "ptr"); + ptrtmp = create_tmp_reg (TREE_TYPE (ptr), "ptr"); stmt = gimple_build_assign (ptrtmp, ptr); gsi_insert_after (bsi, stmt, GSI_NEW_STMT); } @@ -1335,7 +1335,7 @@ thunk_adjust (gimple_stmt_iterator * bsi, } /* Emit the statement and gimplify the adjustment expression. */ - ret = make_rename_temp (TREE_TYPE (ptr), "adjusted_this"); + ret = create_tmp_reg (TREE_TYPE (ptr), "adjusted_this"); stmt = gimple_build_assign (ret, ptr); gsi_insert_after (bsi, stmt, GSI_NEW_STMT); @@ -1440,7 +1440,7 @@ assemble_thunk (struct cgraph_node *node) BLOCK_VARS (DECL_INITIAL (current_function_decl)) = restmp; } else - restmp = make_rename_temp (restype, "retval"); + restmp = create_tmp_reg (restype, "retval"); } for (arg = a; arg; arg = DECL_CHAIN (arg)) diff --git a/gcc/omp-low.c b/gcc/omp-low.c index ade999b..190360f 100644 --- a/gcc/omp-low.c +++ b/gcc/omp-low.c @@ -3811,7 +3811,7 @@ expand_omp_for_generic (struct omp_region *region, counts[i] = t; else { - counts[i] = make_rename_temp (type, ".count"); + counts[i] = create_tmp_reg (type, ".count"); t = force_gimple_operand_gsi (&gsi, t, false, NULL_TREE, true, GSI_SAME_STMT); stmt = gimple_build_assign (counts[i], t); @@ -3936,7 +3936,7 @@ expand_omp_for_generic (struct omp_region *region, false, GSI_CONTINUE_LINKING); if (fd->collapse > 1) { - tree tem = make_rename_temp (type, ".tem"); + tree tem = create_tmp_reg (type, ".tem"); stmt = gimple_build_assign (tem, fd->loop.v); gsi_insert_after (&gsi, stmt, GSI_CONTINUE_LINKING); for (i = fd->collapse - 1; i >= 0; i--) @@ -4224,12 +4224,12 @@ expand_omp_for_static_nochunk (struct omp_region *region, t = fold_convert (itype, t); n = force_gimple_operand_gsi (&gsi, t, true, NULL_TREE, true, GSI_SAME_STMT); - q = make_rename_temp (itype, "q"); + q = create_tmp_reg (itype, "q"); t = fold_build2 (TRUNC_DIV_EXPR, itype, n, nthreads); t = force_gimple_operand_gsi (&gsi, t, false, NULL_TREE, true, GSI_SAME_STMT); gsi_insert_before (&gsi, gimple_build_assign (q, t), GSI_SAME_STMT); - tt = make_rename_temp (itype, "tt"); + tt = create_tmp_reg (itype, "tt"); t = fold_build2 (TRUNC_MOD_EXPR, itype, n, nthreads); t = force_gimple_operand_gsi (&gsi, t, false, NULL_TREE, true, GSI_SAME_STMT); gsi_insert_before (&gsi, gimple_build_assign (tt, t), GSI_SAME_STMT); @@ -5289,8 +5289,8 @@ expand_omp_atomic_pipeline (basic_block load_bb, basic_block store_bb, { tree iaddr_val; - iaddr = make_rename_temp (build_pointer_type_for_mode (itype, ptr_mode, - true), NULL); + iaddr = create_tmp_reg (build_pointer_type_for_mode (itype, ptr_mode, + true), NULL); iaddr_val = force_gimple_operand_gsi (&si, fold_convert (TREE_TYPE (iaddr), addr), diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index 8afa24d..edb678e 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -1285,7 +1285,7 @@ tm_log_emit_save_or_restores (basic_block entry_block, gsi = gsi_last_bb (cond_bb); /* t1 = status & A_{property}. */ - t1 = make_rename_temp (TREE_TYPE (status), NULL); + t1 = create_tmp_reg (TREE_TYPE (status), NULL); t2 = build_int_cst (TREE_TYPE (status), trxn_prop); stmt = gimple_build_assign_with_ops (BIT_AND_EXPR, t1, status, t2); gsi_insert_after (&gsi, stmt, GSI_CONTINUE_LINKING); @@ -2057,7 +2057,7 @@ build_tm_load (location_t loc, tree lhs, tree rhs, gimple_stmt_iterator *gsi) gimple g; tree temp; - temp = make_rename_temp (t, NULL); + temp = create_tmp_reg (t, NULL); gimple_call_set_lhs (gcall, temp); gsi_insert_before (gsi, gcall, GSI_SAME_STMT); @@ -2135,7 +2135,7 @@ build_tm_store (location_t loc, tree lhs, tree rhs, gimple_stmt_iterator *gsi) gimple g; tree temp; - temp = make_rename_temp (simple_type, NULL); + temp = create_tmp_reg (simple_type, NULL); t = fold_build1 (VIEW_CONVERT_EXPR, simple_type, rhs); g = gimple_build_assign (temp, t); gimple_set_location (g, loc); @@ -2302,7 +2302,7 @@ expand_call_tm (struct tm_region *region, if (lhs && requires_barrier (region->entry_block, lhs, stmt) && !gimple_call_return_slot_opt_p (stmt)) { - tree tmp = make_rename_temp (TREE_TYPE (lhs), NULL); + tree tmp = create_tmp_reg (TREE_TYPE (lhs), NULL); location_t loc = gimple_location (stmt); edge fallthru_edge = NULL; @@ -2638,7 +2638,7 @@ expand_transaction (struct tm_region *region) int flags, subcode; tm_start = builtin_decl_explicit (BUILT_IN_TM_START); - status = make_rename_temp (TREE_TYPE (TREE_TYPE (tm_start)), "tm_state"); + status = create_tmp_reg (TREE_TYPE (TREE_TYPE (tm_start)), "tm_state"); /* ??? There are plenty of bits here we're not computing. */ subcode = gimple_transaction_subcode (region->transaction_stmt); @@ -2695,7 +2695,7 @@ expand_transaction (struct tm_region *region) region->entry_block = test_bb; gsi = gsi_last_bb (test_bb); - t1 = make_rename_temp (TREE_TYPE (status), NULL); + t1 = create_tmp_reg (TREE_TYPE (status), NULL); t2 = build_int_cst (TREE_TYPE (status), A_ABORTTRANSACTION); g = gimple_build_assign_with_ops (BIT_AND_EXPR, t1, status, t2); gsi_insert_after (&gsi, g, GSI_CONTINUE_LINKING); @@ -4499,7 +4499,7 @@ ipa_tm_insert_gettmclone_call (struct cgraph_node *node, { tree temp; - temp = make_rename_temp (rettype, 0); + temp = create_tmp_reg (rettype, 0); gimple_call_set_lhs (stmt, temp); g2 = gimple_build_assign (lhs, diff --git a/gcc/tree-complex.c b/gcc/tree-complex.c index cd29433..28757d9 100644 --- a/gcc/tree-complex.c +++ b/gcc/tree-complex.c @@ -1155,8 +1155,8 @@ expand_complex_div_wide (gimple_stmt_iterator *gsi, tree inner_type, set_immediate_dominator (CDI_DOMINATORS, bb_false, bb_cond); } - rr = make_rename_temp (inner_type, NULL); - ri = make_rename_temp (inner_type, NULL); + rr = create_tmp_reg (inner_type, NULL); + ri = create_tmp_reg (inner_type, NULL); } /* In the TRUE branch, we compute diff --git a/gcc/tree-dfa.c b/gcc/tree-dfa.c index 0db5f19..12bb577 100644 --- a/gcc/tree-dfa.c +++ b/gcc/tree-dfa.c @@ -114,14 +114,6 @@ renumber_gimple_stmt_uids_in_blocks (basic_block *blocks, int n_blocks) } } -/* Build a temporary. Make sure and register it to be renamed. */ - -tree -make_rename_temp (tree type, const char *prefix) -{ - return create_tmp_reg (type, prefix); -} - /*--------------------------------------------------------------------------- diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h index ac867d1..2e6a1ae 100644 --- a/gcc/tree-flow.h +++ b/gcc/tree-flow.h @@ -444,7 +444,6 @@ extern void dump_dfa_stats (FILE *); extern void debug_dfa_stats (void); extern void dump_variable (FILE *, tree); extern void debug_variable (tree); -extern tree make_rename_temp (tree, const char *); extern void set_ssa_default_def (struct function *, tree, tree); extern tree ssa_default_def (struct function *, tree); extern tree get_or_create_ssa_default_def (struct function *, tree); diff --git a/gcc/tree-mudflap.c b/gcc/tree-mudflap.c index e2ba26f..775f8b9 100644 --- a/gcc/tree-mudflap.c +++ b/gcc/tree-mudflap.c @@ -471,11 +471,11 @@ mf_decl_cache_locals (void) /* Build the cache vars. */ mf_cache_shift_decl_l - = mf_mark (make_rename_temp (TREE_TYPE (mf_cache_shift_decl), + = mf_mark (create_tmp_reg (TREE_TYPE (mf_cache_shift_decl), "__mf_lookup_shift_l")); mf_cache_mask_decl_l - = mf_mark (make_rename_temp (TREE_TYPE (mf_cache_mask_decl), + = mf_mark (create_tmp_reg (TREE_TYPE (mf_cache_mask_decl), "__mf_lookup_mask_l")); /* Build initialization nodes for the cache vars. We just load the @@ -562,9 +562,9 @@ mf_build_check_statement_for (tree base, tree limit, add_bb_to_loop (then_bb, cond_bb->loop_father); /* Build our local variables. */ - mf_elem = make_rename_temp (mf_cache_structptr_type, "__mf_elem"); - mf_base = make_rename_temp (mf_uintptr_type, "__mf_base"); - mf_limit = make_rename_temp (mf_uintptr_type, "__mf_limit"); + mf_elem = create_tmp_reg (mf_cache_structptr_type, "__mf_elem"); + mf_base = create_tmp_reg (mf_uintptr_type, "__mf_base"); + mf_limit = create_tmp_reg (mf_uintptr_type, "__mf_limit"); /* Build: __mf_base = (uintptr_t) <base address expression>. */ seq = NULL; @@ -645,7 +645,7 @@ mf_build_check_statement_for (tree base, tree limit, t = build2 (TRUTH_OR_EXPR, boolean_type_node, t, u); t = force_gimple_operand (t, &stmts, false, NULL_TREE); gimple_seq_add_seq (&seq, stmts); - cond = make_rename_temp (boolean_type_node, "__mf_unlikely_cond"); + cond = create_tmp_reg (boolean_type_node, "__mf_unlikely_cond"); g = gimple_build_assign (cond, t); gimple_set_location (g, location); gimple_seq_add_stmt (&seq, g); diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c index a0a05a3..e0d4bf2 100644 --- a/gcc/tree-ssa-loop-im.c +++ b/gcc/tree-ssa-loop-im.c @@ -2120,7 +2120,7 @@ execute_sm_if_changed_flag_set (struct loop *loop, mem_ref_p ref) char *str = get_lsm_tmp_name (ref->mem, ~0); lsm_tmp_name_add ("_flag"); - flag = make_rename_temp (boolean_type_node, str); + flag = create_tmp_reg (boolean_type_node, str); get_all_locs_in_loop (loop, ref, &locs); FOR_EACH_VEC_ELT (mem_ref_loc_p, locs, i, loc) { @@ -2158,7 +2158,7 @@ execute_sm (struct loop *loop, VEC (edge, heap) *exits, mem_ref_p ref) fprintf (dump_file, " from loop %d\n", loop->num); } - tmp_var = make_rename_temp (TREE_TYPE (ref->mem), + tmp_var = create_tmp_reg (TREE_TYPE (ref->mem), get_lsm_tmp_name (ref->mem, ~0)); fmt_data.loop = loop; diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index c9bc047..2a37abe 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -345,7 +345,7 @@ insert_reciprocals (gimple_stmt_iterator *def_gsi, struct occurrence *occ, { /* Make a variable with the replacement and substitute it. */ type = TREE_TYPE (def); - recip_def = make_rename_temp (type, "reciptmp"); + recip_def = create_tmp_reg (type, "reciptmp"); new_stmt = gimple_build_assign_with_ops (RDIV_EXPR, recip_def, build_one_cst (type), def); diff --git a/gcc/value-prof.c b/gcc/value-prof.c index b75c36f..6f57e70 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -623,7 +623,7 @@ gimple_divmod_fixed_value (gimple stmt, tree value, int prob, gcov_type count, gsi_insert_before (&gsi, stmt3, GSI_SAME_STMT); bb1end = stmt3; - tmp2 = make_rename_temp (optype, "PROF"); + tmp2 = create_tmp_reg (optype, "PROF"); stmt1 = gimple_build_assign_with_ops (gimple_assign_rhs_code (stmt), tmp2, op1, tmp0); gsi_insert_before (&gsi, stmt1, GSI_SAME_STMT); @@ -767,7 +767,7 @@ gimple_mod_pow2 (gimple stmt, int prob, gcov_type count, gcov_type all) bb = gimple_bb (stmt); gsi = gsi_for_stmt (stmt); - result = make_rename_temp (optype, "PROF"); + result = create_tmp_reg (optype, "PROF"); tmpv = create_tmp_var (optype, "PROF"); tmp2 = make_ssa_name (tmpv, NULL); tmp3 = make_ssa_name (tmpv, NULL); @@ -923,7 +923,7 @@ gimple_mod_subtract (gimple stmt, int prob1, int prob2, int ncounts, bb = gimple_bb (stmt); gsi = gsi_for_stmt (stmt); - result = make_rename_temp (optype, "PROF"); + result = create_tmp_reg (optype, "PROF"); tmp1 = make_ssa_name (create_tmp_var (optype, "PROF"), NULL); stmt1 = gimple_build_assign (result, op1); stmt2 = gimple_build_assign (tmp1, op2); |