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)
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