]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog.graphite
Add PDR->nb_subscripts.
[thirdparty/gcc.git] / gcc / ChangeLog.graphite
CommitLineData
25d7cc15
SP
12009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2
3 * graphite-dependences.c (dependence_polyhedron_1): Replace
4 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
5 (graphite_legal_transform_dr): Same.
6 (graphite_carried_dependence_level_k): Same.
7 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
8 Initialize PDR_NB_SUBSCRIPTS.
9 (print_pdr_access_layout): Replace pdr_nb_subscripts with
10 PDR_NB_SUBSCRIPTS.
11 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
12 (PDR_NB_SUBSCRIPTS): New.
13 (pdr_nb_subscripts): Removed.
14 (pdr_dim): Simplified.
15 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
16 with PDR_NB_SUBSCRIPTS.
17
66096911
SP
182009-08-11 Sebastian Pop <sebastian.pop@amd.com>
19
20 * graphite-interchange.c (compute_array_size): Remove use of
21 PDR_DATA_CONTAINER.
22 * graphite-poly.c (new_poly_dr): Remove argument data_container.
23 Do not initialize PDR_DATA_CONTAINER.
24 (print_pdr): Do not print PDR_DATA_CONTAINER.
25 * graphite-poly.h (struct poly_dr): Remove data_container field.
26 (PDR_DATA_CONTAINER): Removed.
27 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
28 PDR_DATA_CONTAINER.
29 (build_poly_dr): Same.
30
273c5dd3
SP
312009-08-11 Sebastian Pop <sebastian.pop@amd.com>
32
33 * testsuite/gcc.dg/graphite/interchange-9.c: New.
34
7491e5f0
KT
352009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
36 Sebastian Pop <sebastian.pop@amd.com>
37
38 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
39 copy of the dependence polyhedron. Free the temporary objects.
40 (graphite_carried_dependence_level_k): Free unused objects before
41 returning.
42
43 * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
44 * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
45 * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
46 * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
47 * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
48
f4648ed1
SP
492009-08-05 Sebastian Pop <sebastian.pop@amd.com>
50
51 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
52 Early return without analyzing the data dependences if no
53 transform has been done. Call restore_scattering if the transform
54 is not legal.
55 (graphite-interchange.c): Same.
56 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
57 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
58 (apply_poly_transforms): Do not gcc_assert that
59 the transform is legal.
60 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
61 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
62 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
63 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
64 * graphite-poly.h (struct poly_scattering): New.
65 (struct poly_bb): Add original, transformed, and saved fields.
66 Remove transformed_scattering, original_scattering, nb_local_variables,
67 and nb_scattering_transform fields.
68 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
69 (poly_scattering_new): New.
70 (poly_scattering_free): New.
71 (poly_scattering_copy): New.
72 (store_scattering_pbb): New.
73 (store_scattering): New.
74 (restore_scattering_pbb): New.
75 (restore_scattering): New.
76 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
77 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
273c5dd3 78
e31a5bd4
SP
792009-08-05 Sebastian Pop <sebastian.pop@amd.com>
80
81 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
82 (print_scop): Same.
83
8e88f9fd
SP
842009-08-05 Sebastian Pop <sebastian.pop@amd.com>
85
86 * Makefile.in (graphite.o): Depends on PREDICT_H.
87 * graphite.c: Include predict.h.
88 (graphite_finalize): Call tree_estimate_probability.
89 * predict.c (predict_loops): Do not call scev_initialize and
90 scev_finalize.
91 (tree_estimate_probability_bb): New.
92 (tree_estimate_probability): Do not initialize loops: move that
93 code to the driver. Call tree_estimate_probability_bb.
94 (tree_estimate_probability_driver): New.
95 (pass_profile): Use tree_estimate_probability_driver.
96 * predict.h (tree_estimate_probability): Declared.
97
87d4d0ee
SP
982009-08-05 Sebastian Pop <sebastian.pop@amd.com>
99
100 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
101 * graphite-dependences.c (graphite_legal_transform): Add time to
102 TV_GRAPHITE_DATA_DEPS.
103 (dependency_between_pbbs_p): Same.
104 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
105
1062009-08-03 Sebastian Pop <sebastian.pop@amd.com>
107
108 * Merge from mainline (r149952:150372).
109
2abae5f1
SP
1102009-07-28 Sebastian Pop <sebastian.pop@amd.com>
111
112 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
113 * graphite-blocking.c: Same.
114 * graphite-clast-to-gimple.c: Same.
115 * graphite-dependences.c: Same.
116 * graphite-poly.c: Same.
117 * graphite-poly.h: Same.
118 * graphite-ppl.c: Same.
119 * graphite-scop-detection.c: Same.
120 * graphite-sese-to-poly.c: Same.
121 * graphite.c: Same.
122
1232009-07-28 Sebastian Pop <sebastian.pop@amd.com>
124
125 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
126 (remove_simple_copy_phi): New.
127 (remove_invariant_phi): New.
128 (simple_copy_phi_p): New.
129 (reduction_phi_p): New.
130 (gsi_for_ssa_name_def): New.
131 (insert_out_of_ssa_copy): New.
132 (insert_out_of_ssa_copy_on_edge): New.
133 (create_zero_dim_array): New.
134 (scalar_close_phi_node_p): New.
135 (rewrite_close_phi_out_of_ssa): New.
136 (rewrite_phi_out_of_ssa): New.
137 (rewrite_reductions_out_of_ssa): New.
138 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
139
140 * testsuite/gcc.dg/graphite/id-11.c: New.
141 * testsuite/gcc.dg/graphite/id-15.c: New.
142 * testsuite/gcc.dg/graphite/interchange-1.c: Un-XFAIL.
143 * testsuite/gcc.dg/graphite/interchange-2.c: Un-XFAIL.
144 * testsuite/gcc.dg/graphite/interchange-3.c: Un-XFAIL.
145 * testsuite/gcc.dg/graphite/interchange-4.c: Un-XFAIL.
146 * testsuite/gcc.dg/graphite/interchange-7.c: Un-XFAIL.
147 * testsuite/gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
148 * testsuite/gfortran.dg/graphite/id-13.f: New.
149 * testsuite/gfortran.dg/graphite/id-5.f: New.
150
1512009-07-28 Sebastian Pop <sebastian.pop@amd.com>
152
153 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
154 check that nb_reductions_in_loop is zero.
155 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
156 reduction phi nodes.
157 (nb_reductions_in_loop): Removed.
158 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
159 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
160 (bb_contains_non_iv_scalar_phi_nodes): Removed.
161 (scop_contains_non_iv_scalar_phi_nodes): Removed.
162 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
163
1642009-07-28 Sebastian Pop <sebastian.pop@amd.com>
165
166 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
167 statements that have an empty iteration domain.
168 * testsuite/gfortran.dg/graphite/id-16.f: New.
169
1702009-07-28 Sebastian Pop <sebastian.pop@amd.com>
171
172 * tree-scalar-evolution.c (instantiate_scev_1): Return
173 chrec_dont_know when the result is not above instantiate_below.
174 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
175 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
176 the tree has a known scalar evolution.
177 * testsuite/gfortran.dg/graphite/id-14.f: New.
178 * testsuite/gfortran.dg/graphite/id-15.f: New.
179
1802009-07-28 Sebastian Pop <sebastian.pop@amd.com>
181
182 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
183 insert_gsi.
184 (rename_variables): Keep inserting renames after the ones already
185 inserted.
186
1872009-07-28 Sebastian Pop <sebastian.pop@amd.com>
188
189 * graphite-sese-to-poly.c (compare_bb_depths): New.
190 (graphite_sort_dominated_info): New.
191 (build_scop_bbs_1): Call graphite_sort_dominated_info.
192 (build_scop_scattering): Fix comment.
193
1942009-07-28 Sebastian Pop <sebastian.pop@amd.com>
195
196 * graphite.c (graphite_finalize): Call print_loops instead of
197 dump_function_to_file.
198 * testsuite/gcc.dg/graphite/graphite.exp: Fix formatting.
199 * testsuite/gcc.dg/graphite/pr35356-1.c: New. Look for the number of
200 loops generated in the graphite output file.
201 * testsuite/gcc.dg/graphite/pr35356-2.c: New.
202 * testsuite/gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
203 * testsuite/gfortran.dg/graphite/id-12.f: New.
204
2052009-07-24 Li Feng <nemokingdom@gmail.com>
206
207 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
208 Remove 2 XFAIL.
209
2102009-07-24 Li Feng <nemokingdom@gmail.com>
211 Tobias Grosser <grosser@fim.uni-passau.de>
212
213 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
214 alias set number build alias in ACCESSES polyhedron.
215 (build_alias_set_for_drs): New.
216 (build_pbb_drs): Added build_alias_set_for_drs.
217 * graphite-dependences.c (poly_drs_may_alias_p): New.
218 (graphite_carried_dependence_level_k): Check alias information
219 before building polyhedron.
220
2212009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
222
223 * Makefile.in (lambda-code.o): Fix formatting.
224
2252009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
226
227 * Merge from mainline (r149350-149952)
228
2292009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
230
231 * graphite-poly.c (apply_poly_transforms): Move strip_mine
232 before interchange to prepare for loop blocking.
233
2342009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
235
236 * graphite-poly.c (apply_poly_transforms): Add checks after every
237 transformation.
238 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
239 done in apply_poly_transforms.
240
2412009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
242
243 * graphite-dependences.c (build_lexicographically_gt_constraint):
244 Replace RES parameter with *RES.
245 (dependence_polyhedron_1): Pass an address of the parameter RES
246 instead of value of RES.
247
2482009-07-16 Sebastian Pop <sebastian.pop@amd.com>
249
250 * graphite.c (graphite_finalize): Fix comment.
251 (graphite_transform_loops): Reset scev info after code generation
252 of each scop.
253
2542009-07-16 Sebastian Pop <sebastian.pop@amd.com>
255
256 * graphite.c (graphite_finalize): Call scev_reset.
257
2582009-07-16 Sebastian Pop <sebastian.pop@amd.com>
259
260 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
261 GBB_CLOOG_IV_TYPES hash table twice.
262 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
263 (add_condition_to_domain): Clear GMP values.
264
2652009-07-16 Sebastian Pop <sebastian.pop@amd.com>
266
267 * graphite-dependences.c: Fix formatting.
268 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
269 (pbb_number_of_iterations): Free ppl_Linear_Expression.
270 * graphite-sese-to-poly.c: Fix formatting.
271 * graphite.c (graphite_transform_loops): Create the hash table
272 after the early return.
273
2742009-07-16 Sebastian Pop <sebastian.pop@amd.com>
275
276 * testsuite/gcc.dg/graphite/id-14.c: New.
277 * testsuite/gcc.dg/graphite/pr40157.c: New.
278 * testsuite/gfortran.dg/graphite/id-11.f: New.
279
2802009-07-16 Sebastian Pop <sebastian.pop@amd.com>
281
282 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
283 (build_poly_scop): Return false when there are no pbbs within
284 loops to avoid to pass to cloog scops with no loops.
285
2862009-07-16 Sebastian Pop <sebastian.pop@amd.com>
287
288 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
289 useless test "i % 2".
290 (build_pbb_scattering_polyhedrons): Fix formatting.
291 (build_poly_dr): Same.
292 * graphite.c (graphite_transform_loops): Restructure.
293
2942009-07-14 Razya Ladelsky <razya@il.ibm.com>
295
296 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
297 reduction_list parameter.
298 (rewrite_all_phi_nodes_with_iv): Same.
299 (canonicalize_loop_ivs): Same.
300 * tree-parloops.c (struct brli): Removed.
301 (build_reduction_list_info): Removed.
302 (build_new_reduction): New.
303 (analyze_reduction_list): Removed.
304 (gather_scalar_reductions): Find reductions instead of phi
305 nodes that can't be canonicalized.
306 (try_create_reduction_list): Remove reduction_list parameter.
307 (gen_parallel_loop): Same.
308 (parallelize_loops): Remove analyze_reductions variable,
309 initialization and free.
310 Change reduction_list htab initialization to reduction_info
311 elements instead of ssa names.
312 Call try_create_reduction_list and gen_parallel_loop without
313 analyzed_reduction argument.
314 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
315 canonicalize_loop_ivs with one less argument.
316 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
317
3182009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
319
320 * graphite-dependences.c (new_poly_dr_pair): New.
321 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
322 (new_poly_dr_pair): New.
323 (eq_poly_dr_pair_p): New.
324 (hash_poly_dr_pair_p): New.
325 * graphite-dependences.h (struct poly_dr_pair): New.
326 (eq_poly_dr_pair_p): Declared.
327 (hash_poly_dr_pair_p): Declared.
328 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
329 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
330 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
331 * Makefile.in (graphite-poly.o): Add dependence on
332 graphite-dependences.h.
333
3342009-07-14 Sebastian Pop <sebastian.pop@amd.com>
335
336 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
337 polynomials of degree > 1 pass to Graphite.
338 * tree-chrec.c (scev_is_linear_expression): Call
339 evolution_function_is_affine_multivariate_p.
340 * testsuite/gfortran.dg/graphite/id-10.f90: New.
341
3422009-07-14 Sebastian Pop <sebastian.pop@amd.com>
343
344 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
345 Instantiate scevs varying in outer loops.
346 * testsuite/gfortran.dg/graphite/id-9.f: Correct testcase.
347
3482009-07-14 Sebastian Pop <sebastian.pop@amd.com>
349
350 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
351 redundant constraint.
352
3532009-07-14 Sebastian Pop <sebastian.pop@amd.com>
354
355 * testsuite/gcc.dg/graphite/graphite.exp: Fix comments.
356 * testsuite/gfortran.dg/graphite/graphite.exp: Trigger actions
357 based on the file names as in the C testsuite.
358 * testsuite/gfortran.dg/graphite/block-1.f90: Fix patterns.
359 * testsuite/gfortran.dg/graphite/block-2.f: Same.
360 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
361 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
362 * testsuite/gfortran.dg/graphite/id-1.f90: Same.
363 * testsuite/gfortran.dg/graphite/id-2.f90: Same.
364 * testsuite/gfortran.dg/graphite/id-3.f90: Same.
365 * testsuite/gfortran.dg/graphite/id-4.f90: Same.
366 * testsuite/gfortran.dg/graphite/id-6.f: Same.
367 * testsuite/gfortran.dg/graphite/id-9.f: Same.
368 * testsuite/gfortran.dg/graphite/interchange-1.f: Same.
369 * testsuite/gfortran.dg/graphite/interchange-2.f: Same.
370 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
371
3722009-07-14 Sebastian Pop <sebastian.pop@amd.com>
373
374 * sese.c (expand_scalar_variables_call): New.
375 (expand_scalar_variables_ssa_name): Handle calls in expander.
376
3772009-07-13 Sebastian Pop <sebastian.pop@amd.com>
378
379 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
380 Expect to see the pattern twice.
381 * testsuite/gcc.dg/graphite/interchange-0.c: Un-XFAIL.
382 * testsuite/gcc.dg/graphite/interchange-5.c: Same.
383 * testsuite/gcc.dg/graphite/interchange-6.c: Same.
384
3852009-07-13 Sebastian Pop <sebastian.pop@amd.com>
386
387 * testsuite/gcc.dg/graphite/id-10.c: New.
388 * testsuite/gcc.dg/graphite/id-12.c: New.
389 * testsuite/gfortran.dg/graphite/id-7.f: New.
390 * testsuite/gfortran.dg/graphite/id-8.f: New.
391
3922009-07-13 Sebastian Pop <sebastian.pop@amd.com>
393
394 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
395 zero.
396
3972009-07-13 Sebastian Pop <sebastian.pop@amd.com>
398
399 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
400
4012009-07-13 Sebastian Pop <sebastian.pop@amd.com>
402
403 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
404
4052009-07-10 Sebastian Pop <sebastian.pop@amd.com>
406
407 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
408 building PDR subscripts.
409
4102009-07-10 Sebastian Pop <sebastian.pop@amd.com>
411
412 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
413 computation of array sizes.
414
4152009-07-10 Sebastian Pop <sebastian.pop@amd.com>
416
417 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
418
4192009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
420
421 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
422 build_pairwise_constraint, dr_equality_constraints,
423 build_pairwise_scheduling_equality,
424 build_pairwise_scheduling_inequality, lexicographically_gt_p,
425 build_lexicographically_gt_constraint, dependence_polyhedron,
426 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
427 Move from NNC_Polyhedron to C_Polyhedron.
428 * graphite-interchange.c (compute_array_size_poly,
429 gather_access_strides): Dito.
430 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
431 free_scop, pbb_number_of_iterations): Dito.
432 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
433 pbb_dim_iter_domain, struct scop): Dito.
434 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
435 new_Cloog_Domain_from_ppl_Polyhedron,
436 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
437 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
438 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
439 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
440 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
441 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
442 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
443 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
444 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
445 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
446 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
447 build_scop_iteration_domain, build_poly_dr): Dito
448
4492009-07-09 Sebastian Pop <sebastian.pop@amd.com>
450
451 * testsuite/gcc.dg/graphite/graphite.exp: Added a rule to execute
452 run-id-*.c files.
453 * testsuite/gcc.dg/graphite/run-id-1.c: New.
454
4552009-07-09 Sebastian Pop <sebastian.pop@amd.com>
456
457 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
458 positivity constraint on the symbolic number of iterations.
459
4602009-07-09 Sebastian Pop <sebastian.pop@amd.com>
461
462 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
463
4642009-07-09 Sebastian Pop <sebastian.pop@amd.com>
465 Tobias Grosser <grosser@fim.uni-passau.de>
466
467 * graphite-clast-to-gimple.c (build_scop_context): Removed.
468 (build_cloog_prog): Directly use SCOP_CONTEXT.
469 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
470 (free_scop): Free SCOP_CONTEXT.
471 (print_scop_context): New.
472 (print_scop): Call print_scop_context.
473 (debug_scop_context): New.
474 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
475 (struct scop): Added field context.
476 (SCOP_CONTEXT): New.
477 * graphite-sese-to-poly.c (add_param_constraints): New.
478 (build_scop_context): New.
479 (build_poly_scop): Call build_scop_context.
480
4812009-07-09 Sebastian Pop <sebastian.pop@amd.com>
482
483 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
484 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
485 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
486 * graphite-ppl.h: Include double-int.h and tree.h.
487 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
488 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
489 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
490 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
491
4922009-07-09 Sebastian Pop <sebastian.pop@amd.com>
493
494 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
495 POINTER_PLUS_EXPR for pointer types.
496 (clast_to_gcc_expression): Same.
497
4982009-07-09 Sebastian Pop <sebastian.pop@amd.com>
499
500 * graphite-poly.c (print_scattering_function): Early return when
501 PBB_TRANSFORMED_SCATTERING is not initialized.
502 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
503
5042009-07-08 Sebastian Pop <sebastian.pop@amd.com>
505
506 * tree-parloops.c (analyze_reduction_list): Remove unused variable
507 to fix bootstrap.
508
5092009-07-08 Razya Ladelsky <razya@il.ibm.com>
510
511 * tree-parloops.c (analyze_reduction_list): Change return
512 value to void.
513 (try_create_reduction_list): Move the call to
514 analyze_reduction_list to the beginining.
515 Call reduction_phi with analyzed_reductions as argument
516 instead of reduction_list.
517
5182009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
519
520 * Merge from mainline (r148296:149346)
521
5222009-07-07 Sebastian Pop <sebastian.pop@amd.com>
523
524 * graphite-scop-detection.c (graphite_can_represent_init): New.
525 (graphite_can_represent_scev): Call graphite_can_represent_init:
526 check that the initial value does not contain multiplications of
527 parameters.
528 (stmt_has_simple_data_refs_p): New.
529 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
530 (is_simple_operand): Fix formatting.
531 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
532
5332009-07-07 Sebastian Pop <sebastian.pop@amd.com>
534
535 * testsuite/gcc.dg/graphite/id-13.c: New.
536 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
537 analyze_scalar_evolution, use scalar_evolution_in_region.
538 (scan_tree_for_params_right_scev): Add extra assert.
539 (parameter_index_in_region_1): Split from parameter_index_in_region.
540 (idx_record_params): Use scalar_evolution_in_region.
541 (find_params_in_bb): Same.
542 (find_scop_parameters): Same.
543 (build_loop_iteration_domains): Same.
544 (create_linear_expr_from_tree): Same.
545 * sese.c (scalar_evolution_in_region): New.
546 * sese.h (scalar_evolution_in_region): Declared.
547 (defined_in_sese_p): New.
548 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
549 static anymore.
550 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
551 Declared.
552
5532009-07-07 Sebastian Pop <sebastian.pop@amd.com>
554
555 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
556 TREE_DATA_REF_H also implies SCEV_H.
557
5582009-07-07 Sebastian Pop <sebastian.pop@amd.com>
559
560 * graphite-poly.c (print_scop_params): New.
561 (print_scop): Call print_scop_params.
562 (debug_scop_params): New.
563 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
564
5652009-07-07 Li Feng <nemokingdom@gmail.com>
566
567 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
568 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
569 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
570 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
571 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
572 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
573
5742009-07-07 Li Feng <nemokingdom@gmail.com>
575
576 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
577 for dependency checking part.
578 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
579 tests for dependency checking.
580 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
581 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
582 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
583 flag -fdump-tree-graphite-all for autopar testsuites.
584
5852009-07-06 Sebastian Pop <sebastian.pop@amd.com>
586
587 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
588 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
589 canonicalize_loop_ivs): Moved...
590 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
591
5922009-07-06 Sebastian Pop <sebastian.pop@amd.com>
593
594 * tree-parloops.c (try_create_reduction_list): Pass an extra
595 argument analyzed_reductions. Call analyze_reduction_list.
596 (gen_parallel_loop): Do not call analyze_reduction_list.
597 (parallelize_loops): Init and finalize analyzed_reductions.
598
5992009-07-06 Li Feng <nemokingdom@gmail.com>
600
601 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
602 Added flag -fno-loop-strip-mine for autopar testcase.
603
6042009-07-04 Li Feng <nemokingdom@gmail.com>
605
606 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
607 transformed scattering dimension instead of unmatch orignal when
608 calling dependence_polyhedron.
609
6102009-06-30 Sebastian Pop <sebastian.pop@amd.com>
611
612 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
613
6142009-06-30 Sebastian Pop <sebastian.pop@amd.com>
615
616 * graphite-poly.c (pbb_number_of_iterations): Check for returned
617 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
618
6192009-06-30 Sebastian Pop <sebastian.pop@amd.com>
620
621 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
622 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
623 * graphite-poly.c (pbb_number_of_iterations): New.
624 * graphite-poly.h (pbb_number_of_iterations): Declared.
625 (pbb_iterator_dim, pbb_parameter_dim): New.
626
6272009-06-29 Sebastian Pop <sebastian.pop@amd.com>
628
629 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
630 last commit on type of lower and upper bound of loops.
631
6322009-06-29 Li Feng <nemokingdom@gmail.com>
633
634 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
635 graphite-dependences.h.
636 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
637 (mark_bb_with_pbb): New.
638 (get_stmtfor_depth): New.
639 (find_pbb_via_hash): New.
640 (dependency_in_loop_p): New.
641 (mark_loops_parallel): New.
642 (free_aux_in_new_loops): New.
643 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
644 bb with it's relevant pbb. Mark newly created loops. Remove mark
645 innermost loop parallel without checking.
646 (gloog): Add parameter BB_PBB_MAPPING.
647 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
648 (gloog): Change declaration.
649 (mark_loop_parallel): Make extern.
650 (free_aux_in_new_loops): Declare.
651 (bb_pbb_map_hash): New.
652 (eq_bb_pbb_map): New.
653 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
654 auto parallelization when flag_graphite_force_parallel is set.
655 (graphite_finalize): Added free_aux_in_new_loops.
656 * tree-parloops.c (parallelize_loops): Only generate parallel code for
657 the innermost loop that marked parallel. Use
658 flag_graphite_force_parallel instead of loop->can_be_parallel.
659 (loop_parallel_p): Move inner most checking out of function.
660
6612009-06-26 Sebastian Pop <sebastian.pop@amd.com>
662
663 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
664 type of lower and upper bound of loops signed long int.
665
6662009-06-26 Sebastian Pop <sebastian.pop@amd.com>
667
668 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
669 expression outside the loop.
670
6712009-06-26 Sebastian Pop <sebastian.pop@amd.com>
672
673 * gcc.dg/graphite/interchange-8.c: New.
674
6752009-06-26 Sebastian Pop <sebastian.pop@amd.com>
676
677 * gcc.dg/graphite/interchange-0.c: XFailed.
678 * gcc.dg/graphite/interchange-5.c: XFailed.
679 * gcc.dg/graphite/interchange-6.c: XFailed.
680
6812009-06-26 Sebastian Pop <sebastian.pop@amd.com>
682
683 * graphite-interchange.c (compute_array_size_poly): The end of the
684 recursion should return 1.
685
6862009-06-26 Sebastian Pop <sebastian.pop@amd.com>
687
688 * graphite-interchange.c (compute_array_size_cstr): Allow the
689 subscript multiplier to be -1.
690 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
691 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
692 data_container. Initializes PDR_DATA_CONTAINER.
693 (print_pdr_access_layout): New.
694 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
695 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
696 data_container.
697 (PDR_DATA_CONTAINER): New.
698 (new_poly_dr): Update declaration.
699 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
700 (build_poly_dr): Call pdr_add_data_dimensions.
701
7022009-06-26 Sebastian Pop <sebastian.pop@amd.com>
703
704 * graphite-poly.h (struct poly_dr): Fix comment.
705 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
706 (pdr_add_memory_accesses): New.
707 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
708
7092009-06-26 Sebastian Pop <sebastian.pop@amd.com>
710
711 * graphite-poly.c (print_pdrs, debug_pdrs): New.
712 (print_pbb): Add call to print_pdrs.
713 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
714
7152009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
716 Li Feng <nemokingdom@gmail.com>
717
718 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
719 (dependency_between_pbbs_p): New.
720 (lexicographically_gt_p): Assure !empty_p before polyhedron
721 intersection assign.
722 (build_lexicographically_gt_constraint): Correct lexicographically
723 judging.
724 * graphite-dependences.h: New.
725 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
726
7272009-06-24 Sebastian Pop <sebastian.pop@amd.com>
728
729 * graphite-clast-to-gimple.c (print_clast_stmt): New.
730 (gloog): Print to dump_file the generated clast.
731 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
732 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
733
7342009-06-24 Sebastian Pop <sebastian.pop@amd.com>
735
736 * graphite-poly.c (extend_scattering): Increment
737 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
738
7392009-06-24 Sebastian Pop <sebastian.pop@amd.com>
740
741 * graphite-interchange.c (compute_array_size_poly): Added exit of
742 recursion condition. Continue iterating even after the first equality.
743 (compute_array_size): Same.
744
7452009-06-24 Li Feng <nemokingdom@gmail.com>
746
747 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
748 -fdump-tree-final_cleanup to -fdump-tree-optimized.
749 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
750 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
751 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
752
7532009-06-23 Sebastian Pop <sebastian.pop@amd.com>
754
755 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
756 only when the use verifies is_gimple_reg.
757
7582009-06-23 Sebastian Pop <sebastian.pop@amd.com>
759
760 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
761 Allocate scaldims after call to unify_scattering_dimensions.
762
7632009-06-23 Sebastian Pop <sebastian.pop@amd.com>
764
765 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
766
7672009-06-23 Sebastian Pop <sebastian.pop@amd.com>
768 Albert Cohen <albert.cohen@inria.fr>
769
770 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
771 variables for the strip mining.
772
7732009-06-23 Sebastian Pop <sebastian.pop@amd.com>
774 Pranav Garg <pranav.garg2107@gmail.com>
775
776 * Makefile.in (OBJS-common): Added graphite-blocking.o.
777 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
778 (graphite-blocking.o): New rule.
779 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
780 * graphite-blocking.c: New.
781 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
782 flag_loop_strip_mine.
783 (psct_scattering_dim_for_loop_depth): New.
784 * graphite-poly.h (scop_do_strip_mine): Declared.
785 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
786 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
787 flag_loop_strip_mine.
788
7892009-06-23 Sebastian Pop <sebastian.pop@amd.com>
790
791 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
792 a GMP value and a PPL coefficient at each iteration of a loop.
793
7942009-06-23 Sebastian Pop <sebastian.pop@amd.com>
795
796 * graphite-dependences.c (dependence_polyhedron): Do not use
797 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
798 pbb_nb_scattering_transform.
799 (graphite_legal_transform_dr): Same.
800 * graphite-poly.c (extend_scattering): Same.
801 (unify_scattering_dimensions): Same.
802 (print_scattering_function): Same.
803 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
804 PBB_NB_LOCAL_VARIABLES.
805 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
806 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
807 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
808 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
809 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
810 (pbb_nb_scattering_transform): New.
811 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
812 (psco_scattering_dim): Add assert on parameters.
813 (psct_scattering_dim): Same.
814 (psct_scattering_dim_for_loop_depth): Declared.
815 (psct_local_var_dim): New.
816 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
817 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
818 correct layout, call pbb_nb_local_vars.
819 (psct_add_local_variable, psct_add_scattering_dimension): New.
820 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
821 Initialize PBB_NB_SCATTERING_TRANSFORM.
822
8232009-06-23 Sebastian Pop <sebastian.pop@amd.com>
824
825 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
826 (set_coef): Renamed ppl_set_coef.
827 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
828
8292009-06-23 Sebastian Pop <sebastian.pop@amd.com>
830
831 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
832 test a boolean against 1.
833 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
834 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
835 (pbb_do_interchange): Returns true when a transform has been performed.
836 (scop_do_interchange): Same.
837 * graphite-poly.c (apply_poly_transforms): Use the return value of
838 scop_do_interchange.
839 * graphite-poly.h (scop_do_interchange): Update declaration.
840
8412009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
842
843 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
844 after last use.
845 * sese.c (sese_reset_aux_in_loops): New.
846 * sese.h (sese_reset_aux_in_loops): New.
847
8482009-06-19 Sebastian Pop <sebastian.pop@amd.com>
849
850 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
851 multiplier and multiply the constant by the multiplier.
852 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
853 (build_poly_dr): Do not use the multiplier to define the subscript.
854
8552009-06-19 Sebastian Pop <sebastian.pop@amd.com>
856
857 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
858 compiler's data reference. Initialize PDR_CDR.
859 (print_pdr): Call dump_data_reference.
860 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
861 Add compiler_dr field.
862 (PDR_BB): Renamed PDR_PBB.
863 (PDR_CDR): New.
864 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
865 GCC's data reference representation.
866 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
867 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
868
8692009-06-19 Sebastian Pop <sebastian.pop@amd.com>
870
871 * graphite-poly.c (print_scattering_function): Also print the layout.
872 * graphite-poly.h (pbb_nb_local_vars): New.
873
8742009-06-19 Sebastian Pop <sebastian.pop@amd.com>
875
876 * graphite-poly.c (print_pbb_domain): Also print the layout names.
877
8782009-06-19 Sebastian Pop <sebastian.pop@amd.com>
879
880 * graphite-poly.c (print_pdr, debug_pdr): New.
881 * graphite-poly.h (print_pdr, debug_pdr): Declared.
882 (PDR_BASE): Removed.
883
8842009-06-18 Sebastian Pop <sebastian.pop@amd.com>
885
886 * gcc/testsuite/gcc.dg/graphite/interchange-{1..7}.c: New avatars of
887 ltrans-{1..6,8}.c.
888
8892009-06-18 Sebastian Pop <sebastian.pop@amd.com>
890
891 * graphite-interchange.c (compute_subscript): Allow also -1 in the
892 subscript identification column.
893 (pbb_do_interchange): Print to dump_file that some loops "will be
894 interchanged". Rely on that chain of characters in the testcases.
895 * gcc.dg/graphite/interchange-0.c: New.
896 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
897 interchange-*.c files and compile them with -floop-interchange.
898
8992009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
900
901 * graphite-interchange.c (interchange_profitable_p): Renamed
902 pbb_interchange_profitable_p.
903
9042009-06-18 Sebastian Pop <sebastian.pop@amd.com>
905 Harsha Jagasia <harsha.jagasia@amd.com>
906 Pranav Garg <pranav.garg2107@gmail.com>
907
908 * graphite-interchange.c (interchange_profitable_p): Make static.
909 (pbb_interchange_loop_depths, pbb_do_interchange,
910 scop_do_interchange): New.
911 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
912 for flag_loop_interchange.
913 * graphite-poly.h (scop_do_interchange): Declared.
914 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
915 flag_loop_interchange is used.
916
9172009-06-18 Sebastian Pop <sebastian.pop@amd.com>
918
919 * graphite-dependences.c (dependence_polyhedron): Update use of
920 pbb_nb_scattering_dims.
921 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
922 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
923 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
924 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
925
9262009-06-16 Sebastian Pop <sebastian.pop@amd.com>
927
928 * graphite.c: Cleanup foo.
929
9302009-06-16 Sebastian Pop <sebastian.pop@amd.com>
931
932 * Merge from mainline (r143684:148293).
933 * Disabled libpcp until it gets fixed.
934
9352009-06-05 Sebastian Pop <sebastian.pop@amd.com>
936 Harsha Jagasia <harsha.jagasia@amd.com>
937
938 * graphite-interchange.c: New.
939 * Makefile.in (graphite-interchange.o): New.
940 * graphite-poly.h (interchange_profitable_p): Declared.
941 * graphite-ppl.h (value_max): New.
942
9432009-06-04 Sebastian Pop <sebastian.pop@amd.com>
944
945 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
946 * graphite-poly.h: Fix some comments.
947 (pdr_dim): New.
948 (pdr_scop): New.
949
9502009-06-04 Sebastian Pop <sebastian.pop@amd.com>
951
952 * graphite-poly.h
953 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
954 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
955 (pdr_accessp_nb_params): Renamed pdr_nb_params.
956 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
957 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
958 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
959 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
960 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
961 * graphite-clast-to-gimple.c: Same.
962 * graphite-dependences.c: Same.
963 * graphite-poly.c: Same.
964 * graphite-sese-to-poly.c: Same.
965
9662009-06-03 Sebastian Pop <sebastian.pop@amd.com>
967
968 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
969 expressions for an IV rename, as returned by clast_to_gcc_expression.
970 (copy_renames): Rename new_name to expr.
971 * sese.c (debug_rename_elt): Same.
972 (get_rename): Same.
973 (set_rename): Same.
974 (sese_adjust_liveout_phis): Call force_gimple_operand before using
975 the information from the rename map.
976 (rename_variables_in_stmt): Same.
977 (add_loop_exit_phis): Rename new_name to expr.
978 (insert_loop_close_phis): Same.
979 (add_guard_exit_phis): Same. Call force_gimple_operand.
980 * sese.h (struct rename_map_elt): Rename new_name to expr.
981 (new_rename_map_elt): Same.
982
9832009-06-03 Sebastian Pop <sebastian.pop@amd.com>
984
985 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
986 * sese.c (set_rename): Make it extern.
987 * sese.h (set_rename): Declared.
988
9892009-06-03 Sebastian Pop <sebastian.pop@amd.com>
990
991 * graphite-poly.c (extend_scattering): Free values.
992 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
993 Free iterators.
994 (ppl_print_powerset_matrix): Same.
995 * graphite-scop-detection.c (free_scops_1): New.
996 (limit_scops): Call free_scops_1.
997 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
998 (build_poly_dr): Free PPL coefficients.
999 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
1000
10012009-06-02 Sebastian Pop <sebastian.pop@amd.com>
1002
1003 * graphite-dependences.c: New.
1004 * graphite-data-ref.c: Removed.
1005 * graphite-data-ref.h: Removed.
1006 * Makefile.in (graphite-data-ref.o): Removed.
1007 (graphite-dependences.o): Added.
1008 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
1009 * graphite-poly.c: Same.
1010 Move the data dependence testing to graphite-dependences.c.
1011
10122009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
1013
1014 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
1015 from graphite_cannot_represent_loop. Code refactored.
1016 (scopdet_basic_block_info): Call graphite_can_represent_loop.
1017
10182009-05-17 Li Feng <nemokingdom@gmail.com>
1019
1020 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
1021 Cover all the testcases (not only the filtered ones).
1022
10232009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
1024
1025 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
1026 unnecessary check. Update comments. Move check for REAL_TYPE here.
1027 (harmful_stmt_in_bb): Remove checks for conditions. This is already
1028 done in (stmt_simple_for_scop_p).
1029
10302009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
1031
1032 * graphite.c (print_global_statistics): New.
1033 (print_graphite_scop_statistic): New.
1034 (print_graphite_statistics): New.
1035 (graphite_initialize, graphite_transform_loops): Print statistics.
1036 * graphite-scop-detection (build_scops): Print statistics.
1037 (print_graphite_scop_statistics): New.
1038 (print_graphite_statistics): New.
1039
10402009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1041
1042 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
1043 (debug_clast_name_index): Removed.
1044 (debug_clast_name_indexes_1): Removed.
1045 (debug_clast_name_indexes): Removed.
1046 (clast_name_index_elt_info): Removed.
1047 (eq_clast_name_indexes): Removed.
1048 (clast_name_to_index): Removed.
1049 (new_clast_name_index): Removed.
1050 (save_clast_name_index): Removed.
1051 (save_var_name): Moved...
1052 (init_sese_params_index): Removed.
1053 (clast_name_to_gcc): Remove use of name_tree.
1054 (initialize_cloog_names): Same.
1055 (gloog): Do not call init_sese_params_index.
1056 * graphite-sese-to-poly.c (save_var_name): ...here.
1057 (parameter_index_in_region): New.
1058 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
1059 (parameter_index_in_region): Removed.
1060 (is_parameter): Remove use of name_tree.
1061 * sese.h (struct name_tree): Removed.
1062 (struct sese): Remove use of name_tree. New field params_names.
1063 (SESE_PARAMS_NAMES): New.
1064 (SESE_PARAMS): Remove duplicate.
1065 (parameter_index_in_region): Removed.
1066 (sese_nb_params): Remove use of name_tree.
1067 (struct clast_name_index): New.
1068 (new_clast_name_index): New.
1069 (clast_name_to_index): New.
1070 (save_clast_name_index): New.
1071 (debug_clast_name_index): New.
1072 (debug_clast_name_indexes_1): New.
1073 (debug_clast_name_indexes): New.
1074 (clast_name_index_elt_info): New.
1075 (eq_clast_name_indexes): New.
1076
10772009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1078
1079 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
1080 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
1081 (graphite_loop_normal_form): Do not pass region. Do not
1082 initialize SESE_OLDIVS.
1083 (build_graphite_loop_normal_form): Update call to
1084 graphite_loop_normal_form.
1085 * sese.c (debug_oldivs): Removed.
1086 (new_sese): Do not initialize SESE_OLDIVS.
1087 (free_sese): Do not free SESE_OLDIVS.
1088 (oldiv_for_loop): Removed.
1089 * sese.h (struct sese): Remove old_ivs.
1090 (SESE_OLDIVS): Removed.
1091 (oldiv_for_loop): Removed.
1092
10932009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1094
1095 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
1096 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
1097 replaced by a call to newivs_to_depth_to_newiv.
1098 (clast_to_gcc_expression): Pass newivs, remove ivstack.
1099 (clast_to_gcc_expression_red): Same.
1100 (gcc_type_for_clast_expr): Same.
1101 (gcc_type_for_clast_eq): Same.
1102 (graphite_translate_clast_equation): Same.
1103 (graphite_create_guard_cond_expr): Same.
1104 (graphite_create_new_guard): Same.
1105 (graphite_create_new_loop): Same.
1106 (build_iv_mapping): Same.
1107 (translate_clast): Same.
1108 (gloog): Same.
1109 (loop_iv_stack_patch_for_consts): Removed. *
1110 sese.c (iv_stack_entry_is_constant): Removed.
1111 (iv_stack_entry_is_iv): Removed.
1112 (loop_iv_stack_push_iv): Removed.
1113 (loop_iv_stack_insert_constant): Removed.
1114 (loop_iv_stack_pop): Removed.
1115 (loop_iv_stack_get_iv): Removed.
1116 (loop_iv_stack_get_iv_from_name): Removed.
1117 (debug_loop_iv_stack): Removed.
1118 (free_loop_iv_stack): Removed.
1119 (loop_iv_stack_remove_constants): Removed. *
1120 sese.h (iv_stack_entry_kind): Removed.
1121 (iv_stack_entry_data_union): Removed.
1122 (iv_stack_entry_struct): Removed.
1123 (iv_stack_entry_p): Removed.
1124 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
1125 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
1126 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
1127 loop_iv_stack_pop, free_loop_iv_stack): Removed.
1128 (gbb_loop_at_index): Fix indenting.
1129 (gbb_loop_index): Removed.
1130
11312009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1132
1133 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
1134 Call clast_name_to_index.
1135
11362009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1137
1138 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
1139 do not pass params. Get params from SESE_PARAMS.
1140 (clast_to_gcc_expression): Same.
1141 (clast_to_gcc_expression_red): Same.
1142 (gcc_type_for_clast_eq): Same.
1143 (graphite_translate_clast_equation): Same.
1144 (graphite_create_new_loop): Same.
1145 * sese.c (rename_variables_in_stmt): Fix comment.
1146
11472009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1148
1149 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
1150 newivs_index.
1151 Call save_clast_name_index.
1152 (translate_clast): Pass newivs_index.
1153 (gloog): Create and free newivs_index.
1154
11552009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1156
1157 * graphite-clast-to-gimple.c (clast_name_index): New structure.
1158 (clast_name_index_p): New type.
1159 (debug_clast_name_index): New.
1160 (debug_clast_name_indexes_1): New.
1161 (debug_clast_name_indexes): New.
1162 (clast_name_index_elt_info): New.
1163 (eq_clast_name_indexes): New.
1164 (clast_name_to_index): New.
1165 (new_clast_name_index): New.
1166 (save_clast_name_index): New.
1167 (init_sese_params_index): New.
1168 (gloog): Call init_sese_params_index.
1169 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
1170 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
1171 (free_sese): Free SESE_PARAMS_INDEX.
1172 * sese.h (struct sese): Add params_index.
1173 (SESE_PARAMS_INDEX): New.
1174
11752009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1176
1177 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
1178 (graphite_create_new_loop): Pass the newivs vector. Push the
1179 newly created IV to newivs.
1180 (translate_clast): Pass the newivs vector.
1181 (gloog): Create and destroy the newivs vector.
1182
11832009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1184
1185 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
1186 (graphite_loop_normal_form): Initialize loop->aux with the unique
1187 IV that has been created.
1188
11892009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
1190
1191 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
1192 scev with parameters in the base part. They where forbidden
1193 exidently.
1194
11952009-05-11 Li Feng <nemokingdom@gmail.com>
1196
1197 * testsuite/gcc.dg/graphite/graphite.exp: Set different default
1198 compile options by file names.
1199 * testsuite/gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
1200 * testsuite/gcc.dg/graphite/id-{1-9}.c: Ditto.
1201 * testsuite/gcc.dg/graphite/scop-{0-20}.c: Ditto.
1202 * testsuite/gcc.dg/graphite/scop-matmult.c: Ditto.
1203
12042009-05-08 Li Feng <nemokingdom@gmail.com>
1205
1206 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
1207 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
1208 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
1209 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
1210
12112009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
1212
1213 * graphite-scop-detection (build_scops_1): Fix little bug introduced
1214 by final cleanup.
1215
12162009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
1217
1218 * graphite-scop-detection.c (graphite_can_represent_scev): Only
1219 allow integer constant strides.
1220 (graphite_can_represent_expr): Depend on outermost_loop.
1221 (stmt_simple_memref_p, graphite_cannot_represent_loop,
1222 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
1223 build_scops_1): Same.
1224 (scopdet_basic_block_info): Same and insert layered SCoP
1225 detection.
1226 (try_generate_gimple_bb): Cleanup.
1227 (build_scops): Enable data references.
1228
1229 * testsuite/gcc.dg/graphite/id-5.c: New.
1230 * testsuite/gcc.dg/graphite/id-9.c: New.
1231 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
1232 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
1233
12342009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1235
1236 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
1237 that we have not yet built for this SCoP.
1238
12392009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1240
1241 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
1242 for complex numbers.
1243
12442009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1245
1246 * graphite-ppl.c: Fix build if cloog is not available.
1247
12482009-05-04 Li Feng <nemokingdom@gmail.com>
1249
1250 * tree-parloops.c (loop_parallel_p): Remove construction of
1251 NITER and REDUCTION_LIST.
1252 (try_get_loop_niter): New.
1253 (try_create_reduction_list): New.
1254 (parallelize_loops): Bypass the failed checkings in autopar
1255 when can_be_parallel in loop structure is set to true.
1256
12572009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
1258
1259 * testsuite/gcc.dg/graphite/id-6.c: Update testcase.
1260 * testsuite/gcc.dg/graphite/scop-3.c: Dito.
1261
12622009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
1263
1264 * graphite-scop-detection.c (stmt_simple_for_scop_p):
1265 Enable EQ_EXPR and NE_EXPR again.
1266
12672009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
1268
1269 * graphite-scop-detection.c (graphite_can_represent_scev):
1270 Add check if scev is affine multivariate.
1271 (harmful_stmt_in_bb): Check if we can represent the conditions.
1272 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
1273 harmful_stmt_in_bb.
1274 * testsuite/gcc.dg/graphite/id-7.c: New.
1275
12762009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
1277
1278 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
1279 Check all bbs in region, not only the bbs that are represented in
1280 GRAPHITE.
1281 (build_poly_scop): Add newline.
1282 * testsuite/gcc.dg/graphite/id-8.c: New.
1283
12842009-04-30 Li Feng <nemokingdom@gmail.com>
1285
1286 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
1287 when loop initialize.
1288 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
1289 * common.opt: Declare flag_graphite_force_parallel.
1290 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
1291 loop parallel.
1292 * graphite-poly.c (apply_poly_transforms): Introduce
1293 flag_graphite_force_parallel.
1294 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
1295 * toplev.c (process_options): ditto and replace a not correctly
1296 encoded space.
1297
12982009-04-30 Li Feng <nemokingdom@gmail.com>
1299
1300 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
1301 Change the call of gbb_loop_at_index and/or gbb_loop_index due
1302 to the redefinition.
1303 (compute_cloog_iv_types_1): ditto.
1304 (build_iv_mapping): ditto.
1305 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
1306 initialization.
1307 (free_gimple_bb): Removed GBB_LOOPS related free part.
1308 (build_bb_loops): Removed.
1309 * sese.h (struct gimple_bb): Removed loops.
1310 (GBB_LOOPS): Removed.
1311 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
1312 (gbb_loop_index): ditto.
1313
13142009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1315
1316 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
1317 allow non constant strides.
1318 * testsuite/gcc.dg/graphite/scop-20.c: New.
1319
13202009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1321
1322 * graphite-scop-detection.c (dot_all_scops): Fix system call
1323 return value warning.
1324 (dot_scop): Same.
1325
13262009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1327
1328 * testsuite/gcc.dg/graphite/id-6.c: Fix pattern.
1329 * testsuite/gcc.dg/graphite/scop-3.c: Same.
1330
13312009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1332
1333 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
1334 build_pairwise_constraint, dr_equality_constraints,
1335 build_pairwise_scheduling_equality,
1336 build_pairwise_scheduling_inequality, lexicographically_gt_p,
1337 build_lexicographically_gt_constraint, dependence_polyhedron,
1338 graphite_legal_transform_dr, graphite_legal_transform_bb,
1339 graphite_legal_transform): New.
1340 * graphite-poly.h (graphite_legal_transform): Declared.
1341 * graphite-sese-to-poly.c (build_poly_scop): Call to
1342 graphite_legal_transform is disabled for the moment.
1343
13442009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1345
1346 * graphite-poly.h (pbb_nb_scattering_dims): New.
1347 (pbb_nb_scattering): Use it.
1348
13492009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1350
1351 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
1352 Pointset_Powerset version of ppl_insert_dimensions.
1353 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
1354
13552009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1356
1357 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
1358
13592009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1360
1361 * graphite-poly.h: Fix comment.
1362
13632009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1364
1365 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
1366
13672009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1368
1369 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
1370 statements.
1371
13722009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1373
1374 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
1375 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
1376 conditions.
1377
13782009-04-20 Sebastian Pop <sebastian.pop@amd.com>
1379
1380 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
1381 handle EQ_EXPR and NE_EXPR.
1382
13832009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
1384
1385 * graphite-poly.h (poly_dr): Fix comment.
1386
13872009-04-09 Sebastian Pop <sebastian.pop@amd.com>
1388 Tobias Grosser <grosser@fim.uni-passau.de>
1389
1390 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
1391 with a zero dimension polyhedron.
1392 (find_scop_parameters): Move the call to scop_set_nb_params here.
1393 (build_loop_iteration_domains): Store in loop->aux the iteration
1394 domain polyhedron.
1395 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
1396 by any loop in scop.
1397 (build_poly_scop): Do not call scop_set_nb_params.
1398
13992009-04-09 Sebastian Pop <sebastian.pop@amd.com>
1400 Tobias Grosser <grosser@fim.uni-passau.de>
1401
1402 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
1403 add_condition_to_domain not GT_EXPR.
1404
14052009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1406
1407 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
1408 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
1409 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
1410 upper_bound_assign to calculate unions.
1411 * testsuite/gcc.dg/graphite/id-6.c: New.
1412
14132009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1414
1415 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
1416 handle abnormal edges.
1417
14182009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1419
1420 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
1421 (free_poly_bb): Also free poly_drs.
1422 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
1423 (poly_dr): Polyhedron to Pointset_Powerset.
1424 (pdr_accessp_nb_subscripts): Same.
1425 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
1426 poly_drs.
1427
14282009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1429
1430 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
1431 names into more meaningful names.
1432
14332009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1434
1435 * testsuite/gfortran.dg/graphite/interchange-1.c: New.
1436 * testsuite/gfortran.dg/graphite/interchange-2.c: New.
1437
14382009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1439
1440 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
1441 the reduction_list.
1442 * tree-parloops.c (rewrite_phi_with_iv): New.
1443 (rewrite_all_phi_nodes_with_iv): New.
1444 (canonicalize_loop_ivs): Call them.
1445
14462009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1447
1448 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
1449 graphite_find_data_references_in_stmt.
1450 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
1451 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
1452
14532009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1454
1455 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
1456
14572009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1458
1459 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
1460 instead of bb_in_region.
1461 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
1462 (build_sese_conditions): Use flag_bb_in_sese.
1463 * sese.c (register_bb_in_sese): Removed.
1464 (new_sese): Remove initialization of SESE_REGION_BBS.
1465 (free_sese): Do not free SESE_REGION_BBS.
1466 * sese.h (struct sese): Remove field region_basic_blocks.
1467 (SESE_REGION_BBS): Removed.
1468 (bb_in_sese_p): Implement in function of bb_in_region.
1469
14702009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1471
1472 * graphite-scop-detection.c (limit_scops): Deal only with single exit
1473 loops.
1474
14752009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
1476
1477 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
1478 and EQ_EXPR.
1479 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
1480 (add_condition_to_domain): New.
1481 (add_condition_to_pbb): New.
1482 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
1483 * testsuite/gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
1484
14852009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
1486
1487 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
1488 ppl_Pointset_Powerset.
1489 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
1490 * graphite-poly.h (poly_bb): poly_bb.domain Same.
1491 (pbb_nb_loops): Same.
1492 * graphite-sese-to-poly.c (build_loop_iteration_domains,
1493 add_conditions_to_domain): Same.
1494 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
1495 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
1496 ppl_const_Polyhedron_t.
1497 (ppl_print_powerset_matrix): New.
1498 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
1499 ppl_print_powerset_matrix): New.
1500 (ppl_print_polyhedron_matrix): Updated.
1501
15022009-04-07 Sebastian Pop <sebastian.pop@amd.com>
1503
1504 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
1505
15062009-04-07 Sebastian Pop <sebastian.pop@amd.com>
1507
1508 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
1509 (print_iteration_domains, debug_iteration_domain,
1510 debug_iteration_domains): New.
1511 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
1512 debug_iteration_domains): Declared.
1513 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
1514 indenting.
1515
15162009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
1517 Sebastian Pop <sebastian.pop@amd.com>
1518
1519 * graphite-poly.h (print_iteration_domain): New.
1520 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
1521 (build_sese_conditions_1, build_sese_conditions_after,
1522 build_sese_conditions_before): New.
1523 (build_sese_conditions): Rewritten.
1524
15252009-04-03 Sebastian Pop <sebastian.pop@amd.com>
1526 Tobias Grosser <grosser@fim.uni-passau.de>
1527
1528 Cleanup of code generation liveouts.
1529 * graphite-clast-to-gimple.c (translate_clast): Use a single
1530 rename_map instead of one per translated statement.
1531 Do not use SESE_LIVEOUT_RENAMES.
1532 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
1533 (gloog): Do not use SESE_LIVEOUT_RENAMES.
1534 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
1535 phi node of a reduction: when a loop contains a reduction used outside
1536 the loop, there should be a scalar close phi node on the exit block.
1537 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
1538 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
1539 (free_sese): Do not free them.
1540 (sese_build_liveouts_use): Do not use them.
1541 (sese_build_liveouts_bb): Same.
1542 (sese_build_liveouts): Same.
1543 (sese_insert_phis_for_liveouts): Same.
1544 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
1545 (defined_in_loop_p): New.
1546 (alive_after_loop): New.
1547 (close_phi_not_yet_inserted_p): New.
1548 (struct alep, alep_p): New.
1549 (add_loop_exit_phis): Remove from the rename_map all the names defined
1550 in the code generated loop.
1551 (insert_loop_close_phis): Traverse the rename_map passed to it.
1552 Don't use SESE_LIVEOUT_RENAMES.
1553 (default_liveout_before_guard): Renamed default_before_guard.
1554 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
1555 (graphite_copy_stmts_from_block): Do not directly call set_rename.
1556 (register_sese_liveout_renames): Removed.
1557 (copy_bb_and_scalar_dependences): Do not call it.
1558 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
1559 reduction_list.
1560 (SESE_LIVEOUT): Removed.
1561 (SESE_LIVEOUT_RENAMES): Removed.
1562 (SESE_REDUCTION_LIST): Removed.
1563 (sese_build_liveouts): Removed.
1564 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
1565 (insert_loop_close_phis): Pass a htab_t instead of a sese.
1566 (insert_guard_phis): Same.
1567 (rename_map_elt): Declare a VEC of them.
1568 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
1569 trees not pointers to trees.
1570
1571 Rewrite in canonical close SSA form:
1572 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
1573 (limit_scops): Close the scop after the block containing the close phi
1574 nodes.
1575 (canonicalize_loop_closed_ssa): New.
1576 (canonicalize_loop_closed_ssa_form): New.
1577 (build_scops): Call canonicalize_loop_closed_ssa_form.
1578
1579 * graphite-sese-to-poly.c: Fix typos.
1580
15812009-04-03 Sebastian Pop <sebastian.pop@amd.com>
1582
1583 * graphite-poly.c (print_scattering_function, print_pbb_domain):
1584 Extended.
1585 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
1586 (print_pbb): Add conditions.
1587
15882009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
1589 Sebastian Pop <sebastian.pop@amd.com>
1590
1591 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
1592 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
1593 (build_scop_bbs_1): New.
1594 (build_scop_bbs): Rewrite.
1595 * sese.h (bb_in_region): New.
1596
15972009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1598
1599 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
1600 poly_drs vector.
1601 (print_scop): Style.
1602 * graphite-poly.h (poly_bb): Add drs vector.
1603 (PBB_DRS): Add accessor.
1604 * graphite-sese-to-poly.c (build_poly_dr): New.
1605 (build_pbb_drs, build_scop_drs): New.
1606 (build_poly_scop): call build_scop_drs (Disabled at the moment).
1607
16082009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1609
1610 * tree-ssa-loop.c: Include forgotten toplev.h
1611
16122009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1613
1614 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
1615 * testsuite/gcc.dg/graphite/pr37883.c: Remove -floop-*
1616 * testsuite/gcc.dg/graphite/pr37928.c: Same
1617 * testsuite/gcc.dg/graphite/pr38409.c: Same
1618 * testsuite/gcc.dg/graphite/pr38498.c: Same
1619 * testsuite/gcc.dg/graphite/pr38559.c: Same
1620 * testsuite/gcc.dg/graphite/pr39335.c: Same
1621 * testsuite/gcc.dg/graphite/pr39335_1.c: Same
1622 * testsuite/gfortran.dg/graphite/block-2.f: Same
1623 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
1624 with -floop-*.
1625
16262009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
1627
1628 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
1629 build_access_matrix, build_scop_data_accesses): Remove access function
1630 building. (We get a new version soon).
1631 (build_bb_loops, scan_tree_for_params_right_scev): Update.
1632 * sese.h (nb_loops_around_loop_in_sese): Remove.
1633 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
1634
16352009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
1636 Sebastian Pop <sebastian.pop@amd.com>
1637
1638 * graphite-scop-detection.c (struct scopdet_info): Rename last
1639 field to exit.
1640 (scopdet_basic_block_info, build_scops_1): Don't use
1641 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
1642
16432009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
1644 Sebastian Pop <sebastian.pop@amd.com>
1645
1646 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
1647 * sese.c (sese_build_liveouts_use): Renamed from
1648 sese_build_livein_liveouts_use. Remove liveins.
1649 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
1650 Call sese_build_liveouts_use.
1651 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
1652 Call sese_build_liveouts_bb.
1653 (new_sese, free_sese): Remove liveins.
1654 (sese_add_exit_phis_var): Deleted.
1655 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
1656 directly.
1657 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
1658
1659 * sese.h (sese): Remove num_ver and livein.
1660 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
1661
16622009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
1663
1664 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
1665
16662009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
1667
1668 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
1669 (build_scop_scattering): Do not use compare_prefix_loops any more.
1670 (nb_common_loops): New.
1671
16722009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1673
1674 * sese.c (get_new_name_from_old_name): Renamed get_rename.
1675 (register_old_and_new_names): Renamed set_rename.
1676
16772009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1678
1679 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
1680 of the decl from the previous commit.
1681
16822009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1683
1684 * graphite-scop-detection.c (dot_scop): New.
1685 * graphite-scop-detection.h (dot_scop): Declared.
1686
16872009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1688
1689 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
1690
16912009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1692
1693 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
1694 condition at the end of the loop.
1695 * graphite.c (graphite_initialize, graphite_finalize): Print to
1696 dump_file the compiled function.
1697 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
1698 of create_empty_loop_on_edge.
1699 (translate_clast): Update the code generation of loops for the new
1700 shape of loops.
1701 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
1702
17032009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1704
1705 Reverted the patch from 2009-03-19.
1706
17072009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
1708
1709 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
1710 poly_drs vector.
1711 (print_scop): Style.
1712 * graphite-poly.h (poly_bb): Add drs vector.
1713 (PBB_DRS): Add accessor.
1714 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
1715 (build_access_matrix_with_af, build_access_matrix,
1716 build_scop_data_accesses): Delete.
1717 (build_poly_dr): New.
1718 (build_pbb_drs, build_scop_drs): New.
1719 (build_poly_scop): call build_scop_drs.
1720
17212009-03-13 Sebastian Pop <sebastian.pop@amd.com>
1722
1723 * graphite-scop-detection.c (dot_all_scops_1): Close the table
1724 once per basic block.
1725
17262009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
1727
1728 * graphite-scop-detection.c (graphite_can_represent_scev): New.
1729 (graphite_can_represent_expr): Renamed from loop_affine_expr
1730 and enhanced.
1731 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
1732 (graphite_cannot_represent_loop): Add scop_entry to parameters.
1733 (scopdet_basic_block_info): Actually define entry_block.
1734 (stmt_simple_memref_p): Moved here from ...
1735
1736 * tree-data-ref.c (stmt_simple_memref_p): here.
1737 * tree-data-ref.h (stmt_simple_memref_p): Removed.
1738
17392009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
1740
1741 * testsuite/gcc.dg/graphite/id-4.c: New.
1742
17432009-03-12 Sebastian Pop <sebastian.pop@amd.com>
1744
1745 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
1746 (register_old_and_new_names): Update the content of the map.
1747 When there was already a rename_map_elt in the map at that
1748 location, free it.
1749 (copy_bb_and_scalar_dependences): Do rename_variables after
1750 expand_scalar_variables.
1751 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
1752 of the map. When there was already a rename_map_elt in the
1753 map at that location, free it.
1754 (translate_clast): Pass the rename_map. Do not initialize and free
1755 a rename_map per stmt_user.
1756 (gloog): Initialize and free one rename_map and pass it to
1757 translate_clast.
1758
17592009-03-12 Sebastian Pop <sebastian.pop@amd.com>
1760
1761 * sese.c (expand_scalar_variables_stmt,
1762 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
1763 parameter.
1764 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
1765 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
1766 the gimple_stmt_iterator of the statement to be expanded.
1767 * graphite-scop-detection.c (is_simple_operand): Do handle
1768 REALPART_EXPR.
1769
17702009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
1771
1772 * graphite-scop-detection.c (is_simple_operand): Do not handle
1773 REALPART_EXPR.
1774 * testsuite/gcc.dg/graphite/id-2.c: New.
1775
1776 * graphite-sese-to-poly.c (build_bb_loops,
1777 add_value_to_dim, scan_tree_for_params_right_scev,
1778 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
1779 find_params_in_bb, build_loop_iteration_domains,
1780 add_conditions_to_domain): Remove subtract.
1781
17822009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
1783
1784 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
1785 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
1786 pbb_loop_at_index -> gbb_loop_at_index.
1787 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
1788 (debug_loop_vec): Delete.
1789 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
1790 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
1791 (PBB_LOOPS): Removed.
1792 (PBB_BLACK_BOX): Insert cast.
1793 (pbb_set_black_box): New setter.
1794 (pbb_loop_at_index, pbb_loop_index): Removed.
1795 (scop_set_region, scop_set_nb_params): New.
1796 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
1797 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
1798 (build_poly_scop): Use scop_set_nb_params.
1799 * sese.h (gimple_bb): Add LOOPS.
1800 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
1801
18022009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
1803
1804 Revert previous commit.
1805
18062009-03-11 Sebastian Pop <sebastian.pop@amd.com>
1807
1808 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
1809 (register_old_and_new_names): Update the content of the map.
1810 When there was already a rename_map_elt in the map at that
1811 location, free it.
1812 (copy_bb_and_scalar_dependences): Do rename_variables after
1813 expand_scalar_variables.
1814 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
1815 of the map. When there was already a rename_map_elt in the
1816 map at that location, free it.
1817 (translate_clast): Pass the rename_map. Do not initialize and free
1818 a rename_map per stmt_user.
1819 (gloog): Initialize and free one rename_map and pass it to
1820 translate_clast.
1821
18222009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
1823
1824 Remove forgotten line in revert.
1825
18262009-03-11 Sebastian Pop <sebastian.pop@amd.com>
1827
1828 Revert previous commit.
1829
18302009-03-10 Sebastian Pop <sebastian.pop@amd.com>
1831
1832 * sese.c (register_old_and_new_names): Update the content
1833 of the map. When there was already a rename_map_elt in the
1834 map at that location, free it.
1835 (copy_bb_and_scalar_dependences): Do rename_variables after
1836 expand_scalar_variables.
1837 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
1838 of the map. When there was already a rename_map_elt in the
1839 map at that location, free it.
1840 (translate_clast): Pass the rename_map. Do not initialize and free
1841 a rename_map per stmt_user.
1842 (gloog): Initialize and free one rename_map and pass it to
1843 translate_clast.
1844
18452009-03-10 Sebastian Pop <sebastian.pop@amd.com>
1846
1847 * graphite-clast-to-gimple.c (translate_clast): context_loop
1848 is never NULL.
1849
18502009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
1851 Sebastian Pop <sebastian.pop@amd.com>
1852
1853 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
1854 of the use of ppl_Polyhedron_map_space_dimensions.
1855
18562009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
1857 Sebastian Pop <sebastian.pop@amd.com>
1858
1859 * graphite-poly.c (unify_scattering_dimensions): Fix types.
1860 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
1861 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
1862 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
1863 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
1864 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
1865 pbb_nb_params): New.
1866 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
1867 nb_loops_around_pbb): Adapt return types.
1868
18692009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
1870
1871 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
1872 graphite-clast-to-gimple.o, graphite-data-ref.o,
1873 graphite-scop-detection.o, graphite-poly.o): Add
1874 more headers.
1875
18762009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
1877
1878 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
1879 graphite-clast-to-gimple.o, graphite-data-ref.o,
1880 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
1881
18822009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1883
1884 * testsuite/gcc.dg/graphite/pr37485.c: Remove -floop-block
1885 * testsuite/gcc.dg/graphite/pr37828.c: Same.
1886 * testsuite/gcc.dg/graphite/pr37684.c: Same.
1887 * testsuite/gcc.dg/graphite/block-0.c: Same.
1888 * testsuite/gcc.dg/graphite/block-1.c: Same.
1889 * testsuite/gcc.dg/graphite/block-2.c: Same.
1890 * testsuite/gcc.dg/graphite/block-3.c: Same.
1891 * testsuite/gcc.dg/graphite/block-4.c: Same.
1892 * testsuite/gcc.dg/graphite/block-5.c: Same.
1893 * testsuite/gcc.dg/graphite/block-6.c: Same.
1894 * testsuite/gfortran.dg/graphite/pr38083.f90: Same.
1895 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
1896 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
1897 * testsuite/gfortran.dg/graphite/pr37852.f90: Same.
1898 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
1899 * testsuite/gfortran.dg/graphite/pr37980.f90: Same.
1900 * testsuite/gfortran.dg/graphite/pr38953.f90: Same.
1901 * testsuite/gfortran.dg/graphite/pr37857.f90: Same.
1902 * opts.c: Remove -floop-block from -O2.
1903 * graphite-poly.c: Fail if -floop-block -floop-interchange or
1904 -floop-strip-mine are used.
1905
19062009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1907 Sebastian Pop <sebastian.pop@amd.com>
1908
1909 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
1910 dimensions.
1911 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
1912 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
1913 strip_mine_profitable_p, is_interchange_valid,
1914 graphite_trans_bb_block, graphite_trans_loop_block,
1915 graphite_trans_scop_block): Temporary removed.
1916 (extend_scattering, unify_scattering_dimensions): New.
1917 (print_scattering_function, graphite_read_transforms):
1918 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
1919 (graphite_generate_scattering_fns): Removed.
1920 (apply_poly_transforms): Cleanup.
1921 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
1922 (schedule_to_scattering): Moved.
1923 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
1924 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
1925 (pbb_nb_scattering): New.
1926 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
1927 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
1928 Removed.
1929 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
1930 shift_poly.
1931 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
1932 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
1933 -> PBB_TRANSFORMED_SCATTERING.
1934 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
1935 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
1936 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
1937 (check_poly_representation): Do not return bool.
1938 (graphite_transform_loops): Reformat.
1939 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
1940
19412009-03-04 Sebastian Pop <sebastian.pop@amd.com>
1942
1943 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
1944 debug_pbb_domain, debug_pbb, debug_scop): New.
1945 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
1946 debug_pbb_domain, debug_pbb, debug_scop): Declared.
1947
19482009-03-02 Sebastian Pop <sebastian.pop@amd.com>
1949
1950 PR middle-end/39335
1951 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
1952 when the type precision of the induction variable should be
1953 larger than the type precision of nit.
1954 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
1955 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
1956 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
1957
1958 * testsuite/gcc.dg/graphite/pr39335_1.c: New.
1959 * testsuite/gcc.dg/graphite/pr39335.c: New.
1960
19612009-03-02 Sebastian Pop <sebastian.pop@amd.com>
1962
1963 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
1964 SSA_NAMES not struct reduction_info.
1965
19662009-03-02 Sebastian Pop <sebastian.pop@amd.com>
1967
1968 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
1969
19702009-02-27 Sebastian Pop <sebastian.pop@amd.com>
1971 Tobias Grosser <grosser@fim.uni-passau.de>
1972
1973 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
1974 (free_sese): Free SESE_REDUCTION_LIST.
1975 * sese.h (struct sese): Add field reduction_list.
1976 (SESE_REDUCTION_LIST): New.
1977 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
1978 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
1979
19802009-02-27 Sebastian Pop <sebastian.pop@amd.com>
1981 Tobias Grosser <grosser@fim.uni-passau.de>
1982
1983 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
1984 of loop_p.
1985
19862009-02-27 Sebastian Pop <sebastian.pop@amd.com>
1987 Tobias Grosser <grosser@fim.uni-passau.de>
1988
1989 * tree-parloops.c (struct brli, build_reduction_list_info,
1990 analyze_reduction_list, gather_scalar_reductions): New.
1991 (loop_parallel_p): Build a reduction list containing only
1992 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
1993 (gen_parallel_loop): Call the analysis analyze_reduction_list.
1994 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
1995 * tree-flow.h (gather_scalar_reductions): Declared.
1996
19972009-02-26 Sebastian Pop <sebastian.pop@amd.com>
1998
1999 PR middle-end/39308
2000 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
2001 number_of_iterations_exit from a gcc_assert.
2002
20032009-02-25 Sebastian Pop <sebastian.pop@amd.com>
2004 Jan Sjodin <jan.sjodin@amd.com>
2005
2006 * output.h (graphite_out_file, graphite_in_file): Declared.
2007 * toplev.c (graphite_out_file, graphite_in_file): New.
2008 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
2009 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
2010 Don't call schedule_to_scattering.
2011 * common.opt (fgraphite-write, fgraphite-read): New.
2012 * graphite-poly.c: Include output.h.
2013 (print_scattering_function, print_scattering_functions,
2014 debug_scattering_function, debug_scattering_functions,
2015 graphite_write_transforms, graphite_read_transforms,
2016 graphite_generate_scattering_fns): New.
2017 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
2018 Call graphite_generate_scattering_fns, graphite_write_transforms,
2019 graphite_read_transforms.
2020 (new_poly_bb): Initialize PBB_SCATTERING.
2021 (free_poly_bb): Free PBB_SCATTERING.
2022 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
2023 * graphite-poly.h (struct poly_bb): Add field scattering.
2024 (PBB_SCATTERING): New.
2025 (print_scattering_function, print_scattering_functions,
2026 debug_scattering_function, debug_scattering_functions): Declared.
2027 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
2028 GMP values, not integers!
2029 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
2030 ppl_read_polyhedron_matrix): New.
2031 * graphite-ppl.h (ppl_print_polyhedron_matrix,
2032 debug_ppl_polyhedron_matrix,
2033 ppl_read_polyhedron_matrix): Declared.
2034 * Makefile.in (graphite-poly.o): Depends on output.h.
2035
20362009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2037 Tobias Grosser <grosser@fim.uni-passau.de>
2038
2039 Revert this change:
2040 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
2041 scalar evolutions in the scop_entry->loop_father.
2042
20432009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2044 Tobias Grosser <grosser@fim.uni-passau.de>
2045
2046 * graphite.h (ref_nb_loops): Remove declaration.
2047 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
2048 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
2049 debug_gbb): Moved to sese.h.
2050 * sese.h: As said.
2051
20522009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2053 Tobias Grosser <grosser@fim.uni-passau.de>
2054
2055 * graphite-data-ref.[ch]: Disable.
2056
20572009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2058 Tobias Grosser <grosser@fim.uni-passau.de>
2059
2060 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
2061 scalar evolutions in the scop_entry->loop_father.
2062
20632009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2064
2065 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
2066 (graphite_cannot_represent_loop_niter): Renamed
2067 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
2068 (limit_scops): build_sese_loop_nests does not return a bool.
2069 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
2070 * sese.c (nb_reductions_in_loop): ... from here.
2071 (graphite_loop_normal_form): ... from here.
2072 (sese_record_loop): Does not fail, so does not return a bool.
2073 (build_sese_loop_nests): Same.
2074 * sese.h (build_sese_loop_nests): Update declaration.
2075 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
2076 (build_graphite_loop_normal_form): New.
2077 (gloog): Call build_graphite_loop_normal_form.
2078 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
2079 build_sese_loop_nests.
2080
2081 * testsuite/gcc.dg/graphite/id-1.c: New.
2082
20832009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2084 Tobias Grosser <grosser@fim.uni-passau.de>
2085
2086 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
2087 The SCoP detection fix is sufficient.
2088
20892009-02-21 Sebastian Pop <sebastian.pop@amd.com>
2090
2091 PR tree-optimization/39260
2092 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
2093 the basic block contains a condition with a real type.
2094 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
2095
2096 * gcc.dg/graphite/pr39260.c: New.
2097
20982009-02-21 Sebastian Pop <sebastian.pop@amd.com>
2099
2100 * graphite-poly.c: Inlcude params.h.
2101 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
2102 the size of a tile.
2103 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
2104 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
2105
21062009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2107 Tobias Grosser <grosser@fim.uni-passau.de>
2108
2109 * graphite-scop-detection.c (dot_all_scops_1,
2110 dot_all_scops): Moved here.
2111 * graphite-scop-detection.h (dot_all_scops): Declared here.
2112 * graphite.c (graphite_initialize, graphite_finalize): New.
2113 (graphite_transform_loops): Cleaned up.
2114 * sese.c (debug_oldivs): Moved here.
2115 * graphite-poly.c (graphite_apply_transformations): Renamed
2116 apply_poly_transforms.
2117 (debug_loop_vec): Moved here.
2118 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
2119 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
2120 find_scop_parameters, build_scop_iteration_domain,
2121 add_conditions_to_constraints, build_scop_canonical_schedules,
2122 build_scop_data_accesses): Now static.
2123 (build_poly_scop, check_poly_representation): New.
2124
21252009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2126
2127 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
2128 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
2129 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
2130 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
2131 scan_tree_for_params_right_scev, scan_tree_for_params_int,
2132 scan_tree_for_params, struct irp_data, dx_record_params,
2133 find_params_in_bb, find_scop_parameters, gbb_from_bb,
2134 build_loop_iteration_domains, add_conditions_to_domain,
2135 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
2136 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
2137 build_sese_conditions, add_conditions_to_constraints,
2138 build_scop_iteration_domain, build_access_matrix_with_af,
2139 build_access_matrix,
2140 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
2141
2142 * graphite-sese-to-poly.c: New.
2143 * graphite-sese-to-poly.h: New.
2144
2145 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
2146
21472009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2148
2149 * graphite.c: Split graphite code generation to a new file.
2150 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
2151 max_precision_type, clast_to_gcc_expression_red,
2152 clast_to_gcc_expression, gcc_type_for_clast_expr,
2153 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
2154 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
2155 graphite_create_new_guard, clast_get_body_of_loop,
2156 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
2157 graphite_create_new_loop, build_iv_mapping, copy_renames,
2158 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
2159 compute_cloog_iv_types, free_scattering, save_var_name,
2160 initialize_cloog_names, build_scop_context, build_cloog_prog,
2161 set_cloog_options, debug_clast_stmt, scop_to_clast,
2162 print_generated_program, debug_generated_program,
2163 gloog): Moved to graphite-clast-to-gimple.c.
2164
2165 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
2166
2167 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
2168 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
2169 loop_iv_stack_pop, loop_iv_stack_get_iv,
2170 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
2171 free_loop_iv_stack, loop_iv_stack_remove_constants,
2172 debug_rename_elt, debug_rename_map_1, debug_rename_map,
2173 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
2174 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
2175 eq_ivtype_map_elts, sese_add_exit_phis_edge,
2176 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
2177 get_vdef_before_sese, sese_adjust_vphi,
2178 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
2179 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
2180 is_iv, expand_scalar_variables_ssa_name,
2181 expand_scalar_variables_expr, expand_scalar_variables_stmt,
2182 expand_scalar_variables, rename_variables, remove_condition,
2183 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
2184 add_loop_exit_phis, insert_loop_close_phis, struct igp,
2185 default_liveout_before_guard, add_guard_exit_phis,
2186 insert_guard_phis, register_old_and_new_names,
2187 graphite_copy_stmts_from_block, register_sese_liveout_renames,
2188 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
2189 if_region_set_false_region, create_if_region_on_edge,
2190 move_sese_in_condition): Moved to sese.c.
2191
2192 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
2193 if_region_exit, if_region_get_condition_block,
2194 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
2195 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
2196 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
2197 ivtype_map_elt, new_ivtype_map_elt,
2198 recompute_all_dominators): Moved to sese.h.
2199
2200 * graphite-clast-to-gimple.c: New.
2201 * graphite-clast-to-gimple.h: New.
2202 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
2203 * sese.c: Modified as said above.
2204 * sese.h: Same.
2205
22062009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2207
2208 * graphite.c: Split scop detection to a new file.
2209 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
2210 move_sd_regions, loop_affine_expr, exclude_component_ref,
2211 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
2212 graphite_cannot_represent_loop_niter, struct scopdet_info,
2213 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
2214 find_single_entry_edge, find_single_exit_edge,
2215 create_single_entry_edge, sd_region_without_exit,
2216 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
2217 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
2218 Moved to graphite-scop-detection.c.
2219
2220 * graphite-scop-detection.c: New.
2221 * graphite-scop-detection.h: New.
2222 * Makefile.in: Add new rule for graphite-scop-detection.o.
2223
2224 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
2225 tree-scalar-evolution.h.
2226 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
2227 build_sese_loop_nests): Moved here from graphite.c.
2228 (param_index): Renamed parameter_index_in_region.
2229
22302009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
2231 Sebastian Pop <sebastian.pop@amd.com>
2232
2233 * gcc.dg/graphite/block-0.c: Expected to fail now.
2234 * gcc.dg/graphite/block-1.c: Same.
2235 * gcc.dg/graphite/block-5.c: Same.
2236 * gcc.dg/graphite/block-6.c: Same.
2237
22382009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
2239 Sebastian Pop <sebastian.pop@amd.com>
2240
2241 * graphite.h: Separate from graphite_bb_p the polyhedral
2242 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
2243 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
2244 graphite-data-ref.h.
2245 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
2246 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
2247 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
2248 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
2249 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
2250 scop_nb_params): Moved to graphite-poly.h.
2251 * graphite-data-ref.c: Same.
2252 * graphite-data-ref.h: New.
2253 * graphite.c: Same.
2254 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
2255 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
2256 is_interchange_valid, graphite_trans_bb_block,
2257 graphite_trans_loop_block, scop_max_loop_depth,
2258 graphite_trans_scop_block, graphite_apply_transformations,
2259 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
2260 graphite-poly.c.
2261 * graphite-poly.h: New.
2262 * graphite-poly.c: New.
2263 * Makefile.in (OBJS-common): Add graphite-poly.o.
2264 (graphite-poly.o): New rule.
2265 * tree-data-ref.h (struct data_reference): Remove unused scop field.
2266 (DR_SCOP): Removed.
2267
22682009-02-18 Sebastian Pop <sebastian.pop@amd.com>
2269 Tobias Grosser <grosser@fim.uni-passau.de>
2270
2271 * graphite.c: Replace gb -> gbb.
2272 * graphite.h: Same.
2273 * graphite-data-ref.c: Same.
2274
22752009-02-18 Sebastian Pop <sebastian.pop@amd.com>
2276 Tobias Grosser <grosser@fim.uni-passau.de>
2277
2278 * Makefile.in (OBJS-commmon): Add sese.o.
2279 (sese.o): New.
2280 (graphite.o): Add sese.h.
2281 * graphite.c (bb_in_ss_p, loop_in_sese_p,
2282 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
2283 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
2284 Move to sese.
2285 (block_before_scop): Add missing return.
2286 (new_scop, free_scop): Remove SESE data structures.
2287 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
2288 find_scop_parameters, build_loop_iteration_domains,
2289 add_conditions_to_domain, register_scop_liveout_renames,
2290 copy_bb_and_scalar_dependences): Scop -> SESE.
2291
2292 (add_conditions_to_domain): SCoP -> SESE and remove check
2293 (scop_contains_non_iv_scalar_phi_nodes): New.
2294 (build_scop_conditions_1, build_scop_conditions): Remove check for
2295 non iv scalar phi nodes.
2296 (print_scop_statistics): New.
2297 (graphite_transform_loops): Cleanup.
2298
2299 * graphite.h: Move to sese & cleanup.
2300 * sese.c: New.
2301 * sese.h: New.
2302
23032009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2304 Tobias Grosser <grosser@fim.uni-passau.de>
2305
2306 * graphite.c (build_scop_conditions_1): Conditions are only
2307 at the end of a basic block.
2308
23092009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2310 Tobias Grosser <grosser@fim.uni-passau>
2311
2312 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
2313 field.
2314 (GBB_ALPHA): Removed.
2315
23162009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2317 Tobias Grosser <grosser@fim.uni-passau.de>
2318
2319 * graphite-data-ref.c (graphite_test_dependence): Don't use
2320 GBB_DYNAMIC_SCHEDULE.
2321 * graphite.c (new_graphite_bb): Same.
2322 (free_graphite_bb): Same.
2323 (build_scop_dynamic_schedules): Removed.
2324 (graphite_transform_loops): Don't call it.
2325 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
2326 (GBB_DYNAMIC_SCHEDULE): Removed.
2327
23282009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2329 Tobias Grosser <grosser@fim.uni-passau.de>
2330
2331 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
2332 (print_graphite_bb): Same.
2333 (build_cloog_prog): Same.
2334
23352009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2336 Tobias Grosser <grosser@fim.uni-passau.de>
2337
2338 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
2339
23402009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2341 Tobias Grosser <grosser@fim.uni-passau.de>
2342
2343 * graphite.c (build_scop_context): Don't use CloogMatrix.
2344 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
2345 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
2346
23472009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2348 Tobias Grosser <grosser@fim.uni-passau.de>
2349
2350 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
2351 liveout_renames, add_params fields...
2352 (struct sese): ... here.
2353 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
2354 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
2355
23562009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2357 Tobias Grosser <grosser@fim.uni-passau.de>
2358
2359 * graphite.c (print_scop): Do not print the CLooG program.
2360 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
2361 build_cloog_prog, gloog): Don't use SCOP_PROG.
2362 (find_transform): Renamed scop_to_clast.
2363 (print_generated_program, debug_generated_program): New.
2364 (graphite_transform_loops): Adapt to new interface.
2365 * graphite.h (struct scop): Remove program field.
2366 (SCOP_PROG): Removed.
2367 (print_generated_program, debug_generated_program): Declared.
2368
23692009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2370
2371 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
2372 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
2373 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
2374 free_graphite_bb, build_scop_canonical_schedules,
2375 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
2376 schedules are now represented using a ppl_Linear_Expression_t.
2377 * graphite.h (struct graphite_bb): Same.
2378 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
2379 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
2380
23812009-02-15 Sebastian Pop <sebastian.pop@amd.com>
2382
2383 * graphite.c: Free local memory.
2384 * graphite-ppl.c: Same.
2385
23862009-02-15 Sebastian Pop <sebastian.pop@amd.com>
2387
2388 * graphite.c (const_column_index, get_first_matching_sign_row_index,
2389 get_lower_bound_row, get_upper_bound_row, copy_constraint,
2390 swap_constraint_variables, scale_constraint_variable): Removed.
2391 (graphite_trans_bb_strip_mine): Remove pong.
2392 * graphite-ppl.c: Include missing header files.
2393 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
2394 * graphite-ppl.h (ppl_strip_loop): Declared.
2395 * Makefile.in (graphite-ppl.o): Adjust dependences.
2396
23972009-02-14 Sebastian Pop <sebastian.pop@amd.com>
2398
2399 * graphite.c (build_loop_iteration_domains): Remove ping pong.
2400 (build_scop_iteration_domain): Same.
2401
24022009-02-13 Sebastian Pop <sebastian.pop@amd.com>
2403
2404 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
2405 ping pong.
2406 (add_value_to_dim, scan_tree_for_params_right_scev,
2407 scan_tree_for_params_int): New.
2408 * graphite-ppl.c (oppose_constraint): New.
2409 (insert_constraint_into_matrix): Implement missing cases.
2410 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
2411
24122009-02-13 Sebastian Pop <sebastian.pop@amd.com>
2413
2414 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
2415 use ppl_move_dimension.
2416
24172009-02-12 Sebastian Pop <sebastian.pop@amd.com>
2418
2419 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
2420 * graphite.c: Same.
2421 * graphite.h: Same.
2422 * graphite-ppl.c: Same.
2423 * graphite-ppl.h: Same.
2424
24252009-02-12 Sebastian Pop <sebastian.pop@amd.com>
2426
2427 Revert last 3 commits.
2428
24292009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2430
2431 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
2432 ping pong.
2433 (add_value_to_dim, scan_tree_for_params_right_scev,
2434 scan_tree_for_params_int): New.
2435 * graphite-ppl.c (oppose_constraint): New.
2436 (insert_constraint_into_matrix): Implement missing cases.
2437 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
2438
24392009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2440
2441 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
2442
24432009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2444 Tobias Grosser <grosser@fim.uni-passau.de>
2445
2446 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
2447 use ppl_move_dimension.
2448 * graphite-ppl.c (ppl_move_dimension): New.
2449 * graphite-ppl.h (ppl_move_dimension): Declared.
2450
24512009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2452
2453 * graphite.c: Do not include cloog/cloog.h.
2454 (print_graphite_bb): Remove ping pong, call PPL print function.
2455
24562009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
2457
2458 * Makefile.in (OBJS-common): Add graphite-ppl.o.
2459 (graphite.o): Add dependence on graphite-ppl.h.
2460 (graphite-ppl.o): New.
2461 (graphite-data-ref.c): Ping pong between PPL data structures
2462 and matrices.
2463 * graphite-ppl.c: New.
2464 * graphite-ppl.h: New.
2465 * graphite.c: Include graphite-ppl.h.
2466 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
2467 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
2468 Ping pong between PPL data structures and matrices.
2469 (new_graphite_bb): Create a PPL constraint system.
2470 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
2471 (build_loop_iteration_domains): Use PPL functions.
2472 * graphite.h: Include graphite-ppl.h. Fix comments.
2473 (graphite_bb): Use a ppl_Constraint_System_t instead of
2474 CloogMatrix for representing the domain.
2475 (scop): Remove static_schedule.
2476 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
2477
24782009-02-06 Sebastian Pop <sebastian.pop@amd.com>
2479
2480 * graphite.c: Fix some comments.
2481
24822009-02-05 Sebastian Pop <sebastian.pop@amd.com>
2483
2484 PR middle-end/38953
2485 * graphite.c (if_region_set_false_region): After moving a region
2486 in the false branch of a condition, remove the empty dummy
2487 basic block.
2488 (gloog): Remove wrong fix for PR38953.
2489
24902009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
2491
2492 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
2493 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
2494 register_bb_in_sese, new_sese, free_sese): Moved.
2495 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
2496 outermost_loop_in_scop, build_scop_iteration_domain,
2497 expand_scalar_variables_ssa_name, get_vdef_before_scop,
2498 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
2499 Use loop_in_sese_p instead of loop_in_scop_p.
2500 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
2501 (free_scop): Do not free SCOP_BBS_B.
2502 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
2503 ref_nb_loops): Moved here...
2504 * graphite.h (ref_nb_loops): ... from here.
2505 (struct scop): Remove bbs_b bitmap.
2506 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
2507 * testsuite/gcc.dg/graphite/scop-19.c: New
2508
25092009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
2510
2511 * graphite.c (scopdet_basic_block_info): Fix bug in scop
2512 detection.
2513
25142009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
2515
2516 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
2517 eq_loop_to_cloog_loop): Remove.
2518 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
2519 * graphite.h (struct scop): Remove loop2cloog_loop.
2520 (loop_domain_dim, loop_iteration_vector_dim): Remove.
2521
25222009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
2523
2524 * opts.c (decode_options): Only add graphite options to O2
2525 if we compile with graphite enabled.
2526
25272009-01-26 Sebastian Pop <sebastian.pop@amd.com>
2528
2529 * Merge from mainline (r143163:143684).
2530
25312009-01-26 Sebastian Pop <sebastian.pop@amd.com>
2532
2533 * graphite.c (debug_value): Removed.
2534 * graphite.h (debug_value): Removed.
2535
25362009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2537
2538 * passes.c (init_optimization_passes): Do not call pass_copy_prop
2539 after graphite: pass_copy_prop does not maintain a proper loop closed
2540 SSA form. pass_copy_prop should be fixed.
2541
25422009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2543
2544 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
2545
25462009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2547
2548 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
2549 (gloog): Split the exit of the scop when the scop exit is a loop exit.
2550 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
2551 changed the CFG.
2552
25532009-01-20 Sebastian Pop <sebastian.pop@amd.com>
2554
2555 * graphite.c (gloog): Return true when code gen succeeded.
2556 (graphite_transform_loops): Do not call cleanup_tree_cfg if
2557 the code of the function did not changed. After cleanup_tree_cfg
2558 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
2559 form.
2560
25612009-01-19 Sebastian Pop <sebastian.pop@amd.com>
2562
2563 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
2564 gimple_call_lhs is NULL.
2565
25662009-01-16 Sebastian Pop <sebastian.pop@amd.com>
2567 Tobias Grosser <tobi.grosser@amd.com>
2568
2569 * graphite.c (graphite_trans_scop_block): Do not block single
2570 nested loops.
2571
25722009-01-15 Sebastian Pop <sebastian.pop@amd.com>
2573 Tobias Grosser <tobi.grosser@amd.com>
2574
2575 * graphite.c (build_scop_canonical_schedules): Start schedules at
2576 zero.
2577
25782009-01-15 Sebastian Pop <sebastian.pop@amd.com>
2579 Tobias Grosser <tobi.grosser@amd.com>
2580
2581 * graphite.c (compare_prefix_loops): New.
2582 (build_scop_canonical_schedules): Rewritten.
2583 (graphite_transform_loops): Move build_scop_canonical_schedules
2584 after build_scop_iteration_domain.
2585
25862009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2587 Tobias Grosser <tobi.grosser@amd.com>
2588
2589 * graphite.c (add_conditions_to_domain): Add the loops to
2590 the dimension of the iteration domain. Do copy the domain
2591 only when it exists.
2592 (build_scop_conditions_1): Do not call add_conditions_to_domain.
2593 (add_conditions_to_constraints): New.
2594 (can_generate_code_stmt, can_generate_code): Removed.
2595 (gloog): Do not call can_generate_code.
2596 (graphite_transform_loops): Call add_conditions_to_constraints
2597 after building the iteration domain.
2598
25992009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2600 Tobias Grosser <tobi.grosser@amd.com>
2601 Jan Sjodin <jan.sjodin@amd.com>
2602
2603 * graphite.c (scan_tree_for_params): On substractions negate
2604 all the coefficients of the term.
2605 (clast_to_gcc_expression_red): New. Handle reduction expressions
2606 of more than two operands.
2607 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
2608 (get_vdef_before_scop): Handle also the case of default definitions.
2609
26102009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2611
2612 PR middle-end/38431
2613 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
2614 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
2615 (gloog): Do not call cleanup_tree_cfg.
2616 (graphite_transform_loops): Call cleanup_tree_cfg after all
2617 scops have been code generated.
2618
26192009-01-13 Sebastian Pop <sebastian.pop@amd.com>
2620
2621 * passes.c (init_optimization_passes): Schedule after
2622 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
2623
26242009-01-13 Sebastian Pop <sebastian.pop@amd.com>
2625
2626 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
2627 Fix comment.
2628 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
2629 Set the type of an expression to the type of its assign statement.
2630 (expand_scalar_variables_expr): Do not pass loop_p.
2631 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
2632 (copy_bb_and_scalar_dependences): Do not pass loop_p.
2633 (translate_clast): Update call to copy_bb_and_scalar_dependences.
2634
26352009-01-11 Sebastian Pop <sebastian.pop@amd.com>
2636
2637 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
2638 an expression to the gimple_expr_type of its assign statement.
2639 (expand_scalar_variables_expr): Stop recursion on tcc_constant
2640 or tcc_declaration.
2641
26422009-01-11 Sebastian Pop <sebastian.pop@amd.com>
2643
2644 PR tree-optimization/38786
2645 * testsuite/gcc.dg/graphite/pr38786.c: New.
2646 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
2647 the SSA_NAME case of expand_scalar_variables_expr.
2648 (expand_scalar_variables_expr): Also gather the scalar computation
2649 used to index the memory access.
2650 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
2651 the gimple_stmt_iterator where it inserts new code.
2652
26532009-01-10 Sebastian Pop <sebastian.pop@amd.com>
2654
2655 * testsuite/gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
2656
26572009-01-10 Sebastian Pop <sebastian.pop@amd.com>
2658
2659 * opts.c (decode_options): Enable flag_graphite_identity and
2660 flag_loop_block in -O2 and above.
2661
26622009-01-08 Sebastian Pop <sebastian.pop@amd.com>
2663
2664 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
2665 Fix merge problem: replace with the file from trunk.
2666
26672009-01-08 Sebastian Pop <sebastian.pop@amd.com>
2668
2669 * Merge from mainline (r141727:143163).
2670
26712009-01-07 Sebastian Pop <sebastian.pop@amd.com>
2672 Jan Sjodin <jan.sjodin@amd.com>
2673
2674 PR tree-optimization/38559
2675 * testsuite/gcc.dg/graphite/pr38559.c: New.
2676
2677 * graphite.c (debug_value, copy_constraint,
2678 swap_constraint_variables, scale_constraint_variable, ): New.
2679 (get_lower_bound, get_upper_bound): Removed.
2680 (graphite_trans_bb_strip_mine): Clean up this code that works
2681 only for constant number of iterations. Fully copy upper and
2682 lower bound constraints, not only the constant part of them.
2683 * graphite.h (debug_value): Declared.
2684
26852009-01-06 Jan Sjodin <jan.sjodin@amd.com>
2686
2687 PR tree-optimization/38492
2688 PR tree-optimization/38498
2689 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
2690 * tree-chrec.h (scev_is_linear_expression): Declared.
2691 * graphite.c (graphite_cannot_represent_loop_niter): New.
2692 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
2693 (graphite_loop_normal_form): Use gcc_assert.
2694 (scan_tree_for_params): Use CASE_CONVERT.
2695 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
2696 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
2697 Use gcc_assert. Discard scops that contain unhandled cases.
2698 (build_scop_conditions): Return a boolean status for unhandled cases.
2699 (strip_mine_profitable_p): Print the loop number, not its depth.
2700 (is_interchange_valid): Pass the depth of the loop nest, don't
2701 recompute it wrongly.
2702 (graphite_trans_bb_block): Same.
2703 (graphite_trans_bb_block): Print tentative of loop blocking.
2704 (graphite_trans_scop_block): Do not print that the loop has been
2705 blocked.
2706 (graphite_transform_loops): Do not handle scops that contain condition
2707 scalar phi nodes.
2708
2709 * testsuite/gcc.dg/graphite/pr38500.c: Fixed warning as committed
2710 in trunk.
2711 * testsuite/gcc.dg/graphite/block-0.c: Update test.
2712 * testsuite/gcc.dg/graphite/block-1.c: Same.
2713 * testsuite/gcc.dg/graphite/block-2.c: Remove xfail and test for
2714 blocking.
2715 * testsuite/gcc.dg/graphite/block-4.c: Remove test for strip mine.
2716 * testsuite/gcc.dg/graphite/block-3.c: New.
2717 * testsuite/gcc.dg/graphite/pr38498.c: New.
2718
27192008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
2720
2721 PR tree-optimization/38510
2722 * gcc.dg/graphite/pr38510.c: New.
2723 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
2724 (translate_clast): Call recompute_all_dominators before
2725 graphite_verify.
2726 (gloog): Call recompute_all_dominators before graphite_verify.
2727
27282008-12-12 Sebastian Pop <sebastian.pop@amd.com>
2729
2730 PR tree-optimization/38492
2731 * graphite.c (rename_map_elt, debug_rename_elt,
2732 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
2733 rename_map_elt_info, eq_rename_map_elts,
2734 get_new_name_from_old_name, bb_in_sese_p): Moved around.
2735 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
2736 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
2737 (sese_build_livein_liveouts): New.
2738 (new_sese, free_sese): New.
2739 (new_scop): Call new_sese.
2740 (free_scop): Call free_sese.
2741 (rename_variables_from_edge, rename_phis_end_scop): Removed.
2742 (register_old_new_names): Renamed register_old_and_new_names.
2743 (register_scop_liveout_renames, add_loop_exit_phis,
2744 insert_loop_close_phis, struct igp,
2745 default_liveout_before_guard, add_guard_exit_phis,
2746 insert_guard_phis, copy_renames): New.
2747 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
2748 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
2749 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
2750 (scop_adjust_phis_for_liveouts): New.
2751 (gloog): Call scop_adjust_phis_for_liveouts.
2752
2753 * graphite.h (struct sese): Documented. Added fields liveout,
2754 num_ver and livein.
2755 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
2756 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
2757 (struct scop): Added field liveout_renames.
2758 (SCOP_LIVEOUT_RENAMES): New.
2759
27602008-12-11 Sebastian Pop <sebastian.pop@amd.com>
2761
2762 PR tree-optimization/38409
2763 * gcc.dg/graphite/pr38409.c: New.
2764 * graphite.c (nb_reductions_in_loop): Use simple_iv.
2765
27662008-12-11 Sebastian Pop <sebastian.pop@amd.com>
2767
2768 * graphite.c (gcc_type_for_cloog_iv): By default return
2769 integer_type_node.
2770 (graphite_create_new_loop): Don't fold_convert the already
2771 fold_convert-ed expression.
2772
27732008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
2774
2775 PR tree-optimization/38446
2776 * gcc.dg/graphite/pr38446.c: New.
2777 * graphite.c (register_bb_in_sese): New.
2778 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
2779 looking at the bbs in the region.
2780 * graphite.h (sese): Add region_basic_blocks pointer set to
2781 structure and initialize at the time of defining new scop.
2782
27832008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
2784
2785 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
2786 (find_params_in_bb): Do not free data refs.
2787 (free_graphite_bb): Add FIXME on disabled free_data_refs.
2788
27892008-12-11 Sebastian Pop <sebastian.pop@amd.com>
2790
2791 * testsuite/gcc.dg/graphite/scop-16.c: Test only scop specific info.
2792 * testsuite/gcc.dg/graphite/scop-17.c: Same.
2793 * testsuite/gcc.dg/graphite/block-5.c: New.
2794 * testsuite/gcc.dg/graphite/block-6.c: New.
2795 * testsuite/gcc.dg/graphite/pr37485.c: Clean dump file after.
2796 * testsuite/gcc.dg/graphite/pr37684.c: Same.
2797 * testsuite/gcc.dg/graphite/block-2.c: Same.
2798
2799 * graphite.c (struct ivtype_map_elt): New.
2800 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
2801 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
2802 gcc_type_for_cloog_iv): New.
2803 (loop_iv_stack_patch_for_consts): Use the type of the induction
2804 variable from the original loop, except for the automatically
2805 generated loops, i.e., in the case of a strip-mined loop, in
2806 which case there is no original loop: in that case just use
2807 integer_type_node.
2808 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
2809 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
2810 (clast_name_to_gcc): Accept params to be NULL.
2811 (clast_to_gcc_expression): Take an extra parameter for the type.
2812 Convert to that type all the expressions built by this function.
2813 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
2814 (graphite_translate_clast_equation): Compute the type of the
2815 clast_equation before translating its LHS and RHS.
2816 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
2817 (graphite_create_new_loop): Compute the type of the induction
2818 variable before translating the lower and upper bounds and before
2819 creating the induction variable.
2820 (rename_variables_from_edge, rename_phis_end_scop): New.
2821 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
2822 (sese_add_exit_phis_edge): Do not use integer_zero_node.
2823 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
2824 compute_cloog_iv_types): New.
2825 (gloog): Call compute_cloog_iv_types before starting the
2826 translation of the clast.
2827
2828 * graphite.h (struct graphite_bb): New field cloog_iv_types.
2829 (GBB_CLOOG_IV_TYPES): New.
2830 (debug_ivtype_map): Declared.
2831 (oldiv_for_loop): New.
2832
28332008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
2834
2835 PR middle-end/38459
2836 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
2837 (param_index): Assert if parameter is not know after parameter
2838 detection.
2839 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
2840 (find_scop_parameters): Mark, that we have finished parameter
2841 detection.
2842 (graphite_transform_loops): Move condition detection before parameter
2843 detection.
2844 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
2845 * testsuite/gfortran.dg/graphite/pr38459.f90: New.
2846
28472008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
2848
2849 * graphite.c (graphite_transform_loops): Always call find_transform ()
2850 in ENABLE_CHECKING. So we test these code paths, even if we do not
2851 generate code.
2852
28532008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
2854
2855 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
2856 (print_scop): Ditto.
2857
28582008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
2859
2860 PR middle-end/38084
2861 Fix testsuite/gfortran.dg/graphite/id-3.f90.
2862 * graphite.c (scopdet_basic_block_info): Fix bug that found some
2863 regions more than once.
2864
28652008-12-03 Sebastian Pop <sebastian.pop@amd.com>
2866
2867 Fix testsuite/gfortran.dg/graphite/id-4.f90.
2868 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
2869 when not needed.
2870
28712008-12-03 Sebastian Pop <sebastian.pop@amd.com>
2872
2873 Fix testsuite/gfortran.dg/graphite/id-1.f90.
2874 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
2875 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
2876 (max_precision_type): New.
2877 (value_clast): Removed.
2878 (clast_to_gcc_expression): Be more careful to types of expressions.
2879 Use max_precision_type and update use of gmp_cst_to_tree.
2880 (graphite_translate_clast_equation): Use max_precision_type.
2881 (graphite_create_guard_cond_expr): Do not use integer_type_node,
2882 use the type of the condition.
2883 (graphite_create_new_loop): Do not use integer_type_node, use the
2884 max_precision_type of lb and ub.
2885
28862008-12-03 Sebastian Pop <sebastian.pop@amd.com>
2887
2888 * graphite.c (build_scops_1): Initialize open_scop.exit
2889 and sinfo.last.
2890
28912008-12-02 Sebastian Pop <sebastian.pop@amd.com>
2892
2893 * testsuite/gcc.dg/graphite/pr38084.c: New.
2894 * testsuite/gfortran.dg/graphite/id-1.f90: New.
2895 * testsuite/gfortran.dg/graphite/id-2.f90: New.
2896 * testsuite/gfortran.dg/graphite/id-3.f90: New.
2897 * testsuite/gfortran.dg/graphite/id-4.f90: New.
2898 * testsuite/gfortran.dg/graphite/pr37857.f90: New.
2899
29002008-12-02 Sebastian Pop <sebastian.pop@amd.com>
2901 Jan Sjodin <jan.sjodin@amd.com>
2902 Harsha Jagasia <harsha.jagasia@amd.com>
2903
2904 PR middle-end/37852
2905 PR middle-end/37883
2906 PR middle-end/37928
2907 PR middle-end/37980
2908 PR middle-end/38038
2909 PR middle-end/38039
2910 PR middle-end/38073
2911 PR middle-end/38083
2912 PR middle-end/38125
2913
2914 * testsuite/gcc.dg/graphite/pr38073.c: New.
2915 * testsuite/gcc.dg/graphite/pr37928.c: New.
2916 * testsuite/gcc.dg/graphite/pr37883.c: New.
2917 * testsuite/gcc.dg/graphite/pr38125.c: New.
2918 * testsuite/gfortran.dg/graphite/pr38083.f90: New.
2919 * testsuite/gfortran.dg/graphite/pr37852.f90: New.
2920 * testsuite/gfortran.dg/graphite/pr37980.f90: New.
2921
2922 * testsuite/gcc.dg/graphite/scop-18.c: Remove reduction, test for
2923 the number of detected scops. Copy exact same test for loop
2924 blocking...
2925 * testsuite/gcc.dg/graphite/block-1.c: Fix the number of expected
2926 loops to be blocked as reductions are not handled.
2927 * testsuite/gcc.dg/graphite/block-4.c: ...here. New.
2928
2929 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
2930 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
2931 ...here.
2932 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
2933 * Makefile.in (graphite.o): Depend on value-prof.h.
2934 (graphite.o-warn): Removed -Wno-error.
2935 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
2936 to be a NULL pointer. Call update_stmt. Return the newly created
2937 cannonical induction variable.
2938
2939 * graphite.h (debug_rename_map): Declared. Fix some comments.
2940
2941 * graphite.c: Reimplement the code generation from graphite to gimple.
2942 Include value-prof.h.
2943 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
2944 (get_old_iv_from_ssa_name): Removed.
2945 (graphite_stmt_p): New.
2946 (new_graphite_bb): Test for useful statements before building a
2947 graphite statement for the basic block.
2948 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
2949 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
2950 reason.
2951 (recompute_all_dominators, graphite_verify,
2952 nb_reductions_in_loop, graphite_loop_normal_form): New.
2953 (scop_record_loop): Call graphite_loop_normal_form.
2954 (build_scop_loop_nests): Iterate over all the blocks of the
2955 function instead of relying on the incomplete information from
2956 SCOP_BBS. Return the success of the operation.
2957 (find_params_in_bb): Use the data from GBB_DATA_REFS.
2958 (add_bb_domains): Removed.
2959 (build_loop_iteration_domains): Don't call add_bb_domains.
2960 Add the iteration domain only to the basic blocks that have been
2961 translated to graphite.
2962 (build_scop_conditions_1): Add constraints only if the basic
2963 block have been translated to graphite.
2964 (build_scop_data_accesses): Completely disabled until data
2965 dependence is correctly implemented.
2966 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
2967 (remove_all_edges_1, remove_all_edges): Removed.
2968 (get_new_name_from_old_name): New.
2969 (graphite_rename_variables_in_stmt): Renamed
2970 rename_variables_in_stmt. Call get_new_name_from_old_name.
2971 Use replace_exp and update_stmt.
2972 (is_old_iv): Renamed is_iv.
2973 (expand_scalar_variables_stmt): Extra parameter for renaming map.
2974 Use replace_exp and update_stmt.
2975 (expand_scalar_variables_expr): Same. Use the map to get the
2976 new names for the renaming of induction variables and for the
2977 renaming of variables after a basic block has been copied.
2978 (expand_scalar_variables): Same.
2979 (graphite_rename_variables): Renamed rename_variables.
2980 (move_phi_nodes): Removed.
2981 (get_false_edge_from_guard_bb): New.
2982 (build_iv_mapping): Do not insert the induction variable of a
2983 loop in the renaming iv map if the basic block does not belong
2984 to that loop.
2985 (register_old_new_names, graphite_copy_stmts_from_block,
2986 copy_bb_and_scalar_dependences): New.
2987 (translate_clast): Heavily reimplemented: copy basic blocks,
2988 do not move them. Finally, in call cleanup_tree_cfg in gloog.
2989 At each translation step call graphite_verify ensuring the
2990 consistency of the SSA, loops and dominators information.
2991 (collect_virtual_phis, find_vdef_for_var_in_bb,
2992 find_vdef_for_var_1, find_vdef_for_var,
2993 patch_phis_for_virtual_defs): Removed huge hack.
2994 (mark_old_loops, remove_dead_loops, skip_phi_defs,
2995 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
2996 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
2997 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
2998 if_region_get_condition_block, if_region_set_false_region,
2999 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
3000 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
3001 sese_add_exit_phis_edge, sese_add_exit_phis_var,
3002 rewrite_into_sese_closed_ssa): New.
3003 (gloog): Remove dead code. Early return if code cannot be
3004 generated. Call cleanup_tree_cfg once the scop has been code
3005 generated.
3006 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
3007 block loops with less than two loops.
3008 (graphite_apply_transformations): Remove the call to
3009 scop_remove_ignoreable_gbbs.
3010 (limit_scops): When build_scop_loop_nests fails, continue on
3011 the next scop. Fix open_scop.entry.
3012 (graphite_transform_loops): Call recompute_all_dominators: force the
3013 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
3014 Call initialize_original_copy_tables and free_original_copy_tables
3015 to be able to copy basic blocks during code generation.
3016 When build_scop_loop_nests fails, continue on next scop.
3017 (value_clast): New union.
3018 (clast_to_gcc_expression): Fix type cast warning.
3019
30202008-11-09 Sebastian Pop <sebastian.pop@amd.com>
3021
3022 * Merge from mainline (r140838:141727).
3023
30242008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
3025
3026 PR middle-end/37833
3027
3028 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
3029
30302008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
3031
3032 PR middle-end/37943
3033
3034 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
3035 exits and conditions.
3036 * testsuite/gcc.dg/graphite/pr37943.c: New.
3037
30382008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
3039
3040 PR middle-end/37886
3041 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
3042
30432008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
3044
3045 * doc/invoke.texi: Fix spaces.
3046
30472008-10-22 Sebastian Pop <sebastian.pop@amd.com>
3048
3049 PR tree-optimization/37891
3050 Reverted last commit.
3051 * graphite.c (create_single_entry_edge): Set
3052 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
3053
30542008-10-21 Sebastian Pop <sebastian.pop@amd.com>
3055 Mitul Thakkar <mitul.thakkar@amd.com>
3056
3057 * graphite.c (create_single_entry_edge): Set
3058 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
3059
30602008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
3061
3062 * doc/invoke.texi: Add -fgraphite-identity.
3063 * graphite.c (graphite_apply_transformations): Check for
3064 -fgraphite-identity.
3065 * toplev.c (process_options): Add flag_graphite_identity.
3066 * tree-ssa-loop.c: Add flag_graphite_identity.
3067
30682008-10-14 Sebastian Pop <sebastian.pop@amd.com>
3069
3070 Undo changes from 2008-10-02:
3071 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
3072 operand type when copying the operand to a variable of different type.
3073 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
3074 with the IV name after increment.
3075
30762008-10-14 Sebastian Pop <sebastian.pop@amd.com>
3077 Harsha Jagasia <harsha.jagasia@amd.com>
3078
3079 PR tree-optimization/37828
3080 * testsuite/gcc.dg/graphite/pr37828.c: New.
3081 * graphite.c (graphite_trans_loop_block): Do not loop block
3082 single nested loops.
3083
30842008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
3085 Sebastian Pop <sebastian.pop@amd.com>
3086
3087 * graphite.c (struct rename_map_elt, new_rename_map_elt,
3088 rename_map_elt_info, eq_rename_map_elts): New.
3089 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
3090 (expand_scalar_variables_expr): Change parameters.
3091 (expand_scalar_variables_stmt): Same.
3092 (expand_scalar_variables): Same.
3093 (graphite_rename_ivs): Rename graphite_rename_variables.
3094 (build_iv_mapping): New.
3095 (translate_clast): Call build_iv_mapping.
3096 * graphite.h (gbb_p): New name.
3097
30982008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
3099
3100 PR tree-optimization/37684
3101 * gcc.dg/graphite/pr37684.c: New.
3102 * graphite.c (exclude_component_ref): New.
3103 (is_simple_operand): Call exclude_component_ref.
3104
31052008-10-02 Jan Sjodin <jan.sjodin@amd.com>
3106 Harsha Jagasia <harsha.jagasia@amd.com>
3107
3108 PR tree-optimization/37485
3109 * gcc.dg/graphite/block-2.c: New
3110 * graphite.c (gmp_cst_to_tree): Moved.
3111 (iv_stack_entry_is_constant): New.
3112 (iv_stack_entry_is_iv): New.
3113 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
3114 (loop_iv_stack_insert_constant): New.
3115 (loop_iv_stack_pop): Use new datatpype.
3116 (loop_iv_stack_get_iv): Same.
3117 (loop_iv_stack_get_iv_from_name): Same.
3118 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
3119 (loop_iv_stack_patch_for_consts): New.
3120 (loop_iv_stack_remove_constants): New.
3121 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
3122 (translate_clast): Call loop_iv_stack_patch_for_consts and
3123 loop_iv_stack_remove_constants.
3124 (gloog): Use new datatype. Redirect construction edge to end
3125 block to avoid accidental deletion.
3126 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
3127 iv stack entry.
3128 (union iv_stack_entry_data): New. Data in iv stack entry.
3129 (struct iv_stack_entry): New. Datatype for iv stack entries.
3130
31312008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3132
3133 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
3134 operand type when copying the operand to a variable of different type.
3135
31362008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3137
3138 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
3139 with the IV name after increment.
3140
31412008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3142
3143 * Merge from mainline (r140164:140838).
3144
31452008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
3146
3147 * graphite-data-ref.c: New.
3148 * graphite.c (print_scop): Also dump the dependence graph.
3149 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
3150 (new_scop): Initialize SCOP_DEP_GRAPH.
3151 (build_scop_dynamic_schedules): New.
3152 (build_access_matrix_with_af): Fixed column numbering.
3153 (graphite_transform_loops): Call build_scop_dynamic_schedules.
3154 * graphite.h: Add ifndef/define guards against multiple inclusion.
3155 (struct scop): Add dep_graph field.
3156 (SCOP_DEP_GRAPH): Defined.
3157 (ref_nb_loops): Fixed and moved to other position.
3158 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
3159 (nb_loops_around_loop_in_scop): New.
3160 (graphite_dump_dependence_graph): Declared.
3161 (graphite_build_rdg_all_levels): Declared.
3162 (graphite_test_dependence): Declared.
3163 * Makefile.in (graphite-data-ref.o): New target.
3164
31652008-09-09 Sebastian Pop <sebastian.pop@amd.com>
3166
3167 * Merge from mainline (139870:140164).
3168
31692008-09-01 Sebastian Pop <sebastian.pop@amd.com>
3170
3171 * Merge from mainline (138275:139870).
3172 * testsuite/gcc.dg/graphite/scop-matmult.c: XFailed as one of
3173 the commits from trunk broke the niter detection.
3174
31752008-09-01 Sebastian Pop <sebastian.pop@amd.com>
3176
3177 * graphite.c: Add more documentation. Fix formatting.
3178 (debug_loop_vec, debug_oldivs, loop_iv_stack,
3179 loop_iv_stack_debug): Moved...
3180 (schedule_to_scattering): Move before use.
3181 (dot_all_scops): Include in "#if 0" the code for system
3182 call dotty.
3183
3184 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
3185 loop_iv_stack_debug): ...here.
3186
31872008-08-29 Jan Sjodin <jan.sjodin@amd.com>
3188
3189 * tree-phinodes.c (make_phi_node): Extern.
3190 (add_phi_node_to_bb): New.
3191 (create_phi_node): Call add_phi_node_to_bb.
3192 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
3193 (remove_statement): Handle case where stored phi was updated
3194 and is no longer the same.
3195 * graphite.c (is_parameter): New.
3196 (is_old_iv): New.
3197 (expand_scalar_variables_expr): New.
3198 (expand_scalar_variables_stmt): New.
3199 (expand_scalar_variables): New.
3200 (move_phi_nodes): Create new phi instead of moving old one.
3201 (translate_clast): Call expand_scalar_variables.
3202 (find_vdef_for_var_in_bb): Also scan regular definitions.
3203 (skip_phi_defs): New.
3204 (collect_scop_exit_phi_args): New.
3205 (patch_scop_exit_phi_args): New.
3206 (gloog): Patch phis after scop.
3207 * tree-flow.h: (add_phi_node_to_bb): Declared.
3208 (make_phi_node): Declared.
3209
32102008-08-26 Sebastian Pop <sebastian.pop@amd.com>
3211
3212 * graphite.c (end_scop): Split the entry of the scop when it
3213 is the header of the loop in which the scop is ending.
3214 (build_scops_1, limit_scops): Update uses of end_scop.
3215
32162008-08-26 Sebastian Pop <sebastian.pop@amd.com>
3217
3218 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
3219 SCOP_ENTRY or SCOP_EXIT.
3220
32212008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3222
3223 * graphite.c (get_construction_edge): Removed.
3224 (gloog): Construction edge is the scop entry edge.
3225
32262008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3227
3228 * graphite.c (can_generate_for_scop): Removed.
3229 (gloog): Do not call it.
3230
32312008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3232
3233 * graphite.c (new_scop): Entry of a scop is an edge.
3234 Initialize SESE region.
3235 (free_scop): Free SESE region.
3236 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
3237 (split_difficult_bb): New, split from end_scop.
3238 (end_scop): Exit of a scop is an edge.
3239 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
3240 not automatically updated and thus is always wrong.
3241 * graphite.h (struct sese): New.
3242 (SESE_ENTRY): New.
3243 (SESE_EXIT): New.
3244 (struct scop): New field for a SESE region. Remove entry, exit.
3245 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
3246 semantics as before. Moved comment around.
3247
32482008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3249 Sebastian Pop <sebastian.pop@amd.com>
3250
3251 * graphite.c (graphite_transform_loops): Always enable gloog
3252 and find_transform when ENABLE_CHECKING.
3253
32542008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3255
3256 * graphite.c (graphite_transform_loops): Move pretty printer
3257 of SCOPs before doing any transform. Remove call to print_scops
3258 and dot_all_scops_1.
3259
32602008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3261
3262 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
3263 (print_graphite_bb): Same.
3264
32652008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3266
3267 * graphite.c (dot_all_scops_1): Cleanup.
3268 (move_scops): Fix comment.
3269
32702008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3271
3272 * graphite.c (build_scop_bbs): Revert commit 139355:
3273
3274 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3275 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3276
3277 * graphite.c (build_scop_bbs): Factor up code.
3278
32792008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3280
3281 * graphite.c (gloog): Update dominator info.
3282
32832008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3284
3285 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
3286
32872008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3288
3289 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
3290 initialization.
3291 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
3292 (translate_clast): Correct formatting.
3293 * graphite.h (struct num_map): Removed.
3294 (struct graphite_bb): Remove num_map field.
3295 (GBB_INDEX_TO_NUM_MAP): Removed.
3296
32972008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3298
3299 * graphite.c (build_access_matrix_with_af): Fix comments.
3300 (build_scop_data_accesses): Same.
3301
33022008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3303
3304 * graphite.c (build_scop_data_accesses): Don't construct
3305 access matrices. Add a FIXME and an assert condition that
3306 should pass when the access matrices will be needed.
3307
33082008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3309
3310 * tree-data-ref.c (stmt_simple_memref_p): Don't call
3311 really_constant_p.
3312 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
3313 Moved close by free_graphite_bb.
3314 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
3315 (new_scop): Move close by free_scop.
3316 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
3317
33182008-08-22 Jan Sjodin <jan.sjodin@amd.com>
3319
3320 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
3321 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
3322 instead of recursive call.
3323 (graphite_translate_clast_equation): New.
3324 (graphite_create_guard_cond_expr): New.
3325 (graphite_create_new_guard): New.
3326 (get_stack_index_from_iv): Removed.
3327 (graphite_rename_ivs_stmt): Use gbb_loop_index.
3328 (get_true_edge_from_guard_bb): New.
3329 (translate_clast): Handle stmt_guard in clast.
3330 (get_construction_edge): Allow construction edge detection for
3331 a scope entry with multiple predecessors if one predecessor is
3332 the immediate dominator of scope entry.
3333 (can_generate_code_stmt): Enable code generation for clast_guard.
3334 (gloog): Use correct context loop. Removed check for post dominators.
3335 * cfgloop.h (create_empty_if_region_on_edge): Declared.
3336
33372008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3338
3339 * graphite.c (remove_dead_loops): Document better which
3340 loops are removed.
3341
33422008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3343
3344 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
3345 and PPLINC.
3346 (graphite.o): Also depends on pointer-set.h.
3347
33482008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3349
3350 * graphite.c (scop_record_loop): Fix compile warning.
3351
33522008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
3353 Sebastian Pop <sebastian.pop@amd.com>
3354
3355 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
3356
33572008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3358
3359 * graphite.c (build_graphite_bb): Initialize bb->aux to
3360 point to the graphite_bb_p.
3361 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
3362 content of bb->aux.
3363 (add_bb_domains): Does not use the scop parameter.
3364 (graphite_transform_loops): Clean bb->aux at the end.
3365
33662008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3367 Sebastian Pop <sebastian.pop@amd.com>
3368
3369 * testsuite/lib/target-supports.exp
3370 (check_effective_target_fgraphite): New.
3371
3372 * testsuite/gcc.dg/graphite/graphite.exp: Early exit when
3373 check_effective_target_fgraphite returns false.
3374 Set dg-do-what-default to compile.
3375 (scan-graphite-dump-times): Removed.
3376 * testsuite/gfortran.dg/graphite/graphite.exp: Same.
3377
3378 * testsuite/gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
3379 Use scan-tree-dump-times instead of scan-graphite-dump-times.
3380 * testsuite/gcc.dg/graphite/scop-1.c: Same.
3381 * testsuite/gcc.dg/graphite/scop-2.c: Same.
3382 * testsuite/gcc.dg/graphite/scop-3.c: Same.
3383 * testsuite/gcc.dg/graphite/scop-4.c: Same.
3384 * testsuite/gcc.dg/graphite/scop-5.c: Same.
3385 * testsuite/gcc.dg/graphite/scop-6.c: Same.
3386 * testsuite/gcc.dg/graphite/scop-7.c: Same.
3387 * testsuite/gcc.dg/graphite/scop-8.c: Same.
3388 * testsuite/gcc.dg/graphite/scop-9.c: Same.
3389 * testsuite/gcc.dg/graphite/scop-10.c: Same.
3390 * testsuite/gcc.dg/graphite/scop-11.c: Same.
3391 * testsuite/gcc.dg/graphite/scop-12.c: Same.
3392 * testsuite/gcc.dg/graphite/scop-13.c: Same.
3393 * testsuite/gcc.dg/graphite/scop-matmult.c: Same.
3394 * testsuite/gcc.dg/graphite/scop-14.c: Same.
3395 * testsuite/gcc.dg/graphite/scop-15.c: Same.
3396 * testsuite/gcc.dg/graphite/block-0.c: Same.
3397 * testsuite/gcc.dg/graphite/scop-16.c: Same.
3398 * testsuite/gcc.dg/graphite/block-1.c: Same.
3399 * testsuite/gcc.dg/graphite/scop-17.c: Same.
3400 * testsuite/gcc.dg/graphite/scop-18.c: Same.
3401 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
3402 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
3403 * testsuite/gfortran.dg/graphite/block-2.f: Same.
3404
34052008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3406
3407 * graphite.c: Fix some XXX comments.
3408 (build_scop_dynamic_schedules): Removed.
3409
34102008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3411
3412 * graphite.h (scop_max_loop_depth): Moved...
3413 * graphite.c (scop_max_loop_depth): ...here.
3414 (remove_all_edges_1): New.
3415 (remove_all_edges): Factored code.
3416 (remove_cond_exprs): Check only the last statement for
3417 a GIMPLE_COND expression.
3418
34192008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3420
3421 * graphite.c (scan_tree_for_params): Early return when the
3422 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
3423 (find_scop_parameters): Factor out code.
3424 (graphite_trans_bb_strip_mine): Remove dead code.
3425
34262008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3427
3428 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
3429 graphite_trans_bb_move_loop): Factor asserts.
3430 (gloog): Perform sanity checks only for ENABLE_CHECKING.
3431 Do not call calculate_dominance_info and estimate_bb_frequencies.
3432
34332008-08-20 Jan Sjodin <jan.sjodin@amd.com>
3434
3435 * graphite.c (create_loops_mapping, free_loops_mapping,
3436 create_loops_mapping_num, debug_loop_mapping_1,
3437 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
3438 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
3439 graphite_loops_mapping_add_child_num,
3440 graphite_loops_mapping_insert_child,
3441 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
3442 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
3443 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
3444 create_num_from_index, get_num_from_index,
3445 swap_loop_mapped_depth): Removed.
3446 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
3447 (free_scop): Do not call free_loops_mapping.
3448 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
3449 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
3450 get_loop_mapped_depth.
3451 (graphite_trans_bb_move_loop): Do not update the loop mapping.
3452 (graphite_trans_bb_strip_mine): Same.
3453 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
3454 (struct scop): Remove field loops_mapping.
3455
34562008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3457 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3458
3459 * graphite.c (scop_record_loop): Factor out one level of the
3460 condition by early return.
3461 (build_scop_loop_nests): Format following FSF coding style.
3462 (build_scop_dynamic_schedules): Factor out code.
3463 (scopdet_bb_info): Reindent. Default case should not be reachable.
3464
34652008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3466 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3467
3468 * graphite.c (loop_affine_expr): Check for DECL_P or struct
3469 assignments that are not handled as simple operands for now.
3470
34712008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3472 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3473
3474 * graphite.c (build_scop_bbs): Factor up code.
3475
34762008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3477 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3478
3479 * graphite.c (stmt_simple_for_scop_p): Factor code out
3480 of the loop.
3481 (enum gbb_type): New. Group all the GBB_* types under it.
3482 (is_loop_exit): Moved...
3483 (end_scop): Enable BB spliting.
3484 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
3485 * cfgloop.h (is_loop_exit): Declared.
3486
34872008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3488
3489 * doc/invoke.texi: Remove strides from examples containing
3490 DO loops when the strides are equal to 1.
3491
34922008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
3493 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3494
3495 * graphite.c (graphite_trans_scop_block): Or the result with
3496 the result from graphite_trans_loop_block.
3497 * testsuite/gcc.dg/graphite/block-1.c: New.
3498 * testsuite/gfortran.dg/graphite/block-1.f90: New.
3499 * testsuite/gfortran.dg/graphite/block-2.f: New.
3500
35012008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3502
3503 * graphite.c (graphite_transform_loops): Call cloog_initialize
3504 and cloog_finalize.
3505
35062008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3507
3508 * tree-data-ref.c) (stmt_simple_memref_p): New.
3509 * tree-data-ref.h (stmt_simple_memref_p): Declared.
3510 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
3511 (is_simple_operand): Call stmt_simple_memref_p.
3512
3513 * testsuite/gcc.dg/graphite/scop-matmult.c: Updated for not
3514 using pointer arithmetic, as this is optimized by PRE and
3515 makes the code too difficult to analyze.
3516
3517 * testsuite/gcc.dg/graphite/scop-18.c: Same.
3518
35192008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3520
3521 * gdbinit.in (pgg): New.
3522
35232008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3524
3525 * graphite.c (graphite_trans_loop_block): Fix warning.
3526
35272008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3528
3529 * graphite.c (graphite_trans_loop_block): Fix my merge error.
3530
35312008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3532
3533 * graphite.c (graphite_trans_bb_block): Remove check for
3534 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
3535 Check if loop blocking is profitable for every loop, before applying
3536 the changes.
3537 (graphite_apply_transformations): Call graphite_trans_bb_block only,
3538 if flag_loop_block is set.
3539
35402008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3541
3542 * graphite.c: Add some more documentation for the loop
3543 mapping.
3544
35452008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3546
3547 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
3548 * graphite.c: Format on less than 80 columns.
3549 * graphite.h: Same.
3550
35512008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3552
3553 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
3554
35552008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3556
3557 * doc/invoke.texi (floop-block, floop-strip-mine,
3558 floop-interchange): Update documentation with examples.
3559
35602008-08-13 Sebastian Pop <sebastian.pop@amd.com>
3561
3562 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
3563 add_referenced_var.
3564 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
3565
35662008-08-13 Sebastian Pop <sebastian.pop@amd.com>
3567
3568 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
3569 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
3570 * tree-scalar-evolution.c: Revert useless changes.
3571 * tree-phinodes.c: Same.
3572 * cfghooks.c: Same.
3573 * vec.h: Same.
3574 * tree-vectorizer.h: Same.
3575 * tree-flow.h: Same.
3576 * tree-cfg.c: Same.
3577 * common.opt (fgraphite): Update documentation.
3578
35792008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
3580
3581 * doc/invoke.texi (-floop-block, -floop-strip-mine,
3582 -floop-interchange): Add more text for explaining what each of these
3583 flags is doing.
3584 * tree-into-ssa.c (gimple_vec): Moved to...
3585 * graphite.c: Include gimple.h.
3586 (gimple_vec): Moved to...
3587 (del_loop_to_cloog_loop): Removed.
3588 (loop_affine_expr): Do not call create_data_ref when the
3589 operand is a constant.
3590 (new_scop): Use free instead of del_loop_to_cloog_loop.
3591 * Makefile.in (graphite.o): Depend on GIMPLE_H.
3592 * gimple.h (gimple_vec): ... here.
3593
35942008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3595
3596 * graphite.c (scopdet_bb_info): Only allow loops with known number of
3597 latch executions.
3598 (build_loop_iteration_domains): Fail, if latch executions unknown.
3599
36002008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3601
3602 * graphite.c (add_conditions_to_domain): New.
3603 (build_scop_conditions_1): Call add_conditions_to_domain.
3604 (set_cloog_options): Allow to disable optimizations.
3605
36062008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3607
3608 * graphite.c (find_params_in_bb): Look for parameters in conditions.
3609 Do not use walk_dominator_tree.
3610 (find_scop_parameters): Do not use walk_dominator_tree.
3611
36122008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3613
3614 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
3615 (idx_record_params): Adapt.
3616 * graphite.h (scop_gimple_loop_depth): New.
3617
36182008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3619
3620 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
3621 (scan_tree_for_params): Remove value_init.
3622 (build_scop_context): Remove value_init.
3623 (build_loop_iteration_domains): Remove value_init.
3624 (schedule_to_scattering): Remove value_init.
3625 (graphite_trans_bb_strip_mine): Remove value_init.
3626
36272008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3628
3629 * gcc/graphite.c (limit_scops): New.
3630 (graphite_transform_loops): Add limit SCoPs.
3631 * gcc/testsuite/gcc.dg/graphite/scop-0.c: Update number of SCoPs.
3632 * gcc/testsuite/gcc.dg/graphite/scop-1.c: Update number of SCoPs.
3633 * gcc/testsuite/gcc.dg/graphite/scop-10.c: Update number of SCoPs.
3634 * gcc/testsuite/gcc.dg/graphite/scop-11.c: Update number of SCoPs.
3635 * gcc/testsuite/gcc.dg/graphite/scop-12.c: Update number of SCoPs.
3636 * gcc/testsuite/gcc.dg/graphite/scop-13.c: Update number of SCoPs.
3637 * gcc/testsuite/gcc.dg/graphite/scop-14.c: Update number of SCoPs.
3638 * gcc/testsuite/gcc.dg/graphite/scop-15.c: Update number of SCoPs.
3639 * gcc/testsuite/gcc.dg/graphite/scop-16.c: Update number of SCoPs.
3640 Change loop numbers.
3641 * gcc/testsuite/gcc.dg/graphite/scop-17.c: Update number of SCoPs.
3642 Change loop numbers.
3643 * gcc/testsuite/gcc.dg/graphite/scop-18.c: Update number of SCoPs.
3644 * gcc/testsuite/gcc.dg/graphite/scop-2.c: Update number of SCoPs.
3645 * gcc/testsuite/gcc.dg/graphite/scop-3.c: Update number of SCoPs.
3646 * gcc/testsuite/gcc.dg/graphite/scop-4.c: Update number of SCoPs.
3647 * gcc/testsuite/gcc.dg/graphite/scop-5.c: Update number of SCoPs.
3648 * gcc/testsuite/gcc.dg/graphite/scop-6.c: Update number of SCoPs.
3649 * gcc/testsuite/gcc.dg/graphite/scop-7.c: Update number of SCoPs.
3650 * gcc/testsuite/gcc.dg/graphite/scop-8.c: Update number of SCoPs.
3651 * gcc/testsuite/gcc.dg/graphite/scop-9.c: Update number of SCoPs.
3652 * gcc/testsuite/gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
3653
36542008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3655
3656 * graphite.c (graphite_transform_loops): Call always find_transform.
3657
36582008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
3659
3660 * graphite.c (free_loops_mapping): New.
3661 (stmt_simple_for_scop_p): Fix typo.
3662 (stmt_simple_for_scop_p): Fix tuples functions, that
3663 broke polyhedron.
3664 (free_graphite_bb): Fix some memleaks.
3665 (free_scop): Fix some memleaks.
3666 (scopdet_bb_info): Do not forget some tmp SCoPs.
3667 (find_params_in_bb): Fix some memleaks.
3668 (clast_to_gcc_expression): Fix warning.
3669
36702008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
3671
3672 * testsuite/gcc.dg/graphite/scop-16.c: Fix for 32bit.
3673 * testsuite/gcc.dg/graphite/scop-17.c: Fix for 32bit.
3674
36752008-08-04 Sebastian Pop <sebastian.pop@amd.com>
3676
3677 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
3678 Move code ifdef-ed HAVE_cloog...
3679 * graphite.c: Include toplev.h.
3680 ... here.
3681 * Makefile.in (OBJS-common): Always build graphite.o.
3682 (BACKEND): Remove @GRAPHITE@.
3683 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
3684 (graphite.o): Depend on TOPLEV_H.
3685
36862008-08-04 Sebastian Pop <sebastian.pop@amd.com>
3687
3688 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
3689 Remove typo left from polylib to ppl conversion.
3690 * graphite.c (graphite_transforms): Use sorry instead of fatal.
3691
36922008-08-03 Sebastian Pop <sebastian.pop@amd.com>
3693
3694 * toplev.c (process_options): Move the graphite loop optimization
3695 flags...
3696 * tree-ssa-loop.c (graphite_transforms): ... here.
3697 When not configured with CLooG, print to dump_file that
3698 Graphite transforms were not performed.
3699 * testsuite/gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
3700 New.
3701 * testsuite/gcc.dg/graphite/*.c: Updated all testcases to use
3702 scan-graphite-dump-times.
3703
37042008-08-03 Sebastian Pop <sebastian.pop@amd.com>
3705
3706 * graphite.c (dot_scop, dot_all_scops): Do not call system.
3707 Do not open /tmp/scop.dot and /tmp/allscops.dot.
3708
37092008-08-02 Sebastian Pop <sebastian.pop@amd.com>
3710 Jan Sjodin <jan.sjodin@amd.com>
3711
3712 * configure: Regenerated.
3713 * omp-low.c (expand_omp_sections): Remove now unused code.
3714 * config.in (HAVE_polylib): Removed.
3715 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
3716 (PPLLIBS, PPLINC): Added.
3717 * graphite.c: Replace unsigned with int wherever possible.
3718 Don't access Cloog's data structures, but use accessor functions.
3719 Clast's stmt->type is now implemented as a vtable: change the
3720 switches of stmt->type into ifs.
3721 (polylib/polylibgmp.h): Don't include.
3722 (initialize_dependence_polyhedron,
3723 initialize_data_dependence_polyhedron, is_empty_polyhedron,
3724 statement_precedes_p, test_dependence, build_rdg_all_levels,
3725 dump_dependence_graph): Removed until this code is cleaned up
3726 or ported to Cloog.
3727 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
3728 (POLYLIBINC): Renamed PPLINC.
3729
37302008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
3731 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3732 Jan Sjodin <jan.sjodin@amd.com>
3733
3734 Finish the merge and tuplification of graphite.
3735
37362008-07-24 Sebastian Pop <sebastian.pop@amd.com>
3737 Jan Sjodin <jan.sjodin@amd.com>
3738
3739 Partial merge from mainline (138072:138275).
3740 * graphite.c still has to be tuplified.
3741
37422008-07-29 Jan Sjodin <jan.sjodin@amd.com>
3743
3744 * graphite.c (graphite_loops_mapping_max_loop_num): New.
3745 (create_num_from_index): New.
3746 (get_num_from_index): Also pass in the graphite BB.
3747 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
3748 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
3749 (graphite_trans_bb_strip_mine): Call create_num_from_index.
3750 (is_interchange_valid): Return false when failing.
3751 * graphite.h (struct num_map): New.
3752 (struct graphite_bb): New field num_map.
3753 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
3754
37552008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
3756
3757 * graphite.c (dump_gbb_conditions): Print also conditions like
3758 "if (a)". Remove dublicated code and use print_generic_expr ().
3759 (stmt_simple_for_scop_p): Only allow conditions we can handle
3760 {<, <=, >, >=}.
3761
37622008-07-25 Jan Sjodin <jan.sjodin@amd.com>
3763
3764 * graphite.h (struct scop): Removed new_ivs field.
3765 (SCOP_NEWIVS): Deleted.
3766 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
3767 clast_to_gcc_expression, graphite_create_new_loop):
3768 Removed use of new_ivs.
3769
37702008-07-25 Jan Sjodin <jan.sjodin@amd.com>
3771
3772 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
3773 create_loops_mapping_num, debug_loop_mapping_1): New.
3774 (debug_loop_mapping): Call debug_loop_mapping_1.
3775 (get_loop_mapping_for_num,
3776 graphite_loops_mapping_add_child,
3777 graphite_loops_mapping_add_child_num,
3778 graphite_loops_mapping_insert_child,
3779 graphite_loops_mapping_parent,
3780 split_loop_mapped_depth_for_num,
3781 loop_mapped_depth_split_loop): New.
3782 (increment_loop_mapped_depths): Removed.
3783 (swap_loop_mapped_depth_for_num): Reimplemented.
3784 (new_scop): Call create_loops_mapping.
3785 (scop_record_loop): Call graphite_loops_mapping_insert_child.
3786 (translate_clast): Pass the old loop father in parameter, and pass
3787 it to get_old_iv_from_ssa_name.
3788 (remove_edges_around_useless_blocks, can_generate_code_stmt,
3789 can_generate_code, can_generate_for_scop): New.
3790 (graphite_trans_bb_block): Returns false when it fails to transform.
3791 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
3792
37932008-07-25 Sebastian Pop <sebastian.pop@amd.com>
3794
3795 Reverted all the changes related to the streamization and
3796 loop fusion.
3797 These changes are now tracked in the streamization branch.
3798
37992008-07-25 Sebastian Pop <sebastian.pop@amd.com>
3800 Jan Sjodin <jan.sjodin@amd.com>
3801
3802 * graphite.c (gbb_compare): Correctly constify.
3803 (gbb_can_be_ignored): Indent.
3804 (graphite_trans_scop_swap_1and2): Add legality check.
3805 Remove dead FIXMEs.
3806
38072008-07-25 Sebastian Pop <sebastian.pop@amd.com>
3808
3809 Remove fallouts from "Reverted the Condate changes".
3810 * tree.h: Remove unused decl.
3811 * testsuite/gcc.dg/tree-checker: Same.
3812 * timevar.def: Remove counter.
3813
38142008-07-24 Sebastian Pop <sebastian.pop@amd.com>
3815
3816 * Merge from mainline (135673:138072).
3817
3818 Reverted the MIRO changes (from 2008-04-05) that are now
3819 tracked in the miro branch.
3820 * tree-bounds.c: Removed.
3821 * tree-bounds.h: Removed.
3822
3823 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
3824 are now tracked in the condate branch.
3825 * tree-check.c: Removed.
3826 * tree-match.c: Removed.
3827 * condate.y: Removed.
3828
38292008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3830
3831 * common.opt: New user flag -floop-block, -floop-strip-mine
3832 and -floop-interchange.
3833 * toplev.c (process_options): Enable -fgraphite pass if any one of the
3834 graphite loop optimization flags is turned on.
3835 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
3836 flag_loop_strip_mine and flag_loop_interchange checks before
3837 optimizations.
3838 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
3839 -floop-strip-mine and -floop-interchange.
3840 * testsuite/gcc.dg/graphite/block-0.c: Add -floop-block and remove
3841 -fgraphite.
3842 * testsuite/gcc.dg/graphite/scop-16.c: Ditto.
3843 * testsuite/gcc.dg/graphite/scop-17.c: Ditto.
3844 * testsuite/gcc.dg/graphite/scop-18.c: Ditto.
3845
38462008-07-23 Jan Sjodin <jan.sjodin@amd.com>
3847 Sebastian Pop <sebastian.pop@amd.com>
3848
3849 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
3850 (create_empty_loop_on_edge): More fixes.
3851 * tree-phinodes.c (resize_phi_node): Extern.
3852 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
3853 * cfghooks.c (update_dominator_information): New split from
3854 split_edge.
3855 * tree-vectorizer.c (rename_variables_in_bb): Extern.
3856 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
3857 successor of the function entry block.
3858
3859 * graphite.c: Include pointer-set.h.
3860 (debug_loop_mapping, increment_loop_mapped_depths,
3861 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
3862 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
3863 swap_loop_mapped_depth_for_num, get_num_from_index,
3864 swap_loop_mapped_depth, loop_iv_stack_debug,
3865 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
3866 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
3867 get_old_iv_from_ssa_name): New.
3868 (new_scop): Initialize SCOP_LOOPS_MAPPING.
3869 (free_scop): Free SCOP_LOOPS_MAPPING.
3870 (scop_record_loop): Record old ivs.
3871 (create_var_name): Removed.
3872 (initialize_cloog_names): Allocate double space in case strip mine
3873 applies to all loops once.
3874 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
3875 (clast_to_gcc_expression): Same. Implement more clast to gimple
3876 translation.
3877 (graphite_create_new_loop): Pass in ivstack.
3878 (remove_all_edges): Pass in the construction_edge.
3879 (graphite_remove_iv): Removed.
3880 (graphite_rename_ivs, graphite_rename_ivs_stmt,
3881 remove_cond_exprs): Rewritten.
3882 (move_phi_nodes): New.
3883 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
3884 (translate_clast): Pass in ivstack. Rewrite some cases.
3885 (set_cloog_options, debug_clast_stmt): New.
3886 (find_transform): Use set_cloog_options.
3887 (outermost_loop_layer): Removed.
3888 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
3889 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
3890 mark_old_loops, remove_dead_loops): New.
3891 (gloog): Rewritten.
3892 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
3893 (const_column_index, get_first_matching_sign_row_index,
3894 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
3895 get_upper_bound): New.
3896 (graphite_trans_bb_strip_mine): Also update the iv map.
3897
3898 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
3899 (struct name_tree): Add a loop field.
3900 (struct scop): Add a graphite_loops_mapping field.
3901 (SCOP_LOOPS_MAPPING): New.
3902 (debug_clast_stmt): Declare.
3903 * lambda.h (find_induction_var_from_exit_cond): Declare.
3904 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
3905 * cfgloop.h (update_dominators_in_loop): Removed declaration.
3906 (create_empty_loop_on_edge): Updated.
3907 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
3908 rename_variables_in_bb): Declare.
3909 * tree-cfg.c (remove_bb): Extern.
3910
3911 * testsuite/gcc.dg/graphite/block-0.c: New.
3912
39132008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3914 Sebastian Pop <sebastian.pop@amd.com>
3915
3916 * graphite.c (strip_mine_profitable_p): New.
3917 (graphite_trans_bb_block): Disable strip mining if not profitable.
3918
3919 * testsuite/gcc.dg/graphite/scop-18.c: New.
3920 * testsuite/gcc.dg/graphite/scop-17.c: Fixed.
3921 * testsuite/gcc.dg/graphite/scop-16.c: Fixed.
3922
39232008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
3924 Jan Sjodin <jan.sjodin@amd.com>
3925 Sebastian Pop <sebastian.pop@amd.com>
3926
3927 * graphite.c (is_interchange_valid): New.
3928 (graphite_trans_bb_block): Check loop nest of basic block for legality
3929 of interchange.
3930
3931 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
3932 outer_most_loop, gbb_outer_most_loop_index): New.
3933
3934 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
3935 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
3936 * testsuite/gcc.dg/graphite/scop-16.c: New.
3937 * testsuite/gcc.dg/graphite/scop-17.c: New.
3938
39392008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
3940
3941 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
3942 (graphite_trans_scop_block): Ignore SCoPs without bbs.
3943
39442008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
3945
3946 * graphite.c (new_scop): Initialize SCOP_EXIT.
3947 (scopdet_info): Add.
3948 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
3949 (build_scops_1): Cleanup, bugfixes.
3950 (build_scops): Cleanup.
3951
3952 * testsuite/gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
3953 * testsuite/gcc.dg/graphite/scop-15.c: Add SCoP numbers.
3954
39552008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
3956
3957 * testsuite/gfortran.dg/graphite/scop-1.f: Update to reduced test case.
3958
3959 * testsuite/gfortran.dg/graphite/graphite.exp: Use
3960 DEFAULT_GRAPHITE_FLAGS.
3961
3962 * testsuite/gcc.dg/graphite/scop-15.c: Update to reduced test case.
3963
39642008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
3965
3966 * graphite.c (scan_tree_for_params): Do not assert any more if
3967 MULT_EXPR parameter is negative.
3968
3969 * testsuite/gfortran.dg/graphite/scop-1.f: New.
3970
3971 * testsuite/gfortran.dg/graphite/graphite.exp: New.
3972
3973 * testsuite/gcc.dg/graphite/scop-15.c: New.
3974
39752008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
3976
3977 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
3978
39792008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
3980
3981 * graphite.c (graphite_trans_bb_swap_loops): Rename from
3982 graphite_swap_loops.
3983 (graphite_trans_bb_move_loop): New.
3984 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
3985 (graphite_trans_bb_block): New.
3986 (graphite_trans_loop_block): New.
3987 (graphite_trans_scop_swap_1and2): Rename from
3988 graphite_trans_swap_1and2.
3989 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
3990 (graphite_trans_scop_block): New.
3991 (graphite_apply_transformations): Rename from
3992 graphite_transformations.
3993
3994 * testsuite/gcc.dg/graphite/scop-matmult.c: New.
3995
39962008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
3997
3998 * graphite.c (gbb_compare): New.
3999 (graphite_sort_gbbs): New.
4000 (gbb_can_be_ignored): New.
4001 (scop_remove_ignoreable_gbbs): New.
4002 (graphite_transformations): Cleanup and add
4003 scop_remove_ignoreable_gbbs.
4004 * lambda.h (lambda_vector_compare): New.
4005
40062008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
4007
4008 * graphite.c (print_graphite_bb): Correct printing of static schedule.
4009 (graphite_swap_loops): int -> unsigned
4010 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
4011 (graphite_transformations): New.
4012 (graphite_transform_loops): Move to graphite_transformations.
4013 * graphite.h (gbb_nb_loops): Return unsigned.
4014
40152008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
4016
4017 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
4018 the domain matrix. This makes scop-0.c work again.
4019
40202008-06-20 Richard Guenther <rguenther@suse.de>
4021
4022 * graphite.h: Adjust copyright to GPLv3.
4023 * graphite.c: Likewise.
4024 (stmt_simple_memref_for_scop_p): Split out from ...
4025 (stmt_simple_for_scop_p): ... here. Fix handling of calls
4026 and simplify.
4027 (get_bb_type): Optimize.
4028 (is_pred): Remove.
4029 (is_bb_addable): Fix memleak, replace is_pred call with
4030 single_pred.
4031 (build_scops): Use current_loops.
4032 (param_index): Fix memleak.
4033
40342008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4035
4036 * graphite.c: Fix formatting.
4037
40382008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4039
4040 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
4041 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
4042 (create_var_name, save_var_name): Newly defined functions.
4043 (initialize_cloog_names): Part of the code factored out to
4044 save_var_name.
4045 (clast_to_gcc_expression): Now handles the case of clast_red_sum
4046 in clast_reduction statement.
4047 (graphite_create_new_loop): Now takes a new parameter
4048 for outer_loop.
4049 (translate_clast): Now also takes the context_loop and bb_exit
4050 parameters. Rewritten the code so that it creates a gimple code
4051 inside the given context.
4052 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
4053 remove_cond_expr, disconnect_cond_expr,
4054 disconnect_virtual_phi_nodes): Newly defined functions.
4055 * graphite.h (struct scop): added old_ivs vector.
4056 SCOP_OLDIVS: New macro.
4057
40582008-06-19 Sebastian Pop <sebastian.pop@amd.com>
4059
4060 * cfgloopmanip.c: Add missing function comments, fix formatting.
4061
40622008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4063
4064 * cfgloopmanip.c (update_dominators_in_loop): Defined.
4065 (create_empty_loop_on_edge): Defined.
4066 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
4067 instead of void.
4068 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
4069 (update_dominators_in_loop): Declared as extern
4070 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
4071
40722008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
4073
4074 * graphite.c (print_graphite_bb): Allow changing number of loops
4075 in SCoP domain.
4076 (initialize_cloog_names): Allow changing number of loops.
4077 (build_cloog_prog): Simplify.
4078 (find_transform): Enable cloog option --strides.
4079 (graphite_swap_loops): New.
4080 (graphite_strip_mine_loop): New.
4081 (graphite_trans_swap_1and2): New.
4082 (graphite_trans_strip): New.
4083 (graphite_transform_loops): Add graphite_trans_strip.
4084 * graphite.h (scop_max_loop_depth): New.
4085
40862008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
4087
4088 * graphite.c (build_scop_iteration_domain): Remove forgotten
4089 line. (Fixes compile)
4090
40912008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
4092
4093 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
4094 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
4095 (build_bb_loops): New.
4096 (graphite_transform_loops): Add build_bb_loops.
4097 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
4098 numbers.
4099 * graphite.h (graphite_bb): Add loops.
4100 (gbb_nb_loops): New.
4101 (gbb_loop_at_index): New.
4102 (gbb_loop_index): New.
4103 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
4104 using nb_params_in_scop.
4105
41062008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
4107
4108 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
4109 (build_scop_canonical_schedules): Build minimized schedule.
4110 (schedule_to_scattering): Adapt to minimized schedule.
4111 * graphite.h (graphite_bb): Add/Update descriptions.
4112
41132008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
4114 Tobias Grosser <grosser@fim.uni-passau.de>
4115
4116 * graphite.c (print_graphite_bb): Add condition printing.
4117 (dump_value): New.
4118 (dump_gbb_conditions): New.
4119 (build_scop_conditions_1): New.
4120 (build_scop_conditions): New.
4121 * graphite.h (graphite_bb): Add conditions.
4122
41232008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
4124
4125 * graphite.c (print_graphite_bb):
4126 (free_graphite_bb): New.
4127 (free_scop): Free bbs.
4128 (get_bb_type): Free doms.
4129 (build_scop_context): Free context matrix.
4130 (build_loop_iteration_domains): Remove unused code.
4131 (build_cloog_prog): Free scattering function and blocklist.
4132 (find_transform): Free options.
4133
41342008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
4135
4136 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
4137 Remove unnecessery cloog data structures. Make a copy of the domain
4138 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
4139 unnecessary cloog data structures. Fix memory leaks. Remove insert
4140 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
4141 used.
4142 (build_scop_iteration_domain): Remove unnecessary cloog
4143 data structures. Fix memory leaks.
4144 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
4145 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
4146
41472008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4148
4149 * graphite.c (find_scop_params): Remove initialize_cloog_names.
4150
41512008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4152
4153 * graphite.c (end_scop): Style fix.
4154 (schedule_to_scattering): Style and comment fix.
4155
41562008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4157 * graphite.c (print_graphite_bb): Fix definiton of
4158 schedule_to_scattering.
4159 (initialize_cloog_names): Change nb_scattdims to max loop
4160 depth in SCoP.
4161 (schedule_to_scattering): Take parameter for number of scattering
4162 dimensions.
4163 (build_cloog_prog): Only build as much scattering dimensions as
4164 necessary.
4165
41662008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4167
4168 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
4169 in polyhedron/aermod.f90.
4170
41712008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
4172 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
4173 Harsha Jagasia <harsha.jagasia@amd.com>
4174
4175 * graphite.c (is_bb_addable): Fix segfault.
4176
41772008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
4178
4179 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
4180 with multiple exits and conditional handling in edge cases.
4181 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
4182
4183 * testsuite/gcc.dg/graphite/scop-14.c: New.
4184
41852008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
4186 Adrien Eliche <aeliche@isty.uvsq.fr>
4187
4188 * graphite.c (is_bb_addable): Add more comments and enhance
4189 readablity of the source code. Fix memory leak.
4190 (is_loop_exit): Fix memory leak.
4191
41922008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
4193
4194 * graphite.c (first_loop_in_scop): Deleted.
4195 (setup_cloog_loop): Only walk the loop chain for inner loops.
4196 (build_scop_iteration_domain): Execute setup_cloog_loop for
4197 all loops in the first layer.
4198
41992008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
4200
4201 * graphite.c (scan_tree_for_params): Change the way params are
4202 added to be indepenent of the number of loops.
4203 (setup_cloog_loop): Revert to short matrix format. Fix parameter
4204 handling.
4205 (build_cloog_prog): Revert to short matrix format.
4206
42072008-06-05 Sebastian Pop <sebastian.pop@amd.com>
4208 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
4209
4210 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
4211 warning.
4212
42132008-06-05 Sebastian Pop <sebastian.pop@amd.com>
4214
4215 * graphite.c (nb_data_refs_in_scop): New.
4216 (graphite_transform_loops): Print more stats: number of
4217 loops, basic blocks and data references per scop.
4218
42192008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4220 Jan Sjodin <jan.sjodin@amd.com>
4221
4222 * graphite.c (loop_affine_expr, idx_record_params,
4223 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
4224 instead of instantiate_parameters.
4225
42262008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4227
4228 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
4229 add support for parameters, add STATIC_SCHEDULE at the right places,
4230 cleanup.
4231
42322008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4233
4234 * graphite.c (build_scop_loop_nests): Only add the loops, that
4235 are contained completely in the SCoP.
4236 (build_cloog_prog): Disable scattering, until schedule_to_scattering
4237 and the domains are fixed.
4238 (build_scop_canonical_schedules): Add support for bbs not contained
4239 in any SCoP.
4240
42412008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4242
4243 * graphite.h (scop_contains_loop): Update comments to match
4244 the actual behavior.
4245 (scop_contains_loop): New.
4246 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
4247
42482008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4249
4250 * graphite.c (get_bb_type): On function body, i.e. loop_0,
4251 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
4252 as GBB_COND_HEADER.
4253
42542008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4255 Tobias Grosser <grosser@fim.uni-passau.de>
4256
4257 * graphite.c (graphite_transform_loops): Early return when
4258 there are no loops in the function.
4259
42602008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4261 Jan Sjodin <jan.sjodin@amd.com>
4262
4263 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
4264 offset of the last loop.
4265 (setup_cloog_loop): Copy the entire outer constraint matrix.
4266
42672008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4268 Jan Sjodin <jan.sjodin@amd.com>
4269
4270 * graphite.c (stmt_in_scop_p, function_parameter_p,
4271 invariant_in_scop_p): Removed.
4272 (scan_tree_for_params): Can be used with no constraint
4273 matrix for gathering parameters.
4274 (idx_record_params): Don't use idx_record_param, instead use
4275 scan_tree_for_params.
4276 (find_scop_parameters): Same.
4277 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
4278 Fix the size of loop domains.
4279 (schedule_to_scattering): Exit when the outer loop is not in scop.
4280 (find_transform): Enable build_cloog_prog.
4281
42822008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4283 Jan Sjodin <jan.sjodin@amd.com>
4284
4285 * graphite.c (schedule_to_scattering): Make scattering domains
4286 uniformly of the same size, as required by CLooG 0.14.0 and before.
4287
42882008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4289 Jan Sjodin <jan.sjodin@amd.com>
4290
4291 * graphite.c (schedule_to_scattering): Rewrite, correct the
4292 translation of the scheduling function to scattering.
4293 (build_cloog_prog): Call schedule_to_scattering only once.
4294 * graphite.h (scop_loop_index): Do not fail for loops not
4295 in the scop: return -1.
4296
42972008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
4298
4299 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
4300 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
4301 (setup_cloog_loop): Export GBB_DOMAIN.
4302 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
4303 able to rebuild the original control flow.
4304 * graphite.h (graphite_bb): Add domain field and access macro.
4305 (GBB_DOMAIN): New.
4306
43072008-05-30 Sebastian Pop <sebastian.pop@amd.com>
4308
4309 * graphite.c (debug_gbb): New.
4310 (print_scop, build_graphite_bb): Use SCOP_BBS.
4311 (build_scop_bbs): Reimplemented.
4312 (dfs_bb_in_scop_p): Removed.
4313 (build_scop_loop_nests): Reorder loops inserted in
4314 SCOP_LOOP_NEST: outer loops should come first.
4315 (build_scop_canonical_schedules): Reinitialize at zero
4316 the components of the SCOP_STATIC_SCHEDULE for the loops
4317 that have already been parsed.
4318
4319 * graphite.h (debug_gbb): Declared.
4320
43212008-05-30 Sebastian Pop <sebastian.pop@amd.com>
4322 Jan Sjodin <jan.sjodin@amd.com>
4323
4324 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
4325 (graphite_loop_to_gcc_loop): Removed.
4326 (remove_all_edges): New.
4327 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
4328 (gloog): Remove useless code.
4329
43302008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
4331
4332 * graphite.c (get_bb_type): Reworked. We distinguish between
4333 loops with one or multiple exits.
4334 (is_loop_exit): New.
4335 (is_pred): New.
4336 (is_bb_addable): Rework condition handling, now support for case
4337 case statements and loops with multiple exits.
4338
4339 * testsuite/gcc.dg/graphite/scop-11.c: New.
4340 * testsuite/gcc.dg/graphite/scop-12.c: New.
4341 * testsuite/gcc.dg/graphite/scop-13.c: New.
4342
43432008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
4344
4345 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
4346 we have too many colors.
4347
43482008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
4349
4350 * doc/invoke.texi (-ftree-loop-fusion): Document.
4351 * tree-pass.h (pass_loop_fusion): Declared.
4352 * tree-loop-fusion.c: New.
4353 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
4354 * tree-data-ref.c (find_data_references_in_loop): Make extern.
4355 * tree-data-ref.h (find_data_references_in_loop): Declared.
4356 * common.opt (ftree-loop-fusion): Declared.
4357 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
4358
43592008-05-21 Sebastian Pop <sebastian.pop@amd.com>
4360
4361 * graphite.c (build_access_matrix): Fix typo from the merge.
4362
43632008-05-20 Sebastian Pop <sebastian.pop@amd.com>
4364
4365 * Merge from mainline (130800:135673).
4366
43672008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4368
4369 * graphite.c (end_scop): The exit of the scop is not part of the scop.
4370 Update dominators after splitting.
4371
43722008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4373
4374 * graphite.c (is_bb_addable): Return the harmful statement.
4375 Factor up some code.
4376 (end_scop): New. Splits end of scope bbs on a harmful statement.
4377 (build_scops_1): Call end_scop.
4378
43792008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4380
4381 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
4382 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
4383 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
4384 build_scops_1): Removed.
4385 (build_scops_2): Renamed build_scops_1.
4386
43872008-05-06 Sebastian Pop <sebastian.pop@amd.com>
4388
4389 * graphite.c: Fix formatting.
4390
43912008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4392
4393 * graphite.c (get_bb_type): New.
4394 (move_scops): New.
4395 (build_scops_2): New.
4396 (is_bb_addable): New.
4397 (build_scops): Switch the scop detection.
4398 (build_scop_bbs): Add entry bb to scop.
4399 * graphite.h (struct scop): Update comment.
4400
44012008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4402
4403 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
4404 more colors.
4405
44062008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4407
4408 * testsuite/gcc.dg/graphite/scop-1.c: Update.
4409 * testsuite/gcc.dg/graphite/scop-2.c: Update.
4410 * testsuite/gcc.dg/graphite/scop-4.c: Update.
4411 * testsuite/gcc.dg/graphite/scop-5.c: Add.
4412 * testsuite/gcc.dg/graphite/scop-6.c: Add.
4413
44142008-05-06 Sebastian Pop <sebastian.pop@amd.com>
4415
4416 * testsuite/gcc.dg/graphite/scop-0.c: Add.
4417 * testsuite/gcc.dg/graphite/scop-7.c: Add.
4418 * testsuite/gcc.dg/graphite/scop-8.c: Add.
4419 * testsuite/gcc.dg/graphite/scop-9.c: Add.
4420 * testsuite/gcc.dg/graphite/scop-10.c: Add.
4421
44222008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4423
4424 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
4425 Check affine expressions depending on the outermost loop
4426 instead of a scop.
4427 (stmt_simple_for_scop_p): Same.
4428 (harmfule_stmt_in_scop): Same.
4429
44302008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
4431
4432 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
4433 mark entry and exit, that are not part of the SCoP and update HTML
4434 formatting.
4435
44362008-04-25 Sebastian Pop <sebastian.pop@amd.com>
4437
4438 * graphite.c (basic_block_simple_for_scop_p): Renamed
4439 harmful_stmt_in_bb.
4440 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
4441 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
4442 (all_preds_visited_p, all_succs_visited_p,
4443 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
4444 scop_end_loop): New.
4445 (build_scops): Do not use dfs_enumerate_from.
4446
4447 * testsuite/gcc.dg/graphite/scop-{1,2,4}.c: Updated.
4448
44492008-04-23 Sebastian Pop <sebastian.pop@amd.com>
4450
4451 * graphite.c: Add comments to functions that are missing a
4452 description.
4453 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
4454
44552008-04-23 Sebastian Pop <sebastian.pop@amd.com>
4456
4457 * graphite.c (nb_params_in_scop): Moved...
4458 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
4459 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
4460 (clast_to_gcc_expression): Reduce column size to less than 80.
4461 (graphite_create_iv): Return the new name of the IV.
4462 (find_transform): Set options->esp and options->cpp.
4463 (gloog): Comment out the invalidation of the old loop code.
4464 (initialize_dependence_polyhedron): Replace scop_nb_params with
4465 nb_params_in_scop.
4466
4467 * graphite.h (nb_params_in_scop): ... here.
4468 (scop_nb_params): Removed.
4469 (loop_domain_dim): Return something even when the loop was not
4470 found in the hash table: avoid ICEing on all the graphite.exp
4471 testcases.
4472
44732008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4474
4475 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
4476
4477 * graphite.c (build_scop_dynamic_schedules): Schedule is built
4478 according to nesting level.
4479 (find_scop_parameters): Call instantiate_parameters.
4480 (scan_tree_for_params): Extend it to handle general affine bounds.
4481 Inner loop bound can depend on outer loop induction variable.
4482 (setup_cloog_loop): tmp variable is allocated on stack. Call
4483 instantiate_parameters with respect to outermost_loop_in_scop.
4484 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
4485 graphite.h.
4486 (create_empty_loop): Function loopify should be given edge
4487 probability, instead of edge frequency. Dominance relation from
4488 switch_bb to loop_header.
4489 (clast_to_gcc_expression): Added handling of clast_reduction node.
4490 (gloog): New functionality for removing old loop.
4491 (test_dependence): Factored out from build_rdg_all_levels.
4492 (build_rdg_all_levels): Dependence testing factored out to
4493 test_dependence function.
4494
4495 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
4496 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
4497 from graphite.c
4498
44992008-04-07 Sebastian Pop <sebastian.pop@amd.com>
4500
4501 * graphite.c (free_scop, param_index, initialize_cloog_names,
4502 nb_params_in_scop): Use name_tree map instead of just a tree
4503 for keeping track of the variable name associated to that tree.
4504 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
4505 clast_to_gcc_expression, graphite_create_iv,
4506 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
4507 graphite_stmt_to_gcc_stmt): New.
4508 (gloog): Call these.
4509 * graphite.h (struct name_tree): New.
4510 (struct scop): Use name_tree instead of tree for params.
4511 Store a vector of name_tree for new_ivs.
4512 (SCOP_NEWIVS): New.
4513 (scop_nb_params): Use name_tree instead of tree.
4514
45152008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
4516 Sebastian Pop <sebastian.pop@amd.com>
4517
4518 * tree-bounds.c: New.
4519 * tree-bounds.h: New.
4520 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
4521 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
4522 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
4523 flag_mudflap.
4524 * gcc.c: Same.
4525 * toplev.c: Same.
4526 * c-cppbuiltin.c: Same.
4527 * c-pragma.c: Same.
4528 * common.opt: Same.
4529 * varasm.c: Same.
4530 * tree-outof-ssa.c: Same.
4531 * c-common.c: Same.
4532 * Makefile.in: Same.
4533
45342008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
4535 Sebastian Pop <sebastian.pop@amd.com>
4536
4537 * tree-loop-distribution.c (remaining_stmts,
4538 upstream_mem_writes): Removed static variables.
4539 (copy_loop_before, create_bb_after_loop,
4540 mark_nodes_having_upstream_mem_writes, free_rdg_components,
4541 rdg_build_components, rdg_build_partitions,
4542 dump_rdg_partitions): Extern.
4543 (generate_loops_for_partition, generate_code_for_partition): Do not
4544 return a bool.
4545 (already_processed_vertex_p, predecessor_has_mem_write,
4546 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
4547 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
4548 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
4549 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
4550 Pass remaining_stmts and upstream_mem_writes as parameters.
4551 (rdg_component): Moved...
4552 (build_rdg_partition_for_component): Do not aggregate components when
4553 flag_streamize_loops is set.
4554 (gen_sequential_loops): New.
4555 (ldist_gen): Call gen_sequential_loops.
4556
4557 * tree-pass.h (pass_loop_streamization): Declared.
4558
4559 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
4560 basic blocks when loops structures exist.
4561
4562 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
4563
4564 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
4565
4566 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
4567 eliminate_local_variables_stmt, eliminate_local_variables,
4568 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
4569 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
4570 of code delimited by two edges in the CFG.
4571 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
4572 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
4573 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
4574 the case of parallelisation of reductions.
4575 (create_loop_fn): Extern.
4576 (create_omp_parallel_region): New.
4577
4578 * tree-data-ref.c (dump_data_dependence_relation): Don't call
4579 dump_data_reference for printing dra and drb.
4580 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
4581 RDGE_RELATION.
4582 (build_rdg): Don't call free_dependence_relations for the moment, as
4583 we attach dependence relations on each edge of the RDG.
4584 To be fixed later.
4585
4586 * tree-data-ref.h (rdg_component): ...here.
4587 (struct rdg_edge): New field ddr_p relation.
4588 (RDGE_RELATION): New.
4589 (create_bb_after_loop, copy_loop_before,
4590 mark_nodes_having_upstream_mem_writes, rdg_build_components,
4591 rdg_build_partitions, dump_rdg_partitions,
4592 free_rdg_components): Declared.
4593
4594 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
4595 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
4596
4597 * tree-loop-streamization.c: New.
4598
4599 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
4600 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
4601
4602 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
4603
4604 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
4605
4606 * passes.c: Schedule pass_loop_streamization.
4607
46082008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
4609
4610 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
4611 update comment.
4612
46132008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
4614
4615 * graphite.c (dot_all_scops): Update formatting.
4616 Bbs can now be part of more than one SCoP.
4617
46182008-03-04 Sebastian Pop <sebastian.pop@amd.com>
4619
4620 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
4621 malloc problems.
4622 (loop_domain_dim): Check for unregistered toplev SCOP loop.
4623 * graphite.h (loop_to_cloog_loop): New.
4624
46252008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4626
4627 * graphite.c (loop_domain_dim, ref_nb_loops,
4628 loop_iteration_vector_dim): New.
4629 (build_access_matrix_with_af, build_access_matrix,
4630 initialize_dependence_polyhedron): Fixed for new matrix layout.
4631 No longer assume that all iteration domains are of the same
4632 dimensionality.
4633
46342008-03-02 Sebastian Pop <sebastian.pop@amd.com>
4635
4636 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
4637 defined in a loop at depth 0 is invariant.
4638 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
4639 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
4640 be called at loop depth 0.
4641
4642 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
4643 a parameter.
4644 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
4645 (down_open_scop): Removed.
4646 (loop_in_scop_p): Redefined.
4647 (scop_affine_expr): New argument: scop.
4648 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
4649 a harmful statement ending a scop.
4650 (basic_block_simple_for_scop_p): New argument: scop.
4651 (get_loop_start): Removed.
4652 (new_scop): Initialize SCOP_LOOPS.
4653 (free_scop): Free SCOP_LOOPS.
4654 (succs_at_same_depth, preds_at_same_depth): New.
4655 (end_scop): Test the validity of a scop.
4656 (add_dominators_to_open_scops): New.
4657 (test_for_scop_bound): Call add_dominators_to_open_scops.
4658 Add cases for opening and closing multiple scops.
4659 (build_scops, build_scop_bbs): Iterate over basic blocks in
4660 depth first order.
4661 (build_graphite_bb): Pass scop directly.
4662 (dfs_bb_in_scop_p): New.
4663 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
4664 several times.
4665 (nb_loops_around_gb): Use loop_in_scop_p.
4666 (schedule_to_scattering): Disabled for the moment the code computing
4667 the "textual order for outer loop".
4668
4669 * graphite.h (struct scop): New field loops.
4670 (SCOP_LOOPS): New.
4671 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
4672
4673 * testsuite/gcc.dg/graphite/scop-{1,...,7}.c: Updated.
4674
46752008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
4676 Sebastian Pop <sebastian.pop@amd.com>
4677
4678 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
4679 * common.opt (fstreamize-loops): New.
4680 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
4681 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
4682 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
4683 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
4684
46852008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4686
4687 * tree-data-ref.c (build_empty_rdg): New.
4688 (build_rdg): Use it.
4689 * tree-data-ref.h (build_empty_rdg): Declared.
4690 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
4691 (find_vertex_for_stmt): Removed.
4692 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
4693
46942008-02-21 Sebastian Pop <sebastian.pop@amd.com>
4695
4696 * tree-loop-distribution.c (generate_builtin): After cancelling the
4697 loop tree, also delete basic blocks.
4698 (rdg_flag_uses): Stop recursion when a vertex has already been
4699 processed.
4700
47012008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4702
4703 * graphite.c (build_scop_alpha): Removed.
4704 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
4705 and dump_dependence_graph to avoid compiler warnings.
4706
47072008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4708
4709 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
4710 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
4711 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
4712 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
4713 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
4714 (initialize_dependence_polyhedron, find_vertex_for_stmt,
4715 initialize_data_dependence_polyhedron, is_empty_polyhedron,
4716 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
4717 dump_dependence_graph): New.
4718 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
4719 (GBB_ALPHA): New.
4720 (struct scop): New field loop2cloog_loop.
4721 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
4722 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
4723
47242008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4725
4726 * graphite.c (build_graphite_bb): Fix initialization
4727 of the graphite basic block.
4728
47292008-02-05 Sebastian Pop <sebastian.pop@amd.com>
4730
4731 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
4732 loop domain matrix. Pass in the number of loops contained in the
4733 constraint matrix.
4734 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
4735 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
4736 loops that are not surrounding the current loop are not represented
4737 in the domain constraint matrix.
4738 (build_scop_iteration_domain): Initial domain constraint matrix
4739 contains only the eq/ineq, cst, and scop parameters columns.
4740
47412008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
4742
4743 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
4744 (print_graphite_bb): Print scattering.
4745
47462008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
4747
4748 * graphite.c (initialize_cloog_names): Initialize names of
4749 scattering variables.
4750
47512009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
4752
4753 * graphite.c (dot_all_scops_1): Disable debug output while
4754 printing graph.
4755
47562008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
4757
4758 * graphite.c (find_transform): Change cloog output language to C.
4759
47602008-01-27 Sebastian Pop <sebastian.pop@amd.com>
4761
4762 * tree-loop-distribution.c (generate_memset_zero,
4763 generate_builtin, generate_code_for_partition,
4764 rdg_flag_all_uses): New.
4765 (rdg_flag_uses): Gather in the same partition the statements defining
4766 the VUSES of the current statement.
4767 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
4768 Gather in the same partition not only the stores to the same memory
4769 access, but also the reads.
4770 (ldist_generate_loops): Renamed ldist_gen.
4771
47722008-01-24 Sebastian Pop <sebastian.pop@amd.com>
4773 Tobias Grosser <grosser@fmi.uni-passau.de>
4774
4775 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
4776 next pointer, don't use the inner pointer.
4777
47782008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
4779
4780 * graphite.c (dot_all_scops, dot_all_scops_1): New.
4781 (find_transform): Call dot_all_1.
4782 * graphite.h (dot_all_scops): Declared.
4783
47842007-12-14 Sebastian Pop <sebastian.pop@amd.com>
4785
4786 * tree-loop-distribution.c: Fix apsi.f ICE.
4787 (create_bb_after_loop): New.
4788 (generate_loops_for_partition): Use it.
4789 * testsuite/gfortran.dg/ldist-1.f90: New.
4790
4791 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
4792 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
4793
47942007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
4795
4796 * graphite.c (find_transform): Dump cloog program sent to cloog.
4797
47982007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
4799
4800 * graphite.c (initialize_cloog_names): Initialize cloog
4801 iterator names.
4802
48032007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
4804
4805 * graphite.c (build_scop_context): Fix typo, for the matrix
4806 format: insert '0 >= 0' instead of '-1 >= 0'.
4807
48082007-12-13 Sebastian Pop <sebastian.pop@amd.com>
4809
4810 * Fix merge problems.
4811
48122007-12-13 Sebastian Pop <sebastian.pop@amd.com>
4813
4814 * graphite.c (setup_cloog_loop): Fix typo.
4815
48162007-12-12 Sebastian Pop <sebastian.pop@amd.com>
4817
4818 * doc/invoke.texi (-ftree-loop-distribution): Documented.
4819 * tree-loop-distribution.c: Reimplemented.
4820 * tree-pass.h (pass_loop_distribution): New.
4821 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
4822 print_loops.
4823 * graphds.h (struct graph): New field indexes.
4824 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
4825
4826 * tree-vect-analyze.c: Remove declaration of static functions when not
4827 needed.
4828 * tree-vectorizer.c: Same.
4829 (rename_variables_in_loop): Now extern.
4830 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
4831 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
4832 calling redirect_edge_and_branch_force.
4833
4834 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
4835
4836 * tree-data-ref.c: Don't include tree-chrec.h.
4837 (debug_data_dependence_relations): New.
4838 (dump_data_dependence_relation): Call dump_data_reference on data refs
4839 in the relation.
4840 (same_access_functions): Moved...
4841 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
4842 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4843 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
4844 struct rdg_vertex_info, ): New.
4845 (create_rdg_edge_for_ddr): Compute the dependence level before looking
4846 at DDR_REVERSED_P.
4847 (create_rdg_vertices): Initialize the htab of graph->indexes.
4848 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
4849 (stmts_from_loop): Don't save LABEL_EXPR.
4850 (hash_stmt_vertex_info, eq_stmt_vertex_info,
4851 hash_stmt_vertex_del): New.
4852 (build_rdg): Initialize rdg->indexes.
4853 (free_rdg, stores_from_loop, ref_base_address,
4854 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
4855 have_similar_memory_accesses_1, ref_base_address_1,
4856 remove_similar_memory_refs): New.
4857
4858 * tree-data-ref.h: Include tree-chrec.h.
4859 (debug_data_dependence_relations): Declared.
4860 (same_access_functions): ...here. Now static inline.
4861 (ddr_is_anti_dependent, ddrs_have_anti_deps,
4862 ddr_dependence_level): New.
4863 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
4864 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
4865 RDG_MEM_READS_STMT): New.
4866 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4867 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
4868 rdg_vertex_for_stmt): Declared.
4869 (struct rdg_edge): New field level.
4870 (RDGE_LEVEL, free_rdg): New.
4871 (stores_from_loop, remove_similar_memory_refs,
4872 rdg_defs_used_in_other_loops_p,
4873 have_similar_memory_accesses): Declared.
4874 (rdg_has_similar_memory_accesses): New.
4875
4876 * lambda.h (dependence_level): New.
4877 * common.opt (ftree-loop-distribution): New.
4878 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
4879 (print_loop_ir): Renamed print_loops.
4880 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
4881 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
4882 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
4883 (tree-loop-distribution.o): Added.
4884 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
4885 (mark_virtual_ops_in_bb): New.
4886 (print_loops_bb, debug_loop_num, debug_loop): New.
4887 * passes.c: Scheduled pass_loop_distribution.
4888
48892007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4890
4891 * graphite.c (scan_tree_for_params): Correct the number of columns
4892 for polylib format.
4893 (nb_flat_iterator): New.
4894 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
4895 (build_scop_iteration_domain): Correct the number of columns for
4896 polylib format.
4897
48982007-12-12 Sebastian Pop <sebastian.pop@amd.com>
4899
4900 * Merge from mainline (129697:130800).
4901
49022007-10-30 Sebastian Pop <sebastian.pop@amd.com>
4903
4904 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
4905 dominated by SCoP's exit.
4906 (graphite_transform_loops): Compute post dominators.
4907
49082007-10-28 Sebastian Pop <sebastian.pop@amd.com>
4909
4910 * Merge from mainline (127169:129697).
4911
49122007-10-28 Sebastian Pop <sebastian.pop@amd.com>
4913
4914 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
4915 parameter for the basic block that contains the expression. Use
4916 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
4917 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
4918 the expression.
4919 * graphite.h (gbb_loop): New.
4920 (GBB_LOOP): Removed.
4921
49222007-08-03 Sebastian Pop <sebpop@gmail.com>
4923
4924 * Makefile.in: Fix merge problem.
4925
49262007-08-03 Sebastian Pop <sebpop@gmail.com>
4927
4928 * Merge from mainline (125309:127169).
4929 * tree-loop-distribution.c: Disabled.
4930
49312007-06-05 Sebastian Pop <sebpop@gmail.com>
4932
4933 * Merge from mainline (r123693:125309).
4934
49352007-05-30 Sebastian Pop <sebpop@gmail.com>
4936
4937 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
4938 correct_modify_p
4939 (correct_modify_p, check_statements, number_of_lvalue_uses,
4940 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
4941 instead of MODIFY_EXPR.
4942 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
4943 and push new edges.
4944
49452007-05-24 Sebastian Pop <sebpop@gmail.com>
4946
4947 * tree-loop-distribution.c (struct rdg): Replace arrays by
4948 VECs for edges and vertices.
4949 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
4950 (RDGV_NB_PARTITIONS): New.
4951 (PRDG_NBV, PRDG_NBE): Removed.
4952 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
4953 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
4954 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
4955
49562007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
4957 Sebastian Pop <sebpop@gmail.com>
4958
4959 * doc/invoke.texi (-ftree-loop-distribution): Document.
4960 * tree-loop-distribution.c: New file.
4961 * tree-pass.h (pass_loop_distribution): Declared.
4962 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
4963 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
4964 and set reversed_p.
4965 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
4966 (DDR_REVERSED_P): New.
4967 * common.opt (-ftree-loop-distribution): New.
4968 * tree-flow.h (distribute_loops): Declared.
4969 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
4970 * passes.c (init_optimization_passes): Schedule loop distribution.
4971
49722007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
4973
4974 * graphite.c (print_graphite_bb): Don't call dump_data_references.
4975 (print_scop): Don't print when scop is NULL.
4976 (build_scop_context, find_transform): Don't output to stderr.
4977
49782007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
4979
4980 * tree-data-ref.c: Don't include graphite.h.
4981 Comment out the code for printing data reference's scop.
4982 (build_access_matrix_with_af): Moved...
4983 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
4984 * graphite.c (build_access_matrix_with_af): ... here. Now static.
4985 (print_graphite_bb): Print basic block's schedule.
4986 (print_scop): Don't print the schedule, call cloog's pretty printer.
4987 (bb_in_scop_p): A basic block is in a scop only if it is both
4988 dominated and postdominated by the scop's entry and exit basic blocks.
4989 (function_parameter_p): New.
4990 (invariant_in_scop_p): Use function_parameter_p.
4991 (new_scop, save_scop): New.
4992 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
4993 save_scop.
4994 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
4995 (loop_in_scop_p): New.
4996 (scop_record_loop): Use loop_in_scop_p.
4997 (build_scop_domain): Renamed build_scop_iteration_domain.
4998 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
4999 nb_params_in_scop, build_scop_context, first_loop_in_scop,
5000 setup_cloog_loop, dot_scop_1, dot_scop): New.
5001 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
5002 (struct scop): Add a pointer to cloog's representation of a program.
5003
50042007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
5005
5006 * doc/invoke.texi (-ftree-check-verbose): Renamed
5007 -ftree-checks-verbose.
5008 * common.opt (flag_tree_check_verbose): Renamed
5009 flag_tree_checks_verbose.
5010 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
5011
50122007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
5013
5014 * configure: Regenerated.
5015 * config.in: Regenerated.
5016 * tree-ssa-loop.c (graphite_transforms): Execute
5017 graphite_transform_loops only when HAVE_cloog.
5018 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
5019 * graphite.c: Include polylibgmp.h and cloog.h.
5020 (graphite_transform_loops): Removed loops parameter.
5021 * tree-flow.h (graphite_transform_loops): Update declaration.
5022 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
5023 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
5024 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
5025 (OBJS-common): Remove dependence on graphite.o.
5026 (BACKEND): Depend on @GRAPHITE@.
5027
50282007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
5029
5030 * doc/invoke.texi (-ftree-check-verbose): Documented.
5031 * testsuite/gcc.dg/tree-checker/tree-checks-1.c: New.
5032 * testsuite/gcc.dg/tree-checker/tree-checks-2.c: New.
5033 * testsuite/gcc.dg/tree-checker/tree-checks-3.c: New.
5034 * testsuite/gcc.dg/tree-checker/tree-checks-4.c: New.
5035 * testsuite/gcc.dg/tree-checker/tree-checks.exp: New.
5036 * testsuite/gcc.dg/tree-checker/condates.crp: New.
5037 * common.opt (ftree-checks-verbose): New.
5038 * tree-check.c (tree_check_warning): Move extra stderr output
5039 under control of flag_tree_check_verbose.
5040
50412007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
5042
5043 * tree-match.c: Fix comments formatting.
5044 * tree-match.h: Fix comments formatting.
5045 * tree-check.c: Fix comments formatting.
5046 (tree_check_init): Restructure.
5047
50482007-04-12 Nic Volanschi <nic.volanschi@free.fr>
5049
5050 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
5051
50522007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
5053
5054 * Merge from mainline (r120733:123693).
5055
50562007-03-20 Nic Volanschi <nic.volanschi@free.fr>
5057
5058 * condate.y: New file.
5059 * tree-match.h (struct patt_info_s): New field sign.
5060 (struct condate_s): New field msg.
5061 (normalize_condate, name_condate, add_condate): New.
5062 (conds[], condate_parse): Made extern.
5063 * tree-check.c (tree_check_warning): First arg changed to cond;
5064 warning reformatted.
5065 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
5066 (tree_scan): New.
5067 (tree_check): Process trivial condates.
5068 (read_delimited_string): Removed.
5069 (print_cond): Print name and msg.
5070 (conds[]): Made extern.
5071 (parse_tree_check_file_once): Rewritten to use the parser in
5072 condate.y.
5073 Processing of option --tree_check_string moved to tree_scan().
5074 * Makefile.in: Added condate.y
5075
50762007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
5077
5078 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
5079 Use VECs instead of varrays.
5080 * diagnostic.h (lazy_dump_generic_node): Update declaration.
5081 * Makefile.in (pretty-print.o): Depend on vec.h.
5082 * pretty-print.c: Include tree.h and vec.h.
5083 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
5084 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
5085 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
5086 pp_free_list): Use VECs instead of varrays.
5087 * pretty-print.h: Do not include varray.h.
5088 (struct tree_chunk_s): Declaration moved before its use.
5089 (output_buffer): Rename varray field to chunks.
5090 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
5091 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
5092 save_global_holes): Use VECs instead of varrays.
5093 * tree-match.h: Declare VECs of cfg_node, and hole_p.
5094 * tree-check.c (scan_cfg_stmts, push_node,
5095 print_matching_stmt): Removed.
5096 (tree_check_instance, push_global_holes_if_new, tree_check,
5097 execute_tree_check): Use VECs instead of varrays.
5098 (gate_tree_check): Don't execute the CFG check when basic_block_info
5099 is not available.
5100
51012007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5102
5103 * Merge from mainline (r115016:120733).
5104
51052007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5106
5107 * Merge from mainline (r117632:117661).
5108
51092007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5110
5111 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
5112 * tree-pass.h (TDF_DEBUG, debug_p): New.
5113 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
5114 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
5115 get_loop_exit_condition, analyze_evolution_in_loop,
5116 analyze_initial_condition, analyze_scalar_evolution,
5117 instantiate_parameters, number_of_latch_executions): Use debug_p.
5118 * tree-chrec.c (chrec_apply): Use debug_p.
5119 * tree-data-ref.c: Include graphite.h.
5120 (dump_data_reference): Print also the access matrix.
5121 (analyze_array, analyze_indirect_ref, init_data_ref,
5122 analyze_offset_expr, address_analysis, object_analysis,
5123 create_data_ref, finalize_ddr_dependent,
5124 non_affine_dependence_relation, analyze_ziv_subscript,
5125 analyze_siv_subscript_cst_affine,
5126 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
5127 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
5128 analyze_miv_subscript, analyze_overlapping_iterations,
5129 build_classic_dist_vector, subscript_dependence_tester,
5130 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
5131 (build_access_matrix_with_af): No longer static.
5132 * tree-data-ref.h (scop_p): ... declaration here.
5133 (data_reference.scop): New field.
5134 (DR_SCOP, DR_ACCESS_MATRIX): New.
5135 (build_access_matrix_with_af, dr_num_subscripts): Declared.
5136 * graphite.c (print_graphite_bb): Call dump_data_references.
5137 (print_scop): Use scop_nb_loops and scop_dim_domain.
5138 (test_for_scop_bound): Use debug_p.
5139 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
5140 scop_nb_params.
5141 (scop_loop_index): Moved...
5142 (scop_record_loop): New.
5143 (build_scop_loop_nests): Use scop_record_loop.
5144 (build_scop_domain): Use scop_dim_domain.
5145 (build_access_matrix): Implemented.
5146 (build_scop_canonical_schedules): Use scop_nb_loops.
5147 (build_graphite_bb): Initialize GBB_SCOP.
5148 * graphite.h (scop_p): Moved...
5149 (graphite_bb.scop): New field.
5150 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
5151 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
5152 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
5153 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
5154 scop_loop_index): New.
5155 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
5156
51572007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
5158
5159 * Merge from mainline (r117661:120450).
5160
51612006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
5162
5163 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
5164 at the first declaration outside the varying loop, instantiate as
5165 far as possible.
5166 * tree-chrec.c (for_each_scev_op): New.
5167 * tree-chrec.h (for_each_scev_op): Declared.
5168 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
5169 * tree-data-ref.c (get_references_in_stmt,
5170 find_data_references_in_stmt): New, from trunk.
5171 (find_data_references_in_loop): Use get_references_in_stmt
5172 and find_data_references_in_loop, modified as in trunk.
5173 (build_access_matrix_with_af): New.
5174 * tree-data-ref.h (data_reference): Add a field access_matrix.
5175 (data_ref_loc): New, as in trunk.
5176 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
5177 invariant_in_scop_p, param_index, scan_tree_for_params,
5178 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
5179 idx_record_param, idx_record_params, build_access_matrix,
5180 build_scop_data_accesses, build_scop_canonical_schedules,
5181 build_graphite_bb, build_scop_bbs, find_params_in_bb,
5182 build_scop_params): New.
5183 * graphite.h (graphite_bb): New.
5184 (scop): Add fields static_schedule, params, loop_nest,
5185 iteration_domain.
5186 * lambda.h: Declare vecs of lambda_matrix.
5187 * tree-flow.h (print_loop_ir_bb): Declared.
5188 * tree-cfg.c (print_loop_ir_bb): New.
5189 (print_loop): Use print_loop_ir_bb.
5190
51912006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
5192
5193 * Merge from mainline (r115016:117632).
5194
51952006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
5196
5197 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
5198 break due to a warning.
5199
52002006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
5201
5202 * graphite.c (print_scops, debug_scops): New.
5203 (graphite_transform): Renamed graphite_find_transform.
5204 * graphite.h (debug_scops): Declared.
5205
52062006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
5207
5208 * tree-match.c: Reformat following the GNU style.
5209 * tree-match.h: Reformat following the GNU style.
5210 * tree-pattern.h: Removed empty file.
5211 * Makefile.in: Remove references to tree-pattern.h.
5212 * tree-check.c: Reformat following the GNU style.
5213 (execute_tree_check): Move gate condition code to...
5214 (gate_tree_check): ...here. New function.
5215 (pass_check): Use the gate function.
5216
52172006-07-04 Nic Volanschi <nic.volanschi@free.fr>
5218
5219 * tree-pattern.h: New. Tree pattern matching and checking using
5220 concrete syntax.
5221 * tree-check.c: New. Tree/CFG checking pass.
5222 * tree-match.c: New. Library for tree pattern matching.
5223 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
5224 * toplev.c, flags.h: Add globals for tree-check pass.
5225 * Makefile.in: Integrate the files in tree-check pass.
5226 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
5227 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
5228 Introduce a "lazy" pretty-print mode.
5229 * tree.c, tree.h: Add tree_name.
5230
52312006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
5232
5233 * doc/invoke.texi (-fgraphite): Correct typo.
5234 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
5235 use of print_loop_ir.
5236 * testsuite/gcc.dg/graphite/scop-1.c: New.
5237 * testsuite/gcc.dg/graphite/scop-2.c: New.
5238 * testsuite/gcc.dg/graphite/graphite.exp: New.
5239 * graphite.c: Include domwalk.h.
5240 (print_scop): Print only the entry and exit blocks.
5241 (debug_scop): No longer static.
5242 (affine_expr): Fix formating. Return also true when the expression is
5243 constant.
5244 (stmt_simple_for_scop_p): Fix formating.
5245 (build_scops): Use domwalk.
5246 (get_loop_start, end_scop, test_for_scop_bound): New.
5247 (graphite_transform_loops): Avoid printing on stderr.
5248 * graphite.h (debug_scop): Declared.
5249 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
5250 * Makefile.in (graphite.o): Depend on domwalk.h.
5251 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
5252 declarations for static functions.
5253 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
5254 controlling output verbosity.
5255
52562006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
5257 Plesco Alexandru <shurikx@gmail.com>
5258
5259 * doc/invoke.texi (-fgraphite): Document.
5260 * tree-pass.h (pass_graphite_transforms): Declared.
5261 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
5262 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
5263 (pass_graphite_transforms): Defined.
5264 * tree-data-ref.c (free_data_ref, data_reference): Extern.
5265 * tree-data-ref.h (free_data_ref, data_reference): Declared.
5266 * graphite.c, graphite.h: New.
5267 * common.opt (fgraphite): Declared.
5268 * tree-flow.h (graphite_transform_loops): Declared.
5269 * Makefile.in (OBJS-common): Add graphite.o.
5270 (graphite.o): New rule.
5271 * passes.c (pass_graphite_transforms): Scheduled.
5272