This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/53226] memory consumption for heavy template instantiations increased massively
- From: "matz at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 08 May 2012 13:19:42 +0000
- Subject: [Bug c++/53226] memory consumption for heavy template instantiations increased massively
- Auto-submitted: auto-generated
- References: <bug-53226-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53226
--- Comment #13 from Michael Matz <matz at gcc dot gnu.org> 2012-05-08 13:19:42 UTC ---
(In reply to comment #10)
> The other way is to try to get away without immediately removing propagated
> source stmts - the obvious downside is that transforms relying on
> single-use definitions will be confused by those dead uses
Just for completeness: If we would simply NOP out the to-be-removed statements
that would be taken care of. Additionally iterator copies to those
non-removed stmts wouldn't break.