Heuristic to improve register allocation using pass degree
Abstract
A method includes adding direction to interference edges of a register interference graph and choosing a node of the register interference graph to spill based upon a pass degree of the node. By using the pass degree, the node that caused the greatest interference with allocation of the variables to the physical registers is preferentially chosen to be spilled.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 6 · Forward citations: 5.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method comprising: adding direction to interference edges of a register interference graph, wherein each interference edge extends between two nodes of said register interference graph, said adding direction comprising: for each node of each interference edge, determining whether a variable associated with said node was live when an other variable associated with the other node of said two nodes was defined or used; wherein upon a determination that said variable associated with said node was live when said other variable associated with said other node was defined or used, said first node i
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (5 of 5 total)
References Cited — Backward Prior Art (6)
Non-Patent Literature (5)
- Association for Computing Machinery (ACM) , Preston Briggs, et al., "Coloring Heuristics for Register Allocation", pp. 275-284, 1989.
- Fryer et al., Microsoft Press Computer Dictionary, 1997, Microsoft Press, 3<SUP>rd </SUP>Ed., 169, 220, 282, 331, 477, 492.
- Morgan Kaufmann Publishers, Steven S. Muchnick, "Advanced Compiler Design & Implementation", Chapter 16, pp. 481-530, 1997, San Francisco, CA.
- Pergamon Press, LTD., Gregory Chaitin, et al.; "Register Allocation via Coloring", pp. 47-57, Computer Languages, vol. 6, No. 1, 1981, Great Britain.
- PLDI, Andrew W. Appell and Lal George, "Optimal Spilling for CISC Machines with Few Registers", pp. 243-253, 2001, Snowbird, UT.