Vector vliw architecture graph coloring register grouping method

An allocation method and register technology, applied in the field of code compilation optimization, can solve problems such as limiting degrees of freedom, constructing conflict graphs, poor applicability, etc., and achieve the effect of reducing time pressure, reducing space pressure, and obvious effects

Active Publication Date: 2018-04-20
NAT UNIV OF DEFENSE TECH
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] (3) Construct conflict graph
In this case, the factors affecting the conflict relationship between nodes increase, and the colorability of the conflict graph also becomes complicated
[0013] 2) The conflict graph of the traditional graph coloring method contains allocatable objects and actual registers
At this time, the aforementioned conflicting graph structure increases the time and space pressure on the graph coloring register allocation process, and limits the degrees of freedom for more aggressive register allocation optimization.
[0014] Generally speaking, the traditional graph coloring register allocation method has poor applicability on advanced architectures, and fails to fully consider the characteristics of the register resources of the architecture and the technology that supports instruction-level parallel development, which is not conducive to obtaining high-quality code , it is difficult to give full play to the performance of the hardware

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Vector vliw architecture graph coloring register grouping method
  • Vector vliw architecture graph coloring register grouping method
  • Vector vliw architecture graph coloring register grouping method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0084] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0085] The vector VLIW architecture diagram coloring register group allocation method of the present invention is to abstract multiple groups in various registers in advance according to the requirements of the hardware; when register allocation is performed, the appropriate group is allocated according to the requirements of the instruction template where the candidate is located registers in . The method of the present invention takes the graph coloring method as the basic idea, improves and optimizes the following links on the basis of the typical graph coloring global register allocation method: analysis of register allocation candidates' attributes related to register requirements, conflict relationship analysis, register allocation Merge, Conflict Graph Pruning, Physical Register Assignment.

[0086] The method of the present i...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

A vector VLIW architecture diagram coloring register grouping allocation method comprises the following steps: S1, data model constructing; S2, network constructing and attribute analysis; S3, conflict analysis; S4, register merging: traversing the instructions of all basic blocks, not processing an instruction if the instruction is not a register transfer instruction, or, analyzing and processing the instruction according to the register category and grouping attribute; S5, conflict graph trimming: pressing all the nodes in a conflict graph into one stack according to the requirements of the register category and grouping attribute; and S6, physical register assigning: popping up the nodes in the stack in turn, and assigning a register meeting the requirements of the register category and grouping to a network corresponding to each node when the node is popped up, so as to enable any two nodes in conflict to get different registers. The method has the advantages of simple principle, easy implementation, and realization of effective register resource allocation in the global level of process.

Description

technical field [0001] The invention mainly relates to the technical field of code compilation optimization, in particular to a vector VLIW architecture diagram coloring register grouping method, which forms an intra-procedural global register allocation optimization technology for high-performance RISC processors with instruction conditional execution characteristics. Background technique [0002] Register allocation is one of the important processes to improve the instruction-level parallelism of the code. Its main function is to decide which values ​​should be saved in the registers at each point of program execution to obtain greater benefits, and to decide which value in which register. For most architectures, this is the most important optimization. [0003] Among various register allocation methods, the graph coloring method is a highly efficient method for intra-procedural global register allocation, which can achieve better code quality than other methods. [0004...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/30
CPCG06F9/30105
Inventor 陈书明胡勇华王霁孙海燕扈啸阳柳
Owner NAT UNIV OF DEFENSE TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products