Generating cache hints for improved program efficiency
One of the new extensions in EPIC architectures are cache hints. On each memory instruction, two kinds of hints can be attached: a source cache hint and a target cache hint. The source hint indicates the true latency of the instruction, which is used by the compiler to improve the instruction schedu...
Gespeichert in:
Veröffentlicht in: | Journal of systems architecture 2005-04, Vol.51 (4), p.223-250 |
---|---|
Hauptverfasser: | , |
Format: | Artikel |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | One of the new extensions in EPIC architectures are cache hints. On each memory instruction, two kinds of hints can be attached: a
source cache hint and a
target cache hint. The source hint indicates the true latency of the instruction, which is used by the compiler to improve the instruction schedule. The target hint indicates at which cache levels it is profitable to retain data, allowing to improve cache replacement decisions at run time. A compile-time method is presented which calculates appropriate cache hints. Both kind of hints are based on the locality of the instruction, measured by the
reuse distance metric.
Two alternative methods are discussed. The first one profiles the reuse distance distribution, and selects a
static hint for each instruction. The second method calculates the reuse distance analytically, which allows to generate
dynamic hints, i.e. the best hint for each memory access is calculated at run-time.
The implementation of the static hints scheme in the Open64-compiler for the Itanium processor shows a speedup of 10% on average on a set of pointer-intensive and regular loop-based programs. The analytical approach with dynamic hints was implemented in the FPT-compiler and shows up to 34% reduction in cache misses. |
---|---|
ISSN: | 1383-7621 1873-6165 |
DOI: | 10.1016/j.sysarc.2004.09.004 |