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: [PATCH]: Cache immediate dominators


>>>>> Jan Hubicka writes:

Jan> I believe this is specific to SSA that is only so heavy user of the
Jan> function.
Jan> Concerning the implementation I was thinkig about slightly different
Jan> approach.  Currently the et_forest is using nodes for basic blocks and
Jan> occurences for each edge to the father in the tree.

Jan> THere is exactly one occurence (or two one for the empty tree?) for each
Jan> non-root node representing the edge to the father.  It should make sense
Jan> to put occurences into the nodes structure itself saving some memory
Jan> allocation overhead and making father lookup constant as well.

	Yes, I do see a 10% compilation speed improvement with the patch
when I used -fssa.  However, when SSA is not used, the compilation speed
is the same or slightly worse with the patch allocating the cache.

David


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