1 \documentclass[pdftex,
a4paper,
11pt
]{report}
3 \usepackage[utf8
]{inputenc}
4 \usepackage[T1]{fontenc}
5 \usepackage[english
]{babel
}
12 \newcommand\PIPS{PIPS
\xspace}
15 \title{\PIPS~--- List of code transformations
}
26 % memory allocation alteration
28 % loop transformations
33 \item loop interchange
34 \item loop normalization
35 % inter procedural transformations
37 % basic bloc transformations
38 \item forward substitution
40 \item constant propagation
41 \item dead code elimination
44 \item array linearization
45 \item common subexpression elimination
46 \item directive generation
48 \item goto elimination
49 \item instruction selection
50 \item invariant code motion
51 \item iteration clamping
52 \item loop unswitching
53 \item memory footprint reduction
54 \item n adress code generation
56 \item parallelism detection
57 \item parallelism extraction
59 \item reduction detection
60 \item redundant load-store elimination
61 \item split update operator
62 \item statement isolation
63 \item strengh reduction
69 % memory allocation alteration
71 \item scalar/array expansion
72 \item scalar/array privatization
74 \item variable copying
75 % loop transformations
76 \item index set splitting
80 \item full loop unrolling
81 \item idiom recognition
84 \item loop fission/loop distribution
85 \item loop normalization
86 \item unimodular loop transformation/hyperplane method
87 \item loop interchange
90 \item non-unimodular loop transformation
91 \item strip-mining (loop sectionning)
92 \item loop coalescing/loop collapsing
94 \item loop parallelization
95 \item loop vectorization
96 \item loop invariant code motion
97 \item software pipelining
98 \item locality increazing
99 % inter procedural transformations
100 \item loop embedding/loop jamming
101 \item procedure inlining
102 \item procedure cloning
103 % basic bloc transformations
105 \item forward expression substitution
106 \item induction variable substitution
108 \item statement reordering
109 \item expression optimization
110 \item partial redundancy elimination
112 \item unreachable code
113 \item semantically uneachable code
114 \item if and loop elimination
115 \item use-def elimination
116 \item constant propagation
119 \chapter{List of
\PIPS transformations
}
121 \section{Memory allocation alteration
}
125 \item[scalar renaming
]{is the process of renaming scalar variables to
126 suppress false data dependencies.
}
128 \item[privatization
]{is the process of detecting variables that are
129 private to a loop body, i.e.\ written first, then read.
}
134 \section{Loop transformations
}
138 \item[loop unrolling
]{
139 is a loop transformation.
140 Unrolling a loop by a factor of \(n\) consists in the substitution of a loop
141 body by itself, replicated \(n\) times. A prelude and/or postlude are
142 added to preserve the number of iteration.
}
145 is a loop transformation that replaces two loops by a single loops whose
146 body is the concatenation of the bodies of the two initial loops.
}
149 is a loop nest transformation that changes the loop execution order
150 through a partitions of the iteration space into
151 chunks, so that the iteration is performed over each chunk and in the
154 \item[loop interchange
]{is a loop transformation that permutes two
155 loops from a loop nest.
}
157 \item[loop unswitching
]{is a loop transformation that replaces a
158 loop containing a test independent from the loop execution by a test
159 containing the loop without the test in both true and false branch.
}
161 \item[loop normalization
]{is a loop transformation that changes
162 the loop initial increment value or the loop range to enforce certain values,
167 \section{Inter-procedural transformations
}
169 \section{Base blocs transformations
}
171 \section{Dead code removal
}
180 is a function transformation. Inlining a function
181 \texttt{foo
} in its caller
\texttt{bar
} consists in the substitution
182 of the calls to
\texttt{foo
} in
\texttt{bar
} by the function body
183 after replacement of the formal parameters by their effective
187 \item[forward substitution
]{
188 is the process of replacing a reference read in an
189 expression by the latest expression affected to it.
}
195 \item[reduction detection
]{
196 is an analysis that identifies statements that perform a reduction over a
199 \item[parallelism detection
]{
200 is a common name for analysis that detect if a loop can be run in parallel.
}
202 \item[parallelism extraction
]{
203 is a common name for code transformations that modifies loop nest to make it legal to
204 run them in parallel.
}
206 \item[directive generation
]{
207 is a common name for code transformations that annotate the code with directives.
}
209 \item[constant propagation
]{
210 is a pass that replaces a variable by its value when this value is
211 known at compile time.
}
213 \item[instruction selection
]{
214 is the process of mapping parts of the IR to machine instructions.
}
216 \item[goto elimination
]{
217 is the process of replacing
\texttt{goto
} instructions by a hierarchical control flow
221 is the process of extracting part of a function body into a new function
222 and replacing it in the initial function by a function call.
}
224 \item[common subexpression elimination
]{
225 is the process of replacing similar expressions by a variable that holds
226 the result of their evaluation.
}
230 \item[statement isolation
]{is the process of replacing all
231 variables referenced in a statement by newly declared variables. A
233 and an epilogue are added to copy old variable values to new variable, back
236 \item[dead code elimination
]{is the process of pruning from a
237 function all the statements whose results are
240 \item[array linearization
]{is the process of converting
241 multidimensional array into unidimensional arrays, possibly with a
242 conversion from array to pointer.
}
245 \item[iteration clamping
]{is a loop transformation that extends
246 the loop range but guards the loop body with the former range.
}
248 \item[flatten code
]{is the process of pruning a function body from
249 declaration blocks so that all declarations are made at the top level.
}
251 \item[strength reduction
]{is the process of replacing an operation
252 by an operation of lower cost.
}
254 \item[split update operator
]{is the process of replacing an update
255 operator by its expanded form.
}
257 \item[n address code generation
]{is the process of splitting
258 complex expression in simpler ones that take at most \(n\) operands.
}
260 \item[memory footprint reduction
]{is the process of tiling a loop
261 to make sure the iteration over the tile has a memory footprint bounded by
264 \item[redundant load-store elimination
]{is an inter procedural transformation
265 that optimizes data transfers by delaying and merging them.
}
267 \item[invariant code motion
]{is a loop transformation that moves outside
269 the code from its body that is independent from the iteration.
}
273 \item[loop rerolling
]{finds manually unrolled loop and replace
274 them by their non-unrolled version.
}
279 \bibliographystyle{alpha
}