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

--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Filip Kastl from comment #7)
> (In reply to Andrew Pinski from comment #2)
> > Note I also don't like how dead_stmts is a static variable either but that
> > would be for another change.
> 
> How should I get rid of the static variable? Maybe wrap the copy propagation
> algorithm in a class as I wrapped the SCC finding algorithm?

Yes that would most likely be the way I would do it. and then
init_sccopy/finalize_sccopy becomes constructors/deconstructors ...

Reply via email to