diff options
author | Jan Hubicka <jh@suse.cz> | 2010-06-04 07:26:56 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-06-04 05:26:56 +0000 |
commit | f3cf730bdcfbb8b9132aa3c0d310407815f28c46 (patch) | |
tree | 97f0ccbfcfad87fb60e43cfc9f0e1664349b3533 /gcc/cfganal.c | |
parent | 95f4cd5829fb78c97758c2b214a5dc884f0af074 (diff) | |
download | gcc-f3cf730bdcfbb8b9132aa3c0d310407815f28c46.tar.gz |
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
Diffstat (limited to 'gcc/cfganal.c')
-rw-r--r-- | gcc/cfganal.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cfganal.c b/gcc/cfganal.c index 5bb23b77adb..35749bd76a2 100644 --- a/gcc/cfganal.c +++ b/gcc/cfganal.c @@ -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); } |