Skip to content
Snippets Groups Projects
Commit 8a14140c authored by hubicka's avatar hubicka
Browse files

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@116909 138bc75d-0d04-0410-961f-82ee72b054a4
parent ac24e06b
No related branches found
No related tags found
No related merge requests found
2006-09-13 Jan Hubicka <jh@suse.cz>
* cfganal.c (compute_dominance_frontiers_1): Don't be quadratic.
2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
 
PR rtl-optimization/28243
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment