Title :
Practical structure layout optimization and advice
Author :
Hundt, Robert ; Mannarswamy, Sandya ; Chakrabarti, Dhruva
Author_Institution :
Java, Compilers, & Tools Lab., Hewlett-Packard Co., Cupertino, CA, USA
Abstract :
With the delta between processor clock frequency and memory latency ever increasing and with the standard locality improving transformations maturing, compilers increasingly seek to modify an application´s data layout to improve spatial and temporal locality and to reduce cache miss and page fault penalties. In this paper, we describe a practical implementation of the data layout optimizations structure splitting, structure peeling, structure field reordering and dead field removal, both for profile and non-profile based compilations. We demonstrate significant performance gains, but find that automatic transformations fail for a relatively high number of record types because of legality violations or profitability constraints. Additionally, we find a class of desirable transformations for which the framework cannot provide satisfying results. To address this issue, we complement the automatic transformations with an advisory tool. We reuse the compiler analysis done for automatic transformation and correlate its results with performance data collected during runtime for structure fields, such as data cache misses and latencies. We then use the compiler as a performance analysis and reporting tool and provide insight into how to layout structure types more efficiently.
Keywords :
optimising compilers; program control structures; cache miss; compiler analysis; data layout optimization; dead field removal; nonprofile based compilation; page fault penalty; profile based compilation; reporting tool; spatial locality; structure field reordering; structure peeling; structure splitting; temporal locality; Clocks; Delay; Frequency; Java; Laboratories; Optimizing compilers; Performance analysis; Performance gain; Profitability; Runtime;
Conference_Titel :
Code Generation and Optimization, 2006. CGO 2006. International Symposium on
Print_ISBN :
0-7695-2499-0
DOI :
10.1109/CGO.2006.29