Improving the performance of object-oriented languages with dynamic predication of indirect jumps
Improving the performance of object-oriented languages with dynamic predication of indirect jumps
复制标题
通过间接跳转的动态预测提高面向对象语言的性能
DOI:
10.1145/1346281.1346293
复制
发表时间:
2008
期刊:
影响因子:
--
通讯作者:
Y. Patt
中科院分区:
文献类型:
--
作者:
José A. Joao;O. Mutlu;Hyesoon Kim;Rishi Agarwal;Y. Patt
Indirect jump instructions are used to implement increasingly-common programming constructs such as virtual function calls, switch-case statements, jump tables, and interface calls. The performance impact of indirect jumps is likely to increase because indirect jumps with multiple targets are difficult to predict even with specialized hardware.
This paper proposes a new way of handling hard-to-predict indirect jumps: dynamically predicating them. The compiler (static or dynamic) identifies indirect jumps that are suitable for predication along with their control-flow merge (CFM) points. The hardware predicates theinstructions between different targets of the jump and its CFM point if the jump turns out to be hard-to-predict at run time. If the jump would actually have been mispredicted, its dynamic predication eliminates a pipeline flush, thereby improving performance.
Our evaluations show that Dynamic Indirect jump Predication (DIP) improves the performance of a set of object-oriented applications including the Java DaCapo benchmark suite by 37.8% compared to a commonly-used branch target buffer based predictor, while also reducing energy consumption by 24.8%. We compare DIP to three previously proposed indirect jump predictors and find that it provides the best performance and energy-efficiency.