From 8a08a3a237248aefcb0b5d77fdf390a7b362d356 Mon Sep 17 00:00:00 2001
From: Jayke Meijer <jayke.meijer@gmail.com>
Date: Wed, 28 Dec 2011 16:09:31 +0100
Subject: [PATCH] Small changes on report.

---
 report/report.tex | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/report/report.tex b/report/report.tex
index 75cde60..d11e206 100644
--- a/report/report.tex
+++ b/report/report.tex
@@ -106,14 +106,15 @@ implementation is a slightly less fancy, but easier to implement.
 We search from the end of the block up for instructions that are eligible for
 CSE. If we find one, we check further up in the code for the same instruction,
 and add that to a temporary storage list. This is done until the beginning of
-the block or until one of the arguments of this expression is assigned. Now all
-occurrences of this expression can be replaced by a move of a new variable that
-is generated above the first occurrence, which contains the value of the
-expression.
+the block or until one of the arguments of this expression is assigned.
 
-This is a less efficient method, but because the basic blocks are in general
-not very large and the execution time of the optimizer is not a primary
-concern, this is not a big problem.
+We now add the instruction above the first use, and write the result in a new
+variable. Then all occurrences of this expression can be replaced by a move of
+from new variable into the original destination variable of the instruction.
+
+This is a less efficient method then the dag, but because the basic blocks are
+in general not very large and the execution time of the optimizer is not a
+primary concern, this is not a big problem.
 
 \section{Implementation}
 
@@ -201,7 +202,7 @@ $Lx:   ...
     j $Ly               ->  $Lx:   ...
 $Lx:   ...
 \end{verbatim}
-\textbf{Simple basic block optimizations}
+\textbf{Standard basic block optimizations}
 
 \begin{verbatim}
 mov $regA,$regA         ->  --- // remove it
-- 
GitLab