GCC Newspaper
NOVEMBER 30, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
aarch64 Performance Win

AArch64 ACLE function table sized for workload, improving registration performance

The ACLE function table size for AArch64 intrinsics is now dynamically derived, reducing reallocations and improving registration performance.

This change optimizes the registration of AArch64 NEON and SVE intrinsics by dynamically sizing the internal function table. Previously, a fixed-size table (1023 slots) frequently caused reallocations and rehashing as thousands of intrinsics were registered. The new approach calculates a size based on the number of functions in the intrinsic group tables, providing a sufficient lower bound and reducing reallocations. This also makes the calculation constexpr, further improving performance for translation units that include these headers, especially during fast compilation modes like -fsyntax-only.

In Details

The aarch64-acle-builtins.c file now calculates the size of the hash table used for registering NEON and SVE intrinsics based on the count_functions of provided group tables, rather than a fixed initial size. This count is made constexpr by ensuring the underlying suffix arrays (type_suffixes, group_suffixes, predication_suffixes) are also constexpr. A calculated size, double the lower bound, is used to preemptively keep the load factor below the threshold for hash table expansion. This reduces the overhead of repeated table reallocations and rehashing during header inclusion, n…

For Context
ACLE
ARM C Language Extensions. A set of extensions to the C language that provide access to ARM-specific features, including SIMD and SVE intrinsics.
NEON
ARM's Advanced SIMD (Single Instruction, Multiple Data) extension, providing vector processing capabilities for multimedia and signal processing.
SVE
Scalable Vector Extension. An ARM architecture extension that provides vector processing with a vector length that can vary at runtime.
intrinsics
Functions that provide a C/C++ interface to specific hardware instructions, allowing developers to leverage low-level processor capabilities like SIMD operations from high-level code.
pragma
A directive to the compiler that provides extra information, often used in GCC to define how built-in functions, like SIMD intrinsics, are implemented and represented internally.
constexpr
A C++ keyword that indicates a variable or function can be evaluated at compile time, enabling optimizations and compile-time computations.
Filed Under: aarch64performanceintrinsicscompiler-optimization