Debian Codegraph @

lib/mlrisc-lib/MLRISC/Doc/latex/optimizations.tex

raw
1 \section{Optimizations}
2
3 MLRISC assumes that all high level optimizations (target
4 independent) have already been performed. This includes things like
5 inlining, array dependence analysis, and array bounds check
6 elimination. The target dependent optimizations that remain include
7 register allocation, scheduling and traditional optimizations to
8 support scheduling.
9
10 \subsection{Register allocation}
11
12 MLRISC includes a state-of-the-art graph-coloring based register
13 allocator that has an aggressive algorithm for copy-propagation. The
14 latter guarantees to eliminate copy instructions without introducing
15 spills.
16
17 Spills in the register allocator are under the control of the
18 client via call-backs to the front end. Where to spill registers and
19 the associated information that must be maintained is client specific
20 and varies with the compiler.
21
22 \subsection{Scheduling for Superscalar Architectures}
23 Several algorithms for acyclic global scheduling are provided. These
24 include:
25
26 \begin{itemize}
27 \item Superblock,
28 \item a variant of Bernstein/Rodeh, and
29 \item Percolation based scheduling.
30 \end{itemize}
31
32 These algorithms tend to be quite complex and require a large number
33 of support data structures and analysis. These include data structures
34 such as:
35
36 \begin{itemize}
37 \item dominator/post dominator trees,
38 \item loop nesting tree,
39 \item control dependency graphs, and
40 \item data dependency graphs.
41 \end{itemize}
42
43 Support analysis and optimization include:
44
45 \begin{itemize}
46 \item constant propagation,
47 \item global value numbering,
48 \item global code motion, and
49 \item loop invariant hoisting.
50 \end{itemize}
51
52 \subsection{VLIW Compilation}
53 MLRISC also contains a framework for the compilation of
54 predicated VLIW architectures.
55 Currently, the following algorithms have been implemented.
56 \begin{itemize}
57 \item hyperblock formation
58 \item hyperblock scheduling
59 \item modulo scheduling
60 \end{itemize}