summaryrefslogtreecommitdiff
path: root/gcc/cfgloop.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cfgloop.c')
-rw-r--r--gcc/cfgloop.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/cfgloop.c b/gcc/cfgloop.c
index 83ac28d5713..5ab7c201688 100644
--- a/gcc/cfgloop.c
+++ b/gcc/cfgloop.c
@@ -420,7 +420,7 @@ flow_loops_find (struct loops *loops)
&& dominated_by_p (CDI_DOMINATORS, latch, header))
{
/* Shared headers should be eliminated by now. */
- SET_BIT (headers, header->index);
+ bitmap_set_bit (headers, header->index);
num_loops++;
}
}
@@ -451,7 +451,7 @@ flow_loops_find (struct loops *loops)
/* Search the nodes of the CFG in reverse completion order
so that we can find outer loops first. */
- if (!TEST_BIT (headers, rc_order[b]))
+ if (!bitmap_bit_p (headers, rc_order[b]))
continue;
header = BASIC_BLOCK (rc_order[b]);
@@ -1361,9 +1361,9 @@ verify_loop_structure (void)
bb = bbs[j];
/* Ignore this block if it is in an inner loop. */
- if (TEST_BIT (visited, bb->index))
+ if (bitmap_bit_p (visited, bb->index))
continue;
- SET_BIT (visited, bb->index);
+ bitmap_set_bit (visited, bb->index);
if (bb->loop_father != loop)
{
@@ -1426,9 +1426,9 @@ verify_loop_structure (void)
{
edge_iterator ei;
if (bb->flags & BB_IRREDUCIBLE_LOOP)
- SET_BIT (irreds, bb->index);
+ bitmap_set_bit (irreds, bb->index);
else
- RESET_BIT (irreds, bb->index);
+ bitmap_clear_bit (irreds, bb->index);
FOR_EACH_EDGE (e, ei, bb->succs)
if (e->flags & EDGE_IRREDUCIBLE_LOOP)
e->flags |= EDGE_ALL_FLAGS + 1;
@@ -1443,13 +1443,13 @@ verify_loop_structure (void)
edge_iterator ei;
if ((bb->flags & BB_IRREDUCIBLE_LOOP)
- && !TEST_BIT (irreds, bb->index))
+ && !bitmap_bit_p (irreds, bb->index))
{
error ("basic block %d should be marked irreducible", bb->index);
err = 1;
}
else if (!(bb->flags & BB_IRREDUCIBLE_LOOP)
- && TEST_BIT (irreds, bb->index))
+ && bitmap_bit_p (irreds, bb->index))
{
error ("basic block %d should not be marked irreducible", bb->index);
err = 1;