LUND UNIVERSITY
Department of Computer Science

Lab 2, Optimizing Compilers, EDA230, 2011



The purpose of this lab is to study translation to and from SSA form.


  1. Hints!

  2. What is the definition of dominance frontier?

  3. Implement the function df in the file ssa.c, i.e. Algorithm 3.4 on page 108.

  4. Implement the function rename_symbols in the file ssa.c, i.e. the procedure search in Algorithm 3.6 on page 113.

  5. Implement the technique to do copy propagation during renaming, described on page 135 in the third sentence starting with "When the statement is a copy...". Do not implement Algorithm 5.1 in Lab 2.

Requirements for the Lab

When you have performed the tasks above, contact your teacher and then you will discuss what you have learnt during the lab.




Fri Sep 9 16:52:17 CEST 2011