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: PowerPC register and memory cost update


David Edelsohn <dje@watson.ibm.com> writes:

> 	This patch fixes the register and memory cost calculations to be
> more accurate, fixing a Java bootstrap failure caused by stupid register
> allocation choices.

Actually, the failure was because of the special meaning of '2' as a
return from REGISTER_MOVE_COST.

> 	The memory cost change affects performance -- both positive effect
> and negative effect, depending on the testcase.  This could demonstrate
> that the cost model requires more precision or that some other heuristic
> in the compiler is wrong.  It needs more study.

Most likely, it's just that GCC's register allocator isn't as good as
it could be; what happens if you use -fnew-ra?

[The patch itself looks pretty good, thanks!]

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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