This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] tree-flow.h: Remove has_escape_site from bb_ann_d.
- From: Kazu Hirata <kazu at cs dot umass dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dnovillo at redhat dot com
- Date: Tue, 24 May 2005 15:16:39 -0400 (EDT)
- Subject: [patch] tree-flow.h: Remove has_escape_site from bb_ann_d.
Hi,
Attached is a patch to remove has_escape_site from bb_ann_d as it is a
write-only variable.
If we want to keep this variable, we may want to do so in FLAGS in
basic_block_def. We have plenty of bits there.
Tested on i686-pc-linux-gnu. OK to apply?
Kazu Hirata
2005-05-19 Kazu Hirata <kazu@cs.umass.edu>
* tree-flow.h (bb_ann_d): Remove has_escape_site.
* tree-ssa-alias.c (compute_points_to_addr_escape): Don't
write to has_escape_site.
Index: tree-flow.h
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-flow.h,v
retrieving revision 2.109
diff -u -d -p -r2.109 tree-flow.h
--- tree-flow.h 17 May 2005 20:28:22 -0000 2.109
+++ tree-flow.h 19 May 2005 04:39:27 -0000
@@ -385,9 +385,6 @@ struct bb_ann_d GTY(())
/* Chain of PHI nodes for this block. */
tree phi_nodes;
- /* Nonzero if this block contains an escape point (see is_escape_site). */
- unsigned has_escape_site : 1;
-
/* Nonzero if one or more incoming edges to this block should be threaded
to an outgoing edge of this block. */
unsigned incoming_edge_threaded : 1;
Index: tree-ssa-alias.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/tree-ssa-alias.c,v
retrieving revision 2.91
diff -u -d -p -r2.91 tree-ssa-alias.c
--- tree-ssa-alias.c 28 Apr 2005 07:58:29 -0000 2.91
+++ tree-ssa-alias.c 19 May 2005 04:39:28 -0000
@@ -642,7 +642,6 @@ compute_points_to_and_addr_escape (struc
FOR_EACH_BB (bb)
{
- bb_ann_t block_ann = bb_ann (bb);
block_stmt_iterator si;
for (si = bsi_start (bb); !bsi_end_p (si); bsi_next (&si))
@@ -666,9 +665,6 @@ compute_points_to_and_addr_escape (struc
mark_call_clobbered (var);
}
- if (stmt_escapes_p)
- block_ann->has_escape_site = 1;
-
FOR_EACH_SSA_TREE_OPERAND (op, stmt, iter, SSA_OP_USE)
{
var_ann_t v_ann = var_ann (SSA_NAME_VAR (op));