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:[darwin] fix load of a misaligned double word


On Dec 22, 2003, at 5:27 PM, fj wrote:

This patch is fix the load/stores of double words (ld/std instructions).
The PPC ISA defines them as being always using 4 byte aligned offsets.
So the patch was to fix the output of the right asm but it looks like
a side effect is that it the load and stores of doubles (lfd/stfd), the offset
also get aligned which causes this performance problem.

Yes, we do this for both DImode and DFmode. It causes an extra 'addi' for DFmode.
If this is not necessary we can take it out for DFmode. But this was reviewed by
David and I would like him to comment on it first,

That is a pretty big performance hit on some code.



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