A method for performing global common subexpression elimination and code motion in an optimizing compiler
Abstract
A method for use during the optimization phase of an optimizing compiler for performing global common subexpression elimination and code motion which comprises: Determining the code basis for the object program which includes examining each basic block of code and determining the basis items on which each computation depends wherein basis items are defined as operands which are referenced in a basic block before being computed. The method next determines the "kill set" for each basis item. A kill set for one basis item is defined as the set of items comprising all non basis items which depends on the one basis item for its value. Following this UEX, DEX, and THRU are determined for each basic bloc using the previously determined basis and "kill set" information. A UEX is defined as a set of upward exposed computations, the set of computations which if executed at the beginning of a basic block give the same result as when executed in the original place in the block, wherein DEX is defined as a similar set of downward expressions and wherein THRU is defined as a set of computations which if computed at the beginning or end of the basic block give the same result. AVA
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 0 · Forward citations: 8.
Claims (0)
No claim text indexed for this record.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (8 of 8 total)
References Cited — Backward Prior Art (0)
No backward patent references recorded.
Non-Patent Literature (3)
- COMMUNICATIONS OF THE ACM, vol. 19, no. 3, March 1976, pages 137-146; F.E. ALLEN et al.: "A program data flow analysis procedure"
- INFORMATION PROCESSING 80, vol. 8, 1980, pages 221-228, IFIP, North-Holland Publishing Co.; J. COCKE et al.: "Measurement of program improvement algorithms"
- W.M. WAITE et al.: "Compiler construction", 1984, pages 342-353, Springer-Verlag, New York, US