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] |
So I've done a little more work on this. The big surprise is a df_finish call can be quite expensive and given that IRA already takes care of it, the new call in reload1.c was totally unnecessary. With that fix and removal of an unnecessary mapping from hard reg back to an index into SPILL_REGS, this code very close to compile-time neutral.
I've just did some measurements of compilation time on your patch on all_cp2k_gfortran.f90 (> 400K lines of fortran)
without patch 219.20user with only df calls in reload (see patch below) 221.39user with all your patch 221.17user
So 1% of degradation is only because the patch touches DF-data (not scanning insns in finding reload reg as someone can think). Better inheritance might improve compilation time because less insns are generated (although it is hard to say the difference on two last lines is too small).
Baseline (unpatched): 705.57 Lazily DF scan the entire function: 706.66
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |