1 \documentclass[pdftex,
a4paper,
11pt
]{report}
3 \usepackage[utf8
]{inputenc}
4 \usepackage[T1]{fontenc}
5 \usepackage[english
]{babel
}
12 \title{PIPS~--- List of code transformations
}
25 \item forward substitution
28 \item reduction detection
29 \item parallelism detection
30 \item parallelism extraction
31 \item directive generation
32 \item constant propagation
33 \item instruction selection
34 \item goto elimination
36 \item common subexpression elimination
37 \item loop interchange
38 \item loop unszitching
39 \item statement isolation
40 \item dead code elimination
41 \item array linearization
43 \item loop normalization
44 \item iteration clamping
46 \item strengh reduction
47 \item split update operator
48 \item n adress code generation
49 \item memory footprint reduction
50 \item redundant load-store elimination
51 \item invariant code motion
60 \item scalar/array expansion
61 \item scalar/array privatization
63 \item variable copying
64 \item index set splitting
68 \item full loop unrolling
69 \item idiom recognition
72 \item loop fission/loop distribution
73 \item loop normalization
74 \item unimodular loop transformation/hyperplane method
75 \item loop interchange
78 \item non-unimodular loop transformation
79 \item strip-mining (loop sectionning)
80 \item loop coalescing/loop collapsing
82 \item loop parallelization
83 \item loop vectorization
84 \item loop invariant code motion
85 \item software pipelining
86 \item locality increazing
87 \item loop embedding/loop jamming
88 \item procedure inlining
89 \item procedure cloning
91 \item forward expression substitution
92 \item induction variable substitution
94 \item statement reordering
95 \item expression optimization
96 \item partial redundancy elimination
97 \item unreachable code
98 \item semantically uneachable code
99 \item if and loop elimination
100 \item use-def elimination
101 \item constant propagation
104 \chapter{List of Pips transformations
}
106 \section{Memory allocation alteration
}
110 \item[scalar renaming
]{is the process of renaming scalar variables to
111 suppress false data dependencies.
}
113 \item[privatization
]{is the process of detecting variables that are
114 private to a loop body, i.e.\ written first, then read.
}
119 \section{Loop transformations
}
123 \item[loop unrolling
]{
124 is a loop transformation.
125 Unrolling a loop by a factor of $n$ consists in the substitution of a loop
126 body by itself, replicated $n$ times. A prelude and/or postlude are
127 added to preserve the number of iteration.
}
130 is a loop transformation that replaces two loops by a single loops whose
131 body is the concatenation of the bodies of the two initial loops.
}
134 is a loop nest transformation that changes the loop execution order
135 through a partitions of the iteration space into
136 chunks, so that the iteration is performed over each chunk and in the
139 \item[loop interchange
]{is a loop transformation that permutes two
140 loops from a loop nest.
}
142 \item[loop unswitching
]{is a loop transformation that replaces a
143 loop containing a test independent from the loop execution by a test
144 containing the loop without the test in both true and false branch.
}
146 \item[loop normalization
]{is a loop transformation that changes
147 the loop initial increment value or the loop range to enforce certain values,
152 \section{Inter-procedural transformations
}
154 \section{Base blocs transformations
}
156 \section{Dead code removal
}
165 is a function transformation. Inlining a function
166 \texttt{foo
} in its caller
\texttt{bar
} consists in the substitution
167 of the calls to
\texttt{foo
} in
\texttt{bar
} by the function body
168 after replacement of the formal parameters by their effective
172 \item[forward substitution
]{
173 is the process of replacing a reference read in an
174 expression by the latest expression affected to it.
}
180 \item[reduction detection
]{
181 is an analysis that identifies statements that perform a reduction over a
184 \item[parallelism detection
]{
185 is a common name for analysis that detect if a loop can be run in parallel.
}
187 \item[parallelism extraction
]{
188 is a common name for code transformations that modifies loop nest to make it legal to
189 run them in parallel.
}
191 \item[directive generation
]{
192 is a common name for code transformations that annotate the code with directives.
}
194 \item[constant propagation
]{
195 is a pass that replaces a variable by its value when this value is
196 known at compile time.
}
198 \item[instruction selection
]{
199 is the process of mapping parts of the IR to machine instructions.
}
201 \item[goto elimination
]{
202 is the process of replacing
\texttt{goto
} instructions by a hierarchical control flow
205 is the process of extracting part of a function body into a new function
206 and replacing it in the initial function by a function call.
}
208 \item[common subexpression elimination
]{
209 is the process of replacing similar expressions by a variable that holds
210 the result of their evaluation.
}
214 \item[statement isolation
]{is the process of replacing all
215 variables referenced in a statement by newly declared variables. A
217 and an epilogue are added to copy old variable values to new variable, back
220 \item[dead code elimination
]{is the process of pruning from a
221 function all the statements whose results are
224 \item[array linearization
]{is the process of converting
225 multidimensional array into unidimensional arrays, possibly with a
226 conversion from array to pointer.
}
229 \item[iteration clamping
]{is a loop transformation that extends
230 the loop range but guards the loop body with the former range.
}
232 \item[flatten code
]{is the process of pruning a function body from
233 declaration blocks so that all declarations are made at the top level.
}
235 \item[strength reduction
]{is the process of replacing an operation
236 by an operation of lower cost.
}
238 \item[split update operator
]{is the process of replacing an update
239 operator by its expanded form.
}
241 \item[n address code generation
]{is the process of splitting
242 complex expression in simpler ones that take at most $n$ operands.
}
244 \item[memory footprint reduction
]{is the process of tiling a loop
245 to make sure the iteration over the tile has a memory footprint bounded by
248 \item[redundant load-store elimination
]{is an inter procedural transformation
249 that optimizes data transfers by delaying and merging them.
}
251 \item[invariant code motion
]{is a loop transformation that moves outside
253 the code from its body that is independent from the iteration.
}
257 \item[loop rerolling
]{finds manually unrolled loop and replace
258 them by their non-unrolled version.
}