diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-07 14:30:25 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-06-07 14:30:25 +0000 |
commit | 3e790786cfb2c88061ebc1faad8273489bf3c388 (patch) | |
tree | 562f4507f40d0b9cd1ffaff1ad4960266f21f391 /gcc/tree-ssa-alias.c | |
parent | aed164c3b749041e52ddb15d0114078e9dbeb7ae (diff) | |
download | gcc-3e790786cfb2c88061ebc1faad8273489bf3c388.tar.gz |
* sbitmap.h (sbitmap_iterator, sbitmap_iter_init,
sbitmap_iter_cond, sbitmap_iter_next): New.
* bt-load.c, cfganal.c, combine.c, ddg.c, flow.c,
modulo-sched.c, sbitmap.c, sched-rgn.c, tree-into-ssa.c,
tree-outof-ssa.c, tree-ssa-alias.c, tree-ssa-live.c: Update
uses of EXECUTE_IF_SET_IN_SBITMAP to the new style.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@100709 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-alias.c')
-rw-r--r-- | gcc/tree-ssa-alias.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index f8b992accd6..ab23cd0bab8 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -1073,12 +1073,13 @@ compute_flow_insensitive_aliasing (struct alias_info *ai) if (sbitmap_first_set_bit (may_aliases2) >= 0) { - size_t k; + unsigned int k; + sbitmap_iterator sbi; /* Add all the aliases for TAG2 into TAG1's alias set. FIXME, update grouping heuristic counters. */ - EXECUTE_IF_SET_IN_SBITMAP (may_aliases2, 0, k, - add_may_alias (tag1, referenced_var (k))); + EXECUTE_IF_SET_IN_SBITMAP (may_aliases2, 0, k, sbi) + add_may_alias (tag1, referenced_var (k)); sbitmap_a_or_b (may_aliases1, may_aliases1, may_aliases2); } else @@ -1133,11 +1134,12 @@ total_alias_vops_cmp (const void *p, const void *q) static void group_aliases_into (tree tag, sbitmap tag_aliases, struct alias_info *ai) { - size_t i; + unsigned int i; var_ann_t tag_ann = var_ann (tag); size_t num_tag_refs = VARRAY_UINT (ai->num_references, tag_ann->uid); + sbitmap_iterator sbi; - EXECUTE_IF_SET_IN_SBITMAP (tag_aliases, 0, i, + EXECUTE_IF_SET_IN_SBITMAP (tag_aliases, 0, i, sbi) { tree var = referenced_var (i); var_ann_t ann = var_ann (var); @@ -1157,7 +1159,7 @@ group_aliases_into (tree tag, sbitmap tag_aliases, struct alias_info *ai) itself won't be removed. We will merely replace them with references to TAG. */ ai->total_alias_vops -= num_tag_refs; - }); + } /* We have reduced the number of virtual operands that TAG makes on behalf of all the variables formerly aliased with it. However, |