Title :
Short-Circuit Compiler Transformation: Optimizing Conditional Blocks
Author :
Ghodrat, Mohammad Ali ; Givargis, Tony ; Nicolau, Alex
Author_Institution :
Dept. of Comput. Sci. Center for Embedded Comput. Syst., California Univ., Irvine, CA
Abstract :
We present the short-circuit code transformation technique, intended for embedded compilers. The transformation technique optimizes conditional blocks in high-level programs. Specifically, the transformation takes advantage of the fact that the Boolean value of the conditional expression, determining the true/false paths, can be statically analyzed to determine cases when one or the other of the true/false paths are guaranteed to execute. In such cases, code is generated to bypass the evaluation of the conditional expression. In instances when the bypass code is faster to evaluate than the conditional expression, a net performance gain is obtained. Our experiments with the Mediabench applications show that the short-circuit transformation yields a an average of 35.1% improvement in execution time for SPARC and an average of 36.3% improvement in execution time for ARM. We also measured an average of 36.4% reduction in power consumption for ARM.
Keywords :
Boolean algebra; embedded systems; high level synthesis; program compilers; ARM; Boolean value; code transformation; conditional blocks; embedded compilers; high level programs; short circuit compiler; Embedded computing; Embedded software; Embedded system; Energy consumption; Optimizing compilers; Performance gain; Power measurement; Software performance; Software systems; Time to market;
Conference_Titel :
Design Automation Conference, 2007. ASP-DAC '07. Asia and South Pacific
Conference_Location :
Yokohama
Print_ISBN :
1-4244-0629-3
Electronic_ISBN :
1-4244-0630-7
DOI :
10.1109/ASPDAC.2007.358036