diff options
| author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-09 15:12:48 +0000 |
|---|---|---|
| committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-09 15:12:48 +0000 |
| commit | d793732c70a447d8c5b075a62d6483c00e12ee24 (patch) | |
| tree | 62b1be41a808600bc5c1a49208824c954c076c8b /gcc/tree-optimize.c | |
| parent | 94367b16400fa18c7538c4538428ca9406660e9e (diff) | |
| download | ppe42-gcc-d793732c70a447d8c5b075a62d6483c00e12ee24.tar.gz ppe42-gcc-d793732c70a447d8c5b075a62d6483c00e12ee24.zip | |
* tree-dfa.c (dump_variable): If the variable is a pointer
SSA_NAME, also dump its points-to information.
* tree-flow.h (struct ptr_info_def): Add field
is_dereferenced.
(dump_points_to_info_for): Declare.
(debug_points_to_info_for): Declare.
* tree-optimize.c (init_tree_optimization_passes): Add a
second alias analysis pass after DOM2.
Move pass_del_pta to a later spot.
* tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
create a name tags when we find a dereferenced pointer. Just
mark the pointer dereferenced.
(collect_points_to_info_for): Move code to clear points-to
information to create_name_tags.
(create_name_tags): New function.
(compute_flow_sensitive_aliasing): Call it.
(setup_pointers_and_addressables): Mark type tags for renaming
here instead of ...
(create_memory_tag): ... here.
(merge_pointed_to_info): Do not merge PT_MALLOC attributes.
(dump_points_to_info_for): Declare extern.
(debug_points_to_info_for): New function.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84377 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-optimize.c')
| -rw-r--r-- | gcc/tree-optimize.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-optimize.c b/gcc/tree-optimize.c index 750c7af7b4f..aa65ab93c22 100644 --- a/gcc/tree-optimize.c +++ b/gcc/tree-optimize.c @@ -294,7 +294,6 @@ init_tree_optimization_passes (void) NEXT_PASS (pass_may_alias); NEXT_PASS (pass_tail_recursion); NEXT_PASS (pass_ch); - NEXT_PASS (pass_del_pta); NEXT_PASS (pass_profile); NEXT_PASS (pass_lower_complex); NEXT_PASS (pass_sra); @@ -303,6 +302,7 @@ init_tree_optimization_passes (void) NEXT_PASS (DUP_PASS (pass_redundant_phi)); NEXT_PASS (DUP_PASS (pass_dce)); NEXT_PASS (pass_dse); + NEXT_PASS (DUP_PASS (pass_may_alias)); NEXT_PASS (DUP_PASS (pass_forwprop)); NEXT_PASS (DUP_PASS (pass_phiopt)); NEXT_PASS (pass_ccp); @@ -320,6 +320,7 @@ init_tree_optimization_passes (void) NEXT_PASS (pass_tail_calls); NEXT_PASS (pass_late_warn_uninitialized); NEXT_PASS (pass_warn_function_return); + NEXT_PASS (pass_del_pta); NEXT_PASS (pass_del_ssa); NEXT_PASS (pass_nrv); NEXT_PASS (pass_remove_useless_vars); |

