Skip to content

jacobstanley/ssa-anf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSA vs ANF

This repo provides the following:

  • AST for representing Static Single Assignment (SSA) programs
  • AST for representing Administrative Normal Form (ANF) programs
  • Pretty printing of both
  • Implementation of the SSA to ANF conversion algorithm presented in [1]
  • Implementation of Sparse Conditional Constant Propagation (SCCP) [2] using the algorithm presented in [1]
  1. M. Chakravarty, G. Keller, and P. Zadarnowski. A Functional Perspective on SSA Optimisation Algorithms COCV, 2003.

  2. M. Wegman, and F. Zadeck. Constant Propagation with Conditional Branches ACM TOPLAS, 1991.

Example Conversion

Example SCCP Transform

Releases

No releases published

Packages

No packages published