Open Kmeakin opened 1 year ago
Expansions of memcmp(s1, s2, n) for static n <= 64 use scalar instructions for comparisons. It should be possible to use SIMD/SVE registers for a more efficient expansion for large values of n. See eg https://github.com/ARM-software/optimized-routines/blob/master/string/aarch64/memcmp.S and https://github.com/ARM-software/optimized-routines/blob/master/string/aarch64/memcmp-sve.S
memcmp(s1, s2, n)
n <= 64
n
@llvm/issue-subscribers-backend-aarch64
Expansions of
memcmp(s1, s2, n)
for staticn <= 64
use scalar instructions for comparisons. It should be possible to use SIMD/SVE registers for a more efficient expansion for large values ofn
. See eg https://github.com/ARM-software/optimized-routines/blob/master/string/aarch64/memcmp.S and https://github.com/ARM-software/optimized-routines/blob/master/string/aarch64/memcmp-sve.S