https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124651

--- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note we know the max elements on the work queue.
Also I think we can use VISITED flag of the basic block instead of the bitmap.
I dont know why the bitmap was added here in the first place. Make sure you
clear the visited flag before. 

See
 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93321 on how to use a bb work
list.

Basically your for all is broken, it needs to be while not empty, pop.

Reply via email to