Allocating register halves independently
Abstract
Register halves are allocated independently when performing register allocation during program compilation, thereby effectively doubling the number of registers which are available for allocation, which in turn may reduce spill code and improve run-time performance. When hardware registers are 64 bits wide, for example, an architecture supporting the present invention provides some number of separate hardware instructions that operate on the 32-bit high-word and/or the 32-bit low word of the hardware registers as if those 32-bit words are separate registers. Such hardware instructions are able to manipulate the register halves independently, leaving the other register half untouched. A register coloring algorithm using in the compilation process is invoked using the number of register halves, instead of the number of hardware registers.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 27 · Forward citations: 0.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method of allocating registers in a computing system during compilation of program code, comprising: determining a count of hardware registers available for allocating during the compilation; doubling the determined count of hardware registers to reflect independent usage of halves of the hardware registers; invoking a register coloring algorithm to build an interference graph using the doubled count of hardware registers as a number of registers to be allocated, wherein building the interference graph further comprises: programmatically consulting a data structure that
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (0 of 0 total)
No indexed citing patents in this generation yet. Ingest USPTO/PatentsView bulk citation tables via patents-ingest to expand the local forward citation graph.
References Cited — Backward Prior Art (27)
Non-Patent Literature (5)
- Chaitin et al. "Register Allocation Via Coloring", 1981, Computer Languages, vol. 6, Issue 1, pp. 47-57.
- Ehrman, John R., "eserver zSeries ("Freeway") Machines: an Assembler Programmer's View", SHARE 96 (Feb. 2001), Session 8172, IBM Corporation, 2001 (39 pages.).
- Ergin, Oguz, et al., "Register Packing: Exploiting Narrow-Width Operands for Reducing Register File Pressure," micro, pp. 304-315, 37th Annual IEEE/ACM International Symposium on Microarchitecture (Micro'04), 2004; Abstract only (1 page).
- Kondo, Masaaki, et al., "A Small, Fast and Low-Power Register File by Bit-Partitioning", Proceedings of the 11th Int'l Symposium on High-Performance Computer Architecture, IEEE Computer Society, 2005 (10 pages).
- Lee, "Subword Parallelism with Max-2", 1996, IEEE Micro, vol. 16 Issue 4, pp. 51-59.