Activity analysis method and system for fine-grained variables in multi-beat instruction
A kind of activity analysis and fine-grained technology, applied in the direction of program code conversion, instrument, calculation, etc., can solve the problems of complex judgment process and complex instruction arrangement, and achieve the effect of wide application range
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0041] The intermediate language code generated by the compiler, the partially converted assembly code, or the assembly code that needs to be optimized is divided into basic blocks, and the active interval is also relative to the interval in the basic block. In addition to the start and end basic blocks, other basic blocks have exit and entry basic blocks, according to which variables that are retained and need to be preserved can be obtained. In the context of multiple beats in the instruction execution cycle, when analyzing each instruction, compare the operation mode and effective time of the current instruction and the last operation instruction on the variable, and cannot simply be retained based on "read after write" and "read after read". Variable liveness, remove variable liveness in case of "write after read" and "write after write".
[0042] Such as figure 1 As shown, the fine-grained variable activity analysis method in the multi-tick instruction in this embodiment...
Embodiment 2
[0060] This embodiment is a further improvement on Embodiment 1. In this example, steps A1) to A4) in Example 1 are recorded as activity analysis, while in this example, it is carried out, which is recorded as simplified activity analysis.
[0061] Due to the accurate active interval acquisition to find the corresponding updated interval, it will increase the positioning time in complex cases. On the other hand, since the start and effective time of the write operation lags behind the start execution time of the instruction, the complexity of the algorithm will be greatly increased when register allocation is performed. However, the variable activity saved from the start of instruction execution to the start of variable write operation is actually difficult to use when register allocation. Therefore, if there is no extreme requirement for the efficiency of register usage, the activity analysis can be simplified by replacing the start time of variable write operation with inst...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com