Patents
US 5,367,684 A#2330684 Most CitedExpiredUnited States (USPTO)Utility

Register allocation using an improved register candidate usage matrix

29Forward Citations (#2330684 Global)
0.9/yrCitation Velocity (#7818736 Global)
17.49Citation PageRank (#417813 Global)
2Prior Art Cited
1Claims (1 Indep. · 0 Dep.)
0Drawings / Sheets

Abstract

An improved register allocator is provided to the code generator of a compiler. The improved register allocator allocates registers using an improved register candidate usage matrix. The improved register candidate usage matrix comprises row entries, one for each register candidate. Each row entry comprises usage bits indicating at least whether its register candidate is live at the entries, in the bodies, and at the exits of the various basic blocks. The improved register allocator allocates registers by block, deriving interference information from the improved usage matrix. It then merges the register allocation introducing spill code at points where register candidates are split. As a result, a register can be allocated to two register candidates that are live in the same basic block as long as they are not both live at some point in the basic block, and at the same time, a register candidate can be spilled in one basic block and allocated a register in another basic block.

Interactive Citation Constellation Global Citation Ranking

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

Claims (1 — 1 Independent, 0 Dependent)

  1. Claim 1Independent Claim

    In a computer system comprising a plurality of instructions and registers, a computer implemented method for a register allocator of a code generator of a compiler of said computer system to allocate said registers to instructions being generated for a program being compiled by said compiler, said method comprising the steps of: a) said register allocator building a collection of register candidate usage indication vectors for register candidates of said instructions being generated for said program being compiled, said instructions being divided in a plurality of basic blocks, each of said ba

Technical Overview & Description

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

Cited By — Indexed Forward Citations (15 of 29 total)

PatentTitleYearCitations
US 5,522,079 ACompiler merging new and preexisting modules while preserving function order199621
US 8,004,523 B1Translation of register-combiner state into shader microcode20113
US 2005102658 A1Method and system for allocating register locations in a memory during compilation—16
US 5,890,000 ACooperation of global and local register allocators for better handling of procedures199934
US 7,681,187 B2Method and apparatus for register allocation in presence of hardware constraints201029
US 9,323,508 B2Method and system for compiler optimization20160
US 8,799,626 B2Prioritized assignment of sub-range registers of circularly addressable extended register file to loop variables in RISC processor20140
US 8,448,157 B2Eliminating redundant operations for common properties using shared real registers201312
US 6,907,601 B1Method and apparatus for inserting more than one allocation instruction within a routine200515
US 6,609,249 B2Determining maximum number of live registers by recording relevant events of the execution of a computer program200322
US 5,659,754 AMethod and apparatus for an improved optimizing compiler1997140
US 5,978,898 AAllocating registers in a superscalar machine199912
US 2011107068 A1Eliminating redundant operations for common properties using shared real registers—18
US 5,946,491 ARegister allocation method and apparatus for gernerating spill code as a function of register pressure compared to dual thresholds199952
US 8,223,150 B2Translation of register-combiner state into shader microcode20122

Non-Patent Literature (5)

  • D. Callahan & B. Koblenz, Register Allocation via Hierarchical Graph Coloring, ACM SIGPLAN 1991 Conference on Programming Language Design & Implementation (ACM 0 89791 428 7/91/0005 0192), pp. 192 203.
  • D. Callahan & B. Koblenz, Register Allocation via Hierarchical Graph Coloring, ACM SIGPLAN 1991 Conference on Programming Language Design & Implementation (ACM 0-89791-428-7/91/0005-0192), pp. 192-203.
  • F. C. Chow & J. L. Hennessy, The Priority Based Coloring Approach to Register Allocation, ACM Transaction on Programming Languages & Systems, vol. 12, No. 4, Oct. 1990, (ACM 0164 0925/1000 0501) pp. 501 536.
  • F. C. Chow & J. L. Hennessy, The Priority-Based Coloring Approach to Register Allocation, ACM Transaction on Programming Languages & Systems, vol. 12, No. 4, Oct. 1990, (ACM 0164-0925/1000-0501) pp. 501-536.
  • P. Briggs, Register Allocation via Graph Coloring, A. Ph.D. Thesis, Rice University, Houston, Tex., Apr. 1992.