powerpc: Fix performance issues of strcmp power10
authorAmrita H S <amritahs@linux.vnet.ibm.com>
Fri, 15 Dec 2023 16:48:17 +0000 (11:48 -0500)
committerRajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>
Fri, 15 Dec 2023 22:42:40 +0000 (16:42 -0600)
commit90bcc8721ef82b7378d2b080141228660e862d56
tree56ab58803df1f6f68f108dfebc977235376cd89b
parent73d92c4b7375858b2decd543841e16b17c78f32d
powerpc: Fix performance issues of strcmp power10

Current implementation of strcmp for power10 has
performance regression for multiple small sizes
and alignment combination.

Most of these performance issues are fixed by this
patch. The compare loop is unrolled and page crosses
of unrolled loop is handled.

Thanks to Paul E. Murphy for helping in fixing the
performance issues.

Signed-off-by: Amrita H S <amritahs@linux.vnet.ibm.com>
Co-Authored-By: Paul E. Murphy <murphyp@linux.ibm.com>
Reviewed-by: Rajalakshmi Srinivasaraghavan <rajis@linux.ibm.com>
sysdeps/powerpc/powerpc64/le/power10/strcmp.S