Register Allocation via Graph Coloring
dc.contributor.author | Briggs, Preston | en_US |
dc.date.accessioned | 2017-08-02T22:03:18Z | en_US |
dc.date.available | 2017-08-02T22:03:18Z | en_US |
dc.date.issued | 1992-04 | en_US |
dc.date.note | April 1992 | en_US |
dc.description | This work was also published as a Rice University thesis/dissertation: http://hdl.handle.net/1911/16537 | en_US |
dc.description.abstract | Chaitin and his colleagues at IBM in Yorktown Heights built the first global register allocator based on graph coloring. This thesis describes a series of improvements and extensions to the Yorktown allocator. There are four primary results: Optimistic coloring—Chaitin's coloring heuristic pessimistically assumes any node of high degree will not be colored and must therefore be spilled. By optimistically assuming that nodes of high degree will receive colors, I often achieve lower spill costs and faster code; my results are never worse. Coloring pairs—The pessimism of Chaitin's coloring heuristic is emphasized when trying to color register pairs. My heuristic handles pairs as a natural consequence of its optimism. Rematerialization—Chaitin et al. introduced the idea of rematerialization to avoid the expense of spilling and reloading certain simple values. By propagating rematerialization information around the SSA graph using a simple variation of Wegman and Zadeck's constant propagation techniques, I discover and isolate a larger class of such simple values. Live range splitting—Chow and Hennessy's technique, priority-based coloring, includes a form of live range splitting. By aggressively splitting live ranges at selected points before coloring, I am able to incorporate live range splitting into the framework of Chaitin's allocator. Additionally, I report the results of experimental studies measuring the effectiveness of each of my improvements. I also report the results of an experiment suggesting that priority-based coloring requires O(n2) time and that the Yorktown allocator requires only O(n log n) time. Finally, I include a chapter describing many implementation details and including further measurements designed to provide an accurate intuition about the time and space requirements of coloring allocators. | en_US |
dc.format.extent | 154 pp | en_US |
dc.identifier.citation | Briggs, Preston. "Register Allocation via Graph Coloring." (1992) https://hdl.handle.net/1911/96426. | en_US |
dc.identifier.digital | TR92-183 | en_US |
dc.identifier.uri | https://hdl.handle.net/1911/96426 | en_US |
dc.language.iso | eng | en_US |
dc.rights | You are granted permission for the noncommercial reproduction, distribution, display, and performance of this technical report in any format, but this permission is only for a period of forty-five (45) days from the most recent time that you verified that this technical report is still available from the Computer Science Department of Rice University under terms that include this permission. All other rights are reserved by the author(s). | en_US |
dc.title | Register Allocation via Graph Coloring | en_US |
dc.type | Technical report | en_US |
dc.type.dcmi | Text | en_US |
Files
Original bundle
1 - 1 of 1