Performing a compiler optimization pass as a transaction
US10891120B2 · kind B2 · utility
Assignee
Inventor
Key dates
| Filing date | Feb 14, 2019 |
| Grant date | Jan 12, 2021 |
| Priority date | — |
| Expiry date | Feb 20, 2039 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F9/466
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
Embodiments described herein provide a solution for optimizing a compiling of program code. A proposed state pointer, which corresponds to a current state pointer to a current state node that represents a section of the program code, is added in an intermediate language (IL) representation of the program code. When the optimizing compiler determines that an optimization should be made to a section of code, the current state node is copied to create a proposed state node, which is then referenced by the proposed state pointer. The proposed state node is edited to include the optimization while the current state node remains unchanged. The success of the optimization is evaluated, and an updated IL representation is generated in which any references to nodes that are no longer included in the flow of the former IL representation are removed.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.