Title :
Continuous trip count profiling for loop optimization in two-phase dynamic binary translators
Author :
Wu, Youfeng ; Breternitz, Mauricio ; Devor, Tevi
Abstract :
Most dynamic binary translators use a two-phase approach to identify and optimize frequently executed code dynamically. In the profiling phase, blocks of code are interpreted or translated without optimization to collect execution frequency information for the blocks. In the optimization phase, frequently executed blocks are grouped into regions and advanced optimizations are applied on them. This approach implicitly assumes that the initial execution of each block is representative of the block throughout its lifetime. In particular, loop optimizations may use the block frequency information to determine loop trip counts to guide their optimizations. If the trip count information is incorrect, however, a loop may be improperly optimized, and program performance suffers. In this paper we show that the initial profile is inadequate at predicting loop trip count information for several integer programs. We propose and evaluate efficient algorithms to continuously profile for trip count. Our results show that accurate trip count information may be obtained with very low overhead (about 0.5%). This enables advanced loop optimizations in dynamic binary translators.
Keywords :
integer programming; optimising compilers; program control structures; program interpreters; block frequency information; code blocks; code execution optimization; continuous trip count profiling; execution frequency information; frequently executed blocks; initial execution; integer programs; loop optimizations; loop trip count information; optimization phase; profiling phase; two-phase dynamic binary translators; Computer architecture; Conferences; Frequency; Instruments; Magnetohydrodynamic power generation; Pipeline processing; Prefetching; Runtime;
Conference_Titel :
Interaction between Compilers and Computer Architectures, 2004. INTERACT-8 2004. Eighth Workshop on
Print_ISBN :
0-7695-2061-8
DOI :
10.1109/INTERA.2004.1299505