]>
Commit | Line | Data |
---|---|---|
d42ff7d1 | 1 | 2010-09-23 Sebastian Pop <sebastian.pop@amd.com> |
2 | ||
3 | PR middle-end/45758 | |
4 | * gfortran.dg/graphite/pr45758.f90: New. | |
5 | ||
ef0c3d68 | 6 | 2010-09-23 Sebastian Pop <sebastian.pop@amd.com> |
7 | ||
8 | * graphite-scop-detection.c (is_scop_p): Free bblist. | |
9 | ||
27ac41fd | 10 | 2010-09-23 Sebastian Pop <sebastian.pop@amd.com> |
11 | ||
12 | * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le | |
13 | and ps. | |
14 | * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and | |
15 | domain. | |
16 | * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit): | |
17 | Do not allocate ub_expr, it is passed in initialized. | |
18 | ||
acad129f | 19 | 2010-09-21 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
20 | ||
21 | * common.opt (fgraphite-dump-cloog): New flag. | |
22 | * doc/invoke.texi (-fgraphite-dump-cloog): Documented. | |
23 | * graphite-clast-to-gimple.c (init_cloog_input_file): New. | |
24 | (build_cloog_prog): Dump CLooG input file when | |
25 | flag_graphite_dump_cloog is set. | |
26 | * graphite-cloog-compat.h (cloog_program_dump_cloog): New. | |
27 | ||
28 | 2010-09-20 Sebastian Pop <sebastian.pop@amd.com> | |
29 | ||
30 | Revert previous patch "New flag: -fgraphite-dump-cloog." | |
31 | ||
32 | 2010-09-20 Andreas Simbuerger <simbuerg@fim.uni-passau.de> | |
33 | ||
34 | * common.opt (fgraphite-dump-cloog): New flag. | |
35 | * doc/invoke.texi (-fgraphite-dump-cloog): Documented. | |
36 | * graphite-clast-to-gimple.c (init_cloog_input_file): New. | |
37 | (build_cloog_prog): Dump CLooG input file when | |
38 | flag_graphite_dump_cloog is set. | |
39 | ||
c0baaa7a | 40 | 2010-09-20 Sebastian Pop <sebastian.pop@amd.com> |
41 | ||
42 | * graphite-clast-to-gimple.c (graphite_verify): Remove call to | |
43 | verify_dominators for CDI_POST_DOMINATORS. | |
44 | * sese.h: Remove comment about CDI_POST_DOMINATORS. | |
45 | (recompute_all_dominators): Remove call to free_dominance_info | |
46 | for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info | |
47 | for CDI_POST_DOMINATORS. | |
48 | ||
dd37d9f7 | 49 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
50 | ||
51 | * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate | |
52 | over pbb_dim_iter_domain. | |
53 | ||
f58b534d | 54 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
55 | ||
56 | * graphite-flattening.c: Fix comments. | |
57 | ||
d60a90cc | 58 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
59 | ||
60 | * Makefile.in (OBJS-common): Add graphite-flattening.o. | |
61 | (graphite-flattening.o): New rule. | |
62 | * common.opt (floop-flatten): New flag. | |
63 | * doc/invoke.texi (-floop-flatten): Documented. | |
64 | * graphite-flattening.c: New. | |
65 | * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops. | |
66 | * graphite-poly.h (flatten_all_loops): Declared. | |
67 | (lst_remove_loop_and_inline_stmts_in_loop_father): New. | |
68 | * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten | |
69 | is set, also set flag_graphite. | |
70 | ||
079f4f8c | 71 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
72 | ||
73 | * graphite-poly.c (cloog_checksum): New. | |
74 | * graphite-poly.h (cloog_checksum): Declared. | |
75 | ||
bd432164 | 76 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
77 | ||
78 | * graphite-poly.c (pbb_number_of_iterations): Removed. | |
79 | (pbb_number_of_iterations_at_time): Correctly compute the number | |
80 | of iterations in the transformed loop. | |
81 | * graphite-poly.h (pbb_number_of_iterations): Removed. | |
82 | ||
119c0edf | 83 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
84 | ||
85 | * graphite-poly.h (lst_update_scattering_seq): Removed. | |
86 | (lst_update_scattering): Correctly handle outermost loop dewey | |
87 | renumbering. | |
88 | ||
63835205 | 89 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
90 | ||
91 | * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed | |
92 | lst_strip_mine_profitable_p. Call lst_niter_for_loop. | |
93 | * graphite-poly.h (lst_niter_for_loop): New. | |
94 | ||
416d9c24 | 95 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
96 | ||
97 | * graphite-poly.c (apply_poly_transforms): Do not abort when the | |
98 | transform read from disk is not legal. Call fatal_error instead. | |
99 | ||
d2cd543b | 100 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
101 | ||
102 | * graphite-poly.c (print_pbb_body): Add missing closing parenthesis. | |
103 | (print_scop_header): Removed. Inlined in the only call place... | |
104 | (print_scop): ... here. | |
105 | ||
323be14f | 106 | 2010-09-09 Sebastian Pop <sebastian.pop@amd.com> |
107 | ||
108 | * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT. | |
109 | ||
37336b6b | 110 | 2010-09-02 Vladimir Kargov <kargov@gmail.com> |
111 | ||
112 | * graphite-scop-detection.c (is_valid_expr_p, is_valid_loop_p): New. | |
113 | (is_valid_stmt_p): Add data reference and operation-specific checks. | |
114 | (is_valid_bb_p): Change structure, add loop validity check. | |
115 | (is_scop_p): Move the TODO list | |
116 | (find_scops_new): New. | |
117 | (build_scops_new): Move part of functionality to find_scops_new and | |
118 | build_scops. Add necessary steps for successful SCoP construction. | |
119 | (build_scops): Compute SCoP sets for both detection algorithms, choose | |
120 | the resulting one depending on static condition. | |
121 | ||
e7560952 | 122 | 2010-08-24 Sebastian Pop <sebastian.pop@amd.com> |
123 | ||
124 | * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning. | |
125 | ||
97b0e4df | 126 | 2010-08-24 Sebastian Pop <sebastian.pop@amd.com> |
127 | ||
128 | * graphite-dependences.c (dot_deps): Avoid set but not used warning. | |
129 | (dot_deps_stmt): Same. | |
130 | * graphite-poly.c (dot_lst): Same. | |
131 | ||
c7f969c4 | 132 | 2010-08-23 Sebastian Pop <sebastian.pop@amd.com> |
133 | ||
134 | * graphite-blocking.c (scop_do_strip_mine): Do not call | |
135 | graphite_legal_transform. | |
136 | (scop_do_block): Same. | |
137 | ||
168e8fc0 | 138 | 2010-08-20 Vladimir Kargov <kargov@gmail.com> |
139 | ||
140 | * graphite-scop-detection.c (graphite_can_represent_loop): Correct the | |
141 | description. | |
142 | ||
36f62589 | 143 | 2010-08-20 Sebastian Pop <sebastian.pop@amd.com> |
144 | ||
145 | PR middle-end/45230 | |
146 | * gcc.dg/graphite/id-pr45230.c: New. | |
147 | ||
3e0b5bba | 148 | 2010-08-20 Sebastian Pop <sebastian.pop@amd.com> |
149 | ||
150 | * tree-scalar-evolution.c (instantiate_array_ref): New. | |
151 | (instantiate_scev_r): Also handle ARRAY_REFs. | |
152 | ||
a05095f9 | 153 | 2010-08-20 Sebastian Pop <sebastian.pop@amd.com> |
154 | ||
155 | * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop): | |
156 | Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL, | |
157 | RESULT_DECL, and FIELD_DECL. Return false for an | |
158 | SSA_NAME_IS_DEFAULT_DEF. | |
159 | (compute_scalar_evolution_in_loop): Do not further analyze the | |
160 | scalar evolution when no_evolution_in_loop_p returns true. | |
161 | ||
bef5a5f5 | 162 | 2010-08-20 Sebastian Pop <sebastian.pop@amd.com> |
163 | ||
164 | * tree-chrec.h (evolution_function_is_affine_p): Do not check | |
165 | whether CHREC_LEFT is invariant. A function is affine when | |
166 | CHREC_RIGHT is invariant. | |
167 | ||
7ba04629 | 168 | 2010-08-20 Sebastian Pop <sebastian.pop@amd.com> |
169 | ||
170 | * graphite-sese-to-poly.c (reduction_phi_p): Remove check for | |
171 | is_gimple_reg. | |
172 | (rewrite_degenerate_phi): Same. | |
173 | (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg. | |
174 | ||
e3135850 | 175 | 2010-08-18 Vladimir Kargov <kargov@gmail.com> |
176 | ||
177 | * graphite-scop-detection.c (graphite_can_represent_scev, | |
7ba04629 | 178 | graphite_can_represent_expr, stmt_has_simple_data_refs_p, |
e3135850 | 179 | graphite_can_represent_loop): Remove outermost_loop. |
180 | ||
a4a4b66a | 181 | 2010-08-17 Sebastian Pop <sebastian.pop@amd.com> |
182 | ||
183 | PR middle-end/45229 | |
184 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not | |
185 | handle GIMPLE_CALLs with no LHS. | |
186 | ||
0d5d0b4d | 187 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
188 | Sebastian Pop <sebastian.pop@amd.com> | |
189 | ||
190 | * gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write. | |
191 | Call remove-build-file to clean up the generated *.graphite files. | |
192 | ||
193 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> | |
1aefcf09 | 194 | |
195 | * doc/invoke.texi (debugging options): Update documentation. | |
196 | (-floop-interchange): Same. | |
197 | (-flopp-strip-mine): Same. | |
198 | (-floop-block): Same. | |
199 | (-fgraphite-read): Add documentation. | |
200 | (-fgraphite-write): Same. | |
201 | ||
0d5d0b4d | 202 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
91a594b4 | 203 | |
204 | * toplev.c (process_options): Disable graphite loop optimization | |
205 | options when -fgraphite-read flag is used. | |
206 | ||
c64f5631 | 207 | 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
208 | ||
209 | * graphite-poly.c (init_graphite_out_file): New. | |
210 | (init_graphite_in_file): New. | |
211 | (apply_poly_transforms): Updated to enable reading and writing of | |
212 | multiple scop files. | |
213 | * toplev.c (init_asm_output): Remove graphite in/out file initialization. | |
214 | ||
629787af | 215 | 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de> |
216 | ||
217 | * graphite-scop-detection.c (graphite_can_represent_scev): Remove | |
218 | redundant checks. | |
219 | ||
3648398c | 220 | 2010-08-12 Sebastian Pop <sebastian.pop@amd.com> |
221 | ||
222 | * graphite-clast-to-gimple.c (precision_for_value): Adjust | |
223 | computation of precision by 1. | |
224 | ||
63b03ccf | 225 | 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
226 | ||
227 | * graphite-cloog-util.c (openscop_read_cloog_matrix): New. | |
228 | (openscop_read_polyhedron_matrix): New. | |
229 | * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared. | |
230 | (openscop_read_N_int): Same. | |
231 | * graphite-poly.c (openscop_read_N_int): New. | |
232 | (openscop_read_one_int): New. | |
233 | (openscop_read_N_string): New. | |
234 | (openscop_read_one_string): New. | |
235 | (openscop_read_powerset_matrix): New. | |
236 | (graphite_read_transforms): Remove. | |
237 | (graphite_read_scatt): New. | |
238 | (graphite_read_scop_file): New. | |
239 | (apply_poly_transforms): Updated to call graphite_read_scop_file. | |
240 | ||
f2459691 | 241 | 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
242 | ||
243 | * graphite-poly.c: Change include order. | |
244 | ||
f366948c | 245 | 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
246 | ||
247 | * graphite-cloog-compat.h (cloog_matrix_ncolumns): New. | |
248 | (cloog_matrix_nrows): New. | |
249 | ||
086610eb | 250 | 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
251 | ||
252 | * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces | |
253 | from matrix lines. | |
254 | * graphite-poly.c (openscop_print_scattering_function_1): Same. | |
255 | (print_scattering_function_1): Same. | |
256 | (openscop_print_pbb_domain): Same. | |
257 | (openscop_print_scop_context): Same. | |
258 | (print_scop_context): Same. | |
259 | ||
c8f5df71 | 260 | 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
261 | ||
262 | * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation. | |
263 | (openscop_print_pdr_polyhedron): Print pph. | |
264 | ||
650f2420 | 265 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
266 | ||
267 | * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files. | |
268 | * gfortran.dg/graphite/graphite.exp: Same. | |
269 | * gcc.dg/graphite/vect-pr43423.c: New. | |
270 | ||
be90fd3f | 271 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
272 | ||
273 | * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in | |
274 | priority signed types. | |
275 | ||
e84af3c1 | 276 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
277 | ||
278 | * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call | |
279 | to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type. | |
280 | ||
8c4b14b0 | 281 | 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com> |
282 | ||
283 | * graphite-cloog-util.c (openscop_print_cloog_matrix): New. | |
284 | (openscop_print_polyhedron_matrix): New. | |
285 | * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared. | |
286 | * graphite-poly.c (openscop_print_pdr_polyhedron): Same. | |
287 | (openscop_print_pdr_powerset): New. | |
288 | (openscop_print_powerset_matrix): New. | |
289 | (openscop_print_scattering_function_1): New. | |
290 | (print_scattering_function): Add support for scattering names and | |
291 | OpenScop format. | |
292 | (graphite_write_transforms): Remove. | |
293 | (apply_poly_transforms): Updated to call print_scop. | |
294 | (print_pdr_access_layout): Updated to support OpenScop format. | |
295 | (print_pdr): Same. | |
296 | (openscop_print_pbb_domain): New. | |
297 | (print_pbb_body): Added a parameter to allow indicating that pbb_body is | |
298 | not provided. | |
299 | (print_pbb): Updated to call the new print_pbb_body. | |
300 | (openscop_print_scop_context): New. | |
301 | (print_scop_header): New. | |
302 | (print_scop): Updated to call print_scop_header. | |
303 | * graphite-poly.h: Document OpenScop format. | |
304 | ||
68a6a8ba | 305 | 2010-07-29 Sebastian Pop <sebastian.pop@amd.com> |
306 | ||
307 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back | |
308 | the case removed in the previous patch, when the only phi argument | |
309 | is defined in the same loop as the phi node itself. Handle it | |
310 | separately from the invariant case by both propagating it outside | |
311 | the region and replacing the phi node with an assign. | |
312 | ||
51ec8951 | 313 | 2010-07-28 Sebastian Pop <sebastian.pop@amd.com> |
314 | ||
315 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only | |
316 | constant phi nodes with one argument are is_gimple_min_invariant | |
317 | and SSA_NAME_IS_DEFAULT_DEF. | |
318 | ||
319 | * gfortran.dg/graphite/id-22.f: New. | |
320 | ||
04b8cadb | 321 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
322 | ||
f0fc00f2 | 323 | * graphite.c (graphite_initialize): Do not initialize |
324 | CLooG and initialize the Parma Polyhedra Library | |
325 | manually when using CLOOG_ORG. | |
326 | (graphite_finalize): Do not finalize CLooG and finalize | |
327 | the Parma Polyhedra Library manually when using CLOOG_ORG. | |
328 | * graphite-cloog-compat.h (cloog_initialize): Hide function | |
329 | when using CLOOG_ORG. | |
330 | (cloog_finalize): Same. | |
331 | ||
a2c572ef | 332 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
f0fc00f2 | 333 | |
04b8cadb | 334 | * graphite-clast-to-gimple.c (free_scattering): Change |
335 | CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering | |
336 | (CLOOG_ORG). | |
337 | (build_cloog_prog): Same. | |
338 | * graphite-cloog-compat.h (cloog_domain): Removed. | |
339 | (cloog_scattering): New. | |
340 | (cloog_set_domain): Removed. | |
341 | (cloog_set_scattering): New. | |
342 | (cloog_next_domain): Removed. | |
343 | (cloog_next_scattering): New. | |
344 | (cloog_set_next_domain): Removed. | |
345 | (cloog_set_next_scattering): New. | |
346 | (CloogScatteringList): New. | |
347 | (CloogScattering): New. | |
348 | (cloog_scattering_free): New. | |
349 | (new_Cloog_Scattering_from_ppl_Polyhedron): New. | |
350 | * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron): | |
351 | New. | |
352 | ||
08a88144 | 353 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
354 | ||
355 | * graphite-clast-to-gimple.c (build_cloog_prog): Extend with | |
356 | CloogState. | |
357 | (set_cloog_options): Same. | |
358 | (print_clast_stmt): Same. | |
359 | (scop_to_clast): Same. | |
360 | (print_generated_program): Same. | |
361 | (gloog): Same. | |
362 | * graphite-clast-to-gimple.h: Include graphite-cloog-util.h. | |
363 | (scop_to_clast): Extend with CloogState. | |
364 | * graphite-cloog-util.c: Include graphite-cloog-compat.h | |
365 | (new_Cloog_Domain_from_ppl_Polyhedron): | |
366 | Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG). | |
367 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState. | |
368 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
369 | * graphite-cloog-util.h (build_cloog_prog): Same. | |
370 | * graphite-cloog-copat.h (build_cloog_prog): New. | |
371 | (CloogState): New. | |
372 | (cloog_state_malloc): New. | |
373 | (cloog_state_free): New. | |
374 | (cloog_loop_malloc): New. | |
375 | (cloog_options_malloc): New. | |
376 | (cloog_statement_alloc): New. | |
377 | (cloog_domain_from_cloog_matrix): New. | |
378 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. | |
379 | (new_Cloog_Domain_from_ppl_Polyhedron): New. | |
380 | ||
2e6bc1c7 | 381 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
382 | ||
383 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter | |
384 | type of NAME now depends on used CLooG version. | |
385 | (clast_to_gcc_expression): Replace expr_* with clast_expr_*. | |
386 | (gcc_type_for_clast_expr): Same. | |
387 | (print_clast_stmt): Replace pprint with clast_pprint. | |
388 | * graphite-cloog-compat.h: Provide compatibility macros for | |
389 | CLooG Legacy. | |
390 | (clast_name_p): New. | |
391 | (clast_expr_term): New. | |
392 | (clast_expr_red): New. | |
393 | (clast_expr_bin): New. | |
394 | (clast_pprint): New. | |
395 | ||
ebd32a89 | 396 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
397 | ||
398 | * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options | |
399 | compatible to newer CLooG releases (CLOOG_ORG). | |
400 | (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG). | |
401 | (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG). | |
402 | * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy. | |
403 | (build_cloog_prog) : New. | |
404 | (cloog_program_extract_scalars): New. | |
405 | (cloog_program_scatter): New. | |
406 | ||
1b2c23d4 | 407 | 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
408 | ||
409 | * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h | |
410 | conditionally (CLOOG_ORG). | |
411 | * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h. | |
412 | (cloog_statement_usr): New. | |
413 | (cloog_domain): Same. | |
414 | (cloog_set_domain): Same. | |
415 | (cloog_next_domain): Same. | |
416 | (cloog_set_next_domain): Same. | |
417 | (cloog_program_nb_scattdims): Same. | |
418 | (cloog_program_set_nb_scattdims): Same. | |
419 | (cloog_program_names): Same. | |
420 | (cloog_program_set_names): Same. | |
421 | (cloog_program_set_context): Same. | |
422 | (cloog_program_set_loop): Same. | |
423 | (cloog_program_blocklist): Same. | |
424 | (cloog_program_set_blocklist): Same. | |
425 | (cloog_program_scaldims): Same. | |
426 | (cloog_program_set_scaldims): Same. | |
427 | (cloog_names_nb_parameters): Same. | |
428 | (cloog_names_set_nb_parameters): Same. | |
429 | (cloog_names_parameters): Same. | |
430 | (cloog_names_set_parameters): Same. | |
431 | (cloog_names_set_nb_iterators): Same. | |
432 | (cloog_names_set_iterators): Same. | |
433 | (cloog_names_set_nb_scattering): Same. | |
434 | (cloog_names_set_scattering): Same. | |
435 | (cloog_statement_set_usr): Same. | |
436 | (cloog_loop_set_next): Same. | |
437 | (cloog_loop_set_domain): Same. | |
438 | (cloog_loop_set_block): Same. | |
439 | (cloog_block_list_next): Same. | |
440 | (cloog_block_list_set_next): | |
441 | (cloog_block_list_set_block): Same. | |
442 | ||
c9a67530 | 443 | 2010-07-27 Sebastian Pop <sebastian.pop@amd.com> |
444 | ||
445 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns | |
446 | a bool. | |
447 | (rewrite_commutative_reductions_out_of_ssa_close_phi): Same. | |
448 | (rewrite_commutative_reductions_out_of_ssa_loop): Same. | |
449 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab | |
450 | when something has been changed. | |
451 | (rewrite_commutative_reductions_out_of_ssa): Same. | |
452 | ||
453 | * gcc.dg/graphite/id-26.c: New. | |
454 | ||
ed455480 | 455 | 2010-07-26 Sebastian Pop <sebastian.pop@amd.com> |
456 | ||
457 | * graphite-sese-to-poly.c (propagate_expr_outside_region): Also | |
458 | handle the case when def is in the sese region. | |
459 | (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region | |
460 | for invariant expressions. | |
461 | (rewrite_cross_bb_phi_deps): Removed. | |
462 | (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes. | |
463 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call | |
464 | rewrite_cross_bb_phi_deps. | |
465 | ||
72085fb7 | 466 | 2010-07-26 Sebastian Pop <sebastian.pop@amd.com> |
467 | ||
468 | * graphite-sese-to-poly.c | |
469 | (rewrite_commutative_reductions_out_of_ssa_loop): Call | |
470 | scev_analyzable_p only on is_gimple_reg | |
471 | ||
472 | * gcc.dg/graphite/id-25.c: New. | |
473 | ||
5d21c24a | 474 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
475 | ||
476 | * graphite-sese-to-poly.c (propagate_expr_outside_region): New. | |
477 | (rewrite_close_phi_out_of_ssa): Propagate constant values or | |
478 | parametric expressions outside the scop region. | |
479 | (rewrite_cross_bb_scalar_deps): Same. | |
480 | * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees. | |
481 | ||
482 | * gcc.dg/graphite/run-id-5.c: New. | |
483 | * gcc.dg/graphite/run-id-6.c: New. | |
484 | * gfortran.dg/graphite/id-21.f: New. | |
485 | ||
a865acd7 | 486 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
487 | ||
488 | * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use | |
489 | SSA_NAME_DEF_STMT only on SSA_NAMEs. | |
490 | ||
491 | * gcc.dg/graphite/id-24.c: New. | |
492 | ||
52f57b4e | 493 | 2010-07-22 Sebastian Pop <sebastian.pop@amd.com> |
494 | ||
495 | * tree-scalar-evolution.c (instantiate_scev_name): Do not | |
496 | instantiate default definitions. | |
497 | ||
c07c57fb | 498 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
499 | ||
500 | * graphite-scop-detection.c (is_valid_stmt_p): New. | |
501 | (is_valid_bb_p): New. | |
502 | ||
259c0e44 | 503 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
504 | Sebastian Pop <sebastian.pop@amd.com> | |
505 | ||
506 | * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p. | |
507 | (loop_exits_from_bb_p): New. | |
508 | * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p. | |
509 | (loop_exits_from_bb_p): Declared. | |
510 | * graphite-scop-detection.c (scopdet_basic_block_info): Call | |
511 | loop_exits_to_bb_p. | |
512 | ||
000edd14 | 513 | 2010-07-20 Vladimir Kargov <kargov@gmail.com> |
514 | ||
515 | * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and | |
516 | tree-data-ref.h. | |
517 | (dot_regions_1): New. | |
518 | (dot_regions): New. | |
519 | * refined-regions.h (dot_regions): Declared. | |
520 | * Makefile.in (refined-regions.o): Update dependences. | |
521 | ||
38f26d41 | 522 | 2010-07-20 Sebastian Pop <sebastian.pop@amd.com> |
523 | ||
524 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an | |
525 | extra parameter for the region. Call scev_analyzable_p. | |
526 | (rewrite_reductions_out_of_ssa): Update call to | |
527 | rewrite_close_phi_out_of_ssa. | |
528 | (rewrite_cross_bb_phi_deps): Same. | |
529 | (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra | |
530 | parameter for the region. Call scev_analyzable_p. | |
531 | (rewrite_commutative_reductions_out_of_ssa): Update call to | |
532 | rewrite_commutative_reductions_out_of_ssa_loop. | |
533 | ||
e075a7a2 | 534 | 2010-07-20 Sebastian Pop <sebastian.pop@amd.com> |
535 | ||
536 | * gcc.dg/tree-ssa/pr20742.c: New. | |
537 | ||
39888e8f | 538 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
539 | ||
540 | * sese.c (rename_uses): Call unshare_expr before force_gimple_operand. | |
541 | ||
542 | * gcc.dg/graphite/id-23.c: New. | |
543 | ||
15822b8e | 544 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
545 | ||
546 | * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of | |
547 | SSA scalar phi nodes that can be scev_analyzable_p. | |
548 | ||
549 | * gfortran.dg/graphite/id-20.f: Adjust testcase. | |
550 | ||
49253930 | 551 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
552 | ||
553 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly | |
554 | handle SSA_NAME_IS_DEFAULT_DEF. | |
555 | ||
bac2de0b | 556 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
557 | ||
558 | * sese.c (rename_uses): Handl unconditionally gimple_debug statements. | |
559 | ||
560 | * gcc.dg/graphite/pr42729.c: New. | |
561 | ||
55c89f69 | 562 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
563 | ||
564 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special | |
565 | case non close-phi nodes with one argument. | |
566 | ||
32a6e336 | 567 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
568 | ||
569 | * sese.h (scev_analyzable_p): Scevs could be expressions without | |
570 | chrecs and still be scev_analyzable_p. | |
571 | ||
a73166c0 | 572 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
573 | ||
574 | * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100. | |
575 | ||
18046220 | 576 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
577 | ||
578 | * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv. | |
579 | * cfgloop.h (struct loop): Remove single_iv field. | |
580 | * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed. | |
581 | (scop_canonicalize_loops): Removed. | |
582 | (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate | |
583 | over all the loop phi nodes in loop->header. | |
584 | (build_poly_scop): Remove use of scop_canonicalize_loops. | |
585 | ||
b19b9f62 | 586 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
587 | ||
588 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also | |
589 | handle GIMPLE_CALL. | |
590 | ||
9e4cd968 | 591 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
592 | ||
593 | * tree-chrec.c (chrec_apply): Should only apply to the specified | |
594 | variable. Also handle multivariate chains of recurrences that | |
595 | satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT. | |
596 | ||
4ed27c8e | 597 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
598 | ||
599 | * graphite-clast-to-gimple.c (debug_clast_name_index): Removed. | |
600 | (debug_clast_name_indexes_1): Removed. | |
601 | (debug_clast_name_indexes): Removed. | |
602 | (pbb_to_depth_to_oldiv): Removed. | |
603 | (build_iv_mapping): Replace the use of rename_map with iv_map. | |
604 | (translate_clast_user): Remove uses of rename_map. Allocate and | |
605 | free iv_map. | |
606 | (translate_clast_for_loop): Remove uses of rename_map. | |
607 | (translate_clast_for): Same. | |
608 | (translate_clast_guard): Same. | |
609 | (translate_clast): Same. | |
610 | (gloog): Same. | |
611 | * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed. | |
612 | * graphite-sese-to-poly.c (scev_analyzable_p): Moved... | |
613 | * sese.c (set_rename): Now static. | |
614 | (rename_variables_in_stmt): Removed. | |
615 | (rename_uses): New. | |
616 | (is_parameter): Removed. | |
617 | (is_iv): Removed. | |
618 | (expand_scalar_variables_call): Removed. | |
619 | (expand_scalar_variables_ssa_name): Removed. | |
620 | (expand_scalar_variables_expr): Removed. | |
621 | (expand_scalar_variables_stmt): Removed. | |
622 | (expand_scalar_variables): Removed. | |
623 | (rename_variables): Removed. | |
624 | (remove_condition): Removed. | |
625 | (get_true_edge_from_guard_bb): Removed. | |
626 | (get_false_edge_from_guard_bb): Removed. | |
627 | (struct igp): Removed. | |
628 | (default_before_guard): Removed. | |
629 | (convert_for_phi_arg): Removed. | |
630 | (add_guard_exit_phis): Removed. | |
631 | (insert_guard_phis): Removed. | |
632 | (graphite_copy_stmts_from_block): Now also uses iv_map and a | |
633 | region. Do not copy conditions. Do not copy induction variables. | |
634 | Call rename_uses. | |
635 | (copy_bb_and_scalar_dependences): Allocate a local rename_map for | |
636 | the translated statement. Use the iv_map for the induction | |
637 | variable renaming. | |
638 | * sese.h (copy_bb_and_scalar_dependences): Update declaration. | |
639 | (set_rename): Removed declaration. | |
640 | (scev_analyzable_p): ...here. | |
641 | * tree-chrec.c (chrec_apply_map): New. | |
642 | * tree-chrec.h (chrec_apply_map): Declared. | |
643 | ||
5b87c555 | 644 | 2010-07-15 Sebastian Pop <sebastian.pop@amd.com> |
645 | ||
646 | * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call | |
647 | insert_loop_close_phis. | |
648 | * sese.c (name_defined_in_loop_p): Removed. | |
649 | (expr_defined_in_loop_p): Removed. | |
650 | (alive_after_loop): Removed. | |
651 | (close_phi_not_yet_inserted_p): Removed. | |
652 | (struct alep): Removed. | |
653 | (add_loop_exit_phis): Removed. | |
654 | (insert_loop_close_phis): Removed. | |
655 | ||
2c4340a8 | 656 | 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
657 | ||
5b87c555 | 658 | * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped |
659 | condition. | |
660 | * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same. | |
2c4340a8 | 661 | |
38df5b0a | 662 | 2010-07-07 Sebastian Pop <sebastian.pop@amd.com> |
663 | ||
664 | * gfortran.dg/graphite/id-20.f: New. | |
665 | ||
e0e27d35 | 666 | 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
667 | ||
668 | * graphite-cloog-util.h: Added cloog.h. | |
669 | * graphite-blocking.c: Removed cloog.h. | |
670 | * graphite-dependences.c: Same. | |
671 | * graphite-interchange.c: Same. | |
672 | * graphite-poly.c: Same. | |
673 | * graphite-ppl.c: Same. | |
674 | * graphite-scop-detection.c: Same. | |
675 | * graphite-sese-to-poly.c: | |
676 | Removed cloog.h. | |
677 | Removed graphite-clast-to-gimple.h. | |
678 | (check_poly_representation): Removed (unused). | |
679 | * graphite-sese-to-poly.h | |
680 | (check_poly_representation): Removed (unused). | |
681 | ||
30185452 | 682 | 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
683 | ||
684 | * Makefile.in | |
685 | (OBJS-common): Added graphite-cloog-util.o. | |
686 | (graphite-clast-to-gimple.o): Added graphite-cloog-util.h. | |
687 | (graphite-cloog-util.o): New. | |
688 | (graphite-ppl.o): Added graphite-cloog-util.h. | |
689 | * graphite-clast-to-gimple.c: | |
690 | Added graphite-cloog-util.h to include statements. | |
691 | * graphite-cloog-util.c: New. | |
692 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c. | |
693 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
694 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
695 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
696 | (ppl_Constrain_System_number_of_constraints): Same. | |
697 | (new_Cloog_Matrix_from_ppl_Constraint_System): Same. | |
698 | (oppose_constraint): Same. | |
699 | (cloog_matrix_to_ppl_constraint): Same. | |
700 | (new_Constraint_System_from_Cloog_Matrix): Same. | |
701 | (insert_constraint_into_matrix): Same. Declared static. | |
702 | * graphite-cloog-util.h: New. | |
703 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h. | |
704 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
705 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
706 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
707 | (insert_constraint_into_matrix): Same. | |
708 | * graphite-ppl.c: | |
709 | Added graphite-cloog-util.h to include statements. | |
710 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c. | |
711 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
712 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
713 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
714 | (insert_constraint_into_matrix): Same. | |
715 | (ppl_Constrain_System_number_of_constraints): Same. | |
716 | (new_Cloog_Matrix_from_ppl_Constraint_System): Same. | |
717 | (oppose_constraint): Same. | |
718 | (cloog_matrix_to_ppl_constraint): Same. | |
719 | (new_Constraint_System_from_Cloog_Matrix): Same. | |
720 | * graphite-ppl.h: | |
721 | (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to | |
722 | graphite-cloog-util.h. | |
723 | (new_Cloog_Domain_from_ppl_Polyhedron): Same. | |
724 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
725 | (new_C_Polyhedron_from_Cloog_Matrix): Same. | |
726 | (insert_constraint_into_matrix): Removed. | |
727 | ||
6955599b | 728 | 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
729 | ||
730 | * graphite-clast-to-gimple.c | |
731 | (precision_for_value): Resolve value_* calls to matching mpz_* calls. | |
732 | (precision_for_interval): Same. | |
733 | (gcc_type_for_interval): Same. | |
734 | (compute_type_for_level): Same. | |
735 | * graphite-interchange.c | |
736 | (lst_interchange_profitable_p): Same. | |
737 | * graphite-poly.c | |
738 | (psct_scattering_dim_for_loop_depth): Same. | |
739 | * graphite-ppl.c | |
740 | (ppl_max_for_le_pointset): Same. | |
741 | (ppl_min_for_le_pointset): Same. | |
742 | ||
6fba926c | 743 | 2010-06-25 Vladimir Kargov <kargov@gmail.com> |
744 | ||
745 | * refined-regions.c (bb_index_compare): New. | |
746 | (get_bbs_in_region): New. | |
747 | (print_bbs_in_region): New. | |
748 | (print_refined_region): Add an argument that allows to print | |
749 | all basic blocks contained in regions. | |
750 | (debug_refined_region): Update call to print_refined_region. | |
751 | * refined-regions.h (print_refined_region): Update declaration. | |
752 | (get_bbs_in_region): Declared. | |
753 | * graphite-scop-detection.c (build_scops_new): Print the refined | |
754 | region tree into the Grahite dump file. | |
755 | ||
b8046a12 | 756 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
757 | ||
758 | * graphite-sese-to-poly.c (rewrite_degenerate_phi): New. | |
759 | (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result. | |
760 | ||
dd966e1f | 761 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
762 | ||
763 | * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call | |
764 | rewrite_close_phi_out_of_ssa. | |
765 | ||
766 | * gcc.dg/graphite/id-22.c: New. | |
767 | ||
0569d480 | 768 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
769 | ||
770 | * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code. | |
771 | ||
97142493 | 772 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
773 | ||
774 | * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with | |
775 | rename_map. | |
776 | * sese.c (debug_rename_map): Same. | |
777 | (get_rename): Same. | |
778 | (set_rename): Same. | |
779 | (rename_variables_in_stmt): Same. | |
780 | (expand_scalar_variables_call): Same. | |
781 | (expand_scalar_variables_ssa_name): Same. | |
782 | (expand_scalar_variables_expr): Same. | |
783 | (expand_scalar_variables_stmt): Same. | |
784 | (expand_scalar_variables): Same. | |
785 | (rename_variables): Same. | |
786 | (graphite_copy_stmts_from_block): Same. | |
787 | (copy_bb_and_scalar_dependences): Same. | |
788 | ||
0c663bd0 | 789 | 2010-06-24 Sebastian Pop <sebastian.pop@amd.com> |
790 | ||
791 | * graphite-clast-to-gimple.c (copy_renames): Removed. | |
792 | (translate_clast_for): Do not call copy_renames. | |
793 | (translate_clast_guard): Same. | |
794 | ||
42ad5d61 | 795 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
796 | ||
797 | * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up. | |
798 | (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps. | |
799 | (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps | |
800 | before rewrite_cross_bb_scalar_deps. | |
801 | ||
8643dd0a | 802 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
803 | ||
804 | * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa): | |
805 | Early return in when flag_associative_math is not set. | |
806 | ||
9a34ebd6 | 807 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
808 | ||
809 | * gcc.dg/graphite/run-id-2.c: Call abort. | |
810 | ||
097e870c | 811 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
812 | ||
813 | * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out | |
814 | of SSA copies on edges except for loop->latch. | |
815 | ||
bf8b5699 | 816 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
817 | ||
818 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa): | |
819 | Split out of rewrite_reductions_out_of_ssa. | |
820 | * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa): | |
821 | Declared. | |
822 | * graphite.c (graphite_transform_loops): Call it. | |
823 | ||
e819c864 | 824 | 2010-06-23 Sebastian Pop <sebastian.pop@amd.com> |
825 | ||
826 | * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls. | |
827 | ||
b90bb125 | 828 | 2010-06-15 Sebastian Pop <sebastian.pop@amd.com> |
829 | ||
830 | * passes.c (init_optimization_passes): Add pass_graphite. | |
831 | Schedule a pass_copy_prop before pass_graphite_transforms. | |
832 | * timevar.def (TV_GRAPHITE): Declared. | |
833 | * tree-pass.h (pass_graphite): Declared. | |
834 | * tree-ssa-loop.c (pass_graphite): New. | |
835 | ||
836 | * gcc.dg/graphite/id-20.c: New. | |
837 | ||
93206bb0 | 838 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
839 | ||
840 | * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter. | |
841 | Remove calls to rename_nb_iterations and rename_sese_parameters. | |
842 | * graphite-clast-to-gimple.h (gloog): Update declaration. | |
843 | * graphite.c (graphite_transform_loops): Update call to gloog. | |
844 | * sese.c (rename_variables_in_expr): Removed. | |
845 | (rename_nb_iterations): Removed. | |
846 | (rename_sese_parameters): Removed. | |
847 | * sese.h (rename_nb_iterations): Removed. | |
848 | (rename_sese_parameters): Removed. | |
849 | ||
88a551f1 | 850 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
851 | ||
852 | * graphite-clast-to-gimple.c (gloog): Remove call to | |
853 | sese_adjust_liveout_phis. | |
854 | * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an | |
855 | SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps. | |
856 | (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call | |
857 | rewrite_phi_out_of_ssa. | |
858 | * sese.c (get_vdef_before_sese): Removed. | |
859 | (sese_adjust_vphi): Removed. | |
860 | (sese_adjust_liveout_phis): Removed. | |
861 | * sese.h (sese_adjust_liveout_phis): Removed. | |
862 | ||
39a34dd8 | 863 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
864 | ||
865 | * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra | |
866 | argument for the place after which to insert the out of SSA copy. | |
867 | (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy. | |
868 | (rewrite_phi_out_of_ssa): Same. | |
869 | (rewrite_cross_bb_scalar_deps): Same. | |
870 | (insert_copyout): Removed. | |
871 | (insert_copyin): Removed. | |
872 | (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and | |
873 | insert_out_of_ssa_copy_on_edge instead of insert_copyout and | |
874 | insert_copyin. | |
875 | ||
5d2603f9 | 876 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
877 | ||
878 | * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore. | |
879 | (rewrite_reductions_out_of_ssa): Same. | |
880 | (rewrite_commutative_reductions_out_of_ssa): Same. | |
881 | (build_poly_scop): Do not call these functions. | |
882 | * graphite-sese-to-poly.h (build_poly_scop): Declared. | |
883 | (rewrite_reductions_out_of_ssa): Declared. | |
884 | (rewrite_commutative_reductions_out_of_ssa): Declared. | |
885 | * graphite.c (graphite_transform_loops): Call on every scop | |
886 | rewrite_commutative_reductions_out_of_ssa before calling | |
887 | rewrite_reductions_out_of_ssa and build_scop_bbs. | |
888 | ||
189cea68 | 889 | 2010-06-12 Sebastian Pop <sebastian.pop@amd.com> |
890 | ||
891 | * graphite-dependences.c (dot_deps): Make system call to dotty run | |
892 | in background. | |
893 | (dot_deps_stmt): Same. | |
894 | * graphite-poly.c (dot_lst): Same. | |
895 | ||
1861e127 | 896 | 2010-06-11 Sebastian Pop <sebastian.pop@amd.com> |
897 | ||
898 | * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass | |
899 | old_type in parameter. | |
900 | (gcc_type_for_value): Update call to gcc_type_for_interval. | |
901 | (compute_type_for_level_1): Renamed compute_type_for_level. | |
902 | Update call to gcc_type_for_interval. | |
903 | ||
f6a2a688 | 904 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
905 | ||
906 | * tree-scalar-evolution.c (instantiate_scev_name): Do not fail | |
907 | the scev analysis when the variable is not used outside the loop | |
908 | in a close phi node: call compute_overall_effect_of_inner_loop. | |
909 | ||
3662a419 | 910 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
911 | ||
912 | * graphite-sese-to-poly.c (single_pred_cond): Renamed | |
913 | single_pred_cond_non_loop_exit. Return NULL for loop exit edges. | |
914 | (build_sese_conditions_before): Renamed call to single_pred_cond. | |
915 | (build_sese_conditions_after): Same. | |
916 | ||
a344bb22 | 917 | 2010-06-09 Sebastian Pop <sebastian.pop@amd.com> |
918 | ||
919 | * graphite-poly.h: Fix comments and indentation. | |
920 | * graphite-sese-to-poly.c: Same. | |
921 | (build_sese_conditions_before): Compute stmt and gbb only when needed. | |
922 | * tree-chrec.c: Fix comments and indentation. | |
923 | (tree-ssa-loop-niter.c): Same. | |
924 | ||
9ac63ea9 | 925 | 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de> |
926 | ||
927 | * refined-regions.c (create_region): Only initialize the region. | |
928 | (find_regions_with_entry): Initialize parent relation and bbmap | |
929 | correctly. | |
930 | (build_regions_tree): Set outermost_region to region instead of | |
931 | topmost_region. | |
932 | (calculate_region_tree): Remove unneeded parameters. | |
933 | ||
441c9c1d | 934 | 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de> |
935 | ||
936 | * graphite-scop-detection.c (is_scop_p): New. | |
937 | (build_scops_new): New. A skeleton for the new scop detection. | |
938 | (build_scops_old): Renamed from build_scops. | |
939 | (build_scops): New version. Call the new and the old scop | |
940 | detection. | |
941 | ||
93bdb320 | 942 | 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de> |
943 | Antoniu Pop <antoniu.pop@gmail.com> | |
944 | ||
945 | * Makefile.in (OBJS-common): Add refined-regions.o. | |
946 | (refined-regions.o): New. | |
947 | (graphite-scop-detection.o): Use refined-regions.h. | |
948 | * graphite-scop-detection.c: Include refined-regions.h | |
949 | (build_scops): Also build the refined region tree. | |
950 | * refined-regions.c: New. Adds an algorithm to detect refined | |
951 | regions. | |
952 | (print_refined_region): New. | |
953 | (debug_refined_region): New. | |
954 | (refined_region_contains_bb_p): New. | |
955 | (refined_region_contains_region_p): New. | |
956 | (is_common_df): New. | |
957 | (struct find_regions_global_data): New. | |
958 | (is_region): New. | |
959 | (typedef struct bb_bb_def): New. | |
960 | (new_bb_bb_def): New. | |
961 | (bb_bb_map_hash): New. | |
962 | (eq_bb_bb_map): New. | |
963 | (find_new_bb): New. | |
964 | (bb_reg_def): New. | |
965 | (new_bb_reg_def): New. | |
966 | (bb_reg_map_hash): New. | |
967 | (eq_bb_reg_map): New. | |
968 | (find_new_region): New. | |
969 | (insert_new_reg): New. | |
970 | (insert_new_bb): New. | |
971 | (insert_shortcut): New. | |
972 | (get_next_postdom): New. | |
973 | (create_region): New. | |
974 | (find_regions_with_entry): New. | |
975 | (find_regions_adc): New. | |
976 | (find_regions): New. | |
977 | (get_topmost_parent): New. | |
978 | (build_regions_tree): New. | |
979 | (calculate_region_tree): New. | |
980 | (free_region_tree): New. | |
981 | * refined-regions.h: New. | |
982 | (struct refined_region): New. | |
983 | (calculate_region_tree): New. | |
984 | (free_region_tree): New. | |
985 | (refined_region_contains_bb_p): New. | |
986 | (refined_region_contains_region_p): New. | |
987 | (print_refined_region): New. | |
988 | (debug_refined_region): New. | |
989 | ||
78b58940 | 990 | 2010-05-26 Sebastian Pop <sebastian.pop@amd.com> |
991 | ||
992 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use | |
993 | size_one_node. | |
994 | ||
9acb79e3 | 995 | 2010-05-07 Sebastian Pop <sebastian.pop@amd.com> |
996 | ||
997 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix | |
998 | type of integer_one_node for fold_build of POINTER_PLUS_EXPR. | |
999 | ||
9d828157 | 1000 | 2010-05-07 Sebastian Pop <sebastian.pop@amd.com> |
1001 | ||
1002 | * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed | |
1003 | phi_arg_in_outermost_loop. | |
1004 | (remove_simple_copy_phi): Call phi_arg_in_outermost_loop. | |
1005 | (remove_invariant_phi): Same. | |
1006 | ||
0ef84e3b | 1007 | 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
1008 | ||
1009 | * graphite-blocking.c | |
1010 | (pbb_strip_mine_profitable_p): Replace Value with mpz_t. | |
1011 | * graphite-clast-to-gimple.c | |
1012 | (clast_to_gcc_expression): Same. | |
1013 | (precision_for_value): Same. | |
1014 | (precision_for_interval): Same. | |
1015 | (gcc_type_for_interval): Same. | |
1016 | (graphite_create_new_guard): Same. | |
1017 | (compute_bounds_for_level): Same. | |
1018 | (graphite_create_new_loop_guard): Same. | |
1019 | * graphite-interchange.c | |
1020 | (build_linearized_memory_access): Same. | |
1021 | (pdr_stride_in_loop): Same. | |
1022 | (memory_strides_in_loop_1): Same. | |
1023 | (memory_strides_in_loop): Same. | |
1024 | (extend_scattering): Same. | |
1025 | (psct_scattering_dim_for_loop_depth): Same. | |
1026 | (pbb_number_of_iterations): Same. | |
1027 | * graphite-poly.h | |
1028 | (debug_iteration_domains): Same. | |
1029 | * graphite-ppl.c | |
1030 | (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same. | |
1031 | (ppl_set_inhomogeneous_gmp): Same. | |
1032 | (ppl_strip_loop): Same. | |
1033 | (ppl_lexico_compare_linear_expressions): Same. | |
1034 | (ppl_read_polyhedron_matrix): Same. | |
1035 | (ppl_max_for_le_pointset): Same. | |
1036 | * graphite-ppl.h | |
1037 | (ppl_read_polyhedron_matrix): Same. | |
1038 | (tree_int_to_gmp): Same. | |
1039 | (gmp_cst_to_tree): Same. | |
1040 | (ppl_set_inhomogeneous): Same. | |
1041 | (ppl_set_inhomogeneous_tree): Same. | |
1042 | (ppl_set_coef): Same. | |
1043 | (ppl_set_coef_tree): Same. | |
1044 | * graphite-sese-to-poly.c | |
1045 | (build_pbb_scattering_polyhedrons): Same. | |
1046 | (build_scop_scattering): Same. | |
1047 | (scan_tree_for_params_right_scev): Same. | |
1048 | (scan_tree_for_params): Same. | |
1049 | (find_params_in_bb): Same. | |
1050 | (find_scop_parameters): Same. | |
1051 | (add_upper_bounds_from_estimated_nit): Same. | |
1052 | (build_loop_iteration_domains): Same. | |
1053 | (add_condition_to_domain): Same. | |
1054 | (pdr_add_memory_accesses): Same. | |
1055 | ||
2d6fe479 | 1056 | 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de> |
1057 | ||
a2c572ef | 1058 | * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve |
2d6fe479 | 1059 | CLooG's value_* macros to their respective mpz_* counterparts. |
1060 | * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same. | |
1061 | (graphite_create_new_loop_guard): Same. | |
1062 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
1063 | (pdr_stride_in_loop): Same. | |
1064 | (memory_strides_in_loop_1): Same. | |
1065 | (1st_interchange_profitable_p): Same. | |
1066 | * graphite-poly.c (extend_scattering): Same. | |
1067 | (psct_scattering_dim_for_loop_depth): Same. | |
1068 | (pbb_number_of_iterations): Same. | |
1069 | (pbb_number_of_iterations_at_time): Same. | |
1070 | * graphite-poly.h (new_1st_loop): Same. | |
1071 | * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same. | |
1072 | (oppose_constraint): Same. | |
1073 | (insert_constraint_into_matrix): Same. | |
1074 | (ppl_set_inhomogeneous_gmp): Same. | |
1075 | (ppl_set_coef_gmp): Same. | |
1076 | (ppl_strip_loop): Same. | |
1077 | (ppl_lexico_compare_linear_expressions): Same. | |
1078 | (ppl_max_for_le_pointset): Same. | |
1079 | (ppl_min_for_le_pointset): Same. | |
1080 | (ppl_build_realtion): Same. | |
1081 | * graphite-ppl.h (gmp_cst_to_tree): Same. | |
1082 | (ppl_set_inhomogeneous): Same. | |
1083 | (ppl_set_inhomogeneous_tree): Same. | |
1084 | (ppl_set_coef): Same. | |
1085 | (ppl_set_coef_tree): Same. | |
1086 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same. | |
1087 | (build_scop_scattering): Same. | |
1088 | (add_value_to_dim): Same. | |
1089 | (scan_tree_for_params_right_scev): Same. | |
1090 | (scan_tree_for_params_int): Same. | |
1091 | (scan_tree_for_params): Same. | |
1092 | (find_params_in_bb): Same. | |
1093 | (find_scop_parameters): Same. | |
1094 | (add_upper_bounds_from_estimated_nit): Same. | |
1095 | (build_loop_iteration_domains): Same. | |
1096 | (create_linear_expr_from_tree): Same. | |
1097 | (add_condition_to_domain): Same. | |
1098 | (pdr_add_memory_accesses): Same. | |
1099 | ||
7c0d15dc | 1100 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> |
1101 | ||
1102 | PR middle-end/43519 | |
1103 | * graphite-clast-to-gimple.c (max_signed_precision_type): Use | |
1104 | lang_hooks.types.type_for_size instead of build_nonstandard_integer_type. | |
1105 | When converting an unsigned type to signed, double its precision. | |
1106 | (gcc_type_for_interval): Use lang_hooks.types.type_for_size. | |
1107 | (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type. | |
1108 | (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub. | |
1109 | ||
1110 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> | |
1111 | ||
1112 | PR middle-end/43519 | |
1113 | * graphite-clast-to-gimple.c (max_signed_precision_type): Use | |
1114 | build_nonstandard_integer_type. | |
1115 | (gcc_type_for_interval): Same. | |
1116 | ||
1117 | 2010-04-05 Sebastian Pop <sebastian.pop@amd.com> | |
7778680e | 1118 | |
1119 | PR middle-end/43519 | |
1120 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use | |
1121 | POINTER_PLUS_EXPR for pointer types. | |
1122 | ||
1123 | * gcc.dg/graphite/id-19.c: New. | |
1124 | ||
f20b6ea9 | 1125 | 2010-04-04 Sebastian Pop <sebastian.pop@amd.com> |
1126 | ||
1127 | PR middle-end/43519 | |
1128 | * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h. | |
1129 | * graphite-clast-to-gimple.c: Include langhooks.h. | |
1130 | (max_signed_precision_type): New. | |
1131 | (max_precision_type): Takes two types as arguments. | |
1132 | (precision_for_value): New. | |
1133 | (precision_for_interval): New. | |
1134 | (gcc_type_for_interval): New. | |
1135 | (gcc_type_for_value): New. | |
1136 | (gcc_type_for_clast_term): New. | |
1137 | (gcc_type_for_clast_red): New. | |
1138 | (gcc_type_for_clast_bin): New. | |
1139 | (gcc_type_for_clast_expr): Split up into several functions. | |
1140 | (gcc_type_for_clast_eq): Rewritten. | |
1141 | (compute_bounds_for_level): New. | |
1142 | (compute_type_for_level_1): New. | |
1143 | (compute_type_for_level): New. | |
1144 | (gcc_type_for_cloog_iv): Removed. | |
1145 | (gcc_type_for_iv_of_clast_loop): Rewritten. | |
1146 | (graphite_create_new_loop): Compute the lower and upper bound types | |
1147 | with gcc_type_for_clast_expr. | |
1148 | (graphite_create_new_loop_guard): Same. | |
1149 | (find_cloog_iv_in_expr): Removed. | |
1150 | (compute_cloog_iv_types_1): Removed. | |
1151 | (compute_cloog_iv_types): Removed. | |
1152 | (gloog): Do not call compute_cloog_iv_types. | |
1153 | * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize | |
1154 | GBB_CLOOG_IV_TYPES. | |
1155 | (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES. | |
1156 | * sese.h (struct gimple_bb): Removed field cloog_iv_types. | |
1157 | (GBB_CLOOG_IV_TYPES): Removed. | |
1158 | ||
1159 | * gcc.dg/graphite/run-id-pr42644.c: Call abort. | |
1160 | ||
03ce78db | 1161 | 2010-04-02 Sebastian Pop <sebastian.pop@amd.com> |
1162 | ||
1163 | Reverted this commit: as at this point the loop closed SSA form | |
1164 | is under a canonical form respecting the single argument condition. | |
1165 | * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop | |
1166 | close phi nodes may have more than one argument. | |
1167 | ||
1168 | 2010-04-01 Sebastian Pop <sebastian.pop@amd.com> | |
1169 | ||
1170 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that | |
1171 | gimple_phi_num_args of the loop close SSA phi node is equal to 1. | |
1172 | (detect_commutative_reduction): Same. | |
1173 | ||
1174 | 2010-03-31 Sebastian Pop <sebastian.pop@amd.com> | |
1175 | ||
1176 | * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop | |
1177 | close phi nodes may have more than one argument. | |
1178 | ||
67e28d17 | 1179 | 2010-03-30 Richard Guenther <rguenther@suse.de> |
1180 | Zdenek Dvorak <ook@ucw.cz> | |
1181 | Sebastian Pop <sebastian.pop@amd.com> | |
1182 | ||
1183 | PR middle-end/43464 | |
1184 | * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes | |
1185 | with multiple arguments. | |
1186 | (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa. | |
1187 | ||
ff4c7a5a | 1188 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1189 | ||
1190 | * graphite-dependences.c (print_pddr): Call print_pdr with an | |
1191 | extra argument. | |
1192 | * graphite-poly.c (debug_pdr): Add an extra argument for the | |
1193 | verbosity level. | |
1194 | (print_pdr): Same. | |
1195 | (print_pbb_domain): Same. | |
1196 | (print_pbb): Same. | |
1197 | (print_scop_context): Same. | |
1198 | (print_scop): Same. | |
1199 | (print_cloog): Same. | |
1200 | (debug_pbb_domain): Same. | |
1201 | (debug_pbb): Same. | |
1202 | (print_pdrs): Same. | |
1203 | (debug_pdrs): Same. | |
1204 | (debug_scop_context): Same. | |
1205 | (debug_scop): Same. | |
1206 | (debug_cloog): Same. | |
1207 | (print_scop_params): Same. | |
1208 | (debug_scop_params): Same. | |
1209 | (print_iteration_domain): Same. | |
1210 | (print_iteration_domains): Same. | |
1211 | (debug_iteration_domain): Same. | |
1212 | (debug_iteration_domains): Same. | |
1213 | (print_scattering_function): Same. | |
1214 | (print_scattering_functions): Same. | |
1215 | (debug_scattering_function): Same. | |
1216 | (debug_scattering_functions): Same. | |
1217 | * graphite-poly.h (debug_pdr): Update declaration. | |
1218 | (print_pdr): Same. | |
1219 | (print_pbb_domain): Same. | |
1220 | (print_pbb): Same. | |
1221 | (print_scop_context): Same. | |
1222 | (print_scop): Same. | |
1223 | (print_cloog): Same. | |
1224 | (debug_pbb_domain): Same. | |
1225 | (debug_pbb): Same. | |
1226 | (print_pdrs): Same. | |
1227 | (debug_pdrs): Same. | |
1228 | (debug_scop_context): Same. | |
1229 | (debug_scop): Same. | |
1230 | (debug_cloog): Same. | |
1231 | (print_scop_params): Same. | |
1232 | (debug_scop_params): Same. | |
1233 | (print_iteration_domain): Same. | |
1234 | (print_iteration_domains): Same. | |
1235 | (debug_iteration_domain): Same. | |
1236 | (debug_iteration_domains): Same. | |
1237 | (print_scattering_function): Same. | |
1238 | (print_scattering_functions): Same. | |
1239 | (debug_scattering_function): Same. | |
1240 | (debug_scattering_functions): Same. | |
1241 | ||
1f8d6d4d | 1242 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1243 | ||
1244 | * graphite-poly.c (print_scattering_function_1): New. | |
1245 | (print_scattering_function): Call it. | |
1246 | (print_scop_params): Remove spaces at the end of lines. | |
1247 | (print_cloog): New. | |
1248 | (debug_cloog): New. | |
1249 | * graphite-poly.h (print_cloog): Declared. | |
1250 | (debug_cloog): Declared. | |
1251 | ||
4de8824d | 1252 | 2010-03-23 Sebastian Pop <sebastian.pop@amd.com> |
1253 | ||
1254 | * tree-ssa-copy.c: Revert this previous change: | |
1255 | (init_copy_prop): Loop closed phi nodes cancontain more than one | |
1256 | argument. | |
1257 | (execute_copy_prop): Revert the previous change: do not call | |
1258 | rewrite_into_loop_closed_ssa. | |
1259 | ||
1260 | 2010-03-21 Sebastian Pop <sebastian.pop@amd.com> | |
1261 | Richard Guenther <rguenther@suse.de> | |
1262 | ||
1263 | PR middle-end/43464 | |
1264 | * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can | |
1265 | contain more than one argument. | |
1266 | (execute_copy_prop): Revert the previous change: do not call | |
1267 | rewrite_into_loop_closed_ssa. | |
1268 | ||
1269 | * gcc.dg/graphite/id-pr43464.c: Remove compile warning. | |
1270 | * gcc.dg/graphite/id-pr43464-1.c: New. | |
1271 | ||
1272 | 2010-03-21 Sebastian Pop <sebastian.pop@amd.com> | |
1273 | ||
1274 | PR middle-end/43464 | |
1275 | * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa | |
1276 | and verify_loop_closed_ssa when copy prop is executed in the LNO. | |
1277 | ||
1278 | * gcc.dg/graphite/id-pr43464.c: New. | |
1279 | ||
0207206d | 1280 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1281 | ||
1282 | * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump | |
1283 | in loop->header. | |
1284 | * tree-flow.h (canonicalize_loop_ivs): Updated declaration. | |
1285 | * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch. | |
1286 | * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter | |
1287 | to switch between adding the IV bump in loop->latch or in loop->header. | |
1288 | ||
a751953f | 1289 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1290 | ||
1291 | * passes.c (init_optimization_passes): Add pass_copy_prop | |
1292 | after Graphite. | |
1293 | ||
5dc5fe13 | 1294 | 2010-03-16 Sebastian Pop <sebastian.pop@amd.com> |
1295 | ||
1296 | * graphite-poly.c (print_scattering_function): Pretty print following | |
1297 | the scoplib format. | |
1298 | (print_pdr): Same. | |
1299 | (print_pbb_domain): Same. | |
1300 | (dump_gbb_cases): Same. | |
1301 | (dump_gbb_conditions): Same. | |
1302 | (print_pdrs): Same. | |
1303 | (print_pbb): Same. | |
1304 | (print_scop_params): Same. | |
1305 | (print_scop_context): Same. | |
1306 | (print_scop): Same. | |
1307 | (print_pbb_body): New. | |
1308 | (lst_indent_to): New. | |
1309 | (print_lst): Start new lines with a #. | |
1310 | * graphite-poly.h (pbb_bb): New. | |
1311 | (pbb_index): Use pbb_bb. | |
1312 | * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of | |
1313 | disjuncts. | |
1314 | * tree-data-ref.c (dump_data_reference): Start new lines with a #. | |
1315 | ||
9251755b | 1316 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> |
1317 | ||
1318 | PR middle-end/43351 | |
1319 | * gcc.dg/graphite/id-pr43351.c | |
1320 | ||
5a644317 | 1321 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> |
1322 | ||
1323 | PR middle-end/43354 | |
1324 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not | |
1325 | call insert_out_of_ssa_copy for default definitions. | |
1326 | * gfortran.dg/graphite/id-pr43354.f: New. | |
1327 | ||
1328 | 2010-03-13 Sebastian Pop <sebastian.pop@amd.com> | |
197de505 | 1329 | |
1330 | PR middle-end/43349 | |
1331 | * gfortran.dg/graphite/pr43349.f: New. | |
1332 | ||
119adb56 | 1333 | 2010-03-11 Sebastian Pop <sebastian.pop@amd.com> |
1334 | ||
1335 | * graphite-clast-to-gimple.c (my_long_long): Defined. | |
1336 | (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node. | |
1337 | * graphite-sese-to-poly.c (my_long_long): Defined. | |
1338 | (scop_ivs_can_be_represented): Use it. | |
1339 | ||
578e3456 | 1340 | 2010-03-10 Sebastian Pop <sebastian.pop@amd.com> |
1341 | ||
1342 | * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params, | |
1343 | graphite-max-bbs-per-function, and loop-block-tile-size. | |
1344 | * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal" | |
1345 | with "maximum". | |
1346 | (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same. | |
1347 | ||
5d92ac74 | 1348 | 2010-03-10 Sebastian Pop <sebastian.pop@amd.com> |
1349 | ||
1350 | * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove | |
1351 | forward declaration. | |
1352 | * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment. | |
1353 | (add_upper_bounds_from_estimated_nit): New. | |
1354 | (build_loop_iteration_domains): Use it. | |
1355 | ||
89466e43 | 1356 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1357 | ||
1358 | * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document. | |
1359 | ||
c4ccbe87 | 1360 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1361 | ||
1362 | PR middle-end/43306 | |
1363 | * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT | |
1364 | should be an INTEGER_CST. Also handle CASE_CONVERT. | |
1365 | * gcc.dg/graphite/pr43306.c: New. | |
1366 | ||
94ba21de | 1367 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1368 | ||
1369 | * graphite.c (graphite_initialize): To bound the number of bbs per | |
1370 | function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION. | |
1371 | * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared. | |
1372 | * doc/invoke.texi: Document it. | |
1373 | ||
f49215ce | 1374 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1375 | ||
1376 | * graphite-sese-to-poly.c (build_poly_scop): Do not return bool. | |
1377 | * graphite-sese-to-poly.h (build_poly_scop): Same. | |
1378 | ||
c2e502a5 | 1379 | 2010-03-09 Sebastian Pop <sebastian.pop@amd.com> |
1380 | ||
1381 | * graphite-sese-to-poly.c (build_poly_scop): Limit scops following | |
1382 | the number of parameters in the scop. Use as an upper bound | |
1383 | PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS. | |
1384 | * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared. | |
1385 | * doc/invoke.texi: Document it. | |
1386 | ||
8424df5f | 1387 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1388 | ||
1389 | * graphite-sese-to-poly.c (add_param_constraints): Use | |
1390 | lower_bound_in_type and upper_bound_in_type. | |
1391 | ||
d6ad5c2f | 1392 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1393 | ||
1394 | * graphite-sese-to-poly.c (add_param_constraints): Use sizetype | |
1395 | instead of unsigned_type_node. | |
1396 | ||
88a62e9b | 1397 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> |
1398 | Reza Yazdani <reza.yazdani@amd.com> | |
1399 | ||
1400 | PR middle-end/43065 | |
1401 | * graphite-sese-to-poly.c (add_param_constraints): Insert bounds | |
1402 | on pointer type parameters. | |
1403 | ||
1404 | * gcc.dg/graphite/run-id-4.c: New. | |
1405 | ||
1406 | 2010-03-05 Sebastian Pop <sebastian.pop@amd.com> | |
bc1b5a1d | 1407 | |
1408 | PR middle-end/43065 | |
1409 | * gcc.dg/graphite/run-id-3.c: New. | |
1410 | ||
f6fb4255 | 1411 | 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de> |
1412 | Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> | |
1413 | ||
1414 | * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also | |
1415 | handle conversions from pointer to integers. | |
1416 | (gcc_type_for_cloog_iv): Choose the smalles signed integer as an | |
1417 | induction variable, to be able to work with code generated by CLooG. | |
1418 | * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New. | |
1419 | (build_poly_scop): Bail out if we cannot codegen a loop. | |
1420 | ||
2d0a2aaa | 1421 | 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de> |
1422 | ||
1423 | * graphite-clast-to-gimple.c (translate_clast): Do not short-cut | |
1424 | code generation with gloog_error. | |
1425 | ||
2996b712 | 1426 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1427 | ||
1428 | * sese.c (expand_scalar_variables_ssa_name): Add new argument for type. | |
1429 | Call fold_convert on all the returned values. | |
1430 | (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name | |
1431 | the type of the resulting expression. | |
1432 | ||
c817e987 | 1433 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1434 | ||
1435 | * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed | |
1436 | ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize. | |
1437 | * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration. | |
1438 | ||
5f2e51eb | 1439 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1440 | ||
1441 | * graphite-dependences.c (map_into_dep_poly): Removed. | |
1442 | (dependence_polyhedron_1): Use combine_context_id_scat. | |
1443 | ||
7453bc3b | 1444 | 2010-03-04 Sebastian Pop <sebastian.pop@amd.com> |
1445 | ||
1446 | * graphite-poly.h (struct poly_scattering): Add layout documentation. | |
1447 | (struct poly_bb): Same. | |
1448 | (combine_context_id_scat): New. | |
1449 | ||
13dca219 | 1450 | 2010-03-02 Sebastian Pop <sebastian.pop@amd.com> |
1451 | ||
1452 | PR middle-end/42326 | |
1453 | * sese.c (name_defined_in_loop_p): Return false for default | |
1454 | definitions. | |
1455 | ||
1456 | * gcc.dg/graphite/pr42326.c: New. | |
1457 | ||
fc830e2d | 1458 | 2010-02-23 Sebastian Pop <sebastian.pop@amd.com> |
1459 | ||
1460 | * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify | |
1461 | and clean up the logic. | |
1462 | ||
bde82a01 | 1463 | 2010-02-23 Sebastian Pop <sebastian.pop@amd.com> |
1464 | ||
1465 | * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove | |
1466 | early return. | |
1467 | ||
bbf92068 | 1468 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1469 | ||
1470 | PR middle-end/43083 | |
1471 | * graphite-scop-detection.c (create_single_exit_edge): Move | |
1472 | the call to find_single_exit_edge to.... | |
1473 | (create_sese_edges): ...here. Don't handle multiple edges | |
1474 | exiting the function. | |
1475 | (build_graphite_scops): Don't handle multiple edges | |
1476 | exiting the function. | |
1477 | ||
1478 | * gcc.dg/graphite/pr43083.c: New. | |
1479 | ||
27f9c4ff | 1480 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1481 | ||
66bb96d4 | 1482 | PR middle-end/43097 |
27f9c4ff | 1483 | * sese.c (get_rename): Assert that old_name is an SSA_NAME. |
1484 | (rename_variables_in_stmt): Continue when the use is not an SSA_NAME. | |
1485 | ||
1486 | * gfortran.dg/graphite/pr43097.f: New. | |
1487 | ||
c3eecfcf | 1488 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> |
1489 | Manuel López-Ibáñez <manu@gcc.gnu.org> | |
1490 | ||
1491 | PR middle-end/43140 | |
1492 | * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null. | |
1493 | ||
1494 | 2010-02-22 Sebastian Pop <sebastian.pop@amd.com> | |
550c39c3 | 1495 | |
1496 | PR middle-end/43026 | |
1497 | * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF. | |
1498 | ||
1499 | * g++.dg/graphite/pr43026.C: New. | |
1500 | ||
3dc0020f | 1501 | 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de> |
1502 | ||
1503 | * Merge from mainline (154736:156693). | |
1504 | ||
5b3c8b56 | 1505 | 2010-02-11 Sebastian Pop <sebastian.pop@amd.com> |
1506 | ||
1507 | PR middle-end/43012 | |
1508 | * gcc.dg/graphite/pr43012.c: New. | |
65084500 | 1509 | |
5b3c8b56 | 1510 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
65084500 | 1511 | |
5b3c8b56 | 1512 | * graphite.c (graphite_transform_loops): Re-enable dbg_cnt. |
65084500 | 1513 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
1514 | ||
1515 | * g++.dg/graphite/pr42930.C: New. | |
1516 | ||
5dcbb45f | 1517 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
ce0ae3b6 | 1518 | |
1519 | PR middle-end/42930 | |
1520 | * graphite-scop-detection.c (graphite_can_represent_scev): Call | |
1521 | graphite_can_represent_init for MULT_EXPR. | |
1522 | ||
5dcbb45f | 1523 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
eae8f2a1 | 1524 | |
1525 | PR middle-end/42914 | |
1526 | PR middle-end/42530 | |
1527 | * graphite-sese-to-poly.c (remove_phi): New. | |
1528 | (translate_scalar_reduction_to_array): Call remove_phi. | |
1529 | ||
1530 | * gcc.dg/graphite/pr42530.c: New. | |
1531 | * gcc.dg/graphite/pr42914.c: New. | |
1532 | ||
5dcbb45f | 1533 | 2010-02-10 Sebastian Pop <sebastian.pop@amd.com> |
94bdcd77 | 1534 | |
1535 | PR middle-end/42771 | |
1536 | * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters. | |
1537 | * graphite-clast-to-gimple.h (gloog): Update declaration. | |
1538 | * graphite-poly.c (new_scop): Clear POLY_SCOP_P. | |
1539 | * graphite-poly.h (struct poly_bb): Add missing comments. | |
1540 | (struct scop): Add poly_scop_p field. | |
1541 | (POLY_SCOP_P): New. | |
1542 | * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P. | |
1543 | * graphite.c (graphite_transform_loops): Build the polyhedral | |
1544 | representation for each scop before code generation. | |
1545 | * sese.c (rename_variables_in_operand): Removed. | |
1546 | (rename_variables_in_expr): Return the renamed expression. | |
1547 | (rename_sese_parameters): New. | |
1548 | * sese.h (rename_sese_parameters): Declared. | |
1549 | ||
1550 | * gcc.dg/graphite/pr42771.c: New. | |
1551 | ||
9fe3fe75 | 1552 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1553 | ||
1554 | * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always | |
1555 | return 0 from main. | |
1556 | * gcc.dg/graphite/block-1.c: Same. | |
1557 | * gcc.dg/graphite/block-3.c: Same. | |
1558 | * gcc.dg/graphite/block-4.c: Same. | |
1559 | * gcc.dg/graphite/block-5.c: Same. | |
1560 | * gcc.dg/graphite/block-6.c: Same. | |
1561 | * gcc.dg/graphite/block-7.c: Same. | |
1562 | * gcc.dg/graphite/interchange-0.c: Same. | |
1563 | * gcc.dg/graphite/interchange-1.c: Same. | |
1564 | * gcc.dg/graphite/interchange-10.c: Same. | |
1565 | * gcc.dg/graphite/interchange-11.c: Same. | |
1566 | * gcc.dg/graphite/interchange-12.c: Same. | |
1567 | * gcc.dg/graphite/interchange-2.c: Same. | |
1568 | * gcc.dg/graphite/interchange-3.c: Same. | |
1569 | * gcc.dg/graphite/interchange-4.c: Same. | |
1570 | * gcc.dg/graphite/interchange-5.c: Same. | |
1571 | * gcc.dg/graphite/interchange-6.c: Same. | |
1572 | * gcc.dg/graphite/interchange-7.c: Same. | |
1573 | * gcc.dg/graphite/interchange-8.c: Same. | |
1574 | * gcc.dg/graphite/interchange-9.c: Same. | |
1575 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
1576 | ||
422538b1 | 1577 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1578 | ||
1579 | * gfortran.dg/graphite/id-19.f: New. | |
1580 | * gfortran.dg/graphite/pr14741.f90: New. | |
1581 | * gfortran.dg/graphite/pr41924.f90: New. | |
1582 | * gfortran.dg/graphite/run-id-2.f90: New. | |
1583 | ||
8fe76250 | 1584 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1585 | ||
1586 | PR middle-end/42988 | |
1587 | * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND | |
1588 | to unknown_dependence. | |
1589 | (graphite_legal_transform_dr): Handle the unknown_dependence. | |
1590 | (graphite_carried_dependence_level_k): Same. | |
1591 | ||
6c9df8cb | 1592 | 2010-02-07 Sebastian Pop <sebastian.pop@amd.com> |
1593 | ||
1594 | * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/. | |
1595 | ||
b7ac929d | 1596 | 2010-02-05 Sebastian Pop <sebastian.pop@amd.com> |
1597 | Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
1598 | ||
1599 | PR middle-end/42637 | |
1600 | * graphite-dependences.c (build_lexicographical_constraint): Return | |
1601 | a union of dependence polyhedra. | |
1602 | (dependence_polyhedron_1): Adapt for build_lexicographical_constraint. | |
1603 | ||
6c9df8cb | 1604 | * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed. |
1605 | * gcc.dg/graphite/block-4.c: Same. | |
1606 | * gcc.dg/graphite/block-7.c: Same. | |
1607 | * gcc.dg/graphite/interchange-12.c: Same. | |
1608 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
1609 | * gfortran.dg/graphite/interchange-1.f: XFAILed. | |
1610 | * gfortran.dg/graphite/interchange-3.f90: XFAILed. | |
1611 | * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637. | |
b7ac929d | 1612 | |
015d0b5c | 1613 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1614 | ||
6c9df8cb | 1615 | * gcc.dg/graphite/interchange-12.c: Return 0 to avoid |
015d0b5c | 1616 | the execution check to FAIL. This testcase is miscompiled by Graphite |
1617 | and the check should be re-enabled. | |
6c9df8cb | 1618 | * gcc.dg/graphite/interchange-mvt.c: Same. |
1619 | * gcc.dg/graphite/block-0.c: Same. | |
1620 | * gcc.dg/graphite/block-4.c: Same. | |
1621 | * gcc.dg/graphite/block-7.c: Same. | |
015d0b5c | 1622 | |
a5414f1f | 1623 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1624 | ||
6c9df8cb | 1625 | * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed. |
1626 | * gcc.dg/graphite/scop-0.c: Fix spaces. | |
1627 | * gfortran.dg/graphite/block-1.f90: Rewrite expected output. | |
1628 | * gfortran.dg/graphite/block-2.f: Same. | |
1629 | * gfortran.dg/graphite/block-3.f90: Same. | |
1630 | * gfortran.dg/graphite/block-4.f90: Same. | |
1631 | * gfortran.dg/graphite/interchange-1.f: Un-XFAILed. | |
1632 | * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed. | |
a5414f1f | 1633 | |
a071b80b | 1634 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1635 | ||
1636 | * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and | |
1637 | PDDR_ORIGINAL_SCATTERING_P. | |
1638 | (pddr_is_empty): Rewritten. | |
1639 | (print_dependence_polyhedron_layout): New. | |
1640 | (print_pddr): New. | |
1641 | (debug_pddr): New. | |
1642 | (build_alias_set_powerset): Moved up. | |
1643 | (poly_drs_may_alias_p): Moved up. | |
1644 | (lexicographically_gt_p): Removed. | |
1645 | (build_lexicographically_gt_constraint): Renamed | |
1646 | build_lexicographical_constraint, reimplemented. | |
1647 | (dependence_polyhedron_1): Simplified parameters. | |
1648 | (dependence_polyhedron): Same. Keep along empty PDDRs | |
1649 | to make efficient use of the cache. | |
1650 | (reduction_dr_p): Compute the PBBs don't pass them as parameters. | |
1651 | (graphite_legal_transform_dr): Rewritten. | |
1652 | (graphite_legal_transform_bb): Pass fewer arguments to | |
1653 | graphite_legal_transform_dr. | |
1654 | (graphite_carried_dependence_level_k): Simplified implementation. | |
1655 | (dot_original_deps_stmt_1): Call dependence_polyhedron. | |
1656 | (dot_transformed_deps_stmt_1): Same. | |
1657 | (dot_original_deps): Same. | |
1658 | (dot_transformed_deps): Same. | |
1659 | * graphite-dependences.h (struct poly_ddr): Added a new field | |
1660 | original_scattering_p. | |
1661 | (PDDR_ORIGINAL_SCATTERING_P): New. | |
1662 | (print_pddr): Declared. | |
1663 | (debug_pddr): Declared. | |
1664 | * graphite-ppl.c: Clarify comment. | |
1665 | * sese.h (print_gimple_bb): Removed unused declaration. | |
1666 | (debug_gbb): Same. | |
1667 | ||
d0546b2e | 1668 | 2010-02-03 Sebastian Pop <sebastian.pop@amd.com> |
1669 | ||
6c9df8cb | 1670 | * g++.dg/graphite/graphite.exp: Rewritten. |
1671 | * gcc.dg/graphite/graphite.exp: Rewritten. | |
1672 | * gfortran.dg/graphite/graphite.exp: Rewritten. | |
1673 | * gcc.dg/graphite/block-0.c: Added runtime test. | |
1674 | * gcc.dg/graphite/block-1.c: Same. | |
1675 | * gcc.dg/graphite/block-3.c: Same. | |
1676 | * gcc.dg/graphite/block-4.c: Same. | |
1677 | * gcc.dg/graphite/block-5.c: Same. | |
1678 | * gcc.dg/graphite/block-6.c: Same. | |
1679 | * gcc.dg/graphite/block-7.c: Same. | |
1680 | * gcc.dg/graphite/interchange-0.c: Same. | |
1681 | * gcc.dg/graphite/interchange-1.c: Same. | |
1682 | * gcc.dg/graphite/interchange-10.c: Same. | |
1683 | * gcc.dg/graphite/interchange-11.c: Same. | |
1684 | * gcc.dg/graphite/interchange-12.c: Same. | |
1685 | * gcc.dg/graphite/interchange-2.c: Same. | |
1686 | * gcc.dg/graphite/interchange-3.c: Same. | |
1687 | * gcc.dg/graphite/interchange-4.c: Same. | |
1688 | * gcc.dg/graphite/interchange-5.c: Same. | |
1689 | * gcc.dg/graphite/interchange-6.c: Same. | |
1690 | * gcc.dg/graphite/interchange-7.c: Same. | |
1691 | * gcc.dg/graphite/interchange-8.c: Same. | |
1692 | * gcc.dg/graphite/interchange-9.c: Same. | |
1693 | * gcc.dg/graphite/interchange-mvt.c: Same. | |
1694 | * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run. | |
d0546b2e | 1695 | |
ce363cd5 | 1696 | 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> |
1697 | ||
1698 | * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in | |
1699 | background. | |
1700 | ||
1701 | 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> | |
1702 | ||
1703 | * common.opt: Add -fgraphite-cloog-opts. | |
1704 | * graphite-clast-to-gimple.c (set_cloog_options): Same. | |
1705 | * opts.c (decode_options): Same. | |
1706 | ||
7bcf2a47 | 1707 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1708 | ||
6c9df8cb | 1709 | * gcc.dg/graphite/id-17.c: New. |
1710 | * gcc.dg/graphite/pr41888.c: New. | |
1711 | * gcc.dg/graphite/scop-22.c: New. | |
1712 | * gfortran.dg/graphite/pr40982.f90: New. | |
7bcf2a47 | 1713 | |
f21ef1e7 | 1714 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1715 | ||
1716 | * graphite-dependences.c: Clarify comments. | |
1717 | (build_pddr): Add an extra parameter direction. | |
1718 | (graphite_legal_transform_dr): Use build_pddr. | |
1719 | (dot_original_deps_stmt_1): Update use of build_pddr. | |
1720 | (dot_transformed_deps_stmt_1): Same. | |
1721 | (dot_original_deps): Same. | |
1722 | (dot_transformed_deps): Same. | |
1723 | ||
6c9df8cb | 1724 | * gcc.dg/graphite/interchange-12.c: New. |
1725 | * gcc.dg/graphite/block-7.c: New. | |
f21ef1e7 | 1726 | |
4f19d858 | 1727 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1728 | ||
1729 | * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr. | |
1730 | (pddr_transformed_scattering): Removed. | |
1731 | (graphite_legal_transform_dr): Use build_pddr. | |
1732 | (dot_original_deps_stmt_1): Same. | |
1733 | (dot_transformed_deps_stmt_1): Same. | |
1734 | (dot_original_deps): Same. | |
1735 | (dot_transformed_deps): Same. | |
1736 | ||
4fe30658 | 1737 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1738 | ||
1739 | * graphite-dependences.c (lexicographically_gt_p): Add comments. | |
1740 | (build_lexicographically_gt_constraint): Same. | |
1741 | (dependence_polyhedron_1): Same. | |
1742 | (dependence_polyhedron): Same. | |
1743 | ||
abc97125 | 1744 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1745 | ||
1746 | * graphite-dependences.c (build_pairwise_scheduling_equality): Removed. | |
1747 | (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling. | |
1748 | (lexicographically_gt_p): Change type of direction to int. | |
1749 | (build_lexicographically_gt_constraint): Same. | |
1750 | (dependence_polyhedron_1): Same. | |
1751 | (dependence_polyhedron): Same. | |
1752 | (pddr_original_scattering): Use integers for direction. | |
1753 | (pddr_transformed_scattering): Same. | |
1754 | (graphite_legal_transform_dr): Same. | |
1755 | (graphite_carried_dependence_level_k): Same. | |
1756 | ||
b57cb73e | 1757 | 2010-01-20 Sebastian Pop <sebastian.pop@amd.com> |
1758 | ||
1759 | * graphite-dependences.c (build_pairwise_constraint): Renamed | |
1760 | ppl_build_relation. Moved... | |
1761 | (dr_equality_constraints): Use ppl_build_relation. | |
1762 | (build_pairwise_scheduling_equality): Same. | |
1763 | (build_pairwise_scheduling_inequality): Same. | |
1764 | * graphite-ppl.c (ppl_build_relation): ...here. | |
1765 | * graphite-ppl.h (ppl_build_relation): Declared. | |
1766 | ||
2487de19 | 1767 | 2010-01-14 Sebastian Pop <sebastian.pop@amd.com> |
1768 | ||
1769 | PR middle-end/42681 | |
1770 | * graphite-clast-to-gimple.c (gloog_error): New static variable. | |
1771 | (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P. | |
1772 | Set gloog_error when such an expression failed to be built. | |
1773 | (translate_clast): Early return when gloog_error is set. | |
1774 | (gloog): Clear gloog_error. When gloog_error is set, call | |
1775 | set_ifsese_condition to enable the original code. Return the status | |
1776 | of the code generation based on gloog_error. | |
1777 | * sese.c (set_ifsese_condition): New. | |
1778 | * sese.h (set_ifsese_condition): Declared. | |
1779 | ||
6c9df8cb | 1780 | * g++.dg/graphite/pr42681.C: New. |
2487de19 | 1781 | |
efe339e3 | 1782 | 2010-01-14 Sebastian Pop <sebastian.pop@amd.com> |
1783 | ||
1784 | PR middle-end/42732 | |
1785 | * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and | |
1786 | rename_nb_iterations. | |
1787 | * sese.c (rename_variables_in_operand): New. | |
1788 | (rename_variables_in_expr): New. | |
1789 | (rename_nb_iterations): New. | |
1790 | (sese_adjust_liveout_phis): Update the rename_map. | |
1791 | * sese.h (rename_nb_iterations): Declared. | |
1792 | * tree-scalar-evolution.c (scev_reset_htab): New. | |
1793 | (scev_reset): Call scev_reset_htab. | |
1794 | * tree-scalar-evolution.h (scev_reset_htab): Declared. | |
1795 | ||
6c9df8cb | 1796 | * gfortran.dg/graphite/pr42732.f: New. |
efe339e3 | 1797 | |
a77f6f84 | 1798 | 2010-01-08 Sebastian Pop <sebastian.pop@amd.com> |
1799 | ||
1800 | PR middle-end/42393 | |
1801 | * graphite-clast-to-gimple.c: Fix formatting. | |
1802 | * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p. | |
1803 | (expr_defined_in_loop_p): New. | |
1804 | (add_loop_exit_phis): Also handle full expressions: remove from | |
1805 | the rename_map the expressions defined in the loop that we're closing. | |
1806 | ||
6c9df8cb | 1807 | * gfortran.dg/graphite/pr42393-1.f90: New. |
1808 | * gfortran.dg/graphite/pr42393.f90: Add new flags | |
a77f6f84 | 1809 | -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also |
1810 | make this testcase useful in the Graphite branch. | |
1811 | ||
01e31b4b | 1812 | 2010-01-08 Sebastian Pop <sebastian.pop@amd.com> |
1813 | ||
1814 | * graphite-scop-detection.c (exclude_component_ref): Removed. | |
1815 | (is_simple_operand): Removed. | |
1816 | (stmt_simple_for_scop_p): Remove use of is_simple_operand. | |
1817 | ||
2379556f | 1818 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1819 | ||
1820 | PR middle-end/42221 | |
1821 | * sese.c (expand_scalar_variables_expr): Follow the SSA links into | |
1822 | the array indexing of ADDR_EXPRs. | |
1823 | ||
6c9df8cb | 1824 | * gcc.dg/graphite/pr42221.c: New. |
2379556f | 1825 | |
d9458edc | 1826 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1827 | ||
1828 | PR middle-end/42521 | |
1829 | * graphite.c (graphite_finalize): Call scev_reset. | |
1830 | (graphite_transform_loops): Do not call scev_reset between the code | |
1831 | generation of scops. | |
1832 | ||
6c9df8cb | 1833 | * gcc.dg/graphite/pr42521.c: New. |
d9458edc | 1834 | |
b33d4eb4 | 1835 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1836 | ||
1837 | * graphite-interchange.c (memory_stride_in_loop): Renamed | |
1838 | pdr_stride_in_loop. | |
1839 | (memory_strides_in_loop): Renamed memory_strides_in_loop_1. | |
1840 | (memory_strides_in_loop): Memoize the memory strides per loop. | |
1841 | (lst_interchange_profitable_p): Do not initialize to zero the memory | |
1842 | strides. | |
1843 | * graphite-poly.h (struct lst): Add a field memory_strides. | |
1844 | (LST_LOOP_MEMORY_STRIDES): New. | |
1845 | (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1. | |
1846 | (free_lst): Clear LST_LOOP_MEMORY_STRIDES. | |
1847 | ||
a16e8346 | 1848 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1849 | ||
1850 | * graphite-interchange.c (memory_strides_in_loop_depth): Renamed | |
1851 | memory_strides_in_loop. Gather memory strides on a whole loop. | |
1852 | (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p. | |
1853 | (lst_interchange_profitable_p): Removed. | |
1854 | (lst_try_interchange_loops): Call lst_interchange_profitable_p. | |
1855 | ||
2edfa860 | 1856 | 2010-01-07 Sebastian Pop <sebastian.pop@amd.com> |
1857 | ||
1858 | Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
1859 | * graphite-clast-to-gimple.c (try_mark_loop_parallel): New. | |
1860 | (translate_clast_for, translate_clast_guard, translate_clast, gloog): | |
1861 | Remove context_loop and level. | |
1862 | ||
3f12432d | 1863 | 2010-01-07 Richard Guenther <rguenther@suse.de> |
1864 | ||
1865 | PR tree-optimization/42641 | |
1866 | * sese.c (rename_map_elt_info): Use the SSA name version, do | |
1867 | not hash pointers. | |
1868 | ||
1869 | 2010-01-06 Sebastian Pop <sebastian.pop@amd.com> | |
1870 | ||
1871 | * graphite-blocking.c (scop_do_block): Print "SCoP will be loop | |
1872 | blocked" only when both the strip mine and the interchange have | |
1873 | been applied. | |
1874 | ||
6c9df8cb | 1875 | * gcc.dg/graphite/block-2.c: Removed. |
1876 | * gcc.dg/graphite/block-3.c: Add scan pattern. | |
1877 | * gcc.dg/graphite/block-4.c: Same. | |
1878 | * gcc.dg/graphite/block-5.c: Same. | |
1879 | * gcc.dg/graphite/block-6.c: Same. | |
3f12432d | 1880 | |
cfd3faac | 1881 | 2010-01-06 Sebastian Pop <sebastian.pop@amd.com> |
1882 | ||
1883 | * graphite-clast-to-gimple.c (save_clast_name_index): Free slot | |
1884 | before allocating a new one. | |
1885 | (copy_renames): Check that slot is not NULL. | |
1886 | (mark_bb_with_pbb): Same. | |
1887 | (compute_cloog_iv_types_1): Same. | |
1888 | * graphite-interchange.c (lst_perfect_nestify): Free the before, | |
1889 | nest, and after LSTs. | |
1890 | (lst_try_interchange_loops): Same. | |
1891 | ||
a1a6700b | 1892 | 2010-01-05 Sebastian Pop <sebastian.pop@amd.com> |
1893 | ||
1894 | PR middle-end/42178 | |
1895 | * graphite-interchange.c (lst_try_interchange_loops): Do not return | |
1896 | the before, nest, and after LSTs. | |
1897 | (lst_try_interchange): Removed. | |
1898 | (lst_interchange_select_inner): Do not iterate over the LSTs if they | |
1899 | were modified. | |
1900 | (lst_interchange_select_outer): Apply interchange on the outer loop | |
1901 | until there are no more changes in the inner loops. | |
1902 | ||
7f60ea7e | 1903 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> |
1904 | ||
1905 | Revert patch fixing PR middle-end/42221. | |
1906 | ||
1907 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> | |
1908 | ||
1909 | PR middle-end/42180 | |
1910 | * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle | |
1911 | GIMPLE_CALL. | |
1912 | ||
6c9df8cb | 1913 | * gfortran.dg/graphite/pr42180.f90: Add compile flags. |
7f60ea7e | 1914 | |
c668dee5 | 1915 | 2009-12-18 Sebastian Pop <sebastian.pop@amd.com> |
1916 | ||
1917 | PR middle-end/42180 | |
1918 | * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks | |
1919 | that contain only one statement. | |
1920 | ||
6c9df8cb | 1921 | * gfortran.dg/graphite/pr42180.f90: New. |
7f60ea7e | 1922 | |
a190b734 | 1923 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1924 | ||
1925 | PR middle-end/42393 | |
6c9df8cb | 1926 | * gfortran.dg/graphite/pr42393.f90: New. |
a190b734 | 1927 | |
1747b6ef | 1928 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1929 | ||
1930 | PR middle-end/42186 | |
6c9df8cb | 1931 | * gfortran.dg/graphite/pr42186.f90: New. |
1747b6ef | 1932 | |
36f22aa0 | 1933 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1934 | ||
1935 | PR middle-end/42205 | |
1936 | * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt): | |
1937 | Insert the reduction copy in the same block as the phi node. | |
1938 | (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs. | |
1939 | ||
6c9df8cb | 1940 | * gcc.dg/graphite/pr42205-1.c: New. |
1941 | * gcc.dg/graphite/pr42205-2.c: New. | |
36f22aa0 | 1942 | |
1943 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> | |
1944 | ||
1945 | PR middle-end/42221 | |
1946 | * sese.c (expand_scalar_variables_expr): Follow the SSA links into | |
1947 | the array indexing of ADDR_EXPRs. | |
1948 | ||
6c9df8cb | 1949 | * gcc.dg/graphite/pr42221.c: New. |
36f22aa0 | 1950 | |
673c512e | 1951 | 2009-12-17 Sebastian Pop <sebastian.pop@amd.com> |
1952 | ||
1953 | PR middle-end/42178 | |
1954 | PR middle-end/42334 | |
1955 | * graphite-interchange.c (lst_try_interchange): Do not modify OUTER | |
1956 | index. Call lst_interchange_select_inner only once. | |
1957 | (lst_interchange_select_inner): Update use of lst_try_interchange. | |
1958 | (lst_interchange_select_outer): Update. | |
1959 | ||
1960 | 2009-12-15 Sebastian Pop <sebastian.pop@amd.com> | |
1961 | ||
1962 | PR middle-end/42178 | |
1963 | PR middle-end/42334 | |
1964 | * graphite-interchange.c (lst_try_interchange): Do not increment the | |
1965 | the OUTER index when there is no AFTER kernel. Do not increment the | |
1966 | OUTER index for after processing the AFTER kernel. | |
1967 | (lst_interchange_select_inner): Call lst_try_interchange only on loops. | |
1968 | (lst_interchange_select_outer): Do not pass in a pointer to the OUTER | |
1969 | index. Do not pass to lst_interchange_select_inner the OUTER index. | |
1970 | (scop_do_interchange): Update use of lst_interchange_select_outer. | |
1971 | ||
6c9df8cb | 1972 | * gfortran.dg/graphite/graphite.exp |
673c512e | 1973 | (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all. |
6c9df8cb | 1974 | * gfortran.dg/graphite/interchange-1.f: Add comment. Clean |
673c512e | 1975 | the graphite dump file. |
6c9df8cb | 1976 | * gfortran.dg/graphite/interchange-2.f: Same. |
1977 | * gfortran.dg/graphite/pr42334-1.f: New. | |
673c512e | 1978 | |
1979 | 2009-12-15 Sebastian Pop <sebastian.pop@amd.com> | |
1980 | ||
1981 | PR middle-end/42178 | |
1982 | PR middle-end/42334 | |
1983 | * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs | |
1984 | that are empty. | |
1985 | (lst_do_interchange_1): Renamed lst_interchange_select_inner. | |
1986 | (lst_try_interchange): Reimplemented. | |
1987 | (lst_interchange_select_inner): Same. | |
1988 | (lst_do_interchange): Renamed lst_interchange_select_outer. | |
1989 | Reimplemented. | |
1990 | (scop_do_interchange): Update use of lst_interchange_select_outer. | |
1991 | ||
6c9df8cb | 1992 | * g++.dg/graphite/pr42130.C: Add -fgraphite-identity. |
1993 | * gcc.dg/graphite/block-0.c: Un-XFAILed. | |
1994 | * gcc.dg/graphite/pr42211.c: New. | |
1995 | * gfortran.dg/graphite/pr42334.f90: New. | |
673c512e | 1996 | |
99c136a5 | 1997 | 2009-12-14 Sebastian Pop <sebastian.pop@amd.com> |
1998 | ||
1999 | PR middle-end/42181 | |
2000 | * graphite-scop-detection.c (graphite_can_represent_scev): Handle more | |
2001 | carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR. | |
2002 | ||
6c9df8cb | 2003 | * gfortran.dg/graphite/pr42181.f90: New. |
99c136a5 | 2004 | |
5184a05f | 2005 | 2009-12-12 Sebastian Pop <sebpop@gmail.com> |
2006 | ||
2007 | PR middle-end/42284 | |
2008 | * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call | |
2009 | insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs. | |
2010 | (detect_commutative_reduction_arg): Simplified. | |
2011 | (detect_commutative_reduction): Early return when the argument of | |
2012 | the close phi is not of an SSA_NAME. | |
2013 | ||
6c9df8cb | 2014 | * gcc.dg/graphite/pr42284.c: New. |
5184a05f | 2015 | |
2016 | 2009-12-11 Alexander Monakov <amonakov@ispras.ru> | |
2017 | ||
2018 | * dbgcnt.def (graphite_scop): New counter. | |
2019 | * graphite.c: Include dbgcnt.h | |
2020 | (graphite_transform_loops): Use new counter to limit transformations. | |
2021 | ||
7464e753 | 2022 | 2009-12-08 Sebastian Pop <sebpop@gmail.com> |
2023 | ||
2024 | PR middle-end/42285 | |
2025 | * graphite-scop-detection.c (graphite_can_represent_init): Also | |
2026 | handle more complex MULT_EXPRs containing parameters by recursion | |
2027 | on the structure. | |
2028 | ||
6c9df8cb | 2029 | * gfortran.dg/graphite/pr42285.f90: New. |
7464e753 | 2030 | |
2031 | 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
2032 | ||
6c9df8cb | 2033 | * g++.dg/graphite/pr42130.C: Fix type. |
7464e753 | 2034 | |
f96db528 | 2035 | 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org> |
2036 | ||
6c9df8cb | 2037 | * g++.dg/graphite/pr42130.C: Correct testcase. |
2038 | ||
2039 | 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
2040 | ||
2041 | * Merge from mainline (154493:154734). | |
2042 | ||
2043 | 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
2044 | ||
2045 | * Merge from mainline (151362:154491). | |
f96db528 | 2046 | |
b7bde372 | 2047 | 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de> |
2048 | ||
2049 | * graphite-clast-to-gimple.c (try_mark_loop_parallel, | |
2050 | graphite_create_new_loop_guard, translate_clast_for): Fix comments. | |
2051 | ||
32e78944 | 2052 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
2053 | ||
2054 | PR middle-end/42130 | |
2055 | * graphite-clast-to-gimple.c (graphite_create_new_loop_guard, | |
2056 | translate_clast_for_loop): New. | |
2057 | (translate_clast_for): Add a condition around the loop, to do not | |
2058 | execute loops with zero iterations. | |
6c9df8cb | 2059 | * g++.dg/graphite/pr42130.C: New. |
2060 | * gcc.dg/graphite/pr35356-2.c: Adapt. | |
32e78944 | 2061 | |
bafaa7f6 | 2062 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
2063 | ||
2064 | * graphite-clast-to-gimple.c (try_mark_loop_parallel): New. | |
2065 | (translate_clast_for, translate_clast_guard, translate_clast, gloog): | |
2066 | Remove context_loop and level. | |
2067 | ||
0f5b569a | 2068 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
2069 | ||
2070 | * graphite-clast-to-gimple.c (translate_clast_user, | |
2071 | translate_clast_for, translate_clast_guard): Simplify and move common | |
2072 | elements to translate_clast(). | |
2073 | (translate_clast): Simplify and get common elements. | |
2074 | ||
9a75e57c | 2075 | 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de> |
2076 | ||
2077 | * graphite-clast-to-gimple.c (translate_clast_user, | |
2078 | translate_clast_for, translate_clast_guard): Split out of | |
2079 | translate_clast. | |
2080 | ||
c9ef6b0e | 2081 | 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de> |
2082 | ||
2083 | * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index, | |
2084 | clast_name_to_index, save_clast_name_index, debug_clast_name_index, | |
2085 | debug_clast_name_indexes_1, debug_clast_name_indexes, | |
2086 | clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h. | |
2087 | (clast_name_to_gcc, clast_to_gcc_expression, | |
2088 | clast_to_gcc_expression_red, gcc_type_for_clast_expr, | |
2089 | gcc_type_for_clast_eq, graphite_translate_clast_equation, | |
2090 | graphite_create_guard_cond_expr, graphite_create_new_loop, | |
2091 | translate_clast): Add params_index. | |
2092 | (initialize_cloog_names): Create parameter strings from scratch, do | |
2093 | not reference other strings. | |
2094 | (create_params_index): New. | |
2095 | (gloog): Initialize params_index. | |
2096 | * graphite-scop-detection (free_scops_1): Removed. | |
2097 | (limit_scops): Use normal free_scops. | |
2098 | * graphite-sese-to-poly.c (save_var_names): Removed. | |
2099 | (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES | |
2100 | and SESE_PARAMS_INDEX. | |
2101 | * sese.c (new_sese, free_sese): Dito. | |
2102 | * sese.h (struct sese): Remove params_index, params_names. | |
2103 | (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed. | |
2104 | ||
a2a00920 | 2105 | 2009-11-20 Sebastian Pop <sebastian.pop@amd.com> |
2106 | ||
2107 | Revert the following patch from 2009-09-14: | |
2108 | * graphite-blocking.c: Fix order of includes: tree-chrec.h, then | |
2109 | tree-scalar-evolution.h, and then tree-data-ref.h. | |
2110 | * graphite-clast-to-gimple.c: Same. | |
2111 | * graphite-dependences.c: Same. | |
2112 | * graphite-interchange.c: Same. | |
2113 | * graphite-poly.c: Same. | |
2114 | * graphite-scop-detection.c: Same. | |
2115 | * graphite-sese-to-poly.c: Same. | |
2116 | * graphite.c: Same. | |
2117 | * lambda-code.c: Same. | |
2118 | * matrix-reorg.c: Same. | |
2119 | * tree-data-ref.c: Same. | |
2120 | * tree-if-conv.c: Same. | |
2121 | * tree-loop-distribu: Same.: Same. | |
2122 | * tree-loop-linear.c: Same. | |
2123 | * tree-parloops.c: Same. | |
2124 | * tree-predcom.c: Same. | |
2125 | * tree-vect-patterns.c: Same. | |
2126 | ||
2bc59caa | 2127 | 2009-11-20 Sebastian Pop <sebastian.pop@amd.com> |
2128 | ||
2129 | Revert patch from 2009-09-14. | |
2130 | * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite | |
2131 | passes at -O1 and below. | |
2132 | ||
1d4dd1ed | 2133 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2134 | ||
2135 | PR middle-end/40281 | |
6c9df8cb | 2136 | * gcc.dg/graphite/pr40281.c: New. |
1d4dd1ed | 2137 | |
2138 | * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride | |
2139 | evolutions should not variate in inner loops. | |
2140 | ||
efe7b64c | 2141 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2142 | ||
2143 | PR middle-end/42050 | |
6c9df8cb | 2144 | * gfortran.dg/graphite/pr42050.f90: New. |
efe7b64c | 2145 | |
acba5819 | 2146 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2147 | ||
2148 | * graphite-interchange.c (memory_strides_in_loop_depth): New. | |
2149 | (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth. | |
2150 | ||
64d8f27a | 2151 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2152 | ||
2153 | * graphite-blocking.c (scop_do_block): New. | |
2154 | * graphite-poly.c (apply_poly_transforms): Call scop_do_block. | |
2155 | * graphite-poly.h (scop_do_block): Declared. | |
2156 | ||
9a0158f5 | 2157 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2158 | ||
2159 | * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter | |
2160 | depth is the loop nesting depth in the LST. Call psct_dynamic_dim | |
2161 | to transform depth into the time_depth before calling | |
2162 | pbb_number_of_iterations_at_time. | |
2163 | (lst_do_strip_mine): Use a scalar variable instead of recomputing | |
2164 | lst_depth. | |
2165 | ||
9d274e75 | 2166 | 2009-11-18 Sebastian Pop <sebastian.pop@amd.com> |
2167 | ||
2168 | Reverted the patch for "scattering permutations" from 2009-10-28. | |
2169 | ||
2170 | * graphite-poly.c (print_permutation): New. | |
2171 | (debug_permutation): New. | |
2172 | (new_poly_bb): Initialize PBB_PERMUTATION. | |
2173 | (free_poly_bb): Free PBB_PERMUTATION. | |
2174 | * graphite-poly.h (pbb_permutation_elt_p): Declared. | |
2175 | (struct pbb_permutation_elt): New. | |
2176 | (PBB_PERMUTATION_ELT_STRIDE): New. | |
2177 | (PBB_PERMUTATION_ELT_STRIDED_P): New. | |
2178 | (PBB_PERMUTATION_ELT_TIME_DIMENSION): New. | |
2179 | (new_pbb_permutation_elt): New. | |
2180 | (pbb_permutation_elt_free): New. | |
2181 | (struct poly_bb): Add field permutation. | |
2182 | (PBB_PERMUTATION): New. | |
2183 | (print_permutation): Declared. | |
2184 | (debug_permutation): Declared. | |
2185 | ||
3bcc3204 | 2186 | 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> |
2187 | ||
2188 | * graphite-interchange.c (build_partial_difference): New. | |
2189 | (memory_stride_in_loop): Refactored the computation of | |
2190 | equality constraints into build_partial_difference function. | |
2191 | Added support for debugging stride computations. | |
2192 | ||
d996851c | 2193 | 2009-11-03 Sebastian Pop <sebastian.pop@amd.com> |
2194 | ||
2195 | * graphite-clast-to-gimple.c (gloog): Free if_region, | |
2196 | if_region->true_region, and if_region->region. | |
2197 | * sese.c (if_region_set_false_region): Free if_region->false_region. | |
2198 | (create_if_region_on_edge): Do not use GGC_NEW. | |
2199 | (move_sese_in_condition): Remove useless initialization. | |
2200 | ||
87d25ca7 | 2201 | 2009-11-03 Sebastian Pop <sebastian.pop@amd.com> |
2202 | ||
2203 | * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters | |
2204 | for the loops created by the loop distribution. Do not modify the | |
2205 | input LSTs. | |
2206 | (lst_try_interchange_loops): Same. Use a temporary LST for the | |
2207 | transformed schedule. Call lst_update_scattering before data | |
2208 | dependence analysis. | |
2209 | (lst_try_interchange): Pass an extra parameter INDEX. | |
2210 | (lst_do_interchange_1): New. | |
2211 | (lst_do_interchange): Call lst_do_interchange_1. | |
2212 | (scop_do_interchange): Call lst_update_scattering. | |
2213 | * graphite-poly.c (apply_poly_transforms): Do not call | |
2214 | lst_update_scattering. | |
2215 | * graphite-poly.h (lst_pred): New. | |
2216 | (lst_succ): New. | |
2217 | (lst_find_first_pbb): Return NULL when not found. | |
2218 | (lst_empty_p): New. | |
2219 | (lst_insert_in_sequence): Allow LST1 to be NULL. | |
2220 | (lst_replace): New. | |
2221 | (lst_substitute_3): New. | |
2222 | * gcc.dg/graphite/interchange-1.c: XFail. | |
2223 | * gcc.dg/graphite/interchange-8.c: XFail. | |
2224 | * gcc.dg/graphite/interchange-11.c: XFail. | |
2225 | ||
06ced013 | 2226 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2227 | ||
2228 | * graphite-interchange.c (lst_perfectly_nested_p): New. | |
2229 | (lst_perfect_nestify): New. | |
2230 | (lst_try_interchange_loops): Call store_lst_schedule, | |
2231 | lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule. | |
2232 | (scop_do_interchange): Avoid redundant legality test. | |
2233 | Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE. | |
2234 | * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering. | |
2235 | * graphite-poly.h (psct_static_dim): New. | |
2236 | (lst_dewey_number_at_depth): New. | |
2237 | (lst_find_pbb): Restructured. | |
2238 | (lst_find_first_pbb): Restructured. | |
2239 | (lst_find_last_pbb): New. | |
2240 | (lst_contains_p): New. | |
2241 | (lst_contains_pbb): New. | |
2242 | (lst_create_nest): New. | |
2243 | (lst_remove_from_sequence): New. | |
2244 | (pbb_update_scattering): New. | |
2245 | (lst_update_scattering_under): New. | |
2246 | (lst_update_scattering_seq): New. | |
2247 | (lst_update_scattering): New. | |
2248 | (lst_insert_in_sequence): New. | |
2249 | (lst_distribute_lst): New. | |
2250 | (lst_remove_all_before_including_pbb): New. | |
2251 | (lst_remove_all_before_excluding_pbb): New. | |
2252 | ||
bf3aab8f | 2253 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2254 | ||
2255 | * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice | |
2256 | get_loop_exit_edges. | |
2257 | ||
06b1d38c | 2258 | 2009-10-30 Sebastian Pop <sebastian.pop@amd.com> |
2259 | ||
2260 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed. | |
2261 | ||
22467ffb | 2262 | 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2263 | ||
2264 | * graphite-poly.c (print_permutation): New. | |
2265 | (debug_permutation): New. | |
2266 | (new_poly_bb): Initialize PBB_PERMUTATION. | |
2267 | (free_poly_bb): Free PBB_PERMUTATION. | |
2268 | * graphite-poly.h (pbb_permutation_elt_p): Declared. | |
2269 | (struct pbb_permutation_elt): New. | |
2270 | (PBB_PERMUTATION_ELT_STRIDE): New. | |
2271 | (PBB_PERMUTATION_ELT_STRIDED_P): New. | |
2272 | (PBB_PERMUTATION_ELT_TIME_DIMENSION): New. | |
2273 | (new_pbb_permutation_elt): New. | |
2274 | (pbb_permutation_elt_free): New. | |
2275 | (struct poly_bb): Add field permutation. | |
2276 | (PBB_PERMUTATION): New. | |
2277 | (print_permutation): Declared. | |
2278 | (debug_permutation): Declared. | |
2279 | ||
628eaf60 | 2280 | 2009-10-26 Sebastian Pop <sebastian.pop@amd.com> |
2281 | ||
2282 | * graphite-clast-to-gimple.c (gloog): Do not call | |
2283 | sese_reset_aux_in_loops. | |
2284 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an | |
2285 | extra argument for domains. Do not use loop->aux. | |
2286 | (build_scop_iteration_domain): Initialize and free domains, pass it | |
2287 | to build_loop_iteration_domains and extract the information from | |
2288 | domains. Do not use loop->aux. | |
2289 | * sese.c (sese_reset_aux_in_loops): Removed. | |
2290 | * sese.h (sese_reset_aux_in_loops): Removed. | |
2291 | ||
2eb8c11d | 2292 | 2009-10-26 Sebastian Pop <sebastian.pop@amd.com> |
2293 | ||
2294 | * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up. | |
2295 | (dependency_in_loop_p): Same. | |
2296 | (translate_clast): Do not use loop->aux. Initialize | |
2297 | loop->can_be_parallel. | |
2298 | (mark_loops_parallel): Removed. | |
2299 | * graphite-clast-to-gimple.h (mark_loops_parallel): Removed. | |
2300 | * graphite.c (free_aux_in_new_loops): Removed. | |
2301 | (graphite_finalize): Do not call free_aux_in_new_loops. | |
2302 | (graphite_transform_loops): Do not call mark_loops_parallel. | |
2303 | ||
2304 | 2009-10-26 Li Feng <nemokingdom@gmail.com> | |
86cbf617 | 2305 | |
2306 | * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed. | |
2307 | (translate_clast): Pass an extra parameter LEVEL. | |
2308 | Call get_scattering_level. | |
2309 | * graphite-clast-to-gimple.h (get_scattering_level): New. | |
2310 | ||
314c9614 | 2311 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2312 | ||
2313 | * cfgloop.c (alloc_loop): Initialize loop->single_iv. | |
2314 | * cfgloop.h (struct loop): New field single_iv. | |
2315 | ||
2316 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use | |
2317 | loop->aux anymore: use loop->single_iv. | |
2318 | (graphite_loop_normal_form): Moved... | |
2319 | (build_graphite_loop_normal_form): Removed. | |
2320 | (gloog): Do not call build_graphite_loop_normal_form. | |
2321 | (free_aux_in_new_loops): Moved... | |
2322 | (mark_loops_parallel): Restructure. | |
2323 | * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare. | |
2324 | * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here. | |
2325 | (scop_canonicalize_loops): New. | |
2326 | (build_poly_scop): Call scop_canonicalize_loops. | |
2327 | * graphite.c (free_aux_in_new_loops): ...here. | |
2328 | ||
71bc7526 | 2329 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2330 | ||
2331 | * g++.dg/graphite/graphite.exp: Add the same rules as in | |
2332 | gcc.dg/graphite/graphite.exp. | |
2333 | ||
24af1ef8 | 2334 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2335 | ||
2336 | * g++.dg/graphite/id-1.C: New. | |
2337 | ||
03c1327b | 2338 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2339 | ||
2340 | * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra | |
2341 | argument base_name. | |
2342 | (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array. | |
2343 | (rewrite_phi_out_of_ssa): Same. | |
2344 | (rewrite_cross_bb_scalar_deps): Same. | |
2345 | (translate_scalar_reduction_to_array): Same. | |
2346 | ||
8f9b64ca | 2347 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2348 | ||
2349 | * graphite-sese-to-poly.c (build_scop_drs): Disable call to | |
2350 | dump_alias_graphs. | |
2351 | ||
aa16918e | 2352 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2353 | ||
2354 | * graphite-sese-to-poly.c (dump_alias_graphs): New. | |
2355 | (build_scop_drs): Call dump_alias_graphs. | |
2356 | ||
7e7ffe19 | 2357 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2358 | ||
2359 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE, | |
2360 | SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE. | |
2361 | (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE, | |
2362 | SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE. | |
2363 | * graphite-poly.h (free_lst): New. | |
2364 | (store_lst_schedule): Free SCOP_SAVED_SCHEDULE. | |
2365 | (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE. | |
2366 | ||
e2622b4f | 2367 | 2009-10-22 Sebastian Pop <sebastian.pop@amd.com> |
2368 | ||
2369 | * graphite-poly.h (struct scop): Add a field saved_schedule. | |
2370 | (SCOP_SAVED_SCHEDULE): New. | |
2371 | (store_lst_schedule): New. | |
2372 | (restore_lst_schedule): New. | |
2373 | (store_scattering): Call store_lst_schedule. | |
2374 | (restore_scattering): Call restore_lst_schedule. | |
2375 | ||
1a95516e | 2376 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2377 | ||
2378 | * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting. | |
2379 | (pdr_add_alias_set): Same. | |
2380 | (build_poly_dr): Same. | |
2381 | (build_alias_set_optimal_p): Same. | |
2382 | (build_base_obj_set_for_drs): Same. Do not store the result of | |
2383 | graphds_dfs. | |
2384 | ||
f289f81b | 2385 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2386 | ||
2387 | * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize | |
2388 | all_components_are_cliques to 1. | |
2389 | ||
e9a3f95f | 2390 | 2009-10-20 Li Feng <nemokingdom@gmail.com> |
2391 | ||
2392 | * graphite-sese-to-poly.c (free_data_refs_aux): Update to free | |
2393 | the new structure. | |
2394 | (pdr_add_alias_set): Update retrieving alias_set_num. | |
2395 | (build_poly_dr): Update retrieving dr_base_object_set. | |
2396 | (partition_drs_to_sets): Remove. | |
2397 | (build_alias_set_optimal_p): New. | |
2398 | (build_alias_set_for_drs): Rename. | |
2399 | (build_scop_drs): Update. | |
2400 | * graphite-sese-to-poly.h (struct base_alias_pair): New. | |
2401 | (ALIAS_SET_INDEX): Remove. | |
2402 | (BASE_OBJECT_SET_INDEX): Remove. | |
2403 | ||
a6457fb8 | 2404 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2405 | ||
2406 | * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL. | |
2407 | ||
3354e72e | 2408 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2409 | ||
2410 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer | |
2411 | loop upper bounds for 1-element arrays at end of structures. | |
2412 | * tree-flow.h (array_at_struct_end_p): Declared. | |
2413 | * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore. | |
2414 | ||
917c8e43 | 2415 | 2009-10-20 Sebastian Pop <sebastian.pop@amd.com> |
2416 | ||
2417 | * g++.dg/graphite/pr41305.C: New. | |
2418 | ||
b6410506 | 2419 | 2009-10-20 Alexander Monakov <amonakov@ispras.ru> |
2420 | ||
2421 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize | |
2422 | construction of parameter constraints from loop iteration analysis. | |
2423 | * gcc.dg/graphite/run-id-2.c: New test. | |
2424 | ||
a66257d5 | 2425 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2426 | ||
2427 | * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma | |
2428 | and new_cstr. | |
2429 | ||
38e3217b | 2430 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2431 | ||
2432 | * graphite-dependences.c (dependence_polyhedron_1): Remove | |
2433 | unused gdim dimensions from the DDR polyhedron. | |
2434 | ||
de38f9c0 | 2435 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2436 | ||
2437 | * graphite-dependences.c (pddr_transformed_scattering): New. | |
2438 | (dot_original_deps_stmt_1): New. | |
2439 | (dot_transformed_deps_stmt_1): New. | |
2440 | (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and | |
2441 | dot_transformed_deps_stmt_1. | |
2442 | (dot_original_deps): New. | |
2443 | (dot_transformed_deps): New. | |
2444 | (dot_deps_1): Call dot_original_deps and dot_transformed_deps. | |
2445 | ||
ba01d66f | 2446 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2447 | ||
2448 | * graphite-dependences.c (reduction_dr_1): Remove wrong | |
2449 | assert: reduction BBs can have multiple reduction writes | |
de38f9c0 | 2450 | to memory. interchange-3.f90 is an example. |
ba01d66f | 2451 | |
9050e62f | 2452 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2453 | ||
2454 | * gfortran.dg/graphite/interchange-3.f90: New. | |
2455 | ||
d26b2d30 | 2456 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2457 | ||
2458 | * gcc.dg/graphite/interchange-1.c: Un-XFAILed. | |
2459 | ||
bff9278d | 2460 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2461 | ||
2462 | * graphite-dependences.c (dependence_polyhedron_1): Add the | |
2463 | context to the dependence polyhedron. | |
2464 | ||
13d0cae2 | 2465 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2466 | ||
2467 | * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize | |
2468 | PBB_PDR_DUPLICATES_REMOVED. | |
2469 | (new_poly_bb): Same. | |
2470 | ||
acb3969f | 2471 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2472 | ||
2473 | * graphite-sese-to-poly.c (find_scop_parameters): Initialize | |
2474 | SCOP_CONTEXT. | |
2475 | (build_loop_iteration_domains): Extract bounds on parameters | |
2476 | based on the data size. | |
2477 | (build_scop_context): Do not initialize SCOP_CONTEXT; | |
2478 | add new constraints. | |
2479 | ||
e6d78739 | 2480 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2481 | ||
2482 | * graphite-ppl.c (ppl_min_for_le_polyhedron): New. | |
2483 | * graphite-ppl.h (graphite-ppl.h): Declared. | |
2484 | ||
409f96c1 | 2485 | 2009-10-17 Sebastian Pop <sebastian.pop@amd.com> |
2486 | ||
2487 | * graphite-ppl.c (ppl_print_linear_expr): New. | |
2488 | (debug_ppl_linear_expr): New. | |
2489 | * graphite-ppl.h (ppl_print_linear_expr): Declared. | |
2490 | (debug_ppl_linear_expr): Declared. | |
2491 | ||
3d695986 | 2492 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2493 | ||
2494 | * graphite-interchange.c: Fix comments. | |
2495 | * gcc.dg/graphite/block-1.c: Fix comments. | |
2496 | ||
ecab863e | 2497 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2498 | ||
2499 | * gcc.dg/graphite/interchange-7.c: Un-XFAILed. | |
2500 | * gcc.dg/graphite/interchange-9.c: Un-XFAILed. | |
2501 | ||
3dfb9fc0 | 2502 | 2009-10-16 Sebastian Pop <sebastian.pop@amd.com> |
2503 | ||
2504 | Reapply the patch from Alexander Monakov that disappeared during | |
2505 | the last merges from trunk. | |
2506 | ||
2507 | 2009-09-16 Alexander Monakov <amonakov@ispras.ru> | |
2508 | ||
2509 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
2510 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
2511 | ||
a1190c1b | 2512 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2513 | ||
2514 | * graphite-interchange.c (memory_stride_in_loop): The depth | |
2515 | argument corresponds to a dynamic time dimension, so use | |
2516 | psct_dynamic_dim to refer to the transformed scattering dimension. | |
2517 | ||
dd3d3fae | 2518 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2519 | ||
2520 | * graphite-interchange.c (memory_stride_in_loop): Fix comments. | |
2521 | ||
43217ce9 | 2522 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2523 | ||
2524 | * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the | |
2525 | root of the LST. | |
2526 | * graphite-interchange.c (lst_do_interchange): Avoid interchanging | |
2527 | the root of the LST. | |
2528 | * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost | |
2529 | fake loop. | |
2530 | (print_lst): Print the root of LST in a different format. | |
2531 | * graphite-poly.h (lst_depth): Adjust to include the root of the LST. | |
2532 | ||
9b6c835c | 2533 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2534 | ||
2535 | * graphite-poly.c (print_scop): Fix pretty printing of a SCoP. | |
2536 | ||
1e2a9aa7 | 2537 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2538 | ||
2539 | * doc/passes.texi: Document the Graphite infrastructure. | |
2540 | ||
ff010926 | 2541 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2542 | ||
2543 | * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge. | |
2544 | (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts, | |
2545 | and check the SSA representation. | |
2546 | ||
2547 | * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193. | |
2548 | ||
fa846ea9 | 2549 | 2009-10-15 Sebastian Pop <sebastian.pop@amd.com> |
2550 | ||
2551 | * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR. | |
2552 | ||
fe45c436 | 2553 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2554 | ||
2555 | * gcc.dg/graphite/interchange-11.c: New. | |
2556 | ||
2e3e5ac8 | 2557 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2558 | ||
2559 | * gcc.dg/graphite/interchange-8.c: Enable loop interchange. | |
2560 | ||
93a95718 | 2561 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2562 | ||
2563 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2564 | Add -fno-loop-strip-mine and -fno-loop-interchange. | |
2565 | (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and | |
2566 | -fno-loop-strip-mine. | |
2567 | * gfortran.dg/graphite/graphite.exp: Same. | |
2568 | ||
196689e3 | 2569 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2570 | ||
2571 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2572 | Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK. | |
2573 | (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed | |
2574 | DEFAULT_FLAGS_GRAPHITE_IDENTITY. | |
2575 | (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed | |
2576 | DEFAULT_FLAGS_GRAPHITE_INTERCHANGE. | |
2577 | (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed | |
2578 | DEFAULT_FLAGS_GRAPHITE_SCOP. | |
2579 | (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID. | |
2580 | (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE. | |
2581 | ||
d9e94834 | 2582 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2583 | ||
2584 | * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments. | |
2585 | ||
5e18ab2b | 2586 | 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
2587 | Sebastian Pop <sebastian.pop@amd.com> | |
2588 | ||
2589 | * graphite-interchange.c (build_linearized_memory_access): Pass an | |
2590 | offset as parameter. | |
2591 | (memory_stride_in_loop): Include transform scattering in the | |
2592 | access functions to be able to querry the strides in the | |
2593 | transformed loops. | |
2594 | (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim, | |
2595 | not the psct_iterator_dim. | |
2596 | ||
0befefcc | 2597 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2598 | ||
2599 | * graphite-blocking.c (pbb_do_strip_mine): Removed. | |
2600 | (lst_do_strip_mine_loop): New. | |
2601 | (lst_do_strip_mine): New. | |
2602 | (scop_do_strip_mine): Call lst_do_strip_mine. | |
2603 | * graphite-poly.h (lst_add_loop_under_loop): New. | |
2604 | (lst_find_first_pbb): New. | |
2605 | ||
71b90bc3 | 2606 | 2009-10-14 Sebastian Pop <sebastian.pop@amd.com> |
2607 | ||
2608 | * graphite-poly.c (loop_to_lst): Fix LST creation. | |
2609 | ||
4d6599d0 | 2610 | 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> |
2611 | ||
6c9df8cb | 2612 | * gcc.dg/graphite/id-15.c: (8 * 8) replaced with |
4d6599d0 | 2613 | sizeof(unsigned long) to make it run on 32bit systems. |
2614 | ||
2615 | 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
2616 | ||
6c9df8cb | 2617 | * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not |
4d6599d0 | 2618 | SEGFAULT on 32bit. |
2619 | ||
96233858 | 2620 | 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr> |
2621 | ||
4d6599d0 | 2622 | * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix |
2623 | Comment. | |
96233858 | 2624 | (write_alias_graph_to_ascii_dot): New. |
2625 | (write_alias_graph_to_ascii_ecc): Ditto. | |
4d6599d0 | 2626 | (partition_drs_to_sets): Add testing of optimality of current method |
2627 | which assigns alias numbers according to DFS Comopnent number. used | |
2628 | as heuristic for the upcoming ECC algorithm. | |
96233858 | 2629 | (build_scop_drs): Write to file also with the ecc and dot format. |
2630 | ||
8eedbd74 | 2631 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2632 | ||
2633 | * gfortran.dg/graphite/interchange-1.f: XFail. | |
2634 | ||
ef98ee10 | 2635 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2636 | ||
2637 | * graphite.c (graphite_initialize): Do not handle functions with | |
2638 | more than 100 basic blocks. | |
2639 | ||
b8ad26cc | 2640 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2641 | ||
2642 | * graphite-blocking.c (pbb_do_strip_mine): Use | |
2643 | PARAM_LOOP_BLOCK_TILE_SIZE. | |
2644 | ||
4938b827 | 2645 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2646 | ||
2647 | * graphite-poly.c (dot_lst_1): New. | |
2648 | (dot_lst): New. | |
2649 | * graphite-poly.h (dot_lst): Declared. | |
2650 | ||
a7d089ac | 2651 | 2009-10-13 Sebastian Pop <sebastian.pop@amd.com> |
2652 | ||
2653 | * graphite-dependences.c (dot_deps_stmt_1): New. | |
2654 | (dot_deps_stmt): New. | |
2655 | * graphite-dependences.h (dot_deps_stmt): Declared. | |
2656 | ||
dd27e8aa | 2657 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2658 | ||
2659 | * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do | |
2660 | not replace cross BB scalar dependences ending on PHI nodes. | |
2661 | (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes. | |
2662 | ||
dbe2e816 | 2663 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2664 | ||
2665 | * graphite-poly.c (apply_poly_transforms): Implement the high | |
2666 | level driver for flag_loop_block. | |
6c9df8cb | 2667 | * opts.c (decode_options): Enable flag_loop_block at -O2. |
dbe2e816 | 2668 | * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for |
2669 | flag_loop_block. | |
2670 | ||
2671 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add | |
2672 | -floop-block. | |
2673 | * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): | |
2674 | Add -floop-block. | |
2675 | ||
89d077e8 | 2676 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2677 | ||
2678 | * graphite-poly.h (lst_find_pbb): New. | |
2679 | (find_lst_loop): New. | |
2680 | ||
220b380e | 2681 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2682 | ||
2683 | * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH. | |
2684 | * graphite-poly.h (struct scop): Remove dep_graph field. | |
2685 | (SCOP_DEP_GRAPH): Removed. | |
2686 | ||
554eeadb | 2687 | 2009-10-09 Sebastian Pop <sebastian.pop@amd.com> |
2688 | ||
2689 | * graphite-poly.h (copy_lst): Do full copy of LST. | |
2690 | ||
30105622 | 2691 | 2009-10-07 Sebastian Pop <sebastian.pop@amd.com> |
2692 | ||
2693 | * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi | |
2694 | when the loop stride is zero. | |
2695 | ||
2696 | * gcc.dg/graphite/id-16.c: New. | |
2697 | ||
f007fe97 | 2698 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
2699 | ||
2700 | * graphite-dependences.c (reduction_dr_1): New. | |
2701 | (reduction_dr_p): New. | |
2702 | (graphite_legal_transform_dr): Call reduction_dr_p. | |
2703 | (reduction_ddr): Renamed reduction_ddr_p. | |
2704 | * graphite-poly.h (same_pdr_p): New. | |
2705 | (number_of_write_pdrs): New. | |
2706 | * graphite-sese-to-poly.c (nb_data_writes_in_bb): New. | |
2707 | (split_reduction_stmt): Do not split reduction statements | |
2708 | when there are no writes to memory. | |
2709 | (translate_scalar_reduction_to_array_for_stmt): Insert the | |
2710 | memory reduction statement just after the scalar reduction statement. | |
2711 | ||
2712 | * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c. | |
2713 | Un-XFAIL-ed. | |
2714 | * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed. | |
2715 | * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed. | |
2716 | ||
4d0382bc | 2717 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
2718 | ||
2719 | * graphite-interchange.c (lst_apply_interchange): New. | |
2720 | (lst_interchange_profitable_p): New. | |
2721 | (lst_try_interchange_loops): New. | |
2722 | (lst_try_interchange): New. | |
2723 | (lst_do_interchange): New. | |
2724 | (pbb_do_interchange): Removed. | |
2725 | (scop_do_interchange): Call lst_do_interchange. | |
2726 | ||
f77385d3 | 2727 | 2009-10-06 Sebastian Pop <sebastian.pop@amd.com> |
2728 | ||
2729 | * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and | |
2730 | SCOP_TRANSFORMED_SCHEDULE. | |
2731 | (loop_to_lst): New. | |
2732 | (scop_to_lst): New. | |
2733 | (print_lst): New. | |
2734 | (debug_lst): New. | |
2735 | * graphite-poly.h (lst_p): New. | |
2736 | (struct lst): New. | |
2737 | (LST_LOOP_P): New. | |
2738 | (LST_LOOP_FATHER): New. | |
2739 | (LST_PBB): New. | |
2740 | (LST_SEQ): New. | |
2741 | (scop_to_lst): Declared. | |
2742 | (print_lst): Declared. | |
2743 | (debug_lst): Declared. | |
2744 | (new_lst_loop): New. | |
2745 | (new_lst_stmt): New. | |
2746 | (copy_lst): New. | |
2747 | (lst_depth): New. | |
2748 | (lst_dewey_number): New. | |
2749 | (struct scop): Add original_schedule and transformed_schedule fields. | |
2750 | (SCOP_ORIGINAL_SCHEDULE): New. | |
2751 | (SCOP_TRANSFORMED_SCHEDULE): New. | |
2752 | * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst. | |
2753 | ||
30f4f4a6 | 2754 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2755 | ||
2756 | * graphite-dependences.c (reduction_ddr): New. | |
2757 | (graphite_legal_transform_bb): Call reduction_ddr. | |
2758 | * graphite-poly.c (new_poly_bb): Pass a new bool parameter. | |
2759 | Initialize PBB_IS_REDUCTION. | |
2760 | * graphite-poly.h (struct poly_bb): New bool field is_reduction. | |
2761 | (PBB_IS_REDUCTION): New. | |
2762 | (new_poly_bb): Update declaration. | |
2763 | * graphite-scop-detection.h (build_scop_bbs): Removed. | |
2764 | (nb_reductions_in_loop): Removed. | |
2765 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap | |
2766 | parameter for reductions. | |
2767 | (try_generate_gimple_bb): Update call to new_poly_bb. | |
2768 | (build_scop_bbs_1): Same. | |
2769 | (build_scop_bbs): Same. | |
2770 | (gsi_for_phi_node): New. | |
2771 | (scalar_close_phi_node_p): Remove gcc_assert. | |
2772 | (split_reduction_stmt): New. | |
2773 | (is_reduction_operation_p): New. | |
2774 | (phi_contains_arg): New. | |
2775 | (follow_ssa_with_commutative_ops): New. | |
2776 | (detect_commutative_reduction_arg): New. | |
2777 | (detect_commutative_reduction_assign): New. | |
2778 | (follow_inital_value_to_phi): New. | |
2779 | (edge_initial_value_for_loop_phi): New. | |
2780 | (initial_value_for_loop_phi): New. | |
2781 | (detect_commutative_reduction): New. | |
2782 | (translate_scalar_reduction_to_array_for_stmt): New. | |
2783 | (insert_copyout): New. | |
2784 | (insert_copyin): New. | |
2785 | (translate_scalar_reduction_to_array): New. | |
2786 | (rewrite_commutative_reductions_out_of_ssa_close_phi): New. | |
2787 | (rewrite_commutative_reductions_out_of_ssa_loop): New. | |
2788 | (rewrite_commutative_reductions_out_of_ssa): New. | |
2789 | (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa. | |
2790 | * sese.h (split_region_for_bb): New. | |
2791 | ||
2792 | * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math. | |
2793 | * gcc.dg/graphite/interchange-1.c: Fix format. | |
2794 | * gcc.dg/graphite/interchange-10.c: New. | |
2795 | ||
dcdff5dc | 2796 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2797 | ||
2798 | * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove | |
2799 | buggy assert. | |
2800 | ||
5061777c | 2801 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2802 | ||
2803 | * graphite-sese-to-poly.c (scev_analyzable_p): New. | |
2804 | (rewrite_cross_bb_scalar_dependence): New. | |
2805 | (rewrite_cross_bb_scalar_deps): New. | |
2806 | (rewrite_reductions_out_of_ssa): Use bb_in_sese_p. | |
2807 | Call rewrite_cross_bb_scalar_deps. | |
2808 | ||
52123e43 | 2809 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2810 | ||
2811 | * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed. | |
2812 | (insert_out_of_ssa_copy): Directly use gsi_after_labels and | |
2813 | gsi_for_stmt. | |
2814 | ||
ef43e998 | 2815 | 2009-10-05 Sebastian Pop <sebastian.pop@amd.com> |
2816 | ||
2817 | * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index. | |
2818 | * graphite-interchange.c (pbb_do_interchange): Same. | |
2819 | * graphite-poly.c (print_scattering_function): Same. | |
2820 | (debug_pdrs): Same. | |
2821 | * graphite-poly.h (pbb_loop): New. | |
2822 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop. | |
2823 | ||
7bf7d520 | 2824 | 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> |
2825 | ||
2826 | * graphite-scop-detection.c (limit_scops): Do not build poly_bbs. | |
2827 | ||
9c48819a | 2828 | 2009-09-27 Sebastian Pop <sebastian.pop@amd.com> |
2829 | ||
2830 | * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified, | |
2831 | so don't pass a pointer to it. | |
2832 | (build_alias_set_for_drs): Same. | |
2833 | (build_base_obj_set_for_drs): Same. | |
2834 | (build_scop_drs): Same. | |
2835 | ||
af3b89d1 | 2836 | 2009-09-26 Li Feng <nemokingdom@gmail.com> |
2837 | ||
2838 | * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file | |
2839 | the alias graph of data references. | |
2840 | ||
8dee37ec | 2841 | 2009-09-25 Li Feng <nemokingdom@gmail.com> |
2842 | ||
2843 | * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New. | |
2844 | (build_scop_drs): When debugging, write the alias graph to file, | |
2845 | otherwise, should be disabled. | |
2846 | ||
6c9df8cb | 2847 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> |
2848 | ||
2849 | * Merge from mainline (151310:151361). | |
2850 | ||
2851 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2852 | ||
2853 | * Merge from mainline (151171:151310). | |
2854 | ||
2855 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2856 | ||
2857 | * Merge from mainline (151171:151806). | |
2858 | ||
2859 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2860 | ||
2861 | * Revert the last commit. | |
2862 | ||
2863 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> | |
2864 | ||
2865 | * Merge from mainline (151171:151819). | |
2866 | ||
3cc56eaf | 2867 | 2009-09-17 Sebastian Pop <sebastian.pop@amd.com> |
2868 | ||
2869 | * graphite-scop-detection.c (stmt_simple_memref_p): Removed. | |
2870 | (is_simple_operand): Remove call to stmt_simple_memref_p. | |
2871 | (stmt_simple_for_scop_p): Update call to is_simple_operand. | |
2872 | ||
4d62cf0c | 2873 | 2009-09-17 David Edelsohn <edelsohn@gnu.org> |
2874 | ||
6c9df8cb | 2875 | * gcc.dg/graphite/interchange-mvt.c: New File. |
2876 | * gcc.dg/graphite/scop-dsyrk.c: New File. | |
2877 | * gcc.dg/graphite/scop-dsyr2k.c: New File. | |
2878 | * gcc.dg/graphite/scop-mvt.c: New File. | |
2879 | * gcc.dg/graphite/scop-sor.c: New File. | |
4d62cf0c | 2880 | |
ae11f03b | 2881 | 2009-09-17 Li Feng <nemokingdom@gmail.com> |
2882 | ||
ae11f03b | 2883 | * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition. |
2884 | (pddr_original_scattering): Make sure 2 pdr2 in the same base object set. | |
2885 | (graphite_carried_dependence_level_k): Ditto. | |
2886 | * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET. | |
2887 | * graphite-poly.h (struct poly_dr): Add member dr_base_object_set. | |
2888 | (new_poly_dr): Adjust declaration. | |
2889 | * graphite-sese-to-poly.c (free_data_refs_aux): New. | |
2890 | (free_gimple_bb): Added free_data_refs_aux. | |
2891 | (build_poly_dr): Add dr_base_object_set. | |
2892 | (partition_drs_to_sets): New. | |
2893 | (dr_same_base_object_p): New. | |
2894 | (build_alias_set_for_drs): New. | |
2895 | (build_base_object_set_for_drs): New. | |
2896 | (build_scop_drs): Add build_base_obj_set_for_drs. | |
2897 | * graphite-sese-to-poly.h: Added #define for alias set number index and | |
2898 | base object set index. | |
2899 | * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests. | |
2900 | * libgomp/testsuite/libgomp.graphite/pr4118.c: New. | |
2901 | ||
e5d72697 | 2902 | 2009-09-16 Alexander Monakov <amonakov@ispras.ru> |
2903 | ||
2904 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only | |
2905 | for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds. | |
2906 | ||
db899978 | 2907 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
2908 | ||
2909 | * graphite-sese-to-poly.c (struct irp_data): Removed. | |
2910 | (idx_record_params): Removed. | |
2911 | (find_params_in_bb): Scan for parameters the access functions; don't | |
2912 | parse the tree representation. | |
2913 | ||
e5b6be5e | 2914 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
2915 | ||
2916 | * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite | |
2917 | passes at -O1 and below. | |
2918 | ||
f631009f | 2919 | 2009-09-14 Sebastian Pop <sebastian.pop@amd.com> |
2920 | ||
2921 | * graphite-blocking.c: Fix order of includes: tree-chrec.h, then | |
2922 | tree-scalar-evolution.h, and then tree-data-ref.h. | |
2923 | * graphite-clast-to-gimple.c: Same. | |
2924 | * graphite-dependences.c: Same. | |
2925 | * graphite-interchange.c: Same. | |
2926 | * graphite-poly.c: Same. | |
2927 | * graphite-scop-detection.c: Same. | |
2928 | * graphite-sese-to-poly.c: Same. | |
2929 | * graphite.c: Same. | |
2930 | * lambda-code.c: Same. | |
2931 | * matrix-reorg.c: Same. | |
2932 | * tree-data-ref.c: Same. | |
2933 | * tree-if-conv.c: Same. | |
2934 | * tree-loop-distribu: Same.: Same. | |
2935 | * tree-loop-linear.c: Same. | |
2936 | * tree-parloops.c: Same. | |
2937 | * tree-predcom.c: Same. | |
2938 | * tree-vect-patterns.c: Same. | |
2939 | ||
5e803fbe | 2940 | 2009-09-02 Sebastian Pop <sebastian.pop@amd.com> |
2941 | ||
2942 | Partially revert the previous patch, except the following. | |
2943 | * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass | |
2944 | as parameters the operands of the not expression. | |
2945 | ||
c43f1e90 | 2946 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2947 | ||
2948 | * tree-scalar-evolution.c (instantiate_scev_assign): New. | |
2949 | Do not call analyze_scalar_evolution on assignments. | |
2950 | (instantiate_scev_phi): Call analyze_scalar_evolution. | |
2951 | (instantiate_scev_name): Call instantiate_scev_assign and | |
2952 | instantiate_scev_phi. | |
2953 | (instantiate_scev_not): Adapted to pass as parameters the operands | |
2954 | of the not expression. | |
2955 | ||
9e9aa0c6 | 2956 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2957 | ||
2958 | * tree-scalar-evolution.c (instantiate_scev_binary): Adapted | |
2959 | to pass as parameters the operands of the binary expression. | |
2960 | ||
9d206f16 | 2961 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2962 | ||
2963 | * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed | |
2964 | instantiate_scev_not. Handle NEGATE_EXPR. | |
2965 | (instantiate_scev_r): Handle NEGATE_EXPR. | |
2966 | ||
d91a99f1 | 2967 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2968 | ||
2969 | * tree-scalar-evolution.c (instantiate_scev_1): Renamed | |
2970 | instantiate_scev_r. | |
2971 | (instantiate_scev_r): Move code in instantiate_scev_2 | |
2972 | and instantiate_scev_1. | |
2973 | ||
378a6626 | 2974 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2975 | ||
2976 | * tree-scalar-evolution.c (instantiate_scev_3): New. | |
2977 | (instantiate_scev_1): Move code in instantiate_scev_3. | |
2978 | ||
a819f845 | 2979 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2980 | ||
2981 | * tree-scalar-evolution.c (instantiate_scev_poly): New. | |
2982 | (instantiate_scev_1): Move code in instantiate_scev_poly. | |
2983 | ||
39251a91 | 2984 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2985 | ||
2986 | * tree-scalar-evolution.c (instantiate_scev_bitnot): New. | |
2987 | (instantiate_scev_1): Move code in instantiate_scev_bitnot. | |
2988 | ||
7723692a | 2989 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2990 | ||
2991 | * tree-scalar-evolution.c (instantiate_scev_convert): New. | |
2992 | (instantiate_scev_1): Move code in instantiate_scev_convert. | |
2993 | ||
5a10dfba | 2994 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
2995 | ||
2996 | * tree-scalar-evolution.c (instantiate_scev_binary): New. | |
2997 | (instantiate_scev_1): Move code in instantiate_scev_binary. | |
2998 | ||
0731d869 | 2999 | 2009-09-01 Sebastian Pop <sebastian.pop@amd.com> |
3000 | ||
3001 | * tree-scalar-evolution.c (instantiate_scev_name): New. | |
3002 | (instantiate_scev_1): Move code in instantiate_scev_name. | |
3003 | ||
3004 | 2009-08-28 Sebastian Pop <sebastian.pop@amd.com> | |
3005 | ||
3006 | * Merge from mainline (150992:151171). | |
3007 | ||
6c9df8cb | 3008 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3009 | ||
3010 | * opts.c (decode_options): Enable flag_loop_interchange at -O2. | |
3011 | ||
9e3531b5 | 3012 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3013 | ||
3014 | * graphite-dependences.c (graphite_legal_transform_bb): Call | |
3015 | pbb_remove_duplicate_pdrs. | |
3016 | * graphite-poly.c (can_collapse_pdr): Removed. | |
3017 | (pdr_find_duplicate): Removed. | |
3018 | (can_collapse_pdrs): New. | |
3019 | (pbb_remove_duplicate_pdrs): New. | |
3020 | (new_poly_dr): Do not look for duplicates. | |
3021 | * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed. | |
3022 | (PBB_PDR_DUPLICATES_REMOVED): New. | |
3023 | (pbb_remove_duplicate_pdrs): Declared. | |
3024 | ||
11b2102e | 3025 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3026 | ||
3027 | * graphite-interchange.c (pbb_interchange_profitable_p): Adjust | |
3028 | the strides by multiplying by PDR_NB_REFS. | |
3029 | * graphite-poly.c (can_collapse_pdr): New. | |
3030 | (pdr_find_duplicate): New. | |
3031 | (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs. | |
3032 | Initialize PDR_NB_REFS. | |
3033 | * graphite-poly.h (struct poly_dr): Add field nb_refs. | |
3034 | (PDR_NB_REFS): New. | |
3035 | (new_poly_dr): Number of subscripts is a graphite_dim_t. | |
3036 | ||
3037 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
3038 | ||
3039 | Revert one of the previous commits: | |
3040 | * graphite-dependences.c (graphite_legal_transform_bb): Avoid | |
3041 | the computation of symmetric data dependence relations. | |
3042 | (dependency_between_pbbs_p): Same. | |
3043 | ||
d0aaf399 | 3044 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3045 | ||
3046 | PR middle-end/40965 | |
3047 | * graphite-poly.c (apply_poly_transforms): Remove legality test before | |
3048 | any transform. | |
3049 | ||
79698ff3 | 3050 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3051 | ||
3052 | * graphite-dependences.c (pddr_original_scattering): Return NULL | |
3053 | for read-read dependence relations. | |
3054 | * graphite-poly.h (enum poly_dr_type): Fix comment. | |
3055 | (pdr_read_p): New. | |
3056 | (pdr_write_p): New. | |
3057 | (pdr_may_write_p): New. | |
3058 | ||
c04f2da7 | 3059 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3060 | ||
3061 | * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type. | |
3062 | (struct poly_dr): Same. | |
3063 | (new_poly_dr): Same. | |
3064 | * graphite-poly.c (new_poly_dr): Same. | |
3065 | ||
ee0d08ad | 3066 | 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
3067 | Sebastian Pop <sebastian.pop@amd.com> | |
3068 | ||
3069 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed | |
3070 | pbb_strip_mine_time_depth. Changed the implementation so that | |
3071 | transformation is expressed as a transformation on | |
3072 | time (scatttering) dimensions. Also, ensures that the 2d+1 | |
3073 | scheduling format is preserved. | |
3074 | (pbb_strip_mine_profitable_p): Profitability is based on the | |
3075 | iteration number of a given time (scattering) dimension, | |
3076 | and not on a original loop depth dimension. | |
3077 | (pbb_strip_mine): Call pbb_number_of_iterations_at_time. | |
3078 | (pbb_do_strip_mine): Call psct_dynamic_dim. | |
3079 | * graphite-poly.c (pbb_number_of_iterations_at_time): New. | |
3080 | * graphite-poly.h (pbb_number_of_iterations_at_time): Declared. | |
3081 | (pbb_nb_dynamic_scattering_transform): New. | |
3082 | (psct_dynamic_dim): New. | |
3083 | ||
55c54afb | 3084 | 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
3085 | ||
3086 | * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
3087 | * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset. | |
3088 | * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le. | |
3089 | * graphite-interchange.c (build_linearized_memory_access): Same. | |
3090 | (memory_stride_in_loop): Same. | |
3091 | ||
96b6d5d7 | 3092 | 2009-08-25 Sebastian Pop <sebastian.pop@amd.com> |
3093 | ||
3094 | * graphite-dependences.c (pddr_original_scattering): New. | |
3095 | (graphite_legal_transform_dr): Call pddr_original_scattering. | |
3096 | (dot_deps_1): New. | |
3097 | (dot_deps): New. | |
3098 | * graphite-dependences.h (dot_deps): Declared. | |
3099 | * graphite-poly.c (new_poly_dr): Initialize PDR_ID. | |
3100 | (print_pdr): Print PDR_ID. | |
3101 | * graphite-poly.h (struct poly_dr): Add field id. | |
3102 | (PDR_ID): New. | |
3103 | (pbb_index): New. | |
3104 | * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment. | |
3105 | ||
2b3a572c | 3106 | 2009-08-22 Sebastian Pop <sebastian.pop@amd.com> |
3107 | ||
3108 | * graphite-dependences.c (graphite_carried_dependence_level_k): Do | |
3109 | not delete the original dependence relation. | |
3110 | ||
3111 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
3112 | ||
3113 | * graphite-dependences.c (graphite_legal_transform_bb): Avoid | |
3114 | the computation of symmetric data dependence relations. | |
3115 | (dependency_between_pbbs_p): Same. | |
3116 | ||
0d6b5db2 | 3117 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> |
3118 | ||
3119 | * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr. | |
3120 | (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p. | |
3121 | (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p. | |
3122 | (free_poly_ddr): New. | |
3123 | (pddr_is_empty): New. | |
3124 | (dependence_polyhedron_1): Now returns a poly_ddr_p. | |
3125 | (dependence_polyhedron): Same. Remove useless gcc_assert. | |
3126 | Remove fprintfs. | |
3127 | (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr. | |
3128 | (graphite_carried_dependence_level_k): Call pddr_is_empty. | |
3129 | * graphite-dependences.h (enum poly_dependence_kind): New. | |
3130 | (poly_dr_pair): Renamed poly_ddr. Added a field kind. | |
3131 | (PDRP_SOURCE): Renamed PDDR_SOURCE. | |
3132 | (PDRP_SINK): Renamed PDDR_SINK. | |
3133 | (PDRP_DDP): Renamed PDDR_DDP. | |
3134 | (PDDR_KIND): New. | |
3135 | (free_poly_ddr): Declared. | |
3136 | * graphite-poly.c (new_scop): Use the new hash function names. | |
3137 | * graphite-poly.h (struct scop): Renamed field original_pdr_pairs | |
3138 | into original_pddrs. | |
3139 | (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS. | |
3140 | ||
3141 | 2009-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
3142 | ||
3143 | * Merge from mainline (150764:150992). | |
3144 | ||
02df46c6 | 3145 | 2009-08-18 Sebastian Pop <sebastian.pop@amd.com> |
3146 | ||
3147 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper | |
3148 | bounds with LT_EXPR to make niter analysis more precise on code | |
3149 | generated by Graphite. | |
3150 | ||
70a1a7a2 | 3151 | 2009-08-18 Sebastian Pop <sebastian.pop@amd.com> |
3152 | ||
3153 | * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting. | |
3154 | (graphite_legal_transform_bb): Same. | |
3155 | (poly_drs_may_alias_p): Same. | |
3156 | ||
19eec579 | 3157 | 2009-08-15 Sebastian Pop <sebastian.pop@amd.com> |
3158 | ||
3159 | PR middle-end/40981 | |
3160 | * graphite-ppl.c (ppl_max_for_le): Correct the use of | |
3161 | ppl_Pointset_Powerset_C_Polyhedron_maximize. | |
3162 | ||
3163 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
3164 | ||
3165 | * graphite-poly.c (print_pbb): Print PBB index. | |
3166 | ||
3167 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
3168 | ||
3169 | * Merge from mainline (r150672:150764). | |
3170 | ||
3171 | 2009-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
3172 | ||
3173 | * graphite-interchange.c (ppl_max_for_le): Moved... | |
3174 | * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le. | |
3175 | * graphite-ppl.c (ppl_max_for_le): ... here. | |
3176 | * graphite-ppl.h (ppl_max_for_le): Declared. | |
3177 | ||
3178 | 2009-08-12 Sebastian Pop <sebastian.pop@amd.com> | |
3179 | ||
3180 | * Merge from mainline (r150372:150672). | |
3181 | ||
43f8b6ab | 3182 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3183 | ||
3184 | PR middle-end/40980 | |
3185 | * sese.c (convert_for_phi_arg): New. | |
3186 | (add_guard_exit_phis): Use convert_for_phi_arg. | |
3187 | ||
6c9df8cb | 3188 | * gfortran.dg/graphite/id-17.f: New. |
43f8b6ab | 3189 | |
96da1999 | 3190 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3191 | ||
3192 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add | |
3193 | unknown subscript upper bounds. | |
3194 | ||
6c9df8cb | 3195 | * gcc.dg/graphite/interchange-6.c: Un-XFAIL. |
96da1999 | 3196 | |
80020e9d | 3197 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3198 | Pranav Garg <pranav.garg2107@gmail.com> | |
3199 | ||
3200 | * graphite-interchange.c (gather_access_strides): Removed. | |
3201 | (ppl_max_for_le): New. | |
3202 | (build_linearized_memory_access): New. | |
3203 | (memory_stride_in_loop): New. | |
3204 | (pbb_interchange_profitable_p): Reimplemented. | |
3205 | * graphite-ppl.h (ppl_new_id_map): New. | |
3206 | (ppl_interchange): New. | |
3207 | ||
6c9df8cb | 3208 | * gcc.dg/graphite/interchange-6.c: XFAILed. |
80020e9d | 3209 | |
c9fce634 | 3210 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3211 | ||
3212 | * graphite-interchange.c (compute_subscript): Removed. | |
3213 | (compute_array_size_cstr): Removed. | |
3214 | (compute_array_size_poly): Removed. | |
3215 | (compute_array_size): Removed. | |
3216 | (gather_access_strides_poly): Removed. | |
3217 | (gather_access_strides): Empty. | |
3218 | ||
85f74b79 | 3219 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3220 | ||
3221 | * graphite-dependences.c (dependence_polyhedron_1): Replace | |
3222 | pdr_nb_subscripts with PDR_NB_SUBSCRIPTS. | |
3223 | (graphite_legal_transform_dr): Same. | |
3224 | (graphite_carried_dependence_level_k): Same. | |
3225 | * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts. | |
3226 | Initialize PDR_NB_SUBSCRIPTS. | |
3227 | (print_pdr_access_layout): Replace pdr_nb_subscripts with | |
3228 | PDR_NB_SUBSCRIPTS. | |
3229 | * graphite-poly.h (struct poly_dr): Add nb_subscripts field. | |
3230 | (PDR_NB_SUBSCRIPTS): New. | |
3231 | (pdr_nb_subscripts): Removed. | |
3232 | (pdr_dim): Simplified. | |
3233 | * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts | |
3234 | with PDR_NB_SUBSCRIPTS. | |
3235 | ||
19b42529 | 3236 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3237 | ||
3238 | * graphite-interchange.c (compute_array_size): Remove use of | |
3239 | PDR_DATA_CONTAINER. | |
3240 | * graphite-poly.c (new_poly_dr): Remove argument data_container. | |
3241 | Do not initialize PDR_DATA_CONTAINER. | |
3242 | (print_pdr): Do not print PDR_DATA_CONTAINER. | |
3243 | * graphite-poly.h (struct poly_dr): Remove data_container field. | |
3244 | (PDR_DATA_CONTAINER): Removed. | |
3245 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of | |
3246 | PDR_DATA_CONTAINER. | |
3247 | (build_poly_dr): Same. | |
3248 | ||
9daa8810 | 3249 | 2009-08-11 Sebastian Pop <sebastian.pop@amd.com> |
3250 | ||
6c9df8cb | 3251 | * gcc.dg/graphite/interchange-9.c: New. |
9daa8810 | 3252 | |
0835eab6 | 3253 | 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com> |
3254 | Sebastian Pop <sebastian.pop@amd.com> | |
3255 | ||
3256 | * graphite-dependences.c (graphite_legal_transform_dr): Work on a | |
3257 | copy of the dependence polyhedron. Free the temporary objects. | |
3258 | (graphite_carried_dependence_level_k): Free unused objects before | |
3259 | returning. | |
3260 | ||
6c9df8cb | 3261 | * gcc.dg/graphite/interchange-1.c: XFAILed. |
3262 | * gcc.dg/graphite/interchange-2.c: XFAILed. | |
3263 | * gcc.dg/graphite/interchange-3.c: XFAILed. | |
3264 | * gcc.dg/graphite/interchange-4.c: XFAILed. | |
3265 | * gcc.dg/graphite/interchange-7.c: XFAILed. | |
0835eab6 | 3266 | |
a741358d | 3267 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3268 | ||
3269 | * graphite-blocking.c (scop_do_strip_mine): Call store_scattering. | |
3270 | Early return without analyzing the data dependences if no | |
3271 | transform has been done. Call restore_scattering if the transform | |
3272 | is not legal. | |
3273 | (graphite-interchange.c): Same. | |
3274 | * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED. | |
3275 | (graphite_read_transforms): Initialize PBB_TRANSFORMED. | |
3276 | (apply_poly_transforms): Do not gcc_assert that | |
3277 | the transform is legal. | |
3278 | (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
3279 | Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES, | |
3280 | PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING. | |
3281 | (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL. | |
3282 | * graphite-poly.h (struct poly_scattering): New. | |
3283 | (struct poly_bb): Add original, transformed, and saved fields. | |
3284 | Remove transformed_scattering, original_scattering, nb_local_variables, | |
3285 | and nb_scattering_transform fields. | |
3286 | (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New. | |
3287 | (poly_scattering_new): New. | |
3288 | (poly_scattering_free): New. | |
3289 | (poly_scattering_copy): New. | |
3290 | (store_scattering_pbb): New. | |
3291 | (store_scattering): New. | |
3292 | (restore_scattering_pbb): New. | |
3293 | (restore_scattering): New. | |
3294 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
3295 | Initialize PBB_TRANSFORMED and PBB_ORIGINAL. | |
9daa8810 | 3296 | |
95b2e0d3 | 3297 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3298 | ||
3299 | * graphite-poly.c (print_pbb): Add parentheses in the pretty print. | |
3300 | (print_scop): Same. | |
3301 | ||
675d86b2 | 3302 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3303 | ||
3304 | * Makefile.in (graphite.o): Depends on PREDICT_H. | |
3305 | * graphite.c: Include predict.h. | |
3306 | (graphite_finalize): Call tree_estimate_probability. | |
3307 | * predict.c (predict_loops): Do not call scev_initialize and | |
3308 | scev_finalize. | |
3309 | (tree_estimate_probability_bb): New. | |
3310 | (tree_estimate_probability): Do not initialize loops: move that | |
3311 | code to the driver. Call tree_estimate_probability_bb. | |
3312 | (tree_estimate_probability_driver): New. | |
3313 | (pass_profile): Use tree_estimate_probability_driver. | |
3314 | * predict.h (tree_estimate_probability): Declared. | |
3315 | ||
525c22c4 | 3316 | 2009-08-05 Sebastian Pop <sebastian.pop@amd.com> |
3317 | ||
3318 | * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN. | |
3319 | * graphite-dependences.c (graphite_legal_transform): Add time to | |
3320 | TV_GRAPHITE_DATA_DEPS. | |
3321 | (dependency_between_pbbs_p): Same. | |
3322 | * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New. | |
3323 | ||
3324 | 2009-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
3325 | ||
3326 | * Merge from mainline (r149952:150372). | |
3327 | ||
c6bb733d | 3328 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> |
3329 | ||
3330 | * ChangeLog.graphite: Fix indenting, white spaces and 80 columns. | |
3331 | * graphite-blocking.c: Same. | |
3332 | * graphite-clast-to-gimple.c: Same. | |
3333 | * graphite-dependences.c: Same. | |
3334 | * graphite-poly.c: Same. | |
3335 | * graphite-poly.h: Same. | |
3336 | * graphite-ppl.c: Same. | |
3337 | * graphite-scop-detection.c: Same. | |
3338 | * graphite-sese-to-poly.c: Same. | |
3339 | * graphite.c: Same. | |
3340 | ||
3341 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3342 | ||
3343 | * graphite-sese-to-poly.c (loop_entry_phi_arg): New. | |
3344 | (remove_simple_copy_phi): New. | |
3345 | (remove_invariant_phi): New. | |
3346 | (simple_copy_phi_p): New. | |
3347 | (reduction_phi_p): New. | |
3348 | (gsi_for_ssa_name_def): New. | |
3349 | (insert_out_of_ssa_copy): New. | |
3350 | (insert_out_of_ssa_copy_on_edge): New. | |
3351 | (create_zero_dim_array): New. | |
3352 | (scalar_close_phi_node_p): New. | |
3353 | (rewrite_close_phi_out_of_ssa): New. | |
3354 | (rewrite_phi_out_of_ssa): New. | |
3355 | (rewrite_reductions_out_of_ssa): New. | |
3356 | (build_poly_scop): Call rewrite_reductions_out_of_ssa. | |
3357 | ||
6c9df8cb | 3358 | * gcc.dg/graphite/id-11.c: New. |
3359 | * gcc.dg/graphite/id-15.c: New. | |
3360 | * gcc.dg/graphite/interchange-1.c: Un-XFAIL. | |
3361 | * gcc.dg/graphite/interchange-2.c: Un-XFAIL. | |
3362 | * gcc.dg/graphite/interchange-3.c: Un-XFAIL. | |
3363 | * gcc.dg/graphite/interchange-4.c: Un-XFAIL. | |
3364 | * gcc.dg/graphite/interchange-7.c: Un-XFAIL. | |
3365 | * gcc.dg/graphite/scop-matmult.c: Un-XFAIL. | |
3366 | * gfortran.dg/graphite/id-13.f: New. | |
3367 | * gfortran.dg/graphite/id-5.f: New. | |
c6bb733d | 3368 | |
3369 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3370 | ||
3371 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not | |
3372 | check that nb_reductions_in_loop is zero. | |
3373 | * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out | |
3374 | reduction phi nodes. | |
3375 | (nb_reductions_in_loop): Removed. | |
3376 | (graphite_can_represent_loop): Do not call nb_reductions_in_loop. | |
3377 | * graphite-sese-to-poly.c (phi_node_is_iv): Removed. | |
3378 | (bb_contains_non_iv_scalar_phi_nodes): Removed. | |
3379 | (scop_contains_non_iv_scalar_phi_nodes): Removed. | |
3380 | (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes. | |
3381 | ||
3382 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3383 | ||
3384 | * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate | |
3385 | statements that have an empty iteration domain. | |
6c9df8cb | 3386 | * gfortran.dg/graphite/id-16.f: New. |
c6bb733d | 3387 | |
3388 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3389 | ||
3390 | * tree-scalar-evolution.c (instantiate_scev_1): Return | |
3391 | chrec_dont_know when the result is not above instantiate_below. | |
3392 | * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting. | |
3393 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that | |
3394 | the tree has a known scalar evolution. | |
6c9df8cb | 3395 | * gfortran.dg/graphite/id-14.f: New. |
3396 | * gfortran.dg/graphite/id-15.f: New. | |
c6bb733d | 3397 | |
3398 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3399 | ||
3400 | * sese.c (rename_variables_in_stmt): Pass in an extra parameter | |
3401 | insert_gsi. | |
3402 | (rename_variables): Keep inserting renames after the ones already | |
3403 | inserted. | |
3404 | ||
3405 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3406 | ||
3407 | * graphite-sese-to-poly.c (compare_bb_depths): New. | |
3408 | (graphite_sort_dominated_info): New. | |
3409 | (build_scop_bbs_1): Call graphite_sort_dominated_info. | |
3410 | (build_scop_scattering): Fix comment. | |
3411 | ||
3412 | 2009-07-28 Sebastian Pop <sebastian.pop@amd.com> | |
3413 | ||
3414 | * graphite.c (graphite_finalize): Call print_loops instead of | |
3415 | dump_function_to_file. | |
6c9df8cb | 3416 | * gcc.dg/graphite/graphite.exp: Fix formatting. |
3417 | * gcc.dg/graphite/pr35356-1.c: New. Look for the number of | |
c6bb733d | 3418 | loops generated in the graphite output file. |
6c9df8cb | 3419 | * gcc.dg/graphite/pr35356-2.c: New. |
3420 | * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now. | |
3421 | * gfortran.dg/graphite/id-12.f: New. | |
c6bb733d | 3422 | |
3423 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
3424 | ||
6c9df8cb | 3425 | * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: |
c6bb733d | 3426 | Remove 2 XFAIL. |
3427 | ||
3428 | 2009-07-24 Li Feng <nemokingdom@gmail.com> | |
3429 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3430 | ||
3431 | * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's | |
3432 | alias set number build alias in ACCESSES polyhedron. | |
3433 | (build_alias_set_for_drs): New. | |
3434 | (build_pbb_drs): Added build_alias_set_for_drs. | |
3435 | * graphite-dependences.c (poly_drs_may_alias_p): New. | |
3436 | (graphite_carried_dependence_level_k): Check alias information | |
3437 | before building polyhedron. | |
3438 | ||
3439 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
3440 | ||
3441 | * Makefile.in (lambda-code.o): Fix formatting. | |
3442 | ||
3443 | 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
3444 | ||
3445 | * Merge from mainline (r149350-149952) | |
3446 | ||
3447 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
3448 | ||
3449 | * graphite-poly.c (apply_poly_transforms): Move strip_mine | |
3450 | before interchange to prepare for loop blocking. | |
3451 | ||
3452 | 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
3453 | ||
3454 | * graphite-poly.c (apply_poly_transforms): Add checks after every | |
3455 | transformation. | |
3456 | * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already | |
3457 | done in apply_poly_transforms. | |
3458 | ||
3459 | 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3460 | ||
3461 | * graphite-dependences.c (build_lexicographically_gt_constraint): | |
3462 | Replace RES parameter with *RES. | |
3463 | (dependence_polyhedron_1): Pass an address of the parameter RES | |
3464 | instead of value of RES. | |
3465 | ||
3466 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3467 | ||
3468 | * graphite.c (graphite_finalize): Fix comment. | |
3469 | (graphite_transform_loops): Reset scev info after code generation | |
3470 | of each scop. | |
3471 | ||
3472 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3473 | ||
3474 | * graphite.c (graphite_finalize): Call scev_reset. | |
3475 | ||
3476 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3477 | ||
3478 | * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create | |
3479 | GBB_CLOOG_IV_TYPES hash table twice. | |
3480 | * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs. | |
3481 | (add_condition_to_domain): Clear GMP values. | |
3482 | ||
3483 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3484 | ||
3485 | * graphite-dependences.c: Fix formatting. | |
3486 | * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER. | |
3487 | (pbb_number_of_iterations): Free ppl_Linear_Expression. | |
3488 | * graphite-sese-to-poly.c: Fix formatting. | |
3489 | * graphite.c (graphite_transform_loops): Create the hash table | |
3490 | after the early return. | |
3491 | ||
3492 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3493 | ||
6c9df8cb | 3494 | * gcc.dg/graphite/id-14.c: New. |
3495 | * gcc.dg/graphite/pr40157.c: New. | |
3496 | * gfortran.dg/graphite/id-11.f: New. | |
c6bb733d | 3497 | |
3498 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3499 | ||
3500 | * graphite-sese-to-poly.c (nb_pbbs_in_loops): New. | |
3501 | (build_poly_scop): Return false when there are no pbbs within | |
3502 | loops to avoid to pass to cloog scops with no loops. | |
3503 | ||
3504 | 2009-07-16 Sebastian Pop <sebastian.pop@amd.com> | |
3505 | ||
3506 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid | |
3507 | useless test "i % 2". | |
3508 | (build_pbb_scattering_polyhedrons): Fix formatting. | |
3509 | (build_poly_dr): Same. | |
3510 | * graphite.c (graphite_transform_loops): Restructure. | |
3511 | ||
3512 | 2009-07-14 Razya Ladelsky <razya@il.ibm.com> | |
3513 | ||
3514 | * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove | |
3515 | reduction_list parameter. | |
3516 | (rewrite_all_phi_nodes_with_iv): Same. | |
3517 | (canonicalize_loop_ivs): Same. | |
3518 | * tree-parloops.c (struct brli): Removed. | |
3519 | (build_reduction_list_info): Removed. | |
3520 | (build_new_reduction): New. | |
3521 | (analyze_reduction_list): Removed. | |
3522 | (gather_scalar_reductions): Find reductions instead of phi | |
3523 | nodes that can't be canonicalized. | |
3524 | (try_create_reduction_list): Remove reduction_list parameter. | |
3525 | (gen_parallel_loop): Same. | |
3526 | (parallelize_loops): Remove analyze_reductions variable, | |
3527 | initialization and free. | |
3528 | Change reduction_list htab initialization to reduction_info | |
3529 | elements instead of ssa names. | |
3530 | Call try_create_reduction_list and gen_parallel_loop without | |
3531 | analyzed_reduction argument. | |
3532 | * graphite-clast-to-gimple (graphite_loop_normal_form): Call | |
3533 | canonicalize_loop_ivs with one less argument. | |
3534 | * tree-flow.h (canonicalize_loop_ivs): Remove one argument. | |
3535 | ||
3536 | 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3537 | ||
3538 | * graphite-dependences.c (new_poly_dr_pair): New. | |
3539 | (dependence_polyhedron): Renamed into dependence_polyhedron_1. | |
3540 | (new_poly_dr_pair): New. | |
3541 | (eq_poly_dr_pair_p): New. | |
3542 | (hash_poly_dr_pair_p): New. | |
3543 | * graphite-dependences.h (struct poly_dr_pair): New. | |
3544 | (eq_poly_dr_pair_p): Declared. | |
3545 | (hash_poly_dr_pair_p): Declared. | |
3546 | * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS. | |
3547 | (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS. | |
3548 | * graphite-poly.h (struct scop): Add original_pdr_pairs field. | |
3549 | * Makefile.in (graphite-poly.o): Add dependence on | |
3550 | graphite-dependences.h. | |
3551 | ||
3552 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3553 | ||
3554 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not let | |
3555 | polynomials of degree > 1 pass to Graphite. | |
3556 | * tree-chrec.c (scev_is_linear_expression): Call | |
3557 | evolution_function_is_affine_multivariate_p. | |
6c9df8cb | 3558 | * gfortran.dg/graphite/id-10.f90: New. |
c6bb733d | 3559 | |
3560 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3561 | ||
3562 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): | |
3563 | Instantiate scevs varying in outer loops. | |
6c9df8cb | 3564 | * gfortran.dg/graphite/id-9.f: Correct testcase. |
c6bb733d | 3565 | |
3566 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3567 | ||
3568 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert | |
3569 | redundant constraint. | |
3570 | ||
3571 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3572 | ||
6c9df8cb | 3573 | * gcc.dg/graphite/graphite.exp: Fix comments. |
3574 | * gfortran.dg/graphite/graphite.exp: Trigger actions | |
c6bb733d | 3575 | based on the file names as in the C testsuite. |
6c9df8cb | 3576 | * gfortran.dg/graphite/block-1.f90: Fix patterns. |
3577 | * gfortran.dg/graphite/block-2.f: Same. | |
3578 | * gfortran.dg/graphite/block-3.f90: Same. | |
3579 | * gfortran.dg/graphite/block-4.f90: Same. | |
3580 | * gfortran.dg/graphite/id-1.f90: Same. | |
3581 | * gfortran.dg/graphite/id-2.f90: Same. | |
3582 | * gfortran.dg/graphite/id-3.f90: Same. | |
3583 | * gfortran.dg/graphite/id-4.f90: Same. | |
3584 | * gfortran.dg/graphite/id-6.f: Same. | |
3585 | * gfortran.dg/graphite/id-9.f: Same. | |
3586 | * gfortran.dg/graphite/interchange-1.f: Same. | |
3587 | * gfortran.dg/graphite/interchange-2.f: Same. | |
3588 | * gfortran.dg/graphite/scop-1.f: Same. | |
c6bb733d | 3589 | |
3590 | 2009-07-14 Sebastian Pop <sebastian.pop@amd.com> | |
3591 | ||
3592 | * sese.c (expand_scalar_variables_call): New. | |
3593 | (expand_scalar_variables_ssa_name): Handle calls in expander. | |
3594 | ||
3595 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3596 | ||
6c9df8cb | 3597 | * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: |
c6bb733d | 3598 | Expect to see the pattern twice. |
6c9df8cb | 3599 | * gcc.dg/graphite/interchange-0.c: Un-XFAIL. |
3600 | * gcc.dg/graphite/interchange-5.c: Same. | |
3601 | * gcc.dg/graphite/interchange-6.c: Same. | |
c6bb733d | 3602 | |
3603 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3604 | ||
6c9df8cb | 3605 | * gcc.dg/graphite/id-10.c: New. |
3606 | * gcc.dg/graphite/id-12.c: New. | |
3607 | * gfortran.dg/graphite/id-7.f: New. | |
3608 | * gfortran.dg/graphite/id-8.f: New. | |
c6bb733d | 3609 | |
3610 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3611 | ||
3612 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by | |
3613 | zero. | |
3614 | ||
3615 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3616 | ||
3617 | * sese.c (rename_variables_in_stmt): Call fold_convert during renaming. | |
3618 | ||
3619 | 2009-07-13 Sebastian Pop <sebastian.pop@amd.com> | |
3620 | ||
3621 | * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion. | |
3622 | ||
3623 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
3624 | ||
3625 | * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of | |
3626 | building PDR subscripts. | |
3627 | ||
3628 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
3629 | ||
3630 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the | |
3631 | computation of array sizes. | |
3632 | ||
3633 | 2009-07-10 Sebastian Pop <sebastian.pop@amd.com> | |
3634 | ||
3635 | * graphite-sese-to-poly.c (add_param_constraints): Disabled. | |
3636 | ||
3637 | 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
3638 | ||
3639 | * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly, | |
3640 | build_pairwise_constraint, dr_equality_constraints, | |
3641 | build_pairwise_scheduling_equality, | |
3642 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
3643 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
3644 | graphite_legal_transform_dr, graphite_carried_dependence_level_k): | |
3645 | Move from NNC_Polyhedron to C_Polyhedron. | |
3646 | * graphite-interchange.c (compute_array_size_poly, | |
3647 | gather_access_strides): Dito. | |
3648 | * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb, | |
3649 | free_scop, pbb_number_of_iterations): Dito. | |
3650 | * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb, | |
3651 | pbb_dim_iter_domain, struct scop): Dito. | |
3652 | * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix, | |
3653 | new_Cloog_Domain_from_ppl_Polyhedron, | |
3654 | new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp, | |
3655 | ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset, | |
3656 | ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix, | |
3657 | ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix, | |
3658 | debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito. | |
3659 | * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t, | |
3660 | new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix, | |
3661 | debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito. | |
3662 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons, | |
3663 | build_loop_iteration_domains, ppl_constraint_type_from_tree_code, | |
3664 | add_condition_to_domain, add_condition_to_pbb, build_scop_context, | |
3665 | build_scop_iteration_domain, build_poly_dr): Dito | |
3666 | ||
3667 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3668 | ||
6c9df8cb | 3669 | * gcc.dg/graphite/graphite.exp: Added a rule to execute |
c6bb733d | 3670 | run-id-*.c files. |
6c9df8cb | 3671 | * gcc.dg/graphite/run-id-1.c: New. |
c6bb733d | 3672 | |
3673 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3674 | ||
3675 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the | |
3676 | positivity constraint on the symbolic number of iterations. | |
3677 | ||
3678 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3679 | ||
3680 | * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite. | |
3681 | ||
3682 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3683 | Tobias Grosser <grosser@fim.uni-passau.de> | |
3684 | ||
3685 | * graphite-clast-to-gimple.c (build_scop_context): Removed. | |
3686 | (build_cloog_prog): Directly use SCOP_CONTEXT. | |
3687 | * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT. | |
3688 | (free_scop): Free SCOP_CONTEXT. | |
3689 | (print_scop_context): New. | |
3690 | (print_scop): Call print_scop_context. | |
3691 | (debug_scop_context): New. | |
3692 | * graphite-poly.h (print_scop_context, debug_scop_context): Declared. | |
3693 | (struct scop): Added field context. | |
3694 | (SCOP_CONTEXT): New. | |
3695 | * graphite-sese-to-poly.c (add_param_constraints): New. | |
3696 | (build_scop_context): New. | |
3697 | (build_poly_scop): Call build_scop_context. | |
3698 | ||
3699 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3700 | ||
3701 | * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved... | |
3702 | * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New. | |
3703 | (ppl_set_inhomogeneous, ppl_set_coef): Moved... | |
3704 | * graphite-ppl.h: Include double-int.h and tree.h. | |
3705 | (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared. | |
3706 | (ppl_set_inhomogeneous, ppl_set_coef): ...here. | |
3707 | (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int. | |
3708 | (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New. | |
3709 | ||
3710 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3711 | ||
3712 | * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate | |
3713 | POINTER_PLUS_EXPR for pointer types. | |
3714 | (clast_to_gcc_expression): Same. | |
3715 | ||
3716 | 2009-07-09 Sebastian Pop <sebastian.pop@amd.com> | |
3717 | ||
3718 | * graphite-poly.c (print_scattering_function): Early return when | |
3719 | PBB_TRANSFORMED_SCATTERING is not initialized. | |
3720 | (print_pbb_domain): Early return when PBB_DOMAIN is not initialized. | |
3721 | ||
3722 | 2009-07-08 Sebastian Pop <sebastian.pop@amd.com> | |
3723 | ||
3724 | * tree-parloops.c (analyze_reduction_list): Remove unused variable | |
3725 | to fix bootstrap. | |
3726 | ||
3727 | 2009-07-08 Razya Ladelsky <razya@il.ibm.com> | |
3728 | ||
3729 | * tree-parloops.c (analyze_reduction_list): Change return | |
3730 | value to void. | |
3731 | (try_create_reduction_list): Move the call to | |
3732 | analyze_reduction_list to the beginining. | |
3733 | Call reduction_phi with analyzed_reductions as argument | |
3734 | instead of reduction_list. | |
3735 | ||
3736 | 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
3737 | ||
3738 | * Merge from mainline (r148296:149346) | |
3739 | ||
3740 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3741 | ||
3742 | * graphite-scop-detection.c (graphite_can_represent_init): New. | |
3743 | (graphite_can_represent_scev): Call graphite_can_represent_init: | |
3744 | check that the initial value does not contain multiplications of | |
3745 | parameters. | |
3746 | (stmt_has_simple_data_refs_p): New. | |
3747 | (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p. | |
3748 | (is_simple_operand): Fix formatting. | |
3749 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting. | |
3750 | ||
3751 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3752 | ||
6c9df8cb | 3753 | * gcc.dg/graphite/id-13.c: New. |
c6bb733d | 3754 | * graphite-sese-to-poly.c (graphite_stmt_p): Do not call |
3755 | analyze_scalar_evolution, use scalar_evolution_in_region. | |
3756 | (scan_tree_for_params_right_scev): Add extra assert. | |
3757 | (parameter_index_in_region_1): Split from parameter_index_in_region. | |
3758 | (idx_record_params): Use scalar_evolution_in_region. | |
3759 | (find_params_in_bb): Same. | |
3760 | (find_scop_parameters): Same. | |
3761 | (build_loop_iteration_domains): Same. | |
3762 | (create_linear_expr_from_tree): Same. | |
3763 | * sese.c (scalar_evolution_in_region): New. | |
3764 | * sese.h (scalar_evolution_in_region): Declared. | |
3765 | (defined_in_sese_p): New. | |
3766 | * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not | |
3767 | static anymore. | |
3768 | * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop): | |
3769 | Declared. | |
3770 | ||
3771 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3772 | ||
3773 | * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H. | |
3774 | TREE_DATA_REF_H also implies SCEV_H. | |
3775 | ||
3776 | 2009-07-07 Sebastian Pop <sebastian.pop@amd.com> | |
3777 | ||
3778 | * graphite-poly.c (print_scop_params): New. | |
3779 | (print_scop): Call print_scop_params. | |
3780 | (debug_scop_params): New. | |
3781 | * graphite-poly.h (print_scop_params, debug_scop_params): Declared. | |
3782 | ||
3783 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
3784 | ||
6c9df8cb | 3785 | * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New. |
3786 | * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New. | |
3787 | * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New. | |
3788 | * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New. | |
3789 | * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New. | |
3790 | * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New. | |
c6bb733d | 3791 | |
3792 | 2009-07-07 Li Feng <nemokingdom@gmail.com> | |
3793 | ||
3794 | * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information | |
3795 | for dependency checking part. | |
6c9df8cb | 3796 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add |
c6bb733d | 3797 | tests for dependency checking. |
6c9df8cb | 3798 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. |
3799 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
3800 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add | |
c6bb733d | 3801 | flag -fdump-tree-graphite-all for autopar testsuites. |
3802 | ||
3803 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
3804 | ||
3805 | * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h. | |
3806 | * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv, | |
3807 | canonicalize_loop_ivs): Moved... | |
3808 | * tree-ssa-loop-manip.c: ... here. Include langhooks.h. | |
3809 | ||
3810 | 2009-07-06 Sebastian Pop <sebastian.pop@amd.com> | |
3811 | ||
3812 | * tree-parloops.c (try_create_reduction_list): Pass an extra | |
3813 | argument analyzed_reductions. Call analyze_reduction_list. | |
3814 | (gen_parallel_loop): Do not call analyze_reduction_list. | |
3815 | (parallelize_loops): Init and finalize analyzed_reductions. | |
3816 | ||
3817 | 2009-07-06 Li Feng <nemokingdom@gmail.com> | |
3818 | ||
6c9df8cb | 3819 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: |
c6bb733d | 3820 | Added flag -fno-loop-strip-mine for autopar testcase. |
3821 | ||
3822 | 2009-07-04 Li Feng <nemokingdom@gmail.com> | |
3823 | ||
3824 | * graphite-dependences.c (graphite_carried_dependence_level_k): Use | |
3825 | transformed scattering dimension instead of unmatch orignal when | |
3826 | calling dependence_polyhedron. | |
3827 | ||
3828 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
3829 | ||
3830 | * opts.c (decode_options): Enable flag_loop_strip_mine at -O2. | |
3831 | ||
3832 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
3833 | ||
3834 | * graphite-poly.c (pbb_number_of_iterations): Check for returned | |
3835 | value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize. | |
3836 | ||
3837 | 2009-06-30 Sebastian Pop <sebastian.pop@amd.com> | |
3838 | ||
3839 | * graphite-blocking.c (pbb_strip_mine_profitable_p): New. | |
3840 | (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p. | |
3841 | * graphite-poly.c (pbb_number_of_iterations): New. | |
3842 | * graphite-poly.h (pbb_number_of_iterations): Declared. | |
3843 | (pbb_iterator_dim, pbb_parameter_dim): New. | |
3844 | ||
3845 | 2009-06-29 Sebastian Pop <sebastian.pop@amd.com> | |
3846 | ||
3847 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the | |
3848 | last commit on type of lower and upper bound of loops. | |
3849 | ||
3850 | 2009-06-29 Li Feng <nemokingdom@gmail.com> | |
3851 | ||
3852 | * Makefile.in (graphite-clast-to-gimple.o): Added dependence on | |
3853 | graphite-dependences.h. | |
3854 | * graphite-clast-to-gimple.c (new_bb_pbb_def): New. | |
3855 | (mark_bb_with_pbb): New. | |
3856 | (get_stmtfor_depth): New. | |
3857 | (find_pbb_via_hash): New. | |
3858 | (dependency_in_loop_p): New. | |
3859 | (mark_loops_parallel): New. | |
3860 | (free_aux_in_new_loops): New. | |
3861 | (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created | |
3862 | bb with it's relevant pbb. Mark newly created loops. Remove mark | |
3863 | innermost loop parallel without checking. | |
3864 | (gloog): Add parameter BB_PBB_MAPPING. | |
3865 | * graphite-clast-to-gimple.h (struct bb_pbb_def): New. | |
3866 | (gloog): Change declaration. | |
3867 | (mark_loop_parallel): Make extern. | |
3868 | (free_aux_in_new_loops): Declare. | |
3869 | (bb_pbb_map_hash): New. | |
3870 | (eq_bb_pbb_map): New. | |
3871 | * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger | |
3872 | auto parallelization when flag_graphite_force_parallel is set. | |
3873 | (graphite_finalize): Added free_aux_in_new_loops. | |
3874 | * tree-parloops.c (parallelize_loops): Only generate parallel code for | |
3875 | the innermost loop that marked parallel. Use | |
3876 | flag_graphite_force_parallel instead of loop->can_be_parallel. | |
3877 | (loop_parallel_p): Move inner most checking out of function. | |
3878 | ||
3879 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3880 | ||
3881 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the | |
3882 | type of lower and upper bound of loops signed long int. | |
3883 | ||
3884 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3885 | ||
3886 | * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit | |
3887 | expression outside the loop. | |
3888 | ||
3889 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3890 | ||
3891 | * gcc.dg/graphite/interchange-8.c: New. | |
3892 | ||
3893 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3894 | ||
3895 | * gcc.dg/graphite/interchange-0.c: XFailed. | |
3896 | * gcc.dg/graphite/interchange-5.c: XFailed. | |
3897 | * gcc.dg/graphite/interchange-6.c: XFailed. | |
3898 | ||
3899 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3900 | ||
3901 | * graphite-interchange.c (compute_array_size_poly): The end of the | |
3902 | recursion should return 1. | |
3903 | ||
3904 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3905 | ||
3906 | * graphite-interchange.c (compute_array_size_cstr): Allow the | |
3907 | subscript multiplier to be -1. | |
3908 | (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES. | |
3909 | * graphite-poly.c (new_poly_dr): Takes an extra argument for the | |
3910 | data_container. Initializes PDR_DATA_CONTAINER. | |
3911 | (print_pdr_access_layout): New. | |
3912 | (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER. | |
3913 | * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field | |
3914 | data_container. | |
3915 | (PDR_DATA_CONTAINER): New. | |
3916 | (new_poly_dr): Update declaration. | |
3917 | * graphite-sese-to-poly.c (pdr_add_data_dimensions): New. | |
3918 | (build_poly_dr): Call pdr_add_data_dimensions. | |
3919 | ||
3920 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3921 | ||
3922 | * graphite-poly.h (struct poly_dr): Fix comment. | |
3923 | * graphite-sese-to-poly.c (pdr_add_alias_set): New. | |
3924 | (pdr_add_memory_accesses): New. | |
3925 | (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set. | |
3926 | ||
3927 | 2009-06-26 Sebastian Pop <sebastian.pop@amd.com> | |
3928 | ||
3929 | * graphite-poly.c (print_pdrs, debug_pdrs): New. | |
3930 | (print_pbb): Add call to print_pdrs. | |
3931 | * graphite-poly.h (print_pdrs, debug_pdrs): Declared. | |
3932 | ||
3933 | 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com> | |
3934 | Li Feng <nemokingdom@gmail.com> | |
3935 | ||
3936 | * graphite-dependences.c (graphite_carried_dependence_level_k): New. | |
3937 | (dependency_between_pbbs_p): New. | |
3938 | (lexicographically_gt_p): Assure !empty_p before polyhedron | |
3939 | intersection assign. | |
3940 | (build_lexicographically_gt_constraint): Correct lexicographically | |
3941 | judging. | |
3942 | * graphite-dependences.h: New. | |
3943 | * Makefile.in (graphite-dependences.o): Add graphite-dependences.h. | |
3944 | ||
3945 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
3946 | ||
3947 | * graphite-clast-to-gimple.c (print_clast_stmt): New. | |
3948 | (gloog): Print to dump_file the generated clast. | |
3949 | * graphite-clast-to-gimple.h (print_clast_stmt): Declared. | |
3950 | * graphite-interchange.c (pbb_do_interchange): Fix dump formatting. | |
3951 | ||
3952 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
3953 | ||
3954 | * graphite-poly.c (extend_scattering): Increment | |
3955 | PBB_NB_LOCAL_VARIABLES by the number of added dimensions. | |
3956 | ||
3957 | 2009-06-24 Sebastian Pop <sebastian.pop@amd.com> | |
3958 | ||
3959 | * graphite-interchange.c (compute_array_size_poly): Added exit of | |
3960 | recursion condition. Continue iterating even after the first equality. | |
3961 | (compute_array_size): Same. | |
3962 | ||
3963 | 2009-06-24 Li Feng <nemokingdom@gmail.com> | |
3964 | ||
6c9df8cb | 3965 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update |
c6bb733d | 3966 | -fdump-tree-final_cleanup to -fdump-tree-optimized. |
6c9df8cb | 3967 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto. |
3968 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto. | |
3969 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto. | |
c6bb733d | 3970 | |
3971 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3972 | ||
3973 | * sese.c (expand_scalar_variables_stmt): Expand scalar variables | |
3974 | only when the use verifies is_gimple_reg. | |
3975 | ||
3976 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3977 | ||
3978 | * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption. | |
3979 | Allocate scaldims after call to unify_scattering_dimensions. | |
3980 | ||
3981 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3982 | ||
3983 | * graphite-clast-to-gimple.c (translate_clast): Fix memory leak. | |
3984 | ||
3985 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3986 | Albert Cohen <albert.cohen@inria.fr> | |
3987 | ||
3988 | * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local | |
3989 | variables for the strip mining. | |
3990 | ||
3991 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
3992 | Pranav Garg <pranav.garg2107@gmail.com> | |
3993 | ||
3994 | * Makefile.in (OBJS-common): Added graphite-blocking.o. | |
3995 | (graphite-sese-to-poly.o): Moved down to be in lexicographical order. | |
3996 | (graphite-blocking.o): New rule. | |
3997 | (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order. | |
3998 | * graphite-blocking.c: New. | |
3999 | * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for | |
4000 | flag_loop_strip_mine. | |
4001 | (psct_scattering_dim_for_loop_depth): New. | |
4002 | * graphite-poly.h (scop_do_strip_mine): Declared. | |
4003 | (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES. | |
4004 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using | |
4005 | flag_loop_strip_mine. | |
4006 | ||
4007 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4008 | ||
4009 | * graphite-poly.c (extend_scattering): Avoid initializing and freeing | |
4010 | a GMP value and a PPL coefficient at each iteration of a loop. | |
4011 | ||
4012 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4013 | ||
4014 | * graphite-dependences.c (dependence_polyhedron): Do not use | |
4015 | pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and | |
4016 | pbb_nb_scattering_transform. | |
4017 | (graphite_legal_transform_dr): Same. | |
4018 | * graphite-poly.c (extend_scattering): Same. | |
4019 | (unify_scattering_dimensions): Same. | |
4020 | (print_scattering_function): Same. | |
4021 | (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and | |
4022 | PBB_NB_LOCAL_VARIABLES. | |
4023 | * graphite-poly.h (pbb_nb_scattering): Removed declaration. | |
4024 | (struct poly_bb): Added nb_local_variables and nb_scattering_transform. | |
4025 | (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New. | |
4026 | (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New. | |
4027 | (pbb_nb_scattering_dims, pbb_nb_scattering): Removed. | |
4028 | (pbb_nb_scattering_transform): New. | |
4029 | (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES. | |
4030 | (psco_scattering_dim): Add assert on parameters. | |
4031 | (psct_scattering_dim): Same. | |
4032 | (psct_scattering_dim_for_loop_depth): Declared. | |
4033 | (psct_local_var_dim): New. | |
4034 | (psco_iterator_dim, psco_parameter_dim): Add assert on parameters. | |
4035 | (psct_iterator_dim, psct_parameter_dim): Same. To maintain the | |
4036 | correct layout, call pbb_nb_local_vars. | |
4037 | (psct_add_local_variable, psct_add_scattering_dimension): New. | |
4038 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): | |
4039 | Initialize PBB_NB_SCATTERING_TRANSFORM. | |
4040 | ||
4041 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4042 | ||
4043 | * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous. | |
4044 | (set_coef): Renamed ppl_set_coef. | |
4045 | * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared. | |
4046 | ||
4047 | 2009-06-23 Sebastian Pop <sebastian.pop@amd.com> | |
4048 | ||
4049 | * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't | |
4050 | test a boolean against 1. | |
4051 | * graphite-interchange.c (pbb_interchange_loop_depths): Do not build | |
4052 | a new polyhedron for the PBB_TRANSFORMED_SCATTERING. | |
4053 | (pbb_do_interchange): Returns true when a transform has been performed. | |
4054 | (scop_do_interchange): Same. | |
4055 | * graphite-poly.c (apply_poly_transforms): Use the return value of | |
4056 | scop_do_interchange. | |
4057 | * graphite-poly.h (scop_do_interchange): Update declaration. | |
4058 | ||
4059 | 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
4060 | ||
4061 | * graphite-clast-to-gimple.c (gloog): Reset loop->aux right | |
4062 | after last use. | |
4063 | * sese.c (sese_reset_aux_in_loops): New. | |
4064 | * sese.h (sese_reset_aux_in_loops): New. | |
4065 | ||
4066 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4067 | ||
4068 | * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the | |
4069 | multiplier and multiply the constant by the multiplier. | |
4070 | (scan_tree_for_params): Bound the multiplier to its MULT_EXPR. | |
4071 | (build_poly_dr): Do not use the multiplier to define the subscript. | |
4072 | ||
4073 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4074 | ||
4075 | * graphite-poly.c (new_poly_dr): Pass an extra argument for the | |
4076 | compiler's data reference. Initialize PDR_CDR. | |
4077 | (print_pdr): Call dump_data_reference. | |
4078 | * graphite-poly.h (struct poly_dr): Rename black_box into pbb. | |
4079 | Add compiler_dr field. | |
4080 | (PDR_BB): Renamed PDR_PBB. | |
4081 | (PDR_CDR): New. | |
4082 | * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr | |
4083 | GCC's data reference representation. | |
4084 | * tree-data-ref.c (debug_data_references, debug_data_reference): New. | |
4085 | * tree-data-ref.h (debug_data_references, debug_data_reference): Decl. | |
4086 | ||
4087 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4088 | ||
4089 | * graphite-poly.c (print_scattering_function): Also print the layout. | |
4090 | * graphite-poly.h (pbb_nb_local_vars): New. | |
4091 | ||
4092 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4093 | ||
4094 | * graphite-poly.c (print_pbb_domain): Also print the layout names. | |
4095 | ||
4096 | 2009-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
4097 | ||
4098 | * graphite-poly.c (print_pdr, debug_pdr): New. | |
4099 | * graphite-poly.h (print_pdr, debug_pdr): Declared. | |
4100 | (PDR_BASE): Removed. | |
4101 | ||
4102 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
4103 | ||
6c9df8cb | 4104 | * gcc.dg/graphite/interchange-{1..7}.c: New avatars of |
c6bb733d | 4105 | ltrans-{1..6,8}.c. |
4106 | ||
4107 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
4108 | ||
4109 | * graphite-interchange.c (compute_subscript): Allow also -1 in the | |
4110 | subscript identification column. | |
4111 | (pbb_do_interchange): Print to dump_file that some loops "will be | |
4112 | interchanged". Rely on that chain of characters in the testcases. | |
4113 | * gcc.dg/graphite/interchange-0.c: New. | |
4114 | * gcc.dg/graphite/graphite.exp: Iterate over the testsuite | |
4115 | interchange-*.c files and compile them with -floop-interchange. | |
4116 | ||
4117 | 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com> | |
4118 | ||
4119 | * graphite-interchange.c (interchange_profitable_p): Renamed | |
4120 | pbb_interchange_profitable_p. | |
4121 | ||
4122 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
4123 | Harsha Jagasia <harsha.jagasia@amd.com> | |
4124 | Pranav Garg <pranav.garg2107@gmail.com> | |
4125 | ||
4126 | * graphite-interchange.c (interchange_profitable_p): Make static. | |
4127 | (pbb_interchange_loop_depths, pbb_do_interchange, | |
4128 | scop_do_interchange): New. | |
4129 | * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange | |
4130 | for flag_loop_interchange. | |
4131 | * graphite-poly.h (scop_do_interchange): Declared. | |
4132 | * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when | |
4133 | flag_loop_interchange is used. | |
4134 | ||
4135 | 2009-06-18 Sebastian Pop <sebastian.pop@amd.com> | |
4136 | ||
4137 | * graphite-dependences.c (dependence_polyhedron): Update use of | |
4138 | pbb_nb_scattering_dims. | |
4139 | * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP. | |
4140 | (pbb_nb_scattering): Update use of pbb_nb_scattering_dims. | |
4141 | (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim, | |
4142 | psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New. | |
4143 | ||
4144 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
4145 | ||
4146 | * graphite.c: Cleanup foo. | |
4147 | ||
4148 | 2009-06-16 Sebastian Pop <sebastian.pop@amd.com> | |
4149 | ||
4150 | * Merge from mainline (r143684:148293). | |
4151 | * Disabled libpcp until it gets fixed. | |
4152 | ||
4153 | 2009-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
4154 | Harsha Jagasia <harsha.jagasia@amd.com> | |
4155 | ||
4156 | * graphite-interchange.c: New. | |
4157 | * Makefile.in (graphite-interchange.o): New. | |
4158 | * graphite-poly.h (interchange_profitable_p): Declared. | |
4159 | * graphite-ppl.h (value_max): New. | |
4160 | ||
4161 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
4162 | ||
4163 | * graphite-dependences.c (dependence_polyhedron): Use pdr_dim. | |
4164 | * graphite-poly.h: Fix some comments. | |
4165 | (pdr_dim): New. | |
4166 | (pdr_scop): New. | |
4167 | ||
4168 | 2009-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
4169 | ||
4170 | * graphite-poly.h | |
4171 | (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts. | |
4172 | (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain. | |
4173 | (pdr_accessp_nb_params): Renamed pdr_nb_params. | |
4174 | (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim. | |
4175 | (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim. | |
4176 | (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim. | |
4177 | (pdr_accessp_param_dim): Renamed pdr_parameter_dim. | |
4178 | (pbb_nb_loops): Renamed pbb_dim_iter_domain. | |
4179 | * graphite-clast-to-gimple.c: Same. | |
4180 | * graphite-dependences.c: Same. | |
4181 | * graphite-poly.c: Same. | |
4182 | * graphite-sese-to-poly.c: Same. | |
4183 | ||
4184 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
4185 | ||
4186 | * graphite-clast-to-gimple.c (build_iv_mapping): Insert full | |
4187 | expressions for an IV rename, as returned by clast_to_gcc_expression. | |
4188 | (copy_renames): Rename new_name to expr. | |
4189 | * sese.c (debug_rename_elt): Same. | |
4190 | (get_rename): Same. | |
4191 | (set_rename): Same. | |
4192 | (sese_adjust_liveout_phis): Call force_gimple_operand before using | |
4193 | the information from the rename map. | |
4194 | (rename_variables_in_stmt): Same. | |
4195 | (add_loop_exit_phis): Rename new_name to expr. | |
4196 | (insert_loop_close_phis): Same. | |
4197 | (add_guard_exit_phis): Same. Call force_gimple_operand. | |
4198 | * sese.h (struct rename_map_elt): Rename new_name to expr. | |
4199 | (new_rename_map_elt): Same. | |
4200 | ||
4201 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
4202 | ||
4203 | * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename. | |
4204 | * sese.c (set_rename): Make it extern. | |
4205 | * sese.h (set_rename): Declared. | |
4206 | ||
4207 | 2009-06-03 Sebastian Pop <sebastian.pop@amd.com> | |
4208 | ||
4209 | * graphite-poly.c (extend_scattering): Free values. | |
4210 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): | |
4211 | Free iterators. | |
4212 | (ppl_print_powerset_matrix): Same. | |
4213 | * graphite-scop-detection.c (free_scops_1): New. | |
4214 | (limit_scops): Call free_scops_1. | |
4215 | * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom. | |
4216 | (build_poly_dr): Free PPL coefficients. | |
4217 | * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs. | |
4218 | ||
4219 | 2009-06-02 Sebastian Pop <sebastian.pop@amd.com> | |
4220 | ||
4221 | * graphite-dependences.c: New. | |
4222 | * graphite-data-ref.c: Removed. | |
4223 | * graphite-data-ref.h: Removed. | |
4224 | * Makefile.in (graphite-data-ref.o): Removed. | |
4225 | (graphite-dependences.o): Added. | |
4226 | * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h. | |
4227 | * graphite-poly.c: Same. | |
4228 | Move the data dependence testing to graphite-dependences.c. | |
4229 | ||
4230 | 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
4231 | ||
4232 | * graphite-scop-detection.c (graphite_can_represent_loop): Renamed | |
4233 | from graphite_cannot_represent_loop. Code refactored. | |
4234 | (scopdet_basic_block_info): Call graphite_can_represent_loop. | |
4235 | ||
4236 | 2009-05-17 Li Feng <nemokingdom@gmail.com> | |
4237 | ||
6c9df8cb | 4238 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: |
c6bb733d | 4239 | Cover all the testcases (not only the filtered ones). |
4240 | ||
4241 | 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
4242 | ||
4243 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove | |
4244 | unnecessary check. Update comments. Move check for REAL_TYPE here. | |
4245 | (harmful_stmt_in_bb): Remove checks for conditions. This is already | |
4246 | done in (stmt_simple_for_scop_p). | |
4247 | ||
4248 | 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
4249 | ||
4250 | * graphite.c (print_global_statistics): New. | |
4251 | (print_graphite_scop_statistic): New. | |
4252 | (print_graphite_statistics): New. | |
4253 | (graphite_initialize, graphite_transform_loops): Print statistics. | |
4254 | * graphite-scop-detection (build_scops): Print statistics. | |
4255 | (print_graphite_scop_statistics): New. | |
4256 | (print_graphite_statistics): New. | |
4257 | ||
4258 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4259 | ||
4260 | * graphite-clast-to-gimple.c (struct clast_name_index): Removed. | |
4261 | (debug_clast_name_index): Removed. | |
4262 | (debug_clast_name_indexes_1): Removed. | |
4263 | (debug_clast_name_indexes): Removed. | |
4264 | (clast_name_index_elt_info): Removed. | |
4265 | (eq_clast_name_indexes): Removed. | |
4266 | (clast_name_to_index): Removed. | |
4267 | (new_clast_name_index): Removed. | |
4268 | (save_clast_name_index): Removed. | |
4269 | (save_var_name): Moved... | |
4270 | (init_sese_params_index): Removed. | |
4271 | (clast_name_to_gcc): Remove use of name_tree. | |
4272 | (initialize_cloog_names): Same. | |
4273 | (gloog): Do not call init_sese_params_index. | |
4274 | * graphite-sese-to-poly.c (save_var_name): ...here. | |
4275 | (parameter_index_in_region): New. | |
4276 | * sese.c (new_sese): Initialize SESE_PARAMS_NAMES. | |
4277 | (parameter_index_in_region): Removed. | |
4278 | (is_parameter): Remove use of name_tree. | |
4279 | * sese.h (struct name_tree): Removed. | |
4280 | (struct sese): Remove use of name_tree. New field params_names. | |
4281 | (SESE_PARAMS_NAMES): New. | |
4282 | (SESE_PARAMS): Remove duplicate. | |
4283 | (parameter_index_in_region): Removed. | |
4284 | (sese_nb_params): Remove use of name_tree. | |
4285 | (struct clast_name_index): New. | |
4286 | (new_clast_name_index): New. | |
4287 | (clast_name_to_index): New. | |
4288 | (save_clast_name_index): New. | |
4289 | (debug_clast_name_index): New. | |
4290 | (debug_clast_name_indexes_1): New. | |
4291 | (debug_clast_name_indexes): New. | |
4292 | (clast_name_index_elt_info): New. | |
4293 | (eq_clast_name_indexes): New. | |
4294 | ||
4295 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4296 | ||
4297 | * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call | |
4298 | pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop. | |
4299 | (graphite_loop_normal_form): Do not pass region. Do not | |
4300 | initialize SESE_OLDIVS. | |
4301 | (build_graphite_loop_normal_form): Update call to | |
4302 | graphite_loop_normal_form. | |
4303 | * sese.c (debug_oldivs): Removed. | |
4304 | (new_sese): Do not initialize SESE_OLDIVS. | |
4305 | (free_sese): Do not free SESE_OLDIVS. | |
4306 | (oldiv_for_loop): Removed. | |
4307 | * sese.h (struct sese): Remove old_ivs. | |
4308 | (SESE_OLDIVS): Removed. | |
4309 | (oldiv_for_loop): Removed. | |
4310 | ||
4311 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4312 | ||
4313 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs, | |
4314 | remove ivstack. Remove call to loop_iv_stack_get_iv_from_name, | |
4315 | replaced by a call to newivs_to_depth_to_newiv. | |
4316 | (clast_to_gcc_expression): Pass newivs, remove ivstack. | |
4317 | (clast_to_gcc_expression_red): Same. | |
4318 | (gcc_type_for_clast_expr): Same. | |
4319 | (gcc_type_for_clast_eq): Same. | |
4320 | (graphite_translate_clast_equation): Same. | |
4321 | (graphite_create_guard_cond_expr): Same. | |
4322 | (graphite_create_new_guard): Same. | |
4323 | (graphite_create_new_loop): Same. | |
4324 | (build_iv_mapping): Same. | |
4325 | (translate_clast): Same. | |
4326 | (gloog): Same. | |
4327 | (loop_iv_stack_patch_for_consts): Removed. * | |
4328 | sese.c (iv_stack_entry_is_constant): Removed. | |
4329 | (iv_stack_entry_is_iv): Removed. | |
4330 | (loop_iv_stack_push_iv): Removed. | |
4331 | (loop_iv_stack_insert_constant): Removed. | |
4332 | (loop_iv_stack_pop): Removed. | |
4333 | (loop_iv_stack_get_iv): Removed. | |
4334 | (loop_iv_stack_get_iv_from_name): Removed. | |
4335 | (debug_loop_iv_stack): Removed. | |
4336 | (free_loop_iv_stack): Removed. | |
4337 | (loop_iv_stack_remove_constants): Removed. * | |
4338 | sese.h (iv_stack_entry_kind): Removed. | |
4339 | (iv_stack_entry_data_union): Removed. | |
4340 | (iv_stack_entry_struct): Removed. | |
4341 | (iv_stack_entry_p): Removed. | |
4342 | (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant, | |
4343 | loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv, | |
4344 | loop_iv_stack_get_iv, loop_iv_stack_remove_constants, | |
4345 | loop_iv_stack_pop, free_loop_iv_stack): Removed. | |
4346 | (gbb_loop_at_index): Fix indenting. | |
4347 | (gbb_loop_index): Removed. | |
4348 | ||
4349 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4350 | ||
4351 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp. | |
4352 | Call clast_name_to_index. | |
4353 | ||
4354 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4355 | ||
4356 | * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region, | |
4357 | do not pass params. Get params from SESE_PARAMS. | |
4358 | (clast_to_gcc_expression): Same. | |
4359 | (clast_to_gcc_expression_red): Same. | |
4360 | (gcc_type_for_clast_eq): Same. | |
4361 | (graphite_translate_clast_equation): Same. | |
4362 | (graphite_create_new_loop): Same. | |
4363 | * sese.c (rename_variables_in_stmt): Fix comment. | |
4364 | ||
4365 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4366 | ||
4367 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass | |
4368 | newivs_index. | |
4369 | Call save_clast_name_index. | |
4370 | (translate_clast): Pass newivs_index. | |
4371 | (gloog): Create and free newivs_index. | |
4372 | ||
4373 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4374 | ||
4375 | * graphite-clast-to-gimple.c (clast_name_index): New structure. | |
4376 | (clast_name_index_p): New type. | |
4377 | (debug_clast_name_index): New. | |
4378 | (debug_clast_name_indexes_1): New. | |
4379 | (debug_clast_name_indexes): New. | |
4380 | (clast_name_index_elt_info): New. | |
4381 | (eq_clast_name_indexes): New. | |
4382 | (clast_name_to_index): New. | |
4383 | (new_clast_name_index): New. | |
4384 | (save_clast_name_index): New. | |
4385 | (init_sese_params_index): New. | |
4386 | (gloog): Call init_sese_params_index. | |
4387 | * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared. | |
4388 | * sese.c (new_sese): Initialize SESE_PARAMS_INDEX. | |
4389 | (free_sese): Free SESE_PARAMS_INDEX. | |
4390 | * sese.h (struct sese): Add params_index. | |
4391 | (SESE_PARAMS_INDEX): New. | |
4392 | ||
4393 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4394 | ||
4395 | * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New. | |
4396 | (graphite_create_new_loop): Pass the newivs vector. Push the | |
4397 | newly created IV to newivs. | |
4398 | (translate_clast): Pass the newivs vector. | |
4399 | (gloog): Create and destroy the newivs vector. | |
4400 | ||
4401 | 2009-05-13 Sebastian Pop <sebastian.pop@amd.com> | |
4402 | ||
4403 | * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New. | |
4404 | (graphite_loop_normal_form): Initialize loop->aux with the unique | |
4405 | IV that has been created. | |
4406 | ||
4407 | 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4408 | ||
4409 | * tree-chrec.c (evolution_function_right_is_integer_cst): Allow | |
4410 | scev with parameters in the base part. They where forbidden | |
4411 | exidently. | |
4412 | ||
4413 | 2009-05-11 Li Feng <nemokingdom@gmail.com> | |
4414 | ||
6c9df8cb | 4415 | * gcc.dg/graphite/graphite.exp: Set different default |
c6bb733d | 4416 | compile options by file names. |
6c9df8cb | 4417 | * gcc.dg/graphite/block{0-6}.c: Remove dg-option line. |
4418 | * gcc.dg/graphite/id-{1-9}.c: Ditto. | |
4419 | * gcc.dg/graphite/scop-{0-20}.c: Ditto. | |
4420 | * gcc.dg/graphite/scop-matmult.c: Ditto. | |
c6bb733d | 4421 | |
4422 | 2009-05-08 Li Feng <nemokingdom@gmail.com> | |
4423 | ||
6c9df8cb | 4424 | * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New. |
4425 | * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New. | |
4426 | * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New. | |
4427 | * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New. | |
c6bb733d | 4428 | |
4429 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
4430 | ||
4431 | * graphite-scop-detection (build_scops_1): Fix little bug introduced | |
4432 | by final cleanup. | |
4433 | ||
4434 | 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
4435 | ||
4436 | * graphite-scop-detection.c (graphite_can_represent_scev): Only | |
4437 | allow integer constant strides. | |
4438 | (graphite_can_represent_expr): Depend on outermost_loop. | |
4439 | (stmt_simple_memref_p, graphite_cannot_represent_loop, | |
4440 | harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p, | |
4441 | build_scops_1): Same. | |
4442 | (scopdet_basic_block_info): Same and insert layered SCoP | |
4443 | detection. | |
4444 | (try_generate_gimple_bb): Cleanup. | |
4445 | (build_scops): Enable data references. | |
4446 | ||
6c9df8cb | 4447 | * gcc.dg/graphite/id-5.c: New. |
4448 | * gcc.dg/graphite/id-9.c: New. | |
c6bb733d | 4449 | * tree-chrec.c (evolution_function_right_is_integer_cst): New. |
4450 | * tree-chrec.h (evolution_function_right_is_integer_cst): New. | |
4451 | ||
4452 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4453 | ||
4454 | * sese.c (expand_scalar_variables_ssa_name): Only build expressions, | |
4455 | that we have not yet built for this SCoP. | |
4456 | ||
4457 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4458 | ||
4459 | * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables | |
4460 | for complex numbers. | |
4461 | ||
4462 | 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
4463 | ||
4464 | * graphite-ppl.c: Fix build if cloog is not available. | |
4465 | ||
4466 | 2009-05-04 Li Feng <nemokingdom@gmail.com> | |
4467 | ||
4468 | * tree-parloops.c (loop_parallel_p): Remove construction of | |
4469 | NITER and REDUCTION_LIST. | |
4470 | (try_get_loop_niter): New. | |
4471 | (try_create_reduction_list): New. | |
4472 | (parallelize_loops): Bypass the failed checkings in autopar | |
4473 | when can_be_parallel in loop structure is set to true. | |
4474 | ||
4475 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4476 | ||
6c9df8cb | 4477 | * gcc.dg/graphite/id-6.c: Update testcase. |
4478 | * gcc.dg/graphite/scop-3.c: Dito. | |
c6bb733d | 4479 | |
4480 | 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4481 | ||
4482 | * graphite-scop-detection.c (stmt_simple_for_scop_p): | |
4483 | Enable EQ_EXPR and NE_EXPR again. | |
4484 | ||
4485 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4486 | ||
4487 | * graphite-scop-detection.c (graphite_can_represent_scev): | |
4488 | Add check if scev is affine multivariate. | |
4489 | (harmful_stmt_in_bb): Check if we can represent the conditions. | |
4490 | (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to | |
4491 | harmful_stmt_in_bb. | |
6c9df8cb | 4492 | * gcc.dg/graphite/id-7.c: New. |
c6bb733d | 4493 | |
4494 | 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
4495 | ||
4496 | * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes): | |
4497 | Check all bbs in region, not only the bbs that are represented in | |
4498 | GRAPHITE. | |
4499 | (build_poly_scop): Add newline. | |
6c9df8cb | 4500 | * gcc.dg/graphite/id-8.c: New. |
c6bb733d | 4501 | |
4502 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
4503 | ||
4504 | * cfgloop.c (alloc_loop): Initialize can_be_parallel to false | |
4505 | when loop initialize. | |
4506 | * cfgloop.h (struct loop): Introduce flag can_be_parallel. | |
4507 | * common.opt: Declare flag_graphite_force_parallel. | |
4508 | * graphite-clast-to-gimple.c (translate_clast): Mark the innermost | |
4509 | loop parallel. | |
4510 | * graphite-poly.c (apply_poly_transforms): Introduce | |
4511 | flag_graphite_force_parallel. | |
4512 | * tree-ssa-loop.c (gate_graphite_transforms): ditto. | |
4513 | * toplev.c (process_options): ditto and replace a not correctly | |
4514 | encoded space. | |
4515 | ||
4516 | 2009-04-30 Li Feng <nemokingdom@gmail.com> | |
4517 | ||
4518 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts): | |
4519 | Change the call of gbb_loop_at_index and/or gbb_loop_index due | |
4520 | to the redefinition. | |
4521 | (compute_cloog_iv_types_1): ditto. | |
4522 | (build_iv_mapping): ditto. | |
4523 | * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related | |
4524 | initialization. | |
4525 | (free_gimple_bb): Removed GBB_LOOPS related free part. | |
4526 | (build_bb_loops): Removed. | |
4527 | * sese.h (struct gimple_bb): Removed loops. | |
4528 | (GBB_LOOPS): Removed. | |
4529 | (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead. | |
4530 | (gbb_loop_index): ditto. | |
4531 | ||
4532 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4533 | ||
4534 | * graphite-scop-detection.c (graphite_can_represent_scev): Do not | |
4535 | allow non constant strides. | |
6c9df8cb | 4536 | * gcc.dg/graphite/scop-20.c: New. |
c6bb733d | 4537 | |
4538 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4539 | ||
4540 | * graphite-scop-detection.c (dot_all_scops): Fix system call | |
4541 | return value warning. | |
4542 | (dot_scop): Same. | |
4543 | ||
4544 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4545 | ||
6c9df8cb | 4546 | * gcc.dg/graphite/id-6.c: Fix pattern. |
4547 | * gcc.dg/graphite/scop-3.c: Same. | |
c6bb733d | 4548 | |
4549 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4550 | ||
4551 | * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly, | |
4552 | build_pairwise_constraint, dr_equality_constraints, | |
4553 | build_pairwise_scheduling_equality, | |
4554 | build_pairwise_scheduling_inequality, lexicographically_gt_p, | |
4555 | build_lexicographically_gt_constraint, dependence_polyhedron, | |
4556 | graphite_legal_transform_dr, graphite_legal_transform_bb, | |
4557 | graphite_legal_transform): New. | |
4558 | * graphite-poly.h (graphite_legal_transform): Declared. | |
4559 | * graphite-sese-to-poly.c (build_poly_scop): Call to | |
4560 | graphite_legal_transform is disabled for the moment. | |
4561 | ||
4562 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4563 | ||
4564 | * graphite-poly.h (pbb_nb_scattering_dims): New. | |
4565 | (pbb_nb_scattering): Use it. | |
4566 | ||
4567 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4568 | ||
4569 | * graphite-ppl.c (ppl_insert_dimensions_pointset): Add | |
4570 | Pointset_Powerset version of ppl_insert_dimensions. | |
4571 | * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared. | |
4572 | ||
4573 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4574 | ||
4575 | * graphite-ppl.c (ppl_insert_dimensions): Fix formatting. | |
4576 | ||
4577 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4578 | ||
4579 | * graphite-poly.h: Fix comment. | |
4580 | ||
4581 | 2009-04-24 Sebastian Pop <sebastian.pop@amd.com> | |
4582 | ||
4583 | * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier. | |
4584 | ||
4585 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4586 | ||
4587 | * sese.c (expand_scalar_variables_stmt): Only iterate over the old | |
4588 | statements. | |
4589 | ||
4590 | 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de> | |
4591 | ||
4592 | * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New. | |
4593 | (graphite_stmt_p): Represent bbs necessary to build the phi nodes of | |
4594 | conditions. | |
4595 | ||
4596 | 2009-04-20 Sebastian Pop <sebastian.pop@amd.com> | |
4597 | ||
4598 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not | |
4599 | handle EQ_EXPR and NE_EXPR. | |
4600 | ||
4601 | 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de> | |
4602 | ||
4603 | * graphite-poly.h (poly_dr): Fix comment. | |
4604 | ||
4605 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
4606 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4607 | ||
4608 | * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN | |
4609 | with a zero dimension polyhedron. | |
4610 | (find_scop_parameters): Move the call to scop_set_nb_params here. | |
4611 | (build_loop_iteration_domains): Store in loop->aux the iteration | |
4612 | domain polyhedron. | |
4613 | (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded | |
4614 | by any loop in scop. | |
4615 | (build_poly_scop): Do not call scop_set_nb_params. | |
4616 | ||
4617 | 2009-04-09 Sebastian Pop <sebastian.pop@amd.com> | |
4618 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4619 | ||
4620 | * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to | |
4621 | add_condition_to_domain not GT_EXPR. | |
4622 | ||
4623 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4624 | ||
4625 | * graphite-ppl.c (debug_ppl_powerset_matrix): New. | |
4626 | * graphite-ppl.h (debug_ppl_powerset_matrix): New. | |
4627 | * graphite-sese-to-poly.c (add_condition_to_pbb): Use | |
4628 | upper_bound_assign to calculate unions. | |
6c9df8cb | 4629 | * gcc.dg/graphite/id-6.c: New. |
c6bb733d | 4630 | |
4631 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4632 | ||
4633 | * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not | |
4634 | handle abnormal edges. | |
4635 | ||
4636 | 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
4637 | ||
4638 | * graphite-poly.c (new_poly_dr, free_poly_dr): New. | |
4639 | (free_poly_bb): Also free poly_drs. | |
4640 | * graphite-poly.h (new_poly_dr, free_poly_dr): New. | |
4641 | (poly_dr): Polyhedron to Pointset_Powerset. | |
4642 | (pdr_accessp_nb_subscripts): Same. | |
4643 | * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build | |
4644 | poly_drs. | |
4645 | ||
4646 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4647 | ||
4648 | * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog | |
4649 | names into more meaningful names. | |
4650 | ||
4651 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4652 | ||
6c9df8cb | 4653 | * gfortran.dg/graphite/interchange-1.c: New. |
4654 | * gfortran.dg/graphite/interchange-2.c: New. | |
c6bb733d | 4655 | |
4656 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4657 | ||
4658 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build | |
4659 | the reduction_list. | |
4660 | * tree-parloops.c (rewrite_phi_with_iv): New. | |
4661 | (rewrite_all_phi_nodes_with_iv): New. | |
4662 | (canonicalize_loop_ivs): Call them. | |
4663 | ||
4664 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4665 | ||
4666 | * graphite-sese-to-poly.c (try_generate_gimple_bb): Use | |
4667 | graphite_find_data_references_in_stmt. | |
4668 | * tree-data-ref.c (graphite_find_data_references_in_stmt): New. | |
4669 | * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared. | |
4670 | ||
4671 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4672 | ||
4673 | * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames. | |
4674 | ||
4675 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4676 | ||
4677 | * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p | |
4678 | instead of bb_in_region. | |
4679 | (flag_bb_in_region): Same. Renamed flag_bb_in_sese. | |
4680 | (build_sese_conditions): Use flag_bb_in_sese. | |
4681 | * sese.c (register_bb_in_sese): Removed. | |
4682 | (new_sese): Remove initialization of SESE_REGION_BBS. | |
4683 | (free_sese): Do not free SESE_REGION_BBS. | |
4684 | * sese.h (struct sese): Remove field region_basic_blocks. | |
4685 | (SESE_REGION_BBS): Removed. | |
4686 | (bb_in_sese_p): Implement in function of bb_in_region. | |
4687 | ||
4688 | 2009-04-08 Sebastian Pop <sebastian.pop@amd.com> | |
4689 | ||
4690 | * graphite-scop-detection.c (limit_scops): Deal only with single exit | |
4691 | loops. | |
4692 | ||
4693 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
4694 | ||
4695 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR | |
4696 | and EQ_EXPR. | |
4697 | * graphite-sese-to-poly.c (create_linear_expr_from_tree): New. | |
4698 | (add_condition_to_domain): New. | |
4699 | (add_condition_to_pbb): New. | |
4700 | (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR. | |
6c9df8cb | 4701 | * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs. |
c6bb733d | 4702 | |
4703 | 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
4704 | ||
4705 | * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron -> | |
4706 | ppl_Pointset_Powerset. | |
4707 | * graphite-poly.c (new_poly_bb, free_poly_bb): Same. | |
4708 | * graphite-poly.h (poly_bb): poly_bb.domain Same. | |
4709 | (pbb_nb_loops): Same. | |
4710 | * graphite-sese-to-poly.c (build_loop_iteration_domains, | |
4711 | add_conditions_to_domain): Same. | |
4712 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New. | |
4713 | (ppl_print_polyhedron_matrix): ppl_Polyhedron_t -> | |
4714 | ppl_const_Polyhedron_t. | |
4715 | (ppl_print_powerset_matrix): New. | |
4716 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset, | |
4717 | ppl_print_powerset_matrix): New. | |
4718 | (ppl_print_polyhedron_matrix): Updated. | |
4719 | ||
4720 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
4721 | ||
4722 | * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment. | |
4723 | ||
4724 | 2009-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
4725 | ||
4726 | * graphite-poly.c (extend_scattering): Fix indenting. Free cstr. | |
4727 | (print_iteration_domains, debug_iteration_domain, | |
4728 | debug_iteration_domains): New. | |
4729 | * graphite-poly.h (print_iteration_domains, debug_iteration_domain, | |
4730 | debug_iteration_domains): Declared. | |
4731 | * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix | |
4732 | indenting. | |
4733 | ||
4734 | 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
4735 | Sebastian Pop <sebastian.pop@amd.com> | |
4736 | ||
4737 | * graphite-poly.h (print_iteration_domain): New. | |
4738 | * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug. | |
4739 | (build_sese_conditions_1, build_sese_conditions_after, | |
4740 | build_sese_conditions_before): New. | |
4741 | (build_sese_conditions): Rewritten. | |
4742 | ||
4743 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
4744 | Tobias Grosser <grosser@fim.uni-passau.de> | |
4745 | ||
4746 | Cleanup of code generation liveouts. | |
4747 | * graphite-clast-to-gimple.c (translate_clast): Use a single | |
4748 | rename_map instead of one per translated statement. | |
4749 | Do not use SESE_LIVEOUT_RENAMES. | |
4750 | (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST. | |
4751 | (gloog): Do not use SESE_LIVEOUT_RENAMES. | |
4752 | * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close | |
4753 | phi node of a reduction: when a loop contains a reduction used outside | |
4754 | the loop, there should be a scalar close phi node on the exit block. | |
4755 | * sese.c (new_sese): Do not initialize SESE_LIVEOUT, | |
4756 | SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST. | |
4757 | (free_sese): Do not free them. | |
4758 | (sese_build_liveouts_use): Do not use them. | |
4759 | (sese_build_liveouts_bb): Same. | |
4760 | (sese_build_liveouts): Same. | |
4761 | (sese_insert_phis_for_liveouts): Same. | |
4762 | (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis. | |
4763 | (defined_in_loop_p): New. | |
4764 | (alive_after_loop): New. | |
4765 | (close_phi_not_yet_inserted_p): New. | |
4766 | (struct alep, alep_p): New. | |
4767 | (add_loop_exit_phis): Remove from the rename_map all the names defined | |
4768 | in the code generated loop. | |
4769 | (insert_loop_close_phis): Traverse the rename_map passed to it. | |
4770 | Don't use SESE_LIVEOUT_RENAMES. | |
4771 | (default_liveout_before_guard): Renamed default_before_guard. | |
4772 | (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES. | |
4773 | (graphite_copy_stmts_from_block): Do not directly call set_rename. | |
4774 | (register_sese_liveout_renames): Removed. | |
4775 | (copy_bb_and_scalar_dependences): Do not call it. | |
4776 | * sese.h (struct sese): Removed fields: liveout, liveout_renames, and | |
4777 | reduction_list. | |
4778 | (SESE_LIVEOUT): Removed. | |
4779 | (SESE_LIVEOUT_RENAMES): Removed. | |
4780 | (SESE_REDUCTION_LIST): Removed. | |
4781 | (sese_build_liveouts): Removed. | |
4782 | (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis. | |
4783 | (insert_loop_close_phis): Pass a htab_t instead of a sese. | |
4784 | (insert_guard_phis): Same. | |
4785 | (rename_map_elt): Declare a VEC of them. | |
4786 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
4787 | trees not pointers to trees. | |
4788 | ||
4789 | Rewrite in canonical close SSA form: | |
4790 | * graphite-scop-detection.c (contains_only_close_phi_nodes): New. | |
4791 | (limit_scops): Close the scop after the block containing the close phi | |
4792 | nodes. | |
4793 | (canonicalize_loop_closed_ssa): New. | |
4794 | (canonicalize_loop_closed_ssa_form): New. | |
4795 | (build_scops): Call canonicalize_loop_closed_ssa_form. | |
4796 | ||
4797 | * graphite-sese-to-poly.c: Fix typos. | |
4798 | ||
4799 | 2009-04-03 Sebastian Pop <sebastian.pop@amd.com> | |
4800 | ||
4801 | * graphite-poly.c (print_scattering_function, print_pbb_domain): | |
4802 | Extended. | |
4803 | (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New. | |
4804 | (print_pbb): Add conditions. | |
4805 | ||
4806 | 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de> | |
4807 | Sebastian Pop <sebastian.pop@amd.com> | |
4808 | ||
4809 | * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region. | |
4810 | * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New. | |
4811 | (build_scop_bbs_1): New. | |
4812 | (build_scop_bbs): Rewrite. | |
4813 | * sese.h (bb_in_region): New. | |
4814 | ||
4815 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4816 | ||
4817 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
4818 | poly_drs vector. | |
4819 | (print_scop): Style. | |
4820 | * graphite-poly.h (poly_bb): Add drs vector. | |
4821 | (PBB_DRS): Add accessor. | |
4822 | * graphite-sese-to-poly.c (build_poly_dr): New. | |
4823 | (build_pbb_drs, build_scop_drs): New. | |
4824 | (build_poly_scop): call build_scop_drs (Disabled at the moment). | |
4825 | ||
4826 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4827 | ||
4828 | * tree-ssa-loop.c: Include forgotten toplev.h | |
4829 | ||
4830 | 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
4831 | ||
4832 | * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable. | |
6c9df8cb | 4833 | * gcc.dg/graphite/pr37883.c: Remove -floop-* |
4834 | * gcc.dg/graphite/pr37928.c: Same | |
4835 | * gcc.dg/graphite/pr38409.c: Same | |
4836 | * gcc.dg/graphite/pr38498.c: Same | |
4837 | * gcc.dg/graphite/pr38559.c: Same | |
4838 | * gcc.dg/graphite/pr39335.c: Same | |
4839 | * gcc.dg/graphite/pr39335_1.c: Same | |
4840 | * gfortran.dg/graphite/block-2.f: Same | |
c6bb733d | 4841 | * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called |
4842 | with -floop-*. | |
4843 | ||
4844 | 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
4845 | ||
4846 | * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af, | |
4847 | build_access_matrix, build_scop_data_accesses): Remove access function | |
4848 | building. (We get a new version soon). | |
4849 | (build_bb_loops, scan_tree_for_params_right_scev): Update. | |
4850 | * sese.h (nb_loops_around_loop_in_sese): Remove. | |
4851 | (sese_loop_depth): Do not use SESE_LOOP_NEST any more. | |
4852 | ||
4853 | 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de> | |
4854 | Sebastian Pop <sebastian.pop@amd.com> | |
4855 | ||
4856 | * graphite-scop-detection.c (struct scopdet_info): Rename last | |
4857 | field to exit. | |
4858 | (scopdet_basic_block_info, build_scops_1): Don't use | |
4859 | CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used. | |
4860 | ||
4861 | 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de> | |
4862 | Sebastian Pop <sebastian.pop@amd.com> | |
4863 | ||
4864 | * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts. | |
4865 | * sese.c (sese_build_liveouts_use): Renamed from | |
4866 | sese_build_livein_liveouts_use. Remove liveins. | |
4867 | (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb. | |
4868 | Call sese_build_liveouts_use. | |
4869 | (sese_build_liveouts): Renamed from sese_build_livein_liveouts. | |
4870 | Call sese_build_liveouts_bb. | |
4871 | (new_sese, free_sese): Remove liveins. | |
4872 | (sese_add_exit_phis_var): Deleted. | |
4873 | (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge | |
4874 | directly. | |
4875 | (graphite_copy_stmts_from_block): Remove SESE_NUM_VER. | |
4876 | ||
4877 | * sese.h (sese): Remove num_ver and livein. | |
4878 | (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed. | |
4879 | ||
4880 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
4881 | ||
4882 | * graphite-sese-to-poly.c (build_scop_scattering): Fix compile. | |
4883 | ||
4884 | 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
4885 | ||
4886 | * graphite-sese-to-poly.c (compare_prefix_loops): Removed. | |
4887 | (build_scop_scattering): Do not use compare_prefix_loops any more. | |
4888 | (nb_common_loops): New. | |
4889 | ||
4890 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4891 | ||
4892 | * sese.c (get_new_name_from_old_name): Renamed get_rename. | |
4893 | (register_old_and_new_names): Renamed set_rename. | |
4894 | ||
4895 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4896 | ||
4897 | * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal | |
4898 | of the decl from the previous commit. | |
4899 | ||
4900 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4901 | ||
4902 | * graphite-scop-detection.c (dot_scop): New. | |
4903 | * graphite-scop-detection.h (dot_scop): Declared. | |
4904 | ||
4905 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4906 | ||
4907 | * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare. | |
4908 | ||
4909 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4910 | ||
4911 | * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit | |
4912 | condition at the end of the loop. | |
4913 | * graphite.c (graphite_initialize, graphite_finalize): Print to | |
4914 | dump_file the compiled function. | |
4915 | * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use | |
4916 | of create_empty_loop_on_edge. | |
4917 | (translate_clast): Update the code generation of loops for the new | |
4918 | shape of loops. | |
4919 | * cfgloop.h (create_empty_loop_on_edge): Update declaration. | |
4920 | ||
4921 | 2009-03-24 Sebastian Pop <sebastian.pop@amd.com> | |
4922 | ||
4923 | Reverted the patch from 2009-03-19. | |
4924 | ||
4925 | 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de> | |
4926 | ||
4927 | * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free | |
4928 | poly_drs vector. | |
4929 | (print_scop): Style. | |
4930 | * graphite-poly.h (poly_bb): Add drs vector. | |
4931 | (PBB_DRS): Add accessor. | |
4932 | * graphite-sese-to-poly.c (ref_nb_loops): Remove. | |
4933 | (build_access_matrix_with_af, build_access_matrix, | |
4934 | build_scop_data_accesses): Delete. | |
4935 | (build_poly_dr): New. | |
4936 | (build_pbb_drs, build_scop_drs): New. | |
4937 | (build_poly_scop): call build_scop_drs. | |
4938 | ||
4939 | 2009-03-13 Sebastian Pop <sebastian.pop@amd.com> | |
4940 | ||
4941 | * graphite-scop-detection.c (dot_all_scops_1): Close the table | |
4942 | once per basic block. | |
4943 | ||
4944 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4945 | ||
4946 | * graphite-scop-detection.c (graphite_can_represent_scev): New. | |
4947 | (graphite_can_represent_expr): Renamed from loop_affine_expr | |
4948 | and enhanced. | |
4949 | (stmt_simple_for_scop_p): Call graphite_can_represent_expr. | |
4950 | (graphite_cannot_represent_loop): Add scop_entry to parameters. | |
4951 | (scopdet_basic_block_info): Actually define entry_block. | |
4952 | (stmt_simple_memref_p): Moved here from ... | |
4953 | ||
4954 | * tree-data-ref.c (stmt_simple_memref_p): here. | |
4955 | * tree-data-ref.h (stmt_simple_memref_p): Removed. | |
4956 | ||
4957 | 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
4958 | ||
6c9df8cb | 4959 | * gcc.dg/graphite/id-4.c: New. |
c6bb733d | 4960 | |
4961 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
4962 | ||
4963 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
4964 | (register_old_and_new_names): Update the content of the map. | |
4965 | When there was already a rename_map_elt in the map at that | |
4966 | location, free it. | |
4967 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
4968 | expand_scalar_variables. | |
4969 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
4970 | of the map. When there was already a rename_map_elt in the | |
4971 | map at that location, free it. | |
4972 | (translate_clast): Pass the rename_map. Do not initialize and free | |
4973 | a rename_map per stmt_user. | |
4974 | (gloog): Initialize and free one rename_map and pass it to | |
4975 | translate_clast. | |
4976 | ||
4977 | 2009-03-12 Sebastian Pop <sebastian.pop@amd.com> | |
4978 | ||
4979 | * sese.c (expand_scalar_variables_stmt, | |
4980 | expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator | |
4981 | parameter. | |
4982 | (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR. | |
4983 | (expand_scalar_variables): Pass to expand_scalar_variables_stmt | |
4984 | the gimple_stmt_iterator of the statement to be expanded. | |
4985 | * graphite-scop-detection.c (is_simple_operand): Do handle | |
4986 | REALPART_EXPR. | |
4987 | ||
4988 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
4989 | ||
4990 | * graphite-scop-detection.c (is_simple_operand): Do not handle | |
4991 | REALPART_EXPR. | |
6c9df8cb | 4992 | * gcc.dg/graphite/id-2.c: New. |
c6bb733d | 4993 | |
4994 | * graphite-sese-to-poly.c (build_bb_loops, | |
4995 | add_value_to_dim, scan_tree_for_params_right_scev, | |
4996 | scan_tree_for_params_int, scan_tree_for_params, idx_record_params, | |
4997 | find_params_in_bb, build_loop_iteration_domains, | |
4998 | add_conditions_to_domain): Remove subtract. | |
4999 | ||
5000 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5001 | ||
5002 | * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts, | |
5003 | build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog): | |
5004 | pbb_loop_at_index -> gbb_loop_at_index. | |
5005 | * graphite-poly.c (new_poly_bb, new_scop): New accessors. | |
5006 | (debug_loop_vec): Delete. | |
5007 | * graphite-poly.h (poly_bb, scop): Change black_box and region to void | |
5008 | pointer. Move LOOPS to gimple_bb_p and insert nb_params. | |
5009 | (PBB_LOOPS): Removed. | |
5010 | (PBB_BLACK_BOX): Insert cast. | |
5011 | (pbb_set_black_box): New setter. | |
5012 | (pbb_loop_at_index, pbb_loop_index): Removed. | |
5013 | (scop_set_region, scop_set_nb_params): New. | |
5014 | * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb, | |
5015 | build_scop_scattering, build_bb_loops): Add GBB_LOOPS. | |
5016 | (build_poly_scop): Use scop_set_nb_params. | |
5017 | * sese.h (gimple_bb): Add LOOPS. | |
5018 | (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New. | |
5019 | ||
5020 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5021 | ||
5022 | Revert previous commit. | |
5023 | ||
5024 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
5025 | ||
5026 | * sese.c (expand_scalar_variables_expr): Handle tcc_comparison. | |
5027 | (register_old_and_new_names): Update the content of the map. | |
5028 | When there was already a rename_map_elt in the map at that | |
5029 | location, free it. | |
5030 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
5031 | expand_scalar_variables. | |
5032 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
5033 | of the map. When there was already a rename_map_elt in the | |
5034 | map at that location, free it. | |
5035 | (translate_clast): Pass the rename_map. Do not initialize and free | |
5036 | a rename_map per stmt_user. | |
5037 | (gloog): Initialize and free one rename_map and pass it to | |
5038 | translate_clast. | |
5039 | ||
5040 | 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
5041 | ||
5042 | Remove forgotten line in revert. | |
5043 | ||
5044 | 2009-03-11 Sebastian Pop <sebastian.pop@amd.com> | |
5045 | ||
5046 | Revert previous commit. | |
5047 | ||
5048 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
5049 | ||
5050 | * sese.c (register_old_and_new_names): Update the content | |
5051 | of the map. When there was already a rename_map_elt in the | |
5052 | map at that location, free it. | |
5053 | (copy_bb_and_scalar_dependences): Do rename_variables after | |
5054 | expand_scalar_variables. | |
5055 | * graphite-clast-to-gimple.c (build_iv_mapping): Update the content | |
5056 | of the map. When there was already a rename_map_elt in the | |
5057 | map at that location, free it. | |
5058 | (translate_clast): Pass the rename_map. Do not initialize and free | |
5059 | a rename_map per stmt_user. | |
5060 | (gloog): Initialize and free one rename_map and pass it to | |
5061 | translate_clast. | |
5062 | ||
5063 | 2009-03-10 Sebastian Pop <sebastian.pop@amd.com> | |
5064 | ||
5065 | * graphite-clast-to-gimple.c (translate_clast): context_loop | |
5066 | is never NULL. | |
5067 | ||
5068 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5069 | Sebastian Pop <sebastian.pop@amd.com> | |
5070 | ||
5071 | * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake | |
5072 | of the use of ppl_Polyhedron_map_space_dimensions. | |
5073 | ||
5074 | 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5075 | Sebastian Pop <sebastian.pop@amd.com> | |
5076 | ||
5077 | * graphite-poly.c (unify_scattering_dimensions): Fix types. | |
5078 | * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB, | |
5079 | PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts, | |
5080 | pdr_accessp_nb_iterators, pdr_accessp_nb_params, | |
5081 | pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim, | |
5082 | pdr_accessp_iterator_dim, pdr_accessp_param_dim, | |
5083 | pbb_nb_params): New. | |
5084 | (pbb_nb_loops, pbb_nb_scattering, scop_nb_params, | |
5085 | nb_loops_around_pbb): Adapt return types. | |
5086 | ||
5087 | 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
5088 | ||
5089 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
5090 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
5091 | graphite-scop-detection.o, graphite-poly.o): Add | |
5092 | more headers. | |
5093 | ||
5094 | 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
5095 | ||
5096 | * Makefile.in (graphite.o, graphite-sese-to-poly.o, | |
5097 | graphite-clast-to-gimple.o, graphite-data-ref.o, | |
5098 | graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h. | |
5099 | ||
5100 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
5101 | ||
6c9df8cb | 5102 | * gcc.dg/graphite/pr37485.c: Remove -floop-block |
5103 | * gcc.dg/graphite/pr37828.c: Same. | |
5104 | * gcc.dg/graphite/pr37684.c: Same. | |
5105 | * gcc.dg/graphite/block-0.c: Same. | |
5106 | * gcc.dg/graphite/block-1.c: Same. | |
5107 | * gcc.dg/graphite/block-2.c: Same. | |
5108 | * gcc.dg/graphite/block-3.c: Same. | |
5109 | * gcc.dg/graphite/block-4.c: Same. | |
5110 | * gcc.dg/graphite/block-5.c: Same. | |
5111 | * gcc.dg/graphite/block-6.c: Same. | |
5112 | * gfortran.dg/graphite/pr38083.f90: Same. | |
5113 | * gfortran.dg/graphite/block-1.f90: Same. | |
5114 | * gfortran.dg/graphite/block-3.f90: Same. | |
5115 | * gfortran.dg/graphite/pr37852.f90: Same. | |
5116 | * gfortran.dg/graphite/block-4.f90: Same. | |
5117 | * gfortran.dg/graphite/pr37980.f90: Same. | |
5118 | * gfortran.dg/graphite/pr38953.f90: Same. | |
5119 | * gfortran.dg/graphite/pr37857.f90: Same. | |
c6bb733d | 5120 | * opts.c: Remove -floop-block from -O2. |
5121 | * graphite-poly.c: Fail if -floop-block -floop-interchange or | |
5122 | -floop-strip-mine are used. | |
5123 | ||
5124 | 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
5125 | Sebastian Pop <sebastian.pop@amd.com> | |
5126 | ||
5127 | * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering | |
5128 | dimensions. | |
5129 | * graphite-poly.c (pbb_compare, graphite_sort_pbbs, | |
5130 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine, | |
5131 | strip_mine_profitable_p, is_interchange_valid, | |
5132 | graphite_trans_bb_block, graphite_trans_loop_block, | |
5133 | graphite_trans_scop_block): Temporary removed. | |
5134 | (extend_scattering, unify_scattering_dimensions): New. | |
5135 | (print_scattering_function, graphite_read_transforms): | |
5136 | PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
5137 | (graphite_generate_scattering_fns): Removed. | |
5138 | (apply_poly_transforms): Cleanup. | |
5139 | (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
5140 | (schedule_to_scattering): Moved. | |
5141 | (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed. | |
5142 | (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New. | |
5143 | (pbb_nb_scattering): New. | |
5144 | (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
5145 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES): | |
5146 | Removed. | |
5147 | * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from | |
5148 | shift_poly. | |
5149 | (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING. | |
5150 | * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING | |
5151 | -> PBB_TRANSFORMED_SCATTERING. | |
5152 | * graphite-sese-to-poly.c (build_scop_bbs): Remove region. | |
5153 | (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering. | |
5154 | (build_scop_scattering): Renamed from build_scop_canonical_schedules. | |
5155 | (check_poly_representation): Do not return bool. | |
5156 | (graphite_transform_loops): Reformat. | |
5157 | * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New. | |
5158 | ||
5159 | 2009-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
5160 | ||
5161 | * graphite-poly.c (print_pbb_domain, print_pbb, print_scop, | |
5162 | debug_pbb_domain, debug_pbb, debug_scop): New. | |
5163 | * graphite-poly.h (print_pbb_domain, print_pbb, print_scop, | |
5164 | debug_pbb_domain, debug_pbb, debug_scop): Declared. | |
5165 | ||
5166 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
5167 | ||
5168 | PR middle-end/39335 | |
5169 | * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert | |
5170 | when the type precision of the induction variable should be | |
5171 | larger than the type precision of nit. | |
5172 | (gen_parallel_loop): Update use of canonicalize_loop_ivs. | |
5173 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same. | |
5174 | * tree-flow.h (canonicalize_loop_ivs): Update declaration. | |
5175 | ||
6c9df8cb | 5176 | * gcc.dg/graphite/pr39335_1.c: New. |
5177 | * gcc.dg/graphite/pr39335.c: New. | |
c6bb733d | 5178 | |
5179 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
5180 | ||
5181 | * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains | |
5182 | SSA_NAMES not struct reduction_info. | |
5183 | ||
5184 | 2009-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
5185 | ||
5186 | * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR. | |
5187 | ||
5188 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
5189 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5190 | ||
5191 | * sese.c (new_sese): Initialize SESE_REDUCTION_LIST. | |
5192 | (free_sese): Free SESE_REDUCTION_LIST. | |
5193 | * sese.h (struct sese): Add field reduction_list. | |
5194 | (SESE_REDUCTION_LIST): New. | |
5195 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call | |
5196 | canonicalize_loop_ivs on SESE_REDUCTION_LIST. | |
5197 | ||
5198 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
5199 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5200 | ||
5201 | * tree-flow.h (gather_scalar_reductions): Use struct loop * instead | |
5202 | of loop_p. | |
5203 | ||
5204 | 2009-02-27 Sebastian Pop <sebastian.pop@amd.com> | |
5205 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5206 | ||
5207 | * tree-parloops.c (struct brli, build_reduction_list_info, | |
5208 | analyze_reduction_list, gather_scalar_reductions): New. | |
5209 | (loop_parallel_p): Build a reduction list containing only | |
5210 | PHI_RESULT SSA_NAMEs: call gather_scalar_reductions. | |
5211 | (gen_parallel_loop): Call the analysis analyze_reduction_list. | |
5212 | (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs. | |
5213 | * tree-flow.h (gather_scalar_reductions): Declared. | |
5214 | ||
5215 | 2009-02-26 Sebastian Pop <sebastian.pop@amd.com> | |
5216 | ||
5217 | PR middle-end/39308 | |
5218 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call | |
5219 | number_of_iterations_exit from a gcc_assert. | |
5220 | ||
5221 | 2009-02-25 Sebastian Pop <sebastian.pop@amd.com> | |
5222 | Jan Sjodin <jan.sjodin@amd.com> | |
5223 | ||
5224 | * output.h (graphite_out_file, graphite_in_file): Declared. | |
5225 | * toplev.c (graphite_out_file, graphite_in_file): New. | |
5226 | (init_asm_output): Initialize graphite_in_file and graphite_out_file. | |
5227 | * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING. | |
5228 | Don't call schedule_to_scattering. | |
5229 | * common.opt (fgraphite-write, fgraphite-read): New. | |
5230 | * graphite-poly.c: Include output.h. | |
5231 | (print_scattering_function, print_scattering_functions, | |
5232 | debug_scattering_function, debug_scattering_functions, | |
5233 | graphite_write_transforms, graphite_read_transforms, | |
5234 | graphite_generate_scattering_fns): New. | |
5235 | (apply_poly_transforms): Do not apply transform if flag_graphite_read. | |
5236 | Call graphite_generate_scattering_fns, graphite_write_transforms, | |
5237 | graphite_read_transforms. | |
5238 | (new_poly_bb): Initialize PBB_SCATTERING. | |
5239 | (free_poly_bb): Free PBB_SCATTERING. | |
5240 | (schedule_to_scattering): Does not return, initialize PBB_SCATTERING. | |
5241 | * graphite-poly.h (struct poly_bb): Add field scattering. | |
5242 | (PBB_SCATTERING): New. | |
5243 | (print_scattering_function, print_scattering_functions, | |
5244 | debug_scattering_function, debug_scattering_functions): Declared. | |
5245 | * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain | |
5246 | GMP values, not integers! | |
5247 | (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix, | |
5248 | ppl_read_polyhedron_matrix): New. | |
5249 | * graphite-ppl.h (ppl_print_polyhedron_matrix, | |
5250 | debug_ppl_polyhedron_matrix, | |
5251 | ppl_read_polyhedron_matrix): Declared. | |
5252 | * Makefile.in (graphite-poly.o): Depends on output.h. | |
5253 | ||
5254 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5255 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5256 | ||
5257 | Revert this change: | |
5258 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
5259 | scalar evolutions in the scop_entry->loop_father. | |
5260 | ||
5261 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5262 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5263 | ||
5264 | * graphite.h (ref_nb_loops): Remove declaration. | |
5265 | (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS, | |
5266 | GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb, | |
5267 | debug_gbb): Moved to sese.h. | |
5268 | * sese.h: As said. | |
5269 | ||
5270 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5271 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5272 | ||
5273 | * graphite-data-ref.[ch]: Disable. | |
5274 | ||
5275 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5276 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5277 | ||
5278 | * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze | |
5279 | scalar evolutions in the scop_entry->loop_father. | |
5280 | ||
5281 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5282 | ||
5283 | * graphite-scop-detection.c (nb_reductions_in_loop): Moved here... | |
5284 | (graphite_cannot_represent_loop_niter): Renamed | |
5285 | graphite_cannot_represent_loop. Call nb_reductions_in_loop. | |
5286 | (limit_scops): build_sese_loop_nests does not return a bool. | |
5287 | * graphite-scop-detection.h (nb_reductions_in_loop): Declared. | |
5288 | * sese.c (nb_reductions_in_loop): ... from here. | |
5289 | (graphite_loop_normal_form): ... from here. | |
5290 | (sese_record_loop): Does not fail, so does not return a bool. | |
5291 | (build_sese_loop_nests): Same. | |
5292 | * sese.h (build_sese_loop_nests): Update declaration. | |
5293 | * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here... | |
5294 | (build_graphite_loop_normal_form): New. | |
5295 | (gloog): Call build_graphite_loop_normal_form. | |
5296 | * graphite-sese-to-poly.c (build_poly_scop): Don't fail on | |
5297 | build_sese_loop_nests. | |
5298 | ||
6c9df8cb | 5299 | * gcc.dg/graphite/id-1.c: New. |
c6bb733d | 5300 | |
5301 | 2009-02-23 Sebastian Pop <sebastian.pop@amd.com> | |
5302 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5303 | ||
5304 | * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST. | |
5305 | The SCoP detection fix is sufficient. | |
5306 | ||
5307 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
5308 | ||
5309 | PR tree-optimization/39260 | |
5310 | * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when | |
5311 | the basic block contains a condition with a real type. | |
5312 | * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST. | |
5313 | ||
5314 | * gcc.dg/graphite/pr39260.c: New. | |
5315 | ||
5316 | 2009-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
5317 | ||
5318 | * graphite-poly.c: Inlcude params.h. | |
5319 | (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for | |
5320 | the size of a tile. | |
5321 | * Makefile.in (graphite-poly.o): Depend on PARAMS_H. | |
5322 | * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define. | |
5323 | ||
5324 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5325 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5326 | ||
5327 | * graphite-scop-detection.c (dot_all_scops_1, | |
5328 | dot_all_scops): Moved here. | |
5329 | * graphite-scop-detection.h (dot_all_scops): Declared here. | |
5330 | * graphite.c (graphite_initialize, graphite_finalize): New. | |
5331 | (graphite_transform_loops): Cleaned up. | |
5332 | * sese.c (debug_oldivs): Moved here. | |
5333 | * graphite-poly.c (graphite_apply_transformations): Renamed | |
5334 | apply_poly_transforms. | |
5335 | (debug_loop_vec): Moved here. | |
5336 | * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1, | |
5337 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions, | |
5338 | find_scop_parameters, build_scop_iteration_domain, | |
5339 | add_conditions_to_constraints, build_scop_canonical_schedules, | |
5340 | build_scop_data_accesses): Now static. | |
5341 | (build_poly_scop, check_poly_representation): New. | |
5342 | ||
5343 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5344 | ||
5345 | * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb, | |
5346 | remove_gbbs_in_scop, free_scops, try_generate_gimple_bb, | |
5347 | build_scop_bbs, ref_nb_loops, compare_prefix_loops, | |
5348 | build_scop_canonical_schedules, build_bb_loops, add_value_to_dim, | |
5349 | scan_tree_for_params_right_scev, scan_tree_for_params_int, | |
5350 | scan_tree_for_params, struct irp_data, dx_record_params, | |
5351 | find_params_in_bb, find_scop_parameters, gbb_from_bb, | |
5352 | build_loop_iteration_domains, add_conditions_to_domain, | |
5353 | phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes, | |
5354 | scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1, | |
5355 | build_sese_conditions, add_conditions_to_constraints, | |
5356 | build_scop_iteration_domain, build_access_matrix_with_af, | |
5357 | build_access_matrix, | |
5358 | build_scop_data_accesses): Moved to graphite-sese-to-poly.c. | |
5359 | ||
5360 | * graphite-sese-to-poly.c: New. | |
5361 | * graphite-sese-to-poly.h: New. | |
5362 | ||
5363 | * Makefile.in: Add new rule for graphite-sese-to-poly.o. | |
5364 | ||
5365 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5366 | ||
5367 | * graphite.c: Split graphite code generation to a new file. | |
5368 | (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc, | |
5369 | max_precision_type, clast_to_gcc_expression_red, | |
5370 | clast_to_gcc_expression, gcc_type_for_clast_expr, | |
5371 | gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts, | |
5372 | graphite_translate_clast_equation, graphite_create_guard_cond_expr, | |
5373 | graphite_create_new_guard, clast_get_body_of_loop, | |
5374 | gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop, | |
5375 | graphite_create_new_loop, build_iv_mapping, copy_renames, | |
5376 | translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
5377 | compute_cloog_iv_types, free_scattering, save_var_name, | |
5378 | initialize_cloog_names, build_scop_context, build_cloog_prog, | |
5379 | set_cloog_options, debug_clast_stmt, scop_to_clast, | |
5380 | print_generated_program, debug_generated_program, | |
5381 | gloog): Moved to graphite-clast-to-gimple.c. | |
5382 | ||
5383 | (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h. | |
5384 | ||
5385 | (iv_stack_entry_is_constant, iv_stack_entry_is_iv, | |
5386 | loop_iv_stack_push_iv, loop_iv_stack_insert_constant, | |
5387 | loop_iv_stack_pop, loop_iv_stack_get_iv, | |
5388 | loop_iv_stack_get_iv_from_name, debug_loop_iv_stack, | |
5389 | free_loop_iv_stack, loop_iv_stack_remove_constants, | |
5390 | debug_rename_elt, debug_rename_map_1, debug_rename_map, | |
5391 | rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt, | |
5392 | debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info, | |
5393 | eq_ivtype_map_elts, sese_add_exit_phis_edge, | |
5394 | sese_add_exit_phis_var, sese_insert_phis_for_liveouts, | |
5395 | get_vdef_before_sese, sese_adjust_vphi, | |
5396 | get_new_name_from_old_name, sese_adjust_phis_for_liveouts, | |
5397 | oldiv_for_loop, rename_variables_in_stmt, is_parameter, | |
5398 | is_iv, expand_scalar_variables_ssa_name, | |
5399 | expand_scalar_variables_expr, expand_scalar_variables_stmt, | |
5400 | expand_scalar_variables, rename_variables, remove_condition, | |
5401 | get_true_edge_from_guard_bb, get_false_edge_from_guard_bb, | |
5402 | add_loop_exit_phis, insert_loop_close_phis, struct igp, | |
5403 | default_liveout_before_guard, add_guard_exit_phis, | |
5404 | insert_guard_phis, register_old_and_new_names, | |
5405 | graphite_copy_stmts_from_block, register_sese_liveout_renames, | |
5406 | copy_bb_and_scalar_dependences, outermost_loop_in_sese, | |
5407 | if_region_set_false_region, create_if_region_on_edge, | |
5408 | move_sese_in_condition): Moved to sese.c. | |
5409 | ||
5410 | (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry, | |
5411 | if_region_exit, if_region_get_condition_block, | |
5412 | struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind, | |
5413 | union iv_stack_entry_data_union, struct iv_stack_entry_struct, | |
5414 | iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt, | |
5415 | ivtype_map_elt, new_ivtype_map_elt, | |
5416 | recompute_all_dominators): Moved to sese.h. | |
5417 | ||
5418 | * graphite-clast-to-gimple.c: New. | |
5419 | * graphite-clast-to-gimple.h: New. | |
5420 | * Makefile.in: Add new rule for graphite-clast-to-gimple.o. | |
5421 | * sese.c: Modified as said above. | |
5422 | * sese.h: Same. | |
5423 | ||
5424 | 2009-02-20 Sebastian Pop <sebastian.pop@amd.com> | |
5425 | ||
5426 | * graphite.c: Split scop detection to a new file. | |
5427 | (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region, | |
5428 | move_sd_regions, loop_affine_expr, exclude_component_ref, | |
5429 | is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb, | |
5430 | graphite_cannot_represent_loop_niter, struct scopdet_info, | |
5431 | scopdet_basic_block_info, build_scops_1, bb_in_sd_region, | |
5432 | find_single_entry_edge, find_single_exit_edge, | |
5433 | create_single_entry_edge, sd_region_without_exit, | |
5434 | create_single_exit_edge, unmark_exit_edges, mark_exit_edges, | |
5435 | create_sese_edges, build_graphite_scops, limit_scops, build_scops): | |
5436 | Moved to graphite-scop-detection.c. | |
5437 | ||
5438 | * graphite-scop-detection.c: New. | |
5439 | * graphite-scop-detection.h: New. | |
5440 | * Makefile.in: Add new rule for graphite-scop-detection.o. | |
5441 | ||
5442 | * sese.c: Include tree-chrec.h, tree-data-ref.h, and | |
5443 | tree-scalar-evolution.h. | |
5444 | (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop, | |
5445 | build_sese_loop_nests): Moved here from graphite.c. | |
5446 | (param_index): Renamed parameter_index_in_region. | |
5447 | ||
5448 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
5449 | Sebastian Pop <sebastian.pop@amd.com> | |
5450 | ||
5451 | * gcc.dg/graphite/block-0.c: Expected to fail now. | |
5452 | * gcc.dg/graphite/block-1.c: Same. | |
5453 | * gcc.dg/graphite/block-5.c: Same. | |
5454 | * gcc.dg/graphite/block-6.c: Same. | |
5455 | ||
5456 | 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de> | |
5457 | Sebastian Pop <sebastian.pop@amd.com> | |
5458 | ||
5459 | * graphite.h: Separate from graphite_bb_p the polyhedral | |
5460 | representation in poly_bb_p and the GCC specifics in gimple_bb_p. | |
5461 | (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to | |
5462 | graphite-data-ref.h. | |
5463 | (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN, | |
5464 | PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index, | |
5465 | pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY, | |
5466 | SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS, | |
5467 | SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES, | |
5468 | scop_nb_params): Moved to graphite-poly.h. | |
5469 | * graphite-data-ref.c: Same. | |
5470 | * graphite-data-ref.h: New. | |
5471 | * graphite.c: Same. | |
5472 | (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop, | |
5473 | graphite_trans_bb_strip_mine, strip_mine_profitable_p, | |
5474 | is_interchange_valid, graphite_trans_bb_block, | |
5475 | graphite_trans_loop_block, scop_max_loop_depth, | |
5476 | graphite_trans_scop_block, graphite_apply_transformations, | |
5477 | new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to | |
5478 | graphite-poly.c. | |
5479 | * graphite-poly.h: New. | |
5480 | * graphite-poly.c: New. | |
5481 | * Makefile.in (OBJS-common): Add graphite-poly.o. | |
5482 | (graphite-poly.o): New rule. | |
5483 | * tree-data-ref.h (struct data_reference): Remove unused scop field. | |
5484 | (DR_SCOP): Removed. | |
5485 | ||
5486 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
5487 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5488 | ||
5489 | * graphite.c: Replace gb -> gbb. | |
5490 | * graphite.h: Same. | |
5491 | * graphite-data-ref.c: Same. | |
5492 | ||
5493 | 2009-02-18 Sebastian Pop <sebastian.pop@amd.com> | |
5494 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5495 | ||
5496 | * Makefile.in (OBJS-commmon): Add sese.o. | |
5497 | (sese.o): New. | |
5498 | (graphite.o): Add sese.h. | |
5499 | * graphite.c (bb_in_ss_p, loop_in_sese_p, | |
5500 | sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb, | |
5501 | sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese): | |
5502 | Move to sese. | |
5503 | (block_before_scop): Add missing return. | |
5504 | (new_scop, free_scop): Remove SESE data structures. | |
5505 | (scop_record_loop, scan_tree_for_params, find_params_in_bb, | |
5506 | find_scop_parameters, build_loop_iteration_domains, | |
5507 | add_conditions_to_domain, register_scop_liveout_renames, | |
5508 | copy_bb_and_scalar_dependences): Scop -> SESE. | |
5509 | ||
5510 | (add_conditions_to_domain): SCoP -> SESE and remove check | |
5511 | (scop_contains_non_iv_scalar_phi_nodes): New. | |
5512 | (build_scop_conditions_1, build_scop_conditions): Remove check for | |
5513 | non iv scalar phi nodes. | |
5514 | (print_scop_statistics): New. | |
5515 | (graphite_transform_loops): Cleanup. | |
5516 | ||
5517 | * graphite.h: Move to sese & cleanup. | |
5518 | * sese.c: New. | |
5519 | * sese.h: New. | |
5520 | ||
5521 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5522 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5523 | ||
5524 | * graphite.c (build_scop_conditions_1): Conditions are only | |
5525 | at the end of a basic block. | |
5526 | ||
5527 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5528 | Tobias Grosser <grosser@fim.uni-passau> | |
5529 | ||
5530 | * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix | |
5531 | field. | |
5532 | (GBB_ALPHA): Removed. | |
5533 | ||
5534 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5535 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5536 | ||
5537 | * graphite-data-ref.c (graphite_test_dependence): Don't use | |
5538 | GBB_DYNAMIC_SCHEDULE. | |
5539 | * graphite.c (new_graphite_bb): Same. | |
5540 | (free_graphite_bb): Same. | |
5541 | (build_scop_dynamic_schedules): Removed. | |
5542 | (graphite_transform_loops): Don't call it. | |
5543 | * graphite.h (struct graphite_bb): Remove dynamic_schedule field. | |
5544 | (GBB_DYNAMIC_SCHEDULE): Removed. | |
5545 | ||
5546 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5547 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5548 | ||
5549 | * graphite.c (schedule_to_scattering): Don't use CloogMatrix. | |
5550 | (print_graphite_bb): Same. | |
5551 | (build_cloog_prog): Same. | |
5552 | ||
5553 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5554 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5555 | ||
5556 | * graphite.c (build_cloog_prog): Don't use CloogMatrix. | |
5557 | ||
5558 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5559 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5560 | ||
5561 | * graphite.c (build_scop_context): Don't use CloogMatrix. | |
5562 | * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New. | |
5563 | * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared. | |
5564 | ||
5565 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5566 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5567 | ||
5568 | * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest, | |
5569 | liveout_renames, add_params fields... | |
5570 | (struct sese): ... here. | |
5571 | (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS, | |
5572 | SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New. | |
5573 | ||
5574 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5575 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5576 | ||
5577 | * graphite.c (print_scop): Do not print the CLooG program. | |
5578 | (new_scop, free_scop, initialize_cloog_names, build_scop_context, | |
5579 | build_cloog_prog, gloog): Don't use SCOP_PROG. | |
5580 | (find_transform): Renamed scop_to_clast. | |
5581 | (print_generated_program, debug_generated_program): New. | |
5582 | (graphite_transform_loops): Adapt to new interface. | |
5583 | * graphite.h (struct scop): Remove program field. | |
5584 | (SCOP_PROG): Removed. | |
5585 | (print_generated_program, debug_generated_program): Declared. | |
5586 | ||
5587 | 2009-02-16 Sebastian Pop <sebastian.pop@amd.com> | |
5588 | ||
5589 | * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New. | |
5590 | (statement_precedes_p): Use schedule_same_p and schedule_precedes_p. | |
5591 | * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb, | |
5592 | free_graphite_bb, build_scop_canonical_schedules, | |
5593 | graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static | |
5594 | schedules are now represented using a ppl_Linear_Expression_t. | |
5595 | * graphite.h (struct graphite_bb): Same. | |
5596 | * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New. | |
5597 | * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared. | |
5598 | ||
5599 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
5600 | ||
5601 | * graphite.c: Free local memory. | |
5602 | * graphite-ppl.c: Same. | |
5603 | ||
5604 | 2009-02-15 Sebastian Pop <sebastian.pop@amd.com> | |
5605 | ||
5606 | * graphite.c (const_column_index, get_first_matching_sign_row_index, | |
5607 | get_lower_bound_row, get_upper_bound_row, copy_constraint, | |
5608 | swap_constraint_variables, scale_constraint_variable): Removed. | |
5609 | (graphite_trans_bb_strip_mine): Remove pong. | |
5610 | * graphite-ppl.c: Include missing header files. | |
5611 | (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New. | |
5612 | * graphite-ppl.h (ppl_strip_loop): Declared. | |
5613 | * Makefile.in (graphite-ppl.o): Adjust dependences. | |
5614 | ||
5615 | 2009-02-14 Sebastian Pop <sebastian.pop@amd.com> | |
5616 | ||
5617 | * graphite.c (build_loop_iteration_domains): Remove ping pong. | |
5618 | (build_scop_iteration_domain): Same. | |
5619 | ||
5620 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
5621 | ||
5622 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
5623 | ping pong. | |
5624 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
5625 | scan_tree_for_params_int): New. | |
5626 | * graphite-ppl.c (oppose_constraint): New. | |
5627 | (insert_constraint_into_matrix): Implement missing cases. | |
5628 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
5629 | ||
5630 | 2009-02-13 Sebastian Pop <sebastian.pop@amd.com> | |
5631 | ||
5632 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
5633 | use ppl_move_dimension. | |
5634 | ||
5635 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
5636 | ||
5637 | * graphite-data-ref.c: Domains are now ppl_Polyhedra_t. | |
5638 | * graphite.c: Same. | |
5639 | * graphite.h: Same. | |
5640 | * graphite-ppl.c: Same. | |
5641 | * graphite-ppl.h: Same. | |
5642 | ||
5643 | 2009-02-12 Sebastian Pop <sebastian.pop@amd.com> | |
5644 | ||
5645 | Revert last 3 commits. | |
5646 | ||
5647 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5648 | ||
5649 | * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove | |
5650 | ping pong. | |
5651 | (add_value_to_dim, scan_tree_for_params_right_scev, | |
5652 | scan_tree_for_params_int): New. | |
5653 | * graphite-ppl.c (oppose_constraint): New. | |
5654 | (insert_constraint_into_matrix): Implement missing cases. | |
5655 | * graphite-ppl.h (insert_constraint_into_matrix): Declared. | |
5656 | ||
5657 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5658 | ||
5659 | * graphite.c (graphite_trans_bb_move_loop): Remove unused variables. | |
5660 | ||
5661 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5662 | Tobias Grosser <grosser@fim.uni-passau.de> | |
5663 | ||
5664 | * graphite.c (graphite_trans_bb_move_loop): Remove ping pong, | |
5665 | use ppl_move_dimension. | |
5666 | * graphite-ppl.c (ppl_move_dimension): New. | |
5667 | * graphite-ppl.h (ppl_move_dimension): Declared. | |
5668 | ||
5669 | 2009-02-10 Sebastian Pop <sebastian.pop@amd.com> | |
5670 | ||
5671 | * graphite.c: Do not include cloog/cloog.h. | |
5672 | (print_graphite_bb): Remove ping pong, call PPL print function. | |
5673 | ||
5674 | 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
5675 | ||
5676 | * Makefile.in (OBJS-common): Add graphite-ppl.o. | |
5677 | (graphite.o): Add dependence on graphite-ppl.h. | |
5678 | (graphite-ppl.o): New. | |
5679 | (graphite-data-ref.c): Ping pong between PPL data structures | |
5680 | and matrices. | |
5681 | * graphite-ppl.c: New. | |
5682 | * graphite-ppl.h: New. | |
5683 | * graphite.c: Include graphite-ppl.h. | |
5684 | (print_graphite_bb, add_conditions_to_domain, build_cloog_prog, | |
5685 | graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine): | |
5686 | Ping pong between PPL data structures and matrices. | |
5687 | (new_graphite_bb): Create a PPL constraint system. | |
5688 | Call ppl_delete_Constraint_System instead of cloog_matrix_free. | |
5689 | (build_loop_iteration_domains): Use PPL functions. | |
5690 | * graphite.h: Include graphite-ppl.h. Fix comments. | |
5691 | (graphite_bb): Use a ppl_Constraint_System_t instead of | |
5692 | CloogMatrix for representing the domain. | |
5693 | (scop): Remove static_schedule. | |
5694 | (gbb_nb_loops): Ping pong between PPL data structures and matrices. | |
5695 | ||
5696 | 2009-02-06 Sebastian Pop <sebastian.pop@amd.com> | |
5697 | ||
5698 | * graphite.c: Fix some comments. | |
5699 | ||
5700 | 2009-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
5701 | ||
5702 | PR middle-end/38953 | |
5703 | * graphite.c (if_region_set_false_region): After moving a region | |
5704 | in the false branch of a condition, remove the empty dummy | |
5705 | basic block. | |
5706 | (gloog): Remove wrong fix for PR38953. | |
5707 | ||
5708 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
5709 | ||
5710 | * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use, | |
5711 | sese_build_livein_liveouts_bb, sese_build_livein_liveouts, | |
5712 | register_bb_in_sese, new_sese, free_sese): Moved. | |
5713 | (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains, | |
5714 | outermost_loop_in_scop, build_scop_iteration_domain, | |
5715 | expand_scalar_variables_ssa_name, get_vdef_before_scop, | |
5716 | limit_scops): Use bb_in_sese_p instead of bb_in_scop_p. | |
5717 | Use loop_in_sese_p instead of loop_in_scop_p. | |
5718 | (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B. | |
5719 | (free_scop): Do not free SCOP_BBS_B. | |
5720 | (nb_loops_around_loop_in_scop, nb_loops_around_gb, | |
5721 | ref_nb_loops): Moved here... | |
5722 | * graphite.h (ref_nb_loops): ... from here. | |
5723 | (struct scop): Remove bbs_b bitmap. | |
5724 | (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed. | |
6c9df8cb | 5725 | * gcc.dg/graphite/scop-19.c: New |
c6bb733d | 5726 | |
5727 | 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de> | |
5728 | ||
5729 | * graphite.c (scopdet_basic_block_info): Fix bug in scop | |
5730 | detection. | |
5731 | ||
5732 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
5733 | ||
5734 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
5735 | eq_loop_to_cloog_loop): Remove. | |
5736 | (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP. | |
5737 | * graphite.h (struct scop): Remove loop2cloog_loop. | |
5738 | (loop_domain_dim, loop_iteration_vector_dim): Remove. | |
5739 | ||
5740 | 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
5741 | ||
5742 | * opts.c (decode_options): Only add graphite options to O2 | |
5743 | if we compile with graphite enabled. | |
5744 | ||
5745 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
5746 | ||
5747 | * Merge from mainline (r143163:143684). | |
5748 | ||
5749 | 2009-01-26 Sebastian Pop <sebastian.pop@amd.com> | |
5750 | ||
5751 | * graphite.c (debug_value): Removed. | |
5752 | * graphite.h (debug_value): Removed. | |
5753 | ||
5754 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
5755 | ||
5756 | * passes.c (init_optimization_passes): Do not call pass_copy_prop | |
5757 | after graphite: pass_copy_prop does not maintain a proper loop closed | |
5758 | SSA form. pass_copy_prop should be fixed. | |
5759 | ||
5760 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
5761 | ||
5762 | * graphite.c (scop_adjust_phis_for_liveouts): Fix warning. | |
5763 | ||
5764 | 2009-01-23 Sebastian Pop <sebastian.pop@amd.com> | |
5765 | ||
5766 | * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa. | |
5767 | (gloog): Split the exit of the scop when the scop exit is a loop exit. | |
5768 | (graphite_transform_loops): Only call cleanup_tree_cfg if gloog | |
5769 | changed the CFG. | |
5770 | ||
5771 | 2009-01-20 Sebastian Pop <sebastian.pop@amd.com> | |
5772 | ||
5773 | * graphite.c (gloog): Return true when code gen succeeded. | |
5774 | (graphite_transform_loops): Do not call cleanup_tree_cfg if | |
5775 | the code of the function did not changed. After cleanup_tree_cfg | |
5776 | call rewrite_into_loop_closed_ssa to maintain the loop closed ssa | |
5777 | form. | |
5778 | ||
5779 | 2009-01-19 Sebastian Pop <sebastian.pop@amd.com> | |
5780 | ||
5781 | * graphite.c (stmt_simple_for_scop_p): Also handle cases when | |
5782 | gimple_call_lhs is NULL. | |
5783 | ||
5784 | 2009-01-16 Sebastian Pop <sebastian.pop@amd.com> | |
5785 | Tobias Grosser <tobi.grosser@amd.com> | |
5786 | ||
5787 | * graphite.c (graphite_trans_scop_block): Do not block single | |
5788 | nested loops. | |
5789 | ||
5790 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
5791 | Tobias Grosser <tobi.grosser@amd.com> | |
5792 | ||
5793 | * graphite.c (build_scop_canonical_schedules): Start schedules at | |
5794 | zero. | |
5795 | ||
5796 | 2009-01-15 Sebastian Pop <sebastian.pop@amd.com> | |
5797 | Tobias Grosser <tobi.grosser@amd.com> | |
5798 | ||
5799 | * graphite.c (compare_prefix_loops): New. | |
5800 | (build_scop_canonical_schedules): Rewritten. | |
5801 | (graphite_transform_loops): Move build_scop_canonical_schedules | |
5802 | after build_scop_iteration_domain. | |
5803 | ||
5804 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
5805 | Tobias Grosser <tobi.grosser@amd.com> | |
5806 | ||
5807 | * graphite.c (add_conditions_to_domain): Add the loops to | |
5808 | the dimension of the iteration domain. Do copy the domain | |
5809 | only when it exists. | |
5810 | (build_scop_conditions_1): Do not call add_conditions_to_domain. | |
5811 | (add_conditions_to_constraints): New. | |
5812 | (can_generate_code_stmt, can_generate_code): Removed. | |
5813 | (gloog): Do not call can_generate_code. | |
5814 | (graphite_transform_loops): Call add_conditions_to_constraints | |
5815 | after building the iteration domain. | |
5816 | ||
5817 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
5818 | Tobias Grosser <tobi.grosser@amd.com> | |
5819 | Jan Sjodin <jan.sjodin@amd.com> | |
5820 | ||
5821 | * graphite.c (scan_tree_for_params): On substractions negate | |
5822 | all the coefficients of the term. | |
5823 | (clast_to_gcc_expression_red): New. Handle reduction expressions | |
5824 | of more than two operands. | |
5825 | (clast_to_gcc_expression): Call clast_to_gcc_expression_red. | |
5826 | (get_vdef_before_scop): Handle also the case of default definitions. | |
5827 | ||
5828 | 2009-01-14 Sebastian Pop <sebastian.pop@amd.com> | |
5829 | ||
5830 | PR middle-end/38431 | |
5831 | * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New. | |
5832 | (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi. | |
5833 | (gloog): Do not call cleanup_tree_cfg. | |
5834 | (graphite_transform_loops): Call cleanup_tree_cfg after all | |
5835 | scops have been code generated. | |
5836 | ||
5837 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
5838 | ||
5839 | * passes.c (init_optimization_passes): Schedule after | |
5840 | graphite transforms pass_copy_prop, pass_dce_loop and pass_lim. | |
5841 | ||
5842 | 2009-01-13 Sebastian Pop <sebastian.pop@amd.com> | |
5843 | ||
5844 | * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p. | |
5845 | Fix comment. | |
5846 | (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment. | |
5847 | Set the type of an expression to the type of its assign statement. | |
5848 | (expand_scalar_variables_expr): Do not pass loop_p. | |
5849 | Fix comment. Stop recursion on tcc_constant or tcc_declaration. | |
5850 | (copy_bb_and_scalar_dependences): Do not pass loop_p. | |
5851 | (translate_clast): Update call to copy_bb_and_scalar_dependences. | |
5852 | ||
5853 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
5854 | ||
5855 | * graphite.c (expand_scalar_variables_ssa_name): Set the type of | |
5856 | an expression to the gimple_expr_type of its assign statement. | |
5857 | (expand_scalar_variables_expr): Stop recursion on tcc_constant | |
5858 | or tcc_declaration. | |
5859 | ||
5860 | 2009-01-11 Sebastian Pop <sebastian.pop@amd.com> | |
5861 | ||
5862 | PR tree-optimization/38786 | |
6c9df8cb | 5863 | * gcc.dg/graphite/pr38786.c: New. |
c6bb733d | 5864 | * graphite.c (expand_scalar_variables_ssa_name): New, outlined from |
5865 | the SSA_NAME case of expand_scalar_variables_expr. | |
5866 | (expand_scalar_variables_expr): Also gather the scalar computation | |
5867 | used to index the memory access. | |
5868 | (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr | |
5869 | the gimple_stmt_iterator where it inserts new code. | |
5870 | ||
5871 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
5872 | ||
6c9df8cb | 5873 | * gcc.dg/graphite/block-3.c: Fix compile error on 32bit. |
c6bb733d | 5874 | |
5875 | 2009-01-10 Sebastian Pop <sebastian.pop@amd.com> | |
5876 | ||
5877 | * opts.c (decode_options): Enable flag_graphite_identity and | |
5878 | flag_loop_block in -O2 and above. | |
5879 | ||
5880 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
5881 | ||
5882 | * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class: | |
5883 | Fix merge problem: replace with the file from trunk. | |
5884 | ||
5885 | 2009-01-08 Sebastian Pop <sebastian.pop@amd.com> | |
5886 | ||
5887 | * Merge from mainline (r141727:143163). | |
5888 | ||
5889 | 2009-01-07 Sebastian Pop <sebastian.pop@amd.com> | |
5890 | Jan Sjodin <jan.sjodin@amd.com> | |
5891 | ||
5892 | PR tree-optimization/38559 | |
6c9df8cb | 5893 | * gcc.dg/graphite/pr38559.c: New. |
c6bb733d | 5894 | |
5895 | * graphite.c (debug_value, copy_constraint, | |
5896 | swap_constraint_variables, scale_constraint_variable, ): New. | |
5897 | (get_lower_bound, get_upper_bound): Removed. | |
5898 | (graphite_trans_bb_strip_mine): Clean up this code that works | |
5899 | only for constant number of iterations. Fully copy upper and | |
5900 | lower bound constraints, not only the constant part of them. | |
5901 | * graphite.h (debug_value): Declared. | |
5902 | ||
5903 | 2009-01-06 Jan Sjodin <jan.sjodin@amd.com> | |
5904 | ||
5905 | PR tree-optimization/38492 | |
5906 | PR tree-optimization/38498 | |
5907 | * tree-check.c (operator_is_linear, scev_is_linear_expression): New. | |
5908 | * tree-chrec.h (scev_is_linear_expression): Declared. | |
5909 | * graphite.c (graphite_cannot_represent_loop_niter): New. | |
5910 | (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter. | |
5911 | (graphite_loop_normal_form): Use gcc_assert. | |
5912 | (scan_tree_for_params): Use CASE_CONVERT. | |
5913 | (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New. | |
5914 | (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes. | |
5915 | Use gcc_assert. Discard scops that contain unhandled cases. | |
5916 | (build_scop_conditions): Return a boolean status for unhandled cases. | |
5917 | (strip_mine_profitable_p): Print the loop number, not its depth. | |
5918 | (is_interchange_valid): Pass the depth of the loop nest, don't | |
5919 | recompute it wrongly. | |
5920 | (graphite_trans_bb_block): Same. | |
5921 | (graphite_trans_bb_block): Print tentative of loop blocking. | |
5922 | (graphite_trans_scop_block): Do not print that the loop has been | |
5923 | blocked. | |
5924 | (graphite_transform_loops): Do not handle scops that contain condition | |
5925 | scalar phi nodes. | |
5926 | ||
6c9df8cb | 5927 | * gcc.dg/graphite/pr38500.c: Fixed warning as committed |
c6bb733d | 5928 | in trunk. |
6c9df8cb | 5929 | * gcc.dg/graphite/block-0.c: Update test. |
5930 | * gcc.dg/graphite/block-1.c: Same. | |
5931 | * gcc.dg/graphite/block-2.c: Remove xfail and test for | |
c6bb733d | 5932 | blocking. |
6c9df8cb | 5933 | * gcc.dg/graphite/block-4.c: Remove test for strip mine. |
5934 | * gcc.dg/graphite/block-3.c: New. | |
5935 | * gcc.dg/graphite/pr38498.c: New. | |
c6bb733d | 5936 | |
5937 | 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com> | |
5938 | ||
5939 | PR tree-optimization/38510 | |
5940 | * gcc.dg/graphite/pr38510.c: New. | |
5941 | * graphite.c (recompute_all_dominators): Call mark_irreducible_loops. | |
5942 | (translate_clast): Call recompute_all_dominators before | |
5943 | graphite_verify. | |
5944 | (gloog): Call recompute_all_dominators before graphite_verify. | |
5945 | ||
5946 | 2008-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
5947 | ||
5948 | PR tree-optimization/38492 | |
5949 | * graphite.c (rename_map_elt, debug_rename_elt, | |
5950 | debug_rename_map_1, debug_rename_map, new_rename_map_elt, | |
5951 | rename_map_elt_info, eq_rename_map_elts, | |
5952 | get_new_name_from_old_name, bb_in_sese_p): Moved around. | |
5953 | (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use. | |
5954 | (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb. | |
5955 | (sese_build_livein_liveouts): New. | |
5956 | (new_sese, free_sese): New. | |
5957 | (new_scop): Call new_sese. | |
5958 | (free_scop): Call free_sese. | |
5959 | (rename_variables_from_edge, rename_phis_end_scop): Removed. | |
5960 | (register_old_new_names): Renamed register_old_and_new_names. | |
5961 | (register_scop_liveout_renames, add_loop_exit_phis, | |
5962 | insert_loop_close_phis, struct igp, | |
5963 | default_liveout_before_guard, add_guard_exit_phis, | |
5964 | insert_guard_phis, copy_renames): New. | |
5965 | (translate_clast): Call insert_loop_close_phis and insert_guard_phis. | |
5966 | (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge. | |
5967 | (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts. | |
5968 | (scop_adjust_phis_for_liveouts): New. | |
5969 | (gloog): Call scop_adjust_phis_for_liveouts. | |
5970 | ||
5971 | * graphite.h (struct sese): Documented. Added fields liveout, | |
5972 | num_ver and livein. | |
5973 | (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New. | |
5974 | (new_sese, free_sese, sese_build_livein_liveouts): Declared. | |
5975 | (struct scop): Added field liveout_renames. | |
5976 | (SCOP_LIVEOUT_RENAMES): New. | |
5977 | ||
5978 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
5979 | ||
5980 | PR tree-optimization/38409 | |
5981 | * gcc.dg/graphite/pr38409.c: New. | |
5982 | * graphite.c (nb_reductions_in_loop): Use simple_iv. | |
5983 | ||
5984 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
5985 | ||
5986 | * graphite.c (gcc_type_for_cloog_iv): By default return | |
5987 | integer_type_node. | |
5988 | (graphite_create_new_loop): Don't fold_convert the already | |
5989 | fold_convert-ed expression. | |
5990 | ||
5991 | 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com> | |
5992 | ||
5993 | PR tree-optimization/38446 | |
5994 | * gcc.dg/graphite/pr38446.c: New. | |
5995 | * graphite.c (register_bb_in_sese): New. | |
5996 | (bb_in_sese_p): Check if bb belongs to sese region by explicitly | |
5997 | looking at the bbs in the region. | |
5998 | * graphite.h (sese): Add region_basic_blocks pointer set to | |
5999 | structure and initialize at the time of defining new scop. | |
6000 | ||
6001 | 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6002 | ||
6003 | * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE. | |
6004 | (find_params_in_bb): Do not free data refs. | |
6005 | (free_graphite_bb): Add FIXME on disabled free_data_refs. | |
6006 | ||
6007 | 2008-12-11 Sebastian Pop <sebastian.pop@amd.com> | |
6008 | ||
6c9df8cb | 6009 | * gcc.dg/graphite/scop-16.c: Test only scop specific info. |
6010 | * gcc.dg/graphite/scop-17.c: Same. | |
6011 | * gcc.dg/graphite/block-5.c: New. | |
6012 | * gcc.dg/graphite/block-6.c: New. | |
6013 | * gcc.dg/graphite/pr37485.c: Clean dump file after. | |
6014 | * gcc.dg/graphite/pr37684.c: Same. | |
6015 | * gcc.dg/graphite/block-2.c: Same. | |
c6bb733d | 6016 | |
6017 | * graphite.c (struct ivtype_map_elt): New. | |
6018 | (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map, | |
6019 | new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts, | |
6020 | gcc_type_for_cloog_iv): New. | |
6021 | (loop_iv_stack_patch_for_consts): Use the type of the induction | |
6022 | variable from the original loop, except for the automatically | |
6023 | generated loops, i.e., in the case of a strip-mined loop, in | |
6024 | which case there is no original loop: in that case just use | |
6025 | integer_type_node. | |
6026 | (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES. | |
6027 | (free_graphite_bb): Free GBB_CLOOG_IV_TYPES. | |
6028 | (clast_name_to_gcc): Accept params to be NULL. | |
6029 | (clast_to_gcc_expression): Take an extra parameter for the type. | |
6030 | Convert to that type all the expressions built by this function. | |
6031 | (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New. | |
6032 | (graphite_translate_clast_equation): Compute the type of the | |
6033 | clast_equation before translating its LHS and RHS. | |
6034 | (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New. | |
6035 | (graphite_create_new_loop): Compute the type of the induction | |
6036 | variable before translating the lower and upper bounds and before | |
6037 | creating the induction variable. | |
6038 | (rename_variables_from_edge, rename_phis_end_scop): New. | |
6039 | (copy_bb_and_scalar_dependences): Call rename_phis_end_scop. | |
6040 | (sese_add_exit_phis_edge): Do not use integer_zero_node. | |
6041 | (find_cloog_iv_in_expr, compute_cloog_iv_types_1, | |
6042 | compute_cloog_iv_types): New. | |
6043 | (gloog): Call compute_cloog_iv_types before starting the | |
6044 | translation of the clast. | |
6045 | ||
6046 | * graphite.h (struct graphite_bb): New field cloog_iv_types. | |
6047 | (GBB_CLOOG_IV_TYPES): New. | |
6048 | (debug_ivtype_map): Declared. | |
6049 | (oldiv_for_loop): New. | |
6050 | ||
6051 | 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
6052 | ||
6053 | PR middle-end/38459 | |
6054 | * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS. | |
6055 | (param_index): Assert if parameter is not know after parameter | |
6056 | detection. | |
6057 | (find_params_in_bb): Detect params directly in GBB_CONDITIONS. | |
6058 | (find_scop_parameters): Mark, that we have finished parameter | |
6059 | detection. | |
6060 | (graphite_transform_loops): Move condition detection before parameter | |
6061 | detection. | |
6062 | * graphite.h (struct scop): Add SCOP_ADD_PARAMS. | |
6c9df8cb | 6063 | * gfortran.dg/graphite/pr38459.f90: New. |
c6bb733d | 6064 | |
6065 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
6066 | ||
6067 | * graphite.c (graphite_transform_loops): Always call find_transform () | |
6068 | in ENABLE_CHECKING. So we test these code paths, even if we do not | |
6069 | generate code. | |
6070 | ||
6071 | 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
6072 | ||
6073 | * graphite.c (print_graphite_bb): Fix printing to file != dump_file. | |
6074 | (print_scop): Ditto. | |
6075 | ||
6076 | 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
6077 | ||
6078 | PR middle-end/38084 | |
6c9df8cb | 6079 | Fix gfortran.dg/graphite/id-3.f90. |
c6bb733d | 6080 | * graphite.c (scopdet_basic_block_info): Fix bug that found some |
6081 | regions more than once. | |
6082 | ||
6083 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
6084 | ||
6c9df8cb | 6085 | Fix gfortran.dg/graphite/id-4.f90. |
c6bb733d | 6086 | * graphite.c (scan_tree_for_params): Do not compute the multiplicand |
6087 | when not needed. | |
6088 | ||
6089 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
6090 | ||
6c9df8cb | 6091 | Fix gfortran.dg/graphite/id-1.f90. |
c6bb733d | 6092 | * graphite.c (gmp_cst_to_tree): Pass the type in parameter. |
6093 | (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree. | |
6094 | (max_precision_type): New. | |
6095 | (value_clast): Removed. | |
6096 | (clast_to_gcc_expression): Be more careful to types of expressions. | |
6097 | Use max_precision_type and update use of gmp_cst_to_tree. | |
6098 | (graphite_translate_clast_equation): Use max_precision_type. | |
6099 | (graphite_create_guard_cond_expr): Do not use integer_type_node, | |
6100 | use the type of the condition. | |
6101 | (graphite_create_new_loop): Do not use integer_type_node, use the | |
6102 | max_precision_type of lb and ub. | |
6103 | ||
6104 | 2008-12-03 Sebastian Pop <sebastian.pop@amd.com> | |
6105 | ||
6106 | * graphite.c (build_scops_1): Initialize open_scop.exit | |
6107 | and sinfo.last. | |
6108 | ||
6109 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
6110 | ||
6c9df8cb | 6111 | * gcc.dg/graphite/pr38084.c: New. |
6112 | * gfortran.dg/graphite/id-1.f90: New. | |
6113 | * gfortran.dg/graphite/id-2.f90: New. | |
6114 | * gfortran.dg/graphite/id-3.f90: New. | |
6115 | * gfortran.dg/graphite/id-4.f90: New. | |
6116 | * gfortran.dg/graphite/pr37857.f90: New. | |
c6bb733d | 6117 | |
6118 | 2008-12-02 Sebastian Pop <sebastian.pop@amd.com> | |
6119 | Jan Sjodin <jan.sjodin@amd.com> | |
6120 | Harsha Jagasia <harsha.jagasia@amd.com> | |
6121 | ||
6122 | PR middle-end/37852 | |
6123 | PR middle-end/37883 | |
6124 | PR middle-end/37928 | |
6125 | PR middle-end/37980 | |
6126 | PR middle-end/38038 | |
6127 | PR middle-end/38039 | |
6128 | PR middle-end/38073 | |
6129 | PR middle-end/38083 | |
6130 | PR middle-end/38125 | |
6131 | ||
6c9df8cb | 6132 | * gcc.dg/graphite/pr38073.c: New. |
6133 | * gcc.dg/graphite/pr37928.c: New. | |
6134 | * gcc.dg/graphite/pr37883.c: New. | |
6135 | * gcc.dg/graphite/pr38125.c: New. | |
6136 | * gfortran.dg/graphite/pr38083.f90: New. | |
6137 | * gfortran.dg/graphite/pr37852.f90: New. | |
6138 | * gfortran.dg/graphite/pr37980.f90: New. | |
c6bb733d | 6139 | |
6c9df8cb | 6140 | * gcc.dg/graphite/scop-18.c: Remove reduction, test for |
c6bb733d | 6141 | the number of detected scops. Copy exact same test for loop |
6142 | blocking... | |
6c9df8cb | 6143 | * gcc.dg/graphite/block-1.c: Fix the number of expected |
c6bb733d | 6144 | loops to be blocked as reductions are not handled. |
6c9df8cb | 6145 | * gcc.dg/graphite/block-4.c: ...here. New. |
c6bb733d | 6146 | |
6147 | * tree-phinodes.c (remove_phi_nodes): New, extracted from... | |
6148 | * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block): | |
6149 | ...here. | |
6150 | * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared. | |
6151 | * Makefile.in (graphite.o): Depend on value-prof.h. | |
6152 | (graphite.o-warn): Removed -Wno-error. | |
6153 | * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list | |
6154 | to be a NULL pointer. Call update_stmt. Return the newly created | |
6155 | cannonical induction variable. | |
6156 | ||
6157 | * graphite.h (debug_rename_map): Declared. Fix some comments. | |
6158 | ||
6159 | * graphite.c: Reimplement the code generation from graphite to gimple. | |
6160 | Include value-prof.h. | |
6161 | (loop_iv_stack_get_iv): Do not return NULL for constant substitutions. | |
6162 | (get_old_iv_from_ssa_name): Removed. | |
6163 | (graphite_stmt_p): New. | |
6164 | (new_graphite_bb): Test for useful statements before building a | |
6165 | graphite statement for the basic block. | |
6166 | (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug | |
6167 | in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without | |
6168 | reason. | |
6169 | (recompute_all_dominators, graphite_verify, | |
6170 | nb_reductions_in_loop, graphite_loop_normal_form): New. | |
6171 | (scop_record_loop): Call graphite_loop_normal_form. | |
6172 | (build_scop_loop_nests): Iterate over all the blocks of the | |
6173 | function instead of relying on the incomplete information from | |
6174 | SCOP_BBS. Return the success of the operation. | |
6175 | (find_params_in_bb): Use the data from GBB_DATA_REFS. | |
6176 | (add_bb_domains): Removed. | |
6177 | (build_loop_iteration_domains): Don't call add_bb_domains. | |
6178 | Add the iteration domain only to the basic blocks that have been | |
6179 | translated to graphite. | |
6180 | (build_scop_conditions_1): Add constraints only if the basic | |
6181 | block have been translated to graphite. | |
6182 | (build_scop_data_accesses): Completely disabled until data | |
6183 | dependence is correctly implemented. | |
6184 | (debug_rename_elt, debug_rename_map_1, debug_rename_map): New. | |
6185 | (remove_all_edges_1, remove_all_edges): Removed. | |
6186 | (get_new_name_from_old_name): New. | |
6187 | (graphite_rename_variables_in_stmt): Renamed | |
6188 | rename_variables_in_stmt. Call get_new_name_from_old_name. | |
6189 | Use replace_exp and update_stmt. | |
6190 | (is_old_iv): Renamed is_iv. | |
6191 | (expand_scalar_variables_stmt): Extra parameter for renaming map. | |
6192 | Use replace_exp and update_stmt. | |
6193 | (expand_scalar_variables_expr): Same. Use the map to get the | |
6194 | new names for the renaming of induction variables and for the | |
6195 | renaming of variables after a basic block has been copied. | |
6196 | (expand_scalar_variables): Same. | |
6197 | (graphite_rename_variables): Renamed rename_variables. | |
6198 | (move_phi_nodes): Removed. | |
6199 | (get_false_edge_from_guard_bb): New. | |
6200 | (build_iv_mapping): Do not insert the induction variable of a | |
6201 | loop in the renaming iv map if the basic block does not belong | |
6202 | to that loop. | |
6203 | (register_old_new_names, graphite_copy_stmts_from_block, | |
6204 | copy_bb_and_scalar_dependences): New. | |
6205 | (translate_clast): Heavily reimplemented: copy basic blocks, | |
6206 | do not move them. Finally, in call cleanup_tree_cfg in gloog. | |
6207 | At each translation step call graphite_verify ensuring the | |
6208 | consistency of the SSA, loops and dominators information. | |
6209 | (collect_virtual_phis, find_vdef_for_var_in_bb, | |
6210 | find_vdef_for_var_1, find_vdef_for_var, | |
6211 | patch_phis_for_virtual_defs): Removed huge hack. | |
6212 | (mark_old_loops, remove_dead_loops, skip_phi_defs, | |
6213 | collect_scop_exit_phi_args, patch_scop_exit_phi_args, | |
6214 | gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed. | |
6215 | (remove_sese_region, ifsese, if_region_entry, if_region_exit, | |
6216 | if_region_get_condition_block, if_region_set_false_region, | |
6217 | create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p, | |
6218 | sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb, | |
6219 | sese_add_exit_phis_edge, sese_add_exit_phis_var, | |
6220 | rewrite_into_sese_closed_ssa): New. | |
6221 | (gloog): Remove dead code. Early return if code cannot be | |
6222 | generated. Call cleanup_tree_cfg once the scop has been code | |
6223 | generated. | |
6224 | (graphite_trans_scop_block, graphite_trans_loop_block): Do not | |
6225 | block loops with less than two loops. | |
6226 | (graphite_apply_transformations): Remove the call to | |
6227 | scop_remove_ignoreable_gbbs. | |
6228 | (limit_scops): When build_scop_loop_nests fails, continue on | |
6229 | the next scop. Fix open_scop.entry. | |
6230 | (graphite_transform_loops): Call recompute_all_dominators: force the | |
6231 | recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS. | |
6232 | Call initialize_original_copy_tables and free_original_copy_tables | |
6233 | to be able to copy basic blocks during code generation. | |
6234 | When build_scop_loop_nests fails, continue on next scop. | |
6235 | (value_clast): New union. | |
6236 | (clast_to_gcc_expression): Fix type cast warning. | |
6237 | ||
6238 | 2008-11-09 Sebastian Pop <sebastian.pop@amd.com> | |
6239 | ||
6240 | * Merge from mainline (r140838:141727). | |
6241 | ||
6242 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
6243 | ||
6244 | PR middle-end/37833 | |
6245 | ||
6246 | * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR. | |
6247 | ||
6248 | 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
6249 | ||
6250 | PR middle-end/37943 | |
6251 | ||
6252 | * graphite.c (scopdet_basic_block_info): Fix loops with multiple | |
6253 | exits and conditions. | |
6c9df8cb | 6254 | * gcc.dg/graphite/pr37943.c: New. |
c6bb733d | 6255 | |
6256 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
6257 | ||
6258 | PR middle-end/37886 | |
6259 | * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit. | |
6260 | ||
6261 | 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de> | |
6262 | ||
6263 | * doc/invoke.texi: Fix spaces. | |
6264 | ||
6265 | 2008-10-22 Sebastian Pop <sebastian.pop@amd.com> | |
6266 | ||
6267 | PR tree-optimization/37891 | |
6268 | Reverted last commit. | |
6269 | * graphite.c (create_single_entry_edge): Set | |
6270 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
6271 | ||
6272 | 2008-10-21 Sebastian Pop <sebastian.pop@amd.com> | |
6273 | Mitul Thakkar <mitul.thakkar@amd.com> | |
6274 | ||
6275 | * graphite.c (create_single_entry_edge): Set | |
6276 | EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP. | |
6277 | ||
6278 | 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
6279 | ||
6280 | * doc/invoke.texi: Add -fgraphite-identity. | |
6281 | * graphite.c (graphite_apply_transformations): Check for | |
6282 | -fgraphite-identity. | |
6283 | * toplev.c (process_options): Add flag_graphite_identity. | |
6284 | * tree-ssa-loop.c: Add flag_graphite_identity. | |
6285 | ||
6286 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
6287 | ||
6288 | Undo changes from 2008-10-02: | |
6289 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
6290 | operand type when copying the operand to a variable of different type. | |
6291 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
6292 | with the IV name after increment. | |
6293 | ||
6294 | 2008-10-14 Sebastian Pop <sebastian.pop@amd.com> | |
6295 | Harsha Jagasia <harsha.jagasia@amd.com> | |
6296 | ||
6297 | PR tree-optimization/37828 | |
6c9df8cb | 6298 | * gcc.dg/graphite/pr37828.c: New. |
c6bb733d | 6299 | * graphite.c (graphite_trans_loop_block): Do not loop block |
6300 | single nested loops. | |
6301 | ||
6302 | 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com> | |
6303 | Sebastian Pop <sebastian.pop@amd.com> | |
6304 | ||
6305 | * graphite.c (struct rename_map_elt, new_rename_map_elt, | |
6306 | rename_map_elt_info, eq_rename_map_elts): New. | |
6307 | (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt. | |
6308 | (expand_scalar_variables_expr): Change parameters. | |
6309 | (expand_scalar_variables_stmt): Same. | |
6310 | (expand_scalar_variables): Same. | |
6311 | (graphite_rename_ivs): Rename graphite_rename_variables. | |
6312 | (build_iv_mapping): New. | |
6313 | (translate_clast): Call build_iv_mapping. | |
6314 | * graphite.h (gbb_p): New name. | |
6315 | ||
6316 | 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com> | |
6317 | ||
6318 | PR tree-optimization/37684 | |
6319 | * gcc.dg/graphite/pr37684.c: New. | |
6320 | * graphite.c (exclude_component_ref): New. | |
6321 | (is_simple_operand): Call exclude_component_ref. | |
6322 | ||
6323 | 2008-10-02 Jan Sjodin <jan.sjodin@amd.com> | |
6324 | Harsha Jagasia <harsha.jagasia@amd.com> | |
6325 | ||
6326 | PR tree-optimization/37485 | |
6327 | * gcc.dg/graphite/block-2.c: New | |
6328 | * graphite.c (gmp_cst_to_tree): Moved. | |
6329 | (iv_stack_entry_is_constant): New. | |
6330 | (iv_stack_entry_is_iv): New. | |
6331 | (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv. | |
6332 | (loop_iv_stack_insert_constant): New. | |
6333 | (loop_iv_stack_pop): Use new datatpype. | |
6334 | (loop_iv_stack_get_iv): Same. | |
6335 | (loop_iv_stack_get_iv_from_name): Same. | |
6336 | (loop_iv_stack_debug): Renamed to debug_loop_iv_stack. | |
6337 | (loop_iv_stack_patch_for_consts): New. | |
6338 | (loop_iv_stack_remove_constants): New. | |
6339 | (graphite_create_new_loop): Use loop_iv_stack_push_iv. | |
6340 | (translate_clast): Call loop_iv_stack_patch_for_consts and | |
6341 | loop_iv_stack_remove_constants. | |
6342 | (gloog): Use new datatype. Redirect construction edge to end | |
6343 | block to avoid accidental deletion. | |
6344 | * graphite.h (enum iv_stack_entry_kind): New. Tag for data in | |
6345 | iv stack entry. | |
6346 | (union iv_stack_entry_data): New. Data in iv stack entry. | |
6347 | (struct iv_stack_entry): New. Datatype for iv stack entries. | |
6348 | ||
6349 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6350 | ||
6351 | * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert | |
6352 | operand type when copying the operand to a variable of different type. | |
6353 | ||
6354 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6355 | ||
6356 | * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition | |
6357 | with the IV name after increment. | |
6358 | ||
6359 | 2008-10-02 Sebastian Pop <sebastian.pop@amd.com> | |
6360 | ||
6361 | * Merge from mainline (r140164:140838). | |
6362 | ||
6363 | 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
6364 | ||
6365 | * graphite-data-ref.c: New. | |
6366 | * graphite.c (print_scop): Also dump the dependence graph. | |
6367 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved... | |
6368 | (new_scop): Initialize SCOP_DEP_GRAPH. | |
6369 | (build_scop_dynamic_schedules): New. | |
6370 | (build_access_matrix_with_af): Fixed column numbering. | |
6371 | (graphite_transform_loops): Call build_scop_dynamic_schedules. | |
6372 | * graphite.h: Add ifndef/define guards against multiple inclusion. | |
6373 | (struct scop): Add dep_graph field. | |
6374 | (SCOP_DEP_GRAPH): Defined. | |
6375 | (ref_nb_loops): Fixed and moved to other position. | |
6376 | (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here. | |
6377 | (nb_loops_around_loop_in_scop): New. | |
6378 | (graphite_dump_dependence_graph): Declared. | |
6379 | (graphite_build_rdg_all_levels): Declared. | |
6380 | (graphite_test_dependence): Declared. | |
6381 | * Makefile.in (graphite-data-ref.o): New target. | |
6382 | ||
6383 | 2008-09-09 Sebastian Pop <sebastian.pop@amd.com> | |
6384 | ||
6385 | * Merge from mainline (139870:140164). | |
6386 | ||
6387 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
6388 | ||
6389 | * Merge from mainline (138275:139870). | |
6c9df8cb | 6390 | * gcc.dg/graphite/scop-matmult.c: XFailed as one of |
c6bb733d | 6391 | the commits from trunk broke the niter detection. |
6392 | ||
6393 | 2008-09-01 Sebastian Pop <sebastian.pop@amd.com> | |
6394 | ||
6395 | * graphite.c: Add more documentation. Fix formatting. | |
6396 | (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
6397 | loop_iv_stack_debug): Moved... | |
6398 | (schedule_to_scattering): Move before use. | |
6399 | (dot_all_scops): Include in "#if 0" the code for system | |
6400 | call dotty. | |
6401 | ||
6402 | * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack, | |
6403 | loop_iv_stack_debug): ...here. | |
6404 | ||
6405 | 2008-08-29 Jan Sjodin <jan.sjodin@amd.com> | |
6406 | ||
6407 | * tree-phinodes.c (make_phi_node): Extern. | |
6408 | (add_phi_node_to_bb): New. | |
6409 | (create_phi_node): Call add_phi_node_to_bb. | |
6410 | * tree-ssa-loop-ivopts.c (get_phi_with_result): New. | |
6411 | (remove_statement): Handle case where stored phi was updated | |
6412 | and is no longer the same. | |
6413 | * graphite.c (is_parameter): New. | |
6414 | (is_old_iv): New. | |
6415 | (expand_scalar_variables_expr): New. | |
6416 | (expand_scalar_variables_stmt): New. | |
6417 | (expand_scalar_variables): New. | |
6418 | (move_phi_nodes): Create new phi instead of moving old one. | |
6419 | (translate_clast): Call expand_scalar_variables. | |
6420 | (find_vdef_for_var_in_bb): Also scan regular definitions. | |
6421 | (skip_phi_defs): New. | |
6422 | (collect_scop_exit_phi_args): New. | |
6423 | (patch_scop_exit_phi_args): New. | |
6424 | (gloog): Patch phis after scop. | |
6425 | * tree-flow.h: (add_phi_node_to_bb): Declared. | |
6426 | (make_phi_node): Declared. | |
6427 | ||
6428 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
6429 | ||
6430 | * graphite.c (end_scop): Split the entry of the scop when it | |
6431 | is the header of the loop in which the scop is ending. | |
6432 | (build_scops_1, limit_scops): Update uses of end_scop. | |
6433 | ||
6434 | 2008-08-26 Sebastian Pop <sebastian.pop@amd.com> | |
6435 | ||
6436 | * graphite.c (dot_all_scops_1): Do not fail on uninitialized | |
6437 | SCOP_ENTRY or SCOP_EXIT. | |
6438 | ||
6439 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6440 | ||
6441 | * graphite.c (get_construction_edge): Removed. | |
6442 | (gloog): Construction edge is the scop entry edge. | |
6443 | ||
6444 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6445 | ||
6446 | * graphite.c (can_generate_for_scop): Removed. | |
6447 | (gloog): Do not call it. | |
6448 | ||
6449 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6450 | ||
6451 | * graphite.c (new_scop): Entry of a scop is an edge. | |
6452 | Initialize SESE region. | |
6453 | (free_scop): Free SESE region. | |
6454 | (build_scops_1, scopdet_bb_info): Work on edges, not on bbs. | |
6455 | (split_difficult_bb): New, split from end_scop. | |
6456 | (end_scop): Exit of a scop is an edge. | |
6457 | (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is | |
6458 | not automatically updated and thus is always wrong. | |
6459 | * graphite.h (struct sese): New. | |
6460 | (SESE_ENTRY): New. | |
6461 | (SESE_EXIT): New. | |
6462 | (struct scop): New field for a SESE region. Remove entry, exit. | |
6463 | (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same | |
6464 | semantics as before. Moved comment around. | |
6465 | ||
6466 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6467 | Sebastian Pop <sebastian.pop@amd.com> | |
6468 | ||
6469 | * graphite.c (graphite_transform_loops): Always enable gloog | |
6470 | and find_transform when ENABLE_CHECKING. | |
6471 | ||
6472 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6473 | ||
6474 | * graphite.c (graphite_transform_loops): Move pretty printer | |
6475 | of SCOPs before doing any transform. Remove call to print_scops | |
6476 | and dot_all_scops_1. | |
6477 | ||
6478 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6479 | ||
6480 | * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers. | |
6481 | (print_graphite_bb): Same. | |
6482 | ||
6483 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6484 | ||
6485 | * graphite.c (dot_all_scops_1): Cleanup. | |
6486 | (move_scops): Fix comment. | |
6487 | ||
6488 | 2008-08-25 Sebastian Pop <sebastian.pop@amd.com> | |
6489 | ||
6490 | * graphite.c (build_scop_bbs): Revert commit 139355: | |
6491 | ||
6492 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6493 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6494 | ||
6495 | * graphite.c (build_scop_bbs): Factor up code. | |
6496 | ||
6497 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6498 | ||
6499 | * graphite.c (gloog): Update dominator info. | |
6500 | ||
6501 | 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de> | |
6502 | ||
6503 | * graphite.c (remove_cond_exprs): Do not fail on empty bbs. | |
6504 | ||
6505 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6506 | ||
6507 | * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP | |
6508 | initialization. | |
6509 | (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free. | |
6510 | (translate_clast): Correct formatting. | |
6511 | * graphite.h (struct num_map): Removed. | |
6512 | (struct graphite_bb): Remove num_map field. | |
6513 | (GBB_INDEX_TO_NUM_MAP): Removed. | |
6514 | ||
6515 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6516 | ||
6517 | * graphite.c (build_access_matrix_with_af): Fix comments. | |
6518 | (build_scop_data_accesses): Same. | |
6519 | ||
6520 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6521 | ||
6522 | * graphite.c (build_scop_data_accesses): Don't construct | |
6523 | access matrices. Add a FIXME and an assert condition that | |
6524 | should pass when the access matrices will be needed. | |
6525 | ||
6526 | 2008-08-24 Sebastian Pop <sebastian.pop@amd.com> | |
6527 | ||
6528 | * tree-data-ref.c (stmt_simple_memref_p): Don't call | |
6529 | really_constant_p. | |
6530 | * graphite.c (build_graphite_bb): Renamed new_graphite_bb. | |
6531 | Moved close by free_graphite_bb. | |
6532 | (free_graphite_bb): Call free_data_refs. Reset bb->aux. | |
6533 | (new_scop): Move close by free_scop. | |
6534 | (graphite_transform_loops): Avoid linear scan to reset bb->aux. | |
6535 | ||
6536 | 2008-08-22 Jan Sjodin <jan.sjodin@amd.com> | |
6537 | ||
6538 | * cfgloopmanip.c (create_empty_if_region_on_edge): New. | |
6539 | * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree | |
6540 | instead of recursive call. | |
6541 | (graphite_translate_clast_equation): New. | |
6542 | (graphite_create_guard_cond_expr): New. | |
6543 | (graphite_create_new_guard): New. | |
6544 | (get_stack_index_from_iv): Removed. | |
6545 | (graphite_rename_ivs_stmt): Use gbb_loop_index. | |
6546 | (get_true_edge_from_guard_bb): New. | |
6547 | (translate_clast): Handle stmt_guard in clast. | |
6548 | (get_construction_edge): Allow construction edge detection for | |
6549 | a scope entry with multiple predecessors if one predecessor is | |
6550 | the immediate dominator of scope entry. | |
6551 | (can_generate_code_stmt): Enable code generation for clast_guard. | |
6552 | (gloog): Use correct context loop. Removed check for post dominators. | |
6553 | * cfgloop.h (create_empty_if_region_on_edge): Declared. | |
6554 | ||
6555 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6556 | ||
6557 | * graphite.c (remove_dead_loops): Document better which | |
6558 | loops are removed. | |
6559 | ||
6560 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6561 | ||
6562 | * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS | |
6563 | and PPLINC. | |
6564 | (graphite.o): Also depends on pointer-set.h. | |
6565 | ||
6566 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6567 | ||
6568 | * graphite.c (scop_record_loop): Fix compile warning. | |
6569 | ||
6570 | 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com> | |
6571 | Sebastian Pop <sebastian.pop@amd.com> | |
6572 | ||
6573 | * graphite.c (scop_record_loop): DECL_NAME can be NULL. | |
6574 | ||
6575 | 2008-08-21 Sebastian Pop <sebastian.pop@amd.com> | |
6576 | ||
6577 | * graphite.c (build_graphite_bb): Initialize bb->aux to | |
6578 | point to the graphite_bb_p. | |
6579 | (graphite_bb_from_bb): Renamed gbb_from_bb; returns the | |
6580 | content of bb->aux. | |
6581 | (add_bb_domains): Does not use the scop parameter. | |
6582 | (graphite_transform_loops): Clean bb->aux at the end. | |
6583 | ||
6584 | 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6585 | Sebastian Pop <sebastian.pop@amd.com> | |
6586 | ||
6c9df8cb | 6587 | * lib/target-supports.exp |
c6bb733d | 6588 | (check_effective_target_fgraphite): New. |
6589 | ||
6c9df8cb | 6590 | * gcc.dg/graphite/graphite.exp: Early exit when |
c6bb733d | 6591 | check_effective_target_fgraphite returns false. |
6592 | Set dg-do-what-default to compile. | |
6593 | (scan-graphite-dump-times): Removed. | |
6c9df8cb | 6594 | * gfortran.dg/graphite/graphite.exp: Same. |
c6bb733d | 6595 | |
6c9df8cb | 6596 | * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile". |
c6bb733d | 6597 | Use scan-tree-dump-times instead of scan-graphite-dump-times. |
6c9df8cb | 6598 | * gcc.dg/graphite/scop-1.c: Same. |
6599 | * gcc.dg/graphite/scop-2.c: Same. | |
6600 | * gcc.dg/graphite/scop-3.c: Same. | |
6601 | * gcc.dg/graphite/scop-4.c: Same. | |
6602 | * gcc.dg/graphite/scop-5.c: Same. | |
6603 | * gcc.dg/graphite/scop-6.c: Same. | |
6604 | * gcc.dg/graphite/scop-7.c: Same. | |
6605 | * gcc.dg/graphite/scop-8.c: Same. | |
6606 | * gcc.dg/graphite/scop-9.c: Same. | |
6607 | * gcc.dg/graphite/scop-10.c: Same. | |
6608 | * gcc.dg/graphite/scop-11.c: Same. | |
6609 | * gcc.dg/graphite/scop-12.c: Same. | |
6610 | * gcc.dg/graphite/scop-13.c: Same. | |
6611 | * gcc.dg/graphite/scop-matmult.c: Same. | |
6612 | * gcc.dg/graphite/scop-14.c: Same. | |
6613 | * gcc.dg/graphite/scop-15.c: Same. | |
6614 | * gcc.dg/graphite/block-0.c: Same. | |
6615 | * gcc.dg/graphite/scop-16.c: Same. | |
6616 | * gcc.dg/graphite/block-1.c: Same. | |
6617 | * gcc.dg/graphite/scop-17.c: Same. | |
6618 | * gcc.dg/graphite/scop-18.c: Same. | |
6619 | * gfortran.dg/graphite/block-1.f90: Same. | |
6620 | * gfortran.dg/graphite/scop-1.f: Same. | |
6621 | * gfortran.dg/graphite/block-2.f: Same. | |
c6bb733d | 6622 | |
6623 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6624 | ||
6625 | * graphite.c: Fix some XXX comments. | |
6626 | (build_scop_dynamic_schedules): Removed. | |
6627 | ||
6628 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6629 | ||
6630 | * graphite.h (scop_max_loop_depth): Moved... | |
6631 | * graphite.c (scop_max_loop_depth): ...here. | |
6632 | (remove_all_edges_1): New. | |
6633 | (remove_all_edges): Factored code. | |
6634 | (remove_cond_exprs): Check only the last statement for | |
6635 | a GIMPLE_COND expression. | |
6636 | ||
6637 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6638 | ||
6639 | * graphite.c (scan_tree_for_params): Early return when the | |
6640 | expression is a chrec_dont_know. Handle case NEGATE_EXPR. | |
6641 | (find_scop_parameters): Factor out code. | |
6642 | (graphite_trans_bb_strip_mine): Remove dead code. | |
6643 | ||
6644 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6645 | ||
6646 | * graphite.c (clast_to_gcc_expression, graphite_create_new_loop, | |
6647 | graphite_trans_bb_move_loop): Factor asserts. | |
6648 | (gloog): Perform sanity checks only for ENABLE_CHECKING. | |
6649 | Do not call calculate_dominance_info and estimate_bb_frequencies. | |
6650 | ||
6651 | 2008-08-20 Jan Sjodin <jan.sjodin@amd.com> | |
6652 | ||
6653 | * graphite.c (create_loops_mapping, free_loops_mapping, | |
6654 | create_loops_mapping_num, debug_loop_mapping_1, | |
6655 | debug_loop_mapping, graphite_loops_mapping_max_loop_num, | |
6656 | get_loop_mapping_for_num, graphite_loops_mapping_add_child, | |
6657 | graphite_loops_mapping_add_child_num, | |
6658 | graphite_loops_mapping_insert_child, | |
6659 | graphite_loops_mapping_parent, get_loop_mapped_depth_for_num, | |
6660 | get_loop_mapped_depth, split_loop_mapped_depth_for_num, | |
6661 | loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num, | |
6662 | create_num_from_index, get_num_from_index, | |
6663 | swap_loop_mapped_depth): Removed. | |
6664 | (new_scop): Do not initialize SCOP_LOOPS_MAPPING. | |
6665 | (free_scop): Do not call free_loops_mapping. | |
6666 | (graphite_get_new_iv_stack_index_from_old_iv): Renamed | |
6667 | get_stack_index_from_iv. Use GBB_LOOPS instead of calling | |
6668 | get_loop_mapped_depth. | |
6669 | (graphite_trans_bb_move_loop): Do not update the loop mapping. | |
6670 | (graphite_trans_bb_strip_mine): Same. | |
6671 | * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed. | |
6672 | (struct scop): Remove field loops_mapping. | |
6673 | ||
6674 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6675 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6676 | ||
6677 | * graphite.c (scop_record_loop): Factor out one level of the | |
6678 | condition by early return. | |
6679 | (build_scop_loop_nests): Format following FSF coding style. | |
6680 | (build_scop_dynamic_schedules): Factor out code. | |
6681 | (scopdet_bb_info): Reindent. Default case should not be reachable. | |
6682 | ||
6683 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6684 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6685 | ||
6686 | * graphite.c (loop_affine_expr): Check for DECL_P or struct | |
6687 | assignments that are not handled as simple operands for now. | |
6688 | ||
6689 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6690 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6691 | ||
6692 | * graphite.c (build_scop_bbs): Factor up code. | |
6693 | ||
6694 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6695 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6696 | ||
6697 | * graphite.c (stmt_simple_for_scop_p): Factor code out | |
6698 | of the loop. | |
6699 | (enum gbb_type): New. Group all the GBB_* types under it. | |
6700 | (is_loop_exit): Moved... | |
6701 | (end_scop): Enable BB spliting. | |
6702 | * cfgloop.c (is_loop_exit): ...here. Reimplemented. | |
6703 | * cfgloop.h (is_loop_exit): Declared. | |
6704 | ||
6705 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6706 | ||
6707 | * doc/invoke.texi: Remove strides from examples containing | |
6708 | DO loops when the strides are equal to 1. | |
6709 | ||
6710 | 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com> | |
6711 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6712 | ||
6713 | * graphite.c (graphite_trans_scop_block): Or the result with | |
6714 | the result from graphite_trans_loop_block. | |
6c9df8cb | 6715 | * gcc.dg/graphite/block-1.c: New. |
6716 | * gfortran.dg/graphite/block-1.f90: New. | |
6717 | * gfortran.dg/graphite/block-2.f: New. | |
c6bb733d | 6718 | |
6719 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6720 | ||
6721 | * graphite.c (graphite_transform_loops): Call cloog_initialize | |
6722 | and cloog_finalize. | |
6723 | ||
6724 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6725 | ||
6726 | * tree-data-ref.c) (stmt_simple_memref_p): New. | |
6727 | * tree-data-ref.h (stmt_simple_memref_p): Declared. | |
6728 | * graphite.c (stmt_simple_memref_for_scop_p): Removed. | |
6729 | (is_simple_operand): Call stmt_simple_memref_p. | |
6730 | ||
6c9df8cb | 6731 | * gcc.dg/graphite/scop-matmult.c: Updated for not |
c6bb733d | 6732 | using pointer arithmetic, as this is optimized by PRE and |
6733 | makes the code too difficult to analyze. | |
6734 | ||
6c9df8cb | 6735 | * gcc.dg/graphite/scop-18.c: Same. |
c6bb733d | 6736 | |
6737 | 2008-08-20 Sebastian Pop <sebastian.pop@amd.com> | |
6738 | ||
6739 | * gdbinit.in (pgg): New. | |
6740 | ||
6741 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
6742 | ||
6743 | * graphite.c (graphite_trans_loop_block): Fix warning. | |
6744 | ||
6745 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
6746 | ||
6747 | * graphite.c (graphite_trans_loop_block): Fix my merge error. | |
6748 | ||
6749 | 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
6750 | ||
6751 | * graphite.c (graphite_trans_bb_block): Remove check for | |
6752 | flag_loop_strip_mine, flag_loop_block, flag_loop_interchange. | |
6753 | Check if loop blocking is profitable for every loop, before applying | |
6754 | the changes. | |
6755 | (graphite_apply_transformations): Call graphite_trans_bb_block only, | |
6756 | if flag_loop_block is set. | |
6757 | ||
6758 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6759 | ||
6760 | * graphite.c: Add some more documentation for the loop | |
6761 | mapping. | |
6762 | ||
6763 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6764 | ||
6765 | * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h. | |
6766 | * graphite.c: Format on less than 80 columns. | |
6767 | * graphite.h: Same. | |
6768 | ||
6769 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6770 | ||
6771 | * cfgloopmanip.c (loopify): Use update_dominators_in_loop. | |
6772 | ||
6773 | 2008-08-14 Sebastian Pop <sebastian.pop@amd.com> | |
6774 | ||
6775 | * doc/invoke.texi (floop-block, floop-strip-mine, | |
6776 | floop-interchange): Update documentation with examples. | |
6777 | ||
6778 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
6779 | ||
6780 | * cfgloopmanip.c (create_empty_loop_on_edge): Don't call | |
6781 | add_referenced_var. | |
6782 | * graphite.c (graphite_create_new_loop): Call add_referenced_var. | |
6783 | ||
6784 | 2008-08-13 Sebastian Pop <sebastian.pop@amd.com> | |
6785 | ||
6786 | * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation. | |
6787 | Factor gcc_asserts into a single one. Use force_gimple_operand_gsi. | |
6788 | * tree-scalar-evolution.c: Revert useless changes. | |
6789 | * tree-phinodes.c: Same. | |
6790 | * cfghooks.c: Same. | |
6791 | * vec.h: Same. | |
6792 | * tree-vectorizer.h: Same. | |
6793 | * tree-flow.h: Same. | |
6794 | * tree-cfg.c: Same. | |
6795 | * common.opt (fgraphite): Update documentation. | |
6796 | ||
6797 | 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com> | |
6798 | ||
6799 | * doc/invoke.texi (-floop-block, -floop-strip-mine, | |
6800 | -floop-interchange): Add more text for explaining what each of these | |
6801 | flags is doing. | |
6802 | * tree-into-ssa.c (gimple_vec): Moved to... | |
6803 | * graphite.c: Include gimple.h. | |
6804 | (gimple_vec): Moved to... | |
6805 | (del_loop_to_cloog_loop): Removed. | |
6806 | (loop_affine_expr): Do not call create_data_ref when the | |
6807 | operand is a constant. | |
6808 | (new_scop): Use free instead of del_loop_to_cloog_loop. | |
6809 | * Makefile.in (graphite.o): Depend on GIMPLE_H. | |
6810 | * gimple.h (gimple_vec): ... here. | |
6811 | ||
6812 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6813 | ||
6814 | * graphite.c (scopdet_bb_info): Only allow loops with known number of | |
6815 | latch executions. | |
6816 | (build_loop_iteration_domains): Fail, if latch executions unknown. | |
6817 | ||
6818 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6819 | ||
6820 | * graphite.c (add_conditions_to_domain): New. | |
6821 | (build_scop_conditions_1): Call add_conditions_to_domain. | |
6822 | (set_cloog_options): Allow to disable optimizations. | |
6823 | ||
6824 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6825 | ||
6826 | * graphite.c (find_params_in_bb): Look for parameters in conditions. | |
6827 | Do not use walk_dominator_tree. | |
6828 | (find_scop_parameters): Do not use walk_dominator_tree. | |
6829 | ||
6830 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6831 | ||
6832 | * graphite.c (scan_tree_for_params) Add / Subtract inequality. | |
6833 | (idx_record_params): Adapt. | |
6834 | * graphite.h (scop_gimple_loop_depth): New. | |
6835 | ||
6836 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6837 | ||
6838 | * graphite.c (build_scop_dynamic_schedules): Remove value_init. | |
6839 | (scan_tree_for_params): Remove value_init. | |
6840 | (build_scop_context): Remove value_init. | |
6841 | (build_loop_iteration_domains): Remove value_init. | |
6842 | (schedule_to_scattering): Remove value_init. | |
6843 | (graphite_trans_bb_strip_mine): Remove value_init. | |
6844 | ||
6845 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6846 | ||
6847 | * gcc/graphite.c (limit_scops): New. | |
6848 | (graphite_transform_loops): Add limit SCoPs. | |
6c9df8cb | 6849 | * gcc.dg/graphite/scop-0.c: Update number of SCoPs. |
6850 | * gcc.dg/graphite/scop-1.c: Update number of SCoPs. | |
6851 | * gcc.dg/graphite/scop-10.c: Update number of SCoPs. | |
6852 | * gcc.dg/graphite/scop-11.c: Update number of SCoPs. | |
6853 | * gcc.dg/graphite/scop-12.c: Update number of SCoPs. | |
6854 | * gcc.dg/graphite/scop-13.c: Update number of SCoPs. | |
6855 | * gcc.dg/graphite/scop-14.c: Update number of SCoPs. | |
6856 | * gcc.dg/graphite/scop-15.c: Update number of SCoPs. | |
6857 | * gcc.dg/graphite/scop-16.c: Update number of SCoPs. | |
c6bb733d | 6858 | Change loop numbers. |
6c9df8cb | 6859 | * gcc.dg/graphite/scop-17.c: Update number of SCoPs. |
c6bb733d | 6860 | Change loop numbers. |
6c9df8cb | 6861 | * gcc.dg/graphite/scop-18.c: Update number of SCoPs. |
6862 | * gcc.dg/graphite/scop-2.c: Update number of SCoPs. | |
6863 | * gcc.dg/graphite/scop-3.c: Update number of SCoPs. | |
6864 | * gcc.dg/graphite/scop-4.c: Update number of SCoPs. | |
6865 | * gcc.dg/graphite/scop-5.c: Update number of SCoPs. | |
6866 | * gcc.dg/graphite/scop-6.c: Update number of SCoPs. | |
6867 | * gcc.dg/graphite/scop-7.c: Update number of SCoPs. | |
6868 | * gcc.dg/graphite/scop-8.c: Update number of SCoPs. | |
6869 | * gcc.dg/graphite/scop-9.c: Update number of SCoPs. | |
6870 | * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs. | |
c6bb733d | 6871 | |
6872 | 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
6873 | ||
6874 | * graphite.c (graphite_transform_loops): Call always find_transform. | |
6875 | ||
6876 | 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de> | |
6877 | ||
6878 | * graphite.c (free_loops_mapping): New. | |
6879 | (stmt_simple_for_scop_p): Fix typo. | |
6880 | (stmt_simple_for_scop_p): Fix tuples functions, that | |
6881 | broke polyhedron. | |
6882 | (free_graphite_bb): Fix some memleaks. | |
6883 | (free_scop): Fix some memleaks. | |
6884 | (scopdet_bb_info): Do not forget some tmp SCoPs. | |
6885 | (find_params_in_bb): Fix some memleaks. | |
6886 | (clast_to_gcc_expression): Fix warning. | |
6887 | ||
6888 | 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
6889 | ||
6c9df8cb | 6890 | * gcc.dg/graphite/scop-16.c: Fix for 32bit. |
6891 | * gcc.dg/graphite/scop-17.c: Fix for 32bit. | |
c6bb733d | 6892 | |
6893 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
6894 | ||
6895 | * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h. | |
6896 | Move code ifdef-ed HAVE_cloog... | |
6897 | * graphite.c: Include toplev.h. | |
6898 | ... here. | |
6899 | * Makefile.in (OBJS-common): Always build graphite.o. | |
6900 | (BACKEND): Remove @GRAPHITE@. | |
6901 | (tree-ssa-loop.o): Do not depend on TOPLEV_H. | |
6902 | (graphite.o): Depend on TOPLEV_H. | |
6903 | ||
6904 | 2008-08-04 Sebastian Pop <sebastian.pop@amd.com> | |
6905 | ||
6906 | * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H. | |
6907 | Remove typo left from polylib to ppl conversion. | |
6908 | * graphite.c (graphite_transforms): Use sorry instead of fatal. | |
6909 | ||
6910 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
6911 | ||
6912 | * toplev.c (process_options): Move the graphite loop optimization | |
6913 | flags... | |
6914 | * tree-ssa-loop.c (graphite_transforms): ... here. | |
6915 | When not configured with CLooG, print to dump_file that | |
6916 | Graphite transforms were not performed. | |
6c9df8cb | 6917 | * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times): |
c6bb733d | 6918 | New. |
6c9df8cb | 6919 | * gcc.dg/graphite/*.c: Updated all testcases to use |
c6bb733d | 6920 | scan-graphite-dump-times. |
6921 | ||
6922 | 2008-08-03 Sebastian Pop <sebastian.pop@amd.com> | |
6923 | ||
6924 | * graphite.c (dot_scop, dot_all_scops): Do not call system. | |
6925 | Do not open /tmp/scop.dot and /tmp/allscops.dot. | |
6926 | ||
6927 | 2008-08-02 Sebastian Pop <sebastian.pop@amd.com> | |
6928 | Jan Sjodin <jan.sjodin@amd.com> | |
6929 | ||
6930 | * configure: Regenerated. | |
6931 | * omp-low.c (expand_omp_sections): Remove now unused code. | |
6932 | * config.in (HAVE_polylib): Removed. | |
6933 | * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed. | |
6934 | (PPLLIBS, PPLINC): Added. | |
6935 | * graphite.c: Replace unsigned with int wherever possible. | |
6936 | Don't access Cloog's data structures, but use accessor functions. | |
6937 | Clast's stmt->type is now implemented as a vtable: change the | |
6938 | switches of stmt->type into ifs. | |
6939 | (polylib/polylibgmp.h): Don't include. | |
6940 | (initialize_dependence_polyhedron, | |
6941 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
6942 | statement_precedes_p, test_dependence, build_rdg_all_levels, | |
6943 | dump_dependence_graph): Removed until this code is cleaned up | |
6944 | or ported to Cloog. | |
6945 | * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS. | |
6946 | (POLYLIBINC): Renamed PPLINC. | |
6947 | ||
6948 | 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com> | |
6949 | Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
6950 | Jan Sjodin <jan.sjodin@amd.com> | |
6951 | ||
6952 | Finish the merge and tuplification of graphite. | |
6953 | ||
6954 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
6955 | Jan Sjodin <jan.sjodin@amd.com> | |
6956 | ||
6957 | Partial merge from mainline (138072:138275). | |
6958 | * graphite.c still has to be tuplified. | |
6959 | ||
6960 | 2008-07-29 Jan Sjodin <jan.sjodin@amd.com> | |
6961 | ||
6962 | * graphite.c (graphite_loops_mapping_max_loop_num): New. | |
6963 | (create_num_from_index): New. | |
6964 | (get_num_from_index): Also pass in the graphite BB. | |
6965 | (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP. | |
6966 | (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP. | |
6967 | (graphite_trans_bb_strip_mine): Call create_num_from_index. | |
6968 | (is_interchange_valid): Return false when failing. | |
6969 | * graphite.h (struct num_map): New. | |
6970 | (struct graphite_bb): New field num_map. | |
6971 | (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP. | |
6972 | ||
6973 | 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
6974 | ||
6975 | * graphite.c (dump_gbb_conditions): Print also conditions like | |
6976 | "if (a)". Remove dublicated code and use print_generic_expr (). | |
6977 | (stmt_simple_for_scop_p): Only allow conditions we can handle | |
6978 | {<, <=, >, >=}. | |
6979 | ||
6980 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
6981 | ||
6982 | * graphite.h (struct scop): Removed new_ivs field. | |
6983 | (SCOP_NEWIVS): Deleted. | |
6984 | * graphite.c (new_scop, free_scop, clast_name_to_gcc, | |
6985 | clast_to_gcc_expression, graphite_create_new_loop): | |
6986 | Removed use of new_ivs. | |
6987 | ||
6988 | 2008-07-25 Jan Sjodin <jan.sjodin@amd.com> | |
6989 | ||
6990 | * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping, | |
6991 | create_loops_mapping_num, debug_loop_mapping_1): New. | |
6992 | (debug_loop_mapping): Call debug_loop_mapping_1. | |
6993 | (get_loop_mapping_for_num, | |
6994 | graphite_loops_mapping_add_child, | |
6995 | graphite_loops_mapping_add_child_num, | |
6996 | graphite_loops_mapping_insert_child, | |
6997 | graphite_loops_mapping_parent, | |
6998 | split_loop_mapped_depth_for_num, | |
6999 | loop_mapped_depth_split_loop): New. | |
7000 | (increment_loop_mapped_depths): Removed. | |
7001 | (swap_loop_mapped_depth_for_num): Reimplemented. | |
7002 | (new_scop): Call create_loops_mapping. | |
7003 | (scop_record_loop): Call graphite_loops_mapping_insert_child. | |
7004 | (translate_clast): Pass the old loop father in parameter, and pass | |
7005 | it to get_old_iv_from_ssa_name. | |
7006 | (remove_edges_around_useless_blocks, can_generate_code_stmt, | |
7007 | can_generate_code, can_generate_for_scop): New. | |
7008 | (graphite_trans_bb_block): Returns false when it fails to transform. | |
7009 | * graphite.h (graphite_loop_node, graphite_loops_mapping): New. | |
7010 | ||
7011 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
7012 | ||
7013 | Reverted all the changes related to the streamization and | |
7014 | loop fusion. | |
7015 | These changes are now tracked in the streamization branch. | |
7016 | ||
7017 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
7018 | Jan Sjodin <jan.sjodin@amd.com> | |
7019 | ||
7020 | * graphite.c (gbb_compare): Correctly constify. | |
7021 | (gbb_can_be_ignored): Indent. | |
7022 | (graphite_trans_scop_swap_1and2): Add legality check. | |
7023 | Remove dead FIXMEs. | |
7024 | ||
7025 | 2008-07-25 Sebastian Pop <sebastian.pop@amd.com> | |
7026 | ||
7027 | Remove fallouts from "Reverted the Condate changes". | |
7028 | * tree.h: Remove unused decl. | |
6c9df8cb | 7029 | * gcc.dg/tree-checker: Same. |
c6bb733d | 7030 | * timevar.def: Remove counter. |
7031 | ||
7032 | 2008-07-24 Sebastian Pop <sebastian.pop@amd.com> | |
7033 | ||
7034 | * Merge from mainline (135673:138072). | |
7035 | ||
7036 | Reverted the MIRO changes (from 2008-04-05) that are now | |
7037 | tracked in the miro branch. | |
7038 | * tree-bounds.c: Removed. | |
7039 | * tree-bounds.h: Removed. | |
7040 | ||
7041 | Reverted the Condate changes (from 2006-07-04, 2007-03-20) that | |
7042 | are now tracked in the condate branch. | |
7043 | * tree-check.c: Removed. | |
7044 | * tree-match.c: Removed. | |
7045 | * condate.y: Removed. | |
7046 | ||
7047 | 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
7048 | ||
7049 | * common.opt: New user flag -floop-block, -floop-strip-mine | |
7050 | and -floop-interchange. | |
7051 | * toplev.c (process_options): Enable -fgraphite pass if any one of the | |
7052 | graphite loop optimization flags is turned on. | |
7053 | * graphite.c (graphite_apply_transformations): Add flag_loop_block, | |
7054 | flag_loop_strip_mine and flag_loop_interchange checks before | |
7055 | optimizations. | |
7056 | * doc/invoke.texi: Remove -fgraphite and add -floop-block, | |
7057 | -floop-strip-mine and -floop-interchange. | |
6c9df8cb | 7058 | * gcc.dg/graphite/block-0.c: Add -floop-block and remove |
c6bb733d | 7059 | -fgraphite. |
6c9df8cb | 7060 | * gcc.dg/graphite/scop-16.c: Ditto. |
7061 | * gcc.dg/graphite/scop-17.c: Ditto. | |
7062 | * gcc.dg/graphite/scop-18.c: Ditto. | |
c6bb733d | 7063 | |
7064 | 2008-07-23 Jan Sjodin <jan.sjodin@amd.com> | |
7065 | Sebastian Pop <sebastian.pop@amd.com> | |
7066 | ||
7067 | * cfgloopmanip.c (update_dominators_in_loop): Make it static. | |
7068 | (create_empty_loop_on_edge): More fixes. | |
7069 | * tree-phinodes.c (resize_phi_node): Extern. | |
7070 | (unlink_phi_node, move_phi_node): New split from remove_phi_node. | |
7071 | * cfghooks.c (update_dominator_information): New split from | |
7072 | split_edge. | |
7073 | * tree-vectorizer.c (rename_variables_in_bb): Extern. | |
7074 | * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the | |
7075 | successor of the function entry block. | |
7076 | ||
7077 | * graphite.c: Include pointer-set.h. | |
7078 | (debug_loop_mapping, increment_loop_mapped_depths, | |
7079 | get_loop_mapped_depth_for_num, get_loop_mapped_depth, | |
7080 | set_loop_mapped_depth_for_num, set_loop_mapped_depth, | |
7081 | swap_loop_mapped_depth_for_num, get_num_from_index, | |
7082 | swap_loop_mapped_depth, loop_iv_stack_debug, | |
7083 | loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv, | |
7084 | loop_iv_stack_get_iv_from_name, loop_iv_stack_debug, | |
7085 | get_old_iv_from_ssa_name): New. | |
7086 | (new_scop): Initialize SCOP_LOOPS_MAPPING. | |
7087 | (free_scop): Free SCOP_LOOPS_MAPPING. | |
7088 | (scop_record_loop): Record old ivs. | |
7089 | (create_var_name): Removed. | |
7090 | (initialize_cloog_names): Allocate double space in case strip mine | |
7091 | applies to all loops once. | |
7092 | (clast_name_to_gcc): Look up in the map ivstack passed in parameter. | |
7093 | (clast_to_gcc_expression): Same. Implement more clast to gimple | |
7094 | translation. | |
7095 | (graphite_create_new_loop): Pass in ivstack. | |
7096 | (remove_all_edges): Pass in the construction_edge. | |
7097 | (graphite_remove_iv): Removed. | |
7098 | (graphite_rename_ivs, graphite_rename_ivs_stmt, | |
7099 | remove_cond_exprs): Rewritten. | |
7100 | (move_phi_nodes): New. | |
7101 | (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed. | |
7102 | (translate_clast): Pass in ivstack. Rewrite some cases. | |
7103 | (set_cloog_options, debug_clast_stmt): New. | |
7104 | (find_transform): Use set_cloog_options. | |
7105 | (outermost_loop_layer): Removed. | |
7106 | (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb, | |
7107 | find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs, | |
7108 | mark_old_loops, remove_dead_loops): New. | |
7109 | (gloog): Rewritten. | |
7110 | (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth. | |
7111 | (const_column_index, get_first_matching_sign_row_index, | |
7112 | get_lower_bound_row, get_upper_bound_row, get_lower_bound, | |
7113 | get_upper_bound): New. | |
7114 | (graphite_trans_bb_strip_mine): Also update the iv map. | |
7115 | ||
7116 | * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New. | |
7117 | (struct name_tree): Add a loop field. | |
7118 | (struct scop): Add a graphite_loops_mapping field. | |
7119 | (SCOP_LOOPS_MAPPING): New. | |
7120 | (debug_clast_stmt): Declare. | |
7121 | * lambda.h (find_induction_var_from_exit_cond): Declare. | |
7122 | (lambda-code.c): (find_induction_var_from_exit_cond): Extern. | |
7123 | * cfgloop.h (update_dominators_in_loop): Removed declaration. | |
7124 | (create_empty_loop_on_edge): Updated. | |
7125 | * tree-flow.h (remove_bb, resize_phi_node, move_phi_node, | |
7126 | rename_variables_in_bb): Declare. | |
7127 | * tree-cfg.c (remove_bb): Extern. | |
7128 | ||
6c9df8cb | 7129 | * gcc.dg/graphite/block-0.c: New. |
c6bb733d | 7130 | |
7131 | 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com> | |
7132 | Sebastian Pop <sebastian.pop@amd.com> | |
7133 | ||
7134 | * graphite.c (strip_mine_profitable_p): New. | |
7135 | (graphite_trans_bb_block): Disable strip mining if not profitable. | |
7136 | ||
6c9df8cb | 7137 | * gcc.dg/graphite/scop-18.c: New. |
7138 | * gcc.dg/graphite/scop-17.c: Fixed. | |
7139 | * gcc.dg/graphite/scop-16.c: Fixed. | |
c6bb733d | 7140 | |
7141 | 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com> | |
7142 | Jan Sjodin <jan.sjodin@amd.com> | |
7143 | Sebastian Pop <sebastian.pop@amd.com> | |
7144 | ||
7145 | * graphite.c (is_interchange_valid): New. | |
7146 | (graphite_trans_bb_block): Check loop nest of basic block for legality | |
7147 | of interchange. | |
7148 | ||
7149 | * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1, | |
7150 | outer_most_loop, gbb_outer_most_loop_index): New. | |
7151 | ||
7152 | * tree-loop-linear.c (perfect_loop_nest_depth): Remove static. | |
7153 | * tree-flow.h (perfect_loop_nest_depth): Declare as extern. | |
6c9df8cb | 7154 | * gcc.dg/graphite/scop-16.c: New. |
7155 | * gcc.dg/graphite/scop-17.c: New. | |
c6bb733d | 7156 | |
7157 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7158 | ||
7159 | * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap. | |
7160 | (graphite_trans_scop_block): Ignore SCoPs without bbs. | |
7161 | ||
7162 | 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7163 | ||
7164 | * graphite.c (new_scop): Initialize SCOP_EXIT. | |
7165 | (scopdet_info): Add. | |
7166 | (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes. | |
7167 | (build_scops_1): Cleanup, bugfixes. | |
7168 | (build_scops): Cleanup. | |
7169 | ||
6c9df8cb | 7170 | * gcc.dg/graphite/scop-matmult.c: Remove duplicated code. |
7171 | * gcc.dg/graphite/scop-15.c: Add SCoP numbers. | |
c6bb733d | 7172 | |
7173 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
7174 | ||
6c9df8cb | 7175 | * gfortran.dg/graphite/scop-1.f: Update to reduced test case. |
c6bb733d | 7176 | |
6c9df8cb | 7177 | * gfortran.dg/graphite/graphite.exp: Use |
c6bb733d | 7178 | DEFAULT_GRAPHITE_FLAGS. |
7179 | ||
6c9df8cb | 7180 | * gcc.dg/graphite/scop-15.c: Update to reduced test case. |
c6bb733d | 7181 | |
7182 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
7183 | ||
7184 | * graphite.c (scan_tree_for_params): Do not assert any more if | |
7185 | MULT_EXPR parameter is negative. | |
7186 | ||
6c9df8cb | 7187 | * gfortran.dg/graphite/scop-1.f: New. |
c6bb733d | 7188 | |
6c9df8cb | 7189 | * gfortran.dg/graphite/graphite.exp: New. |
c6bb733d | 7190 | |
6c9df8cb | 7191 | * gcc.dg/graphite/scop-15.c: New. |
c6bb733d | 7192 | |
7193 | 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com> | |
7194 | ||
7195 | * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat. | |
7196 | ||
7197 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7198 | ||
7199 | * graphite.c (graphite_trans_bb_swap_loops): Rename from | |
7200 | graphite_swap_loops. | |
7201 | (graphite_trans_bb_move_loop): New. | |
7202 | (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop. | |
7203 | (graphite_trans_bb_block): New. | |
7204 | (graphite_trans_loop_block): New. | |
7205 | (graphite_trans_scop_swap_1and2): Rename from | |
7206 | graphite_trans_swap_1and2. | |
7207 | (graphite_trans_scop_strip): Rename from graphite_trans_strip. | |
7208 | (graphite_trans_scop_block): New. | |
7209 | (graphite_apply_transformations): Rename from | |
7210 | graphite_transformations. | |
7211 | ||
6c9df8cb | 7212 | * gcc.dg/graphite/scop-matmult.c: New. |
c6bb733d | 7213 | |
7214 | 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7215 | ||
7216 | * graphite.c (gbb_compare): New. | |
7217 | (graphite_sort_gbbs): New. | |
7218 | (gbb_can_be_ignored): New. | |
7219 | (scop_remove_ignoreable_gbbs): New. | |
7220 | (graphite_transformations): Cleanup and add | |
7221 | scop_remove_ignoreable_gbbs. | |
7222 | * lambda.h (lambda_vector_compare): New. | |
7223 | ||
7224 | 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de> | |
7225 | ||
7226 | * graphite.c (print_graphite_bb): Correct printing of static schedule. | |
7227 | (graphite_swap_loops): int -> unsigned | |
7228 | (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE | |
7229 | (graphite_transformations): New. | |
7230 | (graphite_transform_loops): Move to graphite_transformations. | |
7231 | * graphite.h (gbb_nb_loops): Return unsigned. | |
7232 | ||
7233 | 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7234 | ||
7235 | * graphite.c (scan_tree_for_params): Fix insertion of parameters into | |
7236 | the domain matrix. This makes scop-0.c work again. | |
7237 | ||
7238 | 2008-06-20 Richard Guenther <rguenther@suse.de> | |
7239 | ||
7240 | * graphite.h: Adjust copyright to GPLv3. | |
7241 | * graphite.c: Likewise. | |
7242 | (stmt_simple_memref_for_scop_p): Split out from ... | |
7243 | (stmt_simple_for_scop_p): ... here. Fix handling of calls | |
7244 | and simplify. | |
7245 | (get_bb_type): Optimize. | |
7246 | (is_pred): Remove. | |
7247 | (is_bb_addable): Fix memleak, replace is_pred call with | |
7248 | single_pred. | |
7249 | (build_scops): Use current_loops. | |
7250 | (param_index): Fix memleak. | |
7251 | ||
7252 | 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7253 | ||
7254 | * graphite.c: Fix formatting. | |
7255 | ||
7256 | 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7257 | ||
7258 | * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}. | |
7259 | (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS. | |
7260 | (create_var_name, save_var_name): Newly defined functions. | |
7261 | (initialize_cloog_names): Part of the code factored out to | |
7262 | save_var_name. | |
7263 | (clast_to_gcc_expression): Now handles the case of clast_red_sum | |
7264 | in clast_reduction statement. | |
7265 | (graphite_create_new_loop): Now takes a new parameter | |
7266 | for outer_loop. | |
7267 | (translate_clast): Now also takes the context_loop and bb_exit | |
7268 | parameters. Rewritten the code so that it creates a gimple code | |
7269 | inside the given context. | |
7270 | (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs, | |
7271 | remove_cond_expr, disconnect_cond_expr, | |
7272 | disconnect_virtual_phi_nodes): Newly defined functions. | |
7273 | * graphite.h (struct scop): added old_ivs vector. | |
7274 | SCOP_OLDIVS: New macro. | |
7275 | ||
7276 | 2008-06-19 Sebastian Pop <sebastian.pop@amd.com> | |
7277 | ||
7278 | * cfgloopmanip.c: Add missing function comments, fix formatting. | |
7279 | ||
7280 | 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7281 | ||
7282 | * cfgloopmanip.c (update_dominators_in_loop): Defined. | |
7283 | (create_empty_loop_on_edge): Defined. | |
7284 | * tree-parloops.c (canonicalize_loop_ivs): Returns tree | |
7285 | instead of void. | |
7286 | * cfgloop.h (create_empty_loop_on_edge): Declared as extern. | |
7287 | (update_dominators_in_loop): Declared as extern | |
7288 | * tree-flow.h (canonicalize_loop_ivs): Declared as extern. | |
7289 | ||
7290 | 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de> | |
7291 | ||
7292 | * graphite.c (print_graphite_bb): Allow changing number of loops | |
7293 | in SCoP domain. | |
7294 | (initialize_cloog_names): Allow changing number of loops. | |
7295 | (build_cloog_prog): Simplify. | |
7296 | (find_transform): Enable cloog option --strides. | |
7297 | (graphite_swap_loops): New. | |
7298 | (graphite_strip_mine_loop): New. | |
7299 | (graphite_trans_swap_1and2): New. | |
7300 | (graphite_trans_strip): New. | |
7301 | (graphite_transform_loops): Add graphite_trans_strip. | |
7302 | * graphite.h (scop_max_loop_depth): New. | |
7303 | ||
7304 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7305 | ||
7306 | * graphite.c (build_scop_iteration_domain): Remove forgotten | |
7307 | line. (Fixes compile) | |
7308 | ||
7309 | 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de> | |
7310 | ||
7311 | * graphite.c (print_graphite_bb): Add output of GBB_LOOPS. | |
7312 | (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder. | |
7313 | (build_bb_loops): New. | |
7314 | (graphite_transform_loops): Add build_bb_loops. | |
7315 | (schedule_to_scattering): Use gbb_nb_loops to support changing loop | |
7316 | numbers. | |
7317 | * graphite.h (graphite_bb): Add loops. | |
7318 | (gbb_nb_loops): New. | |
7319 | (gbb_loop_at_index): New. | |
7320 | (gbb_loop_index): New. | |
7321 | (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions | |
7322 | using nb_params_in_scop. | |
7323 | ||
7324 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
7325 | ||
7326 | * graphite.c (print_graphite_bb): Adapt to minimized schedule. | |
7327 | (build_scop_canonical_schedules): Build minimized schedule. | |
7328 | (schedule_to_scattering): Adapt to minimized schedule. | |
7329 | * graphite.h (graphite_bb): Add/Update descriptions. | |
7330 | ||
7331 | 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr> | |
7332 | Tobias Grosser <grosser@fim.uni-passau.de> | |
7333 | ||
7334 | * graphite.c (print_graphite_bb): Add condition printing. | |
7335 | (dump_value): New. | |
7336 | (dump_gbb_conditions): New. | |
7337 | (build_scop_conditions_1): New. | |
7338 | (build_scop_conditions): New. | |
7339 | * graphite.h (graphite_bb): Add conditions. | |
7340 | ||
7341 | 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de> | |
7342 | ||
7343 | * graphite.c (print_graphite_bb): | |
7344 | (free_graphite_bb): New. | |
7345 | (free_scop): Free bbs. | |
7346 | (get_bb_type): Free doms. | |
7347 | (build_scop_context): Free context matrix. | |
7348 | (build_loop_iteration_domains): Remove unused code. | |
7349 | (build_cloog_prog): Free scattering function and blocklist. | |
7350 | (find_transform): Free options. | |
7351 | ||
7352 | 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de> | |
7353 | ||
7354 | * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains. | |
7355 | Remove unnecessery cloog data structures. Make a copy of the domain | |
7356 | (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove | |
7357 | unnecessary cloog data structures. Fix memory leaks. Remove insert | |
7358 | into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be | |
7359 | used. | |
7360 | (build_scop_iteration_domain): Remove unnecessary cloog | |
7361 | data structures. Fix memory leaks. | |
7362 | (graphite_transform_loops): Disable build_scop_dynamic_schedules as it | |
7363 | uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working. | |
7364 | ||
7365 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7366 | ||
7367 | * graphite.c (find_scop_params): Remove initialize_cloog_names. | |
7368 | ||
7369 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7370 | ||
7371 | * graphite.c (end_scop): Style fix. | |
7372 | (schedule_to_scattering): Style and comment fix. | |
7373 | ||
7374 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7375 | * graphite.c (print_graphite_bb): Fix definiton of | |
7376 | schedule_to_scattering. | |
7377 | (initialize_cloog_names): Change nb_scattdims to max loop | |
7378 | depth in SCoP. | |
7379 | (schedule_to_scattering): Take parameter for number of scattering | |
7380 | dimensions. | |
7381 | (build_cloog_prog): Only build as much scattering dimensions as | |
7382 | necessary. | |
7383 | ||
7384 | 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de> | |
7385 | ||
7386 | * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV | |
7387 | in polyhedron/aermod.f90. | |
7388 | ||
7389 | 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de> | |
7390 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
7391 | Harsha Jagasia <harsha.jagasia@amd.com> | |
7392 | ||
7393 | * graphite.c (is_bb_addable): Fix segfault. | |
7394 | ||
7395 | 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de> | |
7396 | ||
7397 | * graphite.c (is_bb_addable): Fix memory leak, handling of loops | |
7398 | with multiple exits and conditional handling in edge cases. | |
7399 | (is_loop_exit): Fix memory leak. (Forgotten in last commit) | |
7400 | ||
6c9df8cb | 7401 | * gcc.dg/graphite/scop-14.c: New. |
c6bb733d | 7402 | |
7403 | 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7404 | Adrien Eliche <aeliche@isty.uvsq.fr> | |
7405 | ||
7406 | * graphite.c (is_bb_addable): Add more comments and enhance | |
7407 | readablity of the source code. Fix memory leak. | |
7408 | (is_loop_exit): Fix memory leak. | |
7409 | ||
7410 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
7411 | ||
7412 | * graphite.c (first_loop_in_scop): Deleted. | |
7413 | (setup_cloog_loop): Only walk the loop chain for inner loops. | |
7414 | (build_scop_iteration_domain): Execute setup_cloog_loop for | |
7415 | all loops in the first layer. | |
7416 | ||
7417 | 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de> | |
7418 | ||
7419 | * graphite.c (scan_tree_for_params): Change the way params are | |
7420 | added to be indepenent of the number of loops. | |
7421 | (setup_cloog_loop): Revert to short matrix format. Fix parameter | |
7422 | handling. | |
7423 | (build_cloog_prog): Revert to short matrix format. | |
7424 | ||
7425 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
7426 | Dwarak Rajagopal <dwarak.rajagopal@amd.com> | |
7427 | ||
7428 | * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable | |
7429 | warning. | |
7430 | ||
7431 | 2008-06-05 Sebastian Pop <sebastian.pop@amd.com> | |
7432 | ||
7433 | * graphite.c (nb_data_refs_in_scop): New. | |
7434 | (graphite_transform_loops): Print more stats: number of | |
7435 | loops, basic blocks and data references per scop. | |
7436 | ||
7437 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7438 | Jan Sjodin <jan.sjodin@amd.com> | |
7439 | ||
7440 | * graphite.c (loop_affine_expr, idx_record_params, | |
7441 | find_scop_parameters, setup_cloog_loop): Use instantiate_scev | |
7442 | instead of instantiate_parameters. | |
7443 | ||
7444 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7445 | ||
7446 | * graphite.c (schedule_to_scattering): Fix scattering dimensions, | |
7447 | add support for parameters, add STATIC_SCHEDULE at the right places, | |
7448 | cleanup. | |
7449 | ||
7450 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7451 | ||
7452 | * graphite.c (build_scop_loop_nests): Only add the loops, that | |
7453 | are contained completely in the SCoP. | |
7454 | (build_cloog_prog): Disable scattering, until schedule_to_scattering | |
7455 | and the domains are fixed. | |
7456 | (build_scop_canonical_schedules): Add support for bbs not contained | |
7457 | in any SCoP. | |
7458 | ||
7459 | 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de> | |
7460 | ||
7461 | * graphite.h (scop_contains_loop): Update comments to match | |
7462 | the actual behavior. | |
7463 | (scop_contains_loop): New. | |
7464 | * graphite.c (schedule_to_scattering): Use scop_contains_loop. | |
7465 | ||
7466 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7467 | ||
7468 | * graphite.c (get_bb_type): On function body, i.e. loop_0, | |
7469 | don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them | |
7470 | as GBB_COND_HEADER. | |
7471 | ||
7472 | 2008-06-04 Sebastian Pop <sebastian.pop@amd.com> | |
7473 | Tobias Grosser <grosser@fim.uni-passau.de> | |
7474 | ||
7475 | * graphite.c (graphite_transform_loops): Early return when | |
7476 | there are no loops in the function. | |
7477 | ||
7478 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7479 | Jan Sjodin <jan.sjodin@amd.com> | |
7480 | ||
7481 | * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the | |
7482 | offset of the last loop. | |
7483 | (setup_cloog_loop): Copy the entire outer constraint matrix. | |
7484 | ||
7485 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7486 | Jan Sjodin <jan.sjodin@amd.com> | |
7487 | ||
7488 | * graphite.c (stmt_in_scop_p, function_parameter_p, | |
7489 | invariant_in_scop_p): Removed. | |
7490 | (scan_tree_for_params): Can be used with no constraint | |
7491 | matrix for gathering parameters. | |
7492 | (idx_record_params): Don't use idx_record_param, instead use | |
7493 | scan_tree_for_params. | |
7494 | (find_scop_parameters): Same. | |
7495 | (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog): | |
7496 | Fix the size of loop domains. | |
7497 | (schedule_to_scattering): Exit when the outer loop is not in scop. | |
7498 | (find_transform): Enable build_cloog_prog. | |
7499 | ||
7500 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7501 | Jan Sjodin <jan.sjodin@amd.com> | |
7502 | ||
7503 | * graphite.c (schedule_to_scattering): Make scattering domains | |
7504 | uniformly of the same size, as required by CLooG 0.14.0 and before. | |
7505 | ||
7506 | 2008-05-31 Sebastian Pop <sebastian.pop@amd.com> | |
7507 | Jan Sjodin <jan.sjodin@amd.com> | |
7508 | ||
7509 | * graphite.c (schedule_to_scattering): Rewrite, correct the | |
7510 | translation of the scheduling function to scattering. | |
7511 | (build_cloog_prog): Call schedule_to_scattering only once. | |
7512 | * graphite.h (scop_loop_index): Do not fail for loops not | |
7513 | in the scop: return -1. | |
7514 | ||
7515 | 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de> | |
7516 | ||
7517 | * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN. | |
7518 | (loop_body_to_cloog_stmts): Export GBB_DOMAIN. | |
7519 | (setup_cloog_loop): Export GBB_DOMAIN. | |
7520 | (build_cloog_prog): New. Create new CLOOG_PROG, which should be | |
7521 | able to rebuild the original control flow. | |
7522 | * graphite.h (graphite_bb): Add domain field and access macro. | |
7523 | (GBB_DOMAIN): New. | |
7524 | ||
7525 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
7526 | ||
7527 | * graphite.c (debug_gbb): New. | |
7528 | (print_scop, build_graphite_bb): Use SCOP_BBS. | |
7529 | (build_scop_bbs): Reimplemented. | |
7530 | (dfs_bb_in_scop_p): Removed. | |
7531 | (build_scop_loop_nests): Reorder loops inserted in | |
7532 | SCOP_LOOP_NEST: outer loops should come first. | |
7533 | (build_scop_canonical_schedules): Reinitialize at zero | |
7534 | the components of the SCOP_STATIC_SCHEDULE for the loops | |
7535 | that have already been parsed. | |
7536 | ||
7537 | * graphite.h (debug_gbb): Declared. | |
7538 | ||
7539 | 2008-05-30 Sebastian Pop <sebastian.pop@amd.com> | |
7540 | Jan Sjodin <jan.sjodin@amd.com> | |
7541 | ||
7542 | * graphite.c (create_empty_loop): Renamed graphite_create_new_loop. | |
7543 | (graphite_loop_to_gcc_loop): Removed. | |
7544 | (remove_all_edges): New. | |
7545 | (graphite_stmt_to_gcc_stmt): Renamed translate_clast. | |
7546 | (gloog): Remove useless code. | |
7547 | ||
7548 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7549 | ||
7550 | * graphite.c (get_bb_type): Reworked. We distinguish between | |
7551 | loops with one or multiple exits. | |
7552 | (is_loop_exit): New. | |
7553 | (is_pred): New. | |
7554 | (is_bb_addable): Rework condition handling, now support for case | |
7555 | case statements and loops with multiple exits. | |
7556 | ||
6c9df8cb | 7557 | * gcc.dg/graphite/scop-11.c: New. |
7558 | * gcc.dg/graphite/scop-12.c: New. | |
7559 | * gcc.dg/graphite/scop-13.c: New. | |
c6bb733d | 7560 | |
7561 | 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7562 | ||
7563 | * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if | |
7564 | we have too many colors. | |
7565 | ||
7566 | 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in> | |
7567 | ||
7568 | * doc/invoke.texi (-ftree-loop-fusion): Document. | |
7569 | * tree-pass.h (pass_loop_fusion): Declared. | |
7570 | * tree-loop-fusion.c: New. | |
7571 | * timevar.def (TV_TREE_LOOP_FUSION): Declared. | |
7572 | * tree-data-ref.c (find_data_references_in_loop): Make extern. | |
7573 | * tree-data-ref.h (find_data_references_in_loop): Declared. | |
7574 | * common.opt (ftree-loop-fusion): Declared. | |
7575 | * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common. | |
7576 | ||
7577 | 2008-05-21 Sebastian Pop <sebastian.pop@amd.com> | |
7578 | ||
7579 | * graphite.c (build_access_matrix): Fix typo from the merge. | |
7580 | ||
7581 | 2008-05-20 Sebastian Pop <sebastian.pop@amd.com> | |
7582 | ||
7583 | * Merge from mainline (130800:135673). | |
7584 | ||
7585 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7586 | ||
7587 | * graphite.c (end_scop): The exit of the scop is not part of the scop. | |
7588 | Update dominators after splitting. | |
7589 | ||
7590 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7591 | ||
7592 | * graphite.c (is_bb_addable): Return the harmful statement. | |
7593 | Factor up some code. | |
7594 | (end_scop): New. Splits end of scope bbs on a harmful statement. | |
7595 | (build_scops_1): Call end_scop. | |
7596 | ||
7597 | 2008-05-07 Sebastian Pop <sebastian.pop@amd.com> | |
7598 | ||
7599 | * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p, | |
7600 | all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop, | |
7601 | add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop, | |
7602 | build_scops_1): Removed. | |
7603 | (build_scops_2): Renamed build_scops_1. | |
7604 | ||
7605 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
7606 | ||
7607 | * graphite.c: Fix formatting. | |
7608 | ||
7609 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7610 | ||
7611 | * graphite.c (get_bb_type): New. | |
7612 | (move_scops): New. | |
7613 | (build_scops_2): New. | |
7614 | (is_bb_addable): New. | |
7615 | (build_scops): Switch the scop detection. | |
7616 | (build_scop_bbs): Add entry bb to scop. | |
7617 | * graphite.h (struct scop): Update comment. | |
7618 | ||
7619 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7620 | ||
7621 | * graphite.c (dot_all_scops_1): Fix some incorrect colors and add | |
7622 | more colors. | |
7623 | ||
7624 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7625 | ||
6c9df8cb | 7626 | * gcc.dg/graphite/scop-1.c: Update. |
7627 | * gcc.dg/graphite/scop-2.c: Update. | |
7628 | * gcc.dg/graphite/scop-4.c: Update. | |
7629 | * gcc.dg/graphite/scop-5.c: Add. | |
7630 | * gcc.dg/graphite/scop-6.c: Add. | |
c6bb733d | 7631 | |
7632 | 2008-05-06 Sebastian Pop <sebastian.pop@amd.com> | |
7633 | ||
6c9df8cb | 7634 | * gcc.dg/graphite/scop-0.c: Add. |
7635 | * gcc.dg/graphite/scop-7.c: Add. | |
7636 | * gcc.dg/graphite/scop-8.c: Add. | |
7637 | * gcc.dg/graphite/scop-9.c: Add. | |
7638 | * gcc.dg/graphite/scop-10.c: Add. | |
c6bb733d | 7639 | |
7640 | 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de> | |
7641 | ||
7642 | * graphite.c (scop_affine_expr): Renamed to loop_affine_expr. | |
7643 | Check affine expressions depending on the outermost loop | |
7644 | instead of a scop. | |
7645 | (stmt_simple_for_scop_p): Same. | |
7646 | (harmfule_stmt_in_scop): Same. | |
7647 | ||
7648 | 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de> | |
7649 | ||
7650 | * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring, | |
7651 | mark entry and exit, that are not part of the SCoP and update HTML | |
7652 | formatting. | |
7653 | ||
7654 | 2008-04-25 Sebastian Pop <sebastian.pop@amd.com> | |
7655 | ||
7656 | * graphite.c (basic_block_simple_for_scop_p): Renamed | |
7657 | harmful_stmt_in_bb. | |
7658 | (save_scop, preds_at_same_depth, test_for_scop_bound): Removed. | |
7659 | (add_dominators_to_open_scops, build_scops_1): Reimplemented. | |
7660 | (all_preds_visited_p, all_succs_visited_p, | |
7661 | start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop, | |
7662 | scop_end_loop): New. | |
7663 | (build_scops): Do not use dfs_enumerate_from. | |
7664 | ||
6c9df8cb | 7665 | * gcc.dg/graphite/scop-{1,2,4}.c: Updated. |
c6bb733d | 7666 | |
7667 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
7668 | ||
7669 | * graphite.c: Add comments to functions that are missing a | |
7670 | description. | |
7671 | (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop. | |
7672 | ||
7673 | 2008-04-23 Sebastian Pop <sebastian.pop@amd.com> | |
7674 | ||
7675 | * graphite.c (nb_params_in_scop): Moved... | |
7676 | (graphite_bb_from_bb, loop_body_to_cloog_stmts): New. | |
7677 | (setup_cloog_loop): Call loop_body_to_cloog_stmts. | |
7678 | (clast_to_gcc_expression): Reduce column size to less than 80. | |
7679 | (graphite_create_iv): Return the new name of the IV. | |
7680 | (find_transform): Set options->esp and options->cpp. | |
7681 | (gloog): Comment out the invalidation of the old loop code. | |
7682 | (initialize_dependence_polyhedron): Replace scop_nb_params with | |
7683 | nb_params_in_scop. | |
7684 | ||
7685 | * graphite.h (nb_params_in_scop): ... here. | |
7686 | (scop_nb_params): Removed. | |
7687 | (loop_domain_dim): Return something even when the loop was not | |
7688 | found in the hash table: avoid ICEing on all the graphite.exp | |
7689 | testcases. | |
7690 | ||
7691 | 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7692 | ||
7693 | * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands. | |
7694 | ||
7695 | * graphite.c (build_scop_dynamic_schedules): Schedule is built | |
7696 | according to nesting level. | |
7697 | (find_scop_parameters): Call instantiate_parameters. | |
7698 | (scan_tree_for_params): Extend it to handle general affine bounds. | |
7699 | Inner loop bound can depend on outer loop induction variable. | |
7700 | (setup_cloog_loop): tmp variable is allocated on stack. Call | |
7701 | instantiate_parameters with respect to outermost_loop_in_scop. | |
7702 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to | |
7703 | graphite.h. | |
7704 | (create_empty_loop): Function loopify should be given edge | |
7705 | probability, instead of edge frequency. Dominance relation from | |
7706 | switch_bb to loop_header. | |
7707 | (clast_to_gcc_expression): Added handling of clast_reduction node. | |
7708 | (gloog): New functionality for removing old loop. | |
7709 | (test_dependence): Factored out from build_rdg_all_levels. | |
7710 | (build_rdg_all_levels): Dependence testing factored out to | |
7711 | test_dependence function. | |
7712 | ||
7713 | * graphite.h (struct graphite_bb): Extended with dynamic_schedule. | |
7714 | (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved | |
7715 | from graphite.c | |
7716 | ||
7717 | 2008-04-07 Sebastian Pop <sebastian.pop@amd.com> | |
7718 | ||
7719 | * graphite.c (free_scop, param_index, initialize_cloog_names, | |
7720 | nb_params_in_scop): Use name_tree map instead of just a tree | |
7721 | for keeping track of the variable name associated to that tree. | |
7722 | (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc, | |
7723 | clast_to_gcc_expression, graphite_create_iv, | |
7724 | graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond, | |
7725 | graphite_stmt_to_gcc_stmt): New. | |
7726 | (gloog): Call these. | |
7727 | * graphite.h (struct name_tree): New. | |
7728 | (struct scop): Use name_tree instead of tree for params. | |
7729 | Store a vector of name_tree for new_ivs. | |
7730 | (SCOP_NEWIVS): New. | |
7731 | (scop_nb_params): Use name_tree instead of tree. | |
7732 | ||
7733 | 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk> | |
7734 | Sebastian Pop <sebastian.pop@amd.com> | |
7735 | ||
7736 | * tree-bounds.c: New. | |
7737 | * tree-bounds.h: New. | |
7738 | * tree-pass.h: Declare pass_bounds_early and pass_bounds_late. | |
7739 | * passes.c: Schedule pass_bounds_early, pass_bounds_late. | |
7740 | * builtins.c (expand_builtin_alloca): Add flag_bounds as for | |
7741 | flag_mudflap. | |
7742 | * gcc.c: Same. | |
7743 | * toplev.c: Same. | |
7744 | * c-cppbuiltin.c: Same. | |
7745 | * c-pragma.c: Same. | |
7746 | * common.opt: Same. | |
7747 | * varasm.c: Same. | |
7748 | * tree-outof-ssa.c: Same. | |
7749 | * c-common.c: Same. | |
7750 | * Makefile.in: Same. | |
7751 | ||
7752 | 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com> | |
7753 | Sebastian Pop <sebastian.pop@amd.com> | |
7754 | ||
7755 | * tree-loop-distribution.c (remaining_stmts, | |
7756 | upstream_mem_writes): Removed static variables. | |
7757 | (copy_loop_before, create_bb_after_loop, | |
7758 | mark_nodes_having_upstream_mem_writes, free_rdg_components, | |
7759 | rdg_build_components, rdg_build_partitions, | |
7760 | dump_rdg_partitions): Extern. | |
7761 | (generate_loops_for_partition, generate_code_for_partition): Do not | |
7762 | return a bool. | |
7763 | (already_processed_vertex_p, predecessor_has_mem_write, | |
7764 | mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes, | |
7765 | rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent, | |
7766 | rdg_flag_loop_exits, rdg_flag_similar_memory_accesses, | |
7767 | build_rdg_partition_for_component, rdg_build_partitions, ldist_gen): | |
7768 | Pass remaining_stmts and upstream_mem_writes as parameters. | |
7769 | (rdg_component): Moved... | |
7770 | (build_rdg_partition_for_component): Do not aggregate components when | |
7771 | flag_streamize_loops is set. | |
7772 | (gen_sequential_loops): New. | |
7773 | (ldist_gen): Call gen_sequential_loops. | |
7774 | ||
7775 | * tree-pass.h (pass_loop_streamization): Declared. | |
7776 | ||
7777 | * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created | |
7778 | basic blocks when loops structures exist. | |
7779 | ||
7780 | * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New. | |
7781 | ||
7782 | * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New. | |
7783 | ||
7784 | * tree-parloops.c (take_address_of, eliminate_local_variables_1, | |
7785 | eliminate_local_variables_stmt, eliminate_local_variables, | |
7786 | separate_decls_in_loop_name, separate_decls_in_loop_stmt, | |
7787 | separate_decls_in_loop, gen_parallel_loop): Make them work on a region | |
7788 | of code delimited by two edges in the CFG. | |
7789 | (separate_decls_in_loop_name): Renamed separate_decls_in_region_name. | |
7790 | (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt. | |
7791 | (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate | |
7792 | the case of parallelisation of reductions. | |
7793 | (create_loop_fn): Extern. | |
7794 | (create_omp_parallel_region): New. | |
7795 | ||
7796 | * tree-data-ref.c (dump_data_dependence_relation): Don't call | |
7797 | dump_data_reference for printing dra and drb. | |
7798 | (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise | |
7799 | RDGE_RELATION. | |
7800 | (build_rdg): Don't call free_dependence_relations for the moment, as | |
7801 | we attach dependence relations on each edge of the RDG. | |
7802 | To be fixed later. | |
7803 | ||
7804 | * tree-data-ref.h (rdg_component): ...here. | |
7805 | (struct rdg_edge): New field ddr_p relation. | |
7806 | (RDGE_RELATION): New. | |
7807 | (create_bb_after_loop, copy_loop_before, | |
7808 | mark_nodes_having_upstream_mem_writes, rdg_build_components, | |
7809 | rdg_build_partitions, dump_rdg_partitions, | |
7810 | free_rdg_components): Declared. | |
7811 | ||
7812 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH, | |
7813 | BUILT_IN_GOMP_STREAM_ALIGN_POP): New. | |
7814 | ||
7815 | * tree-loop-streamization.c: New. | |
7816 | ||
7817 | * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn, | |
7818 | create_omp_parallel_region, expr_invariant_in_region_p): Declared. | |
7819 | ||
7820 | * Makefile.in (tree-loop-streamization.o): Added to OBJS-common. | |
7821 | ||
7822 | * tree-cfg.c (gather_blocks_in_sese_region): Extern. | |
7823 | ||
7824 | * passes.c: Schedule pass_loop_streamization. | |
7825 | ||
7826 | 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7827 | ||
7828 | * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and | |
7829 | update comment. | |
7830 | ||
7831 | 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de> | |
7832 | ||
7833 | * graphite.c (dot_all_scops): Update formatting. | |
7834 | Bbs can now be part of more than one SCoP. | |
7835 | ||
7836 | 2008-03-04 Sebastian Pop <sebastian.pop@amd.com> | |
7837 | ||
7838 | * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix | |
7839 | malloc problems. | |
7840 | (loop_domain_dim): Check for unregistered toplev SCOP loop. | |
7841 | * graphite.h (loop_to_cloog_loop): New. | |
7842 | ||
7843 | 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7844 | ||
7845 | * graphite.c (loop_domain_dim, ref_nb_loops, | |
7846 | loop_iteration_vector_dim): New. | |
7847 | (build_access_matrix_with_af, build_access_matrix, | |
7848 | initialize_dependence_polyhedron): Fixed for new matrix layout. | |
7849 | No longer assume that all iteration domains are of the same | |
7850 | dimensionality. | |
7851 | ||
7852 | 2008-03-02 Sebastian Pop <sebastian.pop@amd.com> | |
7853 | ||
7854 | * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME | |
7855 | defined in a loop at depth 0 is invariant. | |
7856 | * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto. | |
7857 | * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never | |
7858 | be called at loop depth 0. | |
7859 | ||
7860 | * graphite.c (basic_block_simple_for_scop_p): Take the scop as | |
7861 | a parameter. | |
7862 | (dot_all_scops_1): Update use of basic_block_simple_for_scop_p. | |
7863 | (down_open_scop): Removed. | |
7864 | (loop_in_scop_p): Redefined. | |
7865 | (scop_affine_expr): New argument: scop. | |
7866 | (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not | |
7867 | a harmful statement ending a scop. | |
7868 | (basic_block_simple_for_scop_p): New argument: scop. | |
7869 | (get_loop_start): Removed. | |
7870 | (new_scop): Initialize SCOP_LOOPS. | |
7871 | (free_scop): Free SCOP_LOOPS. | |
7872 | (succs_at_same_depth, preds_at_same_depth): New. | |
7873 | (end_scop): Test the validity of a scop. | |
7874 | (add_dominators_to_open_scops): New. | |
7875 | (test_for_scop_bound): Call add_dominators_to_open_scops. | |
7876 | Add cases for opening and closing multiple scops. | |
7877 | (build_scops, build_scop_bbs): Iterate over basic blocks in | |
7878 | depth first order. | |
7879 | (build_graphite_bb): Pass scop directly. | |
7880 | (dfs_bb_in_scop_p): New. | |
7881 | (scop_record_loop): Use SCOP_LOOPS for not recording the same loop | |
7882 | several times. | |
7883 | (nb_loops_around_gb): Use loop_in_scop_p. | |
7884 | (schedule_to_scattering): Disabled for the moment the code computing | |
7885 | the "textual order for outer loop". | |
7886 | ||
7887 | * graphite.h (struct scop): New field loops. | |
7888 | (SCOP_LOOPS): New. | |
7889 | (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS. | |
7890 | ||
6c9df8cb | 7891 | * gcc.dg/graphite/scop-{1,...,7}.c: Updated. |
c6bb733d | 7892 | |
7893 | 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com> | |
7894 | Sebastian Pop <sebastian.pop@amd.com> | |
7895 | ||
7896 | * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New. | |
7897 | * common.opt (fstreamize-loops): New. | |
7898 | * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE, | |
7899 | BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD, | |
7900 | BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P, | |
7901 | BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New. | |
7902 | ||
7903 | 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7904 | ||
7905 | * tree-data-ref.c (build_empty_rdg): New. | |
7906 | (build_rdg): Use it. | |
7907 | * tree-data-ref.h (build_empty_rdg): Declared. | |
7908 | * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP. | |
7909 | (find_vertex_for_stmt): Removed. | |
7910 | (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt. | |
7911 | ||
7912 | 2008-02-21 Sebastian Pop <sebastian.pop@amd.com> | |
7913 | ||
7914 | * tree-loop-distribution.c (generate_builtin): After cancelling the | |
7915 | loop tree, also delete basic blocks. | |
7916 | (rdg_flag_uses): Stop recursion when a vertex has already been | |
7917 | processed. | |
7918 | ||
7919 | 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7920 | ||
7921 | * graphite.c (build_scop_alpha): Removed. | |
7922 | (graphite_transform_loops): Add a dummy call to build_all_rdg_levels | |
7923 | and dump_dependence_graph to avoid compiler warnings. | |
7924 | ||
7925 | 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7926 | ||
7927 | * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern. | |
7928 | * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared. | |
7929 | * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop, | |
7930 | eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New. | |
7931 | (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP. | |
7932 | (initialize_dependence_polyhedron, find_vertex_for_stmt, | |
7933 | initialize_data_dependence_polyhedron, is_empty_polyhedron, | |
7934 | statement_precedes_p, build_rdg_all_levels, build_scop_alpha, | |
7935 | dump_dependence_graph): New. | |
7936 | * graphite.h (struct graphite_bb): New field compressed_alpha_matrix. | |
7937 | (GBB_ALPHA): New. | |
7938 | (struct scop): New field loop2cloog_loop. | |
7939 | (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron, | |
7940 | RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New. | |
7941 | ||
7942 | 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
7943 | ||
7944 | * graphite.c (build_graphite_bb): Fix initialization | |
7945 | of the graphite basic block. | |
7946 | ||
7947 | 2008-02-05 Sebastian Pop <sebastian.pop@amd.com> | |
7948 | ||
7949 | * graphite.c (scan_tree_for_params): Rewrite for the new layout of | |
7950 | loop domain matrix. Pass in the number of loops contained in the | |
7951 | constraint matrix. | |
7952 | (nb_loops_around_gb): Moved before setup_cloog_loop that uses it. | |
7953 | (setup_cloog_loop): Rewrite for the new layout of loop domain matrix: | |
7954 | loops that are not surrounding the current loop are not represented | |
7955 | in the domain constraint matrix. | |
7956 | (build_scop_iteration_domain): Initial domain constraint matrix | |
7957 | contains only the eq/ineq, cst, and scop parameters columns. | |
7958 | ||
7959 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7960 | ||
7961 | * graphite.c (schedule_to_scattering, nb_loops_around_gb): New. | |
7962 | (print_graphite_bb): Print scattering. | |
7963 | ||
7964 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7965 | ||
7966 | * graphite.c (initialize_cloog_names): Initialize names of | |
7967 | scattering variables. | |
7968 | ||
7969 | 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7970 | ||
7971 | * graphite.c (dot_all_scops_1): Disable debug output while | |
7972 | printing graph. | |
7973 | ||
7974 | 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de> | |
7975 | ||
7976 | * graphite.c (find_transform): Change cloog output language to C. | |
7977 | ||
7978 | 2008-01-27 Sebastian Pop <sebastian.pop@amd.com> | |
7979 | ||
7980 | * tree-loop-distribution.c (generate_memset_zero, | |
7981 | generate_builtin, generate_code_for_partition, | |
7982 | rdg_flag_all_uses): New. | |
7983 | (rdg_flag_uses): Gather in the same partition the statements defining | |
7984 | the VUSES of the current statement. | |
7985 | (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses. | |
7986 | Gather in the same partition not only the stores to the same memory | |
7987 | access, but also the reads. | |
7988 | (ldist_generate_loops): Renamed ldist_gen. | |
7989 | ||
7990 | 2008-01-24 Sebastian Pop <sebastian.pop@amd.com> | |
7991 | Tobias Grosser <grosser@fmi.uni-passau.de> | |
7992 | ||
7993 | * graphite.c (setup_cloog_loop): Chain all cloog loops with the | |
7994 | next pointer, don't use the inner pointer. | |
7995 | ||
7996 | 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de> | |
7997 | ||
7998 | * graphite.c (dot_all_scops, dot_all_scops_1): New. | |
7999 | (find_transform): Call dot_all_1. | |
8000 | * graphite.h (dot_all_scops): Declared. | |
8001 | ||
8002 | 2007-12-14 Sebastian Pop <sebastian.pop@amd.com> | |
8003 | ||
8004 | * tree-loop-distribution.c: Fix apsi.f ICE. | |
8005 | (create_bb_after_loop): New. | |
8006 | (generate_loops_for_partition): Use it. | |
6c9df8cb | 8007 | * gfortran.dg/ldist-1.f90: New. |
c6bb733d | 8008 | |
8009 | * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format. | |
8010 | * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format. | |
8011 | ||
8012 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
8013 | ||
8014 | * graphite.c (find_transform): Dump cloog program sent to cloog. | |
8015 | ||
8016 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
8017 | ||
8018 | * graphite.c (initialize_cloog_names): Initialize cloog | |
8019 | iterator names. | |
8020 | ||
8021 | 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de> | |
8022 | ||
8023 | * graphite.c (build_scop_context): Fix typo, for the matrix | |
8024 | format: insert '0 >= 0' instead of '-1 >= 0'. | |
8025 | ||
8026 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
8027 | ||
8028 | * Fix merge problems. | |
8029 | ||
8030 | 2007-12-13 Sebastian Pop <sebastian.pop@amd.com> | |
8031 | ||
8032 | * graphite.c (setup_cloog_loop): Fix typo. | |
8033 | ||
8034 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
8035 | ||
8036 | * doc/invoke.texi (-ftree-loop-distribution): Documented. | |
8037 | * tree-loop-distribution.c: Reimplemented. | |
8038 | * tree-pass.h (pass_loop_distribution): New. | |
8039 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use | |
8040 | print_loops. | |
8041 | * graphds.h (struct graph): New field indexes. | |
8042 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
8043 | ||
8044 | * tree-vect-analyze.c: Remove declaration of static functions when not | |
8045 | needed. | |
8046 | * tree-vectorizer.c: Same. | |
8047 | (rename_variables_in_loop): Now extern. | |
8048 | (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed | |
8049 | tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after | |
8050 | calling redirect_edge_and_branch_force. | |
8051 | ||
8052 | * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared. | |
8053 | ||
8054 | * tree-data-ref.c: Don't include tree-chrec.h. | |
8055 | (debug_data_dependence_relations): New. | |
8056 | (dump_data_dependence_relation): Call dump_data_reference on data refs | |
8057 | in the relation. | |
8058 | (same_access_functions): Moved... | |
8059 | (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt. | |
8060 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
8061 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg, | |
8062 | struct rdg_vertex_info, ): New. | |
8063 | (create_rdg_edge_for_ddr): Compute the dependence level before looking | |
8064 | at DDR_REVERSED_P. | |
8065 | (create_rdg_vertices): Initialize the htab of graph->indexes. | |
8066 | Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT. | |
8067 | (stmts_from_loop): Don't save LABEL_EXPR. | |
8068 | (hash_stmt_vertex_info, eq_stmt_vertex_info, | |
8069 | hash_stmt_vertex_del): New. | |
8070 | (build_rdg): Initialize rdg->indexes. | |
8071 | (free_rdg, stores_from_loop, ref_base_address, | |
8072 | rdg_defs_used_in_other_loops_p, have_similar_memory_accesses, | |
8073 | have_similar_memory_accesses_1, ref_base_address_1, | |
8074 | remove_similar_memory_refs): New. | |
8075 | ||
8076 | * tree-data-ref.h: Include tree-chrec.h. | |
8077 | (debug_data_dependence_relations): Declared. | |
8078 | (same_access_functions): ...here. Now static inline. | |
8079 | (ddr_is_anti_dependent, ddrs_have_anti_deps, | |
8080 | ddr_dependence_level): New. | |
8081 | (struct rdg_vertex): New fields has_mem_write, has_mem_reads. | |
8082 | (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT, | |
8083 | RDG_MEM_READS_STMT): New. | |
8084 | (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component, | |
8085 | debug_rdg_component, dump_rdg, debug_rdg, dot_rdg, | |
8086 | rdg_vertex_for_stmt): Declared. | |
8087 | (struct rdg_edge): New field level. | |
8088 | (RDGE_LEVEL, free_rdg): New. | |
8089 | (stores_from_loop, remove_similar_memory_refs, | |
8090 | rdg_defs_used_in_other_loops_p, | |
8091 | have_similar_memory_accesses): Declared. | |
8092 | (rdg_has_similar_memory_accesses): New. | |
8093 | ||
8094 | * lambda.h (dependence_level): New. | |
8095 | * common.opt (ftree-loop-distribution): New. | |
8096 | * tree-flow.h (debug_loop_ir): Renamed debug_loops. | |
8097 | (print_loop_ir): Renamed print_loops. | |
8098 | (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb, | |
8099 | tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared. | |
8100 | * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h. | |
8101 | (tree-loop-distribution.o): Added. | |
8102 | * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb. | |
8103 | (mark_virtual_ops_in_bb): New. | |
8104 | (print_loops_bb, debug_loop_num, debug_loop): New. | |
8105 | * passes.c: Scheduled pass_loop_distribution. | |
8106 | ||
8107 | 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr> | |
8108 | ||
8109 | * graphite.c (scan_tree_for_params): Correct the number of columns | |
8110 | for polylib format. | |
8111 | (nb_flat_iterator): New. | |
8112 | (setup_cloog_loop): Initialize to 1 the first column for inequalities. | |
8113 | (build_scop_iteration_domain): Correct the number of columns for | |
8114 | polylib format. | |
8115 | ||
8116 | 2007-12-12 Sebastian Pop <sebastian.pop@amd.com> | |
8117 | ||
8118 | * Merge from mainline (129697:130800). | |
8119 | ||
8120 | 2007-10-30 Sebastian Pop <sebastian.pop@amd.com> | |
8121 | ||
8122 | * graphite.c (build_graphite_bb): SCoP's basic blocks are post | |
8123 | dominated by SCoP's exit. | |
8124 | (graphite_transform_loops): Compute post dominators. | |
8125 | ||
8126 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
8127 | ||
8128 | * Merge from mainline (127169:129697). | |
8129 | ||
8130 | 2007-10-28 Sebastian Pop <sebastian.pop@amd.com> | |
8131 | ||
8132 | * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra | |
8133 | parameter for the basic block that contains the expression. Use | |
8134 | outermost_loop_in_scop for evolution_function_is_affine_multivariate_p. | |
8135 | (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of | |
8136 | the expression. | |
8137 | * graphite.h (gbb_loop): New. | |
8138 | (GBB_LOOP): Removed. | |
8139 | ||
8140 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
8141 | ||
8142 | * Makefile.in: Fix merge problem. | |
8143 | ||
8144 | 2007-08-03 Sebastian Pop <sebpop@gmail.com> | |
8145 | ||
8146 | * Merge from mainline (125309:127169). | |
8147 | * tree-loop-distribution.c: Disabled. | |
8148 | ||
8149 | 2007-06-05 Sebastian Pop <sebpop@gmail.com> | |
8150 | ||
8151 | * Merge from mainline (r123693:125309). | |
8152 | ||
8153 | 2007-05-30 Sebastian Pop <sebpop@gmail.com> | |
8154 | ||
8155 | * tree-loop-distribution.c (correct_modify_expr_p): Renamed | |
8156 | correct_modify_p | |
8157 | (correct_modify_p, check_statements, number_of_lvalue_uses, | |
8158 | number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT | |
8159 | instead of MODIFY_EXPR. | |
8160 | (update_edge_with_ddv): Don't pass index_of_edge. Initialize | |
8161 | and push new edges. | |
8162 | ||
8163 | 2007-05-24 Sebastian Pop <sebpop@gmail.com> | |
8164 | ||
8165 | * tree-loop-distribution.c (struct rdg): Replace arrays by | |
8166 | VECs for edges and vertices. | |
8167 | (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed. | |
8168 | (RDGV_NB_PARTITIONS): New. | |
8169 | (PRDG_NBV, PRDG_NBE): Removed. | |
8170 | (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg, | |
8171 | dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg, | |
8172 | number_of_scalar_dependences, create_edges, build_rdg): Use VECs. | |
8173 | ||
8174 | 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr> | |
8175 | Sebastian Pop <sebpop@gmail.com> | |
8176 | ||
8177 | * doc/invoke.texi (-ftree-loop-distribution): Document. | |
8178 | * tree-loop-distribution.c: New file. | |
8179 | * tree-pass.h (pass_loop_distribution): Declared. | |
8180 | * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New. | |
8181 | * tree-data-ref.c (initialize_data_dependence_relation): Initialize | |
8182 | and set reversed_p. | |
8183 | * tree-data-ref.h (data_dependence_relation): Add reversed_p. | |
8184 | (DDR_REVERSED_P): New. | |
8185 | * common.opt (-ftree-loop-distribution): New. | |
8186 | * tree-flow.h (distribute_loops): Declared. | |
8187 | * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o. | |
8188 | * passes.c (init_optimization_passes): Schedule loop distribution. | |
8189 | ||
8190 | 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8191 | ||
8192 | * graphite.c (print_graphite_bb): Don't call dump_data_references. | |
8193 | (print_scop): Don't print when scop is NULL. | |
8194 | (build_scop_context, find_transform): Don't output to stderr. | |
8195 | ||
8196 | 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr> | |
8197 | ||
8198 | * tree-data-ref.c: Don't include graphite.h. | |
8199 | Comment out the code for printing data reference's scop. | |
8200 | (build_access_matrix_with_af): Moved... | |
8201 | * tree-data-ref.h (build_access_matrix_with_af): Removed declaration. | |
8202 | * graphite.c (build_access_matrix_with_af): ... here. Now static. | |
8203 | (print_graphite_bb): Print basic block's schedule. | |
8204 | (print_scop): Don't print the schedule, call cloog's pretty printer. | |
8205 | (bb_in_scop_p): A basic block is in a scop only if it is both | |
8206 | dominated and postdominated by the scop's entry and exit basic blocks. | |
8207 | (function_parameter_p): New. | |
8208 | (invariant_in_scop_p): Use function_parameter_p. | |
8209 | (new_scop, save_scop): New. | |
8210 | (end_scop, test_for_scop_bound, build_scops): Use new_scop, and | |
8211 | save_scop. | |
8212 | (scan_tree_for_params): Directly build the constraint as CloogMatrix. | |
8213 | (loop_in_scop_p): New. | |
8214 | (scop_record_loop): Use loop_in_scop_p. | |
8215 | (build_scop_domain): Renamed build_scop_iteration_domain. | |
8216 | (setup_cloog_loop, initialize_cloog_names, find_scop_parameters, | |
8217 | nb_params_in_scop, build_scop_context, first_loop_in_scop, | |
8218 | setup_cloog_loop, dot_scop_1, dot_scop): New. | |
8219 | * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New. | |
8220 | (struct scop): Add a pointer to cloog's representation of a program. | |
8221 | ||
8222 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
8223 | ||
8224 | * doc/invoke.texi (-ftree-check-verbose): Renamed | |
8225 | -ftree-checks-verbose. | |
8226 | * common.opt (flag_tree_check_verbose): Renamed | |
8227 | flag_tree_checks_verbose. | |
8228 | * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose. | |
8229 | ||
8230 | 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr> | |
8231 | ||
8232 | * configure: Regenerated. | |
8233 | * config.in: Regenerated. | |
8234 | * tree-ssa-loop.c (graphite_transforms): Execute | |
8235 | graphite_transform_loops only when HAVE_cloog. | |
8236 | * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined. | |
8237 | * graphite.c: Include polylibgmp.h and cloog.h. | |
8238 | (graphite_transform_loops): Removed loops parameter. | |
8239 | * tree-flow.h (graphite_transform_loops): Update declaration. | |
8240 | * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New. | |
8241 | (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS. | |
8242 | (INCLUDES): Depend on POLYLIBINC and on CLOOGINC. | |
8243 | (OBJS-common): Remove dependence on graphite.o. | |
8244 | (BACKEND): Depend on @GRAPHITE@. | |
8245 | ||
8246 | 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr> | |
8247 | ||
8248 | * doc/invoke.texi (-ftree-check-verbose): Documented. | |
6c9df8cb | 8249 | * gcc.dg/tree-checker/tree-checks-1.c: New. |
8250 | * gcc.dg/tree-checker/tree-checks-2.c: New. | |
8251 | * gcc.dg/tree-checker/tree-checks-3.c: New. | |
8252 | * gcc.dg/tree-checker/tree-checks-4.c: New. | |
8253 | * gcc.dg/tree-checker/tree-checks.exp: New. | |
8254 | * gcc.dg/tree-checker/condates.crp: New. | |
c6bb733d | 8255 | * common.opt (ftree-checks-verbose): New. |
8256 | * tree-check.c (tree_check_warning): Move extra stderr output | |
8257 | under control of flag_tree_check_verbose. | |
8258 | ||
8259 | 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8260 | ||
8261 | * tree-match.c: Fix comments formatting. | |
8262 | * tree-match.h: Fix comments formatting. | |
8263 | * tree-check.c: Fix comments formatting. | |
8264 | (tree_check_init): Restructure. | |
8265 | ||
8266 | 2007-04-12 Nic Volanschi <nic.volanschi@free.fr> | |
8267 | ||
8268 | * doc/invoke.texi (-ftree-check, -ftree-checks): Documented. | |
8269 | ||
8270 | 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr> | |
8271 | ||
8272 | * Merge from mainline (r120733:123693). | |
8273 | ||
8274 | 2007-03-20 Nic Volanschi <nic.volanschi@free.fr> | |
8275 | ||
8276 | * condate.y: New file. | |
8277 | * tree-match.h (struct patt_info_s): New field sign. | |
8278 | (struct condate_s): New field msg. | |
8279 | (normalize_condate, name_condate, add_condate): New. | |
8280 | (conds[], condate_parse): Made extern. | |
8281 | * tree-check.c (tree_check_warning): First arg changed to cond; | |
8282 | warning reformatted. | |
8283 | (tree_check_init): Reset the TREE_VISITED bit on every CFG node. | |
8284 | (tree_scan): New. | |
8285 | (tree_check): Process trivial condates. | |
8286 | (read_delimited_string): Removed. | |
8287 | (print_cond): Print name and msg. | |
8288 | (conds[]): Made extern. | |
8289 | (parse_tree_check_file_once): Rewritten to use the parser in | |
8290 | condate.y. | |
8291 | Processing of option --tree_check_string moved to tree_scan(). | |
8292 | * Makefile.in: Added condate.y | |
8293 | ||
8294 | 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8295 | ||
8296 | * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node): | |
8297 | Use VECs instead of varrays. | |
8298 | * diagnostic.h (lazy_dump_generic_node): Update declaration. | |
8299 | * Makefile.in (pretty-print.o): Depend on vec.h. | |
8300 | * pretty-print.c: Include tree.h and vec.h. | |
8301 | (pp_clear_state, pp_write_list_to_stream, pp_base_format, | |
8302 | pp_base_format, pp_construct, pp_base_string, pp_lazy_mode, | |
8303 | new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list, | |
8304 | pp_free_list): Use VECs instead of varrays. | |
8305 | * pretty-print.h: Do not include varray.h. | |
8306 | (struct tree_chunk_s): Declaration moved before its use. | |
8307 | (output_buffer): Rename varray field to chunks. | |
8308 | * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead, | |
8309 | tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo, | |
8310 | save_global_holes): Use VECs instead of varrays. | |
8311 | * tree-match.h: Declare VECs of cfg_node, and hole_p. | |
8312 | * tree-check.c (scan_cfg_stmts, push_node, | |
8313 | print_matching_stmt): Removed. | |
8314 | (tree_check_instance, push_global_holes_if_new, tree_check, | |
8315 | execute_tree_check): Use VECs instead of varrays. | |
8316 | (gate_tree_check): Don't execute the CFG check when basic_block_info | |
8317 | is not available. | |
8318 | ||
8319 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8320 | ||
8321 | * Merge from mainline (r115016:120733). | |
8322 | ||
8323 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8324 | ||
8325 | * Merge from mainline (r117632:117661). | |
8326 | ||
8327 | 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8328 | ||
8329 | * tree-dump.c (dump_option_value_in): Add TDF_DEBUG. | |
8330 | * tree-pass.h (TDF_DEBUG, debug_p): New. | |
8331 | * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution, | |
8332 | get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop, | |
8333 | get_loop_exit_condition, analyze_evolution_in_loop, | |
8334 | analyze_initial_condition, analyze_scalar_evolution, | |
8335 | instantiate_parameters, number_of_latch_executions): Use debug_p. | |
8336 | * tree-chrec.c (chrec_apply): Use debug_p. | |
8337 | * tree-data-ref.c: Include graphite.h. | |
8338 | (dump_data_reference): Print also the access matrix. | |
8339 | (analyze_array, analyze_indirect_ref, init_data_ref, | |
8340 | analyze_offset_expr, address_analysis, object_analysis, | |
8341 | create_data_ref, finalize_ddr_dependent, | |
8342 | non_affine_dependence_relation, analyze_ziv_subscript, | |
8343 | analyze_siv_subscript_cst_affine, | |
8344 | compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine, | |
8345 | can_use_analyze_subscript_affine_affine, analyze_siv_subscript, | |
8346 | analyze_miv_subscript, analyze_overlapping_iterations, | |
8347 | build_classic_dist_vector, subscript_dependence_tester, | |
8348 | compute_affine_dependence, analyze_all_data_dependences): Use debug_p. | |
8349 | (build_access_matrix_with_af): No longer static. | |
8350 | * tree-data-ref.h (scop_p): ... declaration here. | |
8351 | (data_reference.scop): New field. | |
8352 | (DR_SCOP, DR_ACCESS_MATRIX): New. | |
8353 | (build_access_matrix_with_af, dr_num_subscripts): Declared. | |
8354 | * graphite.c (print_graphite_bb): Call dump_data_references. | |
8355 | (print_scop): Use scop_nb_loops and scop_dim_domain. | |
8356 | (test_for_scop_bound): Use debug_p. | |
8357 | (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and | |
8358 | scop_nb_params. | |
8359 | (scop_loop_index): Moved... | |
8360 | (scop_record_loop): New. | |
8361 | (build_scop_loop_nests): Use scop_record_loop. | |
8362 | (build_scop_domain): Use scop_dim_domain. | |
8363 | (build_access_matrix): Implemented. | |
8364 | (build_scop_canonical_schedules): Use scop_nb_loops. | |
8365 | (build_graphite_bb): Initialize GBB_SCOP. | |
8366 | * graphite.h (scop_p): Moved... | |
8367 | (graphite_bb.scop): New field. | |
8368 | (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params, | |
8369 | scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS, | |
8370 | SCOP_DIM_DOMAIN, SCOP_STMTS): Removed. | |
8371 | (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain, | |
8372 | scop_loop_index): New. | |
8373 | * Makefile.in (tree-data-ref.o): Depends on graphite.h. | |
8374 | ||
8375 | 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr> | |
8376 | ||
8377 | * Merge from mainline (r117661:120450). | |
8378 | ||
8379 | 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr> | |
8380 | ||
8381 | * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop | |
8382 | at the first declaration outside the varying loop, instantiate as | |
8383 | far as possible. | |
8384 | * tree-chrec.c (for_each_scev_op): New. | |
8385 | * tree-chrec.h (for_each_scev_op): Declared. | |
8386 | * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function. | |
8387 | * tree-data-ref.c (get_references_in_stmt, | |
8388 | find_data_references_in_stmt): New, from trunk. | |
8389 | (find_data_references_in_loop): Use get_references_in_stmt | |
8390 | and find_data_references_in_loop, modified as in trunk. | |
8391 | (build_access_matrix_with_af): New. | |
8392 | * tree-data-ref.h (data_reference): Add a field access_matrix. | |
8393 | (data_ref_loc): New, as in trunk. | |
8394 | * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p, | |
8395 | invariant_in_scop_p, param_index, scan_tree_for_params, | |
8396 | scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data, | |
8397 | idx_record_param, idx_record_params, build_access_matrix, | |
8398 | build_scop_data_accesses, build_scop_canonical_schedules, | |
8399 | build_graphite_bb, build_scop_bbs, find_params_in_bb, | |
8400 | build_scop_params): New. | |
8401 | * graphite.h (graphite_bb): New. | |
8402 | (scop): Add fields static_schedule, params, loop_nest, | |
8403 | iteration_domain. | |
8404 | * lambda.h: Declare vecs of lambda_matrix. | |
8405 | * tree-flow.h (print_loop_ir_bb): Declared. | |
8406 | * tree-cfg.c (print_loop_ir_bb): New. | |
8407 | (print_loop): Use print_loop_ir_bb. | |
8408 | ||
8409 | 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr> | |
8410 | ||
8411 | * Merge from mainline (r115016:117632). | |
8412 | ||
8413 | 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr> | |
8414 | ||
8415 | * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap | |
8416 | break due to a warning. | |
8417 | ||
8418 | 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr> | |
8419 | ||
8420 | * graphite.c (print_scops, debug_scops): New. | |
8421 | (graphite_transform): Renamed graphite_find_transform. | |
8422 | * graphite.h (debug_scops): Declared. | |
8423 | ||
8424 | 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr> | |
8425 | ||
8426 | * tree-match.c: Reformat following the GNU style. | |
8427 | * tree-match.h: Reformat following the GNU style. | |
8428 | * tree-pattern.h: Removed empty file. | |
8429 | * Makefile.in: Remove references to tree-pattern.h. | |
8430 | * tree-check.c: Reformat following the GNU style. | |
8431 | (execute_tree_check): Move gate condition code to... | |
8432 | (gate_tree_check): ...here. New function. | |
8433 | (pass_check): Use the gate function. | |
8434 | ||
8435 | 2006-07-04 Nic Volanschi <nic.volanschi@free.fr> | |
8436 | ||
8437 | * tree-pattern.h: New. Tree pattern matching and checking using | |
8438 | concrete syntax. | |
8439 | * tree-check.c: New. Tree/CFG checking pass. | |
8440 | * tree-match.c: New. Library for tree pattern matching. | |
8441 | * opts.c, common.opt: Add options --ftree-check & --ftree-checks. | |
8442 | * toplev.c, flags.h: Add globals for tree-check pass. | |
8443 | * Makefile.in: Integrate the files in tree-check pass. | |
8444 | * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass. | |
8445 | * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h: | |
8446 | Introduce a "lazy" pretty-print mode. | |
8447 | * tree.c, tree.h: Add tree_name. | |
8448 | ||
8449 | 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr> | |
8450 | ||
8451 | * doc/invoke.texi (-fgraphite): Correct typo. | |
8452 | * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update | |
8453 | use of print_loop_ir. | |
6c9df8cb | 8454 | * gcc.dg/graphite/scop-1.c: New. |
8455 | * gcc.dg/graphite/scop-2.c: New. | |
8456 | * gcc.dg/graphite/graphite.exp: New. | |
c6bb733d | 8457 | * graphite.c: Include domwalk.h. |
8458 | (print_scop): Print only the entry and exit blocks. | |
8459 | (debug_scop): No longer static. | |
8460 | (affine_expr): Fix formating. Return also true when the expression is | |
8461 | constant. | |
8462 | (stmt_simple_for_scop_p): Fix formating. | |
8463 | (build_scops): Use domwalk. | |
8464 | (get_loop_start, end_scop, test_for_scop_bound): New. | |
8465 | (graphite_transform_loops): Avoid printing on stderr. | |
8466 | * graphite.h (debug_scop): Declared. | |
8467 | * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations. | |
8468 | * Makefile.in (graphite.o): Depend on domwalk.h. | |
8469 | * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove | |
8470 | declarations for static functions. | |
8471 | (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for | |
8472 | controlling output verbosity. | |
8473 | ||
8474 | 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr> | |
8475 | Plesco Alexandru <shurikx@gmail.com> | |
8476 | ||
8477 | * doc/invoke.texi (-fgraphite): Document. | |
8478 | * tree-pass.h (pass_graphite_transforms): Declared. | |
8479 | * timevar.def (TV_GRAPHITE_TRANSFORMS): New. | |
8480 | * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New. | |
8481 | (pass_graphite_transforms): Defined. | |
8482 | * tree-data-ref.c (free_data_ref, data_reference): Extern. | |
8483 | * tree-data-ref.h (free_data_ref, data_reference): Declared. | |
8484 | * graphite.c, graphite.h: New. | |
8485 | * common.opt (fgraphite): Declared. | |
8486 | * tree-flow.h (graphite_transform_loops): Declared. | |
8487 | * Makefile.in (OBJS-common): Add graphite.o. | |
8488 | (graphite.o): New rule. | |
8489 | * passes.c (pass_graphite_transforms): Scheduled. | |
8490 |