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]

Re: Fix PR 20100, PR 20115. Remove pass_maybe_create_global_var.



On Feb 23, 2005, at 12:03 AM, Diego Novillo wrote:
I also noticed that in some situations we were creating
.GLOBAL_VAR unnecessarily.  The problem is that once we create
.GLOBAL_VAR, we are stuck with it (this is a limitation that we
should remove, but removing symbols from referenced_vars may be
too intrusive for 4.0).

We were creating .GLOBAL_VAR before comptuing aliases to avoid
the initial SSA creation to deal with too many virtual operands.
So, we do an IL scan, and if we find a lot of function calls, we
would create .GLOBAL_VAR.  A better solution is to just not
bother adding virtual operands at call sites if aliases have not
been computed.  This gives us a minor speedup in operand
scanning and SSA rewriting.

Note that pass_maybe_create_global_var was added to speed up the compiler. See PR 15855. I think you just slowed down this testcase again.

-- Pinski


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]