Landing: ad3f5b0855ef

Project / Subsystem

gcc / libcpp

Date

2026-08-05

Author

Kyrylo Tkachov

Commit

ad3f5b0855ef5f3efd6b0a13c29f98cdbf598eb7

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
libcpp
patch_id
—
commit_hash
ad3f5b0855ef5f3efd6b0a13c29f98cdbf598eb7
source_type
github
headline
libcpp: Implement AArch64 SVE2 search_line_fast
tldr
Replaces Neon-based string searching with SVE2 for improved performance on AArch64.
author
Kyrylo Tkachov
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • aarch64
  • • optimization
  • • libcpp
  • • sve2
discussion_id_link
—
bugzilla_pr
—
date
2026-08-05T00:00:00.000Z

This commit introduces an AArch64 SVE2-accelerated function for finding the next newline, carriage return, backslash, or question mark character. The new implementation leverages SVE2’s vector-length agnostic capabilities to perform the search in fewer instructions, offering better scalability on wider processor implementations compared to the previous Neon-based approach. The function is compiled with a +sve2 target attribute and selected at startup via getauxval, ensuring it’s used when available.