Godson-2 Link Time Optimizer Implementation and Analysis

Author
ChenZuo
Advisor
TangZhiMin
School
Institute of Computing Technology
Major
Computer System Architecture
Classification
TP332 Arithmetic unit and the controller (CPU)
Degree
Master's thesis
Year
2006
Downloads
61
Citations
0

Request the full text

Abstract

Link time optimization is a technique which optimizes the whole program aftercompilation. It overcomes the limitations of traditional compiler by enlarging the optimizingscope from a single function or a module to the whole program, and fully utilizes theinformation only available at link time to exploit more optimizing opportunities. Guided by thelink time optimizer ALTO developed by Arizona University for Alpha, we implement theGLTO (Godson Link Time Optimizer) with consideration of the features of themicroarchitecture and instruction set of Godson-2 Processor. GLTO can achieve a 9.4%performance improvement on the SPEC2000 integer benchmark with reference input onGodson-2C platform and 9.2% on Godson-2E platform on average. This paper explores theeffect and the cause of effect of several major optimizing methods, proposes someimprovements in the architecture design, presents several optimizations according to GodsonISA, proposes specific optimization techniques and analyzes the combination of optimizationoptions on Godson-2E platform, finally presents the differences between GLTO and ALTO.

Table of contents

Abstract 4-8 Figure directories 8-10 table directory 10-11 Chapter Introduction 11-19 < br /> 1.1 link optimization Overview the link 11 1.2 optimized classification 11-14 1.3 link optimization advantages 14-15 1.4 This article related work 15 1.5 contribution of this paper 15-16 the 1.6 paper organization 16-19 second link optimization The principle and 19-23 2.1 link optimization principle 19-20 2.2 and key technologies 20-23 2.2 .1 read 2.2.2 Disassembly 20-21 2.2.3 construct the control flow graph 21-22 2.2.4 optimization analysis 22 2.2.5 program compilation 22 2.2.6 File Information Repair 22-23 Chapter optimization results 23-33 3.1 to eliminate unreachable code 23 3.2 global the constant propagation 23-25 ?? 3.3 process survival analysis 25 - 26 3.4 indirect call is converted to direct calls to to fetch 26-28 3.5 optimization 28-29 3.6 inline optimization 29 <br / > 3.7 based profile analysis and optimization the 29-30 3.8 Optimization Analysis Summary 30-33 Chapter instruction to set defect optimized 33-49 4.1 the branch instruction offset bit overflow the 33-34 4.2 Impact branch instruction offset Overflow factors 34-36 4.3 handle overflow instruction two simple strategy the 36-38 4.3.1 jump directly (direct jumping) strategy 36-37 4.3.2 remote jump (distant jumping) strategy 37 -38 4.4 the bidirectional code rearrangement algorithm (BCL) 38-44 4.4.1 link basic block (basic block chaining) 39 4.4.2 build the hyperlinks (super chain forming) 39-40 4.4.3 row cloth hyperlink (super chain layout) 40-44 4.5 of performance analysis and comparison 44 -49 Chapter the Loongson 2E platform optimized 49-55 5.1 Move Condition Optimization the 49-51 5.1.1 basic algorithm 49 -50 5.1.2 Performance analysis and comparison 50-51 5.2 2E the platform optimization options effectiveness analysis 51-52 5.3 2E platform to optimize the combination of options 52-55 Chapter GLTO with ALTO comparative analysis 55-59 6.1 to optimize the effect of differences in analysis 55-57 6.2 optimization strategy differences 57-59 Chapter VII Conclusion 59-61 7.1 This work summarizes 59 the 7.2 further research direction 59-61 the References 61-63 Acknowledgements 63-64 of resume 64-