Controlling compiler optimizations
Abstract
In an embodiment, a conditional branch is detected that selects between execution of a first alternative block and a second alternative block. A first count and a second count are saved, where the first count is a number of times the first alternative block was executed, and the second count is a number of times the second alternative block was executed. If the first count is greater than a threshold and the second count equals zero, the first alternative block is compiled into first alternative block object code and the second alternative block is not compiled. If the first count is not greater than the threshold, the first alternative block is compiled into the first alternative block object code and the second alternative block is compiled into second alternative block object code.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 2.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: detecting a conditional branch that selects between execution of a first alternative block and a second alternative block; saving a first count of a number of times the first alternative block was executed and a second count of a number of times the second alternative block was executed; if the first count is greater than a threshold and the second count equals zero, compiling the first alternative block into first alternative block object code and refraining from compiling the second alternative block; if the first count is not greater than the threshold, compiling the fi
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗