diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-29 08:41:10 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-10-29 08:41:10 +0000 |
commit | 604efc0122c75e06f23ab788c2306c8f7a32e2c6 (patch) | |
tree | 5ae5a28c250887e5c6bbcd142331bef3dd27af7d /gcc/bitmap.c | |
parent | 2e3657310736017e2ae3fefdc982b7d5e52ede58 (diff) | |
download | gcc-604efc0122c75e06f23ab788c2306c8f7a32e2c6.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@89827 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r-- | gcc/bitmap.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 392ae69580a..0a50d419ca4 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -672,7 +672,7 @@ bitmap_equal_p (bitmap a, bitmap b) int ret; memset (&c, 0, sizeof (c)); - ret = ! bitmap_operation (&c, a, b, BITMAP_XOR); + ret = ! bitmap_xor (&c, a, b); bitmap_clear (&c); return ret; @@ -681,17 +681,19 @@ bitmap_equal_p (bitmap a, bitmap b) /* Or into bitmap TO bitmap FROM1 and'ed with the complement of bitmap FROM2. */ -void -bitmap_ior_and_compl (bitmap to, bitmap from1, bitmap from2) +int +bitmap_ior_and_compl_into (bitmap to, bitmap from1, bitmap from2) { bitmap_head tmp; + int changed; tmp.first = tmp.current = 0; tmp.using_obstack = 0; - bitmap_operation (&tmp, from1, from2, BITMAP_AND_COMPL); - bitmap_operation (to, to, &tmp, BITMAP_IOR); + bitmap_and_compl (&tmp, from1, from2); + changed = bitmap_ior_into (to, &tmp); bitmap_clear (&tmp); + return changed; } int @@ -703,8 +705,8 @@ bitmap_union_of_diff (bitmap dst, bitmap a, bitmap b, bitmap c) tmp.first = tmp.current = 0; tmp.using_obstack = 0; - bitmap_operation (&tmp, b, c, BITMAP_AND_COMPL); - changed = bitmap_operation (dst, &tmp, a, BITMAP_IOR); + bitmap_and_compl (&tmp, b, c); + changed = bitmap_ior (dst, &tmp, a); bitmap_clear (&tmp); return changed; |