Eliminating redundant function calls
Abstract
A computer-implemented method for removing redundant function calls in a computer program includes identifying a first set of equivalent function calls appearing in the computer program. For each of the equivalent function calls, the method identifies whether the function call is partially available or partially anticipable. When a function call is identified as being partially anticipable, a result of the function call is stored in a temporary variable. When a function call is identified as being partially available, the function call is removed and replaced with use of the temporary variable.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method for removing redundant function calls in a computer program, comprising: identifying a first set of equivalent function calls appearing in the computer program; for each of the equivalent function calls, identifying whether the function call is partially available or partially anticipable, wherein a function call is identified as partially available if the function call was computed previously along at least one path to the function call, wherein a function call is identified as partially anticipable if the function call is re-computed later along at least one pat
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (11)
Non-Patent Literature (5)
- Agrawal, Gagan, "Interprocedural Partial Redundancy Elimination with Application to Distributed Memory Compilation", Retrieved at <<http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=707537>>, IEEE Transactions on Parallel and Distributed Systems, vol. 9, No. 7, Jul. 1998, pp. 609-625.
- Agrawal, Gagan, "Interprocedural Partial Redundancy Elimination with Application to Distributed Memory Compilation", Retrieved at >, IEEE Transactions on Parallel and Distributed Systems, vol. 9, No. 7, Jul. 1998, pp. 609-625.
- Bacon, David Francis, 1997, "Fast and Effective Optimization of Statically Type Object-Oriented Languages", Berkeley, CA : UC Berkeley, 1997, 155 pgs.
- Bodik et al., "Complete Removal of Redundant Expressions", 1998, ACM.
- Gupta et al., "Register Pressure Sensitive Redundancy Elimination", 1999, Springer-Verlag Berlin Heidelberg, pp. 107-122.