1999 · 32 citations · 17 references
ComputingComputer EngineeringComputer ScienceAlgorithmsCompilersComputer ArchitectureCompiler ConstructionControl-flow AnalysisData-flow AnalysisIntermediate RepresentationStatic AnalysisStatic Code AnalysisCompensation CodeConversion To Static Single AssignmentIntermediate Representation DesignLow-level Intermediate RepresentationMachine Code OptimizationRegister AssignmentRegistersStatic Single Assignment Form
Static Single Assignment (SSA) is an effective intermediate representation in optimizing compilers. However, traditional SSA form and optimizations are not applicable to programs represented as native machine instructions because the use of dedicated registers imposed by calling conventions, the runtime system, and target architecture must be made explicit. We present a simple scheme for converting between programs in machine code and in SSA, such that references to dedicated physical registers in machine code are preserved. Our scheme ignores all output- and anti-dependences imposed by physical registers while a program is in SSA form, but inserts compensation code during machine code reconstruction if any naming requirements have been violated. By resolving all mismatches between the two representations in separate phases, we are able to utilize existing SSA algorithms unaltered to perform machine code optimizations.
17
Global value numbers and redundant computations
Barry K. Rosen, Mark N. Wegman, F. K. Zadeck · 1988 · 483 citations
An efficient method of computing static single assignment form
Ron K. Cytron, Jeanne Ferrante, Barry K. Rosen et al. · 1989 · 465 citations
Thomas Ball, James R. Larus · 1993 · 288 citations · Full text