Improving semi-static branch prediction by code replication
Andreas Krall · Proceedings of the ACM SIGPLAN Conference on Programming Language Design and Implementation · 1994
Speculative execution on superscalar processors demands substantially better branch prediction than what has been previously available. In this paper we present code replication techniques that improve the accuracy of semi-static branch prediction to a level comparable to dynamic branch prediction schemes. Our technique uses profiling to collect information about the correlation between different branches and about the correlation between the subsequent outcomes of a single branch. Using this information and code replication the outcome of branches is represented in the program state. Our experiments have shown that the misprediction rate can almost be halved while the code size is increased by one third.
Cited by 41 works. doi:10.1145/178243.178252
Authors
References
- Compilers: Principles, Techniques, and Tools
- A study of branch prediction strategies
- Reducing the cost of branches
- Alternative implementations of two-level adaptive branch prediction
- Improving the accuracy of dynamic branch prediction using branch correlation
- Profile guided code positioning
- A comparison of dynamic branch predictors that use two levels of branch history
- Predicting conditional branch directions from previous runs of a program
- Predicting program behavior using real or estimated profiles
- Branch prediction for free