Skip to content
Commit 3367d8e1 authored by Amrita H S's avatar Amrita H S Committed by Rajalakshmi Srinivasaraghavan
Browse files

powerpc: Optimized strcmp for power10



This patch is based on __strcmp_power9 and __strlen_power10.

Improvements from __strcmp_power9:

    1. Uses new POWER10 instructions
       - This code uses lxvp to decrease contention on load
         by loading 32 bytes per instruction.

    2. Performance implication
       - This version has around 30% better performance on average.
       - Performance regression is seen for a specific combination
         of sizes and alignments. Some of them is observed without
         changes also, while rest may be induced by the patch.

Signed-off-by: default avatarAmrita H S <amritahs@linux.vnet.ibm.com>
Reviewed-by: default avatarPaul E. Murphy <murphyp@linux.ibm.com>
parent 546a1ba6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment