diff options
author | Jan Hubicka <jh@suse.cz> | 2005-07-14 00:35:29 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-07-13 22:35:29 +0000 |
commit | df1f6f31f401965cbc0baee3006a6e9c477bba9c (patch) | |
tree | 06bf3d313f4eb8921ced47d5b65158252b99973d /gcc/tree-tailcall.c | |
parent | 9ef0b1bd660d058f217b0fba7cc7f6164e9dc569 (diff) | |
download | gcc-df1f6f31f401965cbc0baee3006a6e9c477bba9c.zip gcc-df1f6f31f401965cbc0baee3006a6e9c477bba9c.tar.gz gcc-df1f6f31f401965cbc0baee3006a6e9c477bba9c.tar.bz2 |
tree-dfa.c (dump_variable): Use default_def function.
* tree-dfa.c (dump_variable): Use default_def function.
* tree-ssa-alias.c (dump_points_to_info): Likewise.
* tree-ssa.c (verify_use): Likewise.
* tree-ssanames.c (release_ssa_name): Likewise.
* tree-tailcall.c (eliminate_tail_call): Likewise.
(tree_optimize_tail_calls_1): Likewise.
* tree-vrp.c (get_value_range): Likewise.
From-SVN: r101994
Diffstat (limited to 'gcc/tree-tailcall.c')
-rw-r--r-- | gcc/tree-tailcall.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index 1e26640..3a40a61 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -756,7 +756,7 @@ eliminate_tail_call (struct tailcall *t) if (!phi) { - tree name = var_ann (param)->default_def; + tree name = default_def (param); tree new_name; if (!name) @@ -769,7 +769,7 @@ eliminate_tail_call (struct tailcall *t) } new_name = make_ssa_name (param, SSA_NAME_DEF_STMT (name)); - var_ann (param)->default_def = new_name; + set_default_def (param, new_name); phi = create_phi_node (name, first); SSA_NAME_DEF_STMT (name) = phi; add_phi_arg (phi, new_name, single_succ_edge (ENTRY_BLOCK_PTR)); @@ -868,6 +868,7 @@ tree_optimize_tail_calls_1 (bool opt_tailcalls) if (!phis_constructed) { + tree name; /* Ensure that there is only one predecessor of the block. */ if (!single_pred_p (first)) first = split_edge (single_succ_edge (ENTRY_BLOCK_PTR)); @@ -880,14 +881,13 @@ tree_optimize_tail_calls_1 (bool opt_tailcalls) && var_ann (param) /* Also parameters that are only defined but never used need not be copied. */ - && (var_ann (param)->default_def - && TREE_CODE (var_ann (param)->default_def) == SSA_NAME)) + && ((name = default_def (param)) + && TREE_CODE (name) == SSA_NAME)) { - tree name = var_ann (param)->default_def; tree new_name = make_ssa_name (param, SSA_NAME_DEF_STMT (name)); tree phi; - var_ann (param)->default_def = new_name; + set_default_def (param, new_name); phi = create_phi_node (name, first); SSA_NAME_DEF_STMT (name) = phi; add_phi_arg (phi, new_name, single_pred_edge (first)); |