Patents
US 5,202,995 A#559917 Most CitedExpiredUnited States (USPTO)Utility

Method for removing invariant branches from instruction loops of a computer program

65Forward Citations (#559917 Global)
2.0/yrCitation Velocity (#2199652 Global)
32.82Citation PageRank (#145018 Global)
5Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

Removal of invariant branches from nests of loops results in an optimized computer program with increased speed of execution. To accomplish this objective, each loop of a program is then examined, looking at inner loops before their containing outer loops, to locate conditional branch instructions which are loop invariant. Each conditional branch which is evaluated based upon loop invariant calculations is rewritten, outside the outermost loop for which this branch is invariant. The moved branch is modified to branch around the loop in which it was originally contained if its condition is evaluated false. A new copy of the loop is made in which the invariant branch is rewritten as an unconditional branch. In the original copy of the loop, the invariant branch is deleted, and a branch is inserted after the modified original loop to skip around the new copy when the original copy is executed. Finally, any sections of the program which will never be executed as a result of the above described transformation are deleted.

Interactive Citation Constellation Global Citation Ranking

Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 5 · Forward citations: 65.

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A computer implemented method of reducing the execution time of a computer program which includes at least one instruction loop having a first conditional branch instruction internal to the loop which has a condition part and a branch part including a target address, wherein the condition part is invariant with respect to the instruction loop, said computer implemented method comprising the steps of: a) identifying said first conditional branch instruction; b) copying said first conditional branch instruction to a location in the computer program immediately before the instruction loop to cr

Technical Overview & Description

Full multi-page specification text is archived at the issuing office. Read complete official specification ↗

Non-Patent Literature (5)

  • A. K. Chandra, "Identifying Inner Loops Of Programs" IBM Technical Disclosure Bulletin, vol. 18, No. 10, Mar. 1976 pp. 3514-3515.
  • A. K. Chandra, Identifying Inner Loops Of Programs IBM Technical Disclosure Bulletin, vol. 18, No. 10, Mar. 1976 pp. 3514 3515.
  • Barrett et al., "Compiles Construction: Theory and Practice," Science Research Associates, Inc., Chicago, 1979, pp. 551-587.
  • Barrett et al., Compiles Construction: Theory and Practice, Science Research Associates, Inc., Chicago, 1979, pp. 551 587.
  • Bauer et al., "Compiler Construction an Advanced Course," 2nd ed., Springer-Verlag, New York, 1976, pp. 549-603.