Research on SIMD Auto-vectorization Optimization Technologies
- Author
- GaoWei
- Advisor
- ZhaoRongCai
- School
- PLA Information Engineering University
- Major
- Computer Science and Technology
- Classification
- TP314 Compiler,interpreter
- Degree
- Master's thesis
- Year
- 2013
- Downloads
- 1
- Citations
- 0
- SIMD Extension
- across-basic block
- vectorization-method
- loop unroll-jam
- sourceto source translation
- dependence testing
Abstract
With the support for floating-point operations becoming more sophisticated, SIMDextensions are more widely used in high performance computing. SW-VEC is an automaticparallelizing compiler which is designed to support the SIMD infrastructure of SW1600. Itexploits the SIMD data parallelism based on a series of optimization techniques such as programanalysis and reording, so as to generate SIMD codes for SW1600. Considering the exisitance ofvarious applications, it is impossible to introduce a general vectorization to exploit all thepotential parallelism. However, we can achieve it by classifying the applications according totheir characteristic. This thesis carries studies some SIMD auto-vectorization technologies on topof the SW-VEC. The main contributions of this thesis include:1. An across basic block vectorization method. Existing vectorization approaches such asSLP exploit the parallelisim within a single basic block. When coming to loops including severalbasic blocks, exisitng across basic block methods either need specific SIMD sets or are justavailable to special programs. As a result, all of these methods cannot be widely used.Therefore,we present an across basic block vectorization method to enhance the ability ofvectorization exploitation for SW-VEC.2. A method aiming at the vectorization of unnormalizable loops. Using traditionaltechniques, some loops cannot be normalized. In order to make these unnormalizible loopsvectorizable, we transform the loops into normailizible first by applying an improved method. Ifit fails, an improved SLP based method is used to exploit the results after unroll-jaming. Thesemethods improve the ability of vector recognition for SW-VEC significantly.3. A source to source algorithm oriented to dynamic array and intermediate representationcontaining pseudo-register after vectorization.An information-preserved based source to sourcealgorithm is presented to deal with the case that intermediate representation of information isabsent. It can address the translation problems that errors often occur in the past.In experimental sections, we test the source to source algorithm based on informationpreservation and vectorization exploiting approaches with some benchmark suites respectively.when applying all the algorithms proposed in this study, it has been proven that SW-VEC isavailable and effective for the SIMD infrastructure of SW1600. The algorithms proposed in thisstudy have been implemented in SW-VEC system developed by our research group.
Table of contents
Summary 4-5
Abstract 5-6
directory 6-9
catalog 9-11
Table recorded 11-12
first chapter 12-22
1.1 background 12-13
1.1.1 SIMD extensions and applications 12-13
1.1.2 pathways using SIMD technology 13
1.2 topics sources 13-14
1.3 related research 14 - 17
1.3.1 automatic nbsp quantitative methods to the study of the status quo ; research status 14-16
1.3.2 Yuanyuan translation 16-17
1.4 research vectorization 17-20
1.4.1 excavations across basic blocks 20
1.4.2 informality cycle SIMD vectorization 20
1.4. 3 to quantify dynamic arrays and pseudo- translation registers organizational structure 20
1.5 papers 20-22
chapter basic concepts and background knowledge 22 - 36
2.1 single Instruction multiple Data SIMD 22-23
2.2 data dependence analysis 23-25 ??
2.3 cycle conversion technology 25 - 28
2.4 intermediate SW-VEC said whirl 28-31
2.5 SW-VEC the stream of the translation process 31-35
2.6 Summary 35 SIMD -36
Chapter III cross basic block vectorization excavations 36-48
3.1 motivation 36-37
3.2 related research 37 -38
3.3 UJBB vectorization algorithm 38-44
3.3.1 algorithm thinking 38-40
3.3.2 algorithm Description 40-43
3.3.3 Case Study 43-44
3.4 experimental testing and analysis 44-46
3.5 Summary 46-48
Article chapters informality cycle SIMD vectorization 48-62
4.1 motivation 48
4.2 related research 48-51
4.3 NL 's regularization 51-55
4.3.1 can be normalized cycle conditions 51-52
4.3.2 circulation loop condition is a logical expression normalization 52-53
4.3.3 cycling conditions contained increment and decrement operators cycle normalization 53-55
4.3.4 cyclic intermediate representation of DO_WHILE regularization 55
4.4 NL Expand pressed 55-57
4.5 experimental testing and analysis 57-61
4.6 Summary 61-62 <br / > the fifth chapter to quantify the translation and pseudo- dynamic array registers 62-72
5.1 motivation 62
5.2 related research 62-63
translate nbsp 5.3 to quantify dynamic array ; to quantify translate 63-66
5.4 pseudo- register 66-67
5.5 experimental analysis and testing 67-70 <br / > 5.5.1 for testing dynamic array of translation tests 67-69
5.5.2 for the pseudo- register translation 69-70
5.6 Summary 70 - 72
Chapter VI of the test results and analysis 72-76
6.1 test Method 72
6.1.1 test platform 72
6.1 .2 testing purposes 72
6.2 correctness test 72-73
6.2.1 test procedures and instructions 72-73
6.2.2 test results and analysis 73
6.3 performance test 73-75
6.3.1 test procedures and instructions 73-74
6.3.2 test Results and analysis 74-75
6.4 summary 75-76
Chapter VII Conclusion 76-78
7.1 Full Summary 76 <br / > 7.2 Prospects 76-78
References 78-82
Author Biography 82