Removing branching paths from a computer program
Abstract
Methods and systems are described for removing branches from a computer program. The system receives code for a computer program, with the code including a number of branches. Each branch is part of a branching path and includes a jump instruction. The system executes the code, and upon encountering a branching path at runtime, the system proceeds with a number of steps. First, the system computes the result of the branch, then prefetches independent instructions outside of the branch to be executed. The system then executes one or more of the prefetched independent instructions and removes an if statement within the jump instruction of the branch at the computed result of the branching path. The system then executes the jump instruction of the branch at the computed result of the branching path.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 1 · Forward citations: 2.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method for removing branches from a computer program, comprising: receiving code for a computer program, wherein the code comprises a plurality of branches, the branches each being part of a branching path and comprising a jump instruction; and executing the code, wherein upon encountering a branching path at runtime, the method further comprises: computing the result of the branch; prefetching, from within the code, a plurality of independent instructions outside of the branch to be executed; executing one or more of the prefetched independent instructions; removing an if statement within t
- Claim 2Depends on #1
The method of claim 1 , further comprising: gen
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (1)
| Patent | Title | Year | Citations |
|---|---|---|---|
| US 2019079771 A1 | Lookahead out-of-order instruction fetch apparatus for microprocessors | — | 6 |