]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog.graphite
README (files): Describe files entry.
[thirdparty/gcc.git] / gcc / ChangeLog.graphite
CommitLineData
f263917c
SP
12009-08-15 Sebastian Pop <sebastian.pop@amd.com>
2
3 PR middle-end/40981
4 * graphite-ppl.c (ppl_max_for_le): Correct the use of
5 ppl_Pointset_Powerset_C_Polyhedron_maximize.
6
72009-08-13 Sebastian Pop <sebastian.pop@amd.com>
8
9 * graphite-poly.c (print_pbb): Print PBB index.
10
112009-08-13 Sebastian Pop <sebastian.pop@amd.com>
12
13 * Merge from mainline (r150672:150764).
14
152009-08-13 Sebastian Pop <sebastian.pop@amd.com>
16
17 * graphite-interchange.c (ppl_max_for_le): Moved...
18 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
19 * graphite-ppl.c (ppl_max_for_le): ... here.
20 * graphite-ppl.h (ppl_max_for_le): Declared.
21
222009-08-12 Sebastian Pop <sebastian.pop@amd.com>
23
24 * Merge from mainline (r150372:150672).
25
30de1632
SP
262009-08-11 Sebastian Pop <sebastian.pop@amd.com>
27
28 PR middle-end/40980
29 * sese.c (convert_for_phi_arg): New.
30 (add_guard_exit_phis): Use convert_for_phi_arg.
31
32 * testsuite/gfortran.dg/graphite/id-17.f: New.
33
8c31ebfa
SP
342009-08-11 Sebastian Pop <sebastian.pop@amd.com>
35
36 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
37 unknown subscript upper bounds.
38
39 * testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL.
40
fb9fb290
SP
412009-08-11 Sebastian Pop <sebastian.pop@amd.com>
42 Pranav Garg <pranav.garg2107@gmail.com>
43
44 * graphite-interchange.c (gather_access_strides): Removed.
45 (ppl_max_for_le): New.
46 (build_linearized_memory_access): New.
47 (memory_stride_in_loop): New.
48 (pbb_interchange_profitable_p): Reimplemented.
49 * graphite-ppl.h (ppl_new_id_map): New.
50 (ppl_interchange): New.
51
52 * testsuite/gcc.dg/graphite/interchange-6.c: XFAILed.
53
312aea7f
SP
542009-08-11 Sebastian Pop <sebastian.pop@amd.com>
55
56 * graphite-interchange.c (compute_subscript): Removed.
57 (compute_array_size_cstr): Removed.
58 (compute_array_size_poly): Removed.
59 (compute_array_size): Removed.
60 (gather_access_strides_poly): Removed.
61 (gather_access_strides): Empty.
62
25d7cc15
SP
632009-08-11 Sebastian Pop <sebastian.pop@amd.com>
64
65 * graphite-dependences.c (dependence_polyhedron_1): Replace
66 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
67 (graphite_legal_transform_dr): Same.
68 (graphite_carried_dependence_level_k): Same.
69 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
70 Initialize PDR_NB_SUBSCRIPTS.
71 (print_pdr_access_layout): Replace pdr_nb_subscripts with
72 PDR_NB_SUBSCRIPTS.
73 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
74 (PDR_NB_SUBSCRIPTS): New.
75 (pdr_nb_subscripts): Removed.
76 (pdr_dim): Simplified.
77 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
78 with PDR_NB_SUBSCRIPTS.
79
66096911
SP
802009-08-11 Sebastian Pop <sebastian.pop@amd.com>
81
82 * graphite-interchange.c (compute_array_size): Remove use of
83 PDR_DATA_CONTAINER.
84 * graphite-poly.c (new_poly_dr): Remove argument data_container.
85 Do not initialize PDR_DATA_CONTAINER.
86 (print_pdr): Do not print PDR_DATA_CONTAINER.
87 * graphite-poly.h (struct poly_dr): Remove data_container field.
88 (PDR_DATA_CONTAINER): Removed.
89 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
90 PDR_DATA_CONTAINER.
91 (build_poly_dr): Same.
92
273c5dd3
SP
932009-08-11 Sebastian Pop <sebastian.pop@amd.com>
94
95 * testsuite/gcc.dg/graphite/interchange-9.c: New.
96
7491e5f0
KT
972009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
98 Sebastian Pop <sebastian.pop@amd.com>
99
100 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
101 copy of the dependence polyhedron. Free the temporary objects.
102 (graphite_carried_dependence_level_k): Free unused objects before
103 returning.
104
105 * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
106 * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
107 * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
108 * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
109 * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
110
f4648ed1
SP
1112009-08-05 Sebastian Pop <sebastian.pop@amd.com>
112
113 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
114 Early return without analyzing the data dependences if no
115 transform has been done. Call restore_scattering if the transform
116 is not legal.
117 (graphite-interchange.c): Same.
118 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
119 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
120 (apply_poly_transforms): Do not gcc_assert that
121 the transform is legal.
122 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
123 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
124 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
125 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
126 * graphite-poly.h (struct poly_scattering): New.
127 (struct poly_bb): Add original, transformed, and saved fields.
128 Remove transformed_scattering, original_scattering, nb_local_variables,
129 and nb_scattering_transform fields.
130 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
131 (poly_scattering_new): New.
132 (poly_scattering_free): New.
133 (poly_scattering_copy): New.
134 (store_scattering_pbb): New.
135 (store_scattering): New.
136 (restore_scattering_pbb): New.
137 (restore_scattering): New.
138 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
139 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
273c5dd3 140
e31a5bd4
SP
1412009-08-05 Sebastian Pop <sebastian.pop@amd.com>
142
143 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
144 (print_scop): Same.
145
8e88f9fd
SP
1462009-08-05 Sebastian Pop <sebastian.pop@amd.com>
147
148 * Makefile.in (graphite.o): Depends on PREDICT_H.
149 * graphite.c: Include predict.h.
150 (graphite_finalize): Call tree_estimate_probability.
151 * predict.c (predict_loops): Do not call scev_initialize and
152 scev_finalize.
153 (tree_estimate_probability_bb): New.
154 (tree_estimate_probability): Do not initialize loops: move that
155 code to the driver. Call tree_estimate_probability_bb.
156 (tree_estimate_probability_driver): New.
157 (pass_profile): Use tree_estimate_probability_driver.
158 * predict.h (tree_estimate_probability): Declared.
159
87d4d0ee
SP
1602009-08-05 Sebastian Pop <sebastian.pop@amd.com>
161
162 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
163 * graphite-dependences.c (graphite_legal_transform): Add time to
164 TV_GRAPHITE_DATA_DEPS.
165 (dependency_between_pbbs_p): Same.
166 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
167
1682009-08-03 Sebastian Pop <sebastian.pop@amd.com>
169
170 * Merge from mainline (r149952:150372).
171
2abae5f1
SP
1722009-07-28 Sebastian Pop <sebastian.pop@amd.com>
173
174 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
175 * graphite-blocking.c: Same.
176 * graphite-clast-to-gimple.c: Same.
177 * graphite-dependences.c: Same.
178 * graphite-poly.c: Same.
179 * graphite-poly.h: Same.
180 * graphite-ppl.c: Same.
181 * graphite-scop-detection.c: Same.
182 * graphite-sese-to-poly.c: Same.
183 * graphite.c: Same.
184
1852009-07-28 Sebastian Pop <sebastian.pop@amd.com>
186
187 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
188 (remove_simple_copy_phi): New.
189 (remove_invariant_phi): New.
190 (simple_copy_phi_p): New.
191 (reduction_phi_p): New.
192 (gsi_for_ssa_name_def): New.
193 (insert_out_of_ssa_copy): New.
194 (insert_out_of_ssa_copy_on_edge): New.
195 (create_zero_dim_array): New.
196 (scalar_close_phi_node_p): New.
197 (rewrite_close_phi_out_of_ssa): New.
198 (rewrite_phi_out_of_ssa): New.
199 (rewrite_reductions_out_of_ssa): New.
200 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
201
202 * testsuite/gcc.dg/graphite/id-11.c: New.
203 * testsuite/gcc.dg/graphite/id-15.c: New.
204 * testsuite/gcc.dg/graphite/interchange-1.c: Un-XFAIL.
205 * testsuite/gcc.dg/graphite/interchange-2.c: Un-XFAIL.
206 * testsuite/gcc.dg/graphite/interchange-3.c: Un-XFAIL.
207 * testsuite/gcc.dg/graphite/interchange-4.c: Un-XFAIL.
208 * testsuite/gcc.dg/graphite/interchange-7.c: Un-XFAIL.
209 * testsuite/gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
210 * testsuite/gfortran.dg/graphite/id-13.f: New.
211 * testsuite/gfortran.dg/graphite/id-5.f: New.
212
2132009-07-28 Sebastian Pop <sebastian.pop@amd.com>
214
215 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
216 check that nb_reductions_in_loop is zero.
217 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
218 reduction phi nodes.
219 (nb_reductions_in_loop): Removed.
220 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
221 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
222 (bb_contains_non_iv_scalar_phi_nodes): Removed.
223 (scop_contains_non_iv_scalar_phi_nodes): Removed.
224 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
225
2262009-07-28 Sebastian Pop <sebastian.pop@amd.com>
227
228 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
229 statements that have an empty iteration domain.
230 * testsuite/gfortran.dg/graphite/id-16.f: New.
231
2322009-07-28 Sebastian Pop <sebastian.pop@amd.com>
233
234 * tree-scalar-evolution.c (instantiate_scev_1): Return
235 chrec_dont_know when the result is not above instantiate_below.
236 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
237 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
238 the tree has a known scalar evolution.
239 * testsuite/gfortran.dg/graphite/id-14.f: New.
240 * testsuite/gfortran.dg/graphite/id-15.f: New.
241
2422009-07-28 Sebastian Pop <sebastian.pop@amd.com>
243
244 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
245 insert_gsi.
246 (rename_variables): Keep inserting renames after the ones already
247 inserted.
248
2492009-07-28 Sebastian Pop <sebastian.pop@amd.com>
250
251 * graphite-sese-to-poly.c (compare_bb_depths): New.
252 (graphite_sort_dominated_info): New.
253 (build_scop_bbs_1): Call graphite_sort_dominated_info.
254 (build_scop_scattering): Fix comment.
255
2562009-07-28 Sebastian Pop <sebastian.pop@amd.com>
257
258 * graphite.c (graphite_finalize): Call print_loops instead of
259 dump_function_to_file.
260 * testsuite/gcc.dg/graphite/graphite.exp: Fix formatting.
261 * testsuite/gcc.dg/graphite/pr35356-1.c: New. Look for the number of
262 loops generated in the graphite output file.
263 * testsuite/gcc.dg/graphite/pr35356-2.c: New.
264 * testsuite/gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
265 * testsuite/gfortran.dg/graphite/id-12.f: New.
266
2672009-07-24 Li Feng <nemokingdom@gmail.com>
268
269 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
270 Remove 2 XFAIL.
271
2722009-07-24 Li Feng <nemokingdom@gmail.com>
273 Tobias Grosser <grosser@fim.uni-passau.de>
274
275 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
276 alias set number build alias in ACCESSES polyhedron.
277 (build_alias_set_for_drs): New.
278 (build_pbb_drs): Added build_alias_set_for_drs.
279 * graphite-dependences.c (poly_drs_may_alias_p): New.
280 (graphite_carried_dependence_level_k): Check alias information
281 before building polyhedron.
282
2832009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
284
285 * Makefile.in (lambda-code.o): Fix formatting.
286
2872009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
288
289 * Merge from mainline (r149350-149952)
290
2912009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
292
293 * graphite-poly.c (apply_poly_transforms): Move strip_mine
294 before interchange to prepare for loop blocking.
295
2962009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
297
298 * graphite-poly.c (apply_poly_transforms): Add checks after every
299 transformation.
300 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
301 done in apply_poly_transforms.
302
3032009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
304
305 * graphite-dependences.c (build_lexicographically_gt_constraint):
306 Replace RES parameter with *RES.
307 (dependence_polyhedron_1): Pass an address of the parameter RES
308 instead of value of RES.
309
3102009-07-16 Sebastian Pop <sebastian.pop@amd.com>
311
312 * graphite.c (graphite_finalize): Fix comment.
313 (graphite_transform_loops): Reset scev info after code generation
314 of each scop.
315
3162009-07-16 Sebastian Pop <sebastian.pop@amd.com>
317
318 * graphite.c (graphite_finalize): Call scev_reset.
319
3202009-07-16 Sebastian Pop <sebastian.pop@amd.com>
321
322 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
323 GBB_CLOOG_IV_TYPES hash table twice.
324 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
325 (add_condition_to_domain): Clear GMP values.
326
3272009-07-16 Sebastian Pop <sebastian.pop@amd.com>
328
329 * graphite-dependences.c: Fix formatting.
330 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
331 (pbb_number_of_iterations): Free ppl_Linear_Expression.
332 * graphite-sese-to-poly.c: Fix formatting.
333 * graphite.c (graphite_transform_loops): Create the hash table
334 after the early return.
335
3362009-07-16 Sebastian Pop <sebastian.pop@amd.com>
337
338 * testsuite/gcc.dg/graphite/id-14.c: New.
339 * testsuite/gcc.dg/graphite/pr40157.c: New.
340 * testsuite/gfortran.dg/graphite/id-11.f: New.
341
3422009-07-16 Sebastian Pop <sebastian.pop@amd.com>
343
344 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
345 (build_poly_scop): Return false when there are no pbbs within
346 loops to avoid to pass to cloog scops with no loops.
347
3482009-07-16 Sebastian Pop <sebastian.pop@amd.com>
349
350 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
351 useless test "i % 2".
352 (build_pbb_scattering_polyhedrons): Fix formatting.
353 (build_poly_dr): Same.
354 * graphite.c (graphite_transform_loops): Restructure.
355
3562009-07-14 Razya Ladelsky <razya@il.ibm.com>
357
358 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
359 reduction_list parameter.
360 (rewrite_all_phi_nodes_with_iv): Same.
361 (canonicalize_loop_ivs): Same.
362 * tree-parloops.c (struct brli): Removed.
363 (build_reduction_list_info): Removed.
364 (build_new_reduction): New.
365 (analyze_reduction_list): Removed.
366 (gather_scalar_reductions): Find reductions instead of phi
367 nodes that can't be canonicalized.
368 (try_create_reduction_list): Remove reduction_list parameter.
369 (gen_parallel_loop): Same.
370 (parallelize_loops): Remove analyze_reductions variable,
371 initialization and free.
372 Change reduction_list htab initialization to reduction_info
373 elements instead of ssa names.
374 Call try_create_reduction_list and gen_parallel_loop without
375 analyzed_reduction argument.
376 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
377 canonicalize_loop_ivs with one less argument.
378 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
379
3802009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
381
382 * graphite-dependences.c (new_poly_dr_pair): New.
383 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
384 (new_poly_dr_pair): New.
385 (eq_poly_dr_pair_p): New.
386 (hash_poly_dr_pair_p): New.
387 * graphite-dependences.h (struct poly_dr_pair): New.
388 (eq_poly_dr_pair_p): Declared.
389 (hash_poly_dr_pair_p): Declared.
390 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
391 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
392 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
393 * Makefile.in (graphite-poly.o): Add dependence on
394 graphite-dependences.h.
395
3962009-07-14 Sebastian Pop <sebastian.pop@amd.com>
397
398 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
399 polynomials of degree > 1 pass to Graphite.
400 * tree-chrec.c (scev_is_linear_expression): Call
401 evolution_function_is_affine_multivariate_p.
402 * testsuite/gfortran.dg/graphite/id-10.f90: New.
403
4042009-07-14 Sebastian Pop <sebastian.pop@amd.com>
405
406 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
407 Instantiate scevs varying in outer loops.
408 * testsuite/gfortran.dg/graphite/id-9.f: Correct testcase.
409
4102009-07-14 Sebastian Pop <sebastian.pop@amd.com>
411
412 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
413 redundant constraint.
414
4152009-07-14 Sebastian Pop <sebastian.pop@amd.com>
416
417 * testsuite/gcc.dg/graphite/graphite.exp: Fix comments.
418 * testsuite/gfortran.dg/graphite/graphite.exp: Trigger actions
419 based on the file names as in the C testsuite.
420 * testsuite/gfortran.dg/graphite/block-1.f90: Fix patterns.
421 * testsuite/gfortran.dg/graphite/block-2.f: Same.
422 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
423 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
424 * testsuite/gfortran.dg/graphite/id-1.f90: Same.
425 * testsuite/gfortran.dg/graphite/id-2.f90: Same.
426 * testsuite/gfortran.dg/graphite/id-3.f90: Same.
427 * testsuite/gfortran.dg/graphite/id-4.f90: Same.
428 * testsuite/gfortran.dg/graphite/id-6.f: Same.
429 * testsuite/gfortran.dg/graphite/id-9.f: Same.
430 * testsuite/gfortran.dg/graphite/interchange-1.f: Same.
431 * testsuite/gfortran.dg/graphite/interchange-2.f: Same.
432 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
433
4342009-07-14 Sebastian Pop <sebastian.pop@amd.com>
435
436 * sese.c (expand_scalar_variables_call): New.
437 (expand_scalar_variables_ssa_name): Handle calls in expander.
438
4392009-07-13 Sebastian Pop <sebastian.pop@amd.com>
440
441 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
442 Expect to see the pattern twice.
443 * testsuite/gcc.dg/graphite/interchange-0.c: Un-XFAIL.
444 * testsuite/gcc.dg/graphite/interchange-5.c: Same.
445 * testsuite/gcc.dg/graphite/interchange-6.c: Same.
446
4472009-07-13 Sebastian Pop <sebastian.pop@amd.com>
448
449 * testsuite/gcc.dg/graphite/id-10.c: New.
450 * testsuite/gcc.dg/graphite/id-12.c: New.
451 * testsuite/gfortran.dg/graphite/id-7.f: New.
452 * testsuite/gfortran.dg/graphite/id-8.f: New.
453
4542009-07-13 Sebastian Pop <sebastian.pop@amd.com>
455
456 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
457 zero.
458
4592009-07-13 Sebastian Pop <sebastian.pop@amd.com>
460
461 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
462
4632009-07-13 Sebastian Pop <sebastian.pop@amd.com>
464
465 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
466
4672009-07-10 Sebastian Pop <sebastian.pop@amd.com>
468
469 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
470 building PDR subscripts.
471
4722009-07-10 Sebastian Pop <sebastian.pop@amd.com>
473
474 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
475 computation of array sizes.
476
4772009-07-10 Sebastian Pop <sebastian.pop@amd.com>
478
479 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
480
4812009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
482
483 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
484 build_pairwise_constraint, dr_equality_constraints,
485 build_pairwise_scheduling_equality,
486 build_pairwise_scheduling_inequality, lexicographically_gt_p,
487 build_lexicographically_gt_constraint, dependence_polyhedron,
488 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
489 Move from NNC_Polyhedron to C_Polyhedron.
490 * graphite-interchange.c (compute_array_size_poly,
491 gather_access_strides): Dito.
492 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
493 free_scop, pbb_number_of_iterations): Dito.
494 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
495 pbb_dim_iter_domain, struct scop): Dito.
496 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
497 new_Cloog_Domain_from_ppl_Polyhedron,
498 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
499 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
500 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
501 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
502 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
503 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
504 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
505 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
506 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
507 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
508 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
509 build_scop_iteration_domain, build_poly_dr): Dito
510
5112009-07-09 Sebastian Pop <sebastian.pop@amd.com>
512
513 * testsuite/gcc.dg/graphite/graphite.exp: Added a rule to execute
514 run-id-*.c files.
515 * testsuite/gcc.dg/graphite/run-id-1.c: New.
516
5172009-07-09 Sebastian Pop <sebastian.pop@amd.com>
518
519 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
520 positivity constraint on the symbolic number of iterations.
521
5222009-07-09 Sebastian Pop <sebastian.pop@amd.com>
523
524 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
525
5262009-07-09 Sebastian Pop <sebastian.pop@amd.com>
527 Tobias Grosser <grosser@fim.uni-passau.de>
528
529 * graphite-clast-to-gimple.c (build_scop_context): Removed.
530 (build_cloog_prog): Directly use SCOP_CONTEXT.
531 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
532 (free_scop): Free SCOP_CONTEXT.
533 (print_scop_context): New.
534 (print_scop): Call print_scop_context.
535 (debug_scop_context): New.
536 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
537 (struct scop): Added field context.
538 (SCOP_CONTEXT): New.
539 * graphite-sese-to-poly.c (add_param_constraints): New.
540 (build_scop_context): New.
541 (build_poly_scop): Call build_scop_context.
542
5432009-07-09 Sebastian Pop <sebastian.pop@amd.com>
544
545 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
546 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
547 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
548 * graphite-ppl.h: Include double-int.h and tree.h.
549 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
550 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
551 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
552 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
553
5542009-07-09 Sebastian Pop <sebastian.pop@amd.com>
555
556 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
557 POINTER_PLUS_EXPR for pointer types.
558 (clast_to_gcc_expression): Same.
559
5602009-07-09 Sebastian Pop <sebastian.pop@amd.com>
561
562 * graphite-poly.c (print_scattering_function): Early return when
563 PBB_TRANSFORMED_SCATTERING is not initialized.
564 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
565
5662009-07-08 Sebastian Pop <sebastian.pop@amd.com>
567
568 * tree-parloops.c (analyze_reduction_list): Remove unused variable
569 to fix bootstrap.
570
5712009-07-08 Razya Ladelsky <razya@il.ibm.com>
572
573 * tree-parloops.c (analyze_reduction_list): Change return
574 value to void.
575 (try_create_reduction_list): Move the call to
576 analyze_reduction_list to the beginining.
577 Call reduction_phi with analyzed_reductions as argument
578 instead of reduction_list.
579
5802009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
581
582 * Merge from mainline (r148296:149346)
583
5842009-07-07 Sebastian Pop <sebastian.pop@amd.com>
585
586 * graphite-scop-detection.c (graphite_can_represent_init): New.
587 (graphite_can_represent_scev): Call graphite_can_represent_init:
588 check that the initial value does not contain multiplications of
589 parameters.
590 (stmt_has_simple_data_refs_p): New.
591 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
592 (is_simple_operand): Fix formatting.
593 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
594
5952009-07-07 Sebastian Pop <sebastian.pop@amd.com>
596
597 * testsuite/gcc.dg/graphite/id-13.c: New.
598 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
599 analyze_scalar_evolution, use scalar_evolution_in_region.
600 (scan_tree_for_params_right_scev): Add extra assert.
601 (parameter_index_in_region_1): Split from parameter_index_in_region.
602 (idx_record_params): Use scalar_evolution_in_region.
603 (find_params_in_bb): Same.
604 (find_scop_parameters): Same.
605 (build_loop_iteration_domains): Same.
606 (create_linear_expr_from_tree): Same.
607 * sese.c (scalar_evolution_in_region): New.
608 * sese.h (scalar_evolution_in_region): Declared.
609 (defined_in_sese_p): New.
610 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
611 static anymore.
612 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
613 Declared.
614
6152009-07-07 Sebastian Pop <sebastian.pop@amd.com>
616
617 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
618 TREE_DATA_REF_H also implies SCEV_H.
619
6202009-07-07 Sebastian Pop <sebastian.pop@amd.com>
621
622 * graphite-poly.c (print_scop_params): New.
623 (print_scop): Call print_scop_params.
624 (debug_scop_params): New.
625 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
626
6272009-07-07 Li Feng <nemokingdom@gmail.com>
628
629 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
630 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
631 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
632 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
633 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
634 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
635
6362009-07-07 Li Feng <nemokingdom@gmail.com>
637
638 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
639 for dependency checking part.
640 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
641 tests for dependency checking.
642 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
643 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
644 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
645 flag -fdump-tree-graphite-all for autopar testsuites.
646
6472009-07-06 Sebastian Pop <sebastian.pop@amd.com>
648
649 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
650 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
651 canonicalize_loop_ivs): Moved...
652 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
653
6542009-07-06 Sebastian Pop <sebastian.pop@amd.com>
655
656 * tree-parloops.c (try_create_reduction_list): Pass an extra
657 argument analyzed_reductions. Call analyze_reduction_list.
658 (gen_parallel_loop): Do not call analyze_reduction_list.
659 (parallelize_loops): Init and finalize analyzed_reductions.
660
6612009-07-06 Li Feng <nemokingdom@gmail.com>
662
663 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
664 Added flag -fno-loop-strip-mine for autopar testcase.
665
6662009-07-04 Li Feng <nemokingdom@gmail.com>
667
668 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
669 transformed scattering dimension instead of unmatch orignal when
670 calling dependence_polyhedron.
671
6722009-06-30 Sebastian Pop <sebastian.pop@amd.com>
673
674 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
675
6762009-06-30 Sebastian Pop <sebastian.pop@amd.com>
677
678 * graphite-poly.c (pbb_number_of_iterations): Check for returned
679 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
680
6812009-06-30 Sebastian Pop <sebastian.pop@amd.com>
682
683 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
684 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
685 * graphite-poly.c (pbb_number_of_iterations): New.
686 * graphite-poly.h (pbb_number_of_iterations): Declared.
687 (pbb_iterator_dim, pbb_parameter_dim): New.
688
6892009-06-29 Sebastian Pop <sebastian.pop@amd.com>
690
691 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
692 last commit on type of lower and upper bound of loops.
693
6942009-06-29 Li Feng <nemokingdom@gmail.com>
695
696 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
697 graphite-dependences.h.
698 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
699 (mark_bb_with_pbb): New.
700 (get_stmtfor_depth): New.
701 (find_pbb_via_hash): New.
702 (dependency_in_loop_p): New.
703 (mark_loops_parallel): New.
704 (free_aux_in_new_loops): New.
705 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
706 bb with it's relevant pbb. Mark newly created loops. Remove mark
707 innermost loop parallel without checking.
708 (gloog): Add parameter BB_PBB_MAPPING.
709 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
710 (gloog): Change declaration.
711 (mark_loop_parallel): Make extern.
712 (free_aux_in_new_loops): Declare.
713 (bb_pbb_map_hash): New.
714 (eq_bb_pbb_map): New.
715 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
716 auto parallelization when flag_graphite_force_parallel is set.
717 (graphite_finalize): Added free_aux_in_new_loops.
718 * tree-parloops.c (parallelize_loops): Only generate parallel code for
719 the innermost loop that marked parallel. Use
720 flag_graphite_force_parallel instead of loop->can_be_parallel.
721 (loop_parallel_p): Move inner most checking out of function.
722
7232009-06-26 Sebastian Pop <sebastian.pop@amd.com>
724
725 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
726 type of lower and upper bound of loops signed long int.
727
7282009-06-26 Sebastian Pop <sebastian.pop@amd.com>
729
730 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
731 expression outside the loop.
732
7332009-06-26 Sebastian Pop <sebastian.pop@amd.com>
734
735 * gcc.dg/graphite/interchange-8.c: New.
736
7372009-06-26 Sebastian Pop <sebastian.pop@amd.com>
738
739 * gcc.dg/graphite/interchange-0.c: XFailed.
740 * gcc.dg/graphite/interchange-5.c: XFailed.
741 * gcc.dg/graphite/interchange-6.c: XFailed.
742
7432009-06-26 Sebastian Pop <sebastian.pop@amd.com>
744
745 * graphite-interchange.c (compute_array_size_poly): The end of the
746 recursion should return 1.
747
7482009-06-26 Sebastian Pop <sebastian.pop@amd.com>
749
750 * graphite-interchange.c (compute_array_size_cstr): Allow the
751 subscript multiplier to be -1.
752 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
753 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
754 data_container. Initializes PDR_DATA_CONTAINER.
755 (print_pdr_access_layout): New.
756 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
757 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
758 data_container.
759 (PDR_DATA_CONTAINER): New.
760 (new_poly_dr): Update declaration.
761 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
762 (build_poly_dr): Call pdr_add_data_dimensions.
763
7642009-06-26 Sebastian Pop <sebastian.pop@amd.com>
765
766 * graphite-poly.h (struct poly_dr): Fix comment.
767 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
768 (pdr_add_memory_accesses): New.
769 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
770
7712009-06-26 Sebastian Pop <sebastian.pop@amd.com>
772
773 * graphite-poly.c (print_pdrs, debug_pdrs): New.
774 (print_pbb): Add call to print_pdrs.
775 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
776
7772009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
778 Li Feng <nemokingdom@gmail.com>
779
780 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
781 (dependency_between_pbbs_p): New.
782 (lexicographically_gt_p): Assure !empty_p before polyhedron
783 intersection assign.
784 (build_lexicographically_gt_constraint): Correct lexicographically
785 judging.
786 * graphite-dependences.h: New.
787 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
788
7892009-06-24 Sebastian Pop <sebastian.pop@amd.com>
790
791 * graphite-clast-to-gimple.c (print_clast_stmt): New.
792 (gloog): Print to dump_file the generated clast.
793 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
794 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
795
7962009-06-24 Sebastian Pop <sebastian.pop@amd.com>
797
798 * graphite-poly.c (extend_scattering): Increment
799 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
800
8012009-06-24 Sebastian Pop <sebastian.pop@amd.com>
802
803 * graphite-interchange.c (compute_array_size_poly): Added exit of
804 recursion condition. Continue iterating even after the first equality.
805 (compute_array_size): Same.
806
8072009-06-24 Li Feng <nemokingdom@gmail.com>
808
809 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
810 -fdump-tree-final_cleanup to -fdump-tree-optimized.
811 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
812 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
813 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
814
8152009-06-23 Sebastian Pop <sebastian.pop@amd.com>
816
817 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
818 only when the use verifies is_gimple_reg.
819
8202009-06-23 Sebastian Pop <sebastian.pop@amd.com>
821
822 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
823 Allocate scaldims after call to unify_scattering_dimensions.
824
8252009-06-23 Sebastian Pop <sebastian.pop@amd.com>
826
827 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
828
8292009-06-23 Sebastian Pop <sebastian.pop@amd.com>
830 Albert Cohen <albert.cohen@inria.fr>
831
832 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
833 variables for the strip mining.
834
8352009-06-23 Sebastian Pop <sebastian.pop@amd.com>
836 Pranav Garg <pranav.garg2107@gmail.com>
837
838 * Makefile.in (OBJS-common): Added graphite-blocking.o.
839 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
840 (graphite-blocking.o): New rule.
841 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
842 * graphite-blocking.c: New.
843 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
844 flag_loop_strip_mine.
845 (psct_scattering_dim_for_loop_depth): New.
846 * graphite-poly.h (scop_do_strip_mine): Declared.
847 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
848 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
849 flag_loop_strip_mine.
850
8512009-06-23 Sebastian Pop <sebastian.pop@amd.com>
852
853 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
854 a GMP value and a PPL coefficient at each iteration of a loop.
855
8562009-06-23 Sebastian Pop <sebastian.pop@amd.com>
857
858 * graphite-dependences.c (dependence_polyhedron): Do not use
859 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
860 pbb_nb_scattering_transform.
861 (graphite_legal_transform_dr): Same.
862 * graphite-poly.c (extend_scattering): Same.
863 (unify_scattering_dimensions): Same.
864 (print_scattering_function): Same.
865 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
866 PBB_NB_LOCAL_VARIABLES.
867 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
868 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
869 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
870 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
871 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
872 (pbb_nb_scattering_transform): New.
873 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
874 (psco_scattering_dim): Add assert on parameters.
875 (psct_scattering_dim): Same.
876 (psct_scattering_dim_for_loop_depth): Declared.
877 (psct_local_var_dim): New.
878 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
879 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
880 correct layout, call pbb_nb_local_vars.
881 (psct_add_local_variable, psct_add_scattering_dimension): New.
882 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
883 Initialize PBB_NB_SCATTERING_TRANSFORM.
884
8852009-06-23 Sebastian Pop <sebastian.pop@amd.com>
886
887 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
888 (set_coef): Renamed ppl_set_coef.
889 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
890
8912009-06-23 Sebastian Pop <sebastian.pop@amd.com>
892
893 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
894 test a boolean against 1.
895 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
896 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
897 (pbb_do_interchange): Returns true when a transform has been performed.
898 (scop_do_interchange): Same.
899 * graphite-poly.c (apply_poly_transforms): Use the return value of
900 scop_do_interchange.
901 * graphite-poly.h (scop_do_interchange): Update declaration.
902
9032009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
904
905 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
906 after last use.
907 * sese.c (sese_reset_aux_in_loops): New.
908 * sese.h (sese_reset_aux_in_loops): New.
909
9102009-06-19 Sebastian Pop <sebastian.pop@amd.com>
911
912 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
913 multiplier and multiply the constant by the multiplier.
914 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
915 (build_poly_dr): Do not use the multiplier to define the subscript.
916
9172009-06-19 Sebastian Pop <sebastian.pop@amd.com>
918
919 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
920 compiler's data reference. Initialize PDR_CDR.
921 (print_pdr): Call dump_data_reference.
922 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
923 Add compiler_dr field.
924 (PDR_BB): Renamed PDR_PBB.
925 (PDR_CDR): New.
926 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
927 GCC's data reference representation.
928 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
929 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
930
9312009-06-19 Sebastian Pop <sebastian.pop@amd.com>
932
933 * graphite-poly.c (print_scattering_function): Also print the layout.
934 * graphite-poly.h (pbb_nb_local_vars): New.
935
9362009-06-19 Sebastian Pop <sebastian.pop@amd.com>
937
938 * graphite-poly.c (print_pbb_domain): Also print the layout names.
939
9402009-06-19 Sebastian Pop <sebastian.pop@amd.com>
941
942 * graphite-poly.c (print_pdr, debug_pdr): New.
943 * graphite-poly.h (print_pdr, debug_pdr): Declared.
944 (PDR_BASE): Removed.
945
9462009-06-18 Sebastian Pop <sebastian.pop@amd.com>
947
948 * gcc/testsuite/gcc.dg/graphite/interchange-{1..7}.c: New avatars of
949 ltrans-{1..6,8}.c.
950
9512009-06-18 Sebastian Pop <sebastian.pop@amd.com>
952
953 * graphite-interchange.c (compute_subscript): Allow also -1 in the
954 subscript identification column.
955 (pbb_do_interchange): Print to dump_file that some loops "will be
956 interchanged". Rely on that chain of characters in the testcases.
957 * gcc.dg/graphite/interchange-0.c: New.
958 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
959 interchange-*.c files and compile them with -floop-interchange.
960
9612009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
962
963 * graphite-interchange.c (interchange_profitable_p): Renamed
964 pbb_interchange_profitable_p.
965
9662009-06-18 Sebastian Pop <sebastian.pop@amd.com>
967 Harsha Jagasia <harsha.jagasia@amd.com>
968 Pranav Garg <pranav.garg2107@gmail.com>
969
970 * graphite-interchange.c (interchange_profitable_p): Make static.
971 (pbb_interchange_loop_depths, pbb_do_interchange,
972 scop_do_interchange): New.
973 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
974 for flag_loop_interchange.
975 * graphite-poly.h (scop_do_interchange): Declared.
976 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
977 flag_loop_interchange is used.
978
9792009-06-18 Sebastian Pop <sebastian.pop@amd.com>
980
981 * graphite-dependences.c (dependence_polyhedron): Update use of
982 pbb_nb_scattering_dims.
983 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
984 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
985 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
986 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
987
9882009-06-16 Sebastian Pop <sebastian.pop@amd.com>
989
990 * graphite.c: Cleanup foo.
991
9922009-06-16 Sebastian Pop <sebastian.pop@amd.com>
993
994 * Merge from mainline (r143684:148293).
995 * Disabled libpcp until it gets fixed.
996
9972009-06-05 Sebastian Pop <sebastian.pop@amd.com>
998 Harsha Jagasia <harsha.jagasia@amd.com>
999
1000 * graphite-interchange.c: New.
1001 * Makefile.in (graphite-interchange.o): New.
1002 * graphite-poly.h (interchange_profitable_p): Declared.
1003 * graphite-ppl.h (value_max): New.
1004
10052009-06-04 Sebastian Pop <sebastian.pop@amd.com>
1006
1007 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
1008 * graphite-poly.h: Fix some comments.
1009 (pdr_dim): New.
1010 (pdr_scop): New.
1011
10122009-06-04 Sebastian Pop <sebastian.pop@amd.com>
1013
1014 * graphite-poly.h
1015 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
1016 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
1017 (pdr_accessp_nb_params): Renamed pdr_nb_params.
1018 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
1019 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
1020 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
1021 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
1022 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
1023 * graphite-clast-to-gimple.c: Same.
1024 * graphite-dependences.c: Same.
1025 * graphite-poly.c: Same.
1026 * graphite-sese-to-poly.c: Same.
1027
10282009-06-03 Sebastian Pop <sebastian.pop@amd.com>
1029
1030 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
1031 expressions for an IV rename, as returned by clast_to_gcc_expression.
1032 (copy_renames): Rename new_name to expr.
1033 * sese.c (debug_rename_elt): Same.
1034 (get_rename): Same.
1035 (set_rename): Same.
1036 (sese_adjust_liveout_phis): Call force_gimple_operand before using
1037 the information from the rename map.
1038 (rename_variables_in_stmt): Same.
1039 (add_loop_exit_phis): Rename new_name to expr.
1040 (insert_loop_close_phis): Same.
1041 (add_guard_exit_phis): Same. Call force_gimple_operand.
1042 * sese.h (struct rename_map_elt): Rename new_name to expr.
1043 (new_rename_map_elt): Same.
1044
10452009-06-03 Sebastian Pop <sebastian.pop@amd.com>
1046
1047 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
1048 * sese.c (set_rename): Make it extern.
1049 * sese.h (set_rename): Declared.
1050
10512009-06-03 Sebastian Pop <sebastian.pop@amd.com>
1052
1053 * graphite-poly.c (extend_scattering): Free values.
1054 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
1055 Free iterators.
1056 (ppl_print_powerset_matrix): Same.
1057 * graphite-scop-detection.c (free_scops_1): New.
1058 (limit_scops): Call free_scops_1.
1059 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
1060 (build_poly_dr): Free PPL coefficients.
1061 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
1062
10632009-06-02 Sebastian Pop <sebastian.pop@amd.com>
1064
1065 * graphite-dependences.c: New.
1066 * graphite-data-ref.c: Removed.
1067 * graphite-data-ref.h: Removed.
1068 * Makefile.in (graphite-data-ref.o): Removed.
1069 (graphite-dependences.o): Added.
1070 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
1071 * graphite-poly.c: Same.
1072 Move the data dependence testing to graphite-dependences.c.
1073
10742009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
1075
1076 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
1077 from graphite_cannot_represent_loop. Code refactored.
1078 (scopdet_basic_block_info): Call graphite_can_represent_loop.
1079
10802009-05-17 Li Feng <nemokingdom@gmail.com>
1081
1082 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
1083 Cover all the testcases (not only the filtered ones).
1084
10852009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
1086
1087 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
1088 unnecessary check. Update comments. Move check for REAL_TYPE here.
1089 (harmful_stmt_in_bb): Remove checks for conditions. This is already
1090 done in (stmt_simple_for_scop_p).
1091
10922009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
1093
1094 * graphite.c (print_global_statistics): New.
1095 (print_graphite_scop_statistic): New.
1096 (print_graphite_statistics): New.
1097 (graphite_initialize, graphite_transform_loops): Print statistics.
1098 * graphite-scop-detection (build_scops): Print statistics.
1099 (print_graphite_scop_statistics): New.
1100 (print_graphite_statistics): New.
1101
11022009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1103
1104 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
1105 (debug_clast_name_index): Removed.
1106 (debug_clast_name_indexes_1): Removed.
1107 (debug_clast_name_indexes): Removed.
1108 (clast_name_index_elt_info): Removed.
1109 (eq_clast_name_indexes): Removed.
1110 (clast_name_to_index): Removed.
1111 (new_clast_name_index): Removed.
1112 (save_clast_name_index): Removed.
1113 (save_var_name): Moved...
1114 (init_sese_params_index): Removed.
1115 (clast_name_to_gcc): Remove use of name_tree.
1116 (initialize_cloog_names): Same.
1117 (gloog): Do not call init_sese_params_index.
1118 * graphite-sese-to-poly.c (save_var_name): ...here.
1119 (parameter_index_in_region): New.
1120 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
1121 (parameter_index_in_region): Removed.
1122 (is_parameter): Remove use of name_tree.
1123 * sese.h (struct name_tree): Removed.
1124 (struct sese): Remove use of name_tree. New field params_names.
1125 (SESE_PARAMS_NAMES): New.
1126 (SESE_PARAMS): Remove duplicate.
1127 (parameter_index_in_region): Removed.
1128 (sese_nb_params): Remove use of name_tree.
1129 (struct clast_name_index): New.
1130 (new_clast_name_index): New.
1131 (clast_name_to_index): New.
1132 (save_clast_name_index): New.
1133 (debug_clast_name_index): New.
1134 (debug_clast_name_indexes_1): New.
1135 (debug_clast_name_indexes): New.
1136 (clast_name_index_elt_info): New.
1137 (eq_clast_name_indexes): New.
1138
11392009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1140
1141 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
1142 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
1143 (graphite_loop_normal_form): Do not pass region. Do not
1144 initialize SESE_OLDIVS.
1145 (build_graphite_loop_normal_form): Update call to
1146 graphite_loop_normal_form.
1147 * sese.c (debug_oldivs): Removed.
1148 (new_sese): Do not initialize SESE_OLDIVS.
1149 (free_sese): Do not free SESE_OLDIVS.
1150 (oldiv_for_loop): Removed.
1151 * sese.h (struct sese): Remove old_ivs.
1152 (SESE_OLDIVS): Removed.
1153 (oldiv_for_loop): Removed.
1154
11552009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1156
1157 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
1158 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
1159 replaced by a call to newivs_to_depth_to_newiv.
1160 (clast_to_gcc_expression): Pass newivs, remove ivstack.
1161 (clast_to_gcc_expression_red): Same.
1162 (gcc_type_for_clast_expr): Same.
1163 (gcc_type_for_clast_eq): Same.
1164 (graphite_translate_clast_equation): Same.
1165 (graphite_create_guard_cond_expr): Same.
1166 (graphite_create_new_guard): Same.
1167 (graphite_create_new_loop): Same.
1168 (build_iv_mapping): Same.
1169 (translate_clast): Same.
1170 (gloog): Same.
1171 (loop_iv_stack_patch_for_consts): Removed. *
1172 sese.c (iv_stack_entry_is_constant): Removed.
1173 (iv_stack_entry_is_iv): Removed.
1174 (loop_iv_stack_push_iv): Removed.
1175 (loop_iv_stack_insert_constant): Removed.
1176 (loop_iv_stack_pop): Removed.
1177 (loop_iv_stack_get_iv): Removed.
1178 (loop_iv_stack_get_iv_from_name): Removed.
1179 (debug_loop_iv_stack): Removed.
1180 (free_loop_iv_stack): Removed.
1181 (loop_iv_stack_remove_constants): Removed. *
1182 sese.h (iv_stack_entry_kind): Removed.
1183 (iv_stack_entry_data_union): Removed.
1184 (iv_stack_entry_struct): Removed.
1185 (iv_stack_entry_p): Removed.
1186 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
1187 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
1188 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
1189 loop_iv_stack_pop, free_loop_iv_stack): Removed.
1190 (gbb_loop_at_index): Fix indenting.
1191 (gbb_loop_index): Removed.
1192
11932009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1194
1195 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
1196 Call clast_name_to_index.
1197
11982009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1199
1200 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
1201 do not pass params. Get params from SESE_PARAMS.
1202 (clast_to_gcc_expression): Same.
1203 (clast_to_gcc_expression_red): Same.
1204 (gcc_type_for_clast_eq): Same.
1205 (graphite_translate_clast_equation): Same.
1206 (graphite_create_new_loop): Same.
1207 * sese.c (rename_variables_in_stmt): Fix comment.
1208
12092009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1210
1211 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
1212 newivs_index.
1213 Call save_clast_name_index.
1214 (translate_clast): Pass newivs_index.
1215 (gloog): Create and free newivs_index.
1216
12172009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1218
1219 * graphite-clast-to-gimple.c (clast_name_index): New structure.
1220 (clast_name_index_p): New type.
1221 (debug_clast_name_index): New.
1222 (debug_clast_name_indexes_1): New.
1223 (debug_clast_name_indexes): New.
1224 (clast_name_index_elt_info): New.
1225 (eq_clast_name_indexes): New.
1226 (clast_name_to_index): New.
1227 (new_clast_name_index): New.
1228 (save_clast_name_index): New.
1229 (init_sese_params_index): New.
1230 (gloog): Call init_sese_params_index.
1231 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
1232 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
1233 (free_sese): Free SESE_PARAMS_INDEX.
1234 * sese.h (struct sese): Add params_index.
1235 (SESE_PARAMS_INDEX): New.
1236
12372009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1238
1239 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
1240 (graphite_create_new_loop): Pass the newivs vector. Push the
1241 newly created IV to newivs.
1242 (translate_clast): Pass the newivs vector.
1243 (gloog): Create and destroy the newivs vector.
1244
12452009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1246
1247 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
1248 (graphite_loop_normal_form): Initialize loop->aux with the unique
1249 IV that has been created.
1250
12512009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
1252
1253 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
1254 scev with parameters in the base part. They where forbidden
1255 exidently.
1256
12572009-05-11 Li Feng <nemokingdom@gmail.com>
1258
1259 * testsuite/gcc.dg/graphite/graphite.exp: Set different default
1260 compile options by file names.
1261 * testsuite/gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
1262 * testsuite/gcc.dg/graphite/id-{1-9}.c: Ditto.
1263 * testsuite/gcc.dg/graphite/scop-{0-20}.c: Ditto.
1264 * testsuite/gcc.dg/graphite/scop-matmult.c: Ditto.
1265
12662009-05-08 Li Feng <nemokingdom@gmail.com>
1267
1268 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
1269 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
1270 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
1271 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
1272
12732009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
1274
1275 * graphite-scop-detection (build_scops_1): Fix little bug introduced
1276 by final cleanup.
1277
12782009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
1279
1280 * graphite-scop-detection.c (graphite_can_represent_scev): Only
1281 allow integer constant strides.
1282 (graphite_can_represent_expr): Depend on outermost_loop.
1283 (stmt_simple_memref_p, graphite_cannot_represent_loop,
1284 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
1285 build_scops_1): Same.
1286 (scopdet_basic_block_info): Same and insert layered SCoP
1287 detection.
1288 (try_generate_gimple_bb): Cleanup.
1289 (build_scops): Enable data references.
1290
1291 * testsuite/gcc.dg/graphite/id-5.c: New.
1292 * testsuite/gcc.dg/graphite/id-9.c: New.
1293 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
1294 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
1295
12962009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1297
1298 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
1299 that we have not yet built for this SCoP.
1300
13012009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1302
1303 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
1304 for complex numbers.
1305
13062009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1307
1308 * graphite-ppl.c: Fix build if cloog is not available.
1309
13102009-05-04 Li Feng <nemokingdom@gmail.com>
1311
1312 * tree-parloops.c (loop_parallel_p): Remove construction of
1313 NITER and REDUCTION_LIST.
1314 (try_get_loop_niter): New.
1315 (try_create_reduction_list): New.
1316 (parallelize_loops): Bypass the failed checkings in autopar
1317 when can_be_parallel in loop structure is set to true.
1318
13192009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
1320
1321 * testsuite/gcc.dg/graphite/id-6.c: Update testcase.
1322 * testsuite/gcc.dg/graphite/scop-3.c: Dito.
1323
13242009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
1325
1326 * graphite-scop-detection.c (stmt_simple_for_scop_p):
1327 Enable EQ_EXPR and NE_EXPR again.
1328
13292009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
1330
1331 * graphite-scop-detection.c (graphite_can_represent_scev):
1332 Add check if scev is affine multivariate.
1333 (harmful_stmt_in_bb): Check if we can represent the conditions.
1334 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
1335 harmful_stmt_in_bb.
1336 * testsuite/gcc.dg/graphite/id-7.c: New.
1337
13382009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
1339
1340 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
1341 Check all bbs in region, not only the bbs that are represented in
1342 GRAPHITE.
1343 (build_poly_scop): Add newline.
1344 * testsuite/gcc.dg/graphite/id-8.c: New.
1345
13462009-04-30 Li Feng <nemokingdom@gmail.com>
1347
1348 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
1349 when loop initialize.
1350 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
1351 * common.opt: Declare flag_graphite_force_parallel.
1352 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
1353 loop parallel.
1354 * graphite-poly.c (apply_poly_transforms): Introduce
1355 flag_graphite_force_parallel.
1356 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
1357 * toplev.c (process_options): ditto and replace a not correctly
1358 encoded space.
1359
13602009-04-30 Li Feng <nemokingdom@gmail.com>
1361
1362 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
1363 Change the call of gbb_loop_at_index and/or gbb_loop_index due
1364 to the redefinition.
1365 (compute_cloog_iv_types_1): ditto.
1366 (build_iv_mapping): ditto.
1367 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
1368 initialization.
1369 (free_gimple_bb): Removed GBB_LOOPS related free part.
1370 (build_bb_loops): Removed.
1371 * sese.h (struct gimple_bb): Removed loops.
1372 (GBB_LOOPS): Removed.
1373 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
1374 (gbb_loop_index): ditto.
1375
13762009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1377
1378 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
1379 allow non constant strides.
1380 * testsuite/gcc.dg/graphite/scop-20.c: New.
1381
13822009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1383
1384 * graphite-scop-detection.c (dot_all_scops): Fix system call
1385 return value warning.
1386 (dot_scop): Same.
1387
13882009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1389
1390 * testsuite/gcc.dg/graphite/id-6.c: Fix pattern.
1391 * testsuite/gcc.dg/graphite/scop-3.c: Same.
1392
13932009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1394
1395 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
1396 build_pairwise_constraint, dr_equality_constraints,
1397 build_pairwise_scheduling_equality,
1398 build_pairwise_scheduling_inequality, lexicographically_gt_p,
1399 build_lexicographically_gt_constraint, dependence_polyhedron,
1400 graphite_legal_transform_dr, graphite_legal_transform_bb,
1401 graphite_legal_transform): New.
1402 * graphite-poly.h (graphite_legal_transform): Declared.
1403 * graphite-sese-to-poly.c (build_poly_scop): Call to
1404 graphite_legal_transform is disabled for the moment.
1405
14062009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1407
1408 * graphite-poly.h (pbb_nb_scattering_dims): New.
1409 (pbb_nb_scattering): Use it.
1410
14112009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1412
1413 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
1414 Pointset_Powerset version of ppl_insert_dimensions.
1415 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
1416
14172009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1418
1419 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
1420
14212009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1422
1423 * graphite-poly.h: Fix comment.
1424
14252009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1426
1427 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
1428
14292009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1430
1431 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
1432 statements.
1433
14342009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1435
1436 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
1437 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
1438 conditions.
1439
14402009-04-20 Sebastian Pop <sebastian.pop@amd.com>
1441
1442 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
1443 handle EQ_EXPR and NE_EXPR.
1444
14452009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
1446
1447 * graphite-poly.h (poly_dr): Fix comment.
1448
14492009-04-09 Sebastian Pop <sebastian.pop@amd.com>
1450 Tobias Grosser <grosser@fim.uni-passau.de>
1451
1452 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
1453 with a zero dimension polyhedron.
1454 (find_scop_parameters): Move the call to scop_set_nb_params here.
1455 (build_loop_iteration_domains): Store in loop->aux the iteration
1456 domain polyhedron.
1457 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
1458 by any loop in scop.
1459 (build_poly_scop): Do not call scop_set_nb_params.
1460
14612009-04-09 Sebastian Pop <sebastian.pop@amd.com>
1462 Tobias Grosser <grosser@fim.uni-passau.de>
1463
1464 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
1465 add_condition_to_domain not GT_EXPR.
1466
14672009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1468
1469 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
1470 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
1471 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
1472 upper_bound_assign to calculate unions.
1473 * testsuite/gcc.dg/graphite/id-6.c: New.
1474
14752009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1476
1477 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
1478 handle abnormal edges.
1479
14802009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1481
1482 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
1483 (free_poly_bb): Also free poly_drs.
1484 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
1485 (poly_dr): Polyhedron to Pointset_Powerset.
1486 (pdr_accessp_nb_subscripts): Same.
1487 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
1488 poly_drs.
1489
14902009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1491
1492 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
1493 names into more meaningful names.
1494
14952009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1496
1497 * testsuite/gfortran.dg/graphite/interchange-1.c: New.
1498 * testsuite/gfortran.dg/graphite/interchange-2.c: New.
1499
15002009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1501
1502 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
1503 the reduction_list.
1504 * tree-parloops.c (rewrite_phi_with_iv): New.
1505 (rewrite_all_phi_nodes_with_iv): New.
1506 (canonicalize_loop_ivs): Call them.
1507
15082009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1509
1510 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
1511 graphite_find_data_references_in_stmt.
1512 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
1513 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
1514
15152009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1516
1517 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
1518
15192009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1520
1521 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
1522 instead of bb_in_region.
1523 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
1524 (build_sese_conditions): Use flag_bb_in_sese.
1525 * sese.c (register_bb_in_sese): Removed.
1526 (new_sese): Remove initialization of SESE_REGION_BBS.
1527 (free_sese): Do not free SESE_REGION_BBS.
1528 * sese.h (struct sese): Remove field region_basic_blocks.
1529 (SESE_REGION_BBS): Removed.
1530 (bb_in_sese_p): Implement in function of bb_in_region.
1531
15322009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1533
1534 * graphite-scop-detection.c (limit_scops): Deal only with single exit
1535 loops.
1536
15372009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
1538
1539 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
1540 and EQ_EXPR.
1541 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
1542 (add_condition_to_domain): New.
1543 (add_condition_to_pbb): New.
1544 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
1545 * testsuite/gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
1546
15472009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
1548
1549 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
1550 ppl_Pointset_Powerset.
1551 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
1552 * graphite-poly.h (poly_bb): poly_bb.domain Same.
1553 (pbb_nb_loops): Same.
1554 * graphite-sese-to-poly.c (build_loop_iteration_domains,
1555 add_conditions_to_domain): Same.
1556 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
1557 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
1558 ppl_const_Polyhedron_t.
1559 (ppl_print_powerset_matrix): New.
1560 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
1561 ppl_print_powerset_matrix): New.
1562 (ppl_print_polyhedron_matrix): Updated.
1563
15642009-04-07 Sebastian Pop <sebastian.pop@amd.com>
1565
1566 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
1567
15682009-04-07 Sebastian Pop <sebastian.pop@amd.com>
1569
1570 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
1571 (print_iteration_domains, debug_iteration_domain,
1572 debug_iteration_domains): New.
1573 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
1574 debug_iteration_domains): Declared.
1575 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
1576 indenting.
1577
15782009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
1579 Sebastian Pop <sebastian.pop@amd.com>
1580
1581 * graphite-poly.h (print_iteration_domain): New.
1582 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
1583 (build_sese_conditions_1, build_sese_conditions_after,
1584 build_sese_conditions_before): New.
1585 (build_sese_conditions): Rewritten.
1586
15872009-04-03 Sebastian Pop <sebastian.pop@amd.com>
1588 Tobias Grosser <grosser@fim.uni-passau.de>
1589
1590 Cleanup of code generation liveouts.
1591 * graphite-clast-to-gimple.c (translate_clast): Use a single
1592 rename_map instead of one per translated statement.
1593 Do not use SESE_LIVEOUT_RENAMES.
1594 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
1595 (gloog): Do not use SESE_LIVEOUT_RENAMES.
1596 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
1597 phi node of a reduction: when a loop contains a reduction used outside
1598 the loop, there should be a scalar close phi node on the exit block.
1599 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
1600 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
1601 (free_sese): Do not free them.
1602 (sese_build_liveouts_use): Do not use them.
1603 (sese_build_liveouts_bb): Same.
1604 (sese_build_liveouts): Same.
1605 (sese_insert_phis_for_liveouts): Same.
1606 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
1607 (defined_in_loop_p): New.
1608 (alive_after_loop): New.
1609 (close_phi_not_yet_inserted_p): New.
1610 (struct alep, alep_p): New.
1611 (add_loop_exit_phis): Remove from the rename_map all the names defined
1612 in the code generated loop.
1613 (insert_loop_close_phis): Traverse the rename_map passed to it.
1614 Don't use SESE_LIVEOUT_RENAMES.
1615 (default_liveout_before_guard): Renamed default_before_guard.
1616 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
1617 (graphite_copy_stmts_from_block): Do not directly call set_rename.
1618 (register_sese_liveout_renames): Removed.
1619 (copy_bb_and_scalar_dependences): Do not call it.
1620 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
1621 reduction_list.
1622 (SESE_LIVEOUT): Removed.
1623 (SESE_LIVEOUT_RENAMES): Removed.
1624 (SESE_REDUCTION_LIST): Removed.
1625 (sese_build_liveouts): Removed.
1626 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
1627 (insert_loop_close_phis): Pass a htab_t instead of a sese.
1628 (insert_guard_phis): Same.
1629 (rename_map_elt): Declare a VEC of them.
1630 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
1631 trees not pointers to trees.
1632
1633 Rewrite in canonical close SSA form:
1634 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
1635 (limit_scops): Close the scop after the block containing the close phi
1636 nodes.
1637 (canonicalize_loop_closed_ssa): New.
1638 (canonicalize_loop_closed_ssa_form): New.
1639 (build_scops): Call canonicalize_loop_closed_ssa_form.
1640
1641 * graphite-sese-to-poly.c: Fix typos.
1642
16432009-04-03 Sebastian Pop <sebastian.pop@amd.com>
1644
1645 * graphite-poly.c (print_scattering_function, print_pbb_domain):
1646 Extended.
1647 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
1648 (print_pbb): Add conditions.
1649
16502009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
1651 Sebastian Pop <sebastian.pop@amd.com>
1652
1653 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
1654 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
1655 (build_scop_bbs_1): New.
1656 (build_scop_bbs): Rewrite.
1657 * sese.h (bb_in_region): New.
1658
16592009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1660
1661 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
1662 poly_drs vector.
1663 (print_scop): Style.
1664 * graphite-poly.h (poly_bb): Add drs vector.
1665 (PBB_DRS): Add accessor.
1666 * graphite-sese-to-poly.c (build_poly_dr): New.
1667 (build_pbb_drs, build_scop_drs): New.
1668 (build_poly_scop): call build_scop_drs (Disabled at the moment).
1669
16702009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1671
1672 * tree-ssa-loop.c: Include forgotten toplev.h
1673
16742009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1675
1676 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
1677 * testsuite/gcc.dg/graphite/pr37883.c: Remove -floop-*
1678 * testsuite/gcc.dg/graphite/pr37928.c: Same
1679 * testsuite/gcc.dg/graphite/pr38409.c: Same
1680 * testsuite/gcc.dg/graphite/pr38498.c: Same
1681 * testsuite/gcc.dg/graphite/pr38559.c: Same
1682 * testsuite/gcc.dg/graphite/pr39335.c: Same
1683 * testsuite/gcc.dg/graphite/pr39335_1.c: Same
1684 * testsuite/gfortran.dg/graphite/block-2.f: Same
1685 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
1686 with -floop-*.
1687
16882009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
1689
1690 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
1691 build_access_matrix, build_scop_data_accesses): Remove access function
1692 building. (We get a new version soon).
1693 (build_bb_loops, scan_tree_for_params_right_scev): Update.
1694 * sese.h (nb_loops_around_loop_in_sese): Remove.
1695 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
1696
16972009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
1698 Sebastian Pop <sebastian.pop@amd.com>
1699
1700 * graphite-scop-detection.c (struct scopdet_info): Rename last
1701 field to exit.
1702 (scopdet_basic_block_info, build_scops_1): Don't use
1703 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
1704
17052009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
1706 Sebastian Pop <sebastian.pop@amd.com>
1707
1708 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
1709 * sese.c (sese_build_liveouts_use): Renamed from
1710 sese_build_livein_liveouts_use. Remove liveins.
1711 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
1712 Call sese_build_liveouts_use.
1713 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
1714 Call sese_build_liveouts_bb.
1715 (new_sese, free_sese): Remove liveins.
1716 (sese_add_exit_phis_var): Deleted.
1717 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
1718 directly.
1719 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
1720
1721 * sese.h (sese): Remove num_ver and livein.
1722 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
1723
17242009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
1725
1726 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
1727
17282009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
1729
1730 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
1731 (build_scop_scattering): Do not use compare_prefix_loops any more.
1732 (nb_common_loops): New.
1733
17342009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1735
1736 * sese.c (get_new_name_from_old_name): Renamed get_rename.
1737 (register_old_and_new_names): Renamed set_rename.
1738
17392009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1740
1741 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
1742 of the decl from the previous commit.
1743
17442009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1745
1746 * graphite-scop-detection.c (dot_scop): New.
1747 * graphite-scop-detection.h (dot_scop): Declared.
1748
17492009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1750
1751 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
1752
17532009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1754
1755 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
1756 condition at the end of the loop.
1757 * graphite.c (graphite_initialize, graphite_finalize): Print to
1758 dump_file the compiled function.
1759 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
1760 of create_empty_loop_on_edge.
1761 (translate_clast): Update the code generation of loops for the new
1762 shape of loops.
1763 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
1764
17652009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1766
1767 Reverted the patch from 2009-03-19.
1768
17692009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
1770
1771 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
1772 poly_drs vector.
1773 (print_scop): Style.
1774 * graphite-poly.h (poly_bb): Add drs vector.
1775 (PBB_DRS): Add accessor.
1776 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
1777 (build_access_matrix_with_af, build_access_matrix,
1778 build_scop_data_accesses): Delete.
1779 (build_poly_dr): New.
1780 (build_pbb_drs, build_scop_drs): New.
1781 (build_poly_scop): call build_scop_drs.
1782
17832009-03-13 Sebastian Pop <sebastian.pop@amd.com>
1784
1785 * graphite-scop-detection.c (dot_all_scops_1): Close the table
1786 once per basic block.
1787
17882009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
1789
1790 * graphite-scop-detection.c (graphite_can_represent_scev): New.
1791 (graphite_can_represent_expr): Renamed from loop_affine_expr
1792 and enhanced.
1793 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
1794 (graphite_cannot_represent_loop): Add scop_entry to parameters.
1795 (scopdet_basic_block_info): Actually define entry_block.
1796 (stmt_simple_memref_p): Moved here from ...
1797
1798 * tree-data-ref.c (stmt_simple_memref_p): here.
1799 * tree-data-ref.h (stmt_simple_memref_p): Removed.
1800
18012009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
1802
1803 * testsuite/gcc.dg/graphite/id-4.c: New.
1804
18052009-03-12 Sebastian Pop <sebastian.pop@amd.com>
1806
1807 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
1808 (register_old_and_new_names): Update the content of the map.
1809 When there was already a rename_map_elt in the map at that
1810 location, free it.
1811 (copy_bb_and_scalar_dependences): Do rename_variables after
1812 expand_scalar_variables.
1813 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
1814 of the map. When there was already a rename_map_elt in the
1815 map at that location, free it.
1816 (translate_clast): Pass the rename_map. Do not initialize and free
1817 a rename_map per stmt_user.
1818 (gloog): Initialize and free one rename_map and pass it to
1819 translate_clast.
1820
18212009-03-12 Sebastian Pop <sebastian.pop@amd.com>
1822
1823 * sese.c (expand_scalar_variables_stmt,
1824 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
1825 parameter.
1826 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
1827 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
1828 the gimple_stmt_iterator of the statement to be expanded.
1829 * graphite-scop-detection.c (is_simple_operand): Do handle
1830 REALPART_EXPR.
1831
18322009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
1833
1834 * graphite-scop-detection.c (is_simple_operand): Do not handle
1835 REALPART_EXPR.
1836 * testsuite/gcc.dg/graphite/id-2.c: New.
1837
1838 * graphite-sese-to-poly.c (build_bb_loops,
1839 add_value_to_dim, scan_tree_for_params_right_scev,
1840 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
1841 find_params_in_bb, build_loop_iteration_domains,
1842 add_conditions_to_domain): Remove subtract.
1843
18442009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
1845
1846 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
1847 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
1848 pbb_loop_at_index -> gbb_loop_at_index.
1849 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
1850 (debug_loop_vec): Delete.
1851 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
1852 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
1853 (PBB_LOOPS): Removed.
1854 (PBB_BLACK_BOX): Insert cast.
1855 (pbb_set_black_box): New setter.
1856 (pbb_loop_at_index, pbb_loop_index): Removed.
1857 (scop_set_region, scop_set_nb_params): New.
1858 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
1859 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
1860 (build_poly_scop): Use scop_set_nb_params.
1861 * sese.h (gimple_bb): Add LOOPS.
1862 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
1863
18642009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
1865
1866 Revert previous commit.
1867
18682009-03-11 Sebastian Pop <sebastian.pop@amd.com>
1869
1870 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
1871 (register_old_and_new_names): Update the content of the map.
1872 When there was already a rename_map_elt in the map at that
1873 location, free it.
1874 (copy_bb_and_scalar_dependences): Do rename_variables after
1875 expand_scalar_variables.
1876 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
1877 of the map. When there was already a rename_map_elt in the
1878 map at that location, free it.
1879 (translate_clast): Pass the rename_map. Do not initialize and free
1880 a rename_map per stmt_user.
1881 (gloog): Initialize and free one rename_map and pass it to
1882 translate_clast.
1883
18842009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
1885
1886 Remove forgotten line in revert.
1887
18882009-03-11 Sebastian Pop <sebastian.pop@amd.com>
1889
1890 Revert previous commit.
1891
18922009-03-10 Sebastian Pop <sebastian.pop@amd.com>
1893
1894 * sese.c (register_old_and_new_names): Update the content
1895 of the map. When there was already a rename_map_elt in the
1896 map at that location, free it.
1897 (copy_bb_and_scalar_dependences): Do rename_variables after
1898 expand_scalar_variables.
1899 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
1900 of the map. When there was already a rename_map_elt in the
1901 map at that location, free it.
1902 (translate_clast): Pass the rename_map. Do not initialize and free
1903 a rename_map per stmt_user.
1904 (gloog): Initialize and free one rename_map and pass it to
1905 translate_clast.
1906
19072009-03-10 Sebastian Pop <sebastian.pop@amd.com>
1908
1909 * graphite-clast-to-gimple.c (translate_clast): context_loop
1910 is never NULL.
1911
19122009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
1913 Sebastian Pop <sebastian.pop@amd.com>
1914
1915 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
1916 of the use of ppl_Polyhedron_map_space_dimensions.
1917
19182009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
1919 Sebastian Pop <sebastian.pop@amd.com>
1920
1921 * graphite-poly.c (unify_scattering_dimensions): Fix types.
1922 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
1923 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
1924 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
1925 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
1926 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
1927 pbb_nb_params): New.
1928 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
1929 nb_loops_around_pbb): Adapt return types.
1930
19312009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
1932
1933 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
1934 graphite-clast-to-gimple.o, graphite-data-ref.o,
1935 graphite-scop-detection.o, graphite-poly.o): Add
1936 more headers.
1937
19382009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
1939
1940 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
1941 graphite-clast-to-gimple.o, graphite-data-ref.o,
1942 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
1943
19442009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1945
1946 * testsuite/gcc.dg/graphite/pr37485.c: Remove -floop-block
1947 * testsuite/gcc.dg/graphite/pr37828.c: Same.
1948 * testsuite/gcc.dg/graphite/pr37684.c: Same.
1949 * testsuite/gcc.dg/graphite/block-0.c: Same.
1950 * testsuite/gcc.dg/graphite/block-1.c: Same.
1951 * testsuite/gcc.dg/graphite/block-2.c: Same.
1952 * testsuite/gcc.dg/graphite/block-3.c: Same.
1953 * testsuite/gcc.dg/graphite/block-4.c: Same.
1954 * testsuite/gcc.dg/graphite/block-5.c: Same.
1955 * testsuite/gcc.dg/graphite/block-6.c: Same.
1956 * testsuite/gfortran.dg/graphite/pr38083.f90: Same.
1957 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
1958 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
1959 * testsuite/gfortran.dg/graphite/pr37852.f90: Same.
1960 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
1961 * testsuite/gfortran.dg/graphite/pr37980.f90: Same.
1962 * testsuite/gfortran.dg/graphite/pr38953.f90: Same.
1963 * testsuite/gfortran.dg/graphite/pr37857.f90: Same.
1964 * opts.c: Remove -floop-block from -O2.
1965 * graphite-poly.c: Fail if -floop-block -floop-interchange or
1966 -floop-strip-mine are used.
1967
19682009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1969 Sebastian Pop <sebastian.pop@amd.com>
1970
1971 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
1972 dimensions.
1973 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
1974 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
1975 strip_mine_profitable_p, is_interchange_valid,
1976 graphite_trans_bb_block, graphite_trans_loop_block,
1977 graphite_trans_scop_block): Temporary removed.
1978 (extend_scattering, unify_scattering_dimensions): New.
1979 (print_scattering_function, graphite_read_transforms):
1980 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
1981 (graphite_generate_scattering_fns): Removed.
1982 (apply_poly_transforms): Cleanup.
1983 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
1984 (schedule_to_scattering): Moved.
1985 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
1986 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
1987 (pbb_nb_scattering): New.
1988 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
1989 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
1990 Removed.
1991 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
1992 shift_poly.
1993 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
1994 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
1995 -> PBB_TRANSFORMED_SCATTERING.
1996 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
1997 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
1998 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
1999 (check_poly_representation): Do not return bool.
2000 (graphite_transform_loops): Reformat.
2001 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
2002
20032009-03-04 Sebastian Pop <sebastian.pop@amd.com>
2004
2005 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
2006 debug_pbb_domain, debug_pbb, debug_scop): New.
2007 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
2008 debug_pbb_domain, debug_pbb, debug_scop): Declared.
2009
20102009-03-02 Sebastian Pop <sebastian.pop@amd.com>
2011
2012 PR middle-end/39335
2013 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
2014 when the type precision of the induction variable should be
2015 larger than the type precision of nit.
2016 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
2017 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
2018 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
2019
2020 * testsuite/gcc.dg/graphite/pr39335_1.c: New.
2021 * testsuite/gcc.dg/graphite/pr39335.c: New.
2022
20232009-03-02 Sebastian Pop <sebastian.pop@amd.com>
2024
2025 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
2026 SSA_NAMES not struct reduction_info.
2027
20282009-03-02 Sebastian Pop <sebastian.pop@amd.com>
2029
2030 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
2031
20322009-02-27 Sebastian Pop <sebastian.pop@amd.com>
2033 Tobias Grosser <grosser@fim.uni-passau.de>
2034
2035 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
2036 (free_sese): Free SESE_REDUCTION_LIST.
2037 * sese.h (struct sese): Add field reduction_list.
2038 (SESE_REDUCTION_LIST): New.
2039 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
2040 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
2041
20422009-02-27 Sebastian Pop <sebastian.pop@amd.com>
2043 Tobias Grosser <grosser@fim.uni-passau.de>
2044
2045 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
2046 of loop_p.
2047
20482009-02-27 Sebastian Pop <sebastian.pop@amd.com>
2049 Tobias Grosser <grosser@fim.uni-passau.de>
2050
2051 * tree-parloops.c (struct brli, build_reduction_list_info,
2052 analyze_reduction_list, gather_scalar_reductions): New.
2053 (loop_parallel_p): Build a reduction list containing only
2054 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
2055 (gen_parallel_loop): Call the analysis analyze_reduction_list.
2056 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
2057 * tree-flow.h (gather_scalar_reductions): Declared.
2058
20592009-02-26 Sebastian Pop <sebastian.pop@amd.com>
2060
2061 PR middle-end/39308
2062 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
2063 number_of_iterations_exit from a gcc_assert.
2064
20652009-02-25 Sebastian Pop <sebastian.pop@amd.com>
2066 Jan Sjodin <jan.sjodin@amd.com>
2067
2068 * output.h (graphite_out_file, graphite_in_file): Declared.
2069 * toplev.c (graphite_out_file, graphite_in_file): New.
2070 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
2071 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
2072 Don't call schedule_to_scattering.
2073 * common.opt (fgraphite-write, fgraphite-read): New.
2074 * graphite-poly.c: Include output.h.
2075 (print_scattering_function, print_scattering_functions,
2076 debug_scattering_function, debug_scattering_functions,
2077 graphite_write_transforms, graphite_read_transforms,
2078 graphite_generate_scattering_fns): New.
2079 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
2080 Call graphite_generate_scattering_fns, graphite_write_transforms,
2081 graphite_read_transforms.
2082 (new_poly_bb): Initialize PBB_SCATTERING.
2083 (free_poly_bb): Free PBB_SCATTERING.
2084 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
2085 * graphite-poly.h (struct poly_bb): Add field scattering.
2086 (PBB_SCATTERING): New.
2087 (print_scattering_function, print_scattering_functions,
2088 debug_scattering_function, debug_scattering_functions): Declared.
2089 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
2090 GMP values, not integers!
2091 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
2092 ppl_read_polyhedron_matrix): New.
2093 * graphite-ppl.h (ppl_print_polyhedron_matrix,
2094 debug_ppl_polyhedron_matrix,
2095 ppl_read_polyhedron_matrix): Declared.
2096 * Makefile.in (graphite-poly.o): Depends on output.h.
2097
20982009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2099 Tobias Grosser <grosser@fim.uni-passau.de>
2100
2101 Revert this change:
2102 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
2103 scalar evolutions in the scop_entry->loop_father.
2104
21052009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2106 Tobias Grosser <grosser@fim.uni-passau.de>
2107
2108 * graphite.h (ref_nb_loops): Remove declaration.
2109 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
2110 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
2111 debug_gbb): Moved to sese.h.
2112 * sese.h: As said.
2113
21142009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2115 Tobias Grosser <grosser@fim.uni-passau.de>
2116
2117 * graphite-data-ref.[ch]: Disable.
2118
21192009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2120 Tobias Grosser <grosser@fim.uni-passau.de>
2121
2122 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
2123 scalar evolutions in the scop_entry->loop_father.
2124
21252009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2126
2127 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
2128 (graphite_cannot_represent_loop_niter): Renamed
2129 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
2130 (limit_scops): build_sese_loop_nests does not return a bool.
2131 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
2132 * sese.c (nb_reductions_in_loop): ... from here.
2133 (graphite_loop_normal_form): ... from here.
2134 (sese_record_loop): Does not fail, so does not return a bool.
2135 (build_sese_loop_nests): Same.
2136 * sese.h (build_sese_loop_nests): Update declaration.
2137 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
2138 (build_graphite_loop_normal_form): New.
2139 (gloog): Call build_graphite_loop_normal_form.
2140 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
2141 build_sese_loop_nests.
2142
2143 * testsuite/gcc.dg/graphite/id-1.c: New.
2144
21452009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2146 Tobias Grosser <grosser@fim.uni-passau.de>
2147
2148 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
2149 The SCoP detection fix is sufficient.
2150
21512009-02-21 Sebastian Pop <sebastian.pop@amd.com>
2152
2153 PR tree-optimization/39260
2154 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
2155 the basic block contains a condition with a real type.
2156 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
2157
2158 * gcc.dg/graphite/pr39260.c: New.
2159
21602009-02-21 Sebastian Pop <sebastian.pop@amd.com>
2161
2162 * graphite-poly.c: Inlcude params.h.
2163 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
2164 the size of a tile.
2165 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
2166 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
2167
21682009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2169 Tobias Grosser <grosser@fim.uni-passau.de>
2170
2171 * graphite-scop-detection.c (dot_all_scops_1,
2172 dot_all_scops): Moved here.
2173 * graphite-scop-detection.h (dot_all_scops): Declared here.
2174 * graphite.c (graphite_initialize, graphite_finalize): New.
2175 (graphite_transform_loops): Cleaned up.
2176 * sese.c (debug_oldivs): Moved here.
2177 * graphite-poly.c (graphite_apply_transformations): Renamed
2178 apply_poly_transforms.
2179 (debug_loop_vec): Moved here.
2180 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
2181 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
2182 find_scop_parameters, build_scop_iteration_domain,
2183 add_conditions_to_constraints, build_scop_canonical_schedules,
2184 build_scop_data_accesses): Now static.
2185 (build_poly_scop, check_poly_representation): New.
2186
21872009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2188
2189 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
2190 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
2191 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
2192 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
2193 scan_tree_for_params_right_scev, scan_tree_for_params_int,
2194 scan_tree_for_params, struct irp_data, dx_record_params,
2195 find_params_in_bb, find_scop_parameters, gbb_from_bb,
2196 build_loop_iteration_domains, add_conditions_to_domain,
2197 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
2198 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
2199 build_sese_conditions, add_conditions_to_constraints,
2200 build_scop_iteration_domain, build_access_matrix_with_af,
2201 build_access_matrix,
2202 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
2203
2204 * graphite-sese-to-poly.c: New.
2205 * graphite-sese-to-poly.h: New.
2206
2207 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
2208
22092009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2210
2211 * graphite.c: Split graphite code generation to a new file.
2212 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
2213 max_precision_type, clast_to_gcc_expression_red,
2214 clast_to_gcc_expression, gcc_type_for_clast_expr,
2215 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
2216 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
2217 graphite_create_new_guard, clast_get_body_of_loop,
2218 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
2219 graphite_create_new_loop, build_iv_mapping, copy_renames,
2220 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
2221 compute_cloog_iv_types, free_scattering, save_var_name,
2222 initialize_cloog_names, build_scop_context, build_cloog_prog,
2223 set_cloog_options, debug_clast_stmt, scop_to_clast,
2224 print_generated_program, debug_generated_program,
2225 gloog): Moved to graphite-clast-to-gimple.c.
2226
2227 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
2228
2229 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
2230 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
2231 loop_iv_stack_pop, loop_iv_stack_get_iv,
2232 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
2233 free_loop_iv_stack, loop_iv_stack_remove_constants,
2234 debug_rename_elt, debug_rename_map_1, debug_rename_map,
2235 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
2236 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
2237 eq_ivtype_map_elts, sese_add_exit_phis_edge,
2238 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
2239 get_vdef_before_sese, sese_adjust_vphi,
2240 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
2241 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
2242 is_iv, expand_scalar_variables_ssa_name,
2243 expand_scalar_variables_expr, expand_scalar_variables_stmt,
2244 expand_scalar_variables, rename_variables, remove_condition,
2245 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
2246 add_loop_exit_phis, insert_loop_close_phis, struct igp,
2247 default_liveout_before_guard, add_guard_exit_phis,
2248 insert_guard_phis, register_old_and_new_names,
2249 graphite_copy_stmts_from_block, register_sese_liveout_renames,
2250 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
2251 if_region_set_false_region, create_if_region_on_edge,
2252 move_sese_in_condition): Moved to sese.c.
2253
2254 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
2255 if_region_exit, if_region_get_condition_block,
2256 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
2257 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
2258 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
2259 ivtype_map_elt, new_ivtype_map_elt,
2260 recompute_all_dominators): Moved to sese.h.
2261
2262 * graphite-clast-to-gimple.c: New.
2263 * graphite-clast-to-gimple.h: New.
2264 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
2265 * sese.c: Modified as said above.
2266 * sese.h: Same.
2267
22682009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2269
2270 * graphite.c: Split scop detection to a new file.
2271 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
2272 move_sd_regions, loop_affine_expr, exclude_component_ref,
2273 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
2274 graphite_cannot_represent_loop_niter, struct scopdet_info,
2275 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
2276 find_single_entry_edge, find_single_exit_edge,
2277 create_single_entry_edge, sd_region_without_exit,
2278 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
2279 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
2280 Moved to graphite-scop-detection.c.
2281
2282 * graphite-scop-detection.c: New.
2283 * graphite-scop-detection.h: New.
2284 * Makefile.in: Add new rule for graphite-scop-detection.o.
2285
2286 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
2287 tree-scalar-evolution.h.
2288 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
2289 build_sese_loop_nests): Moved here from graphite.c.
2290 (param_index): Renamed parameter_index_in_region.
2291
22922009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
2293 Sebastian Pop <sebastian.pop@amd.com>
2294
2295 * gcc.dg/graphite/block-0.c: Expected to fail now.
2296 * gcc.dg/graphite/block-1.c: Same.
2297 * gcc.dg/graphite/block-5.c: Same.
2298 * gcc.dg/graphite/block-6.c: Same.
2299
23002009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
2301 Sebastian Pop <sebastian.pop@amd.com>
2302
2303 * graphite.h: Separate from graphite_bb_p the polyhedral
2304 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
2305 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
2306 graphite-data-ref.h.
2307 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
2308 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
2309 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
2310 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
2311 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
2312 scop_nb_params): Moved to graphite-poly.h.
2313 * graphite-data-ref.c: Same.
2314 * graphite-data-ref.h: New.
2315 * graphite.c: Same.
2316 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
2317 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
2318 is_interchange_valid, graphite_trans_bb_block,
2319 graphite_trans_loop_block, scop_max_loop_depth,
2320 graphite_trans_scop_block, graphite_apply_transformations,
2321 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
2322 graphite-poly.c.
2323 * graphite-poly.h: New.
2324 * graphite-poly.c: New.
2325 * Makefile.in (OBJS-common): Add graphite-poly.o.
2326 (graphite-poly.o): New rule.
2327 * tree-data-ref.h (struct data_reference): Remove unused scop field.
2328 (DR_SCOP): Removed.
2329
23302009-02-18 Sebastian Pop <sebastian.pop@amd.com>
2331 Tobias Grosser <grosser@fim.uni-passau.de>
2332
2333 * graphite.c: Replace gb -> gbb.
2334 * graphite.h: Same.
2335 * graphite-data-ref.c: Same.
2336
23372009-02-18 Sebastian Pop <sebastian.pop@amd.com>
2338 Tobias Grosser <grosser@fim.uni-passau.de>
2339
2340 * Makefile.in (OBJS-commmon): Add sese.o.
2341 (sese.o): New.
2342 (graphite.o): Add sese.h.
2343 * graphite.c (bb_in_ss_p, loop_in_sese_p,
2344 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
2345 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
2346 Move to sese.
2347 (block_before_scop): Add missing return.
2348 (new_scop, free_scop): Remove SESE data structures.
2349 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
2350 find_scop_parameters, build_loop_iteration_domains,
2351 add_conditions_to_domain, register_scop_liveout_renames,
2352 copy_bb_and_scalar_dependences): Scop -> SESE.
2353
2354 (add_conditions_to_domain): SCoP -> SESE and remove check
2355 (scop_contains_non_iv_scalar_phi_nodes): New.
2356 (build_scop_conditions_1, build_scop_conditions): Remove check for
2357 non iv scalar phi nodes.
2358 (print_scop_statistics): New.
2359 (graphite_transform_loops): Cleanup.
2360
2361 * graphite.h: Move to sese & cleanup.
2362 * sese.c: New.
2363 * sese.h: New.
2364
23652009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2366 Tobias Grosser <grosser@fim.uni-passau.de>
2367
2368 * graphite.c (build_scop_conditions_1): Conditions are only
2369 at the end of a basic block.
2370
23712009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2372 Tobias Grosser <grosser@fim.uni-passau>
2373
2374 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
2375 field.
2376 (GBB_ALPHA): Removed.
2377
23782009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2379 Tobias Grosser <grosser@fim.uni-passau.de>
2380
2381 * graphite-data-ref.c (graphite_test_dependence): Don't use
2382 GBB_DYNAMIC_SCHEDULE.
2383 * graphite.c (new_graphite_bb): Same.
2384 (free_graphite_bb): Same.
2385 (build_scop_dynamic_schedules): Removed.
2386 (graphite_transform_loops): Don't call it.
2387 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
2388 (GBB_DYNAMIC_SCHEDULE): Removed.
2389
23902009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2391 Tobias Grosser <grosser@fim.uni-passau.de>
2392
2393 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
2394 (print_graphite_bb): Same.
2395 (build_cloog_prog): Same.
2396
23972009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2398 Tobias Grosser <grosser@fim.uni-passau.de>
2399
2400 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
2401
24022009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2403 Tobias Grosser <grosser@fim.uni-passau.de>
2404
2405 * graphite.c (build_scop_context): Don't use CloogMatrix.
2406 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
2407 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
2408
24092009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2410 Tobias Grosser <grosser@fim.uni-passau.de>
2411
2412 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
2413 liveout_renames, add_params fields...
2414 (struct sese): ... here.
2415 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
2416 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
2417
24182009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2419 Tobias Grosser <grosser@fim.uni-passau.de>
2420
2421 * graphite.c (print_scop): Do not print the CLooG program.
2422 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
2423 build_cloog_prog, gloog): Don't use SCOP_PROG.
2424 (find_transform): Renamed scop_to_clast.
2425 (print_generated_program, debug_generated_program): New.
2426 (graphite_transform_loops): Adapt to new interface.
2427 * graphite.h (struct scop): Remove program field.
2428 (SCOP_PROG): Removed.
2429 (print_generated_program, debug_generated_program): Declared.
2430
24312009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2432
2433 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
2434 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
2435 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
2436 free_graphite_bb, build_scop_canonical_schedules,
2437 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
2438 schedules are now represented using a ppl_Linear_Expression_t.
2439 * graphite.h (struct graphite_bb): Same.
2440 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
2441 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
2442
24432009-02-15 Sebastian Pop <sebastian.pop@amd.com>
2444
2445 * graphite.c: Free local memory.
2446 * graphite-ppl.c: Same.
2447
24482009-02-15 Sebastian Pop <sebastian.pop@amd.com>
2449
2450 * graphite.c (const_column_index, get_first_matching_sign_row_index,
2451 get_lower_bound_row, get_upper_bound_row, copy_constraint,
2452 swap_constraint_variables, scale_constraint_variable): Removed.
2453 (graphite_trans_bb_strip_mine): Remove pong.
2454 * graphite-ppl.c: Include missing header files.
2455 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
2456 * graphite-ppl.h (ppl_strip_loop): Declared.
2457 * Makefile.in (graphite-ppl.o): Adjust dependences.
2458
24592009-02-14 Sebastian Pop <sebastian.pop@amd.com>
2460
2461 * graphite.c (build_loop_iteration_domains): Remove ping pong.
2462 (build_scop_iteration_domain): Same.
2463
24642009-02-13 Sebastian Pop <sebastian.pop@amd.com>
2465
2466 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
2467 ping pong.
2468 (add_value_to_dim, scan_tree_for_params_right_scev,
2469 scan_tree_for_params_int): New.
2470 * graphite-ppl.c (oppose_constraint): New.
2471 (insert_constraint_into_matrix): Implement missing cases.
2472 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
2473
24742009-02-13 Sebastian Pop <sebastian.pop@amd.com>
2475
2476 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
2477 use ppl_move_dimension.
2478
24792009-02-12 Sebastian Pop <sebastian.pop@amd.com>
2480
2481 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
2482 * graphite.c: Same.
2483 * graphite.h: Same.
2484 * graphite-ppl.c: Same.
2485 * graphite-ppl.h: Same.
2486
24872009-02-12 Sebastian Pop <sebastian.pop@amd.com>
2488
2489 Revert last 3 commits.
2490
24912009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2492
2493 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
2494 ping pong.
2495 (add_value_to_dim, scan_tree_for_params_right_scev,
2496 scan_tree_for_params_int): New.
2497 * graphite-ppl.c (oppose_constraint): New.
2498 (insert_constraint_into_matrix): Implement missing cases.
2499 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
2500
25012009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2502
2503 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
2504
25052009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2506 Tobias Grosser <grosser@fim.uni-passau.de>
2507
2508 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
2509 use ppl_move_dimension.
2510 * graphite-ppl.c (ppl_move_dimension): New.
2511 * graphite-ppl.h (ppl_move_dimension): Declared.
2512
25132009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2514
2515 * graphite.c: Do not include cloog/cloog.h.
2516 (print_graphite_bb): Remove ping pong, call PPL print function.
2517
25182009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
2519
2520 * Makefile.in (OBJS-common): Add graphite-ppl.o.
2521 (graphite.o): Add dependence on graphite-ppl.h.
2522 (graphite-ppl.o): New.
2523 (graphite-data-ref.c): Ping pong between PPL data structures
2524 and matrices.
2525 * graphite-ppl.c: New.
2526 * graphite-ppl.h: New.
2527 * graphite.c: Include graphite-ppl.h.
2528 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
2529 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
2530 Ping pong between PPL data structures and matrices.
2531 (new_graphite_bb): Create a PPL constraint system.
2532 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
2533 (build_loop_iteration_domains): Use PPL functions.
2534 * graphite.h: Include graphite-ppl.h. Fix comments.
2535 (graphite_bb): Use a ppl_Constraint_System_t instead of
2536 CloogMatrix for representing the domain.
2537 (scop): Remove static_schedule.
2538 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
2539
25402009-02-06 Sebastian Pop <sebastian.pop@amd.com>
2541
2542 * graphite.c: Fix some comments.
2543
25442009-02-05 Sebastian Pop <sebastian.pop@amd.com>
2545
2546 PR middle-end/38953
2547 * graphite.c (if_region_set_false_region): After moving a region
2548 in the false branch of a condition, remove the empty dummy
2549 basic block.
2550 (gloog): Remove wrong fix for PR38953.
2551
25522009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
2553
2554 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
2555 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
2556 register_bb_in_sese, new_sese, free_sese): Moved.
2557 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
2558 outermost_loop_in_scop, build_scop_iteration_domain,
2559 expand_scalar_variables_ssa_name, get_vdef_before_scop,
2560 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
2561 Use loop_in_sese_p instead of loop_in_scop_p.
2562 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
2563 (free_scop): Do not free SCOP_BBS_B.
2564 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
2565 ref_nb_loops): Moved here...
2566 * graphite.h (ref_nb_loops): ... from here.
2567 (struct scop): Remove bbs_b bitmap.
2568 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
2569 * testsuite/gcc.dg/graphite/scop-19.c: New
2570
25712009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
2572
2573 * graphite.c (scopdet_basic_block_info): Fix bug in scop
2574 detection.
2575
25762009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
2577
2578 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
2579 eq_loop_to_cloog_loop): Remove.
2580 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
2581 * graphite.h (struct scop): Remove loop2cloog_loop.
2582 (loop_domain_dim, loop_iteration_vector_dim): Remove.
2583
25842009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
2585
2586 * opts.c (decode_options): Only add graphite options to O2
2587 if we compile with graphite enabled.
2588
25892009-01-26 Sebastian Pop <sebastian.pop@amd.com>
2590
2591 * Merge from mainline (r143163:143684).
2592
25932009-01-26 Sebastian Pop <sebastian.pop@amd.com>
2594
2595 * graphite.c (debug_value): Removed.
2596 * graphite.h (debug_value): Removed.
2597
25982009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2599
2600 * passes.c (init_optimization_passes): Do not call pass_copy_prop
2601 after graphite: pass_copy_prop does not maintain a proper loop closed
2602 SSA form. pass_copy_prop should be fixed.
2603
26042009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2605
2606 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
2607
26082009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2609
2610 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
2611 (gloog): Split the exit of the scop when the scop exit is a loop exit.
2612 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
2613 changed the CFG.
2614
26152009-01-20 Sebastian Pop <sebastian.pop@amd.com>
2616
2617 * graphite.c (gloog): Return true when code gen succeeded.
2618 (graphite_transform_loops): Do not call cleanup_tree_cfg if
2619 the code of the function did not changed. After cleanup_tree_cfg
2620 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
2621 form.
2622
26232009-01-19 Sebastian Pop <sebastian.pop@amd.com>
2624
2625 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
2626 gimple_call_lhs is NULL.
2627
26282009-01-16 Sebastian Pop <sebastian.pop@amd.com>
2629 Tobias Grosser <tobi.grosser@amd.com>
2630
2631 * graphite.c (graphite_trans_scop_block): Do not block single
2632 nested loops.
2633
26342009-01-15 Sebastian Pop <sebastian.pop@amd.com>
2635 Tobias Grosser <tobi.grosser@amd.com>
2636
2637 * graphite.c (build_scop_canonical_schedules): Start schedules at
2638 zero.
2639
26402009-01-15 Sebastian Pop <sebastian.pop@amd.com>
2641 Tobias Grosser <tobi.grosser@amd.com>
2642
2643 * graphite.c (compare_prefix_loops): New.
2644 (build_scop_canonical_schedules): Rewritten.
2645 (graphite_transform_loops): Move build_scop_canonical_schedules
2646 after build_scop_iteration_domain.
2647
26482009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2649 Tobias Grosser <tobi.grosser@amd.com>
2650
2651 * graphite.c (add_conditions_to_domain): Add the loops to
2652 the dimension of the iteration domain. Do copy the domain
2653 only when it exists.
2654 (build_scop_conditions_1): Do not call add_conditions_to_domain.
2655 (add_conditions_to_constraints): New.
2656 (can_generate_code_stmt, can_generate_code): Removed.
2657 (gloog): Do not call can_generate_code.
2658 (graphite_transform_loops): Call add_conditions_to_constraints
2659 after building the iteration domain.
2660
26612009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2662 Tobias Grosser <tobi.grosser@amd.com>
2663 Jan Sjodin <jan.sjodin@amd.com>
2664
2665 * graphite.c (scan_tree_for_params): On substractions negate
2666 all the coefficients of the term.
2667 (clast_to_gcc_expression_red): New. Handle reduction expressions
2668 of more than two operands.
2669 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
2670 (get_vdef_before_scop): Handle also the case of default definitions.
2671
26722009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2673
2674 PR middle-end/38431
2675 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
2676 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
2677 (gloog): Do not call cleanup_tree_cfg.
2678 (graphite_transform_loops): Call cleanup_tree_cfg after all
2679 scops have been code generated.
2680
26812009-01-13 Sebastian Pop <sebastian.pop@amd.com>
2682
2683 * passes.c (init_optimization_passes): Schedule after
2684 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
2685
26862009-01-13 Sebastian Pop <sebastian.pop@amd.com>
2687
2688 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
2689 Fix comment.
2690 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
2691 Set the type of an expression to the type of its assign statement.
2692 (expand_scalar_variables_expr): Do not pass loop_p.
2693 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
2694 (copy_bb_and_scalar_dependences): Do not pass loop_p.
2695 (translate_clast): Update call to copy_bb_and_scalar_dependences.
2696
26972009-01-11 Sebastian Pop <sebastian.pop@amd.com>
2698
2699 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
2700 an expression to the gimple_expr_type of its assign statement.
2701 (expand_scalar_variables_expr): Stop recursion on tcc_constant
2702 or tcc_declaration.
2703
27042009-01-11 Sebastian Pop <sebastian.pop@amd.com>
2705
2706 PR tree-optimization/38786
2707 * testsuite/gcc.dg/graphite/pr38786.c: New.
2708 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
2709 the SSA_NAME case of expand_scalar_variables_expr.
2710 (expand_scalar_variables_expr): Also gather the scalar computation
2711 used to index the memory access.
2712 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
2713 the gimple_stmt_iterator where it inserts new code.
2714
27152009-01-10 Sebastian Pop <sebastian.pop@amd.com>
2716
2717 * testsuite/gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
2718
27192009-01-10 Sebastian Pop <sebastian.pop@amd.com>
2720
2721 * opts.c (decode_options): Enable flag_graphite_identity and
2722 flag_loop_block in -O2 and above.
2723
27242009-01-08 Sebastian Pop <sebastian.pop@amd.com>
2725
2726 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
2727 Fix merge problem: replace with the file from trunk.
2728
27292009-01-08 Sebastian Pop <sebastian.pop@amd.com>
2730
2731 * Merge from mainline (r141727:143163).
2732
27332009-01-07 Sebastian Pop <sebastian.pop@amd.com>
2734 Jan Sjodin <jan.sjodin@amd.com>
2735
2736 PR tree-optimization/38559
2737 * testsuite/gcc.dg/graphite/pr38559.c: New.
2738
2739 * graphite.c (debug_value, copy_constraint,
2740 swap_constraint_variables, scale_constraint_variable, ): New.
2741 (get_lower_bound, get_upper_bound): Removed.
2742 (graphite_trans_bb_strip_mine): Clean up this code that works
2743 only for constant number of iterations. Fully copy upper and
2744 lower bound constraints, not only the constant part of them.
2745 * graphite.h (debug_value): Declared.
2746
27472009-01-06 Jan Sjodin <jan.sjodin@amd.com>
2748
2749 PR tree-optimization/38492
2750 PR tree-optimization/38498
2751 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
2752 * tree-chrec.h (scev_is_linear_expression): Declared.
2753 * graphite.c (graphite_cannot_represent_loop_niter): New.
2754 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
2755 (graphite_loop_normal_form): Use gcc_assert.
2756 (scan_tree_for_params): Use CASE_CONVERT.
2757 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
2758 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
2759 Use gcc_assert. Discard scops that contain unhandled cases.
2760 (build_scop_conditions): Return a boolean status for unhandled cases.
2761 (strip_mine_profitable_p): Print the loop number, not its depth.
2762 (is_interchange_valid): Pass the depth of the loop nest, don't
2763 recompute it wrongly.
2764 (graphite_trans_bb_block): Same.
2765 (graphite_trans_bb_block): Print tentative of loop blocking.
2766 (graphite_trans_scop_block): Do not print that the loop has been
2767 blocked.
2768 (graphite_transform_loops): Do not handle scops that contain condition
2769 scalar phi nodes.
2770
2771 * testsuite/gcc.dg/graphite/pr38500.c: Fixed warning as committed
2772 in trunk.
2773 * testsuite/gcc.dg/graphite/block-0.c: Update test.
2774 * testsuite/gcc.dg/graphite/block-1.c: Same.
2775 * testsuite/gcc.dg/graphite/block-2.c: Remove xfail and test for
2776 blocking.
2777 * testsuite/gcc.dg/graphite/block-4.c: Remove test for strip mine.
2778 * testsuite/gcc.dg/graphite/block-3.c: New.
2779 * testsuite/gcc.dg/graphite/pr38498.c: New.
2780
27812008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
2782
2783 PR tree-optimization/38510
2784 * gcc.dg/graphite/pr38510.c: New.
2785 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
2786 (translate_clast): Call recompute_all_dominators before
2787 graphite_verify.
2788 (gloog): Call recompute_all_dominators before graphite_verify.
2789
27902008-12-12 Sebastian Pop <sebastian.pop@amd.com>
2791
2792 PR tree-optimization/38492
2793 * graphite.c (rename_map_elt, debug_rename_elt,
2794 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
2795 rename_map_elt_info, eq_rename_map_elts,
2796 get_new_name_from_old_name, bb_in_sese_p): Moved around.
2797 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
2798 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
2799 (sese_build_livein_liveouts): New.
2800 (new_sese, free_sese): New.
2801 (new_scop): Call new_sese.
2802 (free_scop): Call free_sese.
2803 (rename_variables_from_edge, rename_phis_end_scop): Removed.
2804 (register_old_new_names): Renamed register_old_and_new_names.
2805 (register_scop_liveout_renames, add_loop_exit_phis,
2806 insert_loop_close_phis, struct igp,
2807 default_liveout_before_guard, add_guard_exit_phis,
2808 insert_guard_phis, copy_renames): New.
2809 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
2810 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
2811 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
2812 (scop_adjust_phis_for_liveouts): New.
2813 (gloog): Call scop_adjust_phis_for_liveouts.
2814
2815 * graphite.h (struct sese): Documented. Added fields liveout,
2816 num_ver and livein.
2817 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
2818 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
2819 (struct scop): Added field liveout_renames.
2820 (SCOP_LIVEOUT_RENAMES): New.
2821
28222008-12-11 Sebastian Pop <sebastian.pop@amd.com>
2823
2824 PR tree-optimization/38409
2825 * gcc.dg/graphite/pr38409.c: New.
2826 * graphite.c (nb_reductions_in_loop): Use simple_iv.
2827
28282008-12-11 Sebastian Pop <sebastian.pop@amd.com>
2829
2830 * graphite.c (gcc_type_for_cloog_iv): By default return
2831 integer_type_node.
2832 (graphite_create_new_loop): Don't fold_convert the already
2833 fold_convert-ed expression.
2834
28352008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
2836
2837 PR tree-optimization/38446
2838 * gcc.dg/graphite/pr38446.c: New.
2839 * graphite.c (register_bb_in_sese): New.
2840 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
2841 looking at the bbs in the region.
2842 * graphite.h (sese): Add region_basic_blocks pointer set to
2843 structure and initialize at the time of defining new scop.
2844
28452008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
2846
2847 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
2848 (find_params_in_bb): Do not free data refs.
2849 (free_graphite_bb): Add FIXME on disabled free_data_refs.
2850
28512008-12-11 Sebastian Pop <sebastian.pop@amd.com>
2852
2853 * testsuite/gcc.dg/graphite/scop-16.c: Test only scop specific info.
2854 * testsuite/gcc.dg/graphite/scop-17.c: Same.
2855 * testsuite/gcc.dg/graphite/block-5.c: New.
2856 * testsuite/gcc.dg/graphite/block-6.c: New.
2857 * testsuite/gcc.dg/graphite/pr37485.c: Clean dump file after.
2858 * testsuite/gcc.dg/graphite/pr37684.c: Same.
2859 * testsuite/gcc.dg/graphite/block-2.c: Same.
2860
2861 * graphite.c (struct ivtype_map_elt): New.
2862 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
2863 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
2864 gcc_type_for_cloog_iv): New.
2865 (loop_iv_stack_patch_for_consts): Use the type of the induction
2866 variable from the original loop, except for the automatically
2867 generated loops, i.e., in the case of a strip-mined loop, in
2868 which case there is no original loop: in that case just use
2869 integer_type_node.
2870 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
2871 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
2872 (clast_name_to_gcc): Accept params to be NULL.
2873 (clast_to_gcc_expression): Take an extra parameter for the type.
2874 Convert to that type all the expressions built by this function.
2875 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
2876 (graphite_translate_clast_equation): Compute the type of the
2877 clast_equation before translating its LHS and RHS.
2878 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
2879 (graphite_create_new_loop): Compute the type of the induction
2880 variable before translating the lower and upper bounds and before
2881 creating the induction variable.
2882 (rename_variables_from_edge, rename_phis_end_scop): New.
2883 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
2884 (sese_add_exit_phis_edge): Do not use integer_zero_node.
2885 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
2886 compute_cloog_iv_types): New.
2887 (gloog): Call compute_cloog_iv_types before starting the
2888 translation of the clast.
2889
2890 * graphite.h (struct graphite_bb): New field cloog_iv_types.
2891 (GBB_CLOOG_IV_TYPES): New.
2892 (debug_ivtype_map): Declared.
2893 (oldiv_for_loop): New.
2894
28952008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
2896
2897 PR middle-end/38459
2898 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
2899 (param_index): Assert if parameter is not know after parameter
2900 detection.
2901 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
2902 (find_scop_parameters): Mark, that we have finished parameter
2903 detection.
2904 (graphite_transform_loops): Move condition detection before parameter
2905 detection.
2906 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
2907 * testsuite/gfortran.dg/graphite/pr38459.f90: New.
2908
29092008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
2910
2911 * graphite.c (graphite_transform_loops): Always call find_transform ()
2912 in ENABLE_CHECKING. So we test these code paths, even if we do not
2913 generate code.
2914
29152008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
2916
2917 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
2918 (print_scop): Ditto.
2919
29202008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
2921
2922 PR middle-end/38084
2923 Fix testsuite/gfortran.dg/graphite/id-3.f90.
2924 * graphite.c (scopdet_basic_block_info): Fix bug that found some
2925 regions more than once.
2926
29272008-12-03 Sebastian Pop <sebastian.pop@amd.com>
2928
2929 Fix testsuite/gfortran.dg/graphite/id-4.f90.
2930 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
2931 when not needed.
2932
29332008-12-03 Sebastian Pop <sebastian.pop@amd.com>
2934
2935 Fix testsuite/gfortran.dg/graphite/id-1.f90.
2936 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
2937 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
2938 (max_precision_type): New.
2939 (value_clast): Removed.
2940 (clast_to_gcc_expression): Be more careful to types of expressions.
2941 Use max_precision_type and update use of gmp_cst_to_tree.
2942 (graphite_translate_clast_equation): Use max_precision_type.
2943 (graphite_create_guard_cond_expr): Do not use integer_type_node,
2944 use the type of the condition.
2945 (graphite_create_new_loop): Do not use integer_type_node, use the
2946 max_precision_type of lb and ub.
2947
29482008-12-03 Sebastian Pop <sebastian.pop@amd.com>
2949
2950 * graphite.c (build_scops_1): Initialize open_scop.exit
2951 and sinfo.last.
2952
29532008-12-02 Sebastian Pop <sebastian.pop@amd.com>
2954
2955 * testsuite/gcc.dg/graphite/pr38084.c: New.
2956 * testsuite/gfortran.dg/graphite/id-1.f90: New.
2957 * testsuite/gfortran.dg/graphite/id-2.f90: New.
2958 * testsuite/gfortran.dg/graphite/id-3.f90: New.
2959 * testsuite/gfortran.dg/graphite/id-4.f90: New.
2960 * testsuite/gfortran.dg/graphite/pr37857.f90: New.
2961
29622008-12-02 Sebastian Pop <sebastian.pop@amd.com>
2963 Jan Sjodin <jan.sjodin@amd.com>
2964 Harsha Jagasia <harsha.jagasia@amd.com>
2965
2966 PR middle-end/37852
2967 PR middle-end/37883
2968 PR middle-end/37928
2969 PR middle-end/37980
2970 PR middle-end/38038
2971 PR middle-end/38039
2972 PR middle-end/38073
2973 PR middle-end/38083
2974 PR middle-end/38125
2975
2976 * testsuite/gcc.dg/graphite/pr38073.c: New.
2977 * testsuite/gcc.dg/graphite/pr37928.c: New.
2978 * testsuite/gcc.dg/graphite/pr37883.c: New.
2979 * testsuite/gcc.dg/graphite/pr38125.c: New.
2980 * testsuite/gfortran.dg/graphite/pr38083.f90: New.
2981 * testsuite/gfortran.dg/graphite/pr37852.f90: New.
2982 * testsuite/gfortran.dg/graphite/pr37980.f90: New.
2983
2984 * testsuite/gcc.dg/graphite/scop-18.c: Remove reduction, test for
2985 the number of detected scops. Copy exact same test for loop
2986 blocking...
2987 * testsuite/gcc.dg/graphite/block-1.c: Fix the number of expected
2988 loops to be blocked as reductions are not handled.
2989 * testsuite/gcc.dg/graphite/block-4.c: ...here. New.
2990
2991 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
2992 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
2993 ...here.
2994 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
2995 * Makefile.in (graphite.o): Depend on value-prof.h.
2996 (graphite.o-warn): Removed -Wno-error.
2997 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
2998 to be a NULL pointer. Call update_stmt. Return the newly created
2999 cannonical induction variable.
3000
3001 * graphite.h (debug_rename_map): Declared. Fix some comments.
3002
3003 * graphite.c: Reimplement the code generation from graphite to gimple.
3004 Include value-prof.h.
3005 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
3006 (get_old_iv_from_ssa_name): Removed.
3007 (graphite_stmt_p): New.
3008 (new_graphite_bb): Test for useful statements before building a
3009 graphite statement for the basic block.
3010 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
3011 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
3012 reason.
3013 (recompute_all_dominators, graphite_verify,
3014 nb_reductions_in_loop, graphite_loop_normal_form): New.
3015 (scop_record_loop): Call graphite_loop_normal_form.
3016 (build_scop_loop_nests): Iterate over all the blocks of the
3017 function instead of relying on the incomplete information from
3018 SCOP_BBS. Return the success of the operation.
3019 (find_params_in_bb): Use the data from GBB_DATA_REFS.
3020 (add_bb_domains): Removed.
3021 (build_loop_iteration_domains): Don't call add_bb_domains.
3022 Add the iteration domain only to the basic blocks that have been
3023 translated to graphite.
3024 (build_scop_conditions_1): Add constraints only if the basic
3025 block have been translated to graphite.
3026 (build_scop_data_accesses): Completely disabled until data
3027 dependence is correctly implemented.
3028 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
3029 (remove_all_edges_1, remove_all_edges): Removed.
3030 (get_new_name_from_old_name): New.
3031 (graphite_rename_variables_in_stmt): Renamed
3032 rename_variables_in_stmt. Call get_new_name_from_old_name.
3033 Use replace_exp and update_stmt.
3034 (is_old_iv): Renamed is_iv.
3035 (expand_scalar_variables_stmt): Extra parameter for renaming map.
3036 Use replace_exp and update_stmt.
3037 (expand_scalar_variables_expr): Same. Use the map to get the
3038 new names for the renaming of induction variables and for the
3039 renaming of variables after a basic block has been copied.
3040 (expand_scalar_variables): Same.
3041 (graphite_rename_variables): Renamed rename_variables.
3042 (move_phi_nodes): Removed.
3043 (get_false_edge_from_guard_bb): New.
3044 (build_iv_mapping): Do not insert the induction variable of a
3045 loop in the renaming iv map if the basic block does not belong
3046 to that loop.
3047 (register_old_new_names, graphite_copy_stmts_from_block,
3048 copy_bb_and_scalar_dependences): New.
3049 (translate_clast): Heavily reimplemented: copy basic blocks,
3050 do not move them. Finally, in call cleanup_tree_cfg in gloog.
3051 At each translation step call graphite_verify ensuring the
3052 consistency of the SSA, loops and dominators information.
3053 (collect_virtual_phis, find_vdef_for_var_in_bb,
3054 find_vdef_for_var_1, find_vdef_for_var,
3055 patch_phis_for_virtual_defs): Removed huge hack.
3056 (mark_old_loops, remove_dead_loops, skip_phi_defs,
3057 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
3058 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
3059 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
3060 if_region_get_condition_block, if_region_set_false_region,
3061 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
3062 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
3063 sese_add_exit_phis_edge, sese_add_exit_phis_var,
3064 rewrite_into_sese_closed_ssa): New.
3065 (gloog): Remove dead code. Early return if code cannot be
3066 generated. Call cleanup_tree_cfg once the scop has been code
3067 generated.
3068 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
3069 block loops with less than two loops.
3070 (graphite_apply_transformations): Remove the call to
3071 scop_remove_ignoreable_gbbs.
3072 (limit_scops): When build_scop_loop_nests fails, continue on
3073 the next scop. Fix open_scop.entry.
3074 (graphite_transform_loops): Call recompute_all_dominators: force the
3075 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
3076 Call initialize_original_copy_tables and free_original_copy_tables
3077 to be able to copy basic blocks during code generation.
3078 When build_scop_loop_nests fails, continue on next scop.
3079 (value_clast): New union.
3080 (clast_to_gcc_expression): Fix type cast warning.
3081
30822008-11-09 Sebastian Pop <sebastian.pop@amd.com>
3083
3084 * Merge from mainline (r140838:141727).
3085
30862008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
3087
3088 PR middle-end/37833
3089
3090 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
3091
30922008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
3093
3094 PR middle-end/37943
3095
3096 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
3097 exits and conditions.
3098 * testsuite/gcc.dg/graphite/pr37943.c: New.
3099
31002008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
3101
3102 PR middle-end/37886
3103 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
3104
31052008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
3106
3107 * doc/invoke.texi: Fix spaces.
3108
31092008-10-22 Sebastian Pop <sebastian.pop@amd.com>
3110
3111 PR tree-optimization/37891
3112 Reverted last commit.
3113 * graphite.c (create_single_entry_edge): Set
3114 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
3115
31162008-10-21 Sebastian Pop <sebastian.pop@amd.com>
3117 Mitul Thakkar <mitul.thakkar@amd.com>
3118
3119 * graphite.c (create_single_entry_edge): Set
3120 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
3121
31222008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
3123
3124 * doc/invoke.texi: Add -fgraphite-identity.
3125 * graphite.c (graphite_apply_transformations): Check for
3126 -fgraphite-identity.
3127 * toplev.c (process_options): Add flag_graphite_identity.
3128 * tree-ssa-loop.c: Add flag_graphite_identity.
3129
31302008-10-14 Sebastian Pop <sebastian.pop@amd.com>
3131
3132 Undo changes from 2008-10-02:
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 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
3136 with the IV name after increment.
3137
31382008-10-14 Sebastian Pop <sebastian.pop@amd.com>
3139 Harsha Jagasia <harsha.jagasia@amd.com>
3140
3141 PR tree-optimization/37828
3142 * testsuite/gcc.dg/graphite/pr37828.c: New.
3143 * graphite.c (graphite_trans_loop_block): Do not loop block
3144 single nested loops.
3145
31462008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
3147 Sebastian Pop <sebastian.pop@amd.com>
3148
3149 * graphite.c (struct rename_map_elt, new_rename_map_elt,
3150 rename_map_elt_info, eq_rename_map_elts): New.
3151 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
3152 (expand_scalar_variables_expr): Change parameters.
3153 (expand_scalar_variables_stmt): Same.
3154 (expand_scalar_variables): Same.
3155 (graphite_rename_ivs): Rename graphite_rename_variables.
3156 (build_iv_mapping): New.
3157 (translate_clast): Call build_iv_mapping.
3158 * graphite.h (gbb_p): New name.
3159
31602008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
3161
3162 PR tree-optimization/37684
3163 * gcc.dg/graphite/pr37684.c: New.
3164 * graphite.c (exclude_component_ref): New.
3165 (is_simple_operand): Call exclude_component_ref.
3166
31672008-10-02 Jan Sjodin <jan.sjodin@amd.com>
3168 Harsha Jagasia <harsha.jagasia@amd.com>
3169
3170 PR tree-optimization/37485
3171 * gcc.dg/graphite/block-2.c: New
3172 * graphite.c (gmp_cst_to_tree): Moved.
3173 (iv_stack_entry_is_constant): New.
3174 (iv_stack_entry_is_iv): New.
3175 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
3176 (loop_iv_stack_insert_constant): New.
3177 (loop_iv_stack_pop): Use new datatpype.
3178 (loop_iv_stack_get_iv): Same.
3179 (loop_iv_stack_get_iv_from_name): Same.
3180 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
3181 (loop_iv_stack_patch_for_consts): New.
3182 (loop_iv_stack_remove_constants): New.
3183 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
3184 (translate_clast): Call loop_iv_stack_patch_for_consts and
3185 loop_iv_stack_remove_constants.
3186 (gloog): Use new datatype. Redirect construction edge to end
3187 block to avoid accidental deletion.
3188 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
3189 iv stack entry.
3190 (union iv_stack_entry_data): New. Data in iv stack entry.
3191 (struct iv_stack_entry): New. Datatype for iv stack entries.
3192
31932008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3194
3195 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
3196 operand type when copying the operand to a variable of different type.
3197
31982008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3199
3200 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
3201 with the IV name after increment.
3202
32032008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3204
3205 * Merge from mainline (r140164:140838).
3206
32072008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
3208
3209 * graphite-data-ref.c: New.
3210 * graphite.c (print_scop): Also dump the dependence graph.
3211 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
3212 (new_scop): Initialize SCOP_DEP_GRAPH.
3213 (build_scop_dynamic_schedules): New.
3214 (build_access_matrix_with_af): Fixed column numbering.
3215 (graphite_transform_loops): Call build_scop_dynamic_schedules.
3216 * graphite.h: Add ifndef/define guards against multiple inclusion.
3217 (struct scop): Add dep_graph field.
3218 (SCOP_DEP_GRAPH): Defined.
3219 (ref_nb_loops): Fixed and moved to other position.
3220 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
3221 (nb_loops_around_loop_in_scop): New.
3222 (graphite_dump_dependence_graph): Declared.
3223 (graphite_build_rdg_all_levels): Declared.
3224 (graphite_test_dependence): Declared.
3225 * Makefile.in (graphite-data-ref.o): New target.
3226
32272008-09-09 Sebastian Pop <sebastian.pop@amd.com>
3228
3229 * Merge from mainline (139870:140164).
3230
32312008-09-01 Sebastian Pop <sebastian.pop@amd.com>
3232
3233 * Merge from mainline (138275:139870).
3234 * testsuite/gcc.dg/graphite/scop-matmult.c: XFailed as one of
3235 the commits from trunk broke the niter detection.
3236
32372008-09-01 Sebastian Pop <sebastian.pop@amd.com>
3238
3239 * graphite.c: Add more documentation. Fix formatting.
3240 (debug_loop_vec, debug_oldivs, loop_iv_stack,
3241 loop_iv_stack_debug): Moved...
3242 (schedule_to_scattering): Move before use.
3243 (dot_all_scops): Include in "#if 0" the code for system
3244 call dotty.
3245
3246 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
3247 loop_iv_stack_debug): ...here.
3248
32492008-08-29 Jan Sjodin <jan.sjodin@amd.com>
3250
3251 * tree-phinodes.c (make_phi_node): Extern.
3252 (add_phi_node_to_bb): New.
3253 (create_phi_node): Call add_phi_node_to_bb.
3254 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
3255 (remove_statement): Handle case where stored phi was updated
3256 and is no longer the same.
3257 * graphite.c (is_parameter): New.
3258 (is_old_iv): New.
3259 (expand_scalar_variables_expr): New.
3260 (expand_scalar_variables_stmt): New.
3261 (expand_scalar_variables): New.
3262 (move_phi_nodes): Create new phi instead of moving old one.
3263 (translate_clast): Call expand_scalar_variables.
3264 (find_vdef_for_var_in_bb): Also scan regular definitions.
3265 (skip_phi_defs): New.
3266 (collect_scop_exit_phi_args): New.
3267 (patch_scop_exit_phi_args): New.
3268 (gloog): Patch phis after scop.
3269 * tree-flow.h: (add_phi_node_to_bb): Declared.
3270 (make_phi_node): Declared.
3271
32722008-08-26 Sebastian Pop <sebastian.pop@amd.com>
3273
3274 * graphite.c (end_scop): Split the entry of the scop when it
3275 is the header of the loop in which the scop is ending.
3276 (build_scops_1, limit_scops): Update uses of end_scop.
3277
32782008-08-26 Sebastian Pop <sebastian.pop@amd.com>
3279
3280 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
3281 SCOP_ENTRY or SCOP_EXIT.
3282
32832008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3284
3285 * graphite.c (get_construction_edge): Removed.
3286 (gloog): Construction edge is the scop entry edge.
3287
32882008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3289
3290 * graphite.c (can_generate_for_scop): Removed.
3291 (gloog): Do not call it.
3292
32932008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3294
3295 * graphite.c (new_scop): Entry of a scop is an edge.
3296 Initialize SESE region.
3297 (free_scop): Free SESE region.
3298 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
3299 (split_difficult_bb): New, split from end_scop.
3300 (end_scop): Exit of a scop is an edge.
3301 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
3302 not automatically updated and thus is always wrong.
3303 * graphite.h (struct sese): New.
3304 (SESE_ENTRY): New.
3305 (SESE_EXIT): New.
3306 (struct scop): New field for a SESE region. Remove entry, exit.
3307 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
3308 semantics as before. Moved comment around.
3309
33102008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3311 Sebastian Pop <sebastian.pop@amd.com>
3312
3313 * graphite.c (graphite_transform_loops): Always enable gloog
3314 and find_transform when ENABLE_CHECKING.
3315
33162008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3317
3318 * graphite.c (graphite_transform_loops): Move pretty printer
3319 of SCOPs before doing any transform. Remove call to print_scops
3320 and dot_all_scops_1.
3321
33222008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3323
3324 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
3325 (print_graphite_bb): Same.
3326
33272008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3328
3329 * graphite.c (dot_all_scops_1): Cleanup.
3330 (move_scops): Fix comment.
3331
33322008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3333
3334 * graphite.c (build_scop_bbs): Revert commit 139355:
3335
3336 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3337 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3338
3339 * graphite.c (build_scop_bbs): Factor up code.
3340
33412008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3342
3343 * graphite.c (gloog): Update dominator info.
3344
33452008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3346
3347 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
3348
33492008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3350
3351 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
3352 initialization.
3353 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
3354 (translate_clast): Correct formatting.
3355 * graphite.h (struct num_map): Removed.
3356 (struct graphite_bb): Remove num_map field.
3357 (GBB_INDEX_TO_NUM_MAP): Removed.
3358
33592008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3360
3361 * graphite.c (build_access_matrix_with_af): Fix comments.
3362 (build_scop_data_accesses): Same.
3363
33642008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3365
3366 * graphite.c (build_scop_data_accesses): Don't construct
3367 access matrices. Add a FIXME and an assert condition that
3368 should pass when the access matrices will be needed.
3369
33702008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3371
3372 * tree-data-ref.c (stmt_simple_memref_p): Don't call
3373 really_constant_p.
3374 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
3375 Moved close by free_graphite_bb.
3376 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
3377 (new_scop): Move close by free_scop.
3378 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
3379
33802008-08-22 Jan Sjodin <jan.sjodin@amd.com>
3381
3382 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
3383 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
3384 instead of recursive call.
3385 (graphite_translate_clast_equation): New.
3386 (graphite_create_guard_cond_expr): New.
3387 (graphite_create_new_guard): New.
3388 (get_stack_index_from_iv): Removed.
3389 (graphite_rename_ivs_stmt): Use gbb_loop_index.
3390 (get_true_edge_from_guard_bb): New.
3391 (translate_clast): Handle stmt_guard in clast.
3392 (get_construction_edge): Allow construction edge detection for
3393 a scope entry with multiple predecessors if one predecessor is
3394 the immediate dominator of scope entry.
3395 (can_generate_code_stmt): Enable code generation for clast_guard.
3396 (gloog): Use correct context loop. Removed check for post dominators.
3397 * cfgloop.h (create_empty_if_region_on_edge): Declared.
3398
33992008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3400
3401 * graphite.c (remove_dead_loops): Document better which
3402 loops are removed.
3403
34042008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3405
3406 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
3407 and PPLINC.
3408 (graphite.o): Also depends on pointer-set.h.
3409
34102008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3411
3412 * graphite.c (scop_record_loop): Fix compile warning.
3413
34142008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
3415 Sebastian Pop <sebastian.pop@amd.com>
3416
3417 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
3418
34192008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3420
3421 * graphite.c (build_graphite_bb): Initialize bb->aux to
3422 point to the graphite_bb_p.
3423 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
3424 content of bb->aux.
3425 (add_bb_domains): Does not use the scop parameter.
3426 (graphite_transform_loops): Clean bb->aux at the end.
3427
34282008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3429 Sebastian Pop <sebastian.pop@amd.com>
3430
3431 * testsuite/lib/target-supports.exp
3432 (check_effective_target_fgraphite): New.
3433
3434 * testsuite/gcc.dg/graphite/graphite.exp: Early exit when
3435 check_effective_target_fgraphite returns false.
3436 Set dg-do-what-default to compile.
3437 (scan-graphite-dump-times): Removed.
3438 * testsuite/gfortran.dg/graphite/graphite.exp: Same.
3439
3440 * testsuite/gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
3441 Use scan-tree-dump-times instead of scan-graphite-dump-times.
3442 * testsuite/gcc.dg/graphite/scop-1.c: Same.
3443 * testsuite/gcc.dg/graphite/scop-2.c: Same.
3444 * testsuite/gcc.dg/graphite/scop-3.c: Same.
3445 * testsuite/gcc.dg/graphite/scop-4.c: Same.
3446 * testsuite/gcc.dg/graphite/scop-5.c: Same.
3447 * testsuite/gcc.dg/graphite/scop-6.c: Same.
3448 * testsuite/gcc.dg/graphite/scop-7.c: Same.
3449 * testsuite/gcc.dg/graphite/scop-8.c: Same.
3450 * testsuite/gcc.dg/graphite/scop-9.c: Same.
3451 * testsuite/gcc.dg/graphite/scop-10.c: Same.
3452 * testsuite/gcc.dg/graphite/scop-11.c: Same.
3453 * testsuite/gcc.dg/graphite/scop-12.c: Same.
3454 * testsuite/gcc.dg/graphite/scop-13.c: Same.
3455 * testsuite/gcc.dg/graphite/scop-matmult.c: Same.
3456 * testsuite/gcc.dg/graphite/scop-14.c: Same.
3457 * testsuite/gcc.dg/graphite/scop-15.c: Same.
3458 * testsuite/gcc.dg/graphite/block-0.c: Same.
3459 * testsuite/gcc.dg/graphite/scop-16.c: Same.
3460 * testsuite/gcc.dg/graphite/block-1.c: Same.
3461 * testsuite/gcc.dg/graphite/scop-17.c: Same.
3462 * testsuite/gcc.dg/graphite/scop-18.c: Same.
3463 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
3464 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
3465 * testsuite/gfortran.dg/graphite/block-2.f: Same.
3466
34672008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3468
3469 * graphite.c: Fix some XXX comments.
3470 (build_scop_dynamic_schedules): Removed.
3471
34722008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3473
3474 * graphite.h (scop_max_loop_depth): Moved...
3475 * graphite.c (scop_max_loop_depth): ...here.
3476 (remove_all_edges_1): New.
3477 (remove_all_edges): Factored code.
3478 (remove_cond_exprs): Check only the last statement for
3479 a GIMPLE_COND expression.
3480
34812008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3482
3483 * graphite.c (scan_tree_for_params): Early return when the
3484 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
3485 (find_scop_parameters): Factor out code.
3486 (graphite_trans_bb_strip_mine): Remove dead code.
3487
34882008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3489
3490 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
3491 graphite_trans_bb_move_loop): Factor asserts.
3492 (gloog): Perform sanity checks only for ENABLE_CHECKING.
3493 Do not call calculate_dominance_info and estimate_bb_frequencies.
3494
34952008-08-20 Jan Sjodin <jan.sjodin@amd.com>
3496
3497 * graphite.c (create_loops_mapping, free_loops_mapping,
3498 create_loops_mapping_num, debug_loop_mapping_1,
3499 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
3500 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
3501 graphite_loops_mapping_add_child_num,
3502 graphite_loops_mapping_insert_child,
3503 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
3504 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
3505 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
3506 create_num_from_index, get_num_from_index,
3507 swap_loop_mapped_depth): Removed.
3508 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
3509 (free_scop): Do not call free_loops_mapping.
3510 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
3511 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
3512 get_loop_mapped_depth.
3513 (graphite_trans_bb_move_loop): Do not update the loop mapping.
3514 (graphite_trans_bb_strip_mine): Same.
3515 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
3516 (struct scop): Remove field loops_mapping.
3517
35182008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3519 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3520
3521 * graphite.c (scop_record_loop): Factor out one level of the
3522 condition by early return.
3523 (build_scop_loop_nests): Format following FSF coding style.
3524 (build_scop_dynamic_schedules): Factor out code.
3525 (scopdet_bb_info): Reindent. Default case should not be reachable.
3526
35272008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3528 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3529
3530 * graphite.c (loop_affine_expr): Check for DECL_P or struct
3531 assignments that are not handled as simple operands for now.
3532
35332008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3534 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3535
3536 * graphite.c (build_scop_bbs): Factor up code.
3537
35382008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3539 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3540
3541 * graphite.c (stmt_simple_for_scop_p): Factor code out
3542 of the loop.
3543 (enum gbb_type): New. Group all the GBB_* types under it.
3544 (is_loop_exit): Moved...
3545 (end_scop): Enable BB spliting.
3546 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
3547 * cfgloop.h (is_loop_exit): Declared.
3548
35492008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3550
3551 * doc/invoke.texi: Remove strides from examples containing
3552 DO loops when the strides are equal to 1.
3553
35542008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
3555 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3556
3557 * graphite.c (graphite_trans_scop_block): Or the result with
3558 the result from graphite_trans_loop_block.
3559 * testsuite/gcc.dg/graphite/block-1.c: New.
3560 * testsuite/gfortran.dg/graphite/block-1.f90: New.
3561 * testsuite/gfortran.dg/graphite/block-2.f: New.
3562
35632008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3564
3565 * graphite.c (graphite_transform_loops): Call cloog_initialize
3566 and cloog_finalize.
3567
35682008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3569
3570 * tree-data-ref.c) (stmt_simple_memref_p): New.
3571 * tree-data-ref.h (stmt_simple_memref_p): Declared.
3572 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
3573 (is_simple_operand): Call stmt_simple_memref_p.
3574
3575 * testsuite/gcc.dg/graphite/scop-matmult.c: Updated for not
3576 using pointer arithmetic, as this is optimized by PRE and
3577 makes the code too difficult to analyze.
3578
3579 * testsuite/gcc.dg/graphite/scop-18.c: Same.
3580
35812008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3582
3583 * gdbinit.in (pgg): New.
3584
35852008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3586
3587 * graphite.c (graphite_trans_loop_block): Fix warning.
3588
35892008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3590
3591 * graphite.c (graphite_trans_loop_block): Fix my merge error.
3592
35932008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3594
3595 * graphite.c (graphite_trans_bb_block): Remove check for
3596 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
3597 Check if loop blocking is profitable for every loop, before applying
3598 the changes.
3599 (graphite_apply_transformations): Call graphite_trans_bb_block only,
3600 if flag_loop_block is set.
3601
36022008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3603
3604 * graphite.c: Add some more documentation for the loop
3605 mapping.
3606
36072008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3608
3609 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
3610 * graphite.c: Format on less than 80 columns.
3611 * graphite.h: Same.
3612
36132008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3614
3615 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
3616
36172008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3618
3619 * doc/invoke.texi (floop-block, floop-strip-mine,
3620 floop-interchange): Update documentation with examples.
3621
36222008-08-13 Sebastian Pop <sebastian.pop@amd.com>
3623
3624 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
3625 add_referenced_var.
3626 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
3627
36282008-08-13 Sebastian Pop <sebastian.pop@amd.com>
3629
3630 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
3631 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
3632 * tree-scalar-evolution.c: Revert useless changes.
3633 * tree-phinodes.c: Same.
3634 * cfghooks.c: Same.
3635 * vec.h: Same.
3636 * tree-vectorizer.h: Same.
3637 * tree-flow.h: Same.
3638 * tree-cfg.c: Same.
3639 * common.opt (fgraphite): Update documentation.
3640
36412008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
3642
3643 * doc/invoke.texi (-floop-block, -floop-strip-mine,
3644 -floop-interchange): Add more text for explaining what each of these
3645 flags is doing.
3646 * tree-into-ssa.c (gimple_vec): Moved to...
3647 * graphite.c: Include gimple.h.
3648 (gimple_vec): Moved to...
3649 (del_loop_to_cloog_loop): Removed.
3650 (loop_affine_expr): Do not call create_data_ref when the
3651 operand is a constant.
3652 (new_scop): Use free instead of del_loop_to_cloog_loop.
3653 * Makefile.in (graphite.o): Depend on GIMPLE_H.
3654 * gimple.h (gimple_vec): ... here.
3655
36562008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3657
3658 * graphite.c (scopdet_bb_info): Only allow loops with known number of
3659 latch executions.
3660 (build_loop_iteration_domains): Fail, if latch executions unknown.
3661
36622008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3663
3664 * graphite.c (add_conditions_to_domain): New.
3665 (build_scop_conditions_1): Call add_conditions_to_domain.
3666 (set_cloog_options): Allow to disable optimizations.
3667
36682008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3669
3670 * graphite.c (find_params_in_bb): Look for parameters in conditions.
3671 Do not use walk_dominator_tree.
3672 (find_scop_parameters): Do not use walk_dominator_tree.
3673
36742008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3675
3676 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
3677 (idx_record_params): Adapt.
3678 * graphite.h (scop_gimple_loop_depth): New.
3679
36802008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3681
3682 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
3683 (scan_tree_for_params): Remove value_init.
3684 (build_scop_context): Remove value_init.
3685 (build_loop_iteration_domains): Remove value_init.
3686 (schedule_to_scattering): Remove value_init.
3687 (graphite_trans_bb_strip_mine): Remove value_init.
3688
36892008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3690
3691 * gcc/graphite.c (limit_scops): New.
3692 (graphite_transform_loops): Add limit SCoPs.
3693 * gcc/testsuite/gcc.dg/graphite/scop-0.c: Update number of SCoPs.
3694 * gcc/testsuite/gcc.dg/graphite/scop-1.c: Update number of SCoPs.
3695 * gcc/testsuite/gcc.dg/graphite/scop-10.c: Update number of SCoPs.
3696 * gcc/testsuite/gcc.dg/graphite/scop-11.c: Update number of SCoPs.
3697 * gcc/testsuite/gcc.dg/graphite/scop-12.c: Update number of SCoPs.
3698 * gcc/testsuite/gcc.dg/graphite/scop-13.c: Update number of SCoPs.
3699 * gcc/testsuite/gcc.dg/graphite/scop-14.c: Update number of SCoPs.
3700 * gcc/testsuite/gcc.dg/graphite/scop-15.c: Update number of SCoPs.
3701 * gcc/testsuite/gcc.dg/graphite/scop-16.c: Update number of SCoPs.
3702 Change loop numbers.
3703 * gcc/testsuite/gcc.dg/graphite/scop-17.c: Update number of SCoPs.
3704 Change loop numbers.
3705 * gcc/testsuite/gcc.dg/graphite/scop-18.c: Update number of SCoPs.
3706 * gcc/testsuite/gcc.dg/graphite/scop-2.c: Update number of SCoPs.
3707 * gcc/testsuite/gcc.dg/graphite/scop-3.c: Update number of SCoPs.
3708 * gcc/testsuite/gcc.dg/graphite/scop-4.c: Update number of SCoPs.
3709 * gcc/testsuite/gcc.dg/graphite/scop-5.c: Update number of SCoPs.
3710 * gcc/testsuite/gcc.dg/graphite/scop-6.c: Update number of SCoPs.
3711 * gcc/testsuite/gcc.dg/graphite/scop-7.c: Update number of SCoPs.
3712 * gcc/testsuite/gcc.dg/graphite/scop-8.c: Update number of SCoPs.
3713 * gcc/testsuite/gcc.dg/graphite/scop-9.c: Update number of SCoPs.
3714 * gcc/testsuite/gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
3715
37162008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3717
3718 * graphite.c (graphite_transform_loops): Call always find_transform.
3719
37202008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
3721
3722 * graphite.c (free_loops_mapping): New.
3723 (stmt_simple_for_scop_p): Fix typo.
3724 (stmt_simple_for_scop_p): Fix tuples functions, that
3725 broke polyhedron.
3726 (free_graphite_bb): Fix some memleaks.
3727 (free_scop): Fix some memleaks.
3728 (scopdet_bb_info): Do not forget some tmp SCoPs.
3729 (find_params_in_bb): Fix some memleaks.
3730 (clast_to_gcc_expression): Fix warning.
3731
37322008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
3733
3734 * testsuite/gcc.dg/graphite/scop-16.c: Fix for 32bit.
3735 * testsuite/gcc.dg/graphite/scop-17.c: Fix for 32bit.
3736
37372008-08-04 Sebastian Pop <sebastian.pop@amd.com>
3738
3739 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
3740 Move code ifdef-ed HAVE_cloog...
3741 * graphite.c: Include toplev.h.
3742 ... here.
3743 * Makefile.in (OBJS-common): Always build graphite.o.
3744 (BACKEND): Remove @GRAPHITE@.
3745 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
3746 (graphite.o): Depend on TOPLEV_H.
3747
37482008-08-04 Sebastian Pop <sebastian.pop@amd.com>
3749
3750 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
3751 Remove typo left from polylib to ppl conversion.
3752 * graphite.c (graphite_transforms): Use sorry instead of fatal.
3753
37542008-08-03 Sebastian Pop <sebastian.pop@amd.com>
3755
3756 * toplev.c (process_options): Move the graphite loop optimization
3757 flags...
3758 * tree-ssa-loop.c (graphite_transforms): ... here.
3759 When not configured with CLooG, print to dump_file that
3760 Graphite transforms were not performed.
3761 * testsuite/gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
3762 New.
3763 * testsuite/gcc.dg/graphite/*.c: Updated all testcases to use
3764 scan-graphite-dump-times.
3765
37662008-08-03 Sebastian Pop <sebastian.pop@amd.com>
3767
3768 * graphite.c (dot_scop, dot_all_scops): Do not call system.
3769 Do not open /tmp/scop.dot and /tmp/allscops.dot.
3770
37712008-08-02 Sebastian Pop <sebastian.pop@amd.com>
3772 Jan Sjodin <jan.sjodin@amd.com>
3773
3774 * configure: Regenerated.
3775 * omp-low.c (expand_omp_sections): Remove now unused code.
3776 * config.in (HAVE_polylib): Removed.
3777 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
3778 (PPLLIBS, PPLINC): Added.
3779 * graphite.c: Replace unsigned with int wherever possible.
3780 Don't access Cloog's data structures, but use accessor functions.
3781 Clast's stmt->type is now implemented as a vtable: change the
3782 switches of stmt->type into ifs.
3783 (polylib/polylibgmp.h): Don't include.
3784 (initialize_dependence_polyhedron,
3785 initialize_data_dependence_polyhedron, is_empty_polyhedron,
3786 statement_precedes_p, test_dependence, build_rdg_all_levels,
3787 dump_dependence_graph): Removed until this code is cleaned up
3788 or ported to Cloog.
3789 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
3790 (POLYLIBINC): Renamed PPLINC.
3791
37922008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
3793 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3794 Jan Sjodin <jan.sjodin@amd.com>
3795
3796 Finish the merge and tuplification of graphite.
3797
37982008-07-24 Sebastian Pop <sebastian.pop@amd.com>
3799 Jan Sjodin <jan.sjodin@amd.com>
3800
3801 Partial merge from mainline (138072:138275).
3802 * graphite.c still has to be tuplified.
3803
38042008-07-29 Jan Sjodin <jan.sjodin@amd.com>
3805
3806 * graphite.c (graphite_loops_mapping_max_loop_num): New.
3807 (create_num_from_index): New.
3808 (get_num_from_index): Also pass in the graphite BB.
3809 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
3810 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
3811 (graphite_trans_bb_strip_mine): Call create_num_from_index.
3812 (is_interchange_valid): Return false when failing.
3813 * graphite.h (struct num_map): New.
3814 (struct graphite_bb): New field num_map.
3815 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
3816
38172008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
3818
3819 * graphite.c (dump_gbb_conditions): Print also conditions like
3820 "if (a)". Remove dublicated code and use print_generic_expr ().
3821 (stmt_simple_for_scop_p): Only allow conditions we can handle
3822 {<, <=, >, >=}.
3823
38242008-07-25 Jan Sjodin <jan.sjodin@amd.com>
3825
3826 * graphite.h (struct scop): Removed new_ivs field.
3827 (SCOP_NEWIVS): Deleted.
3828 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
3829 clast_to_gcc_expression, graphite_create_new_loop):
3830 Removed use of new_ivs.
3831
38322008-07-25 Jan Sjodin <jan.sjodin@amd.com>
3833
3834 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
3835 create_loops_mapping_num, debug_loop_mapping_1): New.
3836 (debug_loop_mapping): Call debug_loop_mapping_1.
3837 (get_loop_mapping_for_num,
3838 graphite_loops_mapping_add_child,
3839 graphite_loops_mapping_add_child_num,
3840 graphite_loops_mapping_insert_child,
3841 graphite_loops_mapping_parent,
3842 split_loop_mapped_depth_for_num,
3843 loop_mapped_depth_split_loop): New.
3844 (increment_loop_mapped_depths): Removed.
3845 (swap_loop_mapped_depth_for_num): Reimplemented.
3846 (new_scop): Call create_loops_mapping.
3847 (scop_record_loop): Call graphite_loops_mapping_insert_child.
3848 (translate_clast): Pass the old loop father in parameter, and pass
3849 it to get_old_iv_from_ssa_name.
3850 (remove_edges_around_useless_blocks, can_generate_code_stmt,
3851 can_generate_code, can_generate_for_scop): New.
3852 (graphite_trans_bb_block): Returns false when it fails to transform.
3853 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
3854
38552008-07-25 Sebastian Pop <sebastian.pop@amd.com>
3856
3857 Reverted all the changes related to the streamization and
3858 loop fusion.
3859 These changes are now tracked in the streamization branch.
3860
38612008-07-25 Sebastian Pop <sebastian.pop@amd.com>
3862 Jan Sjodin <jan.sjodin@amd.com>
3863
3864 * graphite.c (gbb_compare): Correctly constify.
3865 (gbb_can_be_ignored): Indent.
3866 (graphite_trans_scop_swap_1and2): Add legality check.
3867 Remove dead FIXMEs.
3868
38692008-07-25 Sebastian Pop <sebastian.pop@amd.com>
3870
3871 Remove fallouts from "Reverted the Condate changes".
3872 * tree.h: Remove unused decl.
3873 * testsuite/gcc.dg/tree-checker: Same.
3874 * timevar.def: Remove counter.
3875
38762008-07-24 Sebastian Pop <sebastian.pop@amd.com>
3877
3878 * Merge from mainline (135673:138072).
3879
3880 Reverted the MIRO changes (from 2008-04-05) that are now
3881 tracked in the miro branch.
3882 * tree-bounds.c: Removed.
3883 * tree-bounds.h: Removed.
3884
3885 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
3886 are now tracked in the condate branch.
3887 * tree-check.c: Removed.
3888 * tree-match.c: Removed.
3889 * condate.y: Removed.
3890
38912008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3892
3893 * common.opt: New user flag -floop-block, -floop-strip-mine
3894 and -floop-interchange.
3895 * toplev.c (process_options): Enable -fgraphite pass if any one of the
3896 graphite loop optimization flags is turned on.
3897 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
3898 flag_loop_strip_mine and flag_loop_interchange checks before
3899 optimizations.
3900 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
3901 -floop-strip-mine and -floop-interchange.
3902 * testsuite/gcc.dg/graphite/block-0.c: Add -floop-block and remove
3903 -fgraphite.
3904 * testsuite/gcc.dg/graphite/scop-16.c: Ditto.
3905 * testsuite/gcc.dg/graphite/scop-17.c: Ditto.
3906 * testsuite/gcc.dg/graphite/scop-18.c: Ditto.
3907
39082008-07-23 Jan Sjodin <jan.sjodin@amd.com>
3909 Sebastian Pop <sebastian.pop@amd.com>
3910
3911 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
3912 (create_empty_loop_on_edge): More fixes.
3913 * tree-phinodes.c (resize_phi_node): Extern.
3914 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
3915 * cfghooks.c (update_dominator_information): New split from
3916 split_edge.
3917 * tree-vectorizer.c (rename_variables_in_bb): Extern.
3918 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
3919 successor of the function entry block.
3920
3921 * graphite.c: Include pointer-set.h.
3922 (debug_loop_mapping, increment_loop_mapped_depths,
3923 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
3924 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
3925 swap_loop_mapped_depth_for_num, get_num_from_index,
3926 swap_loop_mapped_depth, loop_iv_stack_debug,
3927 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
3928 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
3929 get_old_iv_from_ssa_name): New.
3930 (new_scop): Initialize SCOP_LOOPS_MAPPING.
3931 (free_scop): Free SCOP_LOOPS_MAPPING.
3932 (scop_record_loop): Record old ivs.
3933 (create_var_name): Removed.
3934 (initialize_cloog_names): Allocate double space in case strip mine
3935 applies to all loops once.
3936 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
3937 (clast_to_gcc_expression): Same. Implement more clast to gimple
3938 translation.
3939 (graphite_create_new_loop): Pass in ivstack.
3940 (remove_all_edges): Pass in the construction_edge.
3941 (graphite_remove_iv): Removed.
3942 (graphite_rename_ivs, graphite_rename_ivs_stmt,
3943 remove_cond_exprs): Rewritten.
3944 (move_phi_nodes): New.
3945 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
3946 (translate_clast): Pass in ivstack. Rewrite some cases.
3947 (set_cloog_options, debug_clast_stmt): New.
3948 (find_transform): Use set_cloog_options.
3949 (outermost_loop_layer): Removed.
3950 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
3951 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
3952 mark_old_loops, remove_dead_loops): New.
3953 (gloog): Rewritten.
3954 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
3955 (const_column_index, get_first_matching_sign_row_index,
3956 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
3957 get_upper_bound): New.
3958 (graphite_trans_bb_strip_mine): Also update the iv map.
3959
3960 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
3961 (struct name_tree): Add a loop field.
3962 (struct scop): Add a graphite_loops_mapping field.
3963 (SCOP_LOOPS_MAPPING): New.
3964 (debug_clast_stmt): Declare.
3965 * lambda.h (find_induction_var_from_exit_cond): Declare.
3966 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
3967 * cfgloop.h (update_dominators_in_loop): Removed declaration.
3968 (create_empty_loop_on_edge): Updated.
3969 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
3970 rename_variables_in_bb): Declare.
3971 * tree-cfg.c (remove_bb): Extern.
3972
3973 * testsuite/gcc.dg/graphite/block-0.c: New.
3974
39752008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3976 Sebastian Pop <sebastian.pop@amd.com>
3977
3978 * graphite.c (strip_mine_profitable_p): New.
3979 (graphite_trans_bb_block): Disable strip mining if not profitable.
3980
3981 * testsuite/gcc.dg/graphite/scop-18.c: New.
3982 * testsuite/gcc.dg/graphite/scop-17.c: Fixed.
3983 * testsuite/gcc.dg/graphite/scop-16.c: Fixed.
3984
39852008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
3986 Jan Sjodin <jan.sjodin@amd.com>
3987 Sebastian Pop <sebastian.pop@amd.com>
3988
3989 * graphite.c (is_interchange_valid): New.
3990 (graphite_trans_bb_block): Check loop nest of basic block for legality
3991 of interchange.
3992
3993 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
3994 outer_most_loop, gbb_outer_most_loop_index): New.
3995
3996 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
3997 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
3998 * testsuite/gcc.dg/graphite/scop-16.c: New.
3999 * testsuite/gcc.dg/graphite/scop-17.c: New.
4000
40012008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
4002
4003 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
4004 (graphite_trans_scop_block): Ignore SCoPs without bbs.
4005
40062008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
4007
4008 * graphite.c (new_scop): Initialize SCOP_EXIT.
4009 (scopdet_info): Add.
4010 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
4011 (build_scops_1): Cleanup, bugfixes.
4012 (build_scops): Cleanup.
4013
4014 * testsuite/gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
4015 * testsuite/gcc.dg/graphite/scop-15.c: Add SCoP numbers.
4016
40172008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
4018
4019 * testsuite/gfortran.dg/graphite/scop-1.f: Update to reduced test case.
4020
4021 * testsuite/gfortran.dg/graphite/graphite.exp: Use
4022 DEFAULT_GRAPHITE_FLAGS.
4023
4024 * testsuite/gcc.dg/graphite/scop-15.c: Update to reduced test case.
4025
40262008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
4027
4028 * graphite.c (scan_tree_for_params): Do not assert any more if
4029 MULT_EXPR parameter is negative.
4030
4031 * testsuite/gfortran.dg/graphite/scop-1.f: New.
4032
4033 * testsuite/gfortran.dg/graphite/graphite.exp: New.
4034
4035 * testsuite/gcc.dg/graphite/scop-15.c: New.
4036
40372008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
4038
4039 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
4040
40412008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
4042
4043 * graphite.c (graphite_trans_bb_swap_loops): Rename from
4044 graphite_swap_loops.
4045 (graphite_trans_bb_move_loop): New.
4046 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
4047 (graphite_trans_bb_block): New.
4048 (graphite_trans_loop_block): New.
4049 (graphite_trans_scop_swap_1and2): Rename from
4050 graphite_trans_swap_1and2.
4051 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
4052 (graphite_trans_scop_block): New.
4053 (graphite_apply_transformations): Rename from
4054 graphite_transformations.
4055
4056 * testsuite/gcc.dg/graphite/scop-matmult.c: New.
4057
40582008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
4059
4060 * graphite.c (gbb_compare): New.
4061 (graphite_sort_gbbs): New.
4062 (gbb_can_be_ignored): New.
4063 (scop_remove_ignoreable_gbbs): New.
4064 (graphite_transformations): Cleanup and add
4065 scop_remove_ignoreable_gbbs.
4066 * lambda.h (lambda_vector_compare): New.
4067
40682008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
4069
4070 * graphite.c (print_graphite_bb): Correct printing of static schedule.
4071 (graphite_swap_loops): int -> unsigned
4072 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
4073 (graphite_transformations): New.
4074 (graphite_transform_loops): Move to graphite_transformations.
4075 * graphite.h (gbb_nb_loops): Return unsigned.
4076
40772008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
4078
4079 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
4080 the domain matrix. This makes scop-0.c work again.
4081
40822008-06-20 Richard Guenther <rguenther@suse.de>
4083
4084 * graphite.h: Adjust copyright to GPLv3.
4085 * graphite.c: Likewise.
4086 (stmt_simple_memref_for_scop_p): Split out from ...
4087 (stmt_simple_for_scop_p): ... here. Fix handling of calls
4088 and simplify.
4089 (get_bb_type): Optimize.
4090 (is_pred): Remove.
4091 (is_bb_addable): Fix memleak, replace is_pred call with
4092 single_pred.
4093 (build_scops): Use current_loops.
4094 (param_index): Fix memleak.
4095
40962008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4097
4098 * graphite.c: Fix formatting.
4099
41002008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4101
4102 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
4103 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
4104 (create_var_name, save_var_name): Newly defined functions.
4105 (initialize_cloog_names): Part of the code factored out to
4106 save_var_name.
4107 (clast_to_gcc_expression): Now handles the case of clast_red_sum
4108 in clast_reduction statement.
4109 (graphite_create_new_loop): Now takes a new parameter
4110 for outer_loop.
4111 (translate_clast): Now also takes the context_loop and bb_exit
4112 parameters. Rewritten the code so that it creates a gimple code
4113 inside the given context.
4114 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
4115 remove_cond_expr, disconnect_cond_expr,
4116 disconnect_virtual_phi_nodes): Newly defined functions.
4117 * graphite.h (struct scop): added old_ivs vector.
4118 SCOP_OLDIVS: New macro.
4119
41202008-06-19 Sebastian Pop <sebastian.pop@amd.com>
4121
4122 * cfgloopmanip.c: Add missing function comments, fix formatting.
4123
41242008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4125
4126 * cfgloopmanip.c (update_dominators_in_loop): Defined.
4127 (create_empty_loop_on_edge): Defined.
4128 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
4129 instead of void.
4130 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
4131 (update_dominators_in_loop): Declared as extern
4132 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
4133
41342008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
4135
4136 * graphite.c (print_graphite_bb): Allow changing number of loops
4137 in SCoP domain.
4138 (initialize_cloog_names): Allow changing number of loops.
4139 (build_cloog_prog): Simplify.
4140 (find_transform): Enable cloog option --strides.
4141 (graphite_swap_loops): New.
4142 (graphite_strip_mine_loop): New.
4143 (graphite_trans_swap_1and2): New.
4144 (graphite_trans_strip): New.
4145 (graphite_transform_loops): Add graphite_trans_strip.
4146 * graphite.h (scop_max_loop_depth): New.
4147
41482008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
4149
4150 * graphite.c (build_scop_iteration_domain): Remove forgotten
4151 line. (Fixes compile)
4152
41532008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
4154
4155 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
4156 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
4157 (build_bb_loops): New.
4158 (graphite_transform_loops): Add build_bb_loops.
4159 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
4160 numbers.
4161 * graphite.h (graphite_bb): Add loops.
4162 (gbb_nb_loops): New.
4163 (gbb_loop_at_index): New.
4164 (gbb_loop_index): New.
4165 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
4166 using nb_params_in_scop.
4167
41682008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
4169
4170 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
4171 (build_scop_canonical_schedules): Build minimized schedule.
4172 (schedule_to_scattering): Adapt to minimized schedule.
4173 * graphite.h (graphite_bb): Add/Update descriptions.
4174
41752008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
4176 Tobias Grosser <grosser@fim.uni-passau.de>
4177
4178 * graphite.c (print_graphite_bb): Add condition printing.
4179 (dump_value): New.
4180 (dump_gbb_conditions): New.
4181 (build_scop_conditions_1): New.
4182 (build_scop_conditions): New.
4183 * graphite.h (graphite_bb): Add conditions.
4184
41852008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
4186
4187 * graphite.c (print_graphite_bb):
4188 (free_graphite_bb): New.
4189 (free_scop): Free bbs.
4190 (get_bb_type): Free doms.
4191 (build_scop_context): Free context matrix.
4192 (build_loop_iteration_domains): Remove unused code.
4193 (build_cloog_prog): Free scattering function and blocklist.
4194 (find_transform): Free options.
4195
41962008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
4197
4198 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
4199 Remove unnecessery cloog data structures. Make a copy of the domain
4200 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
4201 unnecessary cloog data structures. Fix memory leaks. Remove insert
4202 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
4203 used.
4204 (build_scop_iteration_domain): Remove unnecessary cloog
4205 data structures. Fix memory leaks.
4206 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
4207 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
4208
42092008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4210
4211 * graphite.c (find_scop_params): Remove initialize_cloog_names.
4212
42132008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4214
4215 * graphite.c (end_scop): Style fix.
4216 (schedule_to_scattering): Style and comment fix.
4217
42182008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4219 * graphite.c (print_graphite_bb): Fix definiton of
4220 schedule_to_scattering.
4221 (initialize_cloog_names): Change nb_scattdims to max loop
4222 depth in SCoP.
4223 (schedule_to_scattering): Take parameter for number of scattering
4224 dimensions.
4225 (build_cloog_prog): Only build as much scattering dimensions as
4226 necessary.
4227
42282008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4229
4230 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
4231 in polyhedron/aermod.f90.
4232
42332008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
4234 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
4235 Harsha Jagasia <harsha.jagasia@amd.com>
4236
4237 * graphite.c (is_bb_addable): Fix segfault.
4238
42392008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
4240
4241 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
4242 with multiple exits and conditional handling in edge cases.
4243 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
4244
4245 * testsuite/gcc.dg/graphite/scop-14.c: New.
4246
42472008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
4248 Adrien Eliche <aeliche@isty.uvsq.fr>
4249
4250 * graphite.c (is_bb_addable): Add more comments and enhance
4251 readablity of the source code. Fix memory leak.
4252 (is_loop_exit): Fix memory leak.
4253
42542008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
4255
4256 * graphite.c (first_loop_in_scop): Deleted.
4257 (setup_cloog_loop): Only walk the loop chain for inner loops.
4258 (build_scop_iteration_domain): Execute setup_cloog_loop for
4259 all loops in the first layer.
4260
42612008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
4262
4263 * graphite.c (scan_tree_for_params): Change the way params are
4264 added to be indepenent of the number of loops.
4265 (setup_cloog_loop): Revert to short matrix format. Fix parameter
4266 handling.
4267 (build_cloog_prog): Revert to short matrix format.
4268
42692008-06-05 Sebastian Pop <sebastian.pop@amd.com>
4270 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
4271
4272 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
4273 warning.
4274
42752008-06-05 Sebastian Pop <sebastian.pop@amd.com>
4276
4277 * graphite.c (nb_data_refs_in_scop): New.
4278 (graphite_transform_loops): Print more stats: number of
4279 loops, basic blocks and data references per scop.
4280
42812008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4282 Jan Sjodin <jan.sjodin@amd.com>
4283
4284 * graphite.c (loop_affine_expr, idx_record_params,
4285 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
4286 instead of instantiate_parameters.
4287
42882008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4289
4290 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
4291 add support for parameters, add STATIC_SCHEDULE at the right places,
4292 cleanup.
4293
42942008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4295
4296 * graphite.c (build_scop_loop_nests): Only add the loops, that
4297 are contained completely in the SCoP.
4298 (build_cloog_prog): Disable scattering, until schedule_to_scattering
4299 and the domains are fixed.
4300 (build_scop_canonical_schedules): Add support for bbs not contained
4301 in any SCoP.
4302
43032008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4304
4305 * graphite.h (scop_contains_loop): Update comments to match
4306 the actual behavior.
4307 (scop_contains_loop): New.
4308 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
4309
43102008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4311
4312 * graphite.c (get_bb_type): On function body, i.e. loop_0,
4313 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
4314 as GBB_COND_HEADER.
4315
43162008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4317 Tobias Grosser <grosser@fim.uni-passau.de>
4318
4319 * graphite.c (graphite_transform_loops): Early return when
4320 there are no loops in the function.
4321
43222008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4323 Jan Sjodin <jan.sjodin@amd.com>
4324
4325 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
4326 offset of the last loop.
4327 (setup_cloog_loop): Copy the entire outer constraint matrix.
4328
43292008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4330 Jan Sjodin <jan.sjodin@amd.com>
4331
4332 * graphite.c (stmt_in_scop_p, function_parameter_p,
4333 invariant_in_scop_p): Removed.
4334 (scan_tree_for_params): Can be used with no constraint
4335 matrix for gathering parameters.
4336 (idx_record_params): Don't use idx_record_param, instead use
4337 scan_tree_for_params.
4338 (find_scop_parameters): Same.
4339 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
4340 Fix the size of loop domains.
4341 (schedule_to_scattering): Exit when the outer loop is not in scop.
4342 (find_transform): Enable build_cloog_prog.
4343
43442008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4345 Jan Sjodin <jan.sjodin@amd.com>
4346
4347 * graphite.c (schedule_to_scattering): Make scattering domains
4348 uniformly of the same size, as required by CLooG 0.14.0 and before.
4349
43502008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4351 Jan Sjodin <jan.sjodin@amd.com>
4352
4353 * graphite.c (schedule_to_scattering): Rewrite, correct the
4354 translation of the scheduling function to scattering.
4355 (build_cloog_prog): Call schedule_to_scattering only once.
4356 * graphite.h (scop_loop_index): Do not fail for loops not
4357 in the scop: return -1.
4358
43592008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
4360
4361 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
4362 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
4363 (setup_cloog_loop): Export GBB_DOMAIN.
4364 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
4365 able to rebuild the original control flow.
4366 * graphite.h (graphite_bb): Add domain field and access macro.
4367 (GBB_DOMAIN): New.
4368
43692008-05-30 Sebastian Pop <sebastian.pop@amd.com>
4370
4371 * graphite.c (debug_gbb): New.
4372 (print_scop, build_graphite_bb): Use SCOP_BBS.
4373 (build_scop_bbs): Reimplemented.
4374 (dfs_bb_in_scop_p): Removed.
4375 (build_scop_loop_nests): Reorder loops inserted in
4376 SCOP_LOOP_NEST: outer loops should come first.
4377 (build_scop_canonical_schedules): Reinitialize at zero
4378 the components of the SCOP_STATIC_SCHEDULE for the loops
4379 that have already been parsed.
4380
4381 * graphite.h (debug_gbb): Declared.
4382
43832008-05-30 Sebastian Pop <sebastian.pop@amd.com>
4384 Jan Sjodin <jan.sjodin@amd.com>
4385
4386 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
4387 (graphite_loop_to_gcc_loop): Removed.
4388 (remove_all_edges): New.
4389 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
4390 (gloog): Remove useless code.
4391
43922008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
4393
4394 * graphite.c (get_bb_type): Reworked. We distinguish between
4395 loops with one or multiple exits.
4396 (is_loop_exit): New.
4397 (is_pred): New.
4398 (is_bb_addable): Rework condition handling, now support for case
4399 case statements and loops with multiple exits.
4400
4401 * testsuite/gcc.dg/graphite/scop-11.c: New.
4402 * testsuite/gcc.dg/graphite/scop-12.c: New.
4403 * testsuite/gcc.dg/graphite/scop-13.c: New.
4404
44052008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
4406
4407 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
4408 we have too many colors.
4409
44102008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
4411
4412 * doc/invoke.texi (-ftree-loop-fusion): Document.
4413 * tree-pass.h (pass_loop_fusion): Declared.
4414 * tree-loop-fusion.c: New.
4415 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
4416 * tree-data-ref.c (find_data_references_in_loop): Make extern.
4417 * tree-data-ref.h (find_data_references_in_loop): Declared.
4418 * common.opt (ftree-loop-fusion): Declared.
4419 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
4420
44212008-05-21 Sebastian Pop <sebastian.pop@amd.com>
4422
4423 * graphite.c (build_access_matrix): Fix typo from the merge.
4424
44252008-05-20 Sebastian Pop <sebastian.pop@amd.com>
4426
4427 * Merge from mainline (130800:135673).
4428
44292008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4430
4431 * graphite.c (end_scop): The exit of the scop is not part of the scop.
4432 Update dominators after splitting.
4433
44342008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4435
4436 * graphite.c (is_bb_addable): Return the harmful statement.
4437 Factor up some code.
4438 (end_scop): New. Splits end of scope bbs on a harmful statement.
4439 (build_scops_1): Call end_scop.
4440
44412008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4442
4443 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
4444 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
4445 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
4446 build_scops_1): Removed.
4447 (build_scops_2): Renamed build_scops_1.
4448
44492008-05-06 Sebastian Pop <sebastian.pop@amd.com>
4450
4451 * graphite.c: Fix formatting.
4452
44532008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4454
4455 * graphite.c (get_bb_type): New.
4456 (move_scops): New.
4457 (build_scops_2): New.
4458 (is_bb_addable): New.
4459 (build_scops): Switch the scop detection.
4460 (build_scop_bbs): Add entry bb to scop.
4461 * graphite.h (struct scop): Update comment.
4462
44632008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4464
4465 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
4466 more colors.
4467
44682008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4469
4470 * testsuite/gcc.dg/graphite/scop-1.c: Update.
4471 * testsuite/gcc.dg/graphite/scop-2.c: Update.
4472 * testsuite/gcc.dg/graphite/scop-4.c: Update.
4473 * testsuite/gcc.dg/graphite/scop-5.c: Add.
4474 * testsuite/gcc.dg/graphite/scop-6.c: Add.
4475
44762008-05-06 Sebastian Pop <sebastian.pop@amd.com>
4477
4478 * testsuite/gcc.dg/graphite/scop-0.c: Add.
4479 * testsuite/gcc.dg/graphite/scop-7.c: Add.
4480 * testsuite/gcc.dg/graphite/scop-8.c: Add.
4481 * testsuite/gcc.dg/graphite/scop-9.c: Add.
4482 * testsuite/gcc.dg/graphite/scop-10.c: Add.
4483
44842008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4485
4486 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
4487 Check affine expressions depending on the outermost loop
4488 instead of a scop.
4489 (stmt_simple_for_scop_p): Same.
4490 (harmfule_stmt_in_scop): Same.
4491
44922008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
4493
4494 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
4495 mark entry and exit, that are not part of the SCoP and update HTML
4496 formatting.
4497
44982008-04-25 Sebastian Pop <sebastian.pop@amd.com>
4499
4500 * graphite.c (basic_block_simple_for_scop_p): Renamed
4501 harmful_stmt_in_bb.
4502 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
4503 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
4504 (all_preds_visited_p, all_succs_visited_p,
4505 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
4506 scop_end_loop): New.
4507 (build_scops): Do not use dfs_enumerate_from.
4508
4509 * testsuite/gcc.dg/graphite/scop-{1,2,4}.c: Updated.
4510
45112008-04-23 Sebastian Pop <sebastian.pop@amd.com>
4512
4513 * graphite.c: Add comments to functions that are missing a
4514 description.
4515 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
4516
45172008-04-23 Sebastian Pop <sebastian.pop@amd.com>
4518
4519 * graphite.c (nb_params_in_scop): Moved...
4520 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
4521 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
4522 (clast_to_gcc_expression): Reduce column size to less than 80.
4523 (graphite_create_iv): Return the new name of the IV.
4524 (find_transform): Set options->esp and options->cpp.
4525 (gloog): Comment out the invalidation of the old loop code.
4526 (initialize_dependence_polyhedron): Replace scop_nb_params with
4527 nb_params_in_scop.
4528
4529 * graphite.h (nb_params_in_scop): ... here.
4530 (scop_nb_params): Removed.
4531 (loop_domain_dim): Return something even when the loop was not
4532 found in the hash table: avoid ICEing on all the graphite.exp
4533 testcases.
4534
45352008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4536
4537 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
4538
4539 * graphite.c (build_scop_dynamic_schedules): Schedule is built
4540 according to nesting level.
4541 (find_scop_parameters): Call instantiate_parameters.
4542 (scan_tree_for_params): Extend it to handle general affine bounds.
4543 Inner loop bound can depend on outer loop induction variable.
4544 (setup_cloog_loop): tmp variable is allocated on stack. Call
4545 instantiate_parameters with respect to outermost_loop_in_scop.
4546 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
4547 graphite.h.
4548 (create_empty_loop): Function loopify should be given edge
4549 probability, instead of edge frequency. Dominance relation from
4550 switch_bb to loop_header.
4551 (clast_to_gcc_expression): Added handling of clast_reduction node.
4552 (gloog): New functionality for removing old loop.
4553 (test_dependence): Factored out from build_rdg_all_levels.
4554 (build_rdg_all_levels): Dependence testing factored out to
4555 test_dependence function.
4556
4557 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
4558 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
4559 from graphite.c
4560
45612008-04-07 Sebastian Pop <sebastian.pop@amd.com>
4562
4563 * graphite.c (free_scop, param_index, initialize_cloog_names,
4564 nb_params_in_scop): Use name_tree map instead of just a tree
4565 for keeping track of the variable name associated to that tree.
4566 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
4567 clast_to_gcc_expression, graphite_create_iv,
4568 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
4569 graphite_stmt_to_gcc_stmt): New.
4570 (gloog): Call these.
4571 * graphite.h (struct name_tree): New.
4572 (struct scop): Use name_tree instead of tree for params.
4573 Store a vector of name_tree for new_ivs.
4574 (SCOP_NEWIVS): New.
4575 (scop_nb_params): Use name_tree instead of tree.
4576
45772008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
4578 Sebastian Pop <sebastian.pop@amd.com>
4579
4580 * tree-bounds.c: New.
4581 * tree-bounds.h: New.
4582 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
4583 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
4584 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
4585 flag_mudflap.
4586 * gcc.c: Same.
4587 * toplev.c: Same.
4588 * c-cppbuiltin.c: Same.
4589 * c-pragma.c: Same.
4590 * common.opt: Same.
4591 * varasm.c: Same.
4592 * tree-outof-ssa.c: Same.
4593 * c-common.c: Same.
4594 * Makefile.in: Same.
4595
45962008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
4597 Sebastian Pop <sebastian.pop@amd.com>
4598
4599 * tree-loop-distribution.c (remaining_stmts,
4600 upstream_mem_writes): Removed static variables.
4601 (copy_loop_before, create_bb_after_loop,
4602 mark_nodes_having_upstream_mem_writes, free_rdg_components,
4603 rdg_build_components, rdg_build_partitions,
4604 dump_rdg_partitions): Extern.
4605 (generate_loops_for_partition, generate_code_for_partition): Do not
4606 return a bool.
4607 (already_processed_vertex_p, predecessor_has_mem_write,
4608 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
4609 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
4610 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
4611 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
4612 Pass remaining_stmts and upstream_mem_writes as parameters.
4613 (rdg_component): Moved...
4614 (build_rdg_partition_for_component): Do not aggregate components when
4615 flag_streamize_loops is set.
4616 (gen_sequential_loops): New.
4617 (ldist_gen): Call gen_sequential_loops.
4618
4619 * tree-pass.h (pass_loop_streamization): Declared.
4620
4621 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
4622 basic blocks when loops structures exist.
4623
4624 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
4625
4626 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
4627
4628 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
4629 eliminate_local_variables_stmt, eliminate_local_variables,
4630 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
4631 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
4632 of code delimited by two edges in the CFG.
4633 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
4634 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
4635 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
4636 the case of parallelisation of reductions.
4637 (create_loop_fn): Extern.
4638 (create_omp_parallel_region): New.
4639
4640 * tree-data-ref.c (dump_data_dependence_relation): Don't call
4641 dump_data_reference for printing dra and drb.
4642 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
4643 RDGE_RELATION.
4644 (build_rdg): Don't call free_dependence_relations for the moment, as
4645 we attach dependence relations on each edge of the RDG.
4646 To be fixed later.
4647
4648 * tree-data-ref.h (rdg_component): ...here.
4649 (struct rdg_edge): New field ddr_p relation.
4650 (RDGE_RELATION): New.
4651 (create_bb_after_loop, copy_loop_before,
4652 mark_nodes_having_upstream_mem_writes, rdg_build_components,
4653 rdg_build_partitions, dump_rdg_partitions,
4654 free_rdg_components): Declared.
4655
4656 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
4657 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
4658
4659 * tree-loop-streamization.c: New.
4660
4661 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
4662 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
4663
4664 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
4665
4666 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
4667
4668 * passes.c: Schedule pass_loop_streamization.
4669
46702008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
4671
4672 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
4673 update comment.
4674
46752008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
4676
4677 * graphite.c (dot_all_scops): Update formatting.
4678 Bbs can now be part of more than one SCoP.
4679
46802008-03-04 Sebastian Pop <sebastian.pop@amd.com>
4681
4682 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
4683 malloc problems.
4684 (loop_domain_dim): Check for unregistered toplev SCOP loop.
4685 * graphite.h (loop_to_cloog_loop): New.
4686
46872008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4688
4689 * graphite.c (loop_domain_dim, ref_nb_loops,
4690 loop_iteration_vector_dim): New.
4691 (build_access_matrix_with_af, build_access_matrix,
4692 initialize_dependence_polyhedron): Fixed for new matrix layout.
4693 No longer assume that all iteration domains are of the same
4694 dimensionality.
4695
46962008-03-02 Sebastian Pop <sebastian.pop@amd.com>
4697
4698 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
4699 defined in a loop at depth 0 is invariant.
4700 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
4701 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
4702 be called at loop depth 0.
4703
4704 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
4705 a parameter.
4706 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
4707 (down_open_scop): Removed.
4708 (loop_in_scop_p): Redefined.
4709 (scop_affine_expr): New argument: scop.
4710 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
4711 a harmful statement ending a scop.
4712 (basic_block_simple_for_scop_p): New argument: scop.
4713 (get_loop_start): Removed.
4714 (new_scop): Initialize SCOP_LOOPS.
4715 (free_scop): Free SCOP_LOOPS.
4716 (succs_at_same_depth, preds_at_same_depth): New.
4717 (end_scop): Test the validity of a scop.
4718 (add_dominators_to_open_scops): New.
4719 (test_for_scop_bound): Call add_dominators_to_open_scops.
4720 Add cases for opening and closing multiple scops.
4721 (build_scops, build_scop_bbs): Iterate over basic blocks in
4722 depth first order.
4723 (build_graphite_bb): Pass scop directly.
4724 (dfs_bb_in_scop_p): New.
4725 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
4726 several times.
4727 (nb_loops_around_gb): Use loop_in_scop_p.
4728 (schedule_to_scattering): Disabled for the moment the code computing
4729 the "textual order for outer loop".
4730
4731 * graphite.h (struct scop): New field loops.
4732 (SCOP_LOOPS): New.
4733 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
4734
4735 * testsuite/gcc.dg/graphite/scop-{1,...,7}.c: Updated.
4736
47372008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
4738 Sebastian Pop <sebastian.pop@amd.com>
4739
4740 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
4741 * common.opt (fstreamize-loops): New.
4742 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
4743 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
4744 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
4745 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
4746
47472008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4748
4749 * tree-data-ref.c (build_empty_rdg): New.
4750 (build_rdg): Use it.
4751 * tree-data-ref.h (build_empty_rdg): Declared.
4752 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
4753 (find_vertex_for_stmt): Removed.
4754 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
4755
47562008-02-21 Sebastian Pop <sebastian.pop@amd.com>
4757
4758 * tree-loop-distribution.c (generate_builtin): After cancelling the
4759 loop tree, also delete basic blocks.
4760 (rdg_flag_uses): Stop recursion when a vertex has already been
4761 processed.
4762
47632008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4764
4765 * graphite.c (build_scop_alpha): Removed.
4766 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
4767 and dump_dependence_graph to avoid compiler warnings.
4768
47692008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4770
4771 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
4772 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
4773 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
4774 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
4775 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
4776 (initialize_dependence_polyhedron, find_vertex_for_stmt,
4777 initialize_data_dependence_polyhedron, is_empty_polyhedron,
4778 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
4779 dump_dependence_graph): New.
4780 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
4781 (GBB_ALPHA): New.
4782 (struct scop): New field loop2cloog_loop.
4783 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
4784 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
4785
47862008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4787
4788 * graphite.c (build_graphite_bb): Fix initialization
4789 of the graphite basic block.
4790
47912008-02-05 Sebastian Pop <sebastian.pop@amd.com>
4792
4793 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
4794 loop domain matrix. Pass in the number of loops contained in the
4795 constraint matrix.
4796 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
4797 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
4798 loops that are not surrounding the current loop are not represented
4799 in the domain constraint matrix.
4800 (build_scop_iteration_domain): Initial domain constraint matrix
4801 contains only the eq/ineq, cst, and scop parameters columns.
4802
48032008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
4804
4805 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
4806 (print_graphite_bb): Print scattering.
4807
48082008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
4809
4810 * graphite.c (initialize_cloog_names): Initialize names of
4811 scattering variables.
4812
48132009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
4814
4815 * graphite.c (dot_all_scops_1): Disable debug output while
4816 printing graph.
4817
48182008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
4819
4820 * graphite.c (find_transform): Change cloog output language to C.
4821
48222008-01-27 Sebastian Pop <sebastian.pop@amd.com>
4823
4824 * tree-loop-distribution.c (generate_memset_zero,
4825 generate_builtin, generate_code_for_partition,
4826 rdg_flag_all_uses): New.
4827 (rdg_flag_uses): Gather in the same partition the statements defining
4828 the VUSES of the current statement.
4829 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
4830 Gather in the same partition not only the stores to the same memory
4831 access, but also the reads.
4832 (ldist_generate_loops): Renamed ldist_gen.
4833
48342008-01-24 Sebastian Pop <sebastian.pop@amd.com>
4835 Tobias Grosser <grosser@fmi.uni-passau.de>
4836
4837 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
4838 next pointer, don't use the inner pointer.
4839
48402008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
4841
4842 * graphite.c (dot_all_scops, dot_all_scops_1): New.
4843 (find_transform): Call dot_all_1.
4844 * graphite.h (dot_all_scops): Declared.
4845
48462007-12-14 Sebastian Pop <sebastian.pop@amd.com>
4847
4848 * tree-loop-distribution.c: Fix apsi.f ICE.
4849 (create_bb_after_loop): New.
4850 (generate_loops_for_partition): Use it.
4851 * testsuite/gfortran.dg/ldist-1.f90: New.
4852
4853 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
4854 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
4855
48562007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
4857
4858 * graphite.c (find_transform): Dump cloog program sent to cloog.
4859
48602007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
4861
4862 * graphite.c (initialize_cloog_names): Initialize cloog
4863 iterator names.
4864
48652007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
4866
4867 * graphite.c (build_scop_context): Fix typo, for the matrix
4868 format: insert '0 >= 0' instead of '-1 >= 0'.
4869
48702007-12-13 Sebastian Pop <sebastian.pop@amd.com>
4871
4872 * Fix merge problems.
4873
48742007-12-13 Sebastian Pop <sebastian.pop@amd.com>
4875
4876 * graphite.c (setup_cloog_loop): Fix typo.
4877
48782007-12-12 Sebastian Pop <sebastian.pop@amd.com>
4879
4880 * doc/invoke.texi (-ftree-loop-distribution): Documented.
4881 * tree-loop-distribution.c: Reimplemented.
4882 * tree-pass.h (pass_loop_distribution): New.
4883 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
4884 print_loops.
4885 * graphds.h (struct graph): New field indexes.
4886 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
4887
4888 * tree-vect-analyze.c: Remove declaration of static functions when not
4889 needed.
4890 * tree-vectorizer.c: Same.
4891 (rename_variables_in_loop): Now extern.
4892 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
4893 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
4894 calling redirect_edge_and_branch_force.
4895
4896 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
4897
4898 * tree-data-ref.c: Don't include tree-chrec.h.
4899 (debug_data_dependence_relations): New.
4900 (dump_data_dependence_relation): Call dump_data_reference on data refs
4901 in the relation.
4902 (same_access_functions): Moved...
4903 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
4904 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4905 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
4906 struct rdg_vertex_info, ): New.
4907 (create_rdg_edge_for_ddr): Compute the dependence level before looking
4908 at DDR_REVERSED_P.
4909 (create_rdg_vertices): Initialize the htab of graph->indexes.
4910 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
4911 (stmts_from_loop): Don't save LABEL_EXPR.
4912 (hash_stmt_vertex_info, eq_stmt_vertex_info,
4913 hash_stmt_vertex_del): New.
4914 (build_rdg): Initialize rdg->indexes.
4915 (free_rdg, stores_from_loop, ref_base_address,
4916 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
4917 have_similar_memory_accesses_1, ref_base_address_1,
4918 remove_similar_memory_refs): New.
4919
4920 * tree-data-ref.h: Include tree-chrec.h.
4921 (debug_data_dependence_relations): Declared.
4922 (same_access_functions): ...here. Now static inline.
4923 (ddr_is_anti_dependent, ddrs_have_anti_deps,
4924 ddr_dependence_level): New.
4925 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
4926 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
4927 RDG_MEM_READS_STMT): New.
4928 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
4929 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
4930 rdg_vertex_for_stmt): Declared.
4931 (struct rdg_edge): New field level.
4932 (RDGE_LEVEL, free_rdg): New.
4933 (stores_from_loop, remove_similar_memory_refs,
4934 rdg_defs_used_in_other_loops_p,
4935 have_similar_memory_accesses): Declared.
4936 (rdg_has_similar_memory_accesses): New.
4937
4938 * lambda.h (dependence_level): New.
4939 * common.opt (ftree-loop-distribution): New.
4940 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
4941 (print_loop_ir): Renamed print_loops.
4942 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
4943 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
4944 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
4945 (tree-loop-distribution.o): Added.
4946 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
4947 (mark_virtual_ops_in_bb): New.
4948 (print_loops_bb, debug_loop_num, debug_loop): New.
4949 * passes.c: Scheduled pass_loop_distribution.
4950
49512007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4952
4953 * graphite.c (scan_tree_for_params): Correct the number of columns
4954 for polylib format.
4955 (nb_flat_iterator): New.
4956 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
4957 (build_scop_iteration_domain): Correct the number of columns for
4958 polylib format.
4959
49602007-12-12 Sebastian Pop <sebastian.pop@amd.com>
4961
4962 * Merge from mainline (129697:130800).
4963
49642007-10-30 Sebastian Pop <sebastian.pop@amd.com>
4965
4966 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
4967 dominated by SCoP's exit.
4968 (graphite_transform_loops): Compute post dominators.
4969
49702007-10-28 Sebastian Pop <sebastian.pop@amd.com>
4971
4972 * Merge from mainline (127169:129697).
4973
49742007-10-28 Sebastian Pop <sebastian.pop@amd.com>
4975
4976 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
4977 parameter for the basic block that contains the expression. Use
4978 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
4979 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
4980 the expression.
4981 * graphite.h (gbb_loop): New.
4982 (GBB_LOOP): Removed.
4983
49842007-08-03 Sebastian Pop <sebpop@gmail.com>
4985
4986 * Makefile.in: Fix merge problem.
4987
49882007-08-03 Sebastian Pop <sebpop@gmail.com>
4989
4990 * Merge from mainline (125309:127169).
4991 * tree-loop-distribution.c: Disabled.
4992
49932007-06-05 Sebastian Pop <sebpop@gmail.com>
4994
4995 * Merge from mainline (r123693:125309).
4996
49972007-05-30 Sebastian Pop <sebpop@gmail.com>
4998
4999 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
5000 correct_modify_p
5001 (correct_modify_p, check_statements, number_of_lvalue_uses,
5002 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
5003 instead of MODIFY_EXPR.
5004 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
5005 and push new edges.
5006
50072007-05-24 Sebastian Pop <sebpop@gmail.com>
5008
5009 * tree-loop-distribution.c (struct rdg): Replace arrays by
5010 VECs for edges and vertices.
5011 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
5012 (RDGV_NB_PARTITIONS): New.
5013 (PRDG_NBV, PRDG_NBE): Removed.
5014 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
5015 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
5016 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
5017
50182007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
5019 Sebastian Pop <sebpop@gmail.com>
5020
5021 * doc/invoke.texi (-ftree-loop-distribution): Document.
5022 * tree-loop-distribution.c: New file.
5023 * tree-pass.h (pass_loop_distribution): Declared.
5024 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
5025 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
5026 and set reversed_p.
5027 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
5028 (DDR_REVERSED_P): New.
5029 * common.opt (-ftree-loop-distribution): New.
5030 * tree-flow.h (distribute_loops): Declared.
5031 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
5032 * passes.c (init_optimization_passes): Schedule loop distribution.
5033
50342007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
5035
5036 * graphite.c (print_graphite_bb): Don't call dump_data_references.
5037 (print_scop): Don't print when scop is NULL.
5038 (build_scop_context, find_transform): Don't output to stderr.
5039
50402007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
5041
5042 * tree-data-ref.c: Don't include graphite.h.
5043 Comment out the code for printing data reference's scop.
5044 (build_access_matrix_with_af): Moved...
5045 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
5046 * graphite.c (build_access_matrix_with_af): ... here. Now static.
5047 (print_graphite_bb): Print basic block's schedule.
5048 (print_scop): Don't print the schedule, call cloog's pretty printer.
5049 (bb_in_scop_p): A basic block is in a scop only if it is both
5050 dominated and postdominated by the scop's entry and exit basic blocks.
5051 (function_parameter_p): New.
5052 (invariant_in_scop_p): Use function_parameter_p.
5053 (new_scop, save_scop): New.
5054 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
5055 save_scop.
5056 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
5057 (loop_in_scop_p): New.
5058 (scop_record_loop): Use loop_in_scop_p.
5059 (build_scop_domain): Renamed build_scop_iteration_domain.
5060 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
5061 nb_params_in_scop, build_scop_context, first_loop_in_scop,
5062 setup_cloog_loop, dot_scop_1, dot_scop): New.
5063 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
5064 (struct scop): Add a pointer to cloog's representation of a program.
5065
50662007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
5067
5068 * doc/invoke.texi (-ftree-check-verbose): Renamed
5069 -ftree-checks-verbose.
5070 * common.opt (flag_tree_check_verbose): Renamed
5071 flag_tree_checks_verbose.
5072 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
5073
50742007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
5075
5076 * configure: Regenerated.
5077 * config.in: Regenerated.
5078 * tree-ssa-loop.c (graphite_transforms): Execute
5079 graphite_transform_loops only when HAVE_cloog.
5080 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
5081 * graphite.c: Include polylibgmp.h and cloog.h.
5082 (graphite_transform_loops): Removed loops parameter.
5083 * tree-flow.h (graphite_transform_loops): Update declaration.
5084 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
5085 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
5086 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
5087 (OBJS-common): Remove dependence on graphite.o.
5088 (BACKEND): Depend on @GRAPHITE@.
5089
50902007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
5091
5092 * doc/invoke.texi (-ftree-check-verbose): Documented.
5093 * testsuite/gcc.dg/tree-checker/tree-checks-1.c: New.
5094 * testsuite/gcc.dg/tree-checker/tree-checks-2.c: New.
5095 * testsuite/gcc.dg/tree-checker/tree-checks-3.c: New.
5096 * testsuite/gcc.dg/tree-checker/tree-checks-4.c: New.
5097 * testsuite/gcc.dg/tree-checker/tree-checks.exp: New.
5098 * testsuite/gcc.dg/tree-checker/condates.crp: New.
5099 * common.opt (ftree-checks-verbose): New.
5100 * tree-check.c (tree_check_warning): Move extra stderr output
5101 under control of flag_tree_check_verbose.
5102
51032007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
5104
5105 * tree-match.c: Fix comments formatting.
5106 * tree-match.h: Fix comments formatting.
5107 * tree-check.c: Fix comments formatting.
5108 (tree_check_init): Restructure.
5109
51102007-04-12 Nic Volanschi <nic.volanschi@free.fr>
5111
5112 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
5113
51142007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
5115
5116 * Merge from mainline (r120733:123693).
5117
51182007-03-20 Nic Volanschi <nic.volanschi@free.fr>
5119
5120 * condate.y: New file.
5121 * tree-match.h (struct patt_info_s): New field sign.
5122 (struct condate_s): New field msg.
5123 (normalize_condate, name_condate, add_condate): New.
5124 (conds[], condate_parse): Made extern.
5125 * tree-check.c (tree_check_warning): First arg changed to cond;
5126 warning reformatted.
5127 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
5128 (tree_scan): New.
5129 (tree_check): Process trivial condates.
5130 (read_delimited_string): Removed.
5131 (print_cond): Print name and msg.
5132 (conds[]): Made extern.
5133 (parse_tree_check_file_once): Rewritten to use the parser in
5134 condate.y.
5135 Processing of option --tree_check_string moved to tree_scan().
5136 * Makefile.in: Added condate.y
5137
51382007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
5139
5140 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
5141 Use VECs instead of varrays.
5142 * diagnostic.h (lazy_dump_generic_node): Update declaration.
5143 * Makefile.in (pretty-print.o): Depend on vec.h.
5144 * pretty-print.c: Include tree.h and vec.h.
5145 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
5146 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
5147 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
5148 pp_free_list): Use VECs instead of varrays.
5149 * pretty-print.h: Do not include varray.h.
5150 (struct tree_chunk_s): Declaration moved before its use.
5151 (output_buffer): Rename varray field to chunks.
5152 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
5153 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
5154 save_global_holes): Use VECs instead of varrays.
5155 * tree-match.h: Declare VECs of cfg_node, and hole_p.
5156 * tree-check.c (scan_cfg_stmts, push_node,
5157 print_matching_stmt): Removed.
5158 (tree_check_instance, push_global_holes_if_new, tree_check,
5159 execute_tree_check): Use VECs instead of varrays.
5160 (gate_tree_check): Don't execute the CFG check when basic_block_info
5161 is not available.
5162
51632007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5164
5165 * Merge from mainline (r115016:120733).
5166
51672007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5168
5169 * Merge from mainline (r117632:117661).
5170
51712007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5172
5173 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
5174 * tree-pass.h (TDF_DEBUG, debug_p): New.
5175 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
5176 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
5177 get_loop_exit_condition, analyze_evolution_in_loop,
5178 analyze_initial_condition, analyze_scalar_evolution,
5179 instantiate_parameters, number_of_latch_executions): Use debug_p.
5180 * tree-chrec.c (chrec_apply): Use debug_p.
5181 * tree-data-ref.c: Include graphite.h.
5182 (dump_data_reference): Print also the access matrix.
5183 (analyze_array, analyze_indirect_ref, init_data_ref,
5184 analyze_offset_expr, address_analysis, object_analysis,
5185 create_data_ref, finalize_ddr_dependent,
5186 non_affine_dependence_relation, analyze_ziv_subscript,
5187 analyze_siv_subscript_cst_affine,
5188 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
5189 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
5190 analyze_miv_subscript, analyze_overlapping_iterations,
5191 build_classic_dist_vector, subscript_dependence_tester,
5192 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
5193 (build_access_matrix_with_af): No longer static.
5194 * tree-data-ref.h (scop_p): ... declaration here.
5195 (data_reference.scop): New field.
5196 (DR_SCOP, DR_ACCESS_MATRIX): New.
5197 (build_access_matrix_with_af, dr_num_subscripts): Declared.
5198 * graphite.c (print_graphite_bb): Call dump_data_references.
5199 (print_scop): Use scop_nb_loops and scop_dim_domain.
5200 (test_for_scop_bound): Use debug_p.
5201 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
5202 scop_nb_params.
5203 (scop_loop_index): Moved...
5204 (scop_record_loop): New.
5205 (build_scop_loop_nests): Use scop_record_loop.
5206 (build_scop_domain): Use scop_dim_domain.
5207 (build_access_matrix): Implemented.
5208 (build_scop_canonical_schedules): Use scop_nb_loops.
5209 (build_graphite_bb): Initialize GBB_SCOP.
5210 * graphite.h (scop_p): Moved...
5211 (graphite_bb.scop): New field.
5212 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
5213 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
5214 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
5215 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
5216 scop_loop_index): New.
5217 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
5218
52192007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
5220
5221 * Merge from mainline (r117661:120450).
5222
52232006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
5224
5225 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
5226 at the first declaration outside the varying loop, instantiate as
5227 far as possible.
5228 * tree-chrec.c (for_each_scev_op): New.
5229 * tree-chrec.h (for_each_scev_op): Declared.
5230 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
5231 * tree-data-ref.c (get_references_in_stmt,
5232 find_data_references_in_stmt): New, from trunk.
5233 (find_data_references_in_loop): Use get_references_in_stmt
5234 and find_data_references_in_loop, modified as in trunk.
5235 (build_access_matrix_with_af): New.
5236 * tree-data-ref.h (data_reference): Add a field access_matrix.
5237 (data_ref_loc): New, as in trunk.
5238 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
5239 invariant_in_scop_p, param_index, scan_tree_for_params,
5240 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
5241 idx_record_param, idx_record_params, build_access_matrix,
5242 build_scop_data_accesses, build_scop_canonical_schedules,
5243 build_graphite_bb, build_scop_bbs, find_params_in_bb,
5244 build_scop_params): New.
5245 * graphite.h (graphite_bb): New.
5246 (scop): Add fields static_schedule, params, loop_nest,
5247 iteration_domain.
5248 * lambda.h: Declare vecs of lambda_matrix.
5249 * tree-flow.h (print_loop_ir_bb): Declared.
5250 * tree-cfg.c (print_loop_ir_bb): New.
5251 (print_loop): Use print_loop_ir_bb.
5252
52532006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
5254
5255 * Merge from mainline (r115016:117632).
5256
52572006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
5258
5259 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
5260 break due to a warning.
5261
52622006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
5263
5264 * graphite.c (print_scops, debug_scops): New.
5265 (graphite_transform): Renamed graphite_find_transform.
5266 * graphite.h (debug_scops): Declared.
5267
52682006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
5269
5270 * tree-match.c: Reformat following the GNU style.
5271 * tree-match.h: Reformat following the GNU style.
5272 * tree-pattern.h: Removed empty file.
5273 * Makefile.in: Remove references to tree-pattern.h.
5274 * tree-check.c: Reformat following the GNU style.
5275 (execute_tree_check): Move gate condition code to...
5276 (gate_tree_check): ...here. New function.
5277 (pass_check): Use the gate function.
5278
52792006-07-04 Nic Volanschi <nic.volanschi@free.fr>
5280
5281 * tree-pattern.h: New. Tree pattern matching and checking using
5282 concrete syntax.
5283 * tree-check.c: New. Tree/CFG checking pass.
5284 * tree-match.c: New. Library for tree pattern matching.
5285 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
5286 * toplev.c, flags.h: Add globals for tree-check pass.
5287 * Makefile.in: Integrate the files in tree-check pass.
5288 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
5289 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
5290 Introduce a "lazy" pretty-print mode.
5291 * tree.c, tree.h: Add tree_name.
5292
52932006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
5294
5295 * doc/invoke.texi (-fgraphite): Correct typo.
5296 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
5297 use of print_loop_ir.
5298 * testsuite/gcc.dg/graphite/scop-1.c: New.
5299 * testsuite/gcc.dg/graphite/scop-2.c: New.
5300 * testsuite/gcc.dg/graphite/graphite.exp: New.
5301 * graphite.c: Include domwalk.h.
5302 (print_scop): Print only the entry and exit blocks.
5303 (debug_scop): No longer static.
5304 (affine_expr): Fix formating. Return also true when the expression is
5305 constant.
5306 (stmt_simple_for_scop_p): Fix formating.
5307 (build_scops): Use domwalk.
5308 (get_loop_start, end_scop, test_for_scop_bound): New.
5309 (graphite_transform_loops): Avoid printing on stderr.
5310 * graphite.h (debug_scop): Declared.
5311 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
5312 * Makefile.in (graphite.o): Depend on domwalk.h.
5313 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
5314 declarations for static functions.
5315 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
5316 controlling output verbosity.
5317
53182006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
5319 Plesco Alexandru <shurikx@gmail.com>
5320
5321 * doc/invoke.texi (-fgraphite): Document.
5322 * tree-pass.h (pass_graphite_transforms): Declared.
5323 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
5324 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
5325 (pass_graphite_transforms): Defined.
5326 * tree-data-ref.c (free_data_ref, data_reference): Extern.
5327 * tree-data-ref.h (free_data_ref, data_reference): Declared.
5328 * graphite.c, graphite.h: New.
5329 * common.opt (fgraphite): Declared.
5330 * tree-flow.h (graphite_transform_loops): Declared.
5331 * Makefile.in (OBJS-common): Add graphite.o.
5332 (graphite.o): New rule.
5333 * passes.c (pass_graphite_transforms): Scheduled.
5334