Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string/aarch64: optimizing SVE routines #65

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jan 24, 2024

  1. string/aarch64: optimizing SVE routines

    Optimized the following SVE string routines: `memcmp`, `strchr`, `strcmp`, `strcpy`, `strlen`, `strncmp`, `strnlen`, `strrchr`.
    
    On Arm Neoverse V1 microarchitectures, `INCx` instructions used to increment the loop offset can cause significant slowdowns. One solution is to hoist the retrieval of the SVE register width out of the loop using `CNTx` in the loop prelude and replace the `INCx` with a simple `ADD`.
    This change should not incur any performance penalty on other SVE-supporting microarchitectures (e.g., Neoverse V2, A64FX, etc...).
    dssgabriel committed Jan 24, 2024
    Configuration menu
    Copy the full SHA
    2f6ea7f View commit details
    Browse the repository at this point in the history