Skip to main navigation Skip to search Skip to main content

A non-iterative data-flow algorithm for computing liveness sets in strict SSA programs

  • Benoit Boissinot
  • , Florian Brandner
  • , Alain Darte
  • , Benoît Dupont De Dinechin
  • , Fabrice Rastello
  • ENS Lyon
  • Kalray

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review

Abstract

We revisit the problem of computing liveness sets (the sets of variables live-in and live-out of basic blocks) for programs in strict static single assignment (SSA). In strict SSA, aka SSA with dominance property, the definition of a variable always dominates all its uses. We exploit this property and the concept of loop-nesting forest to design a fast two-phases data-flow algorithm: a first pass traverses the control-flow graph (CFG), propagating liveness information backwards, a second pass traverses a loop-nesting forest, updating liveness sets within loops. The algorithm is proved correct even for irreducible CFGs. We analyze its algorithmic complexity and evaluate its efficiency on SPECINT 2000. Compared to traditional iterative data-flow approaches, which perform updates until a fixed point is reached, our algorithm is 2 times faster on average. Other approaches are possible that propagate from uses to definitions, one variable at a time, instead of unioning sets as in data-flow analysis. Our algorithm is 1.43 times faster than the fastest alternative on average, when sets are represented as bitsets and for optimized programs, which have non-trivial live-ranges and a larger number of variables.

Original languageEnglish
Title of host publicationProgramming Languages and Systems - 9th Asian Symposium, APLAS 2011, Proceedings
Pages137-154
Number of pages18
DOIs
Publication statusPublished - 26 Dec 2011
Externally publishedYes
Event9th Asian Symposium on Programming Languages and Systems, APLAS 2011 - Kenting, Taiwan, Province of China
Duration: 5 Dec 20117 Dec 2011

Publication series

NameLecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics)
Volume7078 LNCS
ISSN (Print)0302-9743
ISSN (Electronic)1611-3349

Conference

Conference9th Asian Symposium on Programming Languages and Systems, APLAS 2011
Country/TerritoryTaiwan, Province of China
CityKenting
Period5/12/117/12/11

Fingerprint

Dive into the research topics of 'A non-iterative data-flow algorithm for computing liveness sets in strict SSA programs'. Together they form a unique fingerprint.

Cite this