Skip to content

Commit

Permalink
* cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116909 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
hubicka committed Sep 12, 2006
1 parent ac24e06 commit 8a14140
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2006-09-13 Jan Hubicka <[email protected]>

* cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.

2006-09-12 Eric Botcazou <[email protected]>

PR rtl-optimization/28243
Expand Down
2 changes: 2 additions & 0 deletions gcc/cfganal.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,6 +1054,8 @@ 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))
break;
bitmap_set_bit (frontiers[runner->index],
b->index);
runner = get_immediate_dominator (CDI_DOMINATORS,
Expand Down

0 comments on commit 8a14140

Please sign in to comment.