summaryrefslogtreecommitdiff
path: root/gcc/cfganal.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-06-04 07:26:56 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-06-04 05:26:56 +0000
commitf3cf730bdcfbb8b9132aa3c0d310407815f28c46 (patch)
tree97f0ccbfcfad87fb60e43cfc9f0e1664349b3533 /gcc/cfganal.c
parent95f4cd5829fb78c97758c2b214a5dc884f0af074 (diff)
downloadgcc-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.c5
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);
}