This is the mail archive of the 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 [mainline] speed up comparing enums declared in multiple translation units

On Mar 9, 2004, at 2:50 PM, Andrew Pinski wrote:

On Mar 9, 2004, at 13:29, Fariborz Jahanian wrote:

I had something like this before I did my new patch. It took hour and one-half on my 2G G5 machine.

Note that saving comes not in speeding up type comparison, but avoid repeat comparisons. This is
at least the case in mesa. With my patch, mesa built in 13 minutes with a gcc built with -O0 -g.

I just tried this with -O3 -fdump-tree-all -funroll-loops -mcpu=G5 -fno-PIC and it took me
12 minutes to compile mesa that is with the tree-ssa as of last night, I am going to try it

I don't believe with tree-ssa alone you get the IMA. You need some of the local patches.

with the tree-ssa after my fix. (Note also I suspended the processor during compiling and
was profiling using Shark at the point where it was taking all the time so the times are
higher than they should be).

Your patch does not address the general problem. Problem is in comparing same two type trees
numerous times.

- fariborz

Thanks, Andrew Pinski

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