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: [tree-ssa]: Reduce size of phi nodes by 31 bits


On Wed, Dec 31, 2003 at 04:06:54PM -0800, Devang Patel wrote:
> In my measurement 582 is max phi arg count during compiler bootstrap.

What we need is worst case ever.  I'm having trouble locating
the bugzilla entry that I'm thinking of -- the test case is a
27+ MB file, one function, one enormous switch statement.  It's
the largest input function I've ever seen.  (Beware, last time
I checked, it took 2.7MB of ram to compile, at -O0.)

One could probably guess that the arity of the join at the end
of that switch statement is < 27M, since it's hard to imagine
how you could generate more than one switch exit per byte of
source, which probably means it's moderately safe to have
num_args and capacity use only 24 bits apiece.

But again, that's something we'd want to check, and generate
a "sorry" if you overflow, rather than do something truely
ugly and undebuggable later.


r~


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