tree-into-ssa.c (mark_block_for_update): Avoid redundant call of bitmap_bit_p.
* tree-into-ssa.c (mark_block_for_update): Avoid redundant call of bitmap_bit_p. * cfganal.c (compute_dominance_frontiers_1): Likewise. From-SVN: r160250
This commit is contained in:
parent
95f4cd5829
commit
f3cf730bdc
|
@ -1,3 +1,9 @@
|
|||
2010-06-03 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* tree-into-ssa.c (mark_block_for_update): Avoid redundant call
|
||||
of bitmap_bit_p.
|
||||
* cfganal.c (compute_dominance_frontiers_1): Likewise.
|
||||
|
||||
2010-06-03 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* df-problems.c (df_create_unused_note, df_note_bb_compute):
|
||||
|
|
|
@ -1275,10 +1275,9 @@ compute_dominance_frontiers_1 (bitmap *frontiers)
|
|||
domsb = get_immediate_dominator (CDI_DOMINATORS, b);
|
||||
while (runner != domsb)
|
||||
{
|
||||
if (bitmap_bit_p (frontiers[runner->index], b->index))
|
||||
if (!bitmap_set_bit (frontiers[runner->index],
|
||||
b->index))
|
||||
break;
|
||||
bitmap_set_bit (frontiers[runner->index],
|
||||
b->index);
|
||||
runner = get_immediate_dominator (CDI_DOMINATORS,
|
||||
runner);
|
||||
}
|
||||
|
|
|
@ -452,9 +452,8 @@ static void
|
|||
mark_block_for_update (basic_block bb)
|
||||
{
|
||||
gcc_assert (blocks_to_update != NULL);
|
||||
if (bitmap_bit_p (blocks_to_update, bb->index))
|
||||
if (!bitmap_set_bit (blocks_to_update, bb->index))
|
||||
return;
|
||||
bitmap_set_bit (blocks_to_update, bb->index);
|
||||
initialize_flags_in_bb (bb);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue