This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/42175] Slow compile and much memory use at -O1
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Jan 2010 17:03:08 -0000
- Subject: [Bug rtl-optimization/42175] Slow compile and much memory use at -O1
- References: <bug-42175-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #7 from rguenth at gcc dot gnu dot org 2010-01-03 17:03 -------
Well, obviously it is because
template<typename T>
gmic& gmic::parse(...)
{
...
while (position<command_line.size() && !is_quit) {
loop body with 4000 lines of code (well, including lots of lines
with a few thousand chars, control flow, loops and function calls)
}
...
}
and DF never was good scaling to this kind of code. Maybe not considering
this outermost loop in LIM will fix the slowness... the limit is currently
10000 basic-blocks, maybe a little large when considering non-innermost
loops.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42175