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]: Enhance rtl-dse to remove unaligned read after writes.


On 7/6/07, Kenneth Zadeck <zadeck@naturalbridge.com> wrote:
These are surprisingly common.  While it is understood that such reads
are cheap (because the value is almost certainly in cache), they do take
space for the address as well as inhibit the general code for removing
redundant stores.

One some targets these reads are very expensive :) (Cell's PowerPC unit). http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30271 shows one place where this patch helps. Though it does not fix up the issue fully as the store is still there and does not pick up the case where we need a shift for some reason.

And I have another case with vector modes this patch does not work but
I have not filed a bug report yet and I will try to file one tomorrow.

Thanks,
Andrew Pinski

PS bootstrapped and tested this patch on powerpc64-linux-gnu with no
regressions and also on built for spu-elf with no regressions.


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