1 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
3 PR tree-optimization/46970
4 * gcc.dg/graphite/pr46970.c: New.
6 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
8 PR tree-optimization/46215
9 * gcc.dg/graphite/pr46215.c: New.
11 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
13 PR tree-optimization/46168
14 * gcc.dg/graphite/pr46168.c: New.
16 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
18 PR tree-optimization/43657
19 * gcc.dg/graphite/pr43657.c: New.
21 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
23 PR tree-optimization/29832
24 * gfortran.dg/graphite/pr29832.f90: New.
26 2011-01-18 Sebastian Pop <sebastian.pop@amd.com>
28 PR tree-optimization/43567
29 * gcc.dg/graphite/pr43567.c: New.
31 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
33 * Makefile.in (LAMBDA_H): Removed.
34 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
35 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
36 lambda-trans.o, and tree-loop-linear.o.
37 (lto-symtab.o): Remove dependence on LAMBDA_H.
38 (tree-loop-linear.o): Remove rule.
40 (lambda-trans.o): Same.
41 (lambda-code.o): Same.
42 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
43 (tree-vect-slp.o): Same.
44 * hwint.h (gcd): Moved here.
45 (least_common_multiple): Same.
46 * lambda-code.c: Removed.
47 * lambda-mat.c: Removed.
48 * lambda-trans.c: Removed.
50 * tree-loop-linear.c: Removed.
51 * lto-symtab.c: Do not include lambda.h.
52 * omega.c (gcd): Removed.
53 * passes.c (init_optimization_passes): Remove pass_linear_transform.
54 * tree-data-ref.c (print_lambda_vector): Moved here.
55 (lambda_vector_copy): Same.
56 (lambda_matrix_copy): Same.
57 (lambda_matrix_id): Same.
58 (lambda_vector_first_nz): Same.
59 (lambda_matrix_row_add): Same.
60 (lambda_matrix_row_exchange): Same.
61 (lambda_vector_mult_const): Same.
62 (lambda_vector_negate): Same.
63 (lambda_matrix_row_negate): Same.
64 (lambda_vector_equal): Same.
65 (lambda_matrix_right_hermite): Same.
66 * tree-data-ref.h: Do not include lambda.h.
67 (lambda_vector): Moved here.
68 (lambda_matrix): Same.
69 (dependence_level): Same.
70 (lambda_transform_legal_p): Removed declaration.
71 (lambda_collect_parameters): Same.
72 (lambda_compute_access_matrices): Same.
73 (lambda_vector_gcd): Same.
74 (lambda_vector_new): Same.
75 (lambda_vector_clear): Same.
76 (lambda_vector_lexico_pos): Same.
77 (lambda_vector_zerop): Same.
78 (lambda_matrix_new): Same.
79 * tree-flow.h (least_common_multiple): Removed declaration.
80 * tree-parloops.c (lambda_trans_matrix): Moved here.
84 (LTM_DENOMINATOR): Same.
85 (lambda_trans_matrix_new): Same.
86 (lambda_matrix_vector_mult): Same.
87 (lambda_transform_legal_p): Same.
88 * tree-pass.h (pass_linear_transform): Removed declaration.
89 * tree-ssa-loop.c (tree_linear_transform): Removed.
90 (gate_tree_linear_transform): Removed.
91 (pass_linear_transform): Removed.
92 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
93 flag_loop_interchange.
95 * gfortran.dg/graphite/interchange-4.f: New.
96 * gfortran.dg/graphite/interchange-5.f: New.
98 * gcc.dg/tree-ssa/ltrans-1.c: Removed.
99 * gcc.dg/tree-ssa/ltrans-2.c: Removed.
100 * gcc.dg/tree-ssa/ltrans-3.c: Removed.
101 * gcc.dg/tree-ssa/ltrans-4.c: Removed.
102 * gcc.dg/tree-ssa/ltrans-5.c: Removed.
103 * gcc.dg/tree-ssa/ltrans-6.c: Removed.
104 * gcc.dg/tree-ssa/ltrans-8.c: Removed.
105 * gfortran.dg/ltrans-7.f90: Removed.
106 * gcc.dg/tree-ssa/data-dep-1.c: Removed.
108 * gcc.dg/pr18792.c: -> gcc.dg/graphite/pr18792.c
109 * gcc.dg/pr19910.c: -> gcc.dg/graphite/pr19910.c
110 * gcc.dg/tree-ssa/20041110-1.c: -> gcc.dg/graphite/pr20041110-1.c
111 * gcc.dg/tree-ssa/pr20256.c: -> gcc.dg/graphite/pr20256.c
112 * gcc.dg/pr23625.c: -> gcc.dg/graphite/pr23625.c
113 * gcc.dg/tree-ssa/pr23820.c: -> gcc.dg/graphite/pr23820.c
114 * gcc.dg/tree-ssa/pr24309.c: -> gcc.dg/graphite/pr24309.c
115 * gcc.dg/tree-ssa/pr26435.c: -> gcc.dg/graphite/pr26435.c
116 * gcc.dg/pr29330.c: -> gcc.dg/graphite/pr29330.c
117 * gcc.dg/pr29581-1.c: -> gcc.dg/graphite/pr29581-1.c
118 * gcc.dg/pr29581-2.c: -> gcc.dg/graphite/pr29581-2.c
119 * gcc.dg/pr29581-3.c: -> gcc.dg/graphite/pr29581-3.c
120 * gcc.dg/pr29581-4.c: -> gcc.dg/graphite/pr29581-4.c
121 * gcc.dg/tree-ssa/loop-27.c: -> gcc.dg/graphite/pr30565.c
122 * gcc.dg/tree-ssa/pr31183.c: -> gcc.dg/graphite/pr31183.c
123 * gcc.dg/tree-ssa/pr33576.c: -> gcc.dg/graphite/pr33576.c
124 * gcc.dg/tree-ssa/pr33766.c: -> gcc.dg/graphite/pr33766.c
125 * gcc.dg/pr34016.c: -> gcc.dg/graphite/pr34016.c
126 * gcc.dg/tree-ssa/pr34017.c: -> gcc.dg/graphite/pr34017.c
127 * gcc.dg/tree-ssa/pr34123.c: -> gcc.dg/graphite/pr34123.c
128 * gcc.dg/tree-ssa/pr36287.c: -> gcc.dg/graphite/pr36287.c
129 * gcc.dg/tree-ssa/pr37686.c: -> gcc.dg/graphite/pr37686.c
130 * gcc.dg/pr42917.c: -> gcc.dg/graphite/pr42917.c
131 * gcc.dg/tree-ssa/data-dep-1.c
132 * gfortran.dg/loop_nest_1.f90: -> gfortran.dg/graphite/pr29290.f90
133 * gfortran.dg/pr29581.f90: -> gfortran.dg/graphite/pr29581.f90
134 * gfortran.dg/pr36286.f90: -> gfortran.dg/graphite/pr36286.f90
135 * gfortran.dg/pr36922.f: -> gfortran.dg/graphite/pr36922.f
136 * gfortran.dg/pr39516.f: -> gfortran.dg/graphite/pr39516.f
138 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
140 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
141 VAR_DECL, PARM_DECL, and RESULT_DECL.
143 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
145 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
147 * graphite-dependences.c (reduction_dr_1): Allow several reductions
149 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
150 that have already been marked as PBB_IS_REDUCTION.
152 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
154 * graphite-scop-detection.c (same_close_phi_node): New.
155 (remove_duplicate_close_phi): New.
156 (make_close_phi_nodes_unique): New.
157 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
159 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
161 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
162 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
163 of both data references to be the same.
165 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
167 * graphite-dependences.c (build_lexicographical_constraint): Remove the
169 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
170 (dependence_polyhedron): Same.
171 (graphite_legal_transform_dr): Same.
172 (graphite_carried_dependence_level_k): Same.
173 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
174 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
176 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
178 * graphite-sese-to-poly.c
179 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
180 (close_phi_written_to_memory): New.
181 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
184 * gcc.dg/graphite/block-0.c: Un-XFAILed.
185 * gcc.dg/graphite/block-1.c: Un-XFAILed.
186 * gcc.dg/graphite/block-7.c: Un-XFAILed.
187 * gcc.dg/graphite/block-8.c: Un-XFAILed.
188 * gcc.dg/graphite/interchange-12.c: Un-XFAILed.
189 * gcc.dg/graphite/interchange-14.c: Un-XFAILed.
190 * gcc.dg/graphite/interchange-15.c: Un-XFAILed.
191 * gcc.dg/graphite/interchange-8.c: Un-XFAILed.
192 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
194 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
196 * doc/install.texi: Update the expected version number of PPL to 0.11.
197 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
198 #if PPL_VERSION_MINOR < 11.
200 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
202 * graphite-dependences.c (new_poly_ddr): Inlined into
203 dependence_polyhedron.
204 (free_poly_ddr): Moved close by new_poly_ddr.
205 (dependence_polyhedron_1): Renamed dependence_polyhedron.
206 Early return NULL when ppl_powerset_is_empty returns true.
207 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
208 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
209 (graphite_legal_transform_dr): Call new_poly_ddr.
210 (graphite_carried_dependence_level_k): Same.
211 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
212 (dot_transformed_deps_stmt_1): Removed.
213 (dot_deps_stmt_1): Call dot_deps_stmt_2.
214 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
215 (dot_deps_1): Call dot_deps_2.
217 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
219 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
220 (build_lexicographical_constraint): Same.
221 (dependence_polyhedron_1): Same.
222 (graphite_legal_transform_dr): Same.
223 (graphite_carried_dependence_level_k): Same.
224 * graphite-ppl.c (ppl_powerset_is_empty): New.
225 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
226 * tree-data-ref.c (dump_data_reference): Print the basic block index.
228 * gcc.dg/graphite/block-0.c: Add documentation.
229 * gcc.dg/graphite/block-4.c: Same.
230 * gcc.dg/graphite/block-7.c: Same.
231 * gcc.dg/graphite/block-8.c: New.
232 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
233 * gcc.dg/graphite/interchange-11.c: Un-XFAILed.
234 * gcc.dg/graphite/interchange-12.c: Add documentation.
235 * gcc.dg/graphite/interchange-13.c: New.
236 * gcc.dg/graphite/interchange-14.c: New.
237 * gcc.dg/graphite/interchange-15.c: New.
238 * gcc.dg/graphite/interchange-8.c: Add documentation.
239 * gcc.dg/graphite/interchange-mvt.c: Same.
241 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
243 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
244 the "a followed by b" relation and document it.
246 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
248 * graphite-dependences.c (build_lexicographical_constraint): Stop the
249 iteration when the bag of constraints is empty.
251 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
253 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
255 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
257 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
258 nest and two loop depths as parameters.
259 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
262 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
264 * graphite-dependences.c (print_pddr): Call
265 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
267 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
269 * graphite-ppl.c (debug_gmp_value): New.
270 * graphite-ppl.h (debug_gmp_value): Declared.
272 2011-01-13 Tobias Grosser <grosser@fim.uni-passau.de>
274 * doc/install.texi: Document availability of cloog-0.16
276 2011-01-05 Vladimir Kargov <kargov@gmail.com>
278 * graphite-scop-detection.c (is_valid_stmt_p): Pass the entry basic
279 block instead of region start to the instantiation.
280 (is_valid_bb_p): Add support for basic blocks with conditional
282 (find_scops_new): Recalculate dominance info before SCOP
285 2011-01-05 Vladimir Kargov <kargov@gmail.com>
287 * graphite-scop-detection.c (get_outermost_loop_in_region): New.
288 (is_valid_loop_p): Correct loop passed to stmt_has_simple_data_refs_p
290 2011-01-05 Vladimir Kargov <kargov@gmail.com>
292 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
293 invalid postdominance info
295 2010-12-29 Sebastian Pop <sebastian.pop@amd.com>
297 * Makefile.in (graphite-opencl-codegen.o): Update dependences.
298 (graphite-opencl-meta-clast.o): Same.
299 (graphite-opencl.o): Same.
300 (refined-regions.o): Same.
301 * graphite-opencl-codegen.c: Do not include unnecessary .h files.
302 * graphite-opencl-meta-clast.c: Same.
303 * graphite-opencl.c: Same.
304 * refined-regions.c: Same.
306 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
308 * graphite-opencl-codegen.c: Use FOR_EACH_VEC_ELT.
309 * graphite-opencl-meta-clast.c: Same.
310 * graphite-opencl.c: Same.
312 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
314 * graphite-opencl-codegen.c: Do not include sys/time.h.
315 * graphite-opencl.c: Same.
317 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
319 * graphite-opencl.c (h_context, h_cmd_queue, h_program): Moved
320 out of ifdef HAVE_cloog section.
322 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
324 * Makefile.in (graphite-opencl.o): Depends on
325 graphite-opencl-functions.def.
326 * graphite-opencl-functions.def: New.
327 * graphite-opencl.c (enum OPENCL_FUNCTIONS): Read data from
328 graphite-opencl-functions.def.
329 (opencl_function_names): Same.
330 (opencl_create_function_decl): Use the enum OPENCL_FUNCTIONS
331 as indices of opencl_function_names.
333 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
335 * graphite-opencl-codegen.c: Fix formatting.
336 * graphite-opencl-meta-clast.c: Same.
337 * graphite-opencl.c: Same.
339 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
341 * graphite-opencl-codegen.c: Fix formating problems.
342 * graphite-opencl-meta-clast.c: Same.
343 * graphite-opencl.c: Same.
344 * graphite-opencl.h: Same.
346 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
348 * graphite-opencl-codegen.c: Sort topologically static functions.
349 * graphite-opencl.c: Same.
351 2010-12-25 Sebastian Pop <sebastian.pop@amd.com>
353 * graphite-cloog-compat.h (cloog_names_nb_scattering): New.
354 (cloog_names_scattering): New.
355 * graphite-opencl-codegen.c (opencl_constant_expression_p): Use
356 clast_expr_* instead of expr_*. Call clast_name_to_str.
357 (opencl_clast_name_to_tree): Now takes a clast_name_p in parameter.
358 (opencl_get_scat_real_name): Same. Call clast_name_to_str.
359 (opencl_add_scat_as_arg): Same.
360 (opencl_print_local_vars): Call cloog_names_scattering and
361 cloog_names_nb_scattering.
362 (opencl_print_for): Do not call value_*.
363 (opencl_print_term): Same.
364 (opencl_print_expr): Use clast_expr_* instead of expr_*.
365 (opencl_print_sum): Same.
366 (opencl_print_binary): Same.
368 2010-12-25 Alexey Kravets <kayrick@ispras.ru>
370 * Makefile.in (OBJS-common): Add graphite-opencl-codegen.o,
371 graphite-opencl-meta-clast.o and graphite-opencl.o.
372 (graphite-opencl-codegen.o): New.
373 (graphite-opencl-meta-clast.o): New.
374 (graphite-opencl.o): New.
375 (GTFILES): Add graphite-opencl.c.
376 * common.opt (fgraphite-opencl): New.
377 (fgraphite-opencl-cpu): New.
378 (fgraphite-opencl-ignore-depth-heuristic): New.
379 (fgraphite-opencl-ignore-mem-heuristic): New.
380 (fgraphite-opencl-ignore-dep): New.
381 (fgraphite-opencl-ignore-types): New.
382 (fgraphite-opencl-depth-base): New.
383 (fgraphite-opencl-debug): New.
384 * graphite-opencl-codegen.c: New file.
385 * graphite-opencl-meta-clast.c: New file.
386 * graphite-opencl.c: New file.
387 * graphite-opencl.h: New file.
388 * graphite.c (graphite_transform_loops): Call graphite_opencl_init and
389 graphite_opencl_finalize.
390 * tree-ssa-loop.c (gate_graphite_transforms): Handle
391 flag_graphite_opencl.
392 * graphite-clast-to-gimple.c (gloog): Call opencl_transform_clast.
393 * dbgcnt.def (opencl_scop_cnt): New counter.
395 2010-12-25 Alexander Monakov <amonakov@ispras.ru>
397 * graphite-dependences.c (graphite_outer_subscript_bound): New.
398 (graphite_carried_dependence_level_k): Export.
399 * graphite-dependences.h (graphite_outer_subscript_bound): Declare.
400 (graphite_carried_dependence_level_k): Ditto.
402 2010-12-25 Alexey Kravets <kayrick@ispras.ru>
404 * graphite-clast-to-gimple.c (struct clast_name_index): Move
405 definition to graphite-clast-to-gimple.h.
406 (clast_name_to_index): Ditto.
407 (clast_name_index_elt_info): Ditto.
408 (eq_clast_name_indexes): Ditto.
409 (save_clast_name_index): Export.
410 (clast_name_to_gcc): Ditto.
411 (clast_to_gcc_expression): Ditto.
412 (gcc_type_for_clast_expr): Ditto.
413 (graphite_create_new_guard): Ditto.
414 (gcc_type_for_iv_of_clast_loop): Ditto.
415 (graphite_create_new_loop): Ditto.
416 (build_iv_mapping): Ditto.
417 (graphite_create_new_loop_guard): Ditto.
418 (debug_clast_name_index): New.
419 (debug_clast_name_indices): New debug function.
421 2010-12-21 Sebastian Pop <sebastian.pop@amd.com>
423 PR tree-optimization/47021
424 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
426 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
428 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
430 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
432 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
434 * graphite-sese-to-poly.c (analyze_drs): Removed.
435 (build_scop_drs): Do not call analyze_drs.
436 (analyze_drs_in_stmts): New.
438 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
439 (insert_out_of_ssa_copy_on_edge): Same.
440 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
441 (rewrite_phi_out_of_ssa): Same.
442 (rewrite_cross_bb_scalar_dependence): Same.
443 (split_reduction_stmt): Move data references in the new basic blocks.
444 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
446 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
448 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
450 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
453 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
454 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
455 * graphite-poly.h (new_poly_bb): Update declaration.
456 (gbb_from_bb): Moved here...
458 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
460 (graphite_stmt_p): Removed.
461 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
462 sbitmap reductions. Always build a gimple_bb_p. Do not call
464 (build_scop_bbs_1): Do not pass in sbitmap reductions.
465 (build_scop_bbs): Same.
466 (gbb_from_bb): ... from here.
467 (add_conditions_to_constraints): Moved up.
469 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
470 not contain data references.
471 (new_pbb_from_pbb): New.
472 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
474 (rewrite_close_phi_out_of_ssa): Update call to
475 insert_out_of_ssa_copy_on_edge.
476 (rewrite_reductions_out_of_ssa): Now static.
477 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
479 (split_reduction_stmt): Call split_pbb.
480 (translate_scalar_reduction_to_array): Pass in the scop, do not
481 pass in the sbitmap reductions.
482 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
483 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
484 (rewrite_commutative_reductions_out_of_ssa): Same.
485 (build_poly_scop): Call build_scop_bbs,
486 rewrite_commutative_reductions_out_of_ssa,
487 rewrite_reductions_out_of_ssa, and
488 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
490 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
492 (rewrite_reductions_out_of_ssa): Same.
493 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
494 (build_scop_bbs): Same.
495 * graphite.c (graphite_transform_loops): Do not initialize reductions.
496 Do not call build_scop_bbs,
497 rewrite_commutative_reductions_out_of_ssa,
498 rewrite_reductions_out_of_ssa, and
499 rewrite_cross_bb_scalar_deps_out_of_ssa.
500 * sese.h (struct gimple_bb): Add field pbb.
503 * gcc.dg/graphite/pr45297.c: New.
505 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
507 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
509 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
510 handle_scalar_deps_crossing_scop_limits.
511 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
512 after the scop. Update call to rewrite_cross_bb_scalar_deps.
514 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
516 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
517 when replacing a constant in an ADDR_EXPR.
519 2010-10-20 Sebastian Pop <sebastian.pop@amd.com>
521 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
523 (lst_do_strip_mine): Same.
524 (scop_do_strip_mine): Same.
525 * graphite-poly.c (apply_poly_transforms): Update call to
527 * graphite-poly.h (scop_do_strip_mine): Update declaration.
529 2010-09-24 Sebastian Pop <sebastian.pop@amd.com>
532 * graphite.c (graphite_initialize): Call scev_reset.
534 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
536 * sese.h (scev_analyzable_p): Return false for real or floating
537 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
539 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
542 * gfortran.dg/graphite/pr45758.f90: New.
544 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
546 * graphite-scop-detection.c (is_scop_p): Free bblist.
548 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
550 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
552 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
554 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
555 Do not allocate ub_expr, it is passed in initialized.
557 2010-09-21 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
559 * common.opt (fgraphite-dump-cloog): New flag.
560 * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
561 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
562 (build_cloog_prog): Dump CLooG input file when
563 flag_graphite_dump_cloog is set.
564 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
566 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
568 Revert previous patch "New flag: -fgraphite-dump-cloog."
570 2010-09-20 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
572 * common.opt (fgraphite-dump-cloog): New flag.
573 * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
574 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
575 (build_cloog_prog): Dump CLooG input file when
576 flag_graphite_dump_cloog is set.
578 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
580 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
581 verify_dominators for CDI_POST_DOMINATORS.
582 * sese.h: Remove comment about CDI_POST_DOMINATORS.
583 (recompute_all_dominators): Remove call to free_dominance_info
584 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
585 for CDI_POST_DOMINATORS.
587 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
589 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
590 over pbb_dim_iter_domain.
592 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
594 * graphite-flattening.c: Fix comments.
596 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
598 * Makefile.in (OBJS-common): Add graphite-flattening.o.
599 (graphite-flattening.o): New rule.
600 * common.opt (floop-flatten): New flag.
601 * doc/invoke.texi (-floop-flatten): Documented.
602 * graphite-flattening.c: New.
603 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
604 * graphite-poly.h (flatten_all_loops): Declared.
605 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
606 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
607 is set, also set flag_graphite.
609 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
611 * graphite-poly.c (cloog_checksum): New.
612 * graphite-poly.h (cloog_checksum): Declared.
614 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
616 * graphite-poly.c (pbb_number_of_iterations): Removed.
617 (pbb_number_of_iterations_at_time): Correctly compute the number
618 of iterations in the transformed loop.
619 * graphite-poly.h (pbb_number_of_iterations): Removed.
621 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
623 * graphite-poly.h (lst_update_scattering_seq): Removed.
624 (lst_update_scattering): Correctly handle outermost loop dewey
627 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
629 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
630 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
631 * graphite-poly.h (lst_niter_for_loop): New.
633 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
635 * graphite-poly.c (apply_poly_transforms): Do not abort when the
636 transform read from disk is not legal. Call fatal_error instead.
638 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
640 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
641 (print_scop_header): Removed. Inlined in the only call place...
642 (print_scop): ... here.
644 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
646 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
648 2010-09-02 Vladimir Kargov <kargov@gmail.com>
650 * graphite-scop-detection.c (is_valid_expr_p, is_valid_loop_p): New.
651 (is_valid_stmt_p): Add data reference and operation-specific checks.
652 (is_valid_bb_p): Change structure, add loop validity check.
653 (is_scop_p): Move the TODO list
654 (find_scops_new): New.
655 (build_scops_new): Move part of functionality to find_scops_new and
656 build_scops. Add necessary steps for successful SCoP construction.
657 (build_scops): Compute SCoP sets for both detection algorithms, choose
658 the resulting one depending on static condition.
660 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
662 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
664 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
666 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
667 (dot_deps_stmt): Same.
668 * graphite-poly.c (dot_lst): Same.
670 2010-08-23 Sebastian Pop <sebastian.pop@amd.com>
672 * graphite-blocking.c (scop_do_strip_mine): Do not call
673 graphite_legal_transform.
674 (scop_do_block): Same.
676 2010-08-20 Vladimir Kargov <kargov@gmail.com>
678 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
681 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
684 * gcc.dg/graphite/id-pr45230.c: New.
686 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
688 * tree-scalar-evolution.c (instantiate_array_ref): New.
689 (instantiate_scev_r): Also handle ARRAY_REFs.
691 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
693 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
694 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
695 RESULT_DECL, and FIELD_DECL. Return false for an
696 SSA_NAME_IS_DEFAULT_DEF.
697 (compute_scalar_evolution_in_loop): Do not further analyze the
698 scalar evolution when no_evolution_in_loop_p returns true.
700 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
702 * tree-chrec.h (evolution_function_is_affine_p): Do not check
703 whether CHREC_LEFT is invariant. A function is affine when
704 CHREC_RIGHT is invariant.
706 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
708 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
710 (rewrite_degenerate_phi): Same.
711 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
713 2010-08-18 Vladimir Kargov <kargov@gmail.com>
715 * graphite-scop-detection.c (graphite_can_represent_scev,
716 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
717 graphite_can_represent_loop): Remove outermost_loop.
719 2010-08-17 Sebastian Pop <sebastian.pop@amd.com>
722 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
723 handle GIMPLE_CALLs with no LHS.
725 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
726 Sebastian Pop <sebastian.pop@amd.com>
728 * gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write.
729 Call remove-build-file to clean up the generated *.graphite files.
731 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
733 * doc/invoke.texi (debugging options): Update documentation.
734 (-floop-interchange): Same.
735 (-flopp-strip-mine): Same.
736 (-floop-block): Same.
737 (-fgraphite-read): Add documentation.
738 (-fgraphite-write): Same.
740 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
742 * toplev.c (process_options): Disable graphite loop optimization
743 options when -fgraphite-read flag is used.
745 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
747 * graphite-poly.c (init_graphite_out_file): New.
748 (init_graphite_in_file): New.
749 (apply_poly_transforms): Updated to enable reading and writing of
751 * toplev.c (init_asm_output): Remove graphite in/out file initialization.
753 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de>
755 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
758 2010-08-12 Sebastian Pop <sebastian.pop@amd.com>
760 * graphite-clast-to-gimple.c (precision_for_value): Adjust
761 computation of precision by 1.
763 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com>
765 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
766 (openscop_read_polyhedron_matrix): New.
767 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
768 (openscop_read_N_int): Same.
769 * graphite-poly.c (openscop_read_N_int): New.
770 (openscop_read_one_int): New.
771 (openscop_read_N_string): New.
772 (openscop_read_one_string): New.
773 (openscop_read_powerset_matrix): New.
774 (graphite_read_transforms): Remove.
775 (graphite_read_scatt): New.
776 (graphite_read_scop_file): New.
777 (apply_poly_transforms): Updated to call graphite_read_scop_file.
779 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
781 * graphite-poly.c: Change include order.
783 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
785 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
786 (cloog_matrix_nrows): New.
788 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
790 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
792 * graphite-poly.c (openscop_print_scattering_function_1): Same.
793 (print_scattering_function_1): Same.
794 (openscop_print_pbb_domain): Same.
795 (openscop_print_scop_context): Same.
796 (print_scop_context): Same.
798 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
800 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
801 (openscop_print_pdr_polyhedron): Print pph.
803 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
805 * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files.
806 * gfortran.dg/graphite/graphite.exp: Same.
807 * gcc.dg/graphite/vect-pr43423.c: New.
809 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
811 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
812 priority signed types.
814 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
816 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
817 to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type.
819 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com>
821 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
822 (openscop_print_polyhedron_matrix): New.
823 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
824 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
825 (openscop_print_pdr_powerset): New.
826 (openscop_print_powerset_matrix): New.
827 (openscop_print_scattering_function_1): New.
828 (print_scattering_function): Add support for scattering names and
830 (graphite_write_transforms): Remove.
831 (apply_poly_transforms): Updated to call print_scop.
832 (print_pdr_access_layout): Updated to support OpenScop format.
834 (openscop_print_pbb_domain): New.
835 (print_pbb_body): Added a parameter to allow indicating that pbb_body is
837 (print_pbb): Updated to call the new print_pbb_body.
838 (openscop_print_scop_context): New.
839 (print_scop_header): New.
840 (print_scop): Updated to call print_scop_header.
841 * graphite-poly.h: Document OpenScop format.
843 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
845 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
846 the case removed in the previous patch, when the only phi argument
847 is defined in the same loop as the phi node itself. Handle it
848 separately from the invariant case by both propagating it outside
849 the region and replacing the phi node with an assign.
851 2010-07-28 Sebastian Pop <sebastian.pop@amd.com>
853 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
854 constant phi nodes with one argument are is_gimple_min_invariant
855 and SSA_NAME_IS_DEFAULT_DEF.
857 * gfortran.dg/graphite/id-22.f: New.
859 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
861 * graphite.c (graphite_initialize): Do not initialize
862 CLooG and initialize the Parma Polyhedra Library
863 manually when using CLOOG_ORG.
864 (graphite_finalize): Do not finalize CLooG and finalize
865 the Parma Polyhedra Library manually when using CLOOG_ORG.
866 * graphite-cloog-compat.h (cloog_initialize): Hide function
867 when using CLOOG_ORG.
868 (cloog_finalize): Same.
870 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
872 * graphite-clast-to-gimple.c (free_scattering): Change
873 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
875 (build_cloog_prog): Same.
876 * graphite-cloog-compat.h (cloog_domain): Removed.
877 (cloog_scattering): New.
878 (cloog_set_domain): Removed.
879 (cloog_set_scattering): New.
880 (cloog_next_domain): Removed.
881 (cloog_next_scattering): New.
882 (cloog_set_next_domain): Removed.
883 (cloog_set_next_scattering): New.
884 (CloogScatteringList): New.
885 (CloogScattering): New.
886 (cloog_scattering_free): New.
887 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
888 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
891 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
893 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
895 (set_cloog_options): Same.
896 (print_clast_stmt): Same.
897 (scop_to_clast): Same.
898 (print_generated_program): Same.
900 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
901 (scop_to_clast): Extend with CloogState.
902 * graphite-cloog-util.c: Include graphite-cloog-compat.h
903 (new_Cloog_Domain_from_ppl_Polyhedron):
904 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
905 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
906 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
907 * graphite-cloog-util.h (build_cloog_prog): Same.
908 * graphite-cloog-copat.h (build_cloog_prog): New.
910 (cloog_state_malloc): New.
911 (cloog_state_free): New.
912 (cloog_loop_malloc): New.
913 (cloog_options_malloc): New.
914 (cloog_statement_alloc): New.
915 (cloog_domain_from_cloog_matrix): New.
916 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
917 (new_Cloog_Domain_from_ppl_Polyhedron): New.
919 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
921 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
922 type of NAME now depends on used CLooG version.
923 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
924 (gcc_type_for_clast_expr): Same.
925 (print_clast_stmt): Replace pprint with clast_pprint.
926 * graphite-cloog-compat.h: Provide compatibility macros for
929 (clast_expr_term): New.
930 (clast_expr_red): New.
931 (clast_expr_bin): New.
934 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
936 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
937 compatible to newer CLooG releases (CLOOG_ORG).
938 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
939 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
940 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
941 (build_cloog_prog) : New.
942 (cloog_program_extract_scalars): New.
943 (cloog_program_scatter): New.
945 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
947 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
948 conditionally (CLOOG_ORG).
949 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
950 (cloog_statement_usr): New.
951 (cloog_domain): Same.
952 (cloog_set_domain): Same.
953 (cloog_next_domain): Same.
954 (cloog_set_next_domain): Same.
955 (cloog_program_nb_scattdims): Same.
956 (cloog_program_set_nb_scattdims): Same.
957 (cloog_program_names): Same.
958 (cloog_program_set_names): Same.
959 (cloog_program_set_context): Same.
960 (cloog_program_set_loop): Same.
961 (cloog_program_blocklist): Same.
962 (cloog_program_set_blocklist): Same.
963 (cloog_program_scaldims): Same.
964 (cloog_program_set_scaldims): Same.
965 (cloog_names_nb_parameters): Same.
966 (cloog_names_set_nb_parameters): Same.
967 (cloog_names_parameters): Same.
968 (cloog_names_set_parameters): Same.
969 (cloog_names_set_nb_iterators): Same.
970 (cloog_names_set_iterators): Same.
971 (cloog_names_set_nb_scattering): Same.
972 (cloog_names_set_scattering): Same.
973 (cloog_statement_set_usr): Same.
974 (cloog_loop_set_next): Same.
975 (cloog_loop_set_domain): Same.
976 (cloog_loop_set_block): Same.
977 (cloog_block_list_next): Same.
978 (cloog_block_list_set_next):
979 (cloog_block_list_set_block): Same.
981 2010-07-27 Sebastian Pop <sebastian.pop@amd.com>
983 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
985 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
986 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
987 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
988 when something has been changed.
989 (rewrite_commutative_reductions_out_of_ssa): Same.
991 * gcc.dg/graphite/id-26.c: New.
993 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
995 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
996 handle the case when def is in the sese region.
997 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
998 for invariant expressions.
999 (rewrite_cross_bb_phi_deps): Removed.
1000 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
1001 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
1002 rewrite_cross_bb_phi_deps.
1004 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
1006 * graphite-sese-to-poly.c
1007 (rewrite_commutative_reductions_out_of_ssa_loop): Call
1008 scev_analyzable_p only on is_gimple_reg
1010 * gcc.dg/graphite/id-25.c: New.
1012 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
1014 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
1015 (rewrite_close_phi_out_of_ssa): Propagate constant values or
1016 parametric expressions outside the scop region.
1017 (rewrite_cross_bb_scalar_deps): Same.
1018 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
1020 * gcc.dg/graphite/run-id-5.c: New.
1021 * gcc.dg/graphite/run-id-6.c: New.
1022 * gfortran.dg/graphite/id-21.f: New.
1024 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
1026 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
1027 SSA_NAME_DEF_STMT only on SSA_NAMEs.
1029 * gcc.dg/graphite/id-24.c: New.
1031 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
1033 * tree-scalar-evolution.c (instantiate_scev_name): Do not
1034 instantiate default definitions.
1036 2010-07-20 Vladimir Kargov <kargov@gmail.com>
1038 * graphite-scop-detection.c (is_valid_stmt_p): New.
1039 (is_valid_bb_p): New.
1041 2010-07-20 Vladimir Kargov <kargov@gmail.com>
1042 Sebastian Pop <sebastian.pop@amd.com>
1044 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
1045 (loop_exits_from_bb_p): New.
1046 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
1047 (loop_exits_from_bb_p): Declared.
1048 * graphite-scop-detection.c (scopdet_basic_block_info): Call
1051 2010-07-20 Vladimir Kargov <kargov@gmail.com>
1053 * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and
1055 (dot_regions_1): New.
1057 * refined-regions.h (dot_regions): Declared.
1058 * Makefile.in (refined-regions.o): Update dependences.
1060 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
1062 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
1063 extra parameter for the region. Call scev_analyzable_p.
1064 (rewrite_reductions_out_of_ssa): Update call to
1065 rewrite_close_phi_out_of_ssa.
1066 (rewrite_cross_bb_phi_deps): Same.
1067 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
1068 parameter for the region. Call scev_analyzable_p.
1069 (rewrite_commutative_reductions_out_of_ssa): Update call to
1070 rewrite_commutative_reductions_out_of_ssa_loop.
1072 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
1074 * gcc.dg/tree-ssa/pr20742.c: New.
1076 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1078 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
1080 * gcc.dg/graphite/id-23.c: New.
1082 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1084 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
1085 SSA scalar phi nodes that can be scev_analyzable_p.
1087 * gfortran.dg/graphite/id-20.f: Adjust testcase.
1089 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1091 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
1092 handle SSA_NAME_IS_DEFAULT_DEF.
1094 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1096 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
1098 * gcc.dg/graphite/pr42729.c: New.
1100 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1102 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
1103 case non close-phi nodes with one argument.
1105 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1107 * sese.h (scev_analyzable_p): Scevs could be expressions without
1108 chrecs and still be scev_analyzable_p.
1110 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1112 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1114 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1116 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
1117 * cfgloop.h (struct loop): Remove single_iv field.
1118 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
1119 (scop_canonicalize_loops): Removed.
1120 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
1121 over all the loop phi nodes in loop->header.
1122 (build_poly_scop): Remove use of scop_canonicalize_loops.
1124 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1126 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
1129 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1131 * tree-chrec.c (chrec_apply): Should only apply to the specified
1132 variable. Also handle multivariate chains of recurrences that
1133 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
1135 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1137 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
1138 (debug_clast_name_indexes_1): Removed.
1139 (debug_clast_name_indexes): Removed.
1140 (pbb_to_depth_to_oldiv): Removed.
1141 (build_iv_mapping): Replace the use of rename_map with iv_map.
1142 (translate_clast_user): Remove uses of rename_map. Allocate and
1144 (translate_clast_for_loop): Remove uses of rename_map.
1145 (translate_clast_for): Same.
1146 (translate_clast_guard): Same.
1147 (translate_clast): Same.
1149 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
1150 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
1151 * sese.c (set_rename): Now static.
1152 (rename_variables_in_stmt): Removed.
1154 (is_parameter): Removed.
1156 (expand_scalar_variables_call): Removed.
1157 (expand_scalar_variables_ssa_name): Removed.
1158 (expand_scalar_variables_expr): Removed.
1159 (expand_scalar_variables_stmt): Removed.
1160 (expand_scalar_variables): Removed.
1161 (rename_variables): Removed.
1162 (remove_condition): Removed.
1163 (get_true_edge_from_guard_bb): Removed.
1164 (get_false_edge_from_guard_bb): Removed.
1165 (struct igp): Removed.
1166 (default_before_guard): Removed.
1167 (convert_for_phi_arg): Removed.
1168 (add_guard_exit_phis): Removed.
1169 (insert_guard_phis): Removed.
1170 (graphite_copy_stmts_from_block): Now also uses iv_map and a
1171 region. Do not copy conditions. Do not copy induction variables.
1173 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
1174 the translated statement. Use the iv_map for the induction
1176 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1177 (set_rename): Removed declaration.
1178 (scev_analyzable_p): ...here.
1179 * tree-chrec.c (chrec_apply_map): New.
1180 * tree-chrec.h (chrec_apply_map): Declared.
1182 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1184 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
1185 insert_loop_close_phis.
1186 * sese.c (name_defined_in_loop_p): Removed.
1187 (expr_defined_in_loop_p): Removed.
1188 (alive_after_loop): Removed.
1189 (close_phi_not_yet_inserted_p): Removed.
1190 (struct alep): Removed.
1191 (add_loop_exit_phis): Removed.
1192 (insert_loop_close_phis): Removed.
1194 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1196 * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped
1198 * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same.
1200 2010-07-07 Sebastian Pop <sebastian.pop@amd.com>
1202 * gfortran.dg/graphite/id-20.f: New.
1204 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1206 * graphite-cloog-util.h: Added cloog.h.
1207 * graphite-blocking.c: Removed cloog.h.
1208 * graphite-dependences.c: Same.
1209 * graphite-interchange.c: Same.
1210 * graphite-poly.c: Same.
1211 * graphite-ppl.c: Same.
1212 * graphite-scop-detection.c: Same.
1213 * graphite-sese-to-poly.c:
1215 Removed graphite-clast-to-gimple.h.
1216 (check_poly_representation): Removed (unused).
1217 * graphite-sese-to-poly.h
1218 (check_poly_representation): Removed (unused).
1220 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1223 (OBJS-common): Added graphite-cloog-util.o.
1224 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1225 (graphite-cloog-util.o): New.
1226 (graphite-ppl.o): Added graphite-cloog-util.h.
1227 * graphite-clast-to-gimple.c:
1228 Added graphite-cloog-util.h to include statements.
1229 * graphite-cloog-util.c: New.
1230 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1231 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1232 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1233 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1234 (ppl_Constrain_System_number_of_constraints): Same.
1235 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1236 (oppose_constraint): Same.
1237 (cloog_matrix_to_ppl_constraint): Same.
1238 (new_Constraint_System_from_Cloog_Matrix): Same.
1239 (insert_constraint_into_matrix): Same. Declared static.
1240 * graphite-cloog-util.h: New.
1241 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1242 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1243 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1244 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1245 (insert_constraint_into_matrix): Same.
1247 Added graphite-cloog-util.h to include statements.
1248 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1249 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1250 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1251 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1252 (insert_constraint_into_matrix): Same.
1253 (ppl_Constrain_System_number_of_constraints): Same.
1254 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1255 (oppose_constraint): Same.
1256 (cloog_matrix_to_ppl_constraint): Same.
1257 (new_Constraint_System_from_Cloog_Matrix): Same.
1259 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1260 graphite-cloog-util.h.
1261 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1262 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1263 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1264 (insert_constraint_into_matrix): Removed.
1266 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1268 * graphite-clast-to-gimple.c
1269 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1270 (precision_for_interval): Same.
1271 (gcc_type_for_interval): Same.
1272 (compute_type_for_level): Same.
1273 * graphite-interchange.c
1274 (lst_interchange_profitable_p): Same.
1276 (psct_scattering_dim_for_loop_depth): Same.
1278 (ppl_max_for_le_pointset): Same.
1279 (ppl_min_for_le_pointset): Same.
1281 2010-06-25 Vladimir Kargov <kargov@gmail.com>
1283 * refined-regions.c (bb_index_compare): New.
1284 (get_bbs_in_region): New.
1285 (print_bbs_in_region): New.
1286 (print_refined_region): Add an argument that allows to print
1287 all basic blocks contained in regions.
1288 (debug_refined_region): Update call to print_refined_region.
1289 * refined-regions.h (print_refined_region): Update declaration.
1290 (get_bbs_in_region): Declared.
1291 * graphite-scop-detection.c (build_scops_new): Print the refined
1292 region tree into the Grahite dump file.
1294 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1296 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1297 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1299 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1301 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1302 rewrite_close_phi_out_of_ssa.
1304 * gcc.dg/graphite/id-22.c: New.
1306 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1308 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1310 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1312 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1314 * sese.c (debug_rename_map): Same.
1317 (rename_variables_in_stmt): Same.
1318 (expand_scalar_variables_call): Same.
1319 (expand_scalar_variables_ssa_name): Same.
1320 (expand_scalar_variables_expr): Same.
1321 (expand_scalar_variables_stmt): Same.
1322 (expand_scalar_variables): Same.
1323 (rename_variables): Same.
1324 (graphite_copy_stmts_from_block): Same.
1325 (copy_bb_and_scalar_dependences): Same.
1327 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1329 * graphite-clast-to-gimple.c (copy_renames): Removed.
1330 (translate_clast_for): Do not call copy_renames.
1331 (translate_clast_guard): Same.
1333 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1335 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1336 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1337 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1338 before rewrite_cross_bb_scalar_deps.
1340 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1342 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1343 Early return in when flag_associative_math is not set.
1345 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1347 * gcc.dg/graphite/run-id-2.c: Call abort.
1349 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1351 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1352 of SSA copies on edges except for loop->latch.
1354 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1356 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1357 Split out of rewrite_reductions_out_of_ssa.
1358 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1360 * graphite.c (graphite_transform_loops): Call it.
1362 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1364 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1366 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1368 * passes.c (init_optimization_passes): Add pass_graphite.
1369 Schedule a pass_copy_prop before pass_graphite_transforms.
1370 * timevar.def (TV_GRAPHITE): Declared.
1371 * tree-pass.h (pass_graphite): Declared.
1372 * tree-ssa-loop.c (pass_graphite): New.
1374 * gcc.dg/graphite/id-20.c: New.
1376 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1378 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1379 Remove calls to rename_nb_iterations and rename_sese_parameters.
1380 * graphite-clast-to-gimple.h (gloog): Update declaration.
1381 * graphite.c (graphite_transform_loops): Update call to gloog.
1382 * sese.c (rename_variables_in_expr): Removed.
1383 (rename_nb_iterations): Removed.
1384 (rename_sese_parameters): Removed.
1385 * sese.h (rename_nb_iterations): Removed.
1386 (rename_sese_parameters): Removed.
1388 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1390 * graphite-clast-to-gimple.c (gloog): Remove call to
1391 sese_adjust_liveout_phis.
1392 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1393 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1394 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1395 rewrite_phi_out_of_ssa.
1396 * sese.c (get_vdef_before_sese): Removed.
1397 (sese_adjust_vphi): Removed.
1398 (sese_adjust_liveout_phis): Removed.
1399 * sese.h (sese_adjust_liveout_phis): Removed.
1401 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1403 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1404 argument for the place after which to insert the out of SSA copy.
1405 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1406 (rewrite_phi_out_of_ssa): Same.
1407 (rewrite_cross_bb_scalar_deps): Same.
1408 (insert_copyout): Removed.
1409 (insert_copyin): Removed.
1410 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1411 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1414 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1416 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1417 (rewrite_reductions_out_of_ssa): Same.
1418 (rewrite_commutative_reductions_out_of_ssa): Same.
1419 (build_poly_scop): Do not call these functions.
1420 * graphite-sese-to-poly.h (build_poly_scop): Declared.
1421 (rewrite_reductions_out_of_ssa): Declared.
1422 (rewrite_commutative_reductions_out_of_ssa): Declared.
1423 * graphite.c (graphite_transform_loops): Call on every scop
1424 rewrite_commutative_reductions_out_of_ssa before calling
1425 rewrite_reductions_out_of_ssa and build_scop_bbs.
1427 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1429 * graphite-dependences.c (dot_deps): Make system call to dotty run
1431 (dot_deps_stmt): Same.
1432 * graphite-poly.c (dot_lst): Same.
1434 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1436 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1437 old_type in parameter.
1438 (gcc_type_for_value): Update call to gcc_type_for_interval.
1439 (compute_type_for_level_1): Renamed compute_type_for_level.
1440 Update call to gcc_type_for_interval.
1442 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1444 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
1445 the scev analysis when the variable is not used outside the loop
1446 in a close phi node: call compute_overall_effect_of_inner_loop.
1448 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1450 * graphite-sese-to-poly.c (single_pred_cond): Renamed
1451 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
1452 (build_sese_conditions_before): Renamed call to single_pred_cond.
1453 (build_sese_conditions_after): Same.
1455 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1457 * graphite-poly.h: Fix comments and indentation.
1458 * graphite-sese-to-poly.c: Same.
1459 (build_sese_conditions_before): Compute stmt and gbb only when needed.
1460 * tree-chrec.c: Fix comments and indentation.
1461 (tree-ssa-loop-niter.c): Same.
1463 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de>
1465 * refined-regions.c (create_region): Only initialize the region.
1466 (find_regions_with_entry): Initialize parent relation and bbmap
1468 (build_regions_tree): Set outermost_region to region instead of
1470 (calculate_region_tree): Remove unneeded parameters.
1472 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de>
1474 * graphite-scop-detection.c (is_scop_p): New.
1475 (build_scops_new): New. A skeleton for the new scop detection.
1476 (build_scops_old): Renamed from build_scops.
1477 (build_scops): New version. Call the new and the old scop
1480 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de>
1481 Antoniu Pop <antoniu.pop@gmail.com>
1483 * Makefile.in (OBJS-common): Add refined-regions.o.
1484 (refined-regions.o): New.
1485 (graphite-scop-detection.o): Use refined-regions.h.
1486 * graphite-scop-detection.c: Include refined-regions.h
1487 (build_scops): Also build the refined region tree.
1488 * refined-regions.c: New. Adds an algorithm to detect refined
1490 (print_refined_region): New.
1491 (debug_refined_region): New.
1492 (refined_region_contains_bb_p): New.
1493 (refined_region_contains_region_p): New.
1494 (is_common_df): New.
1495 (struct find_regions_global_data): New.
1497 (typedef struct bb_bb_def): New.
1498 (new_bb_bb_def): New.
1499 (bb_bb_map_hash): New.
1500 (eq_bb_bb_map): New.
1503 (new_bb_reg_def): New.
1504 (bb_reg_map_hash): New.
1505 (eq_bb_reg_map): New.
1506 (find_new_region): New.
1507 (insert_new_reg): New.
1508 (insert_new_bb): New.
1509 (insert_shortcut): New.
1510 (get_next_postdom): New.
1511 (create_region): New.
1512 (find_regions_with_entry): New.
1513 (find_regions_adc): New.
1514 (find_regions): New.
1515 (get_topmost_parent): New.
1516 (build_regions_tree): New.
1517 (calculate_region_tree): New.
1518 (free_region_tree): New.
1519 * refined-regions.h: New.
1520 (struct refined_region): New.
1521 (calculate_region_tree): New.
1522 (free_region_tree): New.
1523 (refined_region_contains_bb_p): New.
1524 (refined_region_contains_region_p): New.
1525 (print_refined_region): New.
1526 (debug_refined_region): New.
1528 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1530 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1533 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
1535 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix
1536 type of integer_one_node for fold_build of POINTER_PLUS_EXPR.
1538 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
1540 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1541 phi_arg_in_outermost_loop.
1542 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1543 (remove_invariant_phi): Same.
1545 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1547 * graphite-blocking.c
1548 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1549 * graphite-clast-to-gimple.c
1550 (clast_to_gcc_expression): Same.
1551 (precision_for_value): Same.
1552 (precision_for_interval): Same.
1553 (gcc_type_for_interval): Same.
1554 (graphite_create_new_guard): Same.
1555 (compute_bounds_for_level): Same.
1556 (graphite_create_new_loop_guard): Same.
1557 * graphite-interchange.c
1558 (build_linearized_memory_access): Same.
1559 (pdr_stride_in_loop): Same.
1560 (memory_strides_in_loop_1): Same.
1561 (memory_strides_in_loop): Same.
1562 (extend_scattering): Same.
1563 (psct_scattering_dim_for_loop_depth): Same.
1564 (pbb_number_of_iterations): Same.
1566 (debug_iteration_domains): Same.
1568 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1569 (ppl_set_inhomogeneous_gmp): Same.
1570 (ppl_strip_loop): Same.
1571 (ppl_lexico_compare_linear_expressions): Same.
1572 (ppl_read_polyhedron_matrix): Same.
1573 (ppl_max_for_le_pointset): Same.
1575 (ppl_read_polyhedron_matrix): Same.
1576 (tree_int_to_gmp): Same.
1577 (gmp_cst_to_tree): Same.
1578 (ppl_set_inhomogeneous): Same.
1579 (ppl_set_inhomogeneous_tree): Same.
1580 (ppl_set_coef): Same.
1581 (ppl_set_coef_tree): Same.
1582 * graphite-sese-to-poly.c
1583 (build_pbb_scattering_polyhedrons): Same.
1584 (build_scop_scattering): Same.
1585 (scan_tree_for_params_right_scev): Same.
1586 (scan_tree_for_params): Same.
1587 (find_params_in_bb): Same.
1588 (find_scop_parameters): Same.
1589 (add_upper_bounds_from_estimated_nit): Same.
1590 (build_loop_iteration_domains): Same.
1591 (add_condition_to_domain): Same.
1592 (pdr_add_memory_accesses): Same.
1594 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1596 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1597 CLooG's value_* macros to their respective mpz_* counterparts.
1598 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1599 (graphite_create_new_loop_guard): Same.
1600 * graphite-interchange.c (build_linearized_memory_access): Same.
1601 (pdr_stride_in_loop): Same.
1602 (memory_strides_in_loop_1): Same.
1603 (1st_interchange_profitable_p): Same.
1604 * graphite-poly.c (extend_scattering): Same.
1605 (psct_scattering_dim_for_loop_depth): Same.
1606 (pbb_number_of_iterations): Same.
1607 (pbb_number_of_iterations_at_time): Same.
1608 * graphite-poly.h (new_1st_loop): Same.
1609 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1610 (oppose_constraint): Same.
1611 (insert_constraint_into_matrix): Same.
1612 (ppl_set_inhomogeneous_gmp): Same.
1613 (ppl_set_coef_gmp): Same.
1614 (ppl_strip_loop): Same.
1615 (ppl_lexico_compare_linear_expressions): Same.
1616 (ppl_max_for_le_pointset): Same.
1617 (ppl_min_for_le_pointset): Same.
1618 (ppl_build_realtion): Same.
1619 * graphite-ppl.h (gmp_cst_to_tree): Same.
1620 (ppl_set_inhomogeneous): Same.
1621 (ppl_set_inhomogeneous_tree): Same.
1622 (ppl_set_coef): Same.
1623 (ppl_set_coef_tree): Same.
1624 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1625 (build_scop_scattering): Same.
1626 (add_value_to_dim): Same.
1627 (scan_tree_for_params_right_scev): Same.
1628 (scan_tree_for_params_int): Same.
1629 (scan_tree_for_params): Same.
1630 (find_params_in_bb): Same.
1631 (find_scop_parameters): Same.
1632 (add_upper_bounds_from_estimated_nit): Same.
1633 (build_loop_iteration_domains): Same.
1634 (create_linear_expr_from_tree): Same.
1635 (add_condition_to_domain): Same.
1636 (pdr_add_memory_accesses): Same.
1638 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1641 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1642 lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
1643 When converting an unsigned type to signed, double its precision.
1644 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
1645 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
1646 (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
1648 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1651 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1652 build_nonstandard_integer_type.
1653 (gcc_type_for_interval): Same.
1655 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1658 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1659 POINTER_PLUS_EXPR for pointer types.
1661 * gcc.dg/graphite/id-19.c: New.
1663 2010-04-04 Sebastian Pop <sebastian.pop@amd.com>
1666 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
1667 * graphite-clast-to-gimple.c: Include langhooks.h.
1668 (max_signed_precision_type): New.
1669 (max_precision_type): Takes two types as arguments.
1670 (precision_for_value): New.
1671 (precision_for_interval): New.
1672 (gcc_type_for_interval): New.
1673 (gcc_type_for_value): New.
1674 (gcc_type_for_clast_term): New.
1675 (gcc_type_for_clast_red): New.
1676 (gcc_type_for_clast_bin): New.
1677 (gcc_type_for_clast_expr): Split up into several functions.
1678 (gcc_type_for_clast_eq): Rewritten.
1679 (compute_bounds_for_level): New.
1680 (compute_type_for_level_1): New.
1681 (compute_type_for_level): New.
1682 (gcc_type_for_cloog_iv): Removed.
1683 (gcc_type_for_iv_of_clast_loop): Rewritten.
1684 (graphite_create_new_loop): Compute the lower and upper bound types
1685 with gcc_type_for_clast_expr.
1686 (graphite_create_new_loop_guard): Same.
1687 (find_cloog_iv_in_expr): Removed.
1688 (compute_cloog_iv_types_1): Removed.
1689 (compute_cloog_iv_types): Removed.
1690 (gloog): Do not call compute_cloog_iv_types.
1691 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
1693 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
1694 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
1695 (GBB_CLOOG_IV_TYPES): Removed.
1697 * gcc.dg/graphite/run-id-pr42644.c: Call abort.
1699 2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
1701 Reverted this commit: as at this point the loop closed SSA form
1702 is under a canonical form respecting the single argument condition.
1703 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1704 close phi nodes may have more than one argument.
1706 2010-04-01 Sebastian Pop <sebastian.pop@amd.com>
1708 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
1709 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
1710 (detect_commutative_reduction): Same.
1712 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
1714 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1715 close phi nodes may have more than one argument.
1717 2010-03-30 Richard Guenther <rguenther@suse.de>
1718 Zdenek Dvorak <ook@ucw.cz>
1719 Sebastian Pop <sebastian.pop@amd.com>
1722 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
1723 with multiple arguments.
1724 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
1726 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1728 * graphite-dependences.c (print_pddr): Call print_pdr with an
1730 * graphite-poly.c (debug_pdr): Add an extra argument for the
1733 (print_pbb_domain): Same.
1735 (print_scop_context): Same.
1737 (print_cloog): Same.
1738 (debug_pbb_domain): Same.
1742 (debug_scop_context): Same.
1744 (debug_cloog): Same.
1745 (print_scop_params): Same.
1746 (debug_scop_params): Same.
1747 (print_iteration_domain): Same.
1748 (print_iteration_domains): Same.
1749 (debug_iteration_domain): Same.
1750 (debug_iteration_domains): Same.
1751 (print_scattering_function): Same.
1752 (print_scattering_functions): Same.
1753 (debug_scattering_function): Same.
1754 (debug_scattering_functions): Same.
1755 * graphite-poly.h (debug_pdr): Update declaration.
1757 (print_pbb_domain): Same.
1759 (print_scop_context): Same.
1761 (print_cloog): Same.
1762 (debug_pbb_domain): Same.
1766 (debug_scop_context): Same.
1768 (debug_cloog): Same.
1769 (print_scop_params): Same.
1770 (debug_scop_params): Same.
1771 (print_iteration_domain): Same.
1772 (print_iteration_domains): Same.
1773 (debug_iteration_domain): Same.
1774 (debug_iteration_domains): Same.
1775 (print_scattering_function): Same.
1776 (print_scattering_functions): Same.
1777 (debug_scattering_function): Same.
1778 (debug_scattering_functions): Same.
1780 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1782 * graphite-poly.c (print_scattering_function_1): New.
1783 (print_scattering_function): Call it.
1784 (print_scop_params): Remove spaces at the end of lines.
1787 * graphite-poly.h (print_cloog): Declared.
1788 (debug_cloog): Declared.
1790 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1792 * tree-ssa-copy.c: Revert this previous change:
1793 (init_copy_prop): Loop closed phi nodes cancontain more than one
1795 (execute_copy_prop): Revert the previous change: do not call
1796 rewrite_into_loop_closed_ssa.
1798 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1799 Richard Guenther <rguenther@suse.de>
1802 * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can
1803 contain more than one argument.
1804 (execute_copy_prop): Revert the previous change: do not call
1805 rewrite_into_loop_closed_ssa.
1807 * gcc.dg/graphite/id-pr43464.c: Remove compile warning.
1808 * gcc.dg/graphite/id-pr43464-1.c: New.
1810 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1813 * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa
1814 and verify_loop_closed_ssa when copy prop is executed in the LNO.
1816 * gcc.dg/graphite/id-pr43464.c: New.
1818 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1820 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
1822 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
1823 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
1824 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
1825 to switch between adding the IV bump in loop->latch or in loop->header.
1827 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1829 * passes.c (init_optimization_passes): Add pass_copy_prop
1832 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1834 * graphite-poly.c (print_scattering_function): Pretty print following
1837 (print_pbb_domain): Same.
1838 (dump_gbb_cases): Same.
1839 (dump_gbb_conditions): Same.
1842 (print_scop_params): Same.
1843 (print_scop_context): Same.
1845 (print_pbb_body): New.
1846 (lst_indent_to): New.
1847 (print_lst): Start new lines with a #.
1848 * graphite-poly.h (pbb_bb): New.
1849 (pbb_index): Use pbb_bb.
1850 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
1852 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
1854 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1857 * gcc.dg/graphite/id-pr43351.c
1859 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1862 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
1863 call insert_out_of_ssa_copy for default definitions.
1864 * gfortran.dg/graphite/id-pr43354.f: New.
1866 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1869 * gfortran.dg/graphite/pr43349.f: New.
1871 2010-03-11 Sebastian Pop <sebastian.pop@amd.com>
1873 * graphite-clast-to-gimple.c (my_long_long): Defined.
1874 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
1875 * graphite-sese-to-poly.c (my_long_long): Defined.
1876 (scop_ivs_can_be_represented): Use it.
1878 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1880 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
1881 graphite-max-bbs-per-function, and loop-block-tile-size.
1882 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
1884 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
1886 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1888 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
1889 forward declaration.
1890 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
1891 (add_upper_bounds_from_estimated_nit): New.
1892 (build_loop_iteration_domains): Use it.
1894 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1896 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
1898 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1901 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
1902 should be an INTEGER_CST. Also handle CASE_CONVERT.
1903 * gcc.dg/graphite/pr43306.c: New.
1905 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1907 * graphite.c (graphite_initialize): To bound the number of bbs per
1908 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
1909 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
1910 * doc/invoke.texi: Document it.
1912 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1914 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
1915 * graphite-sese-to-poly.h (build_poly_scop): Same.
1917 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1919 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
1920 the number of parameters in the scop. Use as an upper bound
1921 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
1922 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
1923 * doc/invoke.texi: Document it.
1925 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1927 * graphite-sese-to-poly.c (add_param_constraints): Use
1928 lower_bound_in_type and upper_bound_in_type.
1930 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1932 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
1933 instead of unsigned_type_node.
1935 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1936 Reza Yazdani <reza.yazdani@amd.com>
1939 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
1940 on pointer type parameters.
1942 * gcc.dg/graphite/run-id-4.c: New.
1944 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1947 * gcc.dg/graphite/run-id-3.c: New.
1949 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
1950 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1952 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
1953 handle conversions from pointer to integers.
1954 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
1955 induction variable, to be able to work with code generated by CLooG.
1956 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
1957 (build_poly_scop): Bail out if we cannot codegen a loop.
1959 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1961 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
1962 code generation with gloog_error.
1964 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1966 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
1967 Call fold_convert on all the returned values.
1968 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
1969 the type of the resulting expression.
1971 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1973 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
1974 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
1975 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
1977 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1979 * graphite-dependences.c (map_into_dep_poly): Removed.
1980 (dependence_polyhedron_1): Use combine_context_id_scat.
1982 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1984 * graphite-poly.h (struct poly_scattering): Add layout documentation.
1985 (struct poly_bb): Same.
1986 (combine_context_id_scat): New.
1988 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
1991 * sese.c (name_defined_in_loop_p): Return false for default
1994 * gcc.dg/graphite/pr42326.c: New.
1996 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1998 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
1999 and clean up the logic.
2001 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
2003 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
2006 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
2009 * graphite-scop-detection.c (create_single_exit_edge): Move
2010 the call to find_single_exit_edge to....
2011 (create_sese_edges): ...here. Don't handle multiple edges
2012 exiting the function.
2013 (build_graphite_scops): Don't handle multiple edges
2014 exiting the function.
2016 * gcc.dg/graphite/pr43083.c: New.
2018 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
2021 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
2022 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
2024 * gfortran.dg/graphite/pr43097.f: New.
2026 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
2027 Manuel López-Ibáñez <manu@gcc.gnu.org>
2030 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
2032 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
2035 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
2037 * g++.dg/graphite/pr43026.C: New.
2039 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
2041 * Merge from mainline (154736:156693).
2043 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
2046 * gcc.dg/graphite/pr43012.c: New.
2048 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
2050 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
2051 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
2053 * g++.dg/graphite/pr42930.C: New.
2055 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
2058 * graphite-scop-detection.c (graphite_can_represent_scev): Call
2059 graphite_can_represent_init for MULT_EXPR.
2061 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
2065 * graphite-sese-to-poly.c (remove_phi): New.
2066 (translate_scalar_reduction_to_array): Call remove_phi.
2068 * gcc.dg/graphite/pr42530.c: New.
2069 * gcc.dg/graphite/pr42914.c: New.
2071 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
2074 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
2075 * graphite-clast-to-gimple.h (gloog): Update declaration.
2076 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
2077 * graphite-poly.h (struct poly_bb): Add missing comments.
2078 (struct scop): Add poly_scop_p field.
2080 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
2081 * graphite.c (graphite_transform_loops): Build the polyhedral
2082 representation for each scop before code generation.
2083 * sese.c (rename_variables_in_operand): Removed.
2084 (rename_variables_in_expr): Return the renamed expression.
2085 (rename_sese_parameters): New.
2086 * sese.h (rename_sese_parameters): Declared.
2088 * gcc.dg/graphite/pr42771.c: New.
2090 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
2092 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
2094 * gcc.dg/graphite/block-1.c: Same.
2095 * gcc.dg/graphite/block-3.c: Same.
2096 * gcc.dg/graphite/block-4.c: Same.
2097 * gcc.dg/graphite/block-5.c: Same.
2098 * gcc.dg/graphite/block-6.c: Same.
2099 * gcc.dg/graphite/block-7.c: Same.
2100 * gcc.dg/graphite/interchange-0.c: Same.
2101 * gcc.dg/graphite/interchange-1.c: Same.
2102 * gcc.dg/graphite/interchange-10.c: Same.
2103 * gcc.dg/graphite/interchange-11.c: Same.
2104 * gcc.dg/graphite/interchange-12.c: Same.
2105 * gcc.dg/graphite/interchange-2.c: Same.
2106 * gcc.dg/graphite/interchange-3.c: Same.
2107 * gcc.dg/graphite/interchange-4.c: Same.
2108 * gcc.dg/graphite/interchange-5.c: Same.
2109 * gcc.dg/graphite/interchange-6.c: Same.
2110 * gcc.dg/graphite/interchange-7.c: Same.
2111 * gcc.dg/graphite/interchange-8.c: Same.
2112 * gcc.dg/graphite/interchange-9.c: Same.
2113 * gcc.dg/graphite/interchange-mvt.c: Same.
2115 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
2117 * gfortran.dg/graphite/id-19.f: New.
2118 * gfortran.dg/graphite/pr14741.f90: New.
2119 * gfortran.dg/graphite/pr41924.f90: New.
2120 * gfortran.dg/graphite/run-id-2.f90: New.
2122 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
2125 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
2126 to unknown_dependence.
2127 (graphite_legal_transform_dr): Handle the unknown_dependence.
2128 (graphite_carried_dependence_level_k): Same.
2130 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
2132 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
2134 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
2135 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2138 * graphite-dependences.c (build_lexicographical_constraint): Return
2139 a union of dependence polyhedra.
2140 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
2142 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
2143 * gcc.dg/graphite/block-4.c: Same.
2144 * gcc.dg/graphite/block-7.c: Same.
2145 * gcc.dg/graphite/interchange-12.c: Same.
2146 * gcc.dg/graphite/interchange-mvt.c: Same.
2147 * gfortran.dg/graphite/interchange-1.f: XFAILed.
2148 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
2149 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
2151 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
2153 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
2154 the execution check to FAIL. This testcase is miscompiled by Graphite
2155 and the check should be re-enabled.
2156 * gcc.dg/graphite/interchange-mvt.c: Same.
2157 * gcc.dg/graphite/block-0.c: Same.
2158 * gcc.dg/graphite/block-4.c: Same.
2159 * gcc.dg/graphite/block-7.c: Same.
2161 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
2163 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
2164 * gcc.dg/graphite/scop-0.c: Fix spaces.
2165 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
2166 * gfortran.dg/graphite/block-2.f: Same.
2167 * gfortran.dg/graphite/block-3.f90: Same.
2168 * gfortran.dg/graphite/block-4.f90: Same.
2169 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
2170 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
2172 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
2174 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
2175 PDDR_ORIGINAL_SCATTERING_P.
2176 (pddr_is_empty): Rewritten.
2177 (print_dependence_polyhedron_layout): New.
2180 (build_alias_set_powerset): Moved up.
2181 (poly_drs_may_alias_p): Moved up.
2182 (lexicographically_gt_p): Removed.
2183 (build_lexicographically_gt_constraint): Renamed
2184 build_lexicographical_constraint, reimplemented.
2185 (dependence_polyhedron_1): Simplified parameters.
2186 (dependence_polyhedron): Same. Keep along empty PDDRs
2187 to make efficient use of the cache.
2188 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
2189 (graphite_legal_transform_dr): Rewritten.
2190 (graphite_legal_transform_bb): Pass fewer arguments to
2191 graphite_legal_transform_dr.
2192 (graphite_carried_dependence_level_k): Simplified implementation.
2193 (dot_original_deps_stmt_1): Call dependence_polyhedron.
2194 (dot_transformed_deps_stmt_1): Same.
2195 (dot_original_deps): Same.
2196 (dot_transformed_deps): Same.
2197 * graphite-dependences.h (struct poly_ddr): Added a new field
2198 original_scattering_p.
2199 (PDDR_ORIGINAL_SCATTERING_P): New.
2200 (print_pddr): Declared.
2201 (debug_pddr): Declared.
2202 * graphite-ppl.c: Clarify comment.
2203 * sese.h (print_gimple_bb): Removed unused declaration.
2206 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
2208 * g++.dg/graphite/graphite.exp: Rewritten.
2209 * gcc.dg/graphite/graphite.exp: Rewritten.
2210 * gfortran.dg/graphite/graphite.exp: Rewritten.
2211 * gcc.dg/graphite/block-0.c: Added runtime test.
2212 * gcc.dg/graphite/block-1.c: Same.
2213 * gcc.dg/graphite/block-3.c: Same.
2214 * gcc.dg/graphite/block-4.c: Same.
2215 * gcc.dg/graphite/block-5.c: Same.
2216 * gcc.dg/graphite/block-6.c: Same.
2217 * gcc.dg/graphite/block-7.c: Same.
2218 * gcc.dg/graphite/interchange-0.c: Same.
2219 * gcc.dg/graphite/interchange-1.c: Same.
2220 * gcc.dg/graphite/interchange-10.c: Same.
2221 * gcc.dg/graphite/interchange-11.c: Same.
2222 * gcc.dg/graphite/interchange-12.c: Same.
2223 * gcc.dg/graphite/interchange-2.c: Same.
2224 * gcc.dg/graphite/interchange-3.c: Same.
2225 * gcc.dg/graphite/interchange-4.c: Same.
2226 * gcc.dg/graphite/interchange-5.c: Same.
2227 * gcc.dg/graphite/interchange-6.c: Same.
2228 * gcc.dg/graphite/interchange-7.c: Same.
2229 * gcc.dg/graphite/interchange-8.c: Same.
2230 * gcc.dg/graphite/interchange-9.c: Same.
2231 * gcc.dg/graphite/interchange-mvt.c: Same.
2232 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
2234 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2236 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
2239 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2241 * common.opt: Add -fgraphite-cloog-opts.
2242 * graphite-clast-to-gimple.c (set_cloog_options): Same.
2243 * opts.c (decode_options): Same.
2245 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2247 * gcc.dg/graphite/id-17.c: New.
2248 * gcc.dg/graphite/pr41888.c: New.
2249 * gcc.dg/graphite/scop-22.c: New.
2250 * gfortran.dg/graphite/pr40982.f90: New.
2252 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2254 * graphite-dependences.c: Clarify comments.
2255 (build_pddr): Add an extra parameter direction.
2256 (graphite_legal_transform_dr): Use build_pddr.
2257 (dot_original_deps_stmt_1): Update use of build_pddr.
2258 (dot_transformed_deps_stmt_1): Same.
2259 (dot_original_deps): Same.
2260 (dot_transformed_deps): Same.
2262 * gcc.dg/graphite/interchange-12.c: New.
2263 * gcc.dg/graphite/block-7.c: New.
2265 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2267 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
2268 (pddr_transformed_scattering): Removed.
2269 (graphite_legal_transform_dr): Use build_pddr.
2270 (dot_original_deps_stmt_1): Same.
2271 (dot_transformed_deps_stmt_1): Same.
2272 (dot_original_deps): Same.
2273 (dot_transformed_deps): Same.
2275 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2277 * graphite-dependences.c (lexicographically_gt_p): Add comments.
2278 (build_lexicographically_gt_constraint): Same.
2279 (dependence_polyhedron_1): Same.
2280 (dependence_polyhedron): Same.
2282 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2284 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
2285 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
2286 (lexicographically_gt_p): Change type of direction to int.
2287 (build_lexicographically_gt_constraint): Same.
2288 (dependence_polyhedron_1): Same.
2289 (dependence_polyhedron): Same.
2290 (pddr_original_scattering): Use integers for direction.
2291 (pddr_transformed_scattering): Same.
2292 (graphite_legal_transform_dr): Same.
2293 (graphite_carried_dependence_level_k): Same.
2295 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2297 * graphite-dependences.c (build_pairwise_constraint): Renamed
2298 ppl_build_relation. Moved...
2299 (dr_equality_constraints): Use ppl_build_relation.
2300 (build_pairwise_scheduling_equality): Same.
2301 (build_pairwise_scheduling_inequality): Same.
2302 * graphite-ppl.c (ppl_build_relation): ...here.
2303 * graphite-ppl.h (ppl_build_relation): Declared.
2305 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
2308 * graphite-clast-to-gimple.c (gloog_error): New static variable.
2309 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
2310 Set gloog_error when such an expression failed to be built.
2311 (translate_clast): Early return when gloog_error is set.
2312 (gloog): Clear gloog_error. When gloog_error is set, call
2313 set_ifsese_condition to enable the original code. Return the status
2314 of the code generation based on gloog_error.
2315 * sese.c (set_ifsese_condition): New.
2316 * sese.h (set_ifsese_condition): Declared.
2318 * g++.dg/graphite/pr42681.C: New.
2320 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
2323 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
2324 rename_nb_iterations.
2325 * sese.c (rename_variables_in_operand): New.
2326 (rename_variables_in_expr): New.
2327 (rename_nb_iterations): New.
2328 (sese_adjust_liveout_phis): Update the rename_map.
2329 * sese.h (rename_nb_iterations): Declared.
2330 * tree-scalar-evolution.c (scev_reset_htab): New.
2331 (scev_reset): Call scev_reset_htab.
2332 * tree-scalar-evolution.h (scev_reset_htab): Declared.
2334 * gfortran.dg/graphite/pr42732.f: New.
2336 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
2339 * graphite-clast-to-gimple.c: Fix formatting.
2340 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
2341 (expr_defined_in_loop_p): New.
2342 (add_loop_exit_phis): Also handle full expressions: remove from
2343 the rename_map the expressions defined in the loop that we're closing.
2345 * gfortran.dg/graphite/pr42393-1.f90: New.
2346 * gfortran.dg/graphite/pr42393.f90: Add new flags
2347 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
2348 make this testcase useful in the Graphite branch.
2350 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
2352 * graphite-scop-detection.c (exclude_component_ref): Removed.
2353 (is_simple_operand): Removed.
2354 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
2356 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2359 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
2360 the array indexing of ADDR_EXPRs.
2362 * gcc.dg/graphite/pr42221.c: New.
2364 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2367 * graphite.c (graphite_finalize): Call scev_reset.
2368 (graphite_transform_loops): Do not call scev_reset between the code
2369 generation of scops.
2371 * gcc.dg/graphite/pr42521.c: New.
2373 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2375 * graphite-interchange.c (memory_stride_in_loop): Renamed
2377 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
2378 (memory_strides_in_loop): Memoize the memory strides per loop.
2379 (lst_interchange_profitable_p): Do not initialize to zero the memory
2381 * graphite-poly.h (struct lst): Add a field memory_strides.
2382 (LST_LOOP_MEMORY_STRIDES): New.
2383 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
2384 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
2386 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2388 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
2389 memory_strides_in_loop. Gather memory strides on a whole loop.
2390 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
2391 (lst_interchange_profitable_p): Removed.
2392 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
2394 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2396 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2397 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
2398 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
2399 Remove context_loop and level.
2401 2010-01-07 Richard Guenther <rguenther@suse.de>
2403 PR tree-optimization/42641
2404 * sese.c (rename_map_elt_info): Use the SSA name version, do
2407 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
2409 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
2410 blocked" only when both the strip mine and the interchange have
2413 * gcc.dg/graphite/block-2.c: Removed.
2414 * gcc.dg/graphite/block-3.c: Add scan pattern.
2415 * gcc.dg/graphite/block-4.c: Same.
2416 * gcc.dg/graphite/block-5.c: Same.
2417 * gcc.dg/graphite/block-6.c: Same.
2419 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
2421 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
2422 before allocating a new one.
2423 (copy_renames): Check that slot is not NULL.
2424 (mark_bb_with_pbb): Same.
2425 (compute_cloog_iv_types_1): Same.
2426 * graphite-interchange.c (lst_perfect_nestify): Free the before,
2427 nest, and after LSTs.
2428 (lst_try_interchange_loops): Same.
2430 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
2433 * graphite-interchange.c (lst_try_interchange_loops): Do not return
2434 the before, nest, and after LSTs.
2435 (lst_try_interchange): Removed.
2436 (lst_interchange_select_inner): Do not iterate over the LSTs if they
2438 (lst_interchange_select_outer): Apply interchange on the outer loop
2439 until there are no more changes in the inner loops.
2441 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2443 Revert patch fixing PR middle-end/42221.
2445 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2448 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
2451 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
2453 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2456 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
2457 that contain only one statement.
2459 * gfortran.dg/graphite/pr42180.f90: New.
2461 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2464 * gfortran.dg/graphite/pr42393.f90: New.
2466 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2469 * gfortran.dg/graphite/pr42186.f90: New.
2471 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2474 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
2475 Insert the reduction copy in the same block as the phi node.
2476 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
2478 * gcc.dg/graphite/pr42205-1.c: New.
2479 * gcc.dg/graphite/pr42205-2.c: New.
2481 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2484 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
2485 the array indexing of ADDR_EXPRs.
2487 * gcc.dg/graphite/pr42221.c: New.
2489 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2493 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
2494 index. Call lst_interchange_select_inner only once.
2495 (lst_interchange_select_inner): Update use of lst_try_interchange.
2496 (lst_interchange_select_outer): Update.
2498 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
2502 * graphite-interchange.c (lst_try_interchange): Do not increment the
2503 the OUTER index when there is no AFTER kernel. Do not increment the
2504 OUTER index for after processing the AFTER kernel.
2505 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
2506 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
2507 index. Do not pass to lst_interchange_select_inner the OUTER index.
2508 (scop_do_interchange): Update use of lst_interchange_select_outer.
2510 * gfortran.dg/graphite/graphite.exp
2511 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
2512 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
2513 the graphite dump file.
2514 * gfortran.dg/graphite/interchange-2.f: Same.
2515 * gfortran.dg/graphite/pr42334-1.f: New.
2517 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
2521 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
2523 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
2524 (lst_try_interchange): Reimplemented.
2525 (lst_interchange_select_inner): Same.
2526 (lst_do_interchange): Renamed lst_interchange_select_outer.
2528 (scop_do_interchange): Update use of lst_interchange_select_outer.
2530 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
2531 * gcc.dg/graphite/block-0.c: Un-XFAILed.
2532 * gcc.dg/graphite/pr42211.c: New.
2533 * gfortran.dg/graphite/pr42334.f90: New.
2535 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
2538 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
2539 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
2541 * gfortran.dg/graphite/pr42181.f90: New.
2543 2009-12-12 Sebastian Pop <sebpop@gmail.com>
2546 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
2547 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
2548 (detect_commutative_reduction_arg): Simplified.
2549 (detect_commutative_reduction): Early return when the argument of
2550 the close phi is not of an SSA_NAME.
2552 * gcc.dg/graphite/pr42284.c: New.
2554 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
2556 * dbgcnt.def (graphite_scop): New counter.
2557 * graphite.c: Include dbgcnt.h
2558 (graphite_transform_loops): Use new counter to limit transformations.
2560 2009-12-08 Sebastian Pop <sebpop@gmail.com>
2563 * graphite-scop-detection.c (graphite_can_represent_init): Also
2564 handle more complex MULT_EXPRs containing parameters by recursion
2567 * gfortran.dg/graphite/pr42285.f90: New.
2569 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
2571 * g++.dg/graphite/pr42130.C: Fix type.
2573 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
2575 * g++.dg/graphite/pr42130.C: Correct testcase.
2577 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
2579 * Merge from mainline (154493:154734).
2581 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
2583 * Merge from mainline (151362:154491).
2585 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
2587 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
2588 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
2590 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2593 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
2594 translate_clast_for_loop): New.
2595 (translate_clast_for): Add a condition around the loop, to do not
2596 execute loops with zero iterations.
2597 * g++.dg/graphite/pr42130.C: New.
2598 * gcc.dg/graphite/pr35356-2.c: Adapt.
2600 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2602 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
2603 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
2604 Remove context_loop and level.
2606 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2608 * graphite-clast-to-gimple.c (translate_clast_user,
2609 translate_clast_for, translate_clast_guard): Simplify and move common
2610 elements to translate_clast().
2611 (translate_clast): Simplify and get common elements.
2613 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2615 * graphite-clast-to-gimple.c (translate_clast_user,
2616 translate_clast_for, translate_clast_guard): Split out of
2619 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
2621 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
2622 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
2623 debug_clast_name_indexes_1, debug_clast_name_indexes,
2624 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
2625 (clast_name_to_gcc, clast_to_gcc_expression,
2626 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
2627 gcc_type_for_clast_eq, graphite_translate_clast_equation,
2628 graphite_create_guard_cond_expr, graphite_create_new_loop,
2629 translate_clast): Add params_index.
2630 (initialize_cloog_names): Create parameter strings from scratch, do
2631 not reference other strings.
2632 (create_params_index): New.
2633 (gloog): Initialize params_index.
2634 * graphite-scop-detection (free_scops_1): Removed.
2635 (limit_scops): Use normal free_scops.
2636 * graphite-sese-to-poly.c (save_var_names): Removed.
2637 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
2638 and SESE_PARAMS_INDEX.
2639 * sese.c (new_sese, free_sese): Dito.
2640 * sese.h (struct sese): Remove params_index, params_names.
2641 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
2643 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2645 Revert the following patch from 2009-09-14:
2646 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
2647 tree-scalar-evolution.h, and then tree-data-ref.h.
2648 * graphite-clast-to-gimple.c: Same.
2649 * graphite-dependences.c: Same.
2650 * graphite-interchange.c: Same.
2651 * graphite-poly.c: Same.
2652 * graphite-scop-detection.c: Same.
2653 * graphite-sese-to-poly.c: Same.
2655 * lambda-code.c: Same.
2656 * matrix-reorg.c: Same.
2657 * tree-data-ref.c: Same.
2658 * tree-if-conv.c: Same.
2659 * tree-loop-distribu: Same.: Same.
2660 * tree-loop-linear.c: Same.
2661 * tree-parloops.c: Same.
2662 * tree-predcom.c: Same.
2663 * tree-vect-patterns.c: Same.
2665 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2667 Revert patch from 2009-09-14.
2668 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
2669 passes at -O1 and below.
2671 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2674 * gcc.dg/graphite/pr40281.c: New.
2676 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
2677 evolutions should not variate in inner loops.
2679 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2682 * gfortran.dg/graphite/pr42050.f90: New.
2684 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2686 * graphite-interchange.c (memory_strides_in_loop_depth): New.
2687 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
2689 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2691 * graphite-blocking.c (scop_do_block): New.
2692 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
2693 * graphite-poly.h (scop_do_block): Declared.
2695 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2697 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
2698 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
2699 to transform depth into the time_depth before calling
2700 pbb_number_of_iterations_at_time.
2701 (lst_do_strip_mine): Use a scalar variable instead of recomputing
2704 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2706 Reverted the patch for "scattering permutations" from 2009-10-28.
2708 * graphite-poly.c (print_permutation): New.
2709 (debug_permutation): New.
2710 (new_poly_bb): Initialize PBB_PERMUTATION.
2711 (free_poly_bb): Free PBB_PERMUTATION.
2712 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2713 (struct pbb_permutation_elt): New.
2714 (PBB_PERMUTATION_ELT_STRIDE): New.
2715 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2716 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2717 (new_pbb_permutation_elt): New.
2718 (pbb_permutation_elt_free): New.
2719 (struct poly_bb): Add field permutation.
2720 (PBB_PERMUTATION): New.
2721 (print_permutation): Declared.
2722 (debug_permutation): Declared.
2724 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2726 * graphite-interchange.c (build_partial_difference): New.
2727 (memory_stride_in_loop): Refactored the computation of
2728 equality constraints into build_partial_difference function.
2729 Added support for debugging stride computations.
2731 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2733 * graphite-clast-to-gimple.c (gloog): Free if_region,
2734 if_region->true_region, and if_region->region.
2735 * sese.c (if_region_set_false_region): Free if_region->false_region.
2736 (create_if_region_on_edge): Do not use GGC_NEW.
2737 (move_sese_in_condition): Remove useless initialization.
2739 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2741 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
2742 for the loops created by the loop distribution. Do not modify the
2744 (lst_try_interchange_loops): Same. Use a temporary LST for the
2745 transformed schedule. Call lst_update_scattering before data
2746 dependence analysis.
2747 (lst_try_interchange): Pass an extra parameter INDEX.
2748 (lst_do_interchange_1): New.
2749 (lst_do_interchange): Call lst_do_interchange_1.
2750 (scop_do_interchange): Call lst_update_scattering.
2751 * graphite-poly.c (apply_poly_transforms): Do not call
2752 lst_update_scattering.
2753 * graphite-poly.h (lst_pred): New.
2755 (lst_find_first_pbb): Return NULL when not found.
2757 (lst_insert_in_sequence): Allow LST1 to be NULL.
2759 (lst_substitute_3): New.
2760 * gcc.dg/graphite/interchange-1.c: XFail.
2761 * gcc.dg/graphite/interchange-8.c: XFail.
2762 * gcc.dg/graphite/interchange-11.c: XFail.
2764 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2766 * graphite-interchange.c (lst_perfectly_nested_p): New.
2767 (lst_perfect_nestify): New.
2768 (lst_try_interchange_loops): Call store_lst_schedule,
2769 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
2770 (scop_do_interchange): Avoid redundant legality test.
2771 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
2772 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
2773 * graphite-poly.h (psct_static_dim): New.
2774 (lst_dewey_number_at_depth): New.
2775 (lst_find_pbb): Restructured.
2776 (lst_find_first_pbb): Restructured.
2777 (lst_find_last_pbb): New.
2778 (lst_contains_p): New.
2779 (lst_contains_pbb): New.
2780 (lst_create_nest): New.
2781 (lst_remove_from_sequence): New.
2782 (pbb_update_scattering): New.
2783 (lst_update_scattering_under): New.
2784 (lst_update_scattering_seq): New.
2785 (lst_update_scattering): New.
2786 (lst_insert_in_sequence): New.
2787 (lst_distribute_lst): New.
2788 (lst_remove_all_before_including_pbb): New.
2789 (lst_remove_all_before_excluding_pbb): New.
2791 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2793 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
2794 get_loop_exit_edges.
2796 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2798 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
2800 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2802 * graphite-poly.c (print_permutation): New.
2803 (debug_permutation): New.
2804 (new_poly_bb): Initialize PBB_PERMUTATION.
2805 (free_poly_bb): Free PBB_PERMUTATION.
2806 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2807 (struct pbb_permutation_elt): New.
2808 (PBB_PERMUTATION_ELT_STRIDE): New.
2809 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2810 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2811 (new_pbb_permutation_elt): New.
2812 (pbb_permutation_elt_free): New.
2813 (struct poly_bb): Add field permutation.
2814 (PBB_PERMUTATION): New.
2815 (print_permutation): Declared.
2816 (debug_permutation): Declared.
2818 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2820 * graphite-clast-to-gimple.c (gloog): Do not call
2821 sese_reset_aux_in_loops.
2822 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
2823 extra argument for domains. Do not use loop->aux.
2824 (build_scop_iteration_domain): Initialize and free domains, pass it
2825 to build_loop_iteration_domains and extract the information from
2826 domains. Do not use loop->aux.
2827 * sese.c (sese_reset_aux_in_loops): Removed.
2828 * sese.h (sese_reset_aux_in_loops): Removed.
2830 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2832 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
2833 (dependency_in_loop_p): Same.
2834 (translate_clast): Do not use loop->aux. Initialize
2835 loop->can_be_parallel.
2836 (mark_loops_parallel): Removed.
2837 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
2838 * graphite.c (free_aux_in_new_loops): Removed.
2839 (graphite_finalize): Do not call free_aux_in_new_loops.
2840 (graphite_transform_loops): Do not call mark_loops_parallel.
2842 2009-10-26 Li Feng <nemokingdom@gmail.com>
2844 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
2845 (translate_clast): Pass an extra parameter LEVEL.
2846 Call get_scattering_level.
2847 * graphite-clast-to-gimple.h (get_scattering_level): New.
2849 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2851 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
2852 * cfgloop.h (struct loop): New field single_iv.
2854 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
2855 loop->aux anymore: use loop->single_iv.
2856 (graphite_loop_normal_form): Moved...
2857 (build_graphite_loop_normal_form): Removed.
2858 (gloog): Do not call build_graphite_loop_normal_form.
2859 (free_aux_in_new_loops): Moved...
2860 (mark_loops_parallel): Restructure.
2861 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
2862 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
2863 (scop_canonicalize_loops): New.
2864 (build_poly_scop): Call scop_canonicalize_loops.
2865 * graphite.c (free_aux_in_new_loops): ...here.
2867 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2869 * g++.dg/graphite/graphite.exp: Add the same rules as in
2870 gcc.dg/graphite/graphite.exp.
2872 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2874 * g++.dg/graphite/id-1.C: New.
2876 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2878 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
2880 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
2881 (rewrite_phi_out_of_ssa): Same.
2882 (rewrite_cross_bb_scalar_deps): Same.
2883 (translate_scalar_reduction_to_array): Same.
2885 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2887 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
2890 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2892 * graphite-sese-to-poly.c (dump_alias_graphs): New.
2893 (build_scop_drs): Call dump_alias_graphs.
2895 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2897 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
2898 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2899 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
2900 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2901 * graphite-poly.h (free_lst): New.
2902 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
2903 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
2905 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2907 * graphite-poly.h (struct scop): Add a field saved_schedule.
2908 (SCOP_SAVED_SCHEDULE): New.
2909 (store_lst_schedule): New.
2910 (restore_lst_schedule): New.
2911 (store_scattering): Call store_lst_schedule.
2912 (restore_scattering): Call restore_lst_schedule.
2914 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2916 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
2917 (pdr_add_alias_set): Same.
2918 (build_poly_dr): Same.
2919 (build_alias_set_optimal_p): Same.
2920 (build_base_obj_set_for_drs): Same. Do not store the result of
2923 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2925 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
2926 all_components_are_cliques to 1.
2928 2009-10-20 Li Feng <nemokingdom@gmail.com>
2930 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
2932 (pdr_add_alias_set): Update retrieving alias_set_num.
2933 (build_poly_dr): Update retrieving dr_base_object_set.
2934 (partition_drs_to_sets): Remove.
2935 (build_alias_set_optimal_p): New.
2936 (build_alias_set_for_drs): Rename.
2937 (build_scop_drs): Update.
2938 * graphite-sese-to-poly.h (struct base_alias_pair): New.
2939 (ALIAS_SET_INDEX): Remove.
2940 (BASE_OBJECT_SET_INDEX): Remove.
2942 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2944 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
2946 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2948 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
2949 loop upper bounds for 1-element arrays at end of structures.
2950 * tree-flow.h (array_at_struct_end_p): Declared.
2951 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
2953 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2955 * g++.dg/graphite/pr41305.C: New.
2957 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
2959 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
2960 construction of parameter constraints from loop iteration analysis.
2961 * gcc.dg/graphite/run-id-2.c: New test.
2963 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2965 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
2968 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2970 * graphite-dependences.c (dependence_polyhedron_1): Remove
2971 unused gdim dimensions from the DDR polyhedron.
2973 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2975 * graphite-dependences.c (pddr_transformed_scattering): New.
2976 (dot_original_deps_stmt_1): New.
2977 (dot_transformed_deps_stmt_1): New.
2978 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
2979 dot_transformed_deps_stmt_1.
2980 (dot_original_deps): New.
2981 (dot_transformed_deps): New.
2982 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
2984 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2986 * graphite-dependences.c (reduction_dr_1): Remove wrong
2987 assert: reduction BBs can have multiple reduction writes
2988 to memory. interchange-3.f90 is an example.
2990 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2992 * gfortran.dg/graphite/interchange-3.f90: New.
2994 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2996 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
2998 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
3000 * graphite-dependences.c (dependence_polyhedron_1): Add the
3001 context to the dependence polyhedron.
3003 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
3005 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
3006 PBB_PDR_DUPLICATES_REMOVED.
3007 (new_poly_bb): Same.
3009 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
3011 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
3013 (build_loop_iteration_domains): Extract bounds on parameters
3014 based on the data size.
3015 (build_scop_context): Do not initialize SCOP_CONTEXT;
3016 add new constraints.
3018 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
3020 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
3021 * graphite-ppl.h (graphite-ppl.h): Declared.
3023 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
3025 * graphite-ppl.c (ppl_print_linear_expr): New.
3026 (debug_ppl_linear_expr): New.
3027 * graphite-ppl.h (ppl_print_linear_expr): Declared.
3028 (debug_ppl_linear_expr): Declared.
3030 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
3032 * graphite-interchange.c: Fix comments.
3033 * gcc.dg/graphite/block-1.c: Fix comments.
3035 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
3037 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
3038 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
3040 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
3042 Reapply the patch from Alexander Monakov that disappeared during
3043 the last merges from trunk.
3045 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
3047 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3048 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3050 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3052 * graphite-interchange.c (memory_stride_in_loop): The depth
3053 argument corresponds to a dynamic time dimension, so use
3054 psct_dynamic_dim to refer to the transformed scattering dimension.
3056 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3058 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
3060 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3062 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
3064 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
3065 the root of the LST.
3066 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
3068 (print_lst): Print the root of LST in a different format.
3069 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
3071 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3073 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
3075 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3077 * doc/passes.texi: Document the Graphite infrastructure.
3079 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3081 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
3082 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
3083 and check the SSA representation.
3085 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
3087 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3089 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
3091 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3093 * gcc.dg/graphite/interchange-11.c: New.
3095 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3097 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
3099 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3101 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
3102 Add -fno-loop-strip-mine and -fno-loop-interchange.
3103 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
3104 -fno-loop-strip-mine.
3105 * gfortran.dg/graphite/graphite.exp: Same.
3107 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3109 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
3110 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
3111 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
3112 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
3113 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
3114 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
3115 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
3116 DEFAULT_FLAGS_GRAPHITE_SCOP.
3117 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
3118 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
3120 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3122 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
3124 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3125 Sebastian Pop <sebastian.pop@amd.com>
3127 * graphite-interchange.c (build_linearized_memory_access): Pass an
3128 offset as parameter.
3129 (memory_stride_in_loop): Include transform scattering in the
3130 access functions to be able to querry the strides in the
3132 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
3133 not the psct_iterator_dim.
3135 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3137 * graphite-blocking.c (pbb_do_strip_mine): Removed.
3138 (lst_do_strip_mine_loop): New.
3139 (lst_do_strip_mine): New.
3140 (scop_do_strip_mine): Call lst_do_strip_mine.
3141 * graphite-poly.h (lst_add_loop_under_loop): New.
3142 (lst_find_first_pbb): New.
3144 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3146 * graphite-poly.c (loop_to_lst): Fix LST creation.
3148 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
3150 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
3151 sizeof(unsigned long) to make it run on 32bit systems.
3153 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
3155 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
3158 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
3160 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
3162 (write_alias_graph_to_ascii_dot): New.
3163 (write_alias_graph_to_ascii_ecc): Ditto.
3164 (partition_drs_to_sets): Add testing of optimality of current method
3165 which assigns alias numbers according to DFS Comopnent number. used
3166 as heuristic for the upcoming ECC algorithm.
3167 (build_scop_drs): Write to file also with the ecc and dot format.
3169 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
3171 * gfortran.dg/graphite/interchange-1.f: XFail.
3173 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
3175 * graphite.c (graphite_initialize): Do not handle functions with
3176 more than 100 basic blocks.
3178 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
3180 * graphite-blocking.c (pbb_do_strip_mine): Use
3181 PARAM_LOOP_BLOCK_TILE_SIZE.
3183 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
3185 * graphite-poly.c (dot_lst_1): New.
3187 * graphite-poly.h (dot_lst): Declared.
3189 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
3191 * graphite-dependences.c (dot_deps_stmt_1): New.
3192 (dot_deps_stmt): New.
3193 * graphite-dependences.h (dot_deps_stmt): Declared.
3195 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3197 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
3198 not replace cross BB scalar dependences ending on PHI nodes.
3199 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
3201 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3203 * graphite-poly.c (apply_poly_transforms): Implement the high
3204 level driver for flag_loop_block.
3205 * opts.c (decode_options): Enable flag_loop_block at -O2.
3206 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
3209 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
3211 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
3214 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3216 * graphite-poly.h (lst_find_pbb): New.
3217 (find_lst_loop): New.
3219 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3221 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
3222 * graphite-poly.h (struct scop): Remove dep_graph field.
3223 (SCOP_DEP_GRAPH): Removed.
3225 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3227 * graphite-poly.h (copy_lst): Do full copy of LST.
3229 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
3231 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
3232 when the loop stride is zero.
3234 * gcc.dg/graphite/id-16.c: New.
3236 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3238 * graphite-dependences.c (reduction_dr_1): New.
3239 (reduction_dr_p): New.
3240 (graphite_legal_transform_dr): Call reduction_dr_p.
3241 (reduction_ddr): Renamed reduction_ddr_p.
3242 * graphite-poly.h (same_pdr_p): New.
3243 (number_of_write_pdrs): New.
3244 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
3245 (split_reduction_stmt): Do not split reduction statements
3246 when there are no writes to memory.
3247 (translate_scalar_reduction_to_array_for_stmt): Insert the
3248 memory reduction statement just after the scalar reduction statement.
3250 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
3252 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
3253 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
3255 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3257 * graphite-interchange.c (lst_apply_interchange): New.
3258 (lst_interchange_profitable_p): New.
3259 (lst_try_interchange_loops): New.
3260 (lst_try_interchange): New.
3261 (lst_do_interchange): New.
3262 (pbb_do_interchange): Removed.
3263 (scop_do_interchange): Call lst_do_interchange.
3265 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3267 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
3268 SCOP_TRANSFORMED_SCHEDULE.
3273 * graphite-poly.h (lst_p): New.
3276 (LST_LOOP_FATHER): New.
3279 (scop_to_lst): Declared.
3280 (print_lst): Declared.
3281 (debug_lst): Declared.
3282 (new_lst_loop): New.
3283 (new_lst_stmt): New.
3286 (lst_dewey_number): New.
3287 (struct scop): Add original_schedule and transformed_schedule fields.
3288 (SCOP_ORIGINAL_SCHEDULE): New.
3289 (SCOP_TRANSFORMED_SCHEDULE): New.
3290 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
3292 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3294 * graphite-dependences.c (reduction_ddr): New.
3295 (graphite_legal_transform_bb): Call reduction_ddr.
3296 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
3297 Initialize PBB_IS_REDUCTION.
3298 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
3299 (PBB_IS_REDUCTION): New.
3300 (new_poly_bb): Update declaration.
3301 * graphite-scop-detection.h (build_scop_bbs): Removed.
3302 (nb_reductions_in_loop): Removed.
3303 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
3304 parameter for reductions.
3305 (try_generate_gimple_bb): Update call to new_poly_bb.
3306 (build_scop_bbs_1): Same.
3307 (build_scop_bbs): Same.
3308 (gsi_for_phi_node): New.
3309 (scalar_close_phi_node_p): Remove gcc_assert.
3310 (split_reduction_stmt): New.
3311 (is_reduction_operation_p): New.
3312 (phi_contains_arg): New.
3313 (follow_ssa_with_commutative_ops): New.
3314 (detect_commutative_reduction_arg): New.
3315 (detect_commutative_reduction_assign): New.
3316 (follow_inital_value_to_phi): New.
3317 (edge_initial_value_for_loop_phi): New.
3318 (initial_value_for_loop_phi): New.
3319 (detect_commutative_reduction): New.
3320 (translate_scalar_reduction_to_array_for_stmt): New.
3321 (insert_copyout): New.
3322 (insert_copyin): New.
3323 (translate_scalar_reduction_to_array): New.
3324 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
3325 (rewrite_commutative_reductions_out_of_ssa_loop): New.
3326 (rewrite_commutative_reductions_out_of_ssa): New.
3327 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
3328 * sese.h (split_region_for_bb): New.
3330 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
3331 * gcc.dg/graphite/interchange-1.c: Fix format.
3332 * gcc.dg/graphite/interchange-10.c: New.
3334 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3336 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
3339 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3341 * graphite-sese-to-poly.c (scev_analyzable_p): New.
3342 (rewrite_cross_bb_scalar_dependence): New.
3343 (rewrite_cross_bb_scalar_deps): New.
3344 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
3345 Call rewrite_cross_bb_scalar_deps.
3347 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3349 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
3350 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
3353 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3355 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
3356 * graphite-interchange.c (pbb_do_interchange): Same.
3357 * graphite-poly.c (print_scattering_function): Same.
3359 * graphite-poly.h (pbb_loop): New.
3360 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
3362 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
3364 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
3366 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
3368 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
3369 so don't pass a pointer to it.
3370 (build_alias_set_for_drs): Same.
3371 (build_base_obj_set_for_drs): Same.
3372 (build_scop_drs): Same.
3374 2009-09-26 Li Feng <nemokingdom@gmail.com>
3376 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
3377 the alias graph of data references.
3379 2009-09-25 Li Feng <nemokingdom@gmail.com>
3381 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
3382 (build_scop_drs): When debugging, write the alias graph to file,
3383 otherwise, should be disabled.
3385 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3387 * Merge from mainline (151310:151361).
3389 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3391 * Merge from mainline (151171:151310).
3393 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3395 * Merge from mainline (151171:151806).
3397 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3399 * Revert the last commit.
3401 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3403 * Merge from mainline (151171:151819).
3405 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3407 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
3408 (is_simple_operand): Remove call to stmt_simple_memref_p.
3409 (stmt_simple_for_scop_p): Update call to is_simple_operand.
3411 2009-09-17 David Edelsohn <edelsohn@gnu.org>
3413 * gcc.dg/graphite/interchange-mvt.c: New File.
3414 * gcc.dg/graphite/scop-dsyrk.c: New File.
3415 * gcc.dg/graphite/scop-dsyr2k.c: New File.
3416 * gcc.dg/graphite/scop-mvt.c: New File.
3417 * gcc.dg/graphite/scop-sor.c: New File.
3419 2009-09-17 Li Feng <nemokingdom@gmail.com>
3421 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
3422 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
3423 (graphite_carried_dependence_level_k): Ditto.
3424 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
3425 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
3426 (new_poly_dr): Adjust declaration.
3427 * graphite-sese-to-poly.c (free_data_refs_aux): New.
3428 (free_gimple_bb): Added free_data_refs_aux.
3429 (build_poly_dr): Add dr_base_object_set.
3430 (partition_drs_to_sets): New.
3431 (dr_same_base_object_p): New.
3432 (build_alias_set_for_drs): New.
3433 (build_base_object_set_for_drs): New.
3434 (build_scop_drs): Add build_base_obj_set_for_drs.
3435 * graphite-sese-to-poly.h: Added #define for alias set number index and
3436 base object set index.
3437 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
3438 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
3440 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
3442 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3443 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3445 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3447 * graphite-sese-to-poly.c (struct irp_data): Removed.
3448 (idx_record_params): Removed.
3449 (find_params_in_bb): Scan for parameters the access functions; don't
3450 parse the tree representation.
3452 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3454 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
3455 passes at -O1 and below.
3457 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3459 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
3460 tree-scalar-evolution.h, and then tree-data-ref.h.
3461 * graphite-clast-to-gimple.c: Same.
3462 * graphite-dependences.c: Same.
3463 * graphite-interchange.c: Same.
3464 * graphite-poly.c: Same.
3465 * graphite-scop-detection.c: Same.
3466 * graphite-sese-to-poly.c: Same.
3468 * lambda-code.c: Same.
3469 * matrix-reorg.c: Same.
3470 * tree-data-ref.c: Same.
3471 * tree-if-conv.c: Same.
3472 * tree-loop-distribu: Same.: Same.
3473 * tree-loop-linear.c: Same.
3474 * tree-parloops.c: Same.
3475 * tree-predcom.c: Same.
3476 * tree-vect-patterns.c: Same.
3478 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
3480 Partially revert the previous patch, except the following.
3481 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
3482 as parameters the operands of the not expression.
3484 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3486 * tree-scalar-evolution.c (instantiate_scev_assign): New.
3487 Do not call analyze_scalar_evolution on assignments.
3488 (instantiate_scev_phi): Call analyze_scalar_evolution.
3489 (instantiate_scev_name): Call instantiate_scev_assign and
3490 instantiate_scev_phi.
3491 (instantiate_scev_not): Adapted to pass as parameters the operands
3492 of the not expression.
3494 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3496 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
3497 to pass as parameters the operands of the binary expression.
3499 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3501 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
3502 instantiate_scev_not. Handle NEGATE_EXPR.
3503 (instantiate_scev_r): Handle NEGATE_EXPR.
3505 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3507 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
3509 (instantiate_scev_r): Move code in instantiate_scev_2
3510 and instantiate_scev_1.
3512 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3514 * tree-scalar-evolution.c (instantiate_scev_3): New.
3515 (instantiate_scev_1): Move code in instantiate_scev_3.
3517 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3519 * tree-scalar-evolution.c (instantiate_scev_poly): New.
3520 (instantiate_scev_1): Move code in instantiate_scev_poly.
3522 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3524 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
3525 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
3527 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3529 * tree-scalar-evolution.c (instantiate_scev_convert): New.
3530 (instantiate_scev_1): Move code in instantiate_scev_convert.
3532 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3534 * tree-scalar-evolution.c (instantiate_scev_binary): New.
3535 (instantiate_scev_1): Move code in instantiate_scev_binary.
3537 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3539 * tree-scalar-evolution.c (instantiate_scev_name): New.
3540 (instantiate_scev_1): Move code in instantiate_scev_name.
3542 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3544 * Merge from mainline (150992:151171).
3546 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3548 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
3550 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3552 * graphite-dependences.c (graphite_legal_transform_bb): Call
3553 pbb_remove_duplicate_pdrs.
3554 * graphite-poly.c (can_collapse_pdr): Removed.
3555 (pdr_find_duplicate): Removed.
3556 (can_collapse_pdrs): New.
3557 (pbb_remove_duplicate_pdrs): New.
3558 (new_poly_dr): Do not look for duplicates.
3559 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
3560 (PBB_PDR_DUPLICATES_REMOVED): New.
3561 (pbb_remove_duplicate_pdrs): Declared.
3563 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3565 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
3566 the strides by multiplying by PDR_NB_REFS.
3567 * graphite-poly.c (can_collapse_pdr): New.
3568 (pdr_find_duplicate): New.
3569 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
3570 Initialize PDR_NB_REFS.
3571 * graphite-poly.h (struct poly_dr): Add field nb_refs.
3573 (new_poly_dr): Number of subscripts is a graphite_dim_t.
3575 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3577 Revert one of the previous commits:
3578 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
3579 the computation of symmetric data dependence relations.
3580 (dependency_between_pbbs_p): Same.
3582 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3585 * graphite-poly.c (apply_poly_transforms): Remove legality test before
3588 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3590 * graphite-dependences.c (pddr_original_scattering): Return NULL
3591 for read-read dependence relations.
3592 * graphite-poly.h (enum poly_dr_type): Fix comment.
3595 (pdr_may_write_p): New.
3597 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3599 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
3600 (struct poly_dr): Same.
3601 (new_poly_dr): Same.
3602 * graphite-poly.c (new_poly_dr): Same.
3604 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3605 Sebastian Pop <sebastian.pop@amd.com>
3607 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
3608 pbb_strip_mine_time_depth. Changed the implementation so that
3609 transformation is expressed as a transformation on
3610 time (scatttering) dimensions. Also, ensures that the 2d+1
3611 scheduling format is preserved.
3612 (pbb_strip_mine_profitable_p): Profitability is based on the
3613 iteration number of a given time (scattering) dimension,
3614 and not on a original loop depth dimension.
3615 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
3616 (pbb_do_strip_mine): Call psct_dynamic_dim.
3617 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
3618 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
3619 (pbb_nb_dynamic_scattering_transform): New.
3620 (psct_dynamic_dim): New.
3622 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3624 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3625 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3626 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
3627 * graphite-interchange.c (build_linearized_memory_access): Same.
3628 (memory_stride_in_loop): Same.
3630 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3632 * graphite-dependences.c (pddr_original_scattering): New.
3633 (graphite_legal_transform_dr): Call pddr_original_scattering.
3636 * graphite-dependences.h (dot_deps): Declared.
3637 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
3638 (print_pdr): Print PDR_ID.
3639 * graphite-poly.h (struct poly_dr): Add field id.
3642 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
3644 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
3646 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
3647 not delete the original dependence relation.
3649 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3651 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
3652 the computation of symmetric data dependence relations.
3653 (dependency_between_pbbs_p): Same.
3655 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3657 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
3658 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
3659 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
3660 (free_poly_ddr): New.
3661 (pddr_is_empty): New.
3662 (dependence_polyhedron_1): Now returns a poly_ddr_p.
3663 (dependence_polyhedron): Same. Remove useless gcc_assert.
3665 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
3666 (graphite_carried_dependence_level_k): Call pddr_is_empty.
3667 * graphite-dependences.h (enum poly_dependence_kind): New.
3668 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
3669 (PDRP_SOURCE): Renamed PDDR_SOURCE.
3670 (PDRP_SINK): Renamed PDDR_SINK.
3671 (PDRP_DDP): Renamed PDDR_DDP.
3673 (free_poly_ddr): Declared.
3674 * graphite-poly.c (new_scop): Use the new hash function names.
3675 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
3676 into original_pddrs.
3677 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
3679 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3681 * Merge from mainline (150764:150992).
3683 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3685 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
3686 bounds with LT_EXPR to make niter analysis more precise on code
3687 generated by Graphite.
3689 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3691 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
3692 (graphite_legal_transform_bb): Same.
3693 (poly_drs_may_alias_p): Same.
3695 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
3698 * graphite-ppl.c (ppl_max_for_le): Correct the use of
3699 ppl_Pointset_Powerset_C_Polyhedron_maximize.
3701 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3703 * graphite-poly.c (print_pbb): Print PBB index.
3705 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3707 * Merge from mainline (r150672:150764).
3709 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3711 * graphite-interchange.c (ppl_max_for_le): Moved...
3712 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
3713 * graphite-ppl.c (ppl_max_for_le): ... here.
3714 * graphite-ppl.h (ppl_max_for_le): Declared.
3716 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3718 * Merge from mainline (r150372:150672).
3720 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3723 * sese.c (convert_for_phi_arg): New.
3724 (add_guard_exit_phis): Use convert_for_phi_arg.
3726 * gfortran.dg/graphite/id-17.f: New.
3728 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3730 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
3731 unknown subscript upper bounds.
3733 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
3735 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3736 Pranav Garg <pranav.garg2107@gmail.com>
3738 * graphite-interchange.c (gather_access_strides): Removed.
3739 (ppl_max_for_le): New.
3740 (build_linearized_memory_access): New.
3741 (memory_stride_in_loop): New.
3742 (pbb_interchange_profitable_p): Reimplemented.
3743 * graphite-ppl.h (ppl_new_id_map): New.
3744 (ppl_interchange): New.
3746 * gcc.dg/graphite/interchange-6.c: XFAILed.
3748 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3750 * graphite-interchange.c (compute_subscript): Removed.
3751 (compute_array_size_cstr): Removed.
3752 (compute_array_size_poly): Removed.
3753 (compute_array_size): Removed.
3754 (gather_access_strides_poly): Removed.
3755 (gather_access_strides): Empty.
3757 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3759 * graphite-dependences.c (dependence_polyhedron_1): Replace
3760 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
3761 (graphite_legal_transform_dr): Same.
3762 (graphite_carried_dependence_level_k): Same.
3763 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
3764 Initialize PDR_NB_SUBSCRIPTS.
3765 (print_pdr_access_layout): Replace pdr_nb_subscripts with
3767 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
3768 (PDR_NB_SUBSCRIPTS): New.
3769 (pdr_nb_subscripts): Removed.
3770 (pdr_dim): Simplified.
3771 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
3772 with PDR_NB_SUBSCRIPTS.
3774 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3776 * graphite-interchange.c (compute_array_size): Remove use of
3778 * graphite-poly.c (new_poly_dr): Remove argument data_container.
3779 Do not initialize PDR_DATA_CONTAINER.
3780 (print_pdr): Do not print PDR_DATA_CONTAINER.
3781 * graphite-poly.h (struct poly_dr): Remove data_container field.
3782 (PDR_DATA_CONTAINER): Removed.
3783 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
3785 (build_poly_dr): Same.
3787 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3789 * gcc.dg/graphite/interchange-9.c: New.
3791 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3792 Sebastian Pop <sebastian.pop@amd.com>
3794 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
3795 copy of the dependence polyhedron. Free the temporary objects.
3796 (graphite_carried_dependence_level_k): Free unused objects before
3799 * gcc.dg/graphite/interchange-1.c: XFAILed.
3800 * gcc.dg/graphite/interchange-2.c: XFAILed.
3801 * gcc.dg/graphite/interchange-3.c: XFAILed.
3802 * gcc.dg/graphite/interchange-4.c: XFAILed.
3803 * gcc.dg/graphite/interchange-7.c: XFAILed.
3805 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3807 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
3808 Early return without analyzing the data dependences if no
3809 transform has been done. Call restore_scattering if the transform
3811 (graphite-interchange.c): Same.
3812 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
3813 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
3814 (apply_poly_transforms): Do not gcc_assert that
3815 the transform is legal.
3816 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3817 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
3818 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
3819 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3820 * graphite-poly.h (struct poly_scattering): New.
3821 (struct poly_bb): Add original, transformed, and saved fields.
3822 Remove transformed_scattering, original_scattering, nb_local_variables,
3823 and nb_scattering_transform fields.
3824 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
3825 (poly_scattering_new): New.
3826 (poly_scattering_free): New.
3827 (poly_scattering_copy): New.
3828 (store_scattering_pbb): New.
3829 (store_scattering): New.
3830 (restore_scattering_pbb): New.
3831 (restore_scattering): New.
3832 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3833 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
3835 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3837 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
3840 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3842 * Makefile.in (graphite.o): Depends on PREDICT_H.
3843 * graphite.c: Include predict.h.
3844 (graphite_finalize): Call tree_estimate_probability.
3845 * predict.c (predict_loops): Do not call scev_initialize and
3847 (tree_estimate_probability_bb): New.
3848 (tree_estimate_probability): Do not initialize loops: move that
3849 code to the driver. Call tree_estimate_probability_bb.
3850 (tree_estimate_probability_driver): New.
3851 (pass_profile): Use tree_estimate_probability_driver.
3852 * predict.h (tree_estimate_probability): Declared.
3854 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3856 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
3857 * graphite-dependences.c (graphite_legal_transform): Add time to
3858 TV_GRAPHITE_DATA_DEPS.
3859 (dependency_between_pbbs_p): Same.
3860 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
3862 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
3864 * Merge from mainline (r149952:150372).
3866 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3868 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
3869 * graphite-blocking.c: Same.
3870 * graphite-clast-to-gimple.c: Same.
3871 * graphite-dependences.c: Same.
3872 * graphite-poly.c: Same.
3873 * graphite-poly.h: Same.
3874 * graphite-ppl.c: Same.
3875 * graphite-scop-detection.c: Same.
3876 * graphite-sese-to-poly.c: Same.
3879 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3881 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
3882 (remove_simple_copy_phi): New.
3883 (remove_invariant_phi): New.
3884 (simple_copy_phi_p): New.
3885 (reduction_phi_p): New.
3886 (gsi_for_ssa_name_def): New.
3887 (insert_out_of_ssa_copy): New.
3888 (insert_out_of_ssa_copy_on_edge): New.
3889 (create_zero_dim_array): New.
3890 (scalar_close_phi_node_p): New.
3891 (rewrite_close_phi_out_of_ssa): New.
3892 (rewrite_phi_out_of_ssa): New.
3893 (rewrite_reductions_out_of_ssa): New.
3894 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
3896 * gcc.dg/graphite/id-11.c: New.
3897 * gcc.dg/graphite/id-15.c: New.
3898 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
3899 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
3900 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
3901 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
3902 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
3903 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
3904 * gfortran.dg/graphite/id-13.f: New.
3905 * gfortran.dg/graphite/id-5.f: New.
3907 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3909 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
3910 check that nb_reductions_in_loop is zero.
3911 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
3912 reduction phi nodes.
3913 (nb_reductions_in_loop): Removed.
3914 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
3915 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
3916 (bb_contains_non_iv_scalar_phi_nodes): Removed.
3917 (scop_contains_non_iv_scalar_phi_nodes): Removed.
3918 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
3920 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3922 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
3923 statements that have an empty iteration domain.
3924 * gfortran.dg/graphite/id-16.f: New.
3926 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3928 * tree-scalar-evolution.c (instantiate_scev_1): Return
3929 chrec_dont_know when the result is not above instantiate_below.
3930 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
3931 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
3932 the tree has a known scalar evolution.
3933 * gfortran.dg/graphite/id-14.f: New.
3934 * gfortran.dg/graphite/id-15.f: New.
3936 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3938 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
3940 (rename_variables): Keep inserting renames after the ones already
3943 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3945 * graphite-sese-to-poly.c (compare_bb_depths): New.
3946 (graphite_sort_dominated_info): New.
3947 (build_scop_bbs_1): Call graphite_sort_dominated_info.
3948 (build_scop_scattering): Fix comment.
3950 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3952 * graphite.c (graphite_finalize): Call print_loops instead of
3953 dump_function_to_file.
3954 * gcc.dg/graphite/graphite.exp: Fix formatting.
3955 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
3956 loops generated in the graphite output file.
3957 * gcc.dg/graphite/pr35356-2.c: New.
3958 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
3959 * gfortran.dg/graphite/id-12.f: New.
3961 2009-07-24 Li Feng <nemokingdom@gmail.com>
3963 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
3966 2009-07-24 Li Feng <nemokingdom@gmail.com>
3967 Tobias Grosser <grosser@fim.uni-passau.de>
3969 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
3970 alias set number build alias in ACCESSES polyhedron.
3971 (build_alias_set_for_drs): New.
3972 (build_pbb_drs): Added build_alias_set_for_drs.
3973 * graphite-dependences.c (poly_drs_may_alias_p): New.
3974 (graphite_carried_dependence_level_k): Check alias information
3975 before building polyhedron.
3977 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3979 * Makefile.in (lambda-code.o): Fix formatting.
3981 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3983 * Merge from mainline (r149350-149952)
3985 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3987 * graphite-poly.c (apply_poly_transforms): Move strip_mine
3988 before interchange to prepare for loop blocking.
3990 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3992 * graphite-poly.c (apply_poly_transforms): Add checks after every
3994 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
3995 done in apply_poly_transforms.
3997 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3999 * graphite-dependences.c (build_lexicographically_gt_constraint):
4000 Replace RES parameter with *RES.
4001 (dependence_polyhedron_1): Pass an address of the parameter RES
4002 instead of value of RES.
4004 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
4006 * graphite.c (graphite_finalize): Fix comment.
4007 (graphite_transform_loops): Reset scev info after code generation
4010 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
4012 * graphite.c (graphite_finalize): Call scev_reset.
4014 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
4016 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
4017 GBB_CLOOG_IV_TYPES hash table twice.
4018 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
4019 (add_condition_to_domain): Clear GMP values.
4021 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
4023 * graphite-dependences.c: Fix formatting.
4024 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
4025 (pbb_number_of_iterations): Free ppl_Linear_Expression.
4026 * graphite-sese-to-poly.c: Fix formatting.
4027 * graphite.c (graphite_transform_loops): Create the hash table
4028 after the early return.
4030 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
4032 * gcc.dg/graphite/id-14.c: New.
4033 * gcc.dg/graphite/pr40157.c: New.
4034 * gfortran.dg/graphite/id-11.f: New.
4036 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
4038 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
4039 (build_poly_scop): Return false when there are no pbbs within
4040 loops to avoid to pass to cloog scops with no loops.
4042 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
4044 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
4045 useless test "i % 2".
4046 (build_pbb_scattering_polyhedrons): Fix formatting.
4047 (build_poly_dr): Same.
4048 * graphite.c (graphite_transform_loops): Restructure.
4050 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
4052 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
4053 reduction_list parameter.
4054 (rewrite_all_phi_nodes_with_iv): Same.
4055 (canonicalize_loop_ivs): Same.
4056 * tree-parloops.c (struct brli): Removed.
4057 (build_reduction_list_info): Removed.
4058 (build_new_reduction): New.
4059 (analyze_reduction_list): Removed.
4060 (gather_scalar_reductions): Find reductions instead of phi
4061 nodes that can't be canonicalized.
4062 (try_create_reduction_list): Remove reduction_list parameter.
4063 (gen_parallel_loop): Same.
4064 (parallelize_loops): Remove analyze_reductions variable,
4065 initialization and free.
4066 Change reduction_list htab initialization to reduction_info
4067 elements instead of ssa names.
4068 Call try_create_reduction_list and gen_parallel_loop without
4069 analyzed_reduction argument.
4070 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
4071 canonicalize_loop_ivs with one less argument.
4072 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
4074 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
4076 * graphite-dependences.c (new_poly_dr_pair): New.
4077 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
4078 (new_poly_dr_pair): New.
4079 (eq_poly_dr_pair_p): New.
4080 (hash_poly_dr_pair_p): New.
4081 * graphite-dependences.h (struct poly_dr_pair): New.
4082 (eq_poly_dr_pair_p): Declared.
4083 (hash_poly_dr_pair_p): Declared.
4084 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
4085 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
4086 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
4087 * Makefile.in (graphite-poly.o): Add dependence on
4088 graphite-dependences.h.
4090 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
4092 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
4093 polynomials of degree > 1 pass to Graphite.
4094 * tree-chrec.c (scev_is_linear_expression): Call
4095 evolution_function_is_affine_multivariate_p.
4096 * gfortran.dg/graphite/id-10.f90: New.
4098 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
4100 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
4101 Instantiate scevs varying in outer loops.
4102 * gfortran.dg/graphite/id-9.f: Correct testcase.
4104 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
4106 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
4107 redundant constraint.
4109 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
4111 * gcc.dg/graphite/graphite.exp: Fix comments.
4112 * gfortran.dg/graphite/graphite.exp: Trigger actions
4113 based on the file names as in the C testsuite.
4114 * gfortran.dg/graphite/block-1.f90: Fix patterns.
4115 * gfortran.dg/graphite/block-2.f: Same.
4116 * gfortran.dg/graphite/block-3.f90: Same.
4117 * gfortran.dg/graphite/block-4.f90: Same.
4118 * gfortran.dg/graphite/id-1.f90: Same.
4119 * gfortran.dg/graphite/id-2.f90: Same.
4120 * gfortran.dg/graphite/id-3.f90: Same.
4121 * gfortran.dg/graphite/id-4.f90: Same.
4122 * gfortran.dg/graphite/id-6.f: Same.
4123 * gfortran.dg/graphite/id-9.f: Same.
4124 * gfortran.dg/graphite/interchange-1.f: Same.
4125 * gfortran.dg/graphite/interchange-2.f: Same.
4126 * gfortran.dg/graphite/scop-1.f: Same.
4128 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
4130 * sese.c (expand_scalar_variables_call): New.
4131 (expand_scalar_variables_ssa_name): Handle calls in expander.
4133 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
4135 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
4136 Expect to see the pattern twice.
4137 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
4138 * gcc.dg/graphite/interchange-5.c: Same.
4139 * gcc.dg/graphite/interchange-6.c: Same.
4141 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
4143 * gcc.dg/graphite/id-10.c: New.
4144 * gcc.dg/graphite/id-12.c: New.
4145 * gfortran.dg/graphite/id-7.f: New.
4146 * gfortran.dg/graphite/id-8.f: New.
4148 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
4150 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
4153 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
4155 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
4157 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
4159 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
4161 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
4163 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
4164 building PDR subscripts.
4166 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
4168 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
4169 computation of array sizes.
4171 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
4173 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
4175 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
4177 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
4178 build_pairwise_constraint, dr_equality_constraints,
4179 build_pairwise_scheduling_equality,
4180 build_pairwise_scheduling_inequality, lexicographically_gt_p,
4181 build_lexicographically_gt_constraint, dependence_polyhedron,
4182 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
4183 Move from NNC_Polyhedron to C_Polyhedron.
4184 * graphite-interchange.c (compute_array_size_poly,
4185 gather_access_strides): Dito.
4186 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
4187 free_scop, pbb_number_of_iterations): Dito.
4188 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
4189 pbb_dim_iter_domain, struct scop): Dito.
4190 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
4191 new_Cloog_Domain_from_ppl_Polyhedron,
4192 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
4193 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
4194 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
4195 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
4196 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
4197 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
4198 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
4199 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
4200 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
4201 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
4202 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
4203 build_scop_iteration_domain, build_poly_dr): Dito
4205 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4207 * gcc.dg/graphite/graphite.exp: Added a rule to execute
4209 * gcc.dg/graphite/run-id-1.c: New.
4211 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4213 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
4214 positivity constraint on the symbolic number of iterations.
4216 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4218 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
4220 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4221 Tobias Grosser <grosser@fim.uni-passau.de>
4223 * graphite-clast-to-gimple.c (build_scop_context): Removed.
4224 (build_cloog_prog): Directly use SCOP_CONTEXT.
4225 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
4226 (free_scop): Free SCOP_CONTEXT.
4227 (print_scop_context): New.
4228 (print_scop): Call print_scop_context.
4229 (debug_scop_context): New.
4230 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
4231 (struct scop): Added field context.
4232 (SCOP_CONTEXT): New.
4233 * graphite-sese-to-poly.c (add_param_constraints): New.
4234 (build_scop_context): New.
4235 (build_poly_scop): Call build_scop_context.
4237 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4239 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
4240 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
4241 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
4242 * graphite-ppl.h: Include double-int.h and tree.h.
4243 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
4244 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
4245 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
4246 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
4248 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4250 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
4251 POINTER_PLUS_EXPR for pointer types.
4252 (clast_to_gcc_expression): Same.
4254 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4256 * graphite-poly.c (print_scattering_function): Early return when
4257 PBB_TRANSFORMED_SCATTERING is not initialized.
4258 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
4260 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
4262 * tree-parloops.c (analyze_reduction_list): Remove unused variable
4265 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
4267 * tree-parloops.c (analyze_reduction_list): Change return
4269 (try_create_reduction_list): Move the call to
4270 analyze_reduction_list to the beginining.
4271 Call reduction_phi with analyzed_reductions as argument
4272 instead of reduction_list.
4274 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
4276 * Merge from mainline (r148296:149346)
4278 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4280 * graphite-scop-detection.c (graphite_can_represent_init): New.
4281 (graphite_can_represent_scev): Call graphite_can_represent_init:
4282 check that the initial value does not contain multiplications of
4284 (stmt_has_simple_data_refs_p): New.
4285 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
4286 (is_simple_operand): Fix formatting.
4287 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
4289 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4291 * gcc.dg/graphite/id-13.c: New.
4292 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
4293 analyze_scalar_evolution, use scalar_evolution_in_region.
4294 (scan_tree_for_params_right_scev): Add extra assert.
4295 (parameter_index_in_region_1): Split from parameter_index_in_region.
4296 (idx_record_params): Use scalar_evolution_in_region.
4297 (find_params_in_bb): Same.
4298 (find_scop_parameters): Same.
4299 (build_loop_iteration_domains): Same.
4300 (create_linear_expr_from_tree): Same.
4301 * sese.c (scalar_evolution_in_region): New.
4302 * sese.h (scalar_evolution_in_region): Declared.
4303 (defined_in_sese_p): New.
4304 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
4306 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
4309 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4311 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
4312 TREE_DATA_REF_H also implies SCEV_H.
4314 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4316 * graphite-poly.c (print_scop_params): New.
4317 (print_scop): Call print_scop_params.
4318 (debug_scop_params): New.
4319 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
4321 2009-07-07 Li Feng <nemokingdom@gmail.com>
4323 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
4324 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
4325 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
4326 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
4327 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
4328 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
4330 2009-07-07 Li Feng <nemokingdom@gmail.com>
4332 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
4333 for dependency checking part.
4334 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
4335 tests for dependency checking.
4336 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
4337 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
4338 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
4339 flag -fdump-tree-graphite-all for autopar testsuites.
4341 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
4343 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
4344 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
4345 canonicalize_loop_ivs): Moved...
4346 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
4348 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
4350 * tree-parloops.c (try_create_reduction_list): Pass an extra
4351 argument analyzed_reductions. Call analyze_reduction_list.
4352 (gen_parallel_loop): Do not call analyze_reduction_list.
4353 (parallelize_loops): Init and finalize analyzed_reductions.
4355 2009-07-06 Li Feng <nemokingdom@gmail.com>
4357 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
4358 Added flag -fno-loop-strip-mine for autopar testcase.
4360 2009-07-04 Li Feng <nemokingdom@gmail.com>
4362 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
4363 transformed scattering dimension instead of unmatch orignal when
4364 calling dependence_polyhedron.
4366 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4368 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
4370 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4372 * graphite-poly.c (pbb_number_of_iterations): Check for returned
4373 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
4375 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4377 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
4378 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
4379 * graphite-poly.c (pbb_number_of_iterations): New.
4380 * graphite-poly.h (pbb_number_of_iterations): Declared.
4381 (pbb_iterator_dim, pbb_parameter_dim): New.
4383 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
4385 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
4386 last commit on type of lower and upper bound of loops.
4388 2009-06-29 Li Feng <nemokingdom@gmail.com>
4390 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
4391 graphite-dependences.h.
4392 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
4393 (mark_bb_with_pbb): New.
4394 (get_stmtfor_depth): New.
4395 (find_pbb_via_hash): New.
4396 (dependency_in_loop_p): New.
4397 (mark_loops_parallel): New.
4398 (free_aux_in_new_loops): New.
4399 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
4400 bb with it's relevant pbb. Mark newly created loops. Remove mark
4401 innermost loop parallel without checking.
4402 (gloog): Add parameter BB_PBB_MAPPING.
4403 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
4404 (gloog): Change declaration.
4405 (mark_loop_parallel): Make extern.
4406 (free_aux_in_new_loops): Declare.
4407 (bb_pbb_map_hash): New.
4408 (eq_bb_pbb_map): New.
4409 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
4410 auto parallelization when flag_graphite_force_parallel is set.
4411 (graphite_finalize): Added free_aux_in_new_loops.
4412 * tree-parloops.c (parallelize_loops): Only generate parallel code for
4413 the innermost loop that marked parallel. Use
4414 flag_graphite_force_parallel instead of loop->can_be_parallel.
4415 (loop_parallel_p): Move inner most checking out of function.
4417 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4419 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
4420 type of lower and upper bound of loops signed long int.
4422 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4424 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
4425 expression outside the loop.
4427 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4429 * gcc.dg/graphite/interchange-8.c: New.
4431 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4433 * gcc.dg/graphite/interchange-0.c: XFailed.
4434 * gcc.dg/graphite/interchange-5.c: XFailed.
4435 * gcc.dg/graphite/interchange-6.c: XFailed.
4437 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4439 * graphite-interchange.c (compute_array_size_poly): The end of the
4440 recursion should return 1.
4442 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4444 * graphite-interchange.c (compute_array_size_cstr): Allow the
4445 subscript multiplier to be -1.
4446 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
4447 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
4448 data_container. Initializes PDR_DATA_CONTAINER.
4449 (print_pdr_access_layout): New.
4450 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
4451 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
4453 (PDR_DATA_CONTAINER): New.
4454 (new_poly_dr): Update declaration.
4455 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
4456 (build_poly_dr): Call pdr_add_data_dimensions.
4458 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4460 * graphite-poly.h (struct poly_dr): Fix comment.
4461 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
4462 (pdr_add_memory_accesses): New.
4463 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
4465 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4467 * graphite-poly.c (print_pdrs, debug_pdrs): New.
4468 (print_pbb): Add call to print_pdrs.
4469 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
4471 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
4472 Li Feng <nemokingdom@gmail.com>
4474 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
4475 (dependency_between_pbbs_p): New.
4476 (lexicographically_gt_p): Assure !empty_p before polyhedron
4477 intersection assign.
4478 (build_lexicographically_gt_constraint): Correct lexicographically
4480 * graphite-dependences.h: New.
4481 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
4483 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4485 * graphite-clast-to-gimple.c (print_clast_stmt): New.
4486 (gloog): Print to dump_file the generated clast.
4487 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
4488 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
4490 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4492 * graphite-poly.c (extend_scattering): Increment
4493 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
4495 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4497 * graphite-interchange.c (compute_array_size_poly): Added exit of
4498 recursion condition. Continue iterating even after the first equality.
4499 (compute_array_size): Same.
4501 2009-06-24 Li Feng <nemokingdom@gmail.com>
4503 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
4504 -fdump-tree-final_cleanup to -fdump-tree-optimized.
4505 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
4506 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
4507 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
4509 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4511 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
4512 only when the use verifies is_gimple_reg.
4514 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4516 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
4517 Allocate scaldims after call to unify_scattering_dimensions.
4519 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4521 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
4523 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4524 Albert Cohen <albert.cohen@inria.fr>
4526 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
4527 variables for the strip mining.
4529 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4530 Pranav Garg <pranav.garg2107@gmail.com>
4532 * Makefile.in (OBJS-common): Added graphite-blocking.o.
4533 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
4534 (graphite-blocking.o): New rule.
4535 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
4536 * graphite-blocking.c: New.
4537 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
4538 flag_loop_strip_mine.
4539 (psct_scattering_dim_for_loop_depth): New.
4540 * graphite-poly.h (scop_do_strip_mine): Declared.
4541 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
4542 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
4543 flag_loop_strip_mine.
4545 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4547 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
4548 a GMP value and a PPL coefficient at each iteration of a loop.
4550 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4552 * graphite-dependences.c (dependence_polyhedron): Do not use
4553 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
4554 pbb_nb_scattering_transform.
4555 (graphite_legal_transform_dr): Same.
4556 * graphite-poly.c (extend_scattering): Same.
4557 (unify_scattering_dimensions): Same.
4558 (print_scattering_function): Same.
4559 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
4560 PBB_NB_LOCAL_VARIABLES.
4561 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
4562 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
4563 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
4564 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
4565 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
4566 (pbb_nb_scattering_transform): New.
4567 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
4568 (psco_scattering_dim): Add assert on parameters.
4569 (psct_scattering_dim): Same.
4570 (psct_scattering_dim_for_loop_depth): Declared.
4571 (psct_local_var_dim): New.
4572 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
4573 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
4574 correct layout, call pbb_nb_local_vars.
4575 (psct_add_local_variable, psct_add_scattering_dimension): New.
4576 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
4577 Initialize PBB_NB_SCATTERING_TRANSFORM.
4579 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4581 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
4582 (set_coef): Renamed ppl_set_coef.
4583 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
4585 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4587 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
4588 test a boolean against 1.
4589 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
4590 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
4591 (pbb_do_interchange): Returns true when a transform has been performed.
4592 (scop_do_interchange): Same.
4593 * graphite-poly.c (apply_poly_transforms): Use the return value of
4594 scop_do_interchange.
4595 * graphite-poly.h (scop_do_interchange): Update declaration.
4597 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
4599 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
4601 * sese.c (sese_reset_aux_in_loops): New.
4602 * sese.h (sese_reset_aux_in_loops): New.
4604 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4606 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
4607 multiplier and multiply the constant by the multiplier.
4608 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
4609 (build_poly_dr): Do not use the multiplier to define the subscript.
4611 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4613 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
4614 compiler's data reference. Initialize PDR_CDR.
4615 (print_pdr): Call dump_data_reference.
4616 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
4617 Add compiler_dr field.
4618 (PDR_BB): Renamed PDR_PBB.
4620 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
4621 GCC's data reference representation.
4622 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
4623 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
4625 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4627 * graphite-poly.c (print_scattering_function): Also print the layout.
4628 * graphite-poly.h (pbb_nb_local_vars): New.
4630 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4632 * graphite-poly.c (print_pbb_domain): Also print the layout names.
4634 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4636 * graphite-poly.c (print_pdr, debug_pdr): New.
4637 * graphite-poly.h (print_pdr, debug_pdr): Declared.
4638 (PDR_BASE): Removed.
4640 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4642 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
4645 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4647 * graphite-interchange.c (compute_subscript): Allow also -1 in the
4648 subscript identification column.
4649 (pbb_do_interchange): Print to dump_file that some loops "will be
4650 interchanged". Rely on that chain of characters in the testcases.
4651 * gcc.dg/graphite/interchange-0.c: New.
4652 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
4653 interchange-*.c files and compile them with -floop-interchange.
4655 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
4657 * graphite-interchange.c (interchange_profitable_p): Renamed
4658 pbb_interchange_profitable_p.
4660 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4661 Harsha Jagasia <harsha.jagasia@amd.com>
4662 Pranav Garg <pranav.garg2107@gmail.com>
4664 * graphite-interchange.c (interchange_profitable_p): Make static.
4665 (pbb_interchange_loop_depths, pbb_do_interchange,
4666 scop_do_interchange): New.
4667 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
4668 for flag_loop_interchange.
4669 * graphite-poly.h (scop_do_interchange): Declared.
4670 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
4671 flag_loop_interchange is used.
4673 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4675 * graphite-dependences.c (dependence_polyhedron): Update use of
4676 pbb_nb_scattering_dims.
4677 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
4678 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
4679 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
4680 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
4682 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4684 * graphite.c: Cleanup foo.
4686 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4688 * Merge from mainline (r143684:148293).
4689 * Disabled libpcp until it gets fixed.
4691 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
4692 Harsha Jagasia <harsha.jagasia@amd.com>
4694 * graphite-interchange.c: New.
4695 * Makefile.in (graphite-interchange.o): New.
4696 * graphite-poly.h (interchange_profitable_p): Declared.
4697 * graphite-ppl.h (value_max): New.
4699 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4701 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
4702 * graphite-poly.h: Fix some comments.
4706 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4709 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
4710 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
4711 (pdr_accessp_nb_params): Renamed pdr_nb_params.
4712 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
4713 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
4714 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
4715 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
4716 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
4717 * graphite-clast-to-gimple.c: Same.
4718 * graphite-dependences.c: Same.
4719 * graphite-poly.c: Same.
4720 * graphite-sese-to-poly.c: Same.
4722 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4724 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
4725 expressions for an IV rename, as returned by clast_to_gcc_expression.
4726 (copy_renames): Rename new_name to expr.
4727 * sese.c (debug_rename_elt): Same.
4730 (sese_adjust_liveout_phis): Call force_gimple_operand before using
4731 the information from the rename map.
4732 (rename_variables_in_stmt): Same.
4733 (add_loop_exit_phis): Rename new_name to expr.
4734 (insert_loop_close_phis): Same.
4735 (add_guard_exit_phis): Same. Call force_gimple_operand.
4736 * sese.h (struct rename_map_elt): Rename new_name to expr.
4737 (new_rename_map_elt): Same.
4739 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4741 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
4742 * sese.c (set_rename): Make it extern.
4743 * sese.h (set_rename): Declared.
4745 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4747 * graphite-poly.c (extend_scattering): Free values.
4748 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
4750 (ppl_print_powerset_matrix): Same.
4751 * graphite-scop-detection.c (free_scops_1): New.
4752 (limit_scops): Call free_scops_1.
4753 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
4754 (build_poly_dr): Free PPL coefficients.
4755 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
4757 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
4759 * graphite-dependences.c: New.
4760 * graphite-data-ref.c: Removed.
4761 * graphite-data-ref.h: Removed.
4762 * Makefile.in (graphite-data-ref.o): Removed.
4763 (graphite-dependences.o): Added.
4764 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
4765 * graphite-poly.c: Same.
4766 Move the data dependence testing to graphite-dependences.c.
4768 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
4770 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
4771 from graphite_cannot_represent_loop. Code refactored.
4772 (scopdet_basic_block_info): Call graphite_can_represent_loop.
4774 2009-05-17 Li Feng <nemokingdom@gmail.com>
4776 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
4777 Cover all the testcases (not only the filtered ones).
4779 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
4781 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
4782 unnecessary check. Update comments. Move check for REAL_TYPE here.
4783 (harmful_stmt_in_bb): Remove checks for conditions. This is already
4784 done in (stmt_simple_for_scop_p).
4786 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
4788 * graphite.c (print_global_statistics): New.
4789 (print_graphite_scop_statistic): New.
4790 (print_graphite_statistics): New.
4791 (graphite_initialize, graphite_transform_loops): Print statistics.
4792 * graphite-scop-detection (build_scops): Print statistics.
4793 (print_graphite_scop_statistics): New.
4794 (print_graphite_statistics): New.
4796 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4798 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
4799 (debug_clast_name_index): Removed.
4800 (debug_clast_name_indexes_1): Removed.
4801 (debug_clast_name_indexes): Removed.
4802 (clast_name_index_elt_info): Removed.
4803 (eq_clast_name_indexes): Removed.
4804 (clast_name_to_index): Removed.
4805 (new_clast_name_index): Removed.
4806 (save_clast_name_index): Removed.
4807 (save_var_name): Moved...
4808 (init_sese_params_index): Removed.
4809 (clast_name_to_gcc): Remove use of name_tree.
4810 (initialize_cloog_names): Same.
4811 (gloog): Do not call init_sese_params_index.
4812 * graphite-sese-to-poly.c (save_var_name): ...here.
4813 (parameter_index_in_region): New.
4814 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
4815 (parameter_index_in_region): Removed.
4816 (is_parameter): Remove use of name_tree.
4817 * sese.h (struct name_tree): Removed.
4818 (struct sese): Remove use of name_tree. New field params_names.
4819 (SESE_PARAMS_NAMES): New.
4820 (SESE_PARAMS): Remove duplicate.
4821 (parameter_index_in_region): Removed.
4822 (sese_nb_params): Remove use of name_tree.
4823 (struct clast_name_index): New.
4824 (new_clast_name_index): New.
4825 (clast_name_to_index): New.
4826 (save_clast_name_index): New.
4827 (debug_clast_name_index): New.
4828 (debug_clast_name_indexes_1): New.
4829 (debug_clast_name_indexes): New.
4830 (clast_name_index_elt_info): New.
4831 (eq_clast_name_indexes): New.
4833 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4835 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
4836 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
4837 (graphite_loop_normal_form): Do not pass region. Do not
4838 initialize SESE_OLDIVS.
4839 (build_graphite_loop_normal_form): Update call to
4840 graphite_loop_normal_form.
4841 * sese.c (debug_oldivs): Removed.
4842 (new_sese): Do not initialize SESE_OLDIVS.
4843 (free_sese): Do not free SESE_OLDIVS.
4844 (oldiv_for_loop): Removed.
4845 * sese.h (struct sese): Remove old_ivs.
4846 (SESE_OLDIVS): Removed.
4847 (oldiv_for_loop): Removed.
4849 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4851 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
4852 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
4853 replaced by a call to newivs_to_depth_to_newiv.
4854 (clast_to_gcc_expression): Pass newivs, remove ivstack.
4855 (clast_to_gcc_expression_red): Same.
4856 (gcc_type_for_clast_expr): Same.
4857 (gcc_type_for_clast_eq): Same.
4858 (graphite_translate_clast_equation): Same.
4859 (graphite_create_guard_cond_expr): Same.
4860 (graphite_create_new_guard): Same.
4861 (graphite_create_new_loop): Same.
4862 (build_iv_mapping): Same.
4863 (translate_clast): Same.
4865 (loop_iv_stack_patch_for_consts): Removed. *
4866 sese.c (iv_stack_entry_is_constant): Removed.
4867 (iv_stack_entry_is_iv): Removed.
4868 (loop_iv_stack_push_iv): Removed.
4869 (loop_iv_stack_insert_constant): Removed.
4870 (loop_iv_stack_pop): Removed.
4871 (loop_iv_stack_get_iv): Removed.
4872 (loop_iv_stack_get_iv_from_name): Removed.
4873 (debug_loop_iv_stack): Removed.
4874 (free_loop_iv_stack): Removed.
4875 (loop_iv_stack_remove_constants): Removed. *
4876 sese.h (iv_stack_entry_kind): Removed.
4877 (iv_stack_entry_data_union): Removed.
4878 (iv_stack_entry_struct): Removed.
4879 (iv_stack_entry_p): Removed.
4880 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
4881 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
4882 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
4883 loop_iv_stack_pop, free_loop_iv_stack): Removed.
4884 (gbb_loop_at_index): Fix indenting.
4885 (gbb_loop_index): Removed.
4887 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4889 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
4890 Call clast_name_to_index.
4892 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4894 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
4895 do not pass params. Get params from SESE_PARAMS.
4896 (clast_to_gcc_expression): Same.
4897 (clast_to_gcc_expression_red): Same.
4898 (gcc_type_for_clast_eq): Same.
4899 (graphite_translate_clast_equation): Same.
4900 (graphite_create_new_loop): Same.
4901 * sese.c (rename_variables_in_stmt): Fix comment.
4903 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4905 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
4907 Call save_clast_name_index.
4908 (translate_clast): Pass newivs_index.
4909 (gloog): Create and free newivs_index.
4911 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4913 * graphite-clast-to-gimple.c (clast_name_index): New structure.
4914 (clast_name_index_p): New type.
4915 (debug_clast_name_index): New.
4916 (debug_clast_name_indexes_1): New.
4917 (debug_clast_name_indexes): New.
4918 (clast_name_index_elt_info): New.
4919 (eq_clast_name_indexes): New.
4920 (clast_name_to_index): New.
4921 (new_clast_name_index): New.
4922 (save_clast_name_index): New.
4923 (init_sese_params_index): New.
4924 (gloog): Call init_sese_params_index.
4925 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
4926 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
4927 (free_sese): Free SESE_PARAMS_INDEX.
4928 * sese.h (struct sese): Add params_index.
4929 (SESE_PARAMS_INDEX): New.
4931 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4933 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
4934 (graphite_create_new_loop): Pass the newivs vector. Push the
4935 newly created IV to newivs.
4936 (translate_clast): Pass the newivs vector.
4937 (gloog): Create and destroy the newivs vector.
4939 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4941 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
4942 (graphite_loop_normal_form): Initialize loop->aux with the unique
4943 IV that has been created.
4945 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
4947 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
4948 scev with parameters in the base part. They where forbidden
4951 2009-05-11 Li Feng <nemokingdom@gmail.com>
4953 * gcc.dg/graphite/graphite.exp: Set different default
4954 compile options by file names.
4955 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
4956 * gcc.dg/graphite/id-{1-9}.c: Ditto.
4957 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
4958 * gcc.dg/graphite/scop-matmult.c: Ditto.
4960 2009-05-08 Li Feng <nemokingdom@gmail.com>
4962 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
4963 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
4964 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
4965 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
4967 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4969 * graphite-scop-detection (build_scops_1): Fix little bug introduced
4972 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4974 * graphite-scop-detection.c (graphite_can_represent_scev): Only
4975 allow integer constant strides.
4976 (graphite_can_represent_expr): Depend on outermost_loop.
4977 (stmt_simple_memref_p, graphite_cannot_represent_loop,
4978 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
4979 build_scops_1): Same.
4980 (scopdet_basic_block_info): Same and insert layered SCoP
4982 (try_generate_gimple_bb): Cleanup.
4983 (build_scops): Enable data references.
4985 * gcc.dg/graphite/id-5.c: New.
4986 * gcc.dg/graphite/id-9.c: New.
4987 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
4988 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
4990 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4992 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
4993 that we have not yet built for this SCoP.
4995 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4997 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
4998 for complex numbers.
5000 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
5002 * graphite-ppl.c: Fix build if cloog is not available.
5004 2009-05-04 Li Feng <nemokingdom@gmail.com>
5006 * tree-parloops.c (loop_parallel_p): Remove construction of
5007 NITER and REDUCTION_LIST.
5008 (try_get_loop_niter): New.
5009 (try_create_reduction_list): New.
5010 (parallelize_loops): Bypass the failed checkings in autopar
5011 when can_be_parallel in loop structure is set to true.
5013 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
5015 * gcc.dg/graphite/id-6.c: Update testcase.
5016 * gcc.dg/graphite/scop-3.c: Dito.
5018 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
5020 * graphite-scop-detection.c (stmt_simple_for_scop_p):
5021 Enable EQ_EXPR and NE_EXPR again.
5023 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
5025 * graphite-scop-detection.c (graphite_can_represent_scev):
5026 Add check if scev is affine multivariate.
5027 (harmful_stmt_in_bb): Check if we can represent the conditions.
5028 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
5030 * gcc.dg/graphite/id-7.c: New.
5032 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
5034 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
5035 Check all bbs in region, not only the bbs that are represented in
5037 (build_poly_scop): Add newline.
5038 * gcc.dg/graphite/id-8.c: New.
5040 2009-04-30 Li Feng <nemokingdom@gmail.com>
5042 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
5043 when loop initialize.
5044 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
5045 * common.opt: Declare flag_graphite_force_parallel.
5046 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
5048 * graphite-poly.c (apply_poly_transforms): Introduce
5049 flag_graphite_force_parallel.
5050 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
5051 * toplev.c (process_options): ditto and replace a not correctly
5054 2009-04-30 Li Feng <nemokingdom@gmail.com>
5056 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
5057 Change the call of gbb_loop_at_index and/or gbb_loop_index due
5058 to the redefinition.
5059 (compute_cloog_iv_types_1): ditto.
5060 (build_iv_mapping): ditto.
5061 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
5063 (free_gimple_bb): Removed GBB_LOOPS related free part.
5064 (build_bb_loops): Removed.
5065 * sese.h (struct gimple_bb): Removed loops.
5066 (GBB_LOOPS): Removed.
5067 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
5068 (gbb_loop_index): ditto.
5070 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
5072 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
5073 allow non constant strides.
5074 * gcc.dg/graphite/scop-20.c: New.
5076 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5078 * graphite-scop-detection.c (dot_all_scops): Fix system call
5079 return value warning.
5082 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5084 * gcc.dg/graphite/id-6.c: Fix pattern.
5085 * gcc.dg/graphite/scop-3.c: Same.
5087 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5089 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
5090 build_pairwise_constraint, dr_equality_constraints,
5091 build_pairwise_scheduling_equality,
5092 build_pairwise_scheduling_inequality, lexicographically_gt_p,
5093 build_lexicographically_gt_constraint, dependence_polyhedron,
5094 graphite_legal_transform_dr, graphite_legal_transform_bb,
5095 graphite_legal_transform): New.
5096 * graphite-poly.h (graphite_legal_transform): Declared.
5097 * graphite-sese-to-poly.c (build_poly_scop): Call to
5098 graphite_legal_transform is disabled for the moment.
5100 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5102 * graphite-poly.h (pbb_nb_scattering_dims): New.
5103 (pbb_nb_scattering): Use it.
5105 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5107 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
5108 Pointset_Powerset version of ppl_insert_dimensions.
5109 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
5111 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5113 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
5115 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5117 * graphite-poly.h: Fix comment.
5119 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5121 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
5123 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
5125 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
5128 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
5130 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
5131 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
5134 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
5136 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
5137 handle EQ_EXPR and NE_EXPR.
5139 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
5141 * graphite-poly.h (poly_dr): Fix comment.
5143 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
5144 Tobias Grosser <grosser@fim.uni-passau.de>
5146 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
5147 with a zero dimension polyhedron.
5148 (find_scop_parameters): Move the call to scop_set_nb_params here.
5149 (build_loop_iteration_domains): Store in loop->aux the iteration
5151 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
5152 by any loop in scop.
5153 (build_poly_scop): Do not call scop_set_nb_params.
5155 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
5156 Tobias Grosser <grosser@fim.uni-passau.de>
5158 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
5159 add_condition_to_domain not GT_EXPR.
5161 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
5163 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
5164 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
5165 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
5166 upper_bound_assign to calculate unions.
5167 * gcc.dg/graphite/id-6.c: New.
5169 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
5171 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
5172 handle abnormal edges.
5174 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
5176 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
5177 (free_poly_bb): Also free poly_drs.
5178 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
5179 (poly_dr): Polyhedron to Pointset_Powerset.
5180 (pdr_accessp_nb_subscripts): Same.
5181 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
5184 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5186 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
5187 names into more meaningful names.
5189 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5191 * gfortran.dg/graphite/interchange-1.c: New.
5192 * gfortran.dg/graphite/interchange-2.c: New.
5194 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5196 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
5198 * tree-parloops.c (rewrite_phi_with_iv): New.
5199 (rewrite_all_phi_nodes_with_iv): New.
5200 (canonicalize_loop_ivs): Call them.
5202 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5204 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
5205 graphite_find_data_references_in_stmt.
5206 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
5207 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
5209 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5211 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
5213 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5215 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
5216 instead of bb_in_region.
5217 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
5218 (build_sese_conditions): Use flag_bb_in_sese.
5219 * sese.c (register_bb_in_sese): Removed.
5220 (new_sese): Remove initialization of SESE_REGION_BBS.
5221 (free_sese): Do not free SESE_REGION_BBS.
5222 * sese.h (struct sese): Remove field region_basic_blocks.
5223 (SESE_REGION_BBS): Removed.
5224 (bb_in_sese_p): Implement in function of bb_in_region.
5226 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5228 * graphite-scop-detection.c (limit_scops): Deal only with single exit
5231 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
5233 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
5235 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
5236 (add_condition_to_domain): New.
5237 (add_condition_to_pbb): New.
5238 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
5239 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
5241 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
5243 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
5244 ppl_Pointset_Powerset.
5245 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
5246 * graphite-poly.h (poly_bb): poly_bb.domain Same.
5247 (pbb_nb_loops): Same.
5248 * graphite-sese-to-poly.c (build_loop_iteration_domains,
5249 add_conditions_to_domain): Same.
5250 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
5251 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
5252 ppl_const_Polyhedron_t.
5253 (ppl_print_powerset_matrix): New.
5254 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
5255 ppl_print_powerset_matrix): New.
5256 (ppl_print_polyhedron_matrix): Updated.
5258 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
5260 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
5262 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
5264 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
5265 (print_iteration_domains, debug_iteration_domain,
5266 debug_iteration_domains): New.
5267 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
5268 debug_iteration_domains): Declared.
5269 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
5272 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
5273 Sebastian Pop <sebastian.pop@amd.com>
5275 * graphite-poly.h (print_iteration_domain): New.
5276 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
5277 (build_sese_conditions_1, build_sese_conditions_after,
5278 build_sese_conditions_before): New.
5279 (build_sese_conditions): Rewritten.
5281 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
5282 Tobias Grosser <grosser@fim.uni-passau.de>
5284 Cleanup of code generation liveouts.
5285 * graphite-clast-to-gimple.c (translate_clast): Use a single
5286 rename_map instead of one per translated statement.
5287 Do not use SESE_LIVEOUT_RENAMES.
5288 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
5289 (gloog): Do not use SESE_LIVEOUT_RENAMES.
5290 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
5291 phi node of a reduction: when a loop contains a reduction used outside
5292 the loop, there should be a scalar close phi node on the exit block.
5293 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
5294 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
5295 (free_sese): Do not free them.
5296 (sese_build_liveouts_use): Do not use them.
5297 (sese_build_liveouts_bb): Same.
5298 (sese_build_liveouts): Same.
5299 (sese_insert_phis_for_liveouts): Same.
5300 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
5301 (defined_in_loop_p): New.
5302 (alive_after_loop): New.
5303 (close_phi_not_yet_inserted_p): New.
5304 (struct alep, alep_p): New.
5305 (add_loop_exit_phis): Remove from the rename_map all the names defined
5306 in the code generated loop.
5307 (insert_loop_close_phis): Traverse the rename_map passed to it.
5308 Don't use SESE_LIVEOUT_RENAMES.
5309 (default_liveout_before_guard): Renamed default_before_guard.
5310 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
5311 (graphite_copy_stmts_from_block): Do not directly call set_rename.
5312 (register_sese_liveout_renames): Removed.
5313 (copy_bb_and_scalar_dependences): Do not call it.
5314 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
5316 (SESE_LIVEOUT): Removed.
5317 (SESE_LIVEOUT_RENAMES): Removed.
5318 (SESE_REDUCTION_LIST): Removed.
5319 (sese_build_liveouts): Removed.
5320 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
5321 (insert_loop_close_phis): Pass a htab_t instead of a sese.
5322 (insert_guard_phis): Same.
5323 (rename_map_elt): Declare a VEC of them.
5324 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
5325 trees not pointers to trees.
5327 Rewrite in canonical close SSA form:
5328 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
5329 (limit_scops): Close the scop after the block containing the close phi
5331 (canonicalize_loop_closed_ssa): New.
5332 (canonicalize_loop_closed_ssa_form): New.
5333 (build_scops): Call canonicalize_loop_closed_ssa_form.
5335 * graphite-sese-to-poly.c: Fix typos.
5337 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
5339 * graphite-poly.c (print_scattering_function, print_pbb_domain):
5341 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
5342 (print_pbb): Add conditions.
5344 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
5345 Sebastian Pop <sebastian.pop@amd.com>
5347 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
5348 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
5349 (build_scop_bbs_1): New.
5350 (build_scop_bbs): Rewrite.
5351 * sese.h (bb_in_region): New.
5353 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5355 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
5357 (print_scop): Style.
5358 * graphite-poly.h (poly_bb): Add drs vector.
5359 (PBB_DRS): Add accessor.
5360 * graphite-sese-to-poly.c (build_poly_dr): New.
5361 (build_pbb_drs, build_scop_drs): New.
5362 (build_poly_scop): call build_scop_drs (Disabled at the moment).
5364 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5366 * tree-ssa-loop.c: Include forgotten toplev.h
5368 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5370 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
5371 * gcc.dg/graphite/pr37883.c: Remove -floop-*
5372 * gcc.dg/graphite/pr37928.c: Same
5373 * gcc.dg/graphite/pr38409.c: Same
5374 * gcc.dg/graphite/pr38498.c: Same
5375 * gcc.dg/graphite/pr38559.c: Same
5376 * gcc.dg/graphite/pr39335.c: Same
5377 * gcc.dg/graphite/pr39335_1.c: Same
5378 * gfortran.dg/graphite/block-2.f: Same
5379 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
5382 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
5384 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
5385 build_access_matrix, build_scop_data_accesses): Remove access function
5386 building. (We get a new version soon).
5387 (build_bb_loops, scan_tree_for_params_right_scev): Update.
5388 * sese.h (nb_loops_around_loop_in_sese): Remove.
5389 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
5391 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
5392 Sebastian Pop <sebastian.pop@amd.com>
5394 * graphite-scop-detection.c (struct scopdet_info): Rename last
5396 (scopdet_basic_block_info, build_scops_1): Don't use
5397 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
5399 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
5400 Sebastian Pop <sebastian.pop@amd.com>
5402 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
5403 * sese.c (sese_build_liveouts_use): Renamed from
5404 sese_build_livein_liveouts_use. Remove liveins.
5405 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
5406 Call sese_build_liveouts_use.
5407 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
5408 Call sese_build_liveouts_bb.
5409 (new_sese, free_sese): Remove liveins.
5410 (sese_add_exit_phis_var): Deleted.
5411 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
5413 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
5415 * sese.h (sese): Remove num_ver and livein.
5416 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
5418 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
5420 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
5422 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
5424 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
5425 (build_scop_scattering): Do not use compare_prefix_loops any more.
5426 (nb_common_loops): New.
5428 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5430 * sese.c (get_new_name_from_old_name): Renamed get_rename.
5431 (register_old_and_new_names): Renamed set_rename.
5433 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5435 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
5436 of the decl from the previous commit.
5438 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5440 * graphite-scop-detection.c (dot_scop): New.
5441 * graphite-scop-detection.h (dot_scop): Declared.
5443 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5445 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
5447 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5449 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
5450 condition at the end of the loop.
5451 * graphite.c (graphite_initialize, graphite_finalize): Print to
5452 dump_file the compiled function.
5453 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
5454 of create_empty_loop_on_edge.
5455 (translate_clast): Update the code generation of loops for the new
5457 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
5459 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5461 Reverted the patch from 2009-03-19.
5463 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
5465 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
5467 (print_scop): Style.
5468 * graphite-poly.h (poly_bb): Add drs vector.
5469 (PBB_DRS): Add accessor.
5470 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
5471 (build_access_matrix_with_af, build_access_matrix,
5472 build_scop_data_accesses): Delete.
5473 (build_poly_dr): New.
5474 (build_pbb_drs, build_scop_drs): New.
5475 (build_poly_scop): call build_scop_drs.
5477 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
5479 * graphite-scop-detection.c (dot_all_scops_1): Close the table
5480 once per basic block.
5482 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
5484 * graphite-scop-detection.c (graphite_can_represent_scev): New.
5485 (graphite_can_represent_expr): Renamed from loop_affine_expr
5487 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
5488 (graphite_cannot_represent_loop): Add scop_entry to parameters.
5489 (scopdet_basic_block_info): Actually define entry_block.
5490 (stmt_simple_memref_p): Moved here from ...
5492 * tree-data-ref.c (stmt_simple_memref_p): here.
5493 * tree-data-ref.h (stmt_simple_memref_p): Removed.
5495 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
5497 * gcc.dg/graphite/id-4.c: New.
5499 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
5501 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
5502 (register_old_and_new_names): Update the content of the map.
5503 When there was already a rename_map_elt in the map at that
5505 (copy_bb_and_scalar_dependences): Do rename_variables after
5506 expand_scalar_variables.
5507 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5508 of the map. When there was already a rename_map_elt in the
5509 map at that location, free it.
5510 (translate_clast): Pass the rename_map. Do not initialize and free
5511 a rename_map per stmt_user.
5512 (gloog): Initialize and free one rename_map and pass it to
5515 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
5517 * sese.c (expand_scalar_variables_stmt,
5518 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
5520 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
5521 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
5522 the gimple_stmt_iterator of the statement to be expanded.
5523 * graphite-scop-detection.c (is_simple_operand): Do handle
5526 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5528 * graphite-scop-detection.c (is_simple_operand): Do not handle
5530 * gcc.dg/graphite/id-2.c: New.
5532 * graphite-sese-to-poly.c (build_bb_loops,
5533 add_value_to_dim, scan_tree_for_params_right_scev,
5534 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
5535 find_params_in_bb, build_loop_iteration_domains,
5536 add_conditions_to_domain): Remove subtract.
5538 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5540 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
5541 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
5542 pbb_loop_at_index -> gbb_loop_at_index.
5543 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
5544 (debug_loop_vec): Delete.
5545 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
5546 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
5547 (PBB_LOOPS): Removed.
5548 (PBB_BLACK_BOX): Insert cast.
5549 (pbb_set_black_box): New setter.
5550 (pbb_loop_at_index, pbb_loop_index): Removed.
5551 (scop_set_region, scop_set_nb_params): New.
5552 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
5553 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
5554 (build_poly_scop): Use scop_set_nb_params.
5555 * sese.h (gimple_bb): Add LOOPS.
5556 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
5558 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5560 Revert previous commit.
5562 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
5564 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
5565 (register_old_and_new_names): Update the content of the map.
5566 When there was already a rename_map_elt in the map at that
5568 (copy_bb_and_scalar_dependences): Do rename_variables after
5569 expand_scalar_variables.
5570 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5571 of the map. When there was already a rename_map_elt in the
5572 map at that location, free it.
5573 (translate_clast): Pass the rename_map. Do not initialize and free
5574 a rename_map per stmt_user.
5575 (gloog): Initialize and free one rename_map and pass it to
5578 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5580 Remove forgotten line in revert.
5582 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
5584 Revert previous commit.
5586 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
5588 * sese.c (register_old_and_new_names): Update the content
5589 of the map. When there was already a rename_map_elt in the
5590 map at that location, free it.
5591 (copy_bb_and_scalar_dependences): Do rename_variables after
5592 expand_scalar_variables.
5593 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5594 of the map. When there was already a rename_map_elt in the
5595 map at that location, free it.
5596 (translate_clast): Pass the rename_map. Do not initialize and free
5597 a rename_map per stmt_user.
5598 (gloog): Initialize and free one rename_map and pass it to
5601 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
5603 * graphite-clast-to-gimple.c (translate_clast): context_loop
5606 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
5607 Sebastian Pop <sebastian.pop@amd.com>
5609 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
5610 of the use of ppl_Polyhedron_map_space_dimensions.
5612 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
5613 Sebastian Pop <sebastian.pop@amd.com>
5615 * graphite-poly.c (unify_scattering_dimensions): Fix types.
5616 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
5617 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
5618 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
5619 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
5620 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
5621 pbb_nb_params): New.
5622 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
5623 nb_loops_around_pbb): Adapt return types.
5625 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
5627 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
5628 graphite-clast-to-gimple.o, graphite-data-ref.o,
5629 graphite-scop-detection.o, graphite-poly.o): Add
5632 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
5634 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
5635 graphite-clast-to-gimple.o, graphite-data-ref.o,
5636 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
5638 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
5640 * gcc.dg/graphite/pr37485.c: Remove -floop-block
5641 * gcc.dg/graphite/pr37828.c: Same.
5642 * gcc.dg/graphite/pr37684.c: Same.
5643 * gcc.dg/graphite/block-0.c: Same.
5644 * gcc.dg/graphite/block-1.c: Same.
5645 * gcc.dg/graphite/block-2.c: Same.
5646 * gcc.dg/graphite/block-3.c: Same.
5647 * gcc.dg/graphite/block-4.c: Same.
5648 * gcc.dg/graphite/block-5.c: Same.
5649 * gcc.dg/graphite/block-6.c: Same.
5650 * gfortran.dg/graphite/pr38083.f90: Same.
5651 * gfortran.dg/graphite/block-1.f90: Same.
5652 * gfortran.dg/graphite/block-3.f90: Same.
5653 * gfortran.dg/graphite/pr37852.f90: Same.
5654 * gfortran.dg/graphite/block-4.f90: Same.
5655 * gfortran.dg/graphite/pr37980.f90: Same.
5656 * gfortran.dg/graphite/pr38953.f90: Same.
5657 * gfortran.dg/graphite/pr37857.f90: Same.
5658 * opts.c: Remove -floop-block from -O2.
5659 * graphite-poly.c: Fail if -floop-block -floop-interchange or
5660 -floop-strip-mine are used.
5662 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
5663 Sebastian Pop <sebastian.pop@amd.com>
5665 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
5667 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
5668 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
5669 strip_mine_profitable_p, is_interchange_valid,
5670 graphite_trans_bb_block, graphite_trans_loop_block,
5671 graphite_trans_scop_block): Temporary removed.
5672 (extend_scattering, unify_scattering_dimensions): New.
5673 (print_scattering_function, graphite_read_transforms):
5674 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5675 (graphite_generate_scattering_fns): Removed.
5676 (apply_poly_transforms): Cleanup.
5677 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5678 (schedule_to_scattering): Moved.
5679 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
5680 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
5681 (pbb_nb_scattering): New.
5682 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5683 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
5685 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
5687 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5688 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
5689 -> PBB_TRANSFORMED_SCATTERING.
5690 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
5691 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
5692 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
5693 (check_poly_representation): Do not return bool.
5694 (graphite_transform_loops): Reformat.
5695 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
5697 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
5699 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
5700 debug_pbb_domain, debug_pbb, debug_scop): New.
5701 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
5702 debug_pbb_domain, debug_pbb, debug_scop): Declared.
5704 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5707 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
5708 when the type precision of the induction variable should be
5709 larger than the type precision of nit.
5710 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
5711 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
5712 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
5714 * gcc.dg/graphite/pr39335_1.c: New.
5715 * gcc.dg/graphite/pr39335.c: New.
5717 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5719 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
5720 SSA_NAMES not struct reduction_info.
5722 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5724 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
5726 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5727 Tobias Grosser <grosser@fim.uni-passau.de>
5729 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
5730 (free_sese): Free SESE_REDUCTION_LIST.
5731 * sese.h (struct sese): Add field reduction_list.
5732 (SESE_REDUCTION_LIST): New.
5733 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
5734 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
5736 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5737 Tobias Grosser <grosser@fim.uni-passau.de>
5739 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
5742 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5743 Tobias Grosser <grosser@fim.uni-passau.de>
5745 * tree-parloops.c (struct brli, build_reduction_list_info,
5746 analyze_reduction_list, gather_scalar_reductions): New.
5747 (loop_parallel_p): Build a reduction list containing only
5748 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
5749 (gen_parallel_loop): Call the analysis analyze_reduction_list.
5750 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
5751 * tree-flow.h (gather_scalar_reductions): Declared.
5753 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
5756 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
5757 number_of_iterations_exit from a gcc_assert.
5759 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
5760 Jan Sjodin <jan.sjodin@amd.com>
5762 * output.h (graphite_out_file, graphite_in_file): Declared.
5763 * toplev.c (graphite_out_file, graphite_in_file): New.
5764 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
5765 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
5766 Don't call schedule_to_scattering.
5767 * common.opt (fgraphite-write, fgraphite-read): New.
5768 * graphite-poly.c: Include output.h.
5769 (print_scattering_function, print_scattering_functions,
5770 debug_scattering_function, debug_scattering_functions,
5771 graphite_write_transforms, graphite_read_transforms,
5772 graphite_generate_scattering_fns): New.
5773 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
5774 Call graphite_generate_scattering_fns, graphite_write_transforms,
5775 graphite_read_transforms.
5776 (new_poly_bb): Initialize PBB_SCATTERING.
5777 (free_poly_bb): Free PBB_SCATTERING.
5778 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
5779 * graphite-poly.h (struct poly_bb): Add field scattering.
5780 (PBB_SCATTERING): New.
5781 (print_scattering_function, print_scattering_functions,
5782 debug_scattering_function, debug_scattering_functions): Declared.
5783 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
5784 GMP values, not integers!
5785 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
5786 ppl_read_polyhedron_matrix): New.
5787 * graphite-ppl.h (ppl_print_polyhedron_matrix,
5788 debug_ppl_polyhedron_matrix,
5789 ppl_read_polyhedron_matrix): Declared.
5790 * Makefile.in (graphite-poly.o): Depends on output.h.
5792 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5793 Tobias Grosser <grosser@fim.uni-passau.de>
5796 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5797 scalar evolutions in the scop_entry->loop_father.
5799 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5800 Tobias Grosser <grosser@fim.uni-passau.de>
5802 * graphite.h (ref_nb_loops): Remove declaration.
5803 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
5804 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
5805 debug_gbb): Moved to sese.h.
5808 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5809 Tobias Grosser <grosser@fim.uni-passau.de>
5811 * graphite-data-ref.[ch]: Disable.
5813 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5814 Tobias Grosser <grosser@fim.uni-passau.de>
5816 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5817 scalar evolutions in the scop_entry->loop_father.
5819 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5821 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
5822 (graphite_cannot_represent_loop_niter): Renamed
5823 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
5824 (limit_scops): build_sese_loop_nests does not return a bool.
5825 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
5826 * sese.c (nb_reductions_in_loop): ... from here.
5827 (graphite_loop_normal_form): ... from here.
5828 (sese_record_loop): Does not fail, so does not return a bool.
5829 (build_sese_loop_nests): Same.
5830 * sese.h (build_sese_loop_nests): Update declaration.
5831 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
5832 (build_graphite_loop_normal_form): New.
5833 (gloog): Call build_graphite_loop_normal_form.
5834 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
5835 build_sese_loop_nests.
5837 * gcc.dg/graphite/id-1.c: New.
5839 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5840 Tobias Grosser <grosser@fim.uni-passau.de>
5842 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
5843 The SCoP detection fix is sufficient.
5845 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5847 PR tree-optimization/39260
5848 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
5849 the basic block contains a condition with a real type.
5850 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
5852 * gcc.dg/graphite/pr39260.c: New.
5854 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5856 * graphite-poly.c: Inlcude params.h.
5857 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
5859 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
5860 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
5862 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5863 Tobias Grosser <grosser@fim.uni-passau.de>
5865 * graphite-scop-detection.c (dot_all_scops_1,
5866 dot_all_scops): Moved here.
5867 * graphite-scop-detection.h (dot_all_scops): Declared here.
5868 * graphite.c (graphite_initialize, graphite_finalize): New.
5869 (graphite_transform_loops): Cleaned up.
5870 * sese.c (debug_oldivs): Moved here.
5871 * graphite-poly.c (graphite_apply_transformations): Renamed
5872 apply_poly_transforms.
5873 (debug_loop_vec): Moved here.
5874 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
5875 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
5876 find_scop_parameters, build_scop_iteration_domain,
5877 add_conditions_to_constraints, build_scop_canonical_schedules,
5878 build_scop_data_accesses): Now static.
5879 (build_poly_scop, check_poly_representation): New.
5881 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5883 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
5884 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
5885 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
5886 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
5887 scan_tree_for_params_right_scev, scan_tree_for_params_int,
5888 scan_tree_for_params, struct irp_data, dx_record_params,
5889 find_params_in_bb, find_scop_parameters, gbb_from_bb,
5890 build_loop_iteration_domains, add_conditions_to_domain,
5891 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
5892 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
5893 build_sese_conditions, add_conditions_to_constraints,
5894 build_scop_iteration_domain, build_access_matrix_with_af,
5895 build_access_matrix,
5896 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
5898 * graphite-sese-to-poly.c: New.
5899 * graphite-sese-to-poly.h: New.
5901 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
5903 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5905 * graphite.c: Split graphite code generation to a new file.
5906 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
5907 max_precision_type, clast_to_gcc_expression_red,
5908 clast_to_gcc_expression, gcc_type_for_clast_expr,
5909 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
5910 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
5911 graphite_create_new_guard, clast_get_body_of_loop,
5912 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
5913 graphite_create_new_loop, build_iv_mapping, copy_renames,
5914 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5915 compute_cloog_iv_types, free_scattering, save_var_name,
5916 initialize_cloog_names, build_scop_context, build_cloog_prog,
5917 set_cloog_options, debug_clast_stmt, scop_to_clast,
5918 print_generated_program, debug_generated_program,
5919 gloog): Moved to graphite-clast-to-gimple.c.
5921 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
5923 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
5924 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
5925 loop_iv_stack_pop, loop_iv_stack_get_iv,
5926 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
5927 free_loop_iv_stack, loop_iv_stack_remove_constants,
5928 debug_rename_elt, debug_rename_map_1, debug_rename_map,
5929 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
5930 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
5931 eq_ivtype_map_elts, sese_add_exit_phis_edge,
5932 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
5933 get_vdef_before_sese, sese_adjust_vphi,
5934 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
5935 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
5936 is_iv, expand_scalar_variables_ssa_name,
5937 expand_scalar_variables_expr, expand_scalar_variables_stmt,
5938 expand_scalar_variables, rename_variables, remove_condition,
5939 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
5940 add_loop_exit_phis, insert_loop_close_phis, struct igp,
5941 default_liveout_before_guard, add_guard_exit_phis,
5942 insert_guard_phis, register_old_and_new_names,
5943 graphite_copy_stmts_from_block, register_sese_liveout_renames,
5944 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
5945 if_region_set_false_region, create_if_region_on_edge,
5946 move_sese_in_condition): Moved to sese.c.
5948 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
5949 if_region_exit, if_region_get_condition_block,
5950 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
5951 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
5952 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
5953 ivtype_map_elt, new_ivtype_map_elt,
5954 recompute_all_dominators): Moved to sese.h.
5956 * graphite-clast-to-gimple.c: New.
5957 * graphite-clast-to-gimple.h: New.
5958 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
5959 * sese.c: Modified as said above.
5962 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5964 * graphite.c: Split scop detection to a new file.
5965 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
5966 move_sd_regions, loop_affine_expr, exclude_component_ref,
5967 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
5968 graphite_cannot_represent_loop_niter, struct scopdet_info,
5969 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
5970 find_single_entry_edge, find_single_exit_edge,
5971 create_single_entry_edge, sd_region_without_exit,
5972 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
5973 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
5974 Moved to graphite-scop-detection.c.
5976 * graphite-scop-detection.c: New.
5977 * graphite-scop-detection.h: New.
5978 * Makefile.in: Add new rule for graphite-scop-detection.o.
5980 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
5981 tree-scalar-evolution.h.
5982 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
5983 build_sese_loop_nests): Moved here from graphite.c.
5984 (param_index): Renamed parameter_index_in_region.
5986 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5987 Sebastian Pop <sebastian.pop@amd.com>
5989 * gcc.dg/graphite/block-0.c: Expected to fail now.
5990 * gcc.dg/graphite/block-1.c: Same.
5991 * gcc.dg/graphite/block-5.c: Same.
5992 * gcc.dg/graphite/block-6.c: Same.
5994 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5995 Sebastian Pop <sebastian.pop@amd.com>
5997 * graphite.h: Separate from graphite_bb_p the polyhedral
5998 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
5999 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
6000 graphite-data-ref.h.
6001 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
6002 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
6003 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
6004 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
6005 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
6006 scop_nb_params): Moved to graphite-poly.h.
6007 * graphite-data-ref.c: Same.
6008 * graphite-data-ref.h: New.
6010 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
6011 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
6012 is_interchange_valid, graphite_trans_bb_block,
6013 graphite_trans_loop_block, scop_max_loop_depth,
6014 graphite_trans_scop_block, graphite_apply_transformations,
6015 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
6017 * graphite-poly.h: New.
6018 * graphite-poly.c: New.
6019 * Makefile.in (OBJS-common): Add graphite-poly.o.
6020 (graphite-poly.o): New rule.
6021 * tree-data-ref.h (struct data_reference): Remove unused scop field.
6024 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
6025 Tobias Grosser <grosser@fim.uni-passau.de>
6027 * graphite.c: Replace gb -> gbb.
6029 * graphite-data-ref.c: Same.
6031 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
6032 Tobias Grosser <grosser@fim.uni-passau.de>
6034 * Makefile.in (OBJS-commmon): Add sese.o.
6036 (graphite.o): Add sese.h.
6037 * graphite.c (bb_in_ss_p, loop_in_sese_p,
6038 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
6039 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
6041 (block_before_scop): Add missing return.
6042 (new_scop, free_scop): Remove SESE data structures.
6043 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
6044 find_scop_parameters, build_loop_iteration_domains,
6045 add_conditions_to_domain, register_scop_liveout_renames,
6046 copy_bb_and_scalar_dependences): Scop -> SESE.
6048 (add_conditions_to_domain): SCoP -> SESE and remove check
6049 (scop_contains_non_iv_scalar_phi_nodes): New.
6050 (build_scop_conditions_1, build_scop_conditions): Remove check for
6051 non iv scalar phi nodes.
6052 (print_scop_statistics): New.
6053 (graphite_transform_loops): Cleanup.
6055 * graphite.h: Move to sese & cleanup.
6059 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6060 Tobias Grosser <grosser@fim.uni-passau.de>
6062 * graphite.c (build_scop_conditions_1): Conditions are only
6063 at the end of a basic block.
6065 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6066 Tobias Grosser <grosser@fim.uni-passau>
6068 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
6070 (GBB_ALPHA): Removed.
6072 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6073 Tobias Grosser <grosser@fim.uni-passau.de>
6075 * graphite-data-ref.c (graphite_test_dependence): Don't use
6076 GBB_DYNAMIC_SCHEDULE.
6077 * graphite.c (new_graphite_bb): Same.
6078 (free_graphite_bb): Same.
6079 (build_scop_dynamic_schedules): Removed.
6080 (graphite_transform_loops): Don't call it.
6081 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
6082 (GBB_DYNAMIC_SCHEDULE): Removed.
6084 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6085 Tobias Grosser <grosser@fim.uni-passau.de>
6087 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
6088 (print_graphite_bb): Same.
6089 (build_cloog_prog): Same.
6091 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6092 Tobias Grosser <grosser@fim.uni-passau.de>
6094 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
6096 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6097 Tobias Grosser <grosser@fim.uni-passau.de>
6099 * graphite.c (build_scop_context): Don't use CloogMatrix.
6100 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
6101 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
6103 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6104 Tobias Grosser <grosser@fim.uni-passau.de>
6106 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
6107 liveout_renames, add_params fields...
6108 (struct sese): ... here.
6109 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
6110 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
6112 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6113 Tobias Grosser <grosser@fim.uni-passau.de>
6115 * graphite.c (print_scop): Do not print the CLooG program.
6116 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
6117 build_cloog_prog, gloog): Don't use SCOP_PROG.
6118 (find_transform): Renamed scop_to_clast.
6119 (print_generated_program, debug_generated_program): New.
6120 (graphite_transform_loops): Adapt to new interface.
6121 * graphite.h (struct scop): Remove program field.
6122 (SCOP_PROG): Removed.
6123 (print_generated_program, debug_generated_program): Declared.
6125 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6127 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
6128 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
6129 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
6130 free_graphite_bb, build_scop_canonical_schedules,
6131 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
6132 schedules are now represented using a ppl_Linear_Expression_t.
6133 * graphite.h (struct graphite_bb): Same.
6134 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
6135 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
6137 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
6139 * graphite.c: Free local memory.
6140 * graphite-ppl.c: Same.
6142 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
6144 * graphite.c (const_column_index, get_first_matching_sign_row_index,
6145 get_lower_bound_row, get_upper_bound_row, copy_constraint,
6146 swap_constraint_variables, scale_constraint_variable): Removed.
6147 (graphite_trans_bb_strip_mine): Remove pong.
6148 * graphite-ppl.c: Include missing header files.
6149 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
6150 * graphite-ppl.h (ppl_strip_loop): Declared.
6151 * Makefile.in (graphite-ppl.o): Adjust dependences.
6153 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
6155 * graphite.c (build_loop_iteration_domains): Remove ping pong.
6156 (build_scop_iteration_domain): Same.
6158 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
6160 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
6162 (add_value_to_dim, scan_tree_for_params_right_scev,
6163 scan_tree_for_params_int): New.
6164 * graphite-ppl.c (oppose_constraint): New.
6165 (insert_constraint_into_matrix): Implement missing cases.
6166 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
6168 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
6170 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
6171 use ppl_move_dimension.
6173 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
6175 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
6178 * graphite-ppl.c: Same.
6179 * graphite-ppl.h: Same.
6181 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
6183 Revert last 3 commits.
6185 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6187 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
6189 (add_value_to_dim, scan_tree_for_params_right_scev,
6190 scan_tree_for_params_int): New.
6191 * graphite-ppl.c (oppose_constraint): New.
6192 (insert_constraint_into_matrix): Implement missing cases.
6193 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
6195 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6197 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
6199 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6200 Tobias Grosser <grosser@fim.uni-passau.de>
6202 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
6203 use ppl_move_dimension.
6204 * graphite-ppl.c (ppl_move_dimension): New.
6205 * graphite-ppl.h (ppl_move_dimension): Declared.
6207 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6209 * graphite.c: Do not include cloog/cloog.h.
6210 (print_graphite_bb): Remove ping pong, call PPL print function.
6212 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
6214 * Makefile.in (OBJS-common): Add graphite-ppl.o.
6215 (graphite.o): Add dependence on graphite-ppl.h.
6216 (graphite-ppl.o): New.
6217 (graphite-data-ref.c): Ping pong between PPL data structures
6219 * graphite-ppl.c: New.
6220 * graphite-ppl.h: New.
6221 * graphite.c: Include graphite-ppl.h.
6222 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
6223 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
6224 Ping pong between PPL data structures and matrices.
6225 (new_graphite_bb): Create a PPL constraint system.
6226 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
6227 (build_loop_iteration_domains): Use PPL functions.
6228 * graphite.h: Include graphite-ppl.h. Fix comments.
6229 (graphite_bb): Use a ppl_Constraint_System_t instead of
6230 CloogMatrix for representing the domain.
6231 (scop): Remove static_schedule.
6232 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
6234 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
6236 * graphite.c: Fix some comments.
6238 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
6241 * graphite.c (if_region_set_false_region): After moving a region
6242 in the false branch of a condition, remove the empty dummy
6244 (gloog): Remove wrong fix for PR38953.
6246 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
6248 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
6249 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
6250 register_bb_in_sese, new_sese, free_sese): Moved.
6251 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
6252 outermost_loop_in_scop, build_scop_iteration_domain,
6253 expand_scalar_variables_ssa_name, get_vdef_before_scop,
6254 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
6255 Use loop_in_sese_p instead of loop_in_scop_p.
6256 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
6257 (free_scop): Do not free SCOP_BBS_B.
6258 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
6259 ref_nb_loops): Moved here...
6260 * graphite.h (ref_nb_loops): ... from here.
6261 (struct scop): Remove bbs_b bitmap.
6262 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
6263 * gcc.dg/graphite/scop-19.c: New
6265 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
6267 * graphite.c (scopdet_basic_block_info): Fix bug in scop
6270 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
6272 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
6273 eq_loop_to_cloog_loop): Remove.
6274 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
6275 * graphite.h (struct scop): Remove loop2cloog_loop.
6276 (loop_domain_dim, loop_iteration_vector_dim): Remove.
6278 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
6280 * opts.c (decode_options): Only add graphite options to O2
6281 if we compile with graphite enabled.
6283 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
6285 * Merge from mainline (r143163:143684).
6287 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
6289 * graphite.c (debug_value): Removed.
6290 * graphite.h (debug_value): Removed.
6292 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6294 * passes.c (init_optimization_passes): Do not call pass_copy_prop
6295 after graphite: pass_copy_prop does not maintain a proper loop closed
6296 SSA form. pass_copy_prop should be fixed.
6298 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6300 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
6302 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6304 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
6305 (gloog): Split the exit of the scop when the scop exit is a loop exit.
6306 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
6309 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
6311 * graphite.c (gloog): Return true when code gen succeeded.
6312 (graphite_transform_loops): Do not call cleanup_tree_cfg if
6313 the code of the function did not changed. After cleanup_tree_cfg
6314 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
6317 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
6319 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
6320 gimple_call_lhs is NULL.
6322 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
6323 Tobias Grosser <tobi.grosser@amd.com>
6325 * graphite.c (graphite_trans_scop_block): Do not block single
6328 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
6329 Tobias Grosser <tobi.grosser@amd.com>
6331 * graphite.c (build_scop_canonical_schedules): Start schedules at
6334 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
6335 Tobias Grosser <tobi.grosser@amd.com>
6337 * graphite.c (compare_prefix_loops): New.
6338 (build_scop_canonical_schedules): Rewritten.
6339 (graphite_transform_loops): Move build_scop_canonical_schedules
6340 after build_scop_iteration_domain.
6342 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6343 Tobias Grosser <tobi.grosser@amd.com>
6345 * graphite.c (add_conditions_to_domain): Add the loops to
6346 the dimension of the iteration domain. Do copy the domain
6347 only when it exists.
6348 (build_scop_conditions_1): Do not call add_conditions_to_domain.
6349 (add_conditions_to_constraints): New.
6350 (can_generate_code_stmt, can_generate_code): Removed.
6351 (gloog): Do not call can_generate_code.
6352 (graphite_transform_loops): Call add_conditions_to_constraints
6353 after building the iteration domain.
6355 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6356 Tobias Grosser <tobi.grosser@amd.com>
6357 Jan Sjodin <jan.sjodin@amd.com>
6359 * graphite.c (scan_tree_for_params): On substractions negate
6360 all the coefficients of the term.
6361 (clast_to_gcc_expression_red): New. Handle reduction expressions
6362 of more than two operands.
6363 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
6364 (get_vdef_before_scop): Handle also the case of default definitions.
6366 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6369 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
6370 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
6371 (gloog): Do not call cleanup_tree_cfg.
6372 (graphite_transform_loops): Call cleanup_tree_cfg after all
6373 scops have been code generated.
6375 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
6377 * passes.c (init_optimization_passes): Schedule after
6378 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
6380 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
6382 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
6384 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
6385 Set the type of an expression to the type of its assign statement.
6386 (expand_scalar_variables_expr): Do not pass loop_p.
6387 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
6388 (copy_bb_and_scalar_dependences): Do not pass loop_p.
6389 (translate_clast): Update call to copy_bb_and_scalar_dependences.
6391 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
6393 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
6394 an expression to the gimple_expr_type of its assign statement.
6395 (expand_scalar_variables_expr): Stop recursion on tcc_constant
6398 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
6400 PR tree-optimization/38786
6401 * gcc.dg/graphite/pr38786.c: New.
6402 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
6403 the SSA_NAME case of expand_scalar_variables_expr.
6404 (expand_scalar_variables_expr): Also gather the scalar computation
6405 used to index the memory access.
6406 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
6407 the gimple_stmt_iterator where it inserts new code.
6409 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
6411 * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
6413 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
6415 * opts.c (decode_options): Enable flag_graphite_identity and
6416 flag_loop_block in -O2 and above.
6418 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
6420 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
6421 Fix merge problem: replace with the file from trunk.
6423 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
6425 * Merge from mainline (r141727:143163).
6427 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
6428 Jan Sjodin <jan.sjodin@amd.com>
6430 PR tree-optimization/38559
6431 * gcc.dg/graphite/pr38559.c: New.
6433 * graphite.c (debug_value, copy_constraint,
6434 swap_constraint_variables, scale_constraint_variable, ): New.
6435 (get_lower_bound, get_upper_bound): Removed.
6436 (graphite_trans_bb_strip_mine): Clean up this code that works
6437 only for constant number of iterations. Fully copy upper and
6438 lower bound constraints, not only the constant part of them.
6439 * graphite.h (debug_value): Declared.
6441 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
6443 PR tree-optimization/38492
6444 PR tree-optimization/38498
6445 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
6446 * tree-chrec.h (scev_is_linear_expression): Declared.
6447 * graphite.c (graphite_cannot_represent_loop_niter): New.
6448 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
6449 (graphite_loop_normal_form): Use gcc_assert.
6450 (scan_tree_for_params): Use CASE_CONVERT.
6451 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
6452 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
6453 Use gcc_assert. Discard scops that contain unhandled cases.
6454 (build_scop_conditions): Return a boolean status for unhandled cases.
6455 (strip_mine_profitable_p): Print the loop number, not its depth.
6456 (is_interchange_valid): Pass the depth of the loop nest, don't
6457 recompute it wrongly.
6458 (graphite_trans_bb_block): Same.
6459 (graphite_trans_bb_block): Print tentative of loop blocking.
6460 (graphite_trans_scop_block): Do not print that the loop has been
6462 (graphite_transform_loops): Do not handle scops that contain condition
6465 * gcc.dg/graphite/pr38500.c: Fixed warning as committed
6467 * gcc.dg/graphite/block-0.c: Update test.
6468 * gcc.dg/graphite/block-1.c: Same.
6469 * gcc.dg/graphite/block-2.c: Remove xfail and test for
6471 * gcc.dg/graphite/block-4.c: Remove test for strip mine.
6472 * gcc.dg/graphite/block-3.c: New.
6473 * gcc.dg/graphite/pr38498.c: New.
6475 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
6477 PR tree-optimization/38510
6478 * gcc.dg/graphite/pr38510.c: New.
6479 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
6480 (translate_clast): Call recompute_all_dominators before
6482 (gloog): Call recompute_all_dominators before graphite_verify.
6484 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
6486 PR tree-optimization/38492
6487 * graphite.c (rename_map_elt, debug_rename_elt,
6488 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
6489 rename_map_elt_info, eq_rename_map_elts,
6490 get_new_name_from_old_name, bb_in_sese_p): Moved around.
6491 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
6492 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
6493 (sese_build_livein_liveouts): New.
6494 (new_sese, free_sese): New.
6495 (new_scop): Call new_sese.
6496 (free_scop): Call free_sese.
6497 (rename_variables_from_edge, rename_phis_end_scop): Removed.
6498 (register_old_new_names): Renamed register_old_and_new_names.
6499 (register_scop_liveout_renames, add_loop_exit_phis,
6500 insert_loop_close_phis, struct igp,
6501 default_liveout_before_guard, add_guard_exit_phis,
6502 insert_guard_phis, copy_renames): New.
6503 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
6504 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
6505 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
6506 (scop_adjust_phis_for_liveouts): New.
6507 (gloog): Call scop_adjust_phis_for_liveouts.
6509 * graphite.h (struct sese): Documented. Added fields liveout,
6511 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
6512 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
6513 (struct scop): Added field liveout_renames.
6514 (SCOP_LIVEOUT_RENAMES): New.
6516 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6518 PR tree-optimization/38409
6519 * gcc.dg/graphite/pr38409.c: New.
6520 * graphite.c (nb_reductions_in_loop): Use simple_iv.
6522 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6524 * graphite.c (gcc_type_for_cloog_iv): By default return
6526 (graphite_create_new_loop): Don't fold_convert the already
6527 fold_convert-ed expression.
6529 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
6531 PR tree-optimization/38446
6532 * gcc.dg/graphite/pr38446.c: New.
6533 * graphite.c (register_bb_in_sese): New.
6534 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
6535 looking at the bbs in the region.
6536 * graphite.h (sese): Add region_basic_blocks pointer set to
6537 structure and initialize at the time of defining new scop.
6539 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
6541 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
6542 (find_params_in_bb): Do not free data refs.
6543 (free_graphite_bb): Add FIXME on disabled free_data_refs.
6545 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6547 * gcc.dg/graphite/scop-16.c: Test only scop specific info.
6548 * gcc.dg/graphite/scop-17.c: Same.
6549 * gcc.dg/graphite/block-5.c: New.
6550 * gcc.dg/graphite/block-6.c: New.
6551 * gcc.dg/graphite/pr37485.c: Clean dump file after.
6552 * gcc.dg/graphite/pr37684.c: Same.
6553 * gcc.dg/graphite/block-2.c: Same.
6555 * graphite.c (struct ivtype_map_elt): New.
6556 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
6557 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
6558 gcc_type_for_cloog_iv): New.
6559 (loop_iv_stack_patch_for_consts): Use the type of the induction
6560 variable from the original loop, except for the automatically
6561 generated loops, i.e., in the case of a strip-mined loop, in
6562 which case there is no original loop: in that case just use
6564 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
6565 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
6566 (clast_name_to_gcc): Accept params to be NULL.
6567 (clast_to_gcc_expression): Take an extra parameter for the type.
6568 Convert to that type all the expressions built by this function.
6569 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
6570 (graphite_translate_clast_equation): Compute the type of the
6571 clast_equation before translating its LHS and RHS.
6572 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
6573 (graphite_create_new_loop): Compute the type of the induction
6574 variable before translating the lower and upper bounds and before
6575 creating the induction variable.
6576 (rename_variables_from_edge, rename_phis_end_scop): New.
6577 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
6578 (sese_add_exit_phis_edge): Do not use integer_zero_node.
6579 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
6580 compute_cloog_iv_types): New.
6581 (gloog): Call compute_cloog_iv_types before starting the
6582 translation of the clast.
6584 * graphite.h (struct graphite_bb): New field cloog_iv_types.
6585 (GBB_CLOOG_IV_TYPES): New.
6586 (debug_ivtype_map): Declared.
6587 (oldiv_for_loop): New.
6589 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
6592 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
6593 (param_index): Assert if parameter is not know after parameter
6595 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
6596 (find_scop_parameters): Mark, that we have finished parameter
6598 (graphite_transform_loops): Move condition detection before parameter
6600 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
6601 * gfortran.dg/graphite/pr38459.f90: New.
6603 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
6605 * graphite.c (graphite_transform_loops): Always call find_transform ()
6606 in ENABLE_CHECKING. So we test these code paths, even if we do not
6609 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
6611 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
6612 (print_scop): Ditto.
6614 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
6617 Fix gfortran.dg/graphite/id-3.f90.
6618 * graphite.c (scopdet_basic_block_info): Fix bug that found some
6619 regions more than once.
6621 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6623 Fix gfortran.dg/graphite/id-4.f90.
6624 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
6627 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6629 Fix gfortran.dg/graphite/id-1.f90.
6630 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
6631 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
6632 (max_precision_type): New.
6633 (value_clast): Removed.
6634 (clast_to_gcc_expression): Be more careful to types of expressions.
6635 Use max_precision_type and update use of gmp_cst_to_tree.
6636 (graphite_translate_clast_equation): Use max_precision_type.
6637 (graphite_create_guard_cond_expr): Do not use integer_type_node,
6638 use the type of the condition.
6639 (graphite_create_new_loop): Do not use integer_type_node, use the
6640 max_precision_type of lb and ub.
6642 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6644 * graphite.c (build_scops_1): Initialize open_scop.exit
6647 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
6649 * gcc.dg/graphite/pr38084.c: New.
6650 * gfortran.dg/graphite/id-1.f90: New.
6651 * gfortran.dg/graphite/id-2.f90: New.
6652 * gfortran.dg/graphite/id-3.f90: New.
6653 * gfortran.dg/graphite/id-4.f90: New.
6654 * gfortran.dg/graphite/pr37857.f90: New.
6656 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
6657 Jan Sjodin <jan.sjodin@amd.com>
6658 Harsha Jagasia <harsha.jagasia@amd.com>
6670 * gcc.dg/graphite/pr38073.c: New.
6671 * gcc.dg/graphite/pr37928.c: New.
6672 * gcc.dg/graphite/pr37883.c: New.
6673 * gcc.dg/graphite/pr38125.c: New.
6674 * gfortran.dg/graphite/pr38083.f90: New.
6675 * gfortran.dg/graphite/pr37852.f90: New.
6676 * gfortran.dg/graphite/pr37980.f90: New.
6678 * gcc.dg/graphite/scop-18.c: Remove reduction, test for
6679 the number of detected scops. Copy exact same test for loop
6681 * gcc.dg/graphite/block-1.c: Fix the number of expected
6682 loops to be blocked as reductions are not handled.
6683 * gcc.dg/graphite/block-4.c: ...here. New.
6685 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
6686 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
6688 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
6689 * Makefile.in (graphite.o): Depend on value-prof.h.
6690 (graphite.o-warn): Removed -Wno-error.
6691 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
6692 to be a NULL pointer. Call update_stmt. Return the newly created
6693 cannonical induction variable.
6695 * graphite.h (debug_rename_map): Declared. Fix some comments.
6697 * graphite.c: Reimplement the code generation from graphite to gimple.
6698 Include value-prof.h.
6699 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
6700 (get_old_iv_from_ssa_name): Removed.
6701 (graphite_stmt_p): New.
6702 (new_graphite_bb): Test for useful statements before building a
6703 graphite statement for the basic block.
6704 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
6705 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
6707 (recompute_all_dominators, graphite_verify,
6708 nb_reductions_in_loop, graphite_loop_normal_form): New.
6709 (scop_record_loop): Call graphite_loop_normal_form.
6710 (build_scop_loop_nests): Iterate over all the blocks of the
6711 function instead of relying on the incomplete information from
6712 SCOP_BBS. Return the success of the operation.
6713 (find_params_in_bb): Use the data from GBB_DATA_REFS.
6714 (add_bb_domains): Removed.
6715 (build_loop_iteration_domains): Don't call add_bb_domains.
6716 Add the iteration domain only to the basic blocks that have been
6717 translated to graphite.
6718 (build_scop_conditions_1): Add constraints only if the basic
6719 block have been translated to graphite.
6720 (build_scop_data_accesses): Completely disabled until data
6721 dependence is correctly implemented.
6722 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
6723 (remove_all_edges_1, remove_all_edges): Removed.
6724 (get_new_name_from_old_name): New.
6725 (graphite_rename_variables_in_stmt): Renamed
6726 rename_variables_in_stmt. Call get_new_name_from_old_name.
6727 Use replace_exp and update_stmt.
6728 (is_old_iv): Renamed is_iv.
6729 (expand_scalar_variables_stmt): Extra parameter for renaming map.
6730 Use replace_exp and update_stmt.
6731 (expand_scalar_variables_expr): Same. Use the map to get the
6732 new names for the renaming of induction variables and for the
6733 renaming of variables after a basic block has been copied.
6734 (expand_scalar_variables): Same.
6735 (graphite_rename_variables): Renamed rename_variables.
6736 (move_phi_nodes): Removed.
6737 (get_false_edge_from_guard_bb): New.
6738 (build_iv_mapping): Do not insert the induction variable of a
6739 loop in the renaming iv map if the basic block does not belong
6741 (register_old_new_names, graphite_copy_stmts_from_block,
6742 copy_bb_and_scalar_dependences): New.
6743 (translate_clast): Heavily reimplemented: copy basic blocks,
6744 do not move them. Finally, in call cleanup_tree_cfg in gloog.
6745 At each translation step call graphite_verify ensuring the
6746 consistency of the SSA, loops and dominators information.
6747 (collect_virtual_phis, find_vdef_for_var_in_bb,
6748 find_vdef_for_var_1, find_vdef_for_var,
6749 patch_phis_for_virtual_defs): Removed huge hack.
6750 (mark_old_loops, remove_dead_loops, skip_phi_defs,
6751 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
6752 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
6753 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
6754 if_region_get_condition_block, if_region_set_false_region,
6755 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
6756 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
6757 sese_add_exit_phis_edge, sese_add_exit_phis_var,
6758 rewrite_into_sese_closed_ssa): New.
6759 (gloog): Remove dead code. Early return if code cannot be
6760 generated. Call cleanup_tree_cfg once the scop has been code
6762 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
6763 block loops with less than two loops.
6764 (graphite_apply_transformations): Remove the call to
6765 scop_remove_ignoreable_gbbs.
6766 (limit_scops): When build_scop_loop_nests fails, continue on
6767 the next scop. Fix open_scop.entry.
6768 (graphite_transform_loops): Call recompute_all_dominators: force the
6769 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
6770 Call initialize_original_copy_tables and free_original_copy_tables
6771 to be able to copy basic blocks during code generation.
6772 When build_scop_loop_nests fails, continue on next scop.
6773 (value_clast): New union.
6774 (clast_to_gcc_expression): Fix type cast warning.
6776 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
6778 * Merge from mainline (r140838:141727).
6780 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6784 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
6786 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6790 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
6791 exits and conditions.
6792 * gcc.dg/graphite/pr37943.c: New.
6794 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6797 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
6799 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6801 * doc/invoke.texi: Fix spaces.
6803 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
6805 PR tree-optimization/37891
6806 Reverted last commit.
6807 * graphite.c (create_single_entry_edge): Set
6808 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6810 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
6811 Mitul Thakkar <mitul.thakkar@amd.com>
6813 * graphite.c (create_single_entry_edge): Set
6814 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6816 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
6818 * doc/invoke.texi: Add -fgraphite-identity.
6819 * graphite.c (graphite_apply_transformations): Check for
6820 -fgraphite-identity.
6821 * toplev.c (process_options): Add flag_graphite_identity.
6822 * tree-ssa-loop.c: Add flag_graphite_identity.
6824 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6826 Undo changes from 2008-10-02:
6827 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6828 operand type when copying the operand to a variable of different type.
6829 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6830 with the IV name after increment.
6832 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6833 Harsha Jagasia <harsha.jagasia@amd.com>
6835 PR tree-optimization/37828
6836 * gcc.dg/graphite/pr37828.c: New.
6837 * graphite.c (graphite_trans_loop_block): Do not loop block
6838 single nested loops.
6840 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
6841 Sebastian Pop <sebastian.pop@amd.com>
6843 * graphite.c (struct rename_map_elt, new_rename_map_elt,
6844 rename_map_elt_info, eq_rename_map_elts): New.
6845 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
6846 (expand_scalar_variables_expr): Change parameters.
6847 (expand_scalar_variables_stmt): Same.
6848 (expand_scalar_variables): Same.
6849 (graphite_rename_ivs): Rename graphite_rename_variables.
6850 (build_iv_mapping): New.
6851 (translate_clast): Call build_iv_mapping.
6852 * graphite.h (gbb_p): New name.
6854 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
6856 PR tree-optimization/37684
6857 * gcc.dg/graphite/pr37684.c: New.
6858 * graphite.c (exclude_component_ref): New.
6859 (is_simple_operand): Call exclude_component_ref.
6861 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
6862 Harsha Jagasia <harsha.jagasia@amd.com>
6864 PR tree-optimization/37485
6865 * gcc.dg/graphite/block-2.c: New
6866 * graphite.c (gmp_cst_to_tree): Moved.
6867 (iv_stack_entry_is_constant): New.
6868 (iv_stack_entry_is_iv): New.
6869 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
6870 (loop_iv_stack_insert_constant): New.
6871 (loop_iv_stack_pop): Use new datatpype.
6872 (loop_iv_stack_get_iv): Same.
6873 (loop_iv_stack_get_iv_from_name): Same.
6874 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
6875 (loop_iv_stack_patch_for_consts): New.
6876 (loop_iv_stack_remove_constants): New.
6877 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
6878 (translate_clast): Call loop_iv_stack_patch_for_consts and
6879 loop_iv_stack_remove_constants.
6880 (gloog): Use new datatype. Redirect construction edge to end
6881 block to avoid accidental deletion.
6882 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
6884 (union iv_stack_entry_data): New. Data in iv stack entry.
6885 (struct iv_stack_entry): New. Datatype for iv stack entries.
6887 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6889 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6890 operand type when copying the operand to a variable of different type.
6892 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6894 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6895 with the IV name after increment.
6897 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6899 * Merge from mainline (r140164:140838).
6901 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6903 * graphite-data-ref.c: New.
6904 * graphite.c (print_scop): Also dump the dependence graph.
6905 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
6906 (new_scop): Initialize SCOP_DEP_GRAPH.
6907 (build_scop_dynamic_schedules): New.
6908 (build_access_matrix_with_af): Fixed column numbering.
6909 (graphite_transform_loops): Call build_scop_dynamic_schedules.
6910 * graphite.h: Add ifndef/define guards against multiple inclusion.
6911 (struct scop): Add dep_graph field.
6912 (SCOP_DEP_GRAPH): Defined.
6913 (ref_nb_loops): Fixed and moved to other position.
6914 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
6915 (nb_loops_around_loop_in_scop): New.
6916 (graphite_dump_dependence_graph): Declared.
6917 (graphite_build_rdg_all_levels): Declared.
6918 (graphite_test_dependence): Declared.
6919 * Makefile.in (graphite-data-ref.o): New target.
6921 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
6923 * Merge from mainline (139870:140164).
6925 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6927 * Merge from mainline (138275:139870).
6928 * gcc.dg/graphite/scop-matmult.c: XFailed as one of
6929 the commits from trunk broke the niter detection.
6931 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6933 * graphite.c: Add more documentation. Fix formatting.
6934 (debug_loop_vec, debug_oldivs, loop_iv_stack,
6935 loop_iv_stack_debug): Moved...
6936 (schedule_to_scattering): Move before use.
6937 (dot_all_scops): Include in "#if 0" the code for system
6940 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
6941 loop_iv_stack_debug): ...here.
6943 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
6945 * tree-phinodes.c (make_phi_node): Extern.
6946 (add_phi_node_to_bb): New.
6947 (create_phi_node): Call add_phi_node_to_bb.
6948 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
6949 (remove_statement): Handle case where stored phi was updated
6950 and is no longer the same.
6951 * graphite.c (is_parameter): New.
6953 (expand_scalar_variables_expr): New.
6954 (expand_scalar_variables_stmt): New.
6955 (expand_scalar_variables): New.
6956 (move_phi_nodes): Create new phi instead of moving old one.
6957 (translate_clast): Call expand_scalar_variables.
6958 (find_vdef_for_var_in_bb): Also scan regular definitions.
6959 (skip_phi_defs): New.
6960 (collect_scop_exit_phi_args): New.
6961 (patch_scop_exit_phi_args): New.
6962 (gloog): Patch phis after scop.
6963 * tree-flow.h: (add_phi_node_to_bb): Declared.
6964 (make_phi_node): Declared.
6966 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6968 * graphite.c (end_scop): Split the entry of the scop when it
6969 is the header of the loop in which the scop is ending.
6970 (build_scops_1, limit_scops): Update uses of end_scop.
6972 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6974 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
6975 SCOP_ENTRY or SCOP_EXIT.
6977 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6979 * graphite.c (get_construction_edge): Removed.
6980 (gloog): Construction edge is the scop entry edge.
6982 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6984 * graphite.c (can_generate_for_scop): Removed.
6985 (gloog): Do not call it.
6987 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6989 * graphite.c (new_scop): Entry of a scop is an edge.
6990 Initialize SESE region.
6991 (free_scop): Free SESE region.
6992 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
6993 (split_difficult_bb): New, split from end_scop.
6994 (end_scop): Exit of a scop is an edge.
6995 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
6996 not automatically updated and thus is always wrong.
6997 * graphite.h (struct sese): New.
7000 (struct scop): New field for a SESE region. Remove entry, exit.
7001 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
7002 semantics as before. Moved comment around.
7004 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
7005 Sebastian Pop <sebastian.pop@amd.com>
7007 * graphite.c (graphite_transform_loops): Always enable gloog
7008 and find_transform when ENABLE_CHECKING.
7010 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
7012 * graphite.c (graphite_transform_loops): Move pretty printer
7013 of SCOPs before doing any transform. Remove call to print_scops
7014 and dot_all_scops_1.
7016 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
7018 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
7019 (print_graphite_bb): Same.
7021 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
7023 * graphite.c (dot_all_scops_1): Cleanup.
7024 (move_scops): Fix comment.
7026 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
7028 * graphite.c (build_scop_bbs): Revert commit 139355:
7030 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7031 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7033 * graphite.c (build_scop_bbs): Factor up code.
7035 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
7037 * graphite.c (gloog): Update dominator info.
7039 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
7041 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
7043 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
7045 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
7047 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
7048 (translate_clast): Correct formatting.
7049 * graphite.h (struct num_map): Removed.
7050 (struct graphite_bb): Remove num_map field.
7051 (GBB_INDEX_TO_NUM_MAP): Removed.
7053 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
7055 * graphite.c (build_access_matrix_with_af): Fix comments.
7056 (build_scop_data_accesses): Same.
7058 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
7060 * graphite.c (build_scop_data_accesses): Don't construct
7061 access matrices. Add a FIXME and an assert condition that
7062 should pass when the access matrices will be needed.
7064 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
7066 * tree-data-ref.c (stmt_simple_memref_p): Don't call
7068 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
7069 Moved close by free_graphite_bb.
7070 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
7071 (new_scop): Move close by free_scop.
7072 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
7074 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
7076 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
7077 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
7078 instead of recursive call.
7079 (graphite_translate_clast_equation): New.
7080 (graphite_create_guard_cond_expr): New.
7081 (graphite_create_new_guard): New.
7082 (get_stack_index_from_iv): Removed.
7083 (graphite_rename_ivs_stmt): Use gbb_loop_index.
7084 (get_true_edge_from_guard_bb): New.
7085 (translate_clast): Handle stmt_guard in clast.
7086 (get_construction_edge): Allow construction edge detection for
7087 a scope entry with multiple predecessors if one predecessor is
7088 the immediate dominator of scope entry.
7089 (can_generate_code_stmt): Enable code generation for clast_guard.
7090 (gloog): Use correct context loop. Removed check for post dominators.
7091 * cfgloop.h (create_empty_if_region_on_edge): Declared.
7093 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
7095 * graphite.c (remove_dead_loops): Document better which
7098 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
7100 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
7102 (graphite.o): Also depends on pointer-set.h.
7104 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
7106 * graphite.c (scop_record_loop): Fix compile warning.
7108 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
7109 Sebastian Pop <sebastian.pop@amd.com>
7111 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
7113 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
7115 * graphite.c (build_graphite_bb): Initialize bb->aux to
7116 point to the graphite_bb_p.
7117 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
7119 (add_bb_domains): Does not use the scop parameter.
7120 (graphite_transform_loops): Clean bb->aux at the end.
7122 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7123 Sebastian Pop <sebastian.pop@amd.com>
7125 * lib/target-supports.exp
7126 (check_effective_target_fgraphite): New.
7128 * gcc.dg/graphite/graphite.exp: Early exit when
7129 check_effective_target_fgraphite returns false.
7130 Set dg-do-what-default to compile.
7131 (scan-graphite-dump-times): Removed.
7132 * gfortran.dg/graphite/graphite.exp: Same.
7134 * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
7135 Use scan-tree-dump-times instead of scan-graphite-dump-times.
7136 * gcc.dg/graphite/scop-1.c: Same.
7137 * gcc.dg/graphite/scop-2.c: Same.
7138 * gcc.dg/graphite/scop-3.c: Same.
7139 * gcc.dg/graphite/scop-4.c: Same.
7140 * gcc.dg/graphite/scop-5.c: Same.
7141 * gcc.dg/graphite/scop-6.c: Same.
7142 * gcc.dg/graphite/scop-7.c: Same.
7143 * gcc.dg/graphite/scop-8.c: Same.
7144 * gcc.dg/graphite/scop-9.c: Same.
7145 * gcc.dg/graphite/scop-10.c: Same.
7146 * gcc.dg/graphite/scop-11.c: Same.
7147 * gcc.dg/graphite/scop-12.c: Same.
7148 * gcc.dg/graphite/scop-13.c: Same.
7149 * gcc.dg/graphite/scop-matmult.c: Same.
7150 * gcc.dg/graphite/scop-14.c: Same.
7151 * gcc.dg/graphite/scop-15.c: Same.
7152 * gcc.dg/graphite/block-0.c: Same.
7153 * gcc.dg/graphite/scop-16.c: Same.
7154 * gcc.dg/graphite/block-1.c: Same.
7155 * gcc.dg/graphite/scop-17.c: Same.
7156 * gcc.dg/graphite/scop-18.c: Same.
7157 * gfortran.dg/graphite/block-1.f90: Same.
7158 * gfortran.dg/graphite/scop-1.f: Same.
7159 * gfortran.dg/graphite/block-2.f: Same.
7161 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7163 * graphite.c: Fix some XXX comments.
7164 (build_scop_dynamic_schedules): Removed.
7166 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7168 * graphite.h (scop_max_loop_depth): Moved...
7169 * graphite.c (scop_max_loop_depth): ...here.
7170 (remove_all_edges_1): New.
7171 (remove_all_edges): Factored code.
7172 (remove_cond_exprs): Check only the last statement for
7173 a GIMPLE_COND expression.
7175 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7177 * graphite.c (scan_tree_for_params): Early return when the
7178 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
7179 (find_scop_parameters): Factor out code.
7180 (graphite_trans_bb_strip_mine): Remove dead code.
7182 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7184 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
7185 graphite_trans_bb_move_loop): Factor asserts.
7186 (gloog): Perform sanity checks only for ENABLE_CHECKING.
7187 Do not call calculate_dominance_info and estimate_bb_frequencies.
7189 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
7191 * graphite.c (create_loops_mapping, free_loops_mapping,
7192 create_loops_mapping_num, debug_loop_mapping_1,
7193 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
7194 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
7195 graphite_loops_mapping_add_child_num,
7196 graphite_loops_mapping_insert_child,
7197 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
7198 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
7199 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
7200 create_num_from_index, get_num_from_index,
7201 swap_loop_mapped_depth): Removed.
7202 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
7203 (free_scop): Do not call free_loops_mapping.
7204 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
7205 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
7206 get_loop_mapped_depth.
7207 (graphite_trans_bb_move_loop): Do not update the loop mapping.
7208 (graphite_trans_bb_strip_mine): Same.
7209 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
7210 (struct scop): Remove field loops_mapping.
7212 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7213 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7215 * graphite.c (scop_record_loop): Factor out one level of the
7216 condition by early return.
7217 (build_scop_loop_nests): Format following FSF coding style.
7218 (build_scop_dynamic_schedules): Factor out code.
7219 (scopdet_bb_info): Reindent. Default case should not be reachable.
7221 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7222 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7224 * graphite.c (loop_affine_expr): Check for DECL_P or struct
7225 assignments that are not handled as simple operands for now.
7227 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7228 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7230 * graphite.c (build_scop_bbs): Factor up code.
7232 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7233 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7235 * graphite.c (stmt_simple_for_scop_p): Factor code out
7237 (enum gbb_type): New. Group all the GBB_* types under it.
7238 (is_loop_exit): Moved...
7239 (end_scop): Enable BB spliting.
7240 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
7241 * cfgloop.h (is_loop_exit): Declared.
7243 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7245 * doc/invoke.texi: Remove strides from examples containing
7246 DO loops when the strides are equal to 1.
7248 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
7249 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7251 * graphite.c (graphite_trans_scop_block): Or the result with
7252 the result from graphite_trans_loop_block.
7253 * gcc.dg/graphite/block-1.c: New.
7254 * gfortran.dg/graphite/block-1.f90: New.
7255 * gfortran.dg/graphite/block-2.f: New.
7257 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7259 * graphite.c (graphite_transform_loops): Call cloog_initialize
7262 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7264 * tree-data-ref.c) (stmt_simple_memref_p): New.
7265 * tree-data-ref.h (stmt_simple_memref_p): Declared.
7266 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
7267 (is_simple_operand): Call stmt_simple_memref_p.
7269 * gcc.dg/graphite/scop-matmult.c: Updated for not
7270 using pointer arithmetic, as this is optimized by PRE and
7271 makes the code too difficult to analyze.
7273 * gcc.dg/graphite/scop-18.c: Same.
7275 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7277 * gdbinit.in (pgg): New.
7279 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7281 * graphite.c (graphite_trans_loop_block): Fix warning.
7283 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7285 * graphite.c (graphite_trans_loop_block): Fix my merge error.
7287 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7289 * graphite.c (graphite_trans_bb_block): Remove check for
7290 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
7291 Check if loop blocking is profitable for every loop, before applying
7293 (graphite_apply_transformations): Call graphite_trans_bb_block only,
7294 if flag_loop_block is set.
7296 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7298 * graphite.c: Add some more documentation for the loop
7301 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7303 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
7304 * graphite.c: Format on less than 80 columns.
7307 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7309 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
7311 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7313 * doc/invoke.texi (floop-block, floop-strip-mine,
7314 floop-interchange): Update documentation with examples.
7316 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
7318 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
7320 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
7322 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
7324 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
7325 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
7326 * tree-scalar-evolution.c: Revert useless changes.
7327 * tree-phinodes.c: Same.
7330 * tree-vectorizer.h: Same.
7331 * tree-flow.h: Same.
7333 * common.opt (fgraphite): Update documentation.
7335 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
7337 * doc/invoke.texi (-floop-block, -floop-strip-mine,
7338 -floop-interchange): Add more text for explaining what each of these
7340 * tree-into-ssa.c (gimple_vec): Moved to...
7341 * graphite.c: Include gimple.h.
7342 (gimple_vec): Moved to...
7343 (del_loop_to_cloog_loop): Removed.
7344 (loop_affine_expr): Do not call create_data_ref when the
7345 operand is a constant.
7346 (new_scop): Use free instead of del_loop_to_cloog_loop.
7347 * Makefile.in (graphite.o): Depend on GIMPLE_H.
7348 * gimple.h (gimple_vec): ... here.
7350 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7352 * graphite.c (scopdet_bb_info): Only allow loops with known number of
7354 (build_loop_iteration_domains): Fail, if latch executions unknown.
7356 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7358 * graphite.c (add_conditions_to_domain): New.
7359 (build_scop_conditions_1): Call add_conditions_to_domain.
7360 (set_cloog_options): Allow to disable optimizations.
7362 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7364 * graphite.c (find_params_in_bb): Look for parameters in conditions.
7365 Do not use walk_dominator_tree.
7366 (find_scop_parameters): Do not use walk_dominator_tree.
7368 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7370 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
7371 (idx_record_params): Adapt.
7372 * graphite.h (scop_gimple_loop_depth): New.
7374 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7376 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
7377 (scan_tree_for_params): Remove value_init.
7378 (build_scop_context): Remove value_init.
7379 (build_loop_iteration_domains): Remove value_init.
7380 (schedule_to_scattering): Remove value_init.
7381 (graphite_trans_bb_strip_mine): Remove value_init.
7383 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7385 * gcc/graphite.c (limit_scops): New.
7386 (graphite_transform_loops): Add limit SCoPs.
7387 * gcc.dg/graphite/scop-0.c: Update number of SCoPs.
7388 * gcc.dg/graphite/scop-1.c: Update number of SCoPs.
7389 * gcc.dg/graphite/scop-10.c: Update number of SCoPs.
7390 * gcc.dg/graphite/scop-11.c: Update number of SCoPs.
7391 * gcc.dg/graphite/scop-12.c: Update number of SCoPs.
7392 * gcc.dg/graphite/scop-13.c: Update number of SCoPs.
7393 * gcc.dg/graphite/scop-14.c: Update number of SCoPs.
7394 * gcc.dg/graphite/scop-15.c: Update number of SCoPs.
7395 * gcc.dg/graphite/scop-16.c: Update number of SCoPs.
7396 Change loop numbers.
7397 * gcc.dg/graphite/scop-17.c: Update number of SCoPs.
7398 Change loop numbers.
7399 * gcc.dg/graphite/scop-18.c: Update number of SCoPs.
7400 * gcc.dg/graphite/scop-2.c: Update number of SCoPs.
7401 * gcc.dg/graphite/scop-3.c: Update number of SCoPs.
7402 * gcc.dg/graphite/scop-4.c: Update number of SCoPs.
7403 * gcc.dg/graphite/scop-5.c: Update number of SCoPs.
7404 * gcc.dg/graphite/scop-6.c: Update number of SCoPs.
7405 * gcc.dg/graphite/scop-7.c: Update number of SCoPs.
7406 * gcc.dg/graphite/scop-8.c: Update number of SCoPs.
7407 * gcc.dg/graphite/scop-9.c: Update number of SCoPs.
7408 * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
7410 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7412 * graphite.c (graphite_transform_loops): Call always find_transform.
7414 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
7416 * graphite.c (free_loops_mapping): New.
7417 (stmt_simple_for_scop_p): Fix typo.
7418 (stmt_simple_for_scop_p): Fix tuples functions, that
7420 (free_graphite_bb): Fix some memleaks.
7421 (free_scop): Fix some memleaks.
7422 (scopdet_bb_info): Do not forget some tmp SCoPs.
7423 (find_params_in_bb): Fix some memleaks.
7424 (clast_to_gcc_expression): Fix warning.
7426 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
7428 * gcc.dg/graphite/scop-16.c: Fix for 32bit.
7429 * gcc.dg/graphite/scop-17.c: Fix for 32bit.
7431 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
7433 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
7434 Move code ifdef-ed HAVE_cloog...
7435 * graphite.c: Include toplev.h.
7437 * Makefile.in (OBJS-common): Always build graphite.o.
7438 (BACKEND): Remove @GRAPHITE@.
7439 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
7440 (graphite.o): Depend on TOPLEV_H.
7442 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
7444 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
7445 Remove typo left from polylib to ppl conversion.
7446 * graphite.c (graphite_transforms): Use sorry instead of fatal.
7448 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
7450 * toplev.c (process_options): Move the graphite loop optimization
7452 * tree-ssa-loop.c (graphite_transforms): ... here.
7453 When not configured with CLooG, print to dump_file that
7454 Graphite transforms were not performed.
7455 * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
7457 * gcc.dg/graphite/*.c: Updated all testcases to use
7458 scan-graphite-dump-times.
7460 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
7462 * graphite.c (dot_scop, dot_all_scops): Do not call system.
7463 Do not open /tmp/scop.dot and /tmp/allscops.dot.
7465 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
7466 Jan Sjodin <jan.sjodin@amd.com>
7468 * configure: Regenerated.
7469 * omp-low.c (expand_omp_sections): Remove now unused code.
7470 * config.in (HAVE_polylib): Removed.
7471 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
7472 (PPLLIBS, PPLINC): Added.
7473 * graphite.c: Replace unsigned with int wherever possible.
7474 Don't access Cloog's data structures, but use accessor functions.
7475 Clast's stmt->type is now implemented as a vtable: change the
7476 switches of stmt->type into ifs.
7477 (polylib/polylibgmp.h): Don't include.
7478 (initialize_dependence_polyhedron,
7479 initialize_data_dependence_polyhedron, is_empty_polyhedron,
7480 statement_precedes_p, test_dependence, build_rdg_all_levels,
7481 dump_dependence_graph): Removed until this code is cleaned up
7483 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
7484 (POLYLIBINC): Renamed PPLINC.
7486 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
7487 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7488 Jan Sjodin <jan.sjodin@amd.com>
7490 Finish the merge and tuplification of graphite.
7492 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
7493 Jan Sjodin <jan.sjodin@amd.com>
7495 Partial merge from mainline (138072:138275).
7496 * graphite.c still has to be tuplified.
7498 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
7500 * graphite.c (graphite_loops_mapping_max_loop_num): New.
7501 (create_num_from_index): New.
7502 (get_num_from_index): Also pass in the graphite BB.
7503 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
7504 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
7505 (graphite_trans_bb_strip_mine): Call create_num_from_index.
7506 (is_interchange_valid): Return false when failing.
7507 * graphite.h (struct num_map): New.
7508 (struct graphite_bb): New field num_map.
7509 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
7511 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
7513 * graphite.c (dump_gbb_conditions): Print also conditions like
7514 "if (a)". Remove dublicated code and use print_generic_expr ().
7515 (stmt_simple_for_scop_p): Only allow conditions we can handle
7518 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
7520 * graphite.h (struct scop): Removed new_ivs field.
7521 (SCOP_NEWIVS): Deleted.
7522 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
7523 clast_to_gcc_expression, graphite_create_new_loop):
7524 Removed use of new_ivs.
7526 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
7528 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
7529 create_loops_mapping_num, debug_loop_mapping_1): New.
7530 (debug_loop_mapping): Call debug_loop_mapping_1.
7531 (get_loop_mapping_for_num,
7532 graphite_loops_mapping_add_child,
7533 graphite_loops_mapping_add_child_num,
7534 graphite_loops_mapping_insert_child,
7535 graphite_loops_mapping_parent,
7536 split_loop_mapped_depth_for_num,
7537 loop_mapped_depth_split_loop): New.
7538 (increment_loop_mapped_depths): Removed.
7539 (swap_loop_mapped_depth_for_num): Reimplemented.
7540 (new_scop): Call create_loops_mapping.
7541 (scop_record_loop): Call graphite_loops_mapping_insert_child.
7542 (translate_clast): Pass the old loop father in parameter, and pass
7543 it to get_old_iv_from_ssa_name.
7544 (remove_edges_around_useless_blocks, can_generate_code_stmt,
7545 can_generate_code, can_generate_for_scop): New.
7546 (graphite_trans_bb_block): Returns false when it fails to transform.
7547 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
7549 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7551 Reverted all the changes related to the streamization and
7553 These changes are now tracked in the streamization branch.
7555 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7556 Jan Sjodin <jan.sjodin@amd.com>
7558 * graphite.c (gbb_compare): Correctly constify.
7559 (gbb_can_be_ignored): Indent.
7560 (graphite_trans_scop_swap_1and2): Add legality check.
7563 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7565 Remove fallouts from "Reverted the Condate changes".
7566 * tree.h: Remove unused decl.
7567 * gcc.dg/tree-checker: Same.
7568 * timevar.def: Remove counter.
7570 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
7572 * Merge from mainline (135673:138072).
7574 Reverted the MIRO changes (from 2008-04-05) that are now
7575 tracked in the miro branch.
7576 * tree-bounds.c: Removed.
7577 * tree-bounds.h: Removed.
7579 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
7580 are now tracked in the condate branch.
7581 * tree-check.c: Removed.
7582 * tree-match.c: Removed.
7583 * condate.y: Removed.
7585 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7587 * common.opt: New user flag -floop-block, -floop-strip-mine
7588 and -floop-interchange.
7589 * toplev.c (process_options): Enable -fgraphite pass if any one of the
7590 graphite loop optimization flags is turned on.
7591 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
7592 flag_loop_strip_mine and flag_loop_interchange checks before
7594 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
7595 -floop-strip-mine and -floop-interchange.
7596 * gcc.dg/graphite/block-0.c: Add -floop-block and remove
7598 * gcc.dg/graphite/scop-16.c: Ditto.
7599 * gcc.dg/graphite/scop-17.c: Ditto.
7600 * gcc.dg/graphite/scop-18.c: Ditto.
7602 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
7603 Sebastian Pop <sebastian.pop@amd.com>
7605 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
7606 (create_empty_loop_on_edge): More fixes.
7607 * tree-phinodes.c (resize_phi_node): Extern.
7608 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
7609 * cfghooks.c (update_dominator_information): New split from
7611 * tree-vectorizer.c (rename_variables_in_bb): Extern.
7612 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
7613 successor of the function entry block.
7615 * graphite.c: Include pointer-set.h.
7616 (debug_loop_mapping, increment_loop_mapped_depths,
7617 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
7618 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
7619 swap_loop_mapped_depth_for_num, get_num_from_index,
7620 swap_loop_mapped_depth, loop_iv_stack_debug,
7621 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
7622 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
7623 get_old_iv_from_ssa_name): New.
7624 (new_scop): Initialize SCOP_LOOPS_MAPPING.
7625 (free_scop): Free SCOP_LOOPS_MAPPING.
7626 (scop_record_loop): Record old ivs.
7627 (create_var_name): Removed.
7628 (initialize_cloog_names): Allocate double space in case strip mine
7629 applies to all loops once.
7630 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
7631 (clast_to_gcc_expression): Same. Implement more clast to gimple
7633 (graphite_create_new_loop): Pass in ivstack.
7634 (remove_all_edges): Pass in the construction_edge.
7635 (graphite_remove_iv): Removed.
7636 (graphite_rename_ivs, graphite_rename_ivs_stmt,
7637 remove_cond_exprs): Rewritten.
7638 (move_phi_nodes): New.
7639 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
7640 (translate_clast): Pass in ivstack. Rewrite some cases.
7641 (set_cloog_options, debug_clast_stmt): New.
7642 (find_transform): Use set_cloog_options.
7643 (outermost_loop_layer): Removed.
7644 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
7645 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
7646 mark_old_loops, remove_dead_loops): New.
7648 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
7649 (const_column_index, get_first_matching_sign_row_index,
7650 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
7651 get_upper_bound): New.
7652 (graphite_trans_bb_strip_mine): Also update the iv map.
7654 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
7655 (struct name_tree): Add a loop field.
7656 (struct scop): Add a graphite_loops_mapping field.
7657 (SCOP_LOOPS_MAPPING): New.
7658 (debug_clast_stmt): Declare.
7659 * lambda.h (find_induction_var_from_exit_cond): Declare.
7660 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
7661 * cfgloop.h (update_dominators_in_loop): Removed declaration.
7662 (create_empty_loop_on_edge): Updated.
7663 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
7664 rename_variables_in_bb): Declare.
7665 * tree-cfg.c (remove_bb): Extern.
7667 * gcc.dg/graphite/block-0.c: New.
7669 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7670 Sebastian Pop <sebastian.pop@amd.com>
7672 * graphite.c (strip_mine_profitable_p): New.
7673 (graphite_trans_bb_block): Disable strip mining if not profitable.
7675 * gcc.dg/graphite/scop-18.c: New.
7676 * gcc.dg/graphite/scop-17.c: Fixed.
7677 * gcc.dg/graphite/scop-16.c: Fixed.
7679 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
7680 Jan Sjodin <jan.sjodin@amd.com>
7681 Sebastian Pop <sebastian.pop@amd.com>
7683 * graphite.c (is_interchange_valid): New.
7684 (graphite_trans_bb_block): Check loop nest of basic block for legality
7687 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
7688 outer_most_loop, gbb_outer_most_loop_index): New.
7690 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
7691 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
7692 * gcc.dg/graphite/scop-16.c: New.
7693 * gcc.dg/graphite/scop-17.c: New.
7695 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7697 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
7698 (graphite_trans_scop_block): Ignore SCoPs without bbs.
7700 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7702 * graphite.c (new_scop): Initialize SCOP_EXIT.
7703 (scopdet_info): Add.
7704 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
7705 (build_scops_1): Cleanup, bugfixes.
7706 (build_scops): Cleanup.
7708 * gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
7709 * gcc.dg/graphite/scop-15.c: Add SCoP numbers.
7711 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7713 * gfortran.dg/graphite/scop-1.f: Update to reduced test case.
7715 * gfortran.dg/graphite/graphite.exp: Use
7716 DEFAULT_GRAPHITE_FLAGS.
7718 * gcc.dg/graphite/scop-15.c: Update to reduced test case.
7720 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7722 * graphite.c (scan_tree_for_params): Do not assert any more if
7723 MULT_EXPR parameter is negative.
7725 * gfortran.dg/graphite/scop-1.f: New.
7727 * gfortran.dg/graphite/graphite.exp: New.
7729 * gcc.dg/graphite/scop-15.c: New.
7731 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7733 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
7735 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7737 * graphite.c (graphite_trans_bb_swap_loops): Rename from
7738 graphite_swap_loops.
7739 (graphite_trans_bb_move_loop): New.
7740 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
7741 (graphite_trans_bb_block): New.
7742 (graphite_trans_loop_block): New.
7743 (graphite_trans_scop_swap_1and2): Rename from
7744 graphite_trans_swap_1and2.
7745 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
7746 (graphite_trans_scop_block): New.
7747 (graphite_apply_transformations): Rename from
7748 graphite_transformations.
7750 * gcc.dg/graphite/scop-matmult.c: New.
7752 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7754 * graphite.c (gbb_compare): New.
7755 (graphite_sort_gbbs): New.
7756 (gbb_can_be_ignored): New.
7757 (scop_remove_ignoreable_gbbs): New.
7758 (graphite_transformations): Cleanup and add
7759 scop_remove_ignoreable_gbbs.
7760 * lambda.h (lambda_vector_compare): New.
7762 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
7764 * graphite.c (print_graphite_bb): Correct printing of static schedule.
7765 (graphite_swap_loops): int -> unsigned
7766 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
7767 (graphite_transformations): New.
7768 (graphite_transform_loops): Move to graphite_transformations.
7769 * graphite.h (gbb_nb_loops): Return unsigned.
7771 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
7773 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
7774 the domain matrix. This makes scop-0.c work again.
7776 2008-06-20 Richard Guenther <rguenther@suse.de>
7778 * graphite.h: Adjust copyright to GPLv3.
7779 * graphite.c: Likewise.
7780 (stmt_simple_memref_for_scop_p): Split out from ...
7781 (stmt_simple_for_scop_p): ... here. Fix handling of calls
7783 (get_bb_type): Optimize.
7785 (is_bb_addable): Fix memleak, replace is_pred call with
7787 (build_scops): Use current_loops.
7788 (param_index): Fix memleak.
7790 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7792 * graphite.c: Fix formatting.
7794 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7796 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
7797 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
7798 (create_var_name, save_var_name): Newly defined functions.
7799 (initialize_cloog_names): Part of the code factored out to
7801 (clast_to_gcc_expression): Now handles the case of clast_red_sum
7802 in clast_reduction statement.
7803 (graphite_create_new_loop): Now takes a new parameter
7805 (translate_clast): Now also takes the context_loop and bb_exit
7806 parameters. Rewritten the code so that it creates a gimple code
7807 inside the given context.
7808 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
7809 remove_cond_expr, disconnect_cond_expr,
7810 disconnect_virtual_phi_nodes): Newly defined functions.
7811 * graphite.h (struct scop): added old_ivs vector.
7812 SCOP_OLDIVS: New macro.
7814 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
7816 * cfgloopmanip.c: Add missing function comments, fix formatting.
7818 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7820 * cfgloopmanip.c (update_dominators_in_loop): Defined.
7821 (create_empty_loop_on_edge): Defined.
7822 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
7824 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
7825 (update_dominators_in_loop): Declared as extern
7826 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
7828 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
7830 * graphite.c (print_graphite_bb): Allow changing number of loops
7832 (initialize_cloog_names): Allow changing number of loops.
7833 (build_cloog_prog): Simplify.
7834 (find_transform): Enable cloog option --strides.
7835 (graphite_swap_loops): New.
7836 (graphite_strip_mine_loop): New.
7837 (graphite_trans_swap_1and2): New.
7838 (graphite_trans_strip): New.
7839 (graphite_transform_loops): Add graphite_trans_strip.
7840 * graphite.h (scop_max_loop_depth): New.
7842 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7844 * graphite.c (build_scop_iteration_domain): Remove forgotten
7845 line. (Fixes compile)
7847 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7849 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
7850 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
7851 (build_bb_loops): New.
7852 (graphite_transform_loops): Add build_bb_loops.
7853 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
7855 * graphite.h (graphite_bb): Add loops.
7856 (gbb_nb_loops): New.
7857 (gbb_loop_at_index): New.
7858 (gbb_loop_index): New.
7859 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
7860 using nb_params_in_scop.
7862 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7864 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
7865 (build_scop_canonical_schedules): Build minimized schedule.
7866 (schedule_to_scattering): Adapt to minimized schedule.
7867 * graphite.h (graphite_bb): Add/Update descriptions.
7869 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
7870 Tobias Grosser <grosser@fim.uni-passau.de>
7872 * graphite.c (print_graphite_bb): Add condition printing.
7874 (dump_gbb_conditions): New.
7875 (build_scop_conditions_1): New.
7876 (build_scop_conditions): New.
7877 * graphite.h (graphite_bb): Add conditions.
7879 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7881 * graphite.c (print_graphite_bb):
7882 (free_graphite_bb): New.
7883 (free_scop): Free bbs.
7884 (get_bb_type): Free doms.
7885 (build_scop_context): Free context matrix.
7886 (build_loop_iteration_domains): Remove unused code.
7887 (build_cloog_prog): Free scattering function and blocklist.
7888 (find_transform): Free options.
7890 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
7892 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
7893 Remove unnecessery cloog data structures. Make a copy of the domain
7894 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
7895 unnecessary cloog data structures. Fix memory leaks. Remove insert
7896 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
7898 (build_scop_iteration_domain): Remove unnecessary cloog
7899 data structures. Fix memory leaks.
7900 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
7901 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
7903 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7905 * graphite.c (find_scop_params): Remove initialize_cloog_names.
7907 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7909 * graphite.c (end_scop): Style fix.
7910 (schedule_to_scattering): Style and comment fix.
7912 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7913 * graphite.c (print_graphite_bb): Fix definiton of
7914 schedule_to_scattering.
7915 (initialize_cloog_names): Change nb_scattdims to max loop
7917 (schedule_to_scattering): Take parameter for number of scattering
7919 (build_cloog_prog): Only build as much scattering dimensions as
7922 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7924 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
7925 in polyhedron/aermod.f90.
7927 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
7928 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7929 Harsha Jagasia <harsha.jagasia@amd.com>
7931 * graphite.c (is_bb_addable): Fix segfault.
7933 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
7935 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
7936 with multiple exits and conditional handling in edge cases.
7937 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
7939 * gcc.dg/graphite/scop-14.c: New.
7941 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
7942 Adrien Eliche <aeliche@isty.uvsq.fr>
7944 * graphite.c (is_bb_addable): Add more comments and enhance
7945 readablity of the source code. Fix memory leak.
7946 (is_loop_exit): Fix memory leak.
7948 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7950 * graphite.c (first_loop_in_scop): Deleted.
7951 (setup_cloog_loop): Only walk the loop chain for inner loops.
7952 (build_scop_iteration_domain): Execute setup_cloog_loop for
7953 all loops in the first layer.
7955 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7957 * graphite.c (scan_tree_for_params): Change the way params are
7958 added to be indepenent of the number of loops.
7959 (setup_cloog_loop): Revert to short matrix format. Fix parameter
7961 (build_cloog_prog): Revert to short matrix format.
7963 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7964 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7966 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
7969 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7971 * graphite.c (nb_data_refs_in_scop): New.
7972 (graphite_transform_loops): Print more stats: number of
7973 loops, basic blocks and data references per scop.
7975 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7976 Jan Sjodin <jan.sjodin@amd.com>
7978 * graphite.c (loop_affine_expr, idx_record_params,
7979 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
7980 instead of instantiate_parameters.
7982 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7984 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
7985 add support for parameters, add STATIC_SCHEDULE at the right places,
7988 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7990 * graphite.c (build_scop_loop_nests): Only add the loops, that
7991 are contained completely in the SCoP.
7992 (build_cloog_prog): Disable scattering, until schedule_to_scattering
7993 and the domains are fixed.
7994 (build_scop_canonical_schedules): Add support for bbs not contained
7997 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7999 * graphite.h (scop_contains_loop): Update comments to match
8000 the actual behavior.
8001 (scop_contains_loop): New.
8002 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
8004 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
8006 * graphite.c (get_bb_type): On function body, i.e. loop_0,
8007 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
8010 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
8011 Tobias Grosser <grosser@fim.uni-passau.de>
8013 * graphite.c (graphite_transform_loops): Early return when
8014 there are no loops in the function.
8016 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
8017 Jan Sjodin <jan.sjodin@amd.com>
8019 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
8020 offset of the last loop.
8021 (setup_cloog_loop): Copy the entire outer constraint matrix.
8023 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
8024 Jan Sjodin <jan.sjodin@amd.com>
8026 * graphite.c (stmt_in_scop_p, function_parameter_p,
8027 invariant_in_scop_p): Removed.
8028 (scan_tree_for_params): Can be used with no constraint
8029 matrix for gathering parameters.
8030 (idx_record_params): Don't use idx_record_param, instead use
8031 scan_tree_for_params.
8032 (find_scop_parameters): Same.
8033 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
8034 Fix the size of loop domains.
8035 (schedule_to_scattering): Exit when the outer loop is not in scop.
8036 (find_transform): Enable build_cloog_prog.
8038 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
8039 Jan Sjodin <jan.sjodin@amd.com>
8041 * graphite.c (schedule_to_scattering): Make scattering domains
8042 uniformly of the same size, as required by CLooG 0.14.0 and before.
8044 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
8045 Jan Sjodin <jan.sjodin@amd.com>
8047 * graphite.c (schedule_to_scattering): Rewrite, correct the
8048 translation of the scheduling function to scattering.
8049 (build_cloog_prog): Call schedule_to_scattering only once.
8050 * graphite.h (scop_loop_index): Do not fail for loops not
8051 in the scop: return -1.
8053 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
8055 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
8056 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
8057 (setup_cloog_loop): Export GBB_DOMAIN.
8058 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
8059 able to rebuild the original control flow.
8060 * graphite.h (graphite_bb): Add domain field and access macro.
8063 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
8065 * graphite.c (debug_gbb): New.
8066 (print_scop, build_graphite_bb): Use SCOP_BBS.
8067 (build_scop_bbs): Reimplemented.
8068 (dfs_bb_in_scop_p): Removed.
8069 (build_scop_loop_nests): Reorder loops inserted in
8070 SCOP_LOOP_NEST: outer loops should come first.
8071 (build_scop_canonical_schedules): Reinitialize at zero
8072 the components of the SCOP_STATIC_SCHEDULE for the loops
8073 that have already been parsed.
8075 * graphite.h (debug_gbb): Declared.
8077 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
8078 Jan Sjodin <jan.sjodin@amd.com>
8080 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
8081 (graphite_loop_to_gcc_loop): Removed.
8082 (remove_all_edges): New.
8083 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
8084 (gloog): Remove useless code.
8086 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
8088 * graphite.c (get_bb_type): Reworked. We distinguish between
8089 loops with one or multiple exits.
8090 (is_loop_exit): New.
8092 (is_bb_addable): Rework condition handling, now support for case
8093 case statements and loops with multiple exits.
8095 * gcc.dg/graphite/scop-11.c: New.
8096 * gcc.dg/graphite/scop-12.c: New.
8097 * gcc.dg/graphite/scop-13.c: New.
8099 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
8101 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
8102 we have too many colors.
8104 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
8106 * doc/invoke.texi (-ftree-loop-fusion): Document.
8107 * tree-pass.h (pass_loop_fusion): Declared.
8108 * tree-loop-fusion.c: New.
8109 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
8110 * tree-data-ref.c (find_data_references_in_loop): Make extern.
8111 * tree-data-ref.h (find_data_references_in_loop): Declared.
8112 * common.opt (ftree-loop-fusion): Declared.
8113 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
8115 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
8117 * graphite.c (build_access_matrix): Fix typo from the merge.
8119 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
8121 * Merge from mainline (130800:135673).
8123 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
8125 * graphite.c (end_scop): The exit of the scop is not part of the scop.
8126 Update dominators after splitting.
8128 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
8130 * graphite.c (is_bb_addable): Return the harmful statement.
8131 Factor up some code.
8132 (end_scop): New. Splits end of scope bbs on a harmful statement.
8133 (build_scops_1): Call end_scop.
8135 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
8137 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
8138 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
8139 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
8140 build_scops_1): Removed.
8141 (build_scops_2): Renamed build_scops_1.
8143 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
8145 * graphite.c: Fix formatting.
8147 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
8149 * graphite.c (get_bb_type): New.
8151 (build_scops_2): New.
8152 (is_bb_addable): New.
8153 (build_scops): Switch the scop detection.
8154 (build_scop_bbs): Add entry bb to scop.
8155 * graphite.h (struct scop): Update comment.
8157 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
8159 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
8162 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
8164 * gcc.dg/graphite/scop-1.c: Update.
8165 * gcc.dg/graphite/scop-2.c: Update.
8166 * gcc.dg/graphite/scop-4.c: Update.
8167 * gcc.dg/graphite/scop-5.c: Add.
8168 * gcc.dg/graphite/scop-6.c: Add.
8170 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
8172 * gcc.dg/graphite/scop-0.c: Add.
8173 * gcc.dg/graphite/scop-7.c: Add.
8174 * gcc.dg/graphite/scop-8.c: Add.
8175 * gcc.dg/graphite/scop-9.c: Add.
8176 * gcc.dg/graphite/scop-10.c: Add.
8178 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
8180 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
8181 Check affine expressions depending on the outermost loop
8183 (stmt_simple_for_scop_p): Same.
8184 (harmfule_stmt_in_scop): Same.
8186 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
8188 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
8189 mark entry and exit, that are not part of the SCoP and update HTML
8192 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
8194 * graphite.c (basic_block_simple_for_scop_p): Renamed
8196 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
8197 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
8198 (all_preds_visited_p, all_succs_visited_p,
8199 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
8200 scop_end_loop): New.
8201 (build_scops): Do not use dfs_enumerate_from.
8203 * gcc.dg/graphite/scop-{1,2,4}.c: Updated.
8205 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
8207 * graphite.c: Add comments to functions that are missing a
8209 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
8211 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
8213 * graphite.c (nb_params_in_scop): Moved...
8214 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
8215 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
8216 (clast_to_gcc_expression): Reduce column size to less than 80.
8217 (graphite_create_iv): Return the new name of the IV.
8218 (find_transform): Set options->esp and options->cpp.
8219 (gloog): Comment out the invalidation of the old loop code.
8220 (initialize_dependence_polyhedron): Replace scop_nb_params with
8223 * graphite.h (nb_params_in_scop): ... here.
8224 (scop_nb_params): Removed.
8225 (loop_domain_dim): Return something even when the loop was not
8226 found in the hash table: avoid ICEing on all the graphite.exp
8229 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8231 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
8233 * graphite.c (build_scop_dynamic_schedules): Schedule is built
8234 according to nesting level.
8235 (find_scop_parameters): Call instantiate_parameters.
8236 (scan_tree_for_params): Extend it to handle general affine bounds.
8237 Inner loop bound can depend on outer loop induction variable.
8238 (setup_cloog_loop): tmp variable is allocated on stack. Call
8239 instantiate_parameters with respect to outermost_loop_in_scop.
8240 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
8242 (create_empty_loop): Function loopify should be given edge
8243 probability, instead of edge frequency. Dominance relation from
8244 switch_bb to loop_header.
8245 (clast_to_gcc_expression): Added handling of clast_reduction node.
8246 (gloog): New functionality for removing old loop.
8247 (test_dependence): Factored out from build_rdg_all_levels.
8248 (build_rdg_all_levels): Dependence testing factored out to
8249 test_dependence function.
8251 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
8252 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
8255 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
8257 * graphite.c (free_scop, param_index, initialize_cloog_names,
8258 nb_params_in_scop): Use name_tree map instead of just a tree
8259 for keeping track of the variable name associated to that tree.
8260 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
8261 clast_to_gcc_expression, graphite_create_iv,
8262 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
8263 graphite_stmt_to_gcc_stmt): New.
8264 (gloog): Call these.
8265 * graphite.h (struct name_tree): New.
8266 (struct scop): Use name_tree instead of tree for params.
8267 Store a vector of name_tree for new_ivs.
8269 (scop_nb_params): Use name_tree instead of tree.
8271 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
8272 Sebastian Pop <sebastian.pop@amd.com>
8274 * tree-bounds.c: New.
8275 * tree-bounds.h: New.
8276 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
8277 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
8278 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
8282 * c-cppbuiltin.c: Same.
8286 * tree-outof-ssa.c: Same.
8288 * Makefile.in: Same.
8290 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
8291 Sebastian Pop <sebastian.pop@amd.com>
8293 * tree-loop-distribution.c (remaining_stmts,
8294 upstream_mem_writes): Removed static variables.
8295 (copy_loop_before, create_bb_after_loop,
8296 mark_nodes_having_upstream_mem_writes, free_rdg_components,
8297 rdg_build_components, rdg_build_partitions,
8298 dump_rdg_partitions): Extern.
8299 (generate_loops_for_partition, generate_code_for_partition): Do not
8301 (already_processed_vertex_p, predecessor_has_mem_write,
8302 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
8303 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
8304 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
8305 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
8306 Pass remaining_stmts and upstream_mem_writes as parameters.
8307 (rdg_component): Moved...
8308 (build_rdg_partition_for_component): Do not aggregate components when
8309 flag_streamize_loops is set.
8310 (gen_sequential_loops): New.
8311 (ldist_gen): Call gen_sequential_loops.
8313 * tree-pass.h (pass_loop_streamization): Declared.
8315 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
8316 basic blocks when loops structures exist.
8318 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
8320 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
8322 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8323 eliminate_local_variables_stmt, eliminate_local_variables,
8324 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8325 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8326 of code delimited by two edges in the CFG.
8327 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8328 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8329 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
8330 the case of parallelisation of reductions.
8331 (create_loop_fn): Extern.
8332 (create_omp_parallel_region): New.
8334 * tree-data-ref.c (dump_data_dependence_relation): Don't call
8335 dump_data_reference for printing dra and drb.
8336 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
8338 (build_rdg): Don't call free_dependence_relations for the moment, as
8339 we attach dependence relations on each edge of the RDG.
8342 * tree-data-ref.h (rdg_component): ...here.
8343 (struct rdg_edge): New field ddr_p relation.
8344 (RDGE_RELATION): New.
8345 (create_bb_after_loop, copy_loop_before,
8346 mark_nodes_having_upstream_mem_writes, rdg_build_components,
8347 rdg_build_partitions, dump_rdg_partitions,
8348 free_rdg_components): Declared.
8350 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
8351 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
8353 * tree-loop-streamization.c: New.
8355 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
8356 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
8358 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
8360 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8362 * passes.c: Schedule pass_loop_streamization.
8364 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
8366 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
8369 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
8371 * graphite.c (dot_all_scops): Update formatting.
8372 Bbs can now be part of more than one SCoP.
8374 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
8376 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
8378 (loop_domain_dim): Check for unregistered toplev SCOP loop.
8379 * graphite.h (loop_to_cloog_loop): New.
8381 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8383 * graphite.c (loop_domain_dim, ref_nb_loops,
8384 loop_iteration_vector_dim): New.
8385 (build_access_matrix_with_af, build_access_matrix,
8386 initialize_dependence_polyhedron): Fixed for new matrix layout.
8387 No longer assume that all iteration domains are of the same
8390 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
8392 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
8393 defined in a loop at depth 0 is invariant.
8394 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
8395 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
8396 be called at loop depth 0.
8398 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
8400 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
8401 (down_open_scop): Removed.
8402 (loop_in_scop_p): Redefined.
8403 (scop_affine_expr): New argument: scop.
8404 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
8405 a harmful statement ending a scop.
8406 (basic_block_simple_for_scop_p): New argument: scop.
8407 (get_loop_start): Removed.
8408 (new_scop): Initialize SCOP_LOOPS.
8409 (free_scop): Free SCOP_LOOPS.
8410 (succs_at_same_depth, preds_at_same_depth): New.
8411 (end_scop): Test the validity of a scop.
8412 (add_dominators_to_open_scops): New.
8413 (test_for_scop_bound): Call add_dominators_to_open_scops.
8414 Add cases for opening and closing multiple scops.
8415 (build_scops, build_scop_bbs): Iterate over basic blocks in
8417 (build_graphite_bb): Pass scop directly.
8418 (dfs_bb_in_scop_p): New.
8419 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
8421 (nb_loops_around_gb): Use loop_in_scop_p.
8422 (schedule_to_scattering): Disabled for the moment the code computing
8423 the "textual order for outer loop".
8425 * graphite.h (struct scop): New field loops.
8427 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
8429 * gcc.dg/graphite/scop-{1,...,7}.c: Updated.
8431 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
8432 Sebastian Pop <sebastian.pop@amd.com>
8434 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
8435 * common.opt (fstreamize-loops): New.
8436 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
8437 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
8438 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
8439 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
8441 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8443 * tree-data-ref.c (build_empty_rdg): New.
8444 (build_rdg): Use it.
8445 * tree-data-ref.h (build_empty_rdg): Declared.
8446 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
8447 (find_vertex_for_stmt): Removed.
8448 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
8450 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
8452 * tree-loop-distribution.c (generate_builtin): After cancelling the
8453 loop tree, also delete basic blocks.
8454 (rdg_flag_uses): Stop recursion when a vertex has already been
8457 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8459 * graphite.c (build_scop_alpha): Removed.
8460 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
8461 and dump_dependence_graph to avoid compiler warnings.
8463 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8465 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
8466 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
8467 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
8468 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
8469 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
8470 (initialize_dependence_polyhedron, find_vertex_for_stmt,
8471 initialize_data_dependence_polyhedron, is_empty_polyhedron,
8472 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
8473 dump_dependence_graph): New.
8474 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
8476 (struct scop): New field loop2cloog_loop.
8477 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
8478 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
8480 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8482 * graphite.c (build_graphite_bb): Fix initialization
8483 of the graphite basic block.
8485 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
8487 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
8488 loop domain matrix. Pass in the number of loops contained in the
8490 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
8491 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
8492 loops that are not surrounding the current loop are not represented
8493 in the domain constraint matrix.
8494 (build_scop_iteration_domain): Initial domain constraint matrix
8495 contains only the eq/ineq, cst, and scop parameters columns.
8497 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8499 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
8500 (print_graphite_bb): Print scattering.
8502 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8504 * graphite.c (initialize_cloog_names): Initialize names of
8505 scattering variables.
8507 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8509 * graphite.c (dot_all_scops_1): Disable debug output while
8512 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8514 * graphite.c (find_transform): Change cloog output language to C.
8516 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
8518 * tree-loop-distribution.c (generate_memset_zero,
8519 generate_builtin, generate_code_for_partition,
8520 rdg_flag_all_uses): New.
8521 (rdg_flag_uses): Gather in the same partition the statements defining
8522 the VUSES of the current statement.
8523 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
8524 Gather in the same partition not only the stores to the same memory
8525 access, but also the reads.
8526 (ldist_generate_loops): Renamed ldist_gen.
8528 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
8529 Tobias Grosser <grosser@fmi.uni-passau.de>
8531 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
8532 next pointer, don't use the inner pointer.
8534 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
8536 * graphite.c (dot_all_scops, dot_all_scops_1): New.
8537 (find_transform): Call dot_all_1.
8538 * graphite.h (dot_all_scops): Declared.
8540 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
8542 * tree-loop-distribution.c: Fix apsi.f ICE.
8543 (create_bb_after_loop): New.
8544 (generate_loops_for_partition): Use it.
8545 * gfortran.dg/ldist-1.f90: New.
8547 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
8548 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
8550 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8552 * graphite.c (find_transform): Dump cloog program sent to cloog.
8554 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8556 * graphite.c (initialize_cloog_names): Initialize cloog
8559 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8561 * graphite.c (build_scop_context): Fix typo, for the matrix
8562 format: insert '0 >= 0' instead of '-1 >= 0'.
8564 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
8566 * Fix merge problems.
8568 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
8570 * graphite.c (setup_cloog_loop): Fix typo.
8572 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
8574 * doc/invoke.texi (-ftree-loop-distribution): Documented.
8575 * tree-loop-distribution.c: Reimplemented.
8576 * tree-pass.h (pass_loop_distribution): New.
8577 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
8579 * graphds.h (struct graph): New field indexes.
8580 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8582 * tree-vect-analyze.c: Remove declaration of static functions when not
8584 * tree-vectorizer.c: Same.
8585 (rename_variables_in_loop): Now extern.
8586 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
8587 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
8588 calling redirect_edge_and_branch_force.
8590 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
8592 * tree-data-ref.c: Don't include tree-chrec.h.
8593 (debug_data_dependence_relations): New.
8594 (dump_data_dependence_relation): Call dump_data_reference on data refs
8596 (same_access_functions): Moved...
8597 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
8598 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8599 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
8600 struct rdg_vertex_info, ): New.
8601 (create_rdg_edge_for_ddr): Compute the dependence level before looking
8603 (create_rdg_vertices): Initialize the htab of graph->indexes.
8604 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
8605 (stmts_from_loop): Don't save LABEL_EXPR.
8606 (hash_stmt_vertex_info, eq_stmt_vertex_info,
8607 hash_stmt_vertex_del): New.
8608 (build_rdg): Initialize rdg->indexes.
8609 (free_rdg, stores_from_loop, ref_base_address,
8610 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
8611 have_similar_memory_accesses_1, ref_base_address_1,
8612 remove_similar_memory_refs): New.
8614 * tree-data-ref.h: Include tree-chrec.h.
8615 (debug_data_dependence_relations): Declared.
8616 (same_access_functions): ...here. Now static inline.
8617 (ddr_is_anti_dependent, ddrs_have_anti_deps,
8618 ddr_dependence_level): New.
8619 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
8620 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
8621 RDG_MEM_READS_STMT): New.
8622 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8623 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
8624 rdg_vertex_for_stmt): Declared.
8625 (struct rdg_edge): New field level.
8626 (RDGE_LEVEL, free_rdg): New.
8627 (stores_from_loop, remove_similar_memory_refs,
8628 rdg_defs_used_in_other_loops_p,
8629 have_similar_memory_accesses): Declared.
8630 (rdg_has_similar_memory_accesses): New.
8632 * lambda.h (dependence_level): New.
8633 * common.opt (ftree-loop-distribution): New.
8634 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
8635 (print_loop_ir): Renamed print_loops.
8636 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
8637 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
8638 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
8639 (tree-loop-distribution.o): Added.
8640 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
8641 (mark_virtual_ops_in_bb): New.
8642 (print_loops_bb, debug_loop_num, debug_loop): New.
8643 * passes.c: Scheduled pass_loop_distribution.
8645 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8647 * graphite.c (scan_tree_for_params): Correct the number of columns
8649 (nb_flat_iterator): New.
8650 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
8651 (build_scop_iteration_domain): Correct the number of columns for
8654 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
8656 * Merge from mainline (129697:130800).
8658 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
8660 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
8661 dominated by SCoP's exit.
8662 (graphite_transform_loops): Compute post dominators.
8664 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
8666 * Merge from mainline (127169:129697).
8668 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
8670 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
8671 parameter for the basic block that contains the expression. Use
8672 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
8673 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
8675 * graphite.h (gbb_loop): New.
8676 (GBB_LOOP): Removed.
8678 2007-08-03 Sebastian Pop <sebpop@gmail.com>
8680 * Makefile.in: Fix merge problem.
8682 2007-08-03 Sebastian Pop <sebpop@gmail.com>
8684 * Merge from mainline (125309:127169).
8685 * tree-loop-distribution.c: Disabled.
8687 2007-06-05 Sebastian Pop <sebpop@gmail.com>
8689 * Merge from mainline (r123693:125309).
8691 2007-05-30 Sebastian Pop <sebpop@gmail.com>
8693 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
8695 (correct_modify_p, check_statements, number_of_lvalue_uses,
8696 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
8697 instead of MODIFY_EXPR.
8698 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
8701 2007-05-24 Sebastian Pop <sebpop@gmail.com>
8703 * tree-loop-distribution.c (struct rdg): Replace arrays by
8704 VECs for edges and vertices.
8705 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
8706 (RDGV_NB_PARTITIONS): New.
8707 (PRDG_NBV, PRDG_NBE): Removed.
8708 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
8709 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
8710 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
8712 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
8713 Sebastian Pop <sebpop@gmail.com>
8715 * doc/invoke.texi (-ftree-loop-distribution): Document.
8716 * tree-loop-distribution.c: New file.
8717 * tree-pass.h (pass_loop_distribution): Declared.
8718 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8719 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
8721 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
8722 (DDR_REVERSED_P): New.
8723 * common.opt (-ftree-loop-distribution): New.
8724 * tree-flow.h (distribute_loops): Declared.
8725 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
8726 * passes.c (init_optimization_passes): Schedule loop distribution.
8728 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
8730 * graphite.c (print_graphite_bb): Don't call dump_data_references.
8731 (print_scop): Don't print when scop is NULL.
8732 (build_scop_context, find_transform): Don't output to stderr.
8734 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
8736 * tree-data-ref.c: Don't include graphite.h.
8737 Comment out the code for printing data reference's scop.
8738 (build_access_matrix_with_af): Moved...
8739 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
8740 * graphite.c (build_access_matrix_with_af): ... here. Now static.
8741 (print_graphite_bb): Print basic block's schedule.
8742 (print_scop): Don't print the schedule, call cloog's pretty printer.
8743 (bb_in_scop_p): A basic block is in a scop only if it is both
8744 dominated and postdominated by the scop's entry and exit basic blocks.
8745 (function_parameter_p): New.
8746 (invariant_in_scop_p): Use function_parameter_p.
8747 (new_scop, save_scop): New.
8748 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
8750 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
8751 (loop_in_scop_p): New.
8752 (scop_record_loop): Use loop_in_scop_p.
8753 (build_scop_domain): Renamed build_scop_iteration_domain.
8754 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
8755 nb_params_in_scop, build_scop_context, first_loop_in_scop,
8756 setup_cloog_loop, dot_scop_1, dot_scop): New.
8757 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
8758 (struct scop): Add a pointer to cloog's representation of a program.
8760 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8762 * doc/invoke.texi (-ftree-check-verbose): Renamed
8763 -ftree-checks-verbose.
8764 * common.opt (flag_tree_check_verbose): Renamed
8765 flag_tree_checks_verbose.
8766 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
8768 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8770 * configure: Regenerated.
8771 * config.in: Regenerated.
8772 * tree-ssa-loop.c (graphite_transforms): Execute
8773 graphite_transform_loops only when HAVE_cloog.
8774 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
8775 * graphite.c: Include polylibgmp.h and cloog.h.
8776 (graphite_transform_loops): Removed loops parameter.
8777 * tree-flow.h (graphite_transform_loops): Update declaration.
8778 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
8779 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
8780 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
8781 (OBJS-common): Remove dependence on graphite.o.
8782 (BACKEND): Depend on @GRAPHITE@.
8784 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
8786 * doc/invoke.texi (-ftree-check-verbose): Documented.
8787 * gcc.dg/tree-checker/tree-checks-1.c: New.
8788 * gcc.dg/tree-checker/tree-checks-2.c: New.
8789 * gcc.dg/tree-checker/tree-checks-3.c: New.
8790 * gcc.dg/tree-checker/tree-checks-4.c: New.
8791 * gcc.dg/tree-checker/tree-checks.exp: New.
8792 * gcc.dg/tree-checker/condates.crp: New.
8793 * common.opt (ftree-checks-verbose): New.
8794 * tree-check.c (tree_check_warning): Move extra stderr output
8795 under control of flag_tree_check_verbose.
8797 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
8799 * tree-match.c: Fix comments formatting.
8800 * tree-match.h: Fix comments formatting.
8801 * tree-check.c: Fix comments formatting.
8802 (tree_check_init): Restructure.
8804 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
8806 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
8808 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
8810 * Merge from mainline (r120733:123693).
8812 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
8814 * condate.y: New file.
8815 * tree-match.h (struct patt_info_s): New field sign.
8816 (struct condate_s): New field msg.
8817 (normalize_condate, name_condate, add_condate): New.
8818 (conds[], condate_parse): Made extern.
8819 * tree-check.c (tree_check_warning): First arg changed to cond;
8820 warning reformatted.
8821 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
8823 (tree_check): Process trivial condates.
8824 (read_delimited_string): Removed.
8825 (print_cond): Print name and msg.
8826 (conds[]): Made extern.
8827 (parse_tree_check_file_once): Rewritten to use the parser in
8829 Processing of option --tree_check_string moved to tree_scan().
8830 * Makefile.in: Added condate.y
8832 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
8834 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
8835 Use VECs instead of varrays.
8836 * diagnostic.h (lazy_dump_generic_node): Update declaration.
8837 * Makefile.in (pretty-print.o): Depend on vec.h.
8838 * pretty-print.c: Include tree.h and vec.h.
8839 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
8840 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
8841 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
8842 pp_free_list): Use VECs instead of varrays.
8843 * pretty-print.h: Do not include varray.h.
8844 (struct tree_chunk_s): Declaration moved before its use.
8845 (output_buffer): Rename varray field to chunks.
8846 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
8847 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
8848 save_global_holes): Use VECs instead of varrays.
8849 * tree-match.h: Declare VECs of cfg_node, and hole_p.
8850 * tree-check.c (scan_cfg_stmts, push_node,
8851 print_matching_stmt): Removed.
8852 (tree_check_instance, push_global_holes_if_new, tree_check,
8853 execute_tree_check): Use VECs instead of varrays.
8854 (gate_tree_check): Don't execute the CFG check when basic_block_info
8857 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8859 * Merge from mainline (r115016:120733).
8861 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8863 * Merge from mainline (r117632:117661).
8865 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8867 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
8868 * tree-pass.h (TDF_DEBUG, debug_p): New.
8869 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
8870 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
8871 get_loop_exit_condition, analyze_evolution_in_loop,
8872 analyze_initial_condition, analyze_scalar_evolution,
8873 instantiate_parameters, number_of_latch_executions): Use debug_p.
8874 * tree-chrec.c (chrec_apply): Use debug_p.
8875 * tree-data-ref.c: Include graphite.h.
8876 (dump_data_reference): Print also the access matrix.
8877 (analyze_array, analyze_indirect_ref, init_data_ref,
8878 analyze_offset_expr, address_analysis, object_analysis,
8879 create_data_ref, finalize_ddr_dependent,
8880 non_affine_dependence_relation, analyze_ziv_subscript,
8881 analyze_siv_subscript_cst_affine,
8882 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
8883 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
8884 analyze_miv_subscript, analyze_overlapping_iterations,
8885 build_classic_dist_vector, subscript_dependence_tester,
8886 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
8887 (build_access_matrix_with_af): No longer static.
8888 * tree-data-ref.h (scop_p): ... declaration here.
8889 (data_reference.scop): New field.
8890 (DR_SCOP, DR_ACCESS_MATRIX): New.
8891 (build_access_matrix_with_af, dr_num_subscripts): Declared.
8892 * graphite.c (print_graphite_bb): Call dump_data_references.
8893 (print_scop): Use scop_nb_loops and scop_dim_domain.
8894 (test_for_scop_bound): Use debug_p.
8895 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
8897 (scop_loop_index): Moved...
8898 (scop_record_loop): New.
8899 (build_scop_loop_nests): Use scop_record_loop.
8900 (build_scop_domain): Use scop_dim_domain.
8901 (build_access_matrix): Implemented.
8902 (build_scop_canonical_schedules): Use scop_nb_loops.
8903 (build_graphite_bb): Initialize GBB_SCOP.
8904 * graphite.h (scop_p): Moved...
8905 (graphite_bb.scop): New field.
8906 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
8907 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
8908 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
8909 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
8910 scop_loop_index): New.
8911 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
8913 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
8915 * Merge from mainline (r117661:120450).
8917 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
8919 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
8920 at the first declaration outside the varying loop, instantiate as
8922 * tree-chrec.c (for_each_scev_op): New.
8923 * tree-chrec.h (for_each_scev_op): Declared.
8924 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
8925 * tree-data-ref.c (get_references_in_stmt,
8926 find_data_references_in_stmt): New, from trunk.
8927 (find_data_references_in_loop): Use get_references_in_stmt
8928 and find_data_references_in_loop, modified as in trunk.
8929 (build_access_matrix_with_af): New.
8930 * tree-data-ref.h (data_reference): Add a field access_matrix.
8931 (data_ref_loc): New, as in trunk.
8932 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
8933 invariant_in_scop_p, param_index, scan_tree_for_params,
8934 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
8935 idx_record_param, idx_record_params, build_access_matrix,
8936 build_scop_data_accesses, build_scop_canonical_schedules,
8937 build_graphite_bb, build_scop_bbs, find_params_in_bb,
8938 build_scop_params): New.
8939 * graphite.h (graphite_bb): New.
8940 (scop): Add fields static_schedule, params, loop_nest,
8942 * lambda.h: Declare vecs of lambda_matrix.
8943 * tree-flow.h (print_loop_ir_bb): Declared.
8944 * tree-cfg.c (print_loop_ir_bb): New.
8945 (print_loop): Use print_loop_ir_bb.
8947 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
8949 * Merge from mainline (r115016:117632).
8951 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
8953 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
8954 break due to a warning.
8956 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
8958 * graphite.c (print_scops, debug_scops): New.
8959 (graphite_transform): Renamed graphite_find_transform.
8960 * graphite.h (debug_scops): Declared.
8962 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
8964 * tree-match.c: Reformat following the GNU style.
8965 * tree-match.h: Reformat following the GNU style.
8966 * tree-pattern.h: Removed empty file.
8967 * Makefile.in: Remove references to tree-pattern.h.
8968 * tree-check.c: Reformat following the GNU style.
8969 (execute_tree_check): Move gate condition code to...
8970 (gate_tree_check): ...here. New function.
8971 (pass_check): Use the gate function.
8973 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
8975 * tree-pattern.h: New. Tree pattern matching and checking using
8977 * tree-check.c: New. Tree/CFG checking pass.
8978 * tree-match.c: New. Library for tree pattern matching.
8979 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
8980 * toplev.c, flags.h: Add globals for tree-check pass.
8981 * Makefile.in: Integrate the files in tree-check pass.
8982 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
8983 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
8984 Introduce a "lazy" pretty-print mode.
8985 * tree.c, tree.h: Add tree_name.
8987 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
8989 * doc/invoke.texi (-fgraphite): Correct typo.
8990 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
8991 use of print_loop_ir.
8992 * gcc.dg/graphite/scop-1.c: New.
8993 * gcc.dg/graphite/scop-2.c: New.
8994 * gcc.dg/graphite/graphite.exp: New.
8995 * graphite.c: Include domwalk.h.
8996 (print_scop): Print only the entry and exit blocks.
8997 (debug_scop): No longer static.
8998 (affine_expr): Fix formating. Return also true when the expression is
9000 (stmt_simple_for_scop_p): Fix formating.
9001 (build_scops): Use domwalk.
9002 (get_loop_start, end_scop, test_for_scop_bound): New.
9003 (graphite_transform_loops): Avoid printing on stderr.
9004 * graphite.h (debug_scop): Declared.
9005 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
9006 * Makefile.in (graphite.o): Depend on domwalk.h.
9007 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
9008 declarations for static functions.
9009 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
9010 controlling output verbosity.
9012 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
9013 Plesco Alexandru <shurikx@gmail.com>
9015 * doc/invoke.texi (-fgraphite): Document.
9016 * tree-pass.h (pass_graphite_transforms): Declared.
9017 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
9018 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
9019 (pass_graphite_transforms): Defined.
9020 * tree-data-ref.c (free_data_ref, data_reference): Extern.
9021 * tree-data-ref.h (free_data_ref, data_reference): Declared.
9022 * graphite.c, graphite.h: New.
9023 * common.opt (fgraphite): Declared.
9024 * tree-flow.h (graphite_transform_loops): Declared.
9025 * Makefile.in (OBJS-common): Add graphite.o.
9026 (graphite.o): New rule.
9027 * passes.c (pass_graphite_transforms): Scheduled.