OSDN Git Service

s390: optimize memset implementation
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 4 Oct 2017 17:27:08 +0000 (19:27 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Mon, 9 Oct 2017 09:18:07 +0000 (11:18 +0200)
commit993fef95b9c1858894d14b221e04f1161e4f4ed9
treeb0c768f991a44cf09d660c322fec49ce36753742
parent41879ff65d8b025eace44610be0b07f678fb3224
s390: optimize memset implementation

Like for the memset16/32/64 variants avoid that subsequent mvc
instructions depend on each other since that might have negative
performance impacts.

This patch is currently hardly relevant since at least gcc 7.1
generates only inline memset code and not a single memset call.
However there is no reason to not provide an optimized version
just in case gcc generates memset calls again, like it did in
the past.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/lib/mem.S