Low level conditional move optimization

  • Artyom Antyipin
  • Attila Góbi
  • Tamás Kozsik

Abstract

The high level optimizations are becoming more and more sophisticated, the importance of low level optimizations should not be underestimated. Due to the changes in the inner architecture of modern processors, some optimization techniques may become more or less effective. Existing techniques need, from time to time, to be reconsidered, and new techniques, targeting these modern architectures, may emerge. Due to the growing instruction pipeline of modern processors, recovering after branch mis-predictions is becoming more expensive, and so avoiding that is becoming more critical. In this paper we introduce a novel approach to branch elimination using conditional move operations, namely the CMOVcc instruction group. The inappropriate use of these instructions may result in sensible performance regression, but in many cases they outperform the sequence of a conditional jump and an unconditional move instruction. Our goal is to analyze the usage of CMOVcc in different contexts on modern processors, and based on these results, propose a technique to automatically decide whether the conditional move or the sequence of a conditional jump and an unconditional move should be performed in a given situation.

Downloads

Download data is not yet available.
Published
2013-01-01
How to Cite
Antyipin, A., Góbi, A., & Kozsik, T. (2013). Low level conditional move optimization. Acta Cybernetica, 21(1), 5-20. https://doi.org/10.14232/actacyb.21.1.2013.2
Section
Regular articles

Most read articles by the same author(s)