Commit f3cf730b by Jan Hubicka Committed by Jan Hubicka

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
parent 95f4cd58
2010-06-03 Jan Hubicka <jh@suse.cz> 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): * df-problems.c (df_create_unused_note, df_note_bb_compute):
micro-optimize the checks when to add new note. micro-optimize the checks when to add new note.
......
...@@ -1275,10 +1275,9 @@ compute_dominance_frontiers_1 (bitmap *frontiers) ...@@ -1275,10 +1275,9 @@ compute_dominance_frontiers_1 (bitmap *frontiers)
domsb = get_immediate_dominator (CDI_DOMINATORS, b); domsb = get_immediate_dominator (CDI_DOMINATORS, b);
while (runner != domsb) while (runner != domsb)
{ {
if (bitmap_bit_p (frontiers[runner->index], b->index)) if (!bitmap_set_bit (frontiers[runner->index],
b->index))
break; break;
bitmap_set_bit (frontiers[runner->index],
b->index);
runner = get_immediate_dominator (CDI_DOMINATORS, runner = get_immediate_dominator (CDI_DOMINATORS,
runner); runner);
} }
......
...@@ -452,9 +452,8 @@ static void ...@@ -452,9 +452,8 @@ static void
mark_block_for_update (basic_block bb) mark_block_for_update (basic_block bb)
{ {
gcc_assert (blocks_to_update != NULL); 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; return;
bitmap_set_bit (blocks_to_update, bb->index);
initialize_flags_in_bb (bb); initialize_flags_in_bb (bb);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment