Back to search

University of Alberta

Region-Based Data Layout Transformations: Compiler Techniques and Applications

Abstract

dc:description.abstract

Region-based data layout transformations are compiler optimizations that restructure data layouts via data copying. They are named region-based because they only affect specific code regions, such as loops. These transformations improve cache and translation look-aside buffer (TLB) locality, allow better compiler code generation, and work synergistically with loop transformations. This thesis begins by exploring why region-based data layout transformations are not present in mainstream compilers, unlike loop transformations such as tiling. It focuses on data packing, an essential optimization in high-performance General Matrix-Matrix Multiplication (GEMM), which remains largely unsupported in compilers. The first contribution is GPAT, a Generalized Packing Analysis and Transformation that applies packing, when beneficial, to a generic input loop nest. Implemented in the Affine dialect of MLIR and evaluated on the PolyBench/C suite, GPAT generalizes packing beyond GEMM, obtaining significant speedups over state-of-the-art loop optimizers like Pluto and Polly. While GPAT targets dense tensor computations, the second contribution, RebaseDL, extends its core ideas to data structures. Structure splitting and field reordering typically reorganize data structures globally and often depend on profiling to guide their transformations. RebaseDL is a static analysis that identifies profitable region-based structure splitting and field reordering based on data reuse, enabling improved locality without global restructuring. Implemented in LLVM, RebaseDL detects multiple transformation opportunities in the SPEC CPU benchmark suite, obtaining up to 1.34x speedups in targeted regions. The third contribution introduces ZConv, a novel algorithm for convolutional layers of convolutional neural networks, which demonstrates an indirect application of packing. A common approach to optimize convolution is to reduce the operation to GEMM using Image-to-Column (Im2col), which may require data copying and data duplication. ZConv is a new formulation that reduces convolution to GEMM for CPU architectures using zero copies, by giving non-contiguous matrix inputs to GEMM. Data packing employed in GEMM allows high-performance execution even in the presence of such inputs. When integrated into PyTorch, ZConv yields up to 1.8x speedups in end-to-end vision model inference.

Degree

thesis:*
Name thesis:degree_name
Doctor of Philosophy
Level thesis:degree_level
Doctoral
Grantor
University of Alberta
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Salvador Rohwedder, Caio
Advisors dc:contributor.advisor
  • Amaral, José Nelson (Computing Science)
  • Labegalini de Carvalho, João Paulo (Computing Science)

Subjects

dc:subject × 5

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/83240

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

Salvador Rohwedder, Caio. Region-Based Data Layout Transformations: Compiler Techniques and Applications. Doctoral thesis, University of Alberta, 2025. https://doi.org/10.7939/83240