Fully Symbolic Analysis of Loop Locality: Using Imaginary Reuse to Infer Real Performance

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Zhu, Yifan, Pan, Yekai, Ding, Chen, Wu, Yanghui
Format: Preprint
Veröffentlicht: 2026
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866908877902053376
author Zhu, Yifan
Pan, Yekai
Ding, Chen
Wu, Yanghui
author_facet Zhu, Yifan
Pan, Yekai
Ding, Chen
Wu, Yanghui
contents This paper presents a new theory of locality and its compiler support. The theory is fully symbolic and derives locality as polynomials, and the compiler analysis supports affine loop nests. They derive cache-performance scaling in quadratic and reciprocal expressions and are more general and precise than empirical scaling rules. Evaluated on a benchmark suite of 41 scientific kernels and tensor operations, the compiler requires an average of 41 seconds to derive the locality polynomials. After derivation, predicting the cache miss count for any given input size and cache configuration takes less than a millisecond. Across all tests--with and without loop fusion--the accuracy in the data movement prediction is 99.6\%, compared to simulated set-associative L1 data cache.
format Preprint
id arxiv_https___arxiv_org_abs_2603_10196
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Fully Symbolic Analysis of Loop Locality: Using Imaginary Reuse to Infer Real Performance
Zhu, Yifan
Pan, Yekai
Ding, Chen
Wu, Yanghui
Programming Languages
This paper presents a new theory of locality and its compiler support. The theory is fully symbolic and derives locality as polynomials, and the compiler analysis supports affine loop nests. They derive cache-performance scaling in quadratic and reciprocal expressions and are more general and precise than empirical scaling rules. Evaluated on a benchmark suite of 41 scientific kernels and tensor operations, the compiler requires an average of 41 seconds to derive the locality polynomials. After derivation, predicting the cache miss count for any given input size and cache configuration takes less than a millisecond. Across all tests--with and without loop fusion--the accuracy in the data movement prediction is 99.6\%, compared to simulated set-associative L1 data cache.
title Fully Symbolic Analysis of Loop Locality: Using Imaginary Reuse to Infer Real Performance
topic Programming Languages
url https://arxiv.org/abs/2603.10196