This is the mail archive of the gcc@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: PR 6394


>>>>> Geoff Keating writes:

Geoff> Hmmm.  It should have been 'GENERAL_OR_FP_REGS, pref GENERAL_REGS',
Geoff> because although FP_REGS is OK, GENERAL_REGS is cheaper (there are
Geoff> fewer moves).  Perhaps a cost macro needs tweaking?

	It depends how the pseudo is being used throughout its entire
lifetime.  While a GPR is cheaper for the address case producing the bad
code, the pseudo may be used in an FP situation (possibly multiple times)
for which GPR is significantly more expensive.

	Either generating a single pseudo was bad or, if the uses are
distinct, the register allocator should have split the lifetime across
multiple registers for the time when each register class is cheaper.

David


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