Vol.40, No.1, 2022, pp.273-286, doi:10.32604/csse.2022.019106
OPEN ACCESS
ARTICLE
Timing Error Aware Register Allocation in TS
  • Sheng Xiao1,2,*, Jing He3, Xi Yang4, Heng Zhou1, Yujie Yuan1
1 Information Science and Engineering Department, Hunan First Normal University, Changsha, 410205, China
2 Computer School, Wuhan University, Wuhan, 430072, China
3 Department of Computer Science, Kennesaw State University, Kennesaw, 30144-5588, USA
4 Hunan Guangyi Experimental Middle School, Changsha, 410205, China
* Corresponding Author: Sheng Xiao. Email:
Received 02 April 2021; Accepted 13 May 2021; Issue published 26 August 2021
Abstract
Timing speculative (TS) architecture is promising for improving the energy efficiency of microprocessors. Error recovery units, designed for tolerating occasional timing errors, have been used to support a wider range of voltage scaling, therefore to achieve a better energy efficiency. More specifically, the timing error rate, influenced mainly by data forwarding, is the bottleneck for voltage down-scaling in TS processors. In this paper, a new Timing Error Aware Register Allocation method is proposed. First, we designed the Dependency aware Interference Graph (DIG) construction to get the information of Read after Write (RAW) in programs. To build the construction, we get the disassemble code as input and suppose that there are unlimited registers, the same way as so-called virtual registers in many compilers. Then we change the disassemble codes to the SSA form for each basic block to make sure the registers are defined only once. Based on the DIG construction, registers were reallocated to eliminate the timing error, by loosening the RAW dependencies. We construct the DIG for each function of the program and sort the edge of DIG by an increasing weight order. Since a smaller weighted-edge value means that its owner nodes have more frequent access in instruction flows, we expect it in different registers with no read-write dependency. At the same time, we make sure that there are no additional new spill codes emerging in our algorithm to minimize the rate of spill code. A high rate of spill code will not only decrease the performance of the system but also increase the unexpected read-write dependency. Next, we reallocate the registers by weight order in turn to loosen the RAW dependencies. Furthermore, we use the NOP operation to pad the instructions with a minimal distance value of 2. Experiment results showed that the average distance of RAW dependencies was increased by over 20%.
Keywords
Timing error; timing speculative architecture; register allocation; energy efficiency
Cite This Article
S. Xiao, J. He, X. Yang, H. Zhou and Y. Yuan, "Timing error aware register allocation in ts," Computer Systems Science and Engineering, vol. 40, no.1, pp. 273–286, 2022.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.