𝔖 Bobbio Scriptorium
✦   LIBER   ✦

An approximation algorithm for the register allocation problem

✍ Scribed by K. Jansen; J. Reiter


Publisher
Elsevier Science
Year
1998
Tongue
English
Weight
244 KB
Volume
25
Category
Article
ISSN
0167-9260

No coin nor oath required. For personal study only.

✦ Synopsis


In this paper we study the problem of register allocation in the presence of parallel conditional branches with a given branching depth d. We start from a scheduled flow graph and the goal is to find an assignment of the variables in the flow graph to a minimum number of registers. This problem can be solved by coloring the corresponding conflict graph G"(Β», E). We describe a new approximation algorithm with constant worst case rate for flow graphs with constant branching depth.

The algorithm works in two steps. In the first step, the lifetimes are enlarged such that the lifetimes form one unique interval across the different possible execution paths for each variable. We prove that the conflict graph G M with enlarged lifetimes satisfies (G M ))(2d#1) (G) where (G) is the cardinality of a maximum clique in G. In the second step, we propose an algorithm with approximation bound (d#1) (G M ) for G M , using its specific structure.


πŸ“œ SIMILAR VOLUMES