Method and apparatus for performing versioning for loop, method and apparatus for collecting array range check information in basic blocks, method for modifying array range check information, method for optimizing array range checks, method for generating codes for array range checks, method and apparatus for eliminating redundant array range checks, method for selecting array range checks, method for modifying array range checks, method for collecting array range checks, and method for determining handling of array range checks
Abstract
A system and method are provided that in one aspect eliminate redundant array range checks by performing a versioning for a loop. In another aspect, a system and method optimize array range checks by performing data-flow analysis in reverse order of the program execution. Yet in another aspect, a system and method obtains information about array ranges already checked by performing data-flow analysis in program execution order and eliminate redundant array range checks from this information.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 11 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for collecting, in a basic block, information concerning an array range check for an array access in a program, said method comprising the steps of: checking, in reverse order of the program execution, an instruction in said basic block; if the check determines said instruction includes an array access, storing in a storage information concerning an array range check necessary for the array access; if the check determines said instruction includes a modification of an array index variable associated with the stored array range check, determining whether the modification is an addition
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (11)
Non-Patent Literature (4)
- Auru, "Optimization of Array Subscript Range Checks", ACM Letters on Programming Languages and System, vol. 1, No. 2 Jun. 1992, pp. 109-118.
- Gupta, Optimizing Array Bound Checks Using Flow Analysis, University of Pittsburgh, ACM Letters on Programming Languages and Systems, vol. 2, Nos. 1-4, Mar.-Dec. 1993, pp. 135-150.
- Kolte et al. "Elimination of Redundant Array subscript Range Checks", ACM SIGPLAN '95 conference on Programming Language Design and Implementation, LaJolla, CA, Jun. 18-21, 1995, pp. 270-278.
- Midkiff. et al. "Optimizing Array Reference Checking in Java Programs", RC21184 (94652), May 18, 1998, Computer Science/Mathematics, IBM Research Division, TJ Watson Research Center, Yorktown Heights, NY 10598, pp. 409-453.