Back to search

University of Alberta

Utilizing Idle Processor Resources in LLVM Vectorization via Scalar Interpolation

Abstract

dc:description.abstract

Loop vectorization is a well-studied technique in compiler development that utilizes vector units of the underlying processor to improve the performance of the loop. Loop vectorization is widely adopted in production-level compilers to leverage the processor SIMD capacities. Traditionally, most compilers convert all iterations of a vectorizable loop into vector operations to decrease processing time, as the throughput of vector operations is higher than their scalar counterparts. Yet with the advent of new processor architectures especially in out-of-order superScalar architectures, vectorizing the entire loop might not saturate the computation capacity of the processor as the processor has several pipelines, which can be fed by different instructions at the same clock cycle. Therefore, current vectorization techniques fall short of realizing the whole computation capacity of the processor and may lead to generating sub-optimal code in terms of performance. To mitigate this issue, this thesis proposes Scalar Interpolation, a technique that inserts scalar operations into vectorized loops to increase the utilization in processors with distinct pipelines for scalar and vector processing. Scalar interpolation inserts scalar operations for an entire iteration of the sequential loop to avoid data movements between vector and scalar registers. A challenge in this technique was to devise an approach to guide the compiler’s decision to interpolate scalar operations in a loop. We developed a static cost model and an auto-tuning approach to dynamically discover a sweet spot for scalar interpolation in a loop. A performance study on an LLVM-based prototype reveals speedups of up to 30% on Intel Xeon (x86) with static analysis of the cost model, and 43% on Kunpeng-920 (AArch64) with auto-tuning. This thesis also explores the usability of scalar interpolation in real-world programs by using a crawler to find opportunities for scalar interpolation in popular github repositories.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Grantor
University of Alberta
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Ghanbari, Reza
Advisor dc:contributor.advisor
  • Amaral, Jose Nelson (Computing Science)

Subjects

dc:subject × 3

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/81813

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Ghanbari, Reza. Utilizing Idle Processor Resources in LLVM Vectorization via Scalar Interpolation. Master's thesis, University of Alberta, 2025. https://doi.org/10.7939/81813