Fusion-based register allocation

Author:

Lueh Guei-Yuan1,Gross Thomas1,Adl-Tabatabai Ali-Reza1

Affiliation:

1. Carnegie Mellon Univ., Pittsburgh, PA

Abstract

The register allocation phase of a compiler maps live ranges of a program to registers. If there are more candidates than there are physical registers, the register allocator must spill a live range (the home location is in memory) or split a live range (the live range occupies multiple locations). One of the challenges for a register allocator is to deal with spilling and splitting together. Fusion-based register allocation uses the structure of the program to make splitting and spilling decisions, with the goal to move overhead operations to infrequently executed parts of a program. The basic idea of fusion-based register allocation is to build up the interference graph. Starting with some base region (e.g., a basic block, a loop), the register allocator adds basic blocks to the region and incrementallly builds the interference graph. When there are more live ranges than registers, the register allocator selects live ranges to split; these live ranges are split along the edge that was most recently added to the region. This article describes fusion-based register allocation in detail and compares it with other approaches to register allocation. For programs from the SPEC92 suite, fusion-based register allocation can improve the execution time (of optimized programs, for the MIPS architecture) by up to 8.4% over Chaitin-style register allocation.

Publisher

Association for Computing Machinery (ACM)

Subject

Software

Reference34 articles.

1. Code reuse in an optimizing compiler

2. Spill code minimization techniques for optimizing compliers

3. Briggs P. 1992. Register allocation via graph coloring. Ph.D. thesis Rice University. Briggs P. 1992. Register allocation via graph coloring. Ph.D. thesis Rice University.

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

1. A Comparative Study of Register Allocation Algorithms;ICT Analysis and Applications;2023

2. Register Allocation;SSA-based Compiler Design;2021-06-12

3. Register optimizations for stencils on GPUs;ACM SIGPLAN Notices;2018-03-23

4. Register allocation for Intel processor graphics;Proceedings of the 2018 International Symposium on Code Generation and Optimization;2018-02-24

5. Register optimizations for stencils on GPUs;Proceedings of the 23rd ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming;2018-02-10

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

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

www.globalauthorid.com

TOP

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