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

Share the ACLE function attribute lists

ACLE function attribute lists for ARM NEON and SVE pragmas are now shared to reduce redundant computations and improve performance.

This commit optimizes the handling of ARM C Language Extension (ACLE) function attributes for NEON and SVE pragmas by sharing attribute lists. Instead of generating these lists repeatedly for each function declaration, GCC now builds distinct lists once, caches them, and reuses them. This significantly reduces compiler runtime, particularly for files including both ARM NEON and SVE headers.

In Details

Within the AArch64 backend, config/aarch64/aarch64-acle-builtins.cc, this change introduces an attribute caching mechanism. The function_builder::get_attributes function now computes and caches attribute lists based on streaming mode, global state access, trap behavior, and ZA/ZT0 state. This optimization addresses redundant work by interned identifiers and consed nodes, improving cc1 performance, especially when processing files that include both ARM NEON and SVE headers. The middle-end's existing attribute list sharing is leveraged, and the change is idempotent due to attribute list a…

For Context
ACLE
ARM C Language Extensions. A set of pragmas and built-in functions that allow C/C++ developers to access ARM-specific features like NEON and SVE.
NEON
ARM's Advanced SIMD (Single Instruction, Multiple Data) extension, providing vector processing capabilities.
SVE
Scalable Vector Extension. An ARM architecture feature providing vector processing with a vector length that can vary at runtime.
pragmas
Compiler directives that provide additional information to the compiler, often used for optimization or to enable specific language features.
attribute lists
Data structures that store attributes associated with declarations, such as function attributes or variable attributes.
interning
An optimization technique where identical string literals or other data are stored in a single location, and all references point to that location.
Filed Under: aarch64compiler optimizationACLENEONSVE