On the Optimality of Register Saturation
Author(s) -
Sid-Ahmed-Ali Touati
Publication year - 2005
Publication title -
electronic notes in theoretical computer science
Language(s) - English
Resource type - Book series
SCImago Journal Rank - 0.242
H-Index - 60
ISSN - 1571-0661
ISBN - 0-7695-2198-3
DOI - 10.1016/j.entcs.2005.01.033
Subject(s) - register allocation , computer science , instruction scheduling , compiler , parallel computing , register file , optimizing compiler , scheduling (production processes) , register (sociolinguistics) , integer programming , schedule , integer (computer science) , arithmetic , algorithm , programming language , instruction set , mathematical optimization , mathematics , dynamic priority scheduling , rate monotonic scheduling , operating system , linguistics , philosophy
International audienceIn an optimizing compiler, the register allocation process is still a crucial phase since it allows to reduce spill code that damages the performances. The register constraints are generally taken into account during the instruction scheduling phase of an acyclic data dependence graph (DAG) : any schedule must minimize the register requirement. However, in a previous work [14], we introduced and mathematically studied the register saturation (RS) concept. It consists of computing the exact upper-bound of the register need for all the valid schedules, independently of the functional unit constraints. The goal of RS is to decouple register constraints from instruction scheduling. In this paper, we continue our theoretical efforts and we present two main results. First, we give an exact solution with integer linear programming for both the problems of computing the RS of a DAG and reducing it. Our integer program brings a new way to model register constraints that allows us to produce the lowest number of constraints and variables in the literature (till now). Indeed, given a DAG with n nodes and m arcs, we need O(n 2) integer variables and O(m + n 2) linear constraints, which is better than the actual size complexity in the literature that model register constraints. Second, we prove that the problem of reducing the register saturation is NPhard. Our detailed experiments in this paper show that our previous heuristics [14] are nearly optimal. We provide a discussion too in order to argument why the RS approach should be better that minimizing the register requirement
Accelerating Research
Robert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom
Address
John Eccles HouseRobert Robinson Avenue,
Oxford Science Park, Oxford
OX4 4GP, United Kingdom