Improved bitwidth-aware variable packing

Author:

Nandivada V. Krishna1,Barik Rajkishore2

Affiliation:

1. IIT Madras, India

2. Intel Labs, Santa Clara, CA

Abstract

Bitwidth-aware register allocation has caught the attention of researchers aiming to effectively reduce the number of variables spilled into memory. For general-purpose processors, this improves the execution time performance and reduces runtime memory requirements (which in turn helps in the compilation of programs targeted to systems with constrained memory). Additionally, bitwidth-aware register allocation has been effective in reducing power consumption in embedded processors. One of the key components of bitwidth-aware register allocation is the variable packing algorithm that packs multiple narrow-width variables into one physical register. Tallam and Gupta [2003] have proved that optimal variable packing is an NP-complete problem for arbitrary-width variables and have proposed an approximate solution. In this article, we analyze the complexity of the variable packing problem and present three enhancements that improve the overall packing of variables. In particular, the improvements we describe are: (a) Width Static Single Assignment (W-SSA) form representation that splits the live range of a variable into several fixed-width live ranges (W-SSA) variables); (b) PoTR Representation - use of powers-of-two representation for bitwidth information for W-SSA variables. Our empirical results have shown that the associated bit wastage resulting from the overapproximation of the widths of variables to the nearest next power of two is a small fraction compared to the total number of bits in use (≈13%). The main advantage of this representation is that it leads to optimal variable packing in polynomial time; (c) Combined Packing and Coalescing - we discuss the importance of coalescing (combining variables whose live ranges do not interfere) in the context of variable packing and present an iterative algorithm to perform coalescing and packing of W-SSA variables represented in PoTR. Our experimental results show up to 76.00% decrease in the number of variables compared to the number of variables in the input program in Single Static Assignment (SSA) form. This reduction in the number of variables led to a significant reduction in dynamic spilling, packing, and unpacking instructions.

Funder

New Faculty Seed Grant

Indian Institute of Technology Madras

Publisher

Association for Computing Machinery (ACM)

Subject

Hardware and Architecture,Information Systems,Software

Reference23 articles.

1. Alstrup S. Lauridsen P. W. and Thorup M. 1996. Dominators in linear time. DIKU Tech. rep. 35. University of Copenhagen. Alstrup S. Lauridsen P. W. and Thorup M. 1996. Dominators in linear time. DIKU Tech. rep. 35. University of Copenhagen.

2. Optimal spilling for CISC machines with few registers

3. Enhanced Bitwidth-Aware Register Allocation

4. Bitwise Benchmarks. 2013. http://www.cag.lcs.mit.edu/bitwise/bitwise_benchmarks.htm Bitwise Benchmarks. 2013. http://www.cag.lcs.mit.edu/bitwise/bitwise_benchmarks.htm

Cited by 5 articles. 订阅此论文施引文献 订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献

1. Time series data encoding for efficient storage;Proceedings of the VLDB Endowment;2022-06

2. A polynomial time exact solution to the bit-aware register binding problem;Proceedings of the 31st ACM SIGPLAN International Conference on Compiler Construction;2022-03-18

3. A Vector-Length Agnostic Compiler for the Connex-S Accelerator with Scratchpad Memory;ACM Transactions on Embedded Computing Systems;2020-11-30

4. Survey on Combinatorial Register Allocation and Instruction Scheduling;ACM Computing Surveys;2020-05-31

5. Bytewise Register Allocation;Proceedings of the 18th International Workshop on Software and Compilers for Embedded Systems;2015-06

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3