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

aarch64: Treat SVE as basic NEON instructions in DFA

AArch64 backend treats SVE instructions as NEON for DFA to improve instruction scheduling accuracy.

The AArch64 backend in GCC previously did not set reservation information for Scalable Vector Extension (SVE) instructions, leading to a large number of ‘nothing’ entries in the Data Flow Analysis (DFA) for instruction scheduling. This commit rectifies this by treating all SVE instructions as basic NEON instructions. This change ensures that the DFA can more accurately schedule SVE instructions alongside NEON instructions, improving overall instruction scheduling performance and correctness.

In Details

In the AArch64 backend's instruction scheduler, the Data Flow Analysis (DFA) uses reservation information to model resource contention. SVE instructions, particularly in aarch64.md and related scheduling type files, were not defining reservations, leading to DFA producing many 'nothing' entries. This patch unifies SVE instruction handling with NEON by including SVE in aarch64-sched-types.md and treating them as basic NEON instructions in relevant processor configuration files (e.g., cortex-a53.md). This aims to provide more accurate scheduling by assigning SVE instructions to the genera…

For Context
AArch64
The 64-bit version of the ARM architecture, commonly used in mobile devices, servers, and embedded systems.
SVE
Scalable Vector Extension. An advanced SIMD (Single Instruction, Multiple Data) instruction set extension for the ARM architecture that allows vector registers to have a variable length, adapting to the processor's implementation.
NEON
ARM's advanced SIMD and floating-point extension, providing hardware acceleration for graphics and signal processing tasks.
DFA
Data Flow Analysis. A technique used by compilers to gather information about the possible values of variables and the flow of control within a program. In instruction scheduling, DFA helps determine resource usage and dependencies.
instruction scheduling
The process of reordering machine instructions to improve performance by maximizing instruction-level parallelism and minimizing pipeline stalls, often by grouping instructions that can execute concurrently.
Filed Under: aarch64optimizationscheduling