Register Allocation for Machines with Connected and Partitioned Register Banks

Author
ZhangJunChao
Advisor
ZhangZhaoQing
School
Institute of Computing Technology
Major
Computer System Architecture
Classification
TP333 Memory
Degree
Doctoral dissertation
Year
2005
Downloads
133
Citations
1

Request the full text

Abstract

Register allocation (RA) is a major phase in the compiler backend, which has deep effect on the optimization results of other phases in the backend and hence the performance of processors. To support multicore, multithread, asynchronous I/O and to reduce the port number of register files, some processors are equipped with connected and partitioned register banks. Register allocation on this kind of processors is a big challenge for compilers. We have studied the register allocation problems on this kind of processors. The work described in this thesis has following contributions:1. Propose a register allocation framework for machines with connected and partitioned register banks. Different register banks (classes) are created in the traditional general purpose CPUs for different data types. They are mainly independent such that operands of a certain instruction can only come from one register bank. Therefore, we can apply Chaitin’s approach to each register bank independently. But for those processors with connected and partitioned register banks, each bank is in the same word-length and can hold the same value. In such way, operands of an instruction can be placed in multiple register banks. Then, there come new problems for register allocation, that is, we have to identify the register bank attributes for variables and resolve the potential conflicts between register banks, which makes Chaitin’s approach can not be applied directly. In this thesis, the concept of register bank partition graph is introduced. Then we show how to attack these problems by building, simplify and split the graph.2. Propose three approaches to solving the two source operand conflict problem. We know that the access speed of a register file is inversely proportional to its port number. To improve the speed of a register file, some processors demand that the two source operands of its instruction reside in different register banks, which in turn requires the register allocator to both assign register banks and allocate registers accordingly to variables. We introduce the concept of conflict graph and divide the register allocation problem under such two-source-operand constraints into two sub problems: the bank assignment subproblem and the register allocation subproblem. The former is attacked by 2-coloring the conflict graph and the latter is attacked by K-coloring the interference graph. According to the phase ordering of solving these two subproblems, three approaches are proposed: Pre-RA bank assignment, Post-RA bank assignment and Combined-RA bank assignment.3. Propose a register allocation framework with aggressive live range splitting and optimistic coalescing. A drawback of Chaitin’s approach is that it will spill a live range totally when it is spilled. Our idea is to split live ranges aggressively before allocation. During allocation, we optimistically and aggressively coalesce the splitted live ranges. If an aggregate live range will be spilled, we try to re-split at the cracks and color each split independently. In such way, we gain the option to spill a live range totally, partially or avoid spill by using copy instructions.

Table of contents

Summary List of Figures 4-5 Abstract 5-10 10-12 table directory 12-13 Chapter I Introduction 13-21 1.1 compiler and computer architecture 13 1.2 compiler structure 13-14 1.3 the ORC compiler device 14-16 1.4 Register Allocation and Optimization 16-17 1.5 graph coloring register allocation method 17-18 1.6 papers Overview 18-21 1.6.1 connected to the register set architecture on register allocation 18-19 1.6.2 dual-operand conflict solving technical 19 < br /> 1.6.3 Replication merge with the active region split 19-21 second graph coloring register allocation 21-33 2.1 graph coloring register allocation 21-22 2.2 Chaitin graph coloring register allocation 22-30 2.2.1 Rename 23-24 2.2.2 interference 24 2.2.3 interferogram 24-25 2.2.4 Replication Merge 25-27 2.2.5 overflow 27 2.2 .6 coloring 27-28 2.2.7 Select overflow node 28-30 2.3 other graph coloring register allocation method 30-33 chapters connected to multiple register set architecture on the register allocation 33-55 3.1 independent register set architecture and register allocation algorithm 33-35 3.2 connected to the register bank system structure 35-36 3.3 Intel the IXP series of network processors, 36-39 3.3.1 network processor background 36-37 3.3.2 IXP family of network processor architecture 37-39 3.4 programming environment of the IXP and Microengine on the register allocation of new issues 39-40 3.5 one kind of connected to multiple register set architecture on the register allocation 40-52 3.5.1 to determine the properties of the register set the timing 40-42 3.5.2 preparations: rename and remove the redundant instruction 42 3.5.3 to determine the register set of properties 42-43 3.5.4 solve the register bank conflicts 43-51 3.5.5 set of register allocation 51-52 3.6 other people's work, 52-54 3.7 summarize 54-55 Chapter IV two-operand conflict resolution 55-73 4.1 problem description 55-56 4.2 problem analysis 56-57 4.3 previous work 57-58 4.4 a two-operand conflict solving technical 58-71 4.4.1 before register allocation, the group assigned (Pre-RA), 58 -63 4.4.2 register allocation after the group assigned (Post-RA), 63-70 4.4.3 combined register allocation and group assignment (Combined-RA) 70-71 4.5 summarize 71-73 Chapter merge replication and active regions split 73-85 5.1 Replication Merge 73 - 76 5.2 active region division 76-82 5.2.1 77-78 5.2.2 based on the circulation of the basic block splitting split 78-79 5.2.3 based on the division of the SSA 79-80 5.2.4 split the active regions and debris overflow 80-82 5.3 active region division and Replication Merge combining register allocation 82-84 5.4 summarize 84-85 Chapter VI lab environment with the experimental data 85-104 6.1 Shangri-La: a network programming environment, 85-87 6.2 Shangri-La on the Intel IXP 87-89 6.3 Shangri-La ME compiler register allocator test 89-93 6.4 Replication Merge active regions split register allocation test 93-104 6.4.1 experimental platform and experimental methods 93-96 6.4.2 Experimental results 96-104 Chapter VII of the project to achieve 104-120 7.1 the ORC back-end intermediate said About 104-106 107-112 7.3.1 SSA said 7.2 calculate the depth-first order 106-107 7.3 the ORC backend SSA's implementation profile 108-109 7.3.2 calculation of disposable cutting-edge 109-110 7.3.3 insert the φ function 110-111 7.3.4 the SSA re- named 111-112 7.4 calculate the circulation of information 112-114 7.5 graph coloring register allocation, to achieve 114-120 7.5.1 active regions Rename 114 7.5.2 active variable analysis 114-115 7.5.3 establish interferogram 115-117 7.5.4 merge 117 7.5.5 calculate the overflow cost of 117-118 7.5.6 coloring is 118-120 Conclusion to Chapter VIII 120 - 122 The main contribution of 8.1 of this article 120-121 8.2 Next 121-122 References . 122-125 thank 125-126 of resume 126

Related dissertations

  1. Optimizing compiled code generation
    YangHongBo ·Institute of Computing Technology ·1997 ·Master's thesis
  2. Compiler-based Improvements to Register Allocation Strategies
  3. Research on Software Watermarking Algorithm
    LiJun ·Wuhan University of Technology ·2010 ·Master's thesis
  4. Research and Implementation of Key Technologies for YHFT-Matrix Compiler Based on GCC
  5. Research on Graph Coloring and Applications in Wireless Network Channel Resource Allocation
    ZuoChao ·Hefei University of Technology ·2013 ·Doctoral dissertation
  6. Parallelization of Graph Algorithms
    ChenMeiXian ·Shanghai Jiaotong University ·2013 ·Master's thesis
  7. Research and Implementation of Instruction Optimization Technique Based on QEMU Emulator
  8. Research on Anti-Collision for UHF RFID System
    ChenTaiWei ·Guangdong University of Technology ·2012 ·Master's thesis
  9. Resech on Spectrum Allocation Algorithm in Cognitive Radio Based on Graph Theory
    LiMeng ·Southwest Jiaotong University ·2012 ·Master's thesis
  10. Component Carrier Selection in Lte-Advanced System with Carrier Aggregation
  11. Research on TDMA Scheduling Algorithm in Wireless Sensor Network
    ZhaoYaZuo ·Jilin University ·2013 ·Master's thesis
  12. The Research of Spectrum Allocation Technology in Cognitive Radio Network
    LiuJuan ·Henan University of Technology ·2012 ·Master's thesis
  13. Research on Spectrum Sensing and Transmit Power Allocation in Cognitive Radio Network
    ZhangGaoFei ·Zhejiang University of Technology ·2013 ·Master's thesis
  14. Research on Spectrum Allocation Techology of Cognitive Radio
  15. Research on Spectrum Allocation Algorithm Based on Graph Coloring Theory in Cognitive Radio
    SunYongQiang ·Jilin University ·2012 ·Master's thesis
  16. The Strong Edge Coloring of One Class of Halin Graphs
    LuHuiPing ·East China Normal University ·2013 ·Master's thesis
  17. Polynomial with Coloring the Graph
    YangHongLing ·Liaoning Normal University ·2012 ·Master's thesis
  18. Research on Basic Theory of Graphical Models
    MengXianYong ·Northeast Normal University ·2012 ·Doctoral dissertation
  19. Research on Key Techniques for DSP Compiler
    RenKun ·Zhejiang University ·2007 ·Doctoral dissertation
  20. Research on Compiler Adaption with Machine Learning
    LiuZhangLin ·Institute of Computing Technology ·2006 ·Doctoral dissertation