Published September 28, 2026 | Version v1

S2VEC: Compiler-Driven Stream Specialization for Linearized Vectorization

  • 1. ROR icon Instituto de Engenharia de Sistemas e Computadores Investigação e Desenvolvimento
  • 2. ROR icon University of Coimbra
  • 3. Instituto Superior Técnico

Description

The performance benefits of vectorization are often limited by data movement, which remains a dominant bottleneck in modern processors. To mitigate this bottleneck, data stream-based mechanisms have been recently proposed, allowing general-purpose architectures to specialize memory accesses, leading to a reduction of load-to-use latency and loop code optimizations. However, compiler support for stream-based execution remains limited. Accordingly, this paper presents S2VEC, an LLVM-based compilation toolchain that automatically extracts, represents, and optimizes memory access patterns as data streams to enable stream-specialized vector execution. At its core, the Stream-Dataflow IR models computation as a dataflow over parameterized data streams, bridging the gap between conventional compiler infrastructures and stream-oriented architectures. By transforming complex and indirect memory accesses into linearized stream representations, S2VEC simplifies vectorization and expands its applicability to complex memory access patterns. When targeting a RISC-V stream-vector ISA extension, S2VEC demonstrates improved vectorization coverage and produces code comparable to hand-optimized implementations. Conducted evaluations on a gem5-based in-order stream-vector model show an overall speedup of 5.9 × over an equivalently provisioned RVV-based in-order core and 1.5 × over a wide out-of-order processor, demonstrating the performance benefits of compiler-driven stream specialization.

Files

3797905.3807866.pdf

Files (1.2 MB)

Name Size
md5:a9461f7aefecee1e3cd2339ac8801925
1.2 MB Preview Download

Additional details

Funding

European Commission
CHORYS - OPEN AND PROGRAMMABLE ACCELERATORS FOR DATA-INTENSIVE APPLICATIONS IN THE CLOUD 101189551