[PATCH] PPC optimize memset for POWER6

Steven Munroe munroesj@us.ibm.com
Tue Jul 10 22:35:00 GMT 2007


The current ./power6/memset.S implementations are based on the power5
design which hits a number of power6 hazards includes instruction cache
alignment, branch miss-predicts, ans store queue overrun. The attached
patch is a major rewrite of the ./powerpc32/power6/memset.S and
./powerpc64/power6/memset.S to address these issues for lengths 32-bytes
and larger. These implementations uses agressive loop unrolling to favor
branch fall-through (not taken) and avoid I cache refetch due to branch
miss-predict.

the performance improvement over this interval range from 40% to 200%

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ppc-cpuP6-20070707.txt
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20070710/63347224/attachment.txt>


More information about the Libc-alpha mailing list