Patents
US 5,659,752 A#391376 Most CitedExpiredUnited States (USPTO)Utility

System and method for improving branch prediction in compiled program code

78Forward Citations (#391376 Global)
2.7/yrCitation Velocity (#1123172 Global)
29.26Citation PageRank (#176103 Global)
5Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

A method and system for optimizing branch prediction in an executable computer program compiled for execution on a pipelined processor that employs branch prediction. The source program is compiled and, in one embodiment, instrumented to collect branch selection statistics. The compiled program is run and statistics collected using the instrumentation or a standard trace program. The branch statistics are used to modify the executable program to cause branch prediction to be correct a majority of the time for the workload against which the program was run. In a computer system having a branch prediction bit, that bit is set or cleared to cause correct branch prediction a majority of the time.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    A method for optimizing conditional branch prediction in a computer program running on a computer processor having branch prediction logic, the computer program including a plurality of conditional branches, the method comprising the steps of: compiling the computer program to create an executable program; executing the executable program on the computer processor using a workload; collecting statistics on the frequency of conditional branch being taken or not taken for each of the plurality of conditional branches; calculating for each conditional branch a percent of branches correctly

Technical Overview & Description

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

Non-Patent Literature (2)

  • IBM Technical Disclosure Bulletin, vol. 36, No. 08, Aug. 1993, p. 241, "Adaptive Branch Prediction".
  • IBM Technical Disclosure Bulletin, vol. 36, No. 08, Aug. 1993, p. 241, Adaptive Branch Prediction .