Commit 8122ccf1 by Paolo Bonzini Committed by Paolo Bonzini

tree-ssa-alias.c: Fix unintentional commit.

2009-06-27  Paolo Bonzini  <bonzini@gnu.org>

	* tree-ssa-alias.c: Fix unintentional commit.

From-SVN: r149013
parent b9cafe60
2009-06-27 Paolo Bonzini <bonzini@gnu.org> 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
* tree-ssa-alias.c: Fix unintentional commit.
2009-06-27 Paolo Bonzini <bonzini@gnu.org>
* passes.c (execute_one_pass): Fix unintentional commit. * passes.c (execute_one_pass): Fix unintentional commit.
2009-06-27 Paolo Bonzini <bonzini@gnu.org> 2009-06-27 Paolo Bonzini <bonzini@gnu.org>
......
...@@ -1358,10 +1358,13 @@ walk_non_aliased_vuses (ao_ref *ref, tree vuse, ...@@ -1358,10 +1358,13 @@ walk_non_aliased_vuses (ao_ref *ref, tree vuse,
bitmap visited = NULL; bitmap visited = NULL;
void *res; void *res;
timevar_push (TV_ALIAS_STMT_WALK);
do do
{ {
gimple def_stmt; gimple def_stmt;
/* ??? Do we want to account this to TV_ALIAS_STMT_WALK? */
res = (*walker) (ref, vuse, data); res = (*walker) (ref, vuse, data);
if (res) if (res)
break; break;
...@@ -1397,6 +1400,8 @@ walk_non_aliased_vuses (ao_ref *ref, tree vuse, ...@@ -1397,6 +1400,8 @@ walk_non_aliased_vuses (ao_ref *ref, tree vuse,
if (visited) if (visited)
BITMAP_FREE (visited); BITMAP_FREE (visited);
timevar_pop (TV_ALIAS_STMT_WALK);
return res; return res;
} }
...@@ -1440,6 +1445,7 @@ walk_aliased_vdefs_1 (tree ref, tree vdef, ...@@ -1440,6 +1445,7 @@ walk_aliased_vdefs_1 (tree ref, tree vdef,
return cnt; return cnt;
} }
/* ??? Do we want to account this to TV_ALIAS_STMT_WALK? */
cnt++; cnt++;
if ((!ref if ((!ref
|| stmt_may_clobber_ref_p (def_stmt, ref)) || stmt_may_clobber_ref_p (def_stmt, ref))
...@@ -1459,11 +1465,15 @@ walk_aliased_vdefs (tree ref, tree vdef, ...@@ -1459,11 +1465,15 @@ walk_aliased_vdefs (tree ref, tree vdef,
bitmap local_visited = NULL; bitmap local_visited = NULL;
unsigned int ret; unsigned int ret;
timevar_push (TV_ALIAS_STMT_WALK);
ret = walk_aliased_vdefs_1 (ref, vdef, walker, data, ret = walk_aliased_vdefs_1 (ref, vdef, walker, data,
visited ? visited : &local_visited, 0); visited ? visited : &local_visited, 0);
if (local_visited) if (local_visited)
BITMAP_FREE (local_visited); BITMAP_FREE (local_visited);
timevar_pop (TV_ALIAS_STMT_WALK);
return ret; return ret;
} }
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