SSA

Briefly introduce the benefits of SSA(Static Single Assignment) form.

Answer

  1. Remove unnecessary code
  2. Remove redundant varibles and logics
  3. Optimize register or memory allocation
  4. Transform varibles to constants when possible
  5. Transform "high cost" instructions to "low cost"