|
ABSTRACT
This paper presents a new register assignment heuristic for procedures in SSA Form, whose interference graphs are chordal; the heuristic is called optimistic chordal coloring (OCC). Previous register assignment heuristics eliminate copy instructions via coalescing, in other words, merging nodes in the interference graph. Node merging, however, can not preserve the chordal graph property, making it unappealing for SSA-based register allocation. OCC is based on graph coloring, but does not employ coalescing, and, consequently, preserves graph chordality, and does not increase its chromatic number; in this sense, OCC is conservative as well as optimistic. OCC is observed to eliminate at least as many dynamically executed copy instructions as iterated register coalescing (IRC) for a set of chordal interference graphs generated from several Mediabench and MiBench applications. In many cases, OCC and IRC were able to find optimal or near-optimal solutions for these graphs. OCC ran 1.89x faster than IRC, on average.
REFERENCES
Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.
| |
1
|
Bouchez, F., Darte, A., Guillon, C., and Rastello, F. Register Allocation and Spill Complexity Under SSA, Technical Report 2005-33, ENS-Lyon, Lyon France, 2005.
|
| |
2
|
Bouchez, F., Darte, A., Guillon, C., and Rastello, F. Register allocation : what does the NP-Completeness proof of Chaitin et al. really prove? Or revisting register allocation: why and how. In Proc. of the 19th International Workshop on Languages and Compilers for Parallel Computing (LCPC '06), (New Orleans, LA, USA, November 2-4, 2006).
|
| |
3
|
|
| |
4
|
|
 |
5
|
|
| |
6
|
Brisk, P., Dabiri, F., Jafari, R., and Sarrafzadeh, M. Optimal register sharing for high-level synthesis of SSA form programs. IEEE Trans. Computer Aided Design, vol. 25, no. 25, May, 2006, 772--779.
|
 |
7
|
Zoran Budimlic , Keith D. Cooper , Timothy J. Harvey , Ken Kennedy , Timothy S. Oberg , Steven W. Reeves, Fast copy coalescing and live-range identification, Proceedings of the ACM SIGPLAN 2002 Conference on Programming language design and implementation, June 17-19, 2002, Berlin, Germany
|
 |
8
|
|
 |
9
|
Jong-Deok Choi , Ron Cytron , Jeanne Ferrante, Automatic construction of sparse data flow evaluation graphs, Proceedings of the 18th ACM SIGPLAN-SIGACT symposium on Principles of programming languages, p.55-66, January 21-23, 1991, Orlando, Florida, United States
[doi> 10.1145/99583.99594]
|
 |
10
|
|
| |
11
|
Gavril, F. Algorithms for minimum coloring, maximum clique, minimum coloring by cliques, and maximum independent set of a chordal graph. SIAM J. Comput., vol. 1, no. 2, June, 1972, 180--187.
|
 |
12
|
|
| |
13
|
Grund, D., and Hack, S. A fast cutting-plane algorithm for optimal coalescing. In Proc. of the 16th International Conference on Compiler Construction (CC '07) (Lisbon, Portugal, March 26-27, 2007) 111--125.
|
| |
14
|
M. R. Guthaus , J. S. Ringenberg , D. Ernst , T. M. Austin , T. Mudge , R. B. Brown, MiBench: A free, commercially representative embedded benchmark suite, Proceedings of the Workload Characterization, 2001. WWC-4. 2001 IEEE International Workshop, p.3-14, December 02-02, 2001
[doi> 10.1109/WWC.2001.15]
|
| |
15
|
|
| |
16
|
Hack, S., Grund, D., and Goos, G. Register allocation for programs in SSA Form, In Proc. of the 15th International Conference on Compiler Construction (CC '06) (Vienna, Austria, March 30-31, 2006) 247--262.
|
 |
17
|
|
| |
18
|
Kaluskar, V. P. An Aggressive Live Range Splitting and Coalescing Framework for Efficient Register Allocation. M. S. Thesis, Georgia Institute of Technology, November, 2003.
|
| |
19
|
Kempe, A. B. On the geographical problem of the four colors. American Journal of Mathematics, vol. 2, 1879, 193--200.
|
| |
20
|
Chunho Lee , Miodrag Potkonjak , William H. Mangione-Smith, MediaBench: a tool for evaluating and synthesizing multimedia and communicatons systems, Proceedings of the 30th annual ACM/IEEE international symposium on Microarchitecture, p.330-335, December 01-03, 1997, Research Triangle Park, North Carolina, United States
|
 |
21
|
|
 |
22
|
|
 |
23
|
|
| |
24
|
|
| |
25
|
Smith, M. D., and Holloway, G. An introduction to Machine SUIF and its portable libraries for analysis and optimization. Technical Report. Harvard University. July 15, 2002.
|
| |
26
|
|
| |
27
|
|
 |
28
|
|
|