1 \documentclass[pdftex,
a4paper,
11pt
]{report}
3 \usepackage[utf8
]{inputenc}
4 \usepackage[T1]{fontenc}
5 \usepackage[english
]{babel
}
12 \newcommand\PIPS{PIPS
\xspace}
14 \title{\PIPS~--- List of code transformations
}
24 % memory allocation alteration
26 % loop transformations
31 \item loop interchange
32 \item loop normalization
33 % inter procedural transformations
35 % basic bloc transformations
36 \item forward substitution
38 \item constant propagation
39 \item dead code elimination
42 \item array linearization
43 \item common subexpression elimination
44 \item directive generation
46 \item goto elimination
47 \item instruction selection
48 \item invariant code motion
49 \item iteration clamping
50 \item loop unswitching
51 \item memory footprint reduction
52 \item n adress code generation
54 \item parallelism detection
55 \item parallelism extraction
57 \item reduction detection
58 \item redundant load-store elimination
59 \item split update operator
60 \item statement isolation
61 \item strengh reduction
69 % memory allocation alteration
71 \item scalar/array expansion
72 \item scalar/array privatization
73 \item scalarization
% according to .pdf, not supported by Pips
74 \item variable copying
% not supported by Pips
75 % loop transformations
76 \item index set splitting
% not supported by Pips
77 \item loop peeling
% not supported by Pips
79 \item loop rerolling
% not supported by Pips
80 \item full loop unrolling
81 \item idiom recognition
82 \item unswitching
% not supported by Pips
83 \item loop fusion
% not supported by Pips
84 \item loop fission/loop distribution
85 \item loop normalization
86 \item unimodular loop transformation/hyperplane method
87 \item loop interchange
88 \item loop reversal
% not supported by Pips
90 \item non-unimodular loop transformation
91 \item strip-mining (loop sectionning)
92 \item loop coalescing/loop collapsing
% not supported by Pips
94 \item loop parallelization
95 \item loop vectorization
% not supported by Pips
96 \item loop invariant code motion
97 \item software pipelining
% not supported by Pips
98 \item locality increazing
99 % interprocedural transformations
100 \item loop embedding/loop jamming
% not supported by Pips
101 \item procedure inlining
% not supported by Pips
102 \item procedure cloning
103 % basic bloc transformations
105 \item forward expression substitution
106 \item induction variable substitution
% not supported by Pips
108 \item statement reordering
% not supported by Pips
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
120 \chapter{List of
\PIPS transformations
}
122 \section{Memory allocation alteration
}
126 \item[scalar renaming
]{is the process of renaming scalar variables to suppress false data dependencies.
}
128 \item[privatization
]{is the process of detecting variables that are private to a loop body, i.e.\ written first, then read.
}
133 \section{Loop transformations
}
137 \item[loop unrolling
]{is a loop transformation.
138 Unrolling a loop by a factor of \(n\) consists in the substitution of a loop body by itself, replicated \(n\) times.
139 A prelude and/or postlude are added to preserve the number of iteration.
}
141 \item[loop fusion
]{is a loop transformation that replaces two loops by a single loops whose body is the concatenation of the bodies of the two initial loops.
}
143 \item[loop tiling
]{is a loop nest transformation that changes the loop execution order through a partitions of the iteration space into chunks, so that the iteration is performed over each chunk and in the chunks.
}
145 \item[loop interchange
]{is a loop transformation that permutes two loops from a loop nest.
}
147 \item[loop unswitching
]{is a loop transformation that replaces a loop containing a test independent from the loop execution by a test containing the loop without the test in both true and false branch.
}
149 \item[loop normalization
]{is a loop transformation that changes the loop initial increment value or the loop range to enforce certain values, generally~
1.
}
153 \section{Interprocedural transformations
}
155 \section{Base blocs transformations
}
157 \section{Dead code removal
}
161 \item[inlining
]{is a function transformation.
162 Inlining a function
\texttt{foo
} in its caller
\texttt{bar
} consists in the substitution of the calls to
\texttt{foo
} in
\texttt{bar
} by the function body after replacement of the formal parameters by their effective parameters.
}
164 \item[forward substitution
]{is the process of replacing a reference read in an expression by the latest expression affected to it.
}
166 \item[reduction detection
]{is an analysis that identifies statements that perform a reduction over a variable.
}
168 \item[parallelism detection
]{is a common name for analysis that detect if a loop can be run in parallel.
}
170 \item[parallelism extraction
]{is a common name for code transformations that modifies loop nest to make it legal to run them in parallel.
}
172 \item[directive generation
]{is a common name for code transformations that annotate the code with directives.
}
174 \item[constant propagation
]{is a pass that replaces a variable by its value when this value is known at compile time.
}
176 \item[instruction selection
]{is the process of mapping parts of the IR to machine instructions.
}
178 \item[goto elimination
]{is the process of replacing
\texttt{goto
} instructions by a hierarchical control flow graph.
}
180 \item[outlining
]{is the process of extracting part of a function body into a new function and replacing it in the initial function by a function call.
}
182 \item[common subexpression elimination
]{is the process of replacing similar expressions by a variable that holds the result of their evaluation.
}
184 \item[statement isolation
]{is the process of replacing all variables referenced in a statement by newly declared variables.
185 A prologue and an epilogue are added to copy old variable values to new variable, back and forth.
}
187 \item[dead code elimination
]{is the process of pruning from a function all the statements whose results are never used.
}
189 \item[array linearization
]{is the process of converting multidimensional array into unidimensional arrays, possibly with a conversion from array to pointer.
}
191 \item[iteration clamping
]{is a loop transformation that extends the loop range but guards the loop body with the former range.
}
193 \item[flatten code
]{is the process of pruning a function body from declaration blocks so that all declarations are made at the top level.
}
195 \item[strength reduction
]{is the process of replacing an operation by an operation of lower cost.
}
197 \item[split update operator
]{is the process of replacing an update operator by its expanded form.
}
199 \item[n address code generation
]{is the process of splitting complex expression in simpler ones that take at most \(n\) operands.
}
201 \item[memory footprint reduction
]{is the process of tiling a loop to make sure the iteration over the tile has a memory footprint bounded by a given value.
}
203 \item[redundant load-store elimination
]{is an inter procedural transformation that optimizes data transfers by delaying and merging them.
}
205 \item[invariant code motion
]{is a loop transformation that moves outside of the loop the code from its body that is independent from the iteration.
}
207 \item[loop rerolling
]{finds manually unrolled loop and replace them by their non-unrolled version.
}
212 \bibliographystyle{alpha
}
213 \bibliography{\jobname}