diff options
Diffstat (limited to 'gcc/loop-invariant.c')
-rw-r--r-- | gcc/loop-invariant.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/gcc/loop-invariant.c b/gcc/loop-invariant.c index 03f8c67..92d8caa 100644 --- a/gcc/loop-invariant.c +++ b/gcc/loop-invariant.c @@ -296,13 +296,13 @@ static void find_defs (struct loop *loop, basic_block *body, struct df *df) { unsigned i; - bitmap blocks = BITMAP_XMALLOC (); + bitmap blocks = BITMAP_ALLOC (NULL); for (i = 0; i < loop->num_nodes; i++) bitmap_set_bit (blocks, body[i]->index); df_analyze_subcfg (df, blocks, DF_UD_CHAIN | DF_HARD_REGS | DF_EQUIV_NOTES); - BITMAP_XFREE (blocks); + BITMAP_FREE (blocks); } /* Creates a new invariant for definition DEF in INSN, depending on invariants @@ -447,10 +447,10 @@ find_invariant_insn (rtx insn, bool always_reached, bool always_executed, return; } - depends_on = BITMAP_XMALLOC (); + depends_on = BITMAP_ALLOC (NULL); if (!check_dependencies (insn, df, depends_on)) { - BITMAP_XFREE (depends_on); + BITMAP_FREE (depends_on); return; } @@ -557,10 +557,10 @@ find_invariants_body (struct loop *loop, basic_block *body, static void find_invariants (struct loop *loop, struct df *df) { - bitmap may_exit = BITMAP_XMALLOC (); - bitmap always_reached = BITMAP_XMALLOC (); - bitmap has_exit = BITMAP_XMALLOC (); - bitmap always_executed = BITMAP_XMALLOC (); + bitmap may_exit = BITMAP_ALLOC (NULL); + bitmap always_reached = BITMAP_ALLOC (NULL); + bitmap has_exit = BITMAP_ALLOC (NULL); + bitmap always_executed = BITMAP_ALLOC (NULL); basic_block *body = get_loop_body_in_dom_order (loop); find_exits (loop, body, may_exit, has_exit); @@ -570,10 +570,10 @@ find_invariants (struct loop *loop, struct df *df) find_defs (loop, body, df); find_invariants_body (loop, body, always_reached, always_executed, df); - BITMAP_XFREE (always_reached); - BITMAP_XFREE (always_executed); - BITMAP_XFREE (may_exit); - BITMAP_XFREE (has_exit); + BITMAP_FREE (always_reached); + BITMAP_FREE (always_executed); + BITMAP_FREE (may_exit); + BITMAP_FREE (has_exit); free (body); } @@ -863,7 +863,7 @@ free_inv_motion_data (struct df *df) for (i = 0; i < VARRAY_ACTIVE_SIZE (invariants); i++) { inv = VARRAY_GENERIC_PTR_NOGC (invariants, i); - BITMAP_XFREE (inv->depends_on); + BITMAP_FREE (inv->depends_on); free (inv); } VARRAY_POP_ALL (invariants); |