Skip to content
Snippets Groups Projects
Commit 9525cbe1 authored by Jayke Meijer's avatar Jayke Meijer
Browse files

Restored algebraic transformations.

parent cbd31150
No related branches found
No related tags found
No related merge requests found
......@@ -168,12 +168,18 @@ removed by the dead code elimination.
\subsubsection*{Algebraic transformations}
Some expression can easily be replaced with more simple once if you look at
what they are saying algebraically. An example is the statement $x = y + 0$, or
in Assembly \texttt{addu \$1, \$2, 0}. This can easily be changed into $x = y$
or \texttt{move \$1, \$2}.
Another case is the multiplication with a power of two. This can be done way
more efficiently by shifting left a number of times. An example:
\texttt{mult \$regA, \$regB, 4 -> sll \$regA, \$regB, 2}. We perform this
optimization for any multiplication with a power of two.
<<<<<<< HEAD
=======
There are a number of such cases, all of which are once again stated in
appendix \ref{opt}.
>>>>>>> fd46a3140a9b8bd0e5e542e57b57bfe87ff7556d
\section{Implementation}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment