This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Hunting for the "we're getting slower" bits I noticed that TODO_remove_unused_locals is a big part of execute_function_todo (and accounts for 1% of compile-time of ac.f90). The following patch removes most of the remove_unused_locals calls based on the fact that with anonymous SSA names now available we should never create new locals (wishful thinking of course ...)
and the important places to remove unused stuff are driven by 1) avoid creating yet another copy of the unused stuff, thus do it before inlining, on the callee; 2) avoid pinning unused memory while we operate on other function bodies, thus, do it at the end of non-IPA pass pipelines
In the end this asks for more explicit placement and thus a real pass ... but the following should be enough as a RFC and be good enough for 4.8.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |