TODO CSE.txt 442 B

12345678
  1. Common subexpression elimination
  2. Loop through statements of each block
  3. for each binary operator, look back for usage of rs and rt. If rs or rt are
  4. assigned, break. If exact same operator is found, add it to the list of
  5. common subexpressions. If you reach the end of the block, or rs or rt are
  6. assigned, make new destination address, and change each occurence of this
  7. expression with a move from the new register address.