Commit 46aaa417 by Richard Guenther Committed by Richard Biener

tree-ssa-structalias.c (do_ds_constraint): Simplify escape handling.

2009-06-26  Richard Guenther  <rguenther@suse.de>

	* tree-ssa-structalias.c (do_ds_constraint): Simplify escape
	handling.

From-SVN: r148968
parent f94bdf2b
2009-06-26 Richard Guenther <rguenther@suse.de>
* tree-ssa-structalias.c (do_ds_constraint): Simplify escape
handling.
2009-06-26 Steven Bosscher <steven@gcc.gnu.org> 2009-06-26 Steven Bosscher <steven@gcc.gnu.org>
PR middle-end/40525 PR middle-end/40525
......
...@@ -1643,8 +1643,8 @@ do_ds_constraint (constraint_t c, bitmap delta) ...@@ -1643,8 +1643,8 @@ do_ds_constraint (constraint_t c, bitmap delta)
unsigned int t; unsigned int t;
HOST_WIDE_INT fieldoffset = v->offset + loff; HOST_WIDE_INT fieldoffset = v->offset + loff;
/* If v is a NONLOCAL then this is an escape point. */ /* If v is a global variable then this is an escape point. */
if (j == nonlocal_id) if (v->is_global_var)
{ {
t = find (escaped_id); t = find (escaped_id);
if (add_graph_edge (graph, t, rhs) if (add_graph_edge (graph, t, rhs)
...@@ -1680,18 +1680,6 @@ do_ds_constraint (constraint_t c, bitmap delta) ...@@ -1680,18 +1680,6 @@ do_ds_constraint (constraint_t c, bitmap delta)
changed_count++; changed_count++;
} }
} }
/* If v is a global variable then this is an escape point. */
if (v->is_global_var)
{
t = find (escaped_id);
if (add_graph_edge (graph, t, rhs)
&& bitmap_ior_into (get_varinfo (t)->solution, sol)
&& !TEST_BIT (changed, t))
{
SET_BIT (changed, t);
changed_count++;
}
}
/* If the variable is not exactly at the requested offset /* If the variable is not exactly at the requested offset
we have to include the next one. */ we have to include the next one. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment