diff options
author | Richard Guenther <rguenther@suse.de> | 2012-08-07 14:17:44 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-08-07 14:17:44 +0000 |
commit | 070ecdfd0300a9aebdaaff78f8e10184e9152042 (patch) | |
tree | cee5b4d66982f0920c475733a3ba823b7db12268 /gcc/tree-switch-conversion.c | |
parent | 01c59d23df7eef24a9e5a695baef59bd233ce115 (diff) | |
download | gcc-070ecdfd0300a9aebdaaff78f8e10184e9152042.tar.gz |
tree-flow.h (copy_ssa_name_fn): New function.
2012-08-07 Richard Guenther <rguenther@suse.de>
* tree-flow.h (copy_ssa_name_fn): New function.
(duplicate_ssa_name_fn): Likewise.
* tree-flow-inline.h (copy_ssa_name): New function.
(duplicate_ssa_name): Likewise.
* tree-ssanames.c (copy_ssa_name_fn): New function.
(duplicate_ssa_name): Rename to ...
(duplicate_ssa_name_fn): ... this and adjust.
* tree-tailcall.c (update_accumulator_with_ops): Use copy_ssa_name.
* tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Likewise.
(slpeel_update_phi_nodes_for_guard2): Likewise.
(slpeel_tree_peel_loop_to_edge): Likewise.
(vect_loop_versioning): Likewise.
* tree-parloops.c (transform_to_exit_first_loop): Likewise.
(create_parallel_loop): Likewise.
* ipa-split.c (split_function): Likewise.
* tree-vect-loop.c (vect_is_simple_reduction_1): Likewise.
(vect_create_epilog_for_reduction): Likewise.
* tree-vect-data-refs.c (bump_vector_ptr): Likewise.
(vect_setup_realignment): Likewise.
* tree-vect-stmts.c (vectorizable_load): Likewise.
* tree-switch-conversion.c (build_one_array): Likewise.
(gen_def_assigns): Likewise.
* tree-cfg.c (gimple_make_forwarder_block): Likewise.
* graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
create_zero_dim_array with the SSA name.
(rewrite_phi_out_of_ssa): Likewise.
(rewrite_cross_bb_scalar_dependence): Likewise. Use copy_ssa_name.
From-SVN: r190202
Diffstat (limited to 'gcc/tree-switch-conversion.c')
-rw-r--r-- | gcc/tree-switch-conversion.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/tree-switch-conversion.c b/gcc/tree-switch-conversion.c index 6c61eca3b61..4336e5cc592 100644 --- a/gcc/tree-switch-conversion.c +++ b/gcc/tree-switch-conversion.c @@ -1031,7 +1031,7 @@ build_one_array (gimple swtch, int num, tree arr_index_type, gimple phi, gcc_assert (info->default_values[num]); - name = make_ssa_name (SSA_NAME_VAR (PHI_RESULT (phi)), NULL); + name = copy_ssa_name (PHI_RESULT (phi), NULL); info->target_inbound_names[num] = name; cst = constructor_contains_same_values_p (info->constructors[num]); @@ -1077,7 +1077,6 @@ build_one_array (gimple swtch, int num, tree arr_index_type, gimple phi, load = gimple_build_assign (name, fetch); } - SSA_NAME_DEF_STMT (name) = load; gsi_insert_before (&gsi, load, GSI_SAME_STMT); update_stmt (load); info->arr_ref_last = load; @@ -1137,12 +1136,9 @@ gen_def_assigns (gimple_stmt_iterator *gsi, struct switch_conv_info *info) for (i = 0; i < info->phi_count; i++) { - tree name - = make_ssa_name (SSA_NAME_VAR (info->target_inbound_names[i]), NULL); - + tree name = copy_ssa_name (info->target_inbound_names[i], NULL); info->target_outbound_names[i] = name; assign = gimple_build_assign (name, info->default_values[i]); - SSA_NAME_DEF_STMT (name) = assign; gsi_insert_before (gsi, assign, GSI_SAME_STMT); update_stmt (assign); } |