Compilation optimization method based on cache writing suggestion mechanism
An optimization method and mechanism technology, applied in the field of compilation optimization, can solve problems such as errors in calculation results, and achieve the effects of improving performance, reducing memory access delay, and reducing interference
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0029] Embodiment: The present invention provides a compilation optimization method based on a cache write hint mechanism, which automatically identifies instruction sequences for writing operations to continuous main memory, and optimizes the memory access behavior of these instruction sequences through instruction insertion, including the following step:
[0030] S1: Identify all write operations in the code and mark them by instrumentation, as follows:
[0031] S11. Traversing the intermediate representation of the code by means of a compilation optimization pass;
[0032] S12. Identify the write operation;
[0033] S13. Use the two instruction chain structures cur_w and cur_w_r to judge the read-after-write of the data unit: if there is a read-after-write correlation to the data unit in the instruction sequence, no subsequent code insertion is performed on the write operation where the data unit is located. Pile, otherwise, go to S14;
[0034] S14. Perform code insertio...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 
