CS380C: Advanced Compiler Techniques (utexas)
- Construct Control Flow Graph;
- Reaching Definitions -> Constant Propagation;
- Live Variables -> Dead Statement Elimination;
- Build SSA Form;
- Translate back to non-SSA Form;
mkdir build && cd build
cmake ..
make
./csc-opt --backend=ssa,3addr --opt=ssa -o ../test/ssa/gcd-ssa.tac ../test/tac/gcd.tac