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] Fix computing address costs in ivopts


	The use of target_spill_cost in tree-ssa-loop-ivopts.c looks
questionable to me.  It appears that the algorithm adds the cost of a
spill to many cost computations without any analysis of the need for a
spill.  That might be correct for a register-starved architecture, but
exagerates the costs on architectures without that constraint.

	In the generated assembly for 301.apsi, the current code with the
inflated costs appears to be using more registers, causing more spills and
more increments of the additional IVs.

David


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