diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2004-10-29 08:41:10 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2004-10-29 08:41:10 +0000 |
commit | eb59b8de04973d3d08bf8df731bbd3da38af918c (patch) | |
tree | 5ae5a28c250887e5c6bbcd142331bef3dd27af7d /gcc/ra-build.c | |
parent | ec7e5618bc8b9d720803a3857eb787983b089318 (diff) | |
download | gcc-eb59b8de04973d3d08bf8df731bbd3da38af918c.zip gcc-eb59b8de04973d3d08bf8df731bbd3da38af918c.tar.gz gcc-eb59b8de04973d3d08bf8df731bbd3da38af918c.tar.bz2 |
bitmap.h (bitmap_empty_p): New.
* bitmap.h (bitmap_empty_p): New.
(bitmap_and, bitmap_and_into, bitmap_and_compl,
bitmap_and_compl_into, bitmap_ior, bitmap_ior_into,
bitmap_ior_compl, bitmap_xor, bitmap_xor_into): New bitmap
operation macros.
(bitmap_ior_and_compl): Rename to ...
(bitmap_ior_and_compl_into): ... here.
* bitmap.c (bitmap_equal_p): Use bitmap_xor.
(bitmap_ior_and_compl): Rename to ...
(bitmap_ior_and_compl_into): ... here. Adjust. Return changed
flag.
(bitmap_union_of_diff): Use renamed bitmap functions.
* basic-block.h (AND_REG_SET, AND_COMPL_REG_SET, IOR_REG_SET,
XOR_REG_SET, IOR_AND_COMPL_REG_SET): Likewise.
* cfgrtl.c (safe_insert_insn_on_edge): Likewise.
* df.c (df_bb_rd_local_compute)
* flow.c (calculate_global_regs_live,
init_propagate_block_info): Likewise.
* ifcvt.c (find_if_case_1, find_if_case_2,
dead_or_predicable): Likewise.
* ra-build.c (union_web_part_roots, livethrough_conflicts_bb,
reset_conflicts, conflicts_between_webs): Likewise.
* ra-rewrite.c (reloads_to_loads, rewrite_program2,
detect_web_parts_to_rebuild): Likewise.
* sched-ebb.c (compute_jump_reg_dependencies): Likewise.
* tree-int-ssa.c (insert_phi_nodes_for, rewrite_into_ssa): Likewise.
* tree-sra.c (decide_instantiations): Likewise.
* tree-ssa-alias.c (create_name_tags,
merge_pointed_to_info): Likewise.
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
* tree-ssa-loop-im.c (move_computations): Likewise.
* tree-ssa-operands.c (get_call_expr_operands): Likewise.
* tree-ssa-pre.c (fini_pre): Likewise.
* tree-ssa.c (verify_flow_sensitive_alias_info): Likewise.
* tree-ssanames.c (any_marked_for_rewrite_p): Likewise.
* tree-vectorizer.c (vectorize_loops): Likewise.
From-SVN: r89827
Diffstat (limited to 'gcc/ra-build.c')
-rw-r--r-- | gcc/ra-build.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/gcc/ra-build.c b/gcc/ra-build.c index b66e097..09e6d68 100644 --- a/gcc/ra-build.c +++ b/gcc/ra-build.c @@ -503,8 +503,7 @@ union_web_part_roots (struct web_part *r1, struct web_part *r2) for (cl2 = r2->sub_conflicts; cl2; cl2 = cl2->next) if (cl1->size_word == cl2->size_word) { - bitmap_operation (cl1->conflicts, cl1->conflicts, - cl2->conflicts, BITMAP_IOR); + bitmap_ior_into (cl1->conflicts, cl2->conflicts); BITMAP_XFREE (cl2->conflicts); cl2->conflicts = NULL; } @@ -1057,7 +1056,7 @@ livethrough_conflicts_bb (basic_block bb) uses conflict with all defs, and update their other members. */ if (deaths > 0 || contains_call - || bitmap_first_set_bit (all_defs) >= 0) + || !bitmap_empty_p (all_defs)) { bitmap_iterator bi; @@ -1070,7 +1069,7 @@ livethrough_conflicts_bb (basic_block bb) wp->spanned_deaths += deaths; wp->crosses_call |= contains_call; conflicts = get_sub_conflicts (wp, bl); - bitmap_operation (conflicts, conflicts, all_defs, BITMAP_IOR); + bitmap_ior_into (conflicts, all_defs); } } @@ -2076,14 +2075,13 @@ reset_conflicts (void) /* Useless conflicts will be rebuilt completely. But check for cleanliness, as the web might have come from the free list. */ - gcc_assert (bitmap_first_set_bit (web->useless_conflicts) < 0); + gcc_assert (bitmap_empty_p (web->useless_conflicts)); } else { /* Useless conflicts with new webs will be rebuilt if they are still there. */ - bitmap_operation (web->useless_conflicts, web->useless_conflicts, - newwebs, BITMAP_AND_COMPL); + bitmap_and_compl_into (web->useless_conflicts, newwebs); /* Go through all conflicts, and retain those to old webs. */ for (cl = web->conflict_list; cl; cl = cl->next) { @@ -2172,7 +2170,7 @@ conflicts_between_webs (struct df *df) for (i = 0; i < df->def_id; i++) if (web_parts[i].ref == NULL) bitmap_set_bit (ignore_defs, i); - have_ignored = (bitmap_first_set_bit (ignore_defs) >= 0); + have_ignored = !bitmap_empty_p (ignore_defs); /* Now record all conflicts between webs. Note that we only check the conflict bitmaps of all defs. Conflict bitmaps are only in @@ -2200,8 +2198,7 @@ conflicts_between_webs (struct df *df) bitmap_iterator bi; if (have_ignored) - bitmap_operation (cl->conflicts, cl->conflicts, ignore_defs, - BITMAP_AND_COMPL); + bitmap_and_compl_into (cl->conflicts, ignore_defs); /* We reduce the number of calls to record_conflict() with this pass thing. record_conflict() itself also has some early-out optimizations, but here we can use the special properties of |