Compiler for restructuring code using iteration-point algebraic difference analysis
Abstract
Embodiments of the present invention facilitate pruning a dependence graph for a loop in a computer program. An example computer-implemented method includes determining, by a compiler, a source and a sink of a dependence in the dependence graph. The method further includes determining, by the compiler, a source symbolic expression for the source, and a sink symbolic expression for the sink. The method further includes constructing, by the compiler, a difference expression using the source symbolic expression and the sink symbolic expression. The method further includes checking, by the compiler, if the difference expression is indicative of a memory overlap between the source and the sink. The method further includes, in response to the difference expression being indicative of no overlap, removing the dependence from the dependence graph, and generating object code for the computer program based on the dependence graph.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 14 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method comprising: determining, by a compiler, a source of a dependence in a dependence graph for a loop in a computer program, the source being a first node in the dependence graph, the first node representing a first program statement from the computer program; determining, by the compiler, a sink of the dependence in the dependence graph, the sink being a second node in the dependence graph, the second node representing a second program statement from the computer program; determining, by the compiler, a source symbolic expression for the source, wherein the source sy
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (14)
Non-Patent Literature (5)
- Anonymous Author(s), "GPUCheck: Detecting CUDA Thread Divergence with Static Analysis," PLDI'18, Philadelphia, PA, Jun. 18-22, 2018, pp. 1-13.
- Canfora, Gerardo, Aniello Cimitile, and Andrea De Lucia. "Conditioned program slicing." Information and Software Technology 40.11-12 (1998): pp. 595-607. (Year: 1998).
- Ferrante, Jeanne, Karl J. Ottenstein, and Joe D. Warren. "The program dependence graph and its use in optimization." ACM Transactions on Programming Languages and Systems (TOPLAS) 9.3 (1987): pp. 319-349. (Year: 1987).
- Haghighat et al., "Symbolic program analysis and optimization for parallelizing compilers," In International Workshop on Languages and Compilers for Parallel Computing, Springer, Berlin, Heidelberg, 1992, pp. 538-562.
- Kumar et al., "An Improved Algorithm for Loop Dead Optimization," ACM SIGPLAN Notices Homepage archive, vol. 40 Issue 11, Nov. 2005, pp. 18-28.