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: "jakub 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 12:03:55 +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
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #9 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-05-08 12:03:55 UTC ---
Ugh, remove_prop_source_from_use can remove stmts while prev iterator points to
them. This has been buggy before, but didn't result in endless loop.
I guess instead of using prev/prev_initialized, the loop could gimple_set_uid
(stmt, 0) the stmts it is about to process and gimple_set_uid (stmt, 1) stmts
that don't need to be processed again, then gsi = prev; could be just replaced
by doing gsi_prev (&gsi); enough times to reach start of bb or a stmt with uid
1.