Region-based compilation and stack register optimization

Author
Liu
Advisor
ZhangZhaoQing
School
Institute of Computing Technology
Major
Computer System Architecture
Classification
TP314 Compiler,interpreter
Degree
Doctoral dissertation
Year
2003
Downloads
140
Citations
2

Request the full text

Abstract

In order to improve instruction level parallelism,compilers tend to adopt more aggressive and complex optimization algorithms. But too complex and aggressive optimization algorithm will cost much compilation time and resources. In order to reduce compilation time and provide researchers a flexible research platform, on the meanwhile, prove the compilation performance,we proposed a flexible region formation infrastructure. In order to solve this problem that RSE cost is very serious for some programs, we proposed a effective algorithm to reduce RSE cost and improve overall execution performance.The main contributions of thesis are:1 We propose a new region formation infrastructure. This region formation infrastructure is hierarchical. Size and shape of regions could be controlled flexibly by setting specific parameters. Every basic block in the control flow is contained by at least one region. Regions are organized in a tree.2 We propose a Single Entry Multiple Exits region formation algorithm with max tail duplicate ratio and min exit probability constraints. Experiments show this algorithm is very effective in forming regions which could provide enough optimization opportunities for different optimization phases.3 We propose the attributes of region. Region attributes could be set,observed,maintained and deleted across different optimization phases. These attributes are very important for guarantee of the optimization effects.4 We propose a RSE cost model, and based on this cost model, we proposed the inter-procedural stacked register quota assignment problem.5 We propose a inter-procedural stacked register allocation algorithm,and it is implemented in ORC compiler.This algorithm could reduce the overall spill-to-memory access time so as to improve the program execution performance. This algorithm is based on the cost model proposed by us.6 We propose a method to decide whether allocating a stacked register to rematerializable live ranges. For a rematerializable live ranges, if the total execution frequency of the basic blocks where it is defined is greater then the total execution frequency of the basic blocks where it is used, then we need not allocate a register to it because spill could move those define to the basic blocks where it is used,therefore reduce the execution frequency of loads.

Table of contents

Abstract 3-5 ABSTRACT 5-11 Chapter Introduction 11-17 1.1 instruction-level parallelism 11-14 1.1.1 very long instruction word architecture 11 1.1.2 the EPIC system structure 11-12 1.1.3 some of the hardware technology to support instruction-level parallelism 12-13 1.1.4 instruction-level parallel compiler technology 13-14 1.2 of this article contribution 14-16 1.3 articles of organization 16-17 the second chapter of the IA64 system structure and ORC compiler Overview 17-22 2.1 the IA64 system structure 17-19 2.2 the ORC open-source compiler 19-22 in the third chapter of the ORC compiler back-end optimization 22-33 3.1 contour information Cartridge 23 <br / > 3.2 condition conversion 23-25 ?? 3.3 predicate analysis 25-27 3.4 instruction scheduling 27-28 3.5 instruction speculation 28-30 3.5.1 Control speculation 28-29 3.5.2 Data speculation 29 3.5.3 composite speculative 29-30 3.5.4 restore code generation 30 3.5.5 waterfall speculative 30 3.6 machine model 30-33 3.6 .1 machine description 31 3.6.2 micro scheduling 31-33 Chapter IV regional tectonic 33-64 4.1 regional tectonic purpose and significance of 33-34 4.2 need to consider the regional tectonic 34-35 4.3 of our regional tectonic characteristics 35-36 4.4 definition and structure of the region 36-37 4.5 region, the control flow graph structure 37 4.6 Regional structure 37-38 4.7 region type 38-40 4.7.1 circulation area 38-39 4.7.2 abnormal regional 39 4.7.3 single-input multiple- the region 39-40 4.7.4 Multi-input multiple-output area 40 4.8 region property 40-42 4.8.1 boundary does not change (Boundary Persistent) 41 4.8.2 not be altered (the Rigid).; 41 4.8.3 can not be re-optimization (No Further Optimization) 41 <br / > 4.8.4 is not available across regional boundaries to optimize (No Optimization Across Region Boundary) 41-42 4.9 region construction algorithm 42-53 4.9.1 loop region and non- normal region, the construction algorithm of multi-entrance multi-regional exports 42-50 4.9.1.1 key edge elimination algorithm 43-44 4.9.1.2 the Interval Construction and handling of 44-46 4.9.1.3 Multi-input multiple-out region construction algorithm 46-50 4.9.2 SEME region construction algorithm 50-53 4.10 Last copy Last copy control flow graph execution frequency information to maintain 53 4.11 regional construction algorithm example 53-57 4.12 regional validation 57 - 59 4.12.1 region attribute validation 58-59 4.12.2 error report (ring to check whether the single-input multiple-output region) 59 <br / > 4.13 traverse and read the property 59-60 4.14 region rely on and support structure on the back-end optimization phase 60-62 4.14.1 for instructions scheduling support 61 4.14.2 support for predicate analysis of the conditions for conversion support 61 4.14.3 61-62 4.15 related Experimental results based on regional improvement work 62-64 Chapter 64-71 5.1 in the ORC to achieve region-based optimization techniques 64-65 5.2 Results and evaluation 65-71 the Chapter VI of the stack register optimization problems and solve 71-92 6.1 Introduction 71-72 6.2 register stack introduced 72-73 6.3 of the RSE cost model and analysis 73-82 6.3.1 RSE overflow / the cost of backfilling 73-74 6.3.2 the ORC in the registers allocation algorithm for a brief 74-75 6.3.3 Analysis 75-79 6.3.4 illustrative example 79-82 6.3.5 stack register allocation of quotas proposed 82 6.4 resolution framework and algorithms 82-87 6.4.1 Algorithm 83-85 6.4.2 the process of quota allocation algorithm's time complexity 85-86 6.4.3 instance 86-87 6.5 Further analysis procedure memory allocation algorithm 87-89 6.5.1 register to use a price Simplify algorithm.; 88 6.5.2 allocation register or not optimized 88-89 6.6 international 89-92 experimental results and analysis of Chapter VII of the process stack register allocation algorithm 92 -98 7.1 lab environment 92 7.2 Experimental results 92-94 7.3 results analysis 94-98 Chapter VIII Conclusion and future work 98-104 8.1 summarize 98-99 8.2 future work and prospects 99-104 8.2.1 based on further work of the regional tectonic 99-101 8.2.2 stack further register optimization 101-104 References 104-113 thank 113-114 of resume 114-115

Related dissertations

  1. The Study of Regional Capital Market Development of:Lunan Economic Belt Abstract
    GaoLi ·Ocean University of China ·2013 ·Master's thesis
  2. DEA-based Evaluation on the Efficiency of Regional Tourism Industry
    SunZuo ·China University of Geosciences ·2013 ·Master's thesis
  3. SWOT Research on Development of County Economy in Hailin City
    TianXiaoFeng ·Jilin University ·2013 ·Master's thesis
  4. Regional Differences Empirical Research in the Relation between Consumption and Economic Growth in China
  5. Research on adaptive threshold segmentation and structure light image decoding method based on illumination field
    LuZheng ·Zhejiang Sci-Tech University ·2012 ·Master's thesis
  6. Analysis on Faculty Training Policy of Vocational Education in Hunan Province Based on Original Perspective
    ChenYong ·Hunan Agricultural University ·2013 ·Master's thesis
  7. The Research of Primary Education Regional Equalization Which Based on Output Effectiveness in Chengdu
    YuJiaJia ·Sichuan Agricultural University ·2013 ·Master's thesis
  8. Research on kindergarten regional activity
    PanYuTong ·Liaoning Normal University ·2013 ·Master's thesis
  9. Investigation on infant development cooperation level
    DongYongFang ·Tianjin Normal University ·2013 ·Master's thesis
  10. Regional Education of Modernization Index System
    HuXiaoBo ·Ningbo University ·2013 ·Master's thesis
  11. Research on the equalization of the compulsory education in Yunnan Province Regional
    HuZuo ·Yunnan University of Finance ·2013 ·Master's thesis
  12. Study on the Regional and Urban-rural Efficiencydifferenceof Basic Public Service of China
    LiuYu ·China Agricultural University ·2014 ·Doctoral dissertation
  13. The Research of New Regionalism Theory and Its Implication
    SunZuoMan ·Central South University ·2013 ·Master's thesis
  14. The Research of Arctic Geopolitical Strategic Status
    HeGuangQiang ·Central China Normal University ·2014 ·Master's thesis
  15. Amdo Folk Dance Sport Featured Research
    YangFei ·Hebei Normal ·2013 ·Master's thesis
  16. Preliminary Study on Planning of Flood Control Regulation Line for Medium or Small Rivers
    WangLiLi ·Agricultural University of Hebei ·2013 ·Master's thesis
  17. Estimates of Anthropogenic Methane Emissions in Nanjing and the Yangtze River Delta
  18. Regulation of Gravitropism in Arabidopsis by OsIAA9
  19. Research on the Effect of Regional Venture Capital to Technology Innovation in China
    ChenZhi ·Shanxi University of Finance ·2010 ·Doctoral dissertation
  20. The Analysis of China’s Regional Differences in Life Insurance Consumption and Its Influential Factors
    LiangZuo ·Nanjing Agricultural College ·2011 ·Master's thesis