Explorar o código

Added todo on CSE.

Jayke Meijer %!s(int64=14) %!d(string=hai) anos
pai
achega
0443f16d95
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      TODO CSE.txt

+ 8 - 0
TODO CSE.txt

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