Apparatus and method for program optimizing
Abstract
An optimizer ( 100 ) comprises a memory ( 110 ) and a processor ( 130 ). The memory stores a program ( 200 ) to be optimized and optimization software ( 301 ). Controlled by the optimization software, the processor ( 120 ) (a) determines local vectors (“local”) in instructions of the program ( 200 ) which indicate the use of resources by the instructions (use-vectors, exh-vectors); (b) scans the program ( 200 ) for Single-Entry-Single-Exit (SESE) structures (U, T, V, S); and (c) determines SESE vectors from the local vectors. The SESE vectors indicate the use of resources by the SESE structures and can be combined by the optimizer to obtain a program vector. When some instructions are modified, then optimizer ( 100 ) only re-calculates the SESE vector of the corresponding SESE and re-combines the old SESE vector with the modified SESE vector to determine a new program vector.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 4 · Forward citations: 15.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for optimizing a program having instructions which access resources, said method comprising the following steps: determining local vectors for said instructions which indicate the use of said resources by said instructions, wherein said local vectors are provided as first partial vectors and as second partial vectors; scanning said program for Single-Entry-Single-Exit (SESE) structures in a child-parent-program hierarchy; and in repetitions, going up in the hierarchy, determining SESE vectors from said local vectors, said SESE vectors indicating the use of said resources by said SESE
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 15 total)
References Cited — Backward Prior Art (4)
Non-Patent Literature (5)
- Aho et al., "Compilers: Principles, Techniques and Tools" 1996, Addison-Wesley Publishing Co., XP002107029, pp. 608-634.
- Barbara G. Ryder et al., "Elimination Algorithms for Data Flow Analysis" XP-000916854, ACM Computing Surveys, vol. 18, No. 3, Sep. 1996, pp. 278-316.
- C. Click :"Global Code Motion; Global Value Numbering" ACM Sigplan, vol. 30, No. 6, pp 246-257, 1995.
- Johnson et al.: The Program Structure Tree: Computing Control Regions in Linear Time ACM Sigplan Notices; vol. 29, No. 6, Jun. 1994, pp. 171-185, XP000450415, Orlando, USA.
- Johnson R. et al.: "Dependence-Based Program Analysis" ACM Sigplan Notices, vol. 28, No. 6, Jun. 1, 1993, pp. 78-89, XP000380801.