Rechercher

[BRA09] Formal Verification of Coalescing Graph-Coloring Register Allocation

Rapport Scientifique : Date de dépot: 2009/01/01, Nb pages 32 pages, (Tech. Rep.: CEDRIC-09-1832)
motcle:
Résumé: Iterated Register Coalescing (IRC) is a widely used heuristic for performing register allocation via graph coloring. Many implementations in existing compilers follow (more or less faithfully) the imperative algorithm published in 1996. Several mistakes have been found in some of these implementations. In this paper, we present a formal verification (in Coq) of the whole IRC algorithm. We detail a specification that can be used as a reference for IRC. We also define the theory of register-interference graphs; we implement a purely functional version of the IRC algorithm, and we prove the total correctness of our implementation. The automatic extraction of our IRC algorithm into Caml yields a program with competitive performance. This work has been integrated into the CompCert verified compiler.

Commentaires: note

BibTeX

@techreport {
BRA09,
title="{Formal Verification of Coalescing Graph-Coloring Register Allocation}",
author="S. Blazy and B. Robillard and A. Appel",
number="{CEDRIC-09-1832}",
institution="{CEDRIC laboratory, CNAM-Paris, France}",
date={01-01-2009},
pages="32 pages",
note="{note}",
}