Sciweavers

SAS
1999
Springer

Eliminating Dead Code on Recursive Data

14 years 4 months ago
Eliminating Dead Code on Recursive Data
This paper describes a powerful method for dead code analysis and elimination in the presence of recursive data constructions. We describe partially dead recursive data using liveness patterns based on general regular tree grammars extended with the notion of live and dead, and we formulate the analysis as computing liveness patterns at all program points based on constraints constructed from the program and programming language semantics. The analysis yields the most precise programbased grammars that satisfy the constraints. The analysis algorithm takes cubic time in terms of the size of the program in the worst case but is very efficient in practice, as shown by our prototype implementation. The analysis results are used to identify and eliminate dead code. The framework for representing and analyzing properties of recursive data structures using general regular tree grammars applies to other analyses as well. Key words: Dead-code elimination, Recursive data structures, Regular-tre...
Yanhong A. Liu, Scott D. Stoller
Added 04 Aug 2010
Updated 04 Aug 2010
Type Conference
Year 1999
Where SAS
Authors Yanhong A. Liu, Scott D. Stoller
Comments (0)