Re: [PATCH] Add debug (slp_tree) and dump infrastructure for this

2020-05-27 Thread Richard Biener
gt; + > > +debug_dump_context::~debug_dump_context () > > +{ > > + set_dump_file (m_saved_file); > > + dump_context::s_current = m_saved; > > + pflags = dump_flags = m_saved_flags; > > + dump_context::get ().refresh_dumps_are_enabled (); > > +} &g

Re: [PATCH] Add debug (slp_tree) and dump infrastructure for this

2020-05-26 Thread David Malcolm via Gcc-patches
On Mon, 2020-05-25 at 16:56 +0200, Richard Biener wrote: > This adds an alternate debug_dump_context similar to the one for > selftests but for interactive debugging routines. This allows > to share code between user-visible dumping via the dump_* API > and those debugging routines. The primary d

[PATCH] Add debug (slp_tree) and dump infrastructure for this

2020-05-25 Thread Richard Biener
This adds an alternate debug_dump_context similar to the one for selftests but for interactive debugging routines. This allows to share code between user-visible dumping via the dump_* API and those debugging routines. The primary driver was SLP node dumping which wasn't accessible from inside a