1 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
3 * Makefile.in (LAMBDA_H): Removed.
4 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
5 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
6 lambda-trans.o, and tree-loop-linear.o.
7 (lto-symtab.o): Remove dependence on LAMBDA_H.
8 (tree-loop-linear.o): Remove rule.
10 (lambda-trans.o): Same.
11 (lambda-code.o): Same.
12 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13 (tree-vect-slp.o): Same.
14 * hwint.h (gcd): Moved here.
15 (least_common_multiple): Same.
16 * lambda-code.c: Removed.
17 * lambda-mat.c: Removed.
18 * lambda-trans.c: Removed.
20 * tree-loop-linear.c: Removed.
21 * lto-symtab.c: Do not include lambda.h.
22 * omega.c (gcd): Removed.
23 * passes.c (init_optimization_passes): Remove pass_linear_transform.
24 * tree-data-ref.c (print_lambda_vector): Moved here.
25 (lambda_vector_copy): Same.
26 (lambda_matrix_copy): Same.
27 (lambda_matrix_id): Same.
28 (lambda_vector_first_nz): Same.
29 (lambda_matrix_row_add): Same.
30 (lambda_matrix_row_exchange): Same.
31 (lambda_vector_mult_const): Same.
32 (lambda_vector_negate): Same.
33 (lambda_matrix_row_negate): Same.
34 (lambda_vector_equal): Same.
35 (lambda_matrix_right_hermite): Same.
36 * tree-data-ref.h: Do not include lambda.h.
37 (lambda_vector): Moved here.
38 (lambda_matrix): Same.
39 (dependence_level): Same.
40 (lambda_transform_legal_p): Removed declaration.
41 (lambda_collect_parameters): Same.
42 (lambda_compute_access_matrices): Same.
43 (lambda_vector_gcd): Same.
44 (lambda_vector_new): Same.
45 (lambda_vector_clear): Same.
46 (lambda_vector_lexico_pos): Same.
47 (lambda_vector_zerop): Same.
48 (lambda_matrix_new): Same.
49 * tree-flow.h (least_common_multiple): Removed declaration.
50 * tree-parloops.c (lambda_trans_matrix): Moved here.
54 (LTM_DENOMINATOR): Same.
55 (lambda_trans_matrix_new): Same.
56 (lambda_matrix_vector_mult): Same.
57 (lambda_transform_legal_p): Same.
58 * tree-pass.h (pass_linear_transform): Removed declaration.
59 * tree-ssa-loop.c (tree_linear_transform): Removed.
60 (gate_tree_linear_transform): Removed.
61 (pass_linear_transform): Removed.
62 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
63 flag_loop_interchange.
65 * gfortran.dg/graphite/interchange-4.f: New.
66 * gfortran.dg/graphite/interchange-5.f: New.
68 * gcc.dg/tree-ssa/ltrans-1.c: Removed.
69 * gcc.dg/tree-ssa/ltrans-2.c: Removed.
70 * gcc.dg/tree-ssa/ltrans-3.c: Removed.
71 * gcc.dg/tree-ssa/ltrans-4.c: Removed.
72 * gcc.dg/tree-ssa/ltrans-5.c: Removed.
73 * gcc.dg/tree-ssa/ltrans-6.c: Removed.
74 * gcc.dg/tree-ssa/ltrans-8.c: Removed.
75 * gfortran.dg/ltrans-7.f90: Removed.
76 * gcc.dg/tree-ssa/data-dep-1.c: Removed.
78 * gcc.dg/pr18792.c: -> gcc.dg/graphite/pr18792.c
79 * gcc.dg/pr19910.c: -> gcc.dg/graphite/pr19910.c
80 * gcc.dg/tree-ssa/20041110-1.c: -> gcc.dg/graphite/pr20041110-1.c
81 * gcc.dg/tree-ssa/pr20256.c: -> gcc.dg/graphite/pr20256.c
82 * gcc.dg/pr23625.c: -> gcc.dg/graphite/pr23625.c
83 * gcc.dg/tree-ssa/pr23820.c: -> gcc.dg/graphite/pr23820.c
84 * gcc.dg/tree-ssa/pr24309.c: -> gcc.dg/graphite/pr24309.c
85 * gcc.dg/tree-ssa/pr26435.c: -> gcc.dg/graphite/pr26435.c
86 * gcc.dg/pr29330.c: -> gcc.dg/graphite/pr29330.c
87 * gcc.dg/pr29581-1.c: -> gcc.dg/graphite/pr29581-1.c
88 * gcc.dg/pr29581-2.c: -> gcc.dg/graphite/pr29581-2.c
89 * gcc.dg/pr29581-3.c: -> gcc.dg/graphite/pr29581-3.c
90 * gcc.dg/pr29581-4.c: -> gcc.dg/graphite/pr29581-4.c
91 * gcc.dg/tree-ssa/loop-27.c: -> gcc.dg/graphite/pr30565.c
92 * gcc.dg/tree-ssa/pr31183.c: -> gcc.dg/graphite/pr31183.c
93 * gcc.dg/tree-ssa/pr33576.c: -> gcc.dg/graphite/pr33576.c
94 * gcc.dg/tree-ssa/pr33766.c: -> gcc.dg/graphite/pr33766.c
95 * gcc.dg/pr34016.c: -> gcc.dg/graphite/pr34016.c
96 * gcc.dg/tree-ssa/pr34017.c: -> gcc.dg/graphite/pr34017.c
97 * gcc.dg/tree-ssa/pr34123.c: -> gcc.dg/graphite/pr34123.c
98 * gcc.dg/tree-ssa/pr36287.c: -> gcc.dg/graphite/pr36287.c
99 * gcc.dg/tree-ssa/pr37686.c: -> gcc.dg/graphite/pr37686.c
100 * gcc.dg/pr42917.c: -> gcc.dg/graphite/pr42917.c
101 * gcc.dg/tree-ssa/data-dep-1.c
102 * gfortran.dg/loop_nest_1.f90: -> gfortran.dg/graphite/pr29290.f90
103 * gfortran.dg/pr29581.f90: -> gfortran.dg/graphite/pr29581.f90
104 * gfortran.dg/pr36286.f90: -> gfortran.dg/graphite/pr36286.f90
105 * gfortran.dg/pr36922.f: -> gfortran.dg/graphite/pr36922.f
106 * gfortran.dg/pr39516.f: -> gfortran.dg/graphite/pr39516.f
108 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
110 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
111 VAR_DECL, PARM_DECL, and RESULT_DECL.
113 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
115 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
117 * graphite-dependences.c (reduction_dr_1): Allow several reductions
119 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
120 that have already been marked as PBB_IS_REDUCTION.
122 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
124 * graphite-scop-detection.c (same_close_phi_node): New.
125 (remove_duplicate_close_phi): New.
126 (make_close_phi_nodes_unique): New.
127 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
129 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
131 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
132 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
133 of both data references to be the same.
135 2011-01-17 Sebastian Pop <sebastian.pop@amd.com>
137 * graphite-dependences.c (build_lexicographical_constraint): Remove the
139 (build_lexicographical_constraint): Adjust call to ppl_powerset_is_empty.
140 (dependence_polyhedron): Same.
141 (graphite_legal_transform_dr): Same.
142 (graphite_carried_dependence_level_k): Same.
143 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params parameter.
144 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
146 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
148 * graphite-sese-to-poly.c
149 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
150 (close_phi_written_to_memory): New.
151 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
154 * gcc.dg/graphite/block-0.c: Un-XFAILed.
155 * gcc.dg/graphite/block-1.c: Un-XFAILed.
156 * gcc.dg/graphite/block-7.c: Un-XFAILed.
157 * gcc.dg/graphite/block-8.c: Un-XFAILed.
158 * gcc.dg/graphite/interchange-12.c: Un-XFAILed.
159 * gcc.dg/graphite/interchange-14.c: Un-XFAILed.
160 * gcc.dg/graphite/interchange-15.c: Un-XFAILed.
161 * gcc.dg/graphite/interchange-8.c: Un-XFAILed.
162 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
164 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
166 * doc/install.texi: Update the expected version number of PPL to 0.11.
167 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
168 #if PPL_VERSION_MINOR < 11.
170 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
172 * graphite-dependences.c (new_poly_ddr): Inlined into
173 dependence_polyhedron.
174 (free_poly_ddr): Moved close by new_poly_ddr.
175 (dependence_polyhedron_1): Renamed dependence_polyhedron.
176 Early return NULL when ppl_powerset_is_empty returns true.
177 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
178 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
179 (graphite_legal_transform_dr): Call new_poly_ddr.
180 (graphite_carried_dependence_level_k): Same.
181 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
182 (dot_transformed_deps_stmt_1): Removed.
183 (dot_deps_stmt_1): Call dot_deps_stmt_2.
184 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
185 (dot_deps_1): Call dot_deps_2.
187 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
189 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
190 (build_lexicographical_constraint): Same.
191 (dependence_polyhedron_1): Same.
192 (graphite_legal_transform_dr): Same.
193 (graphite_carried_dependence_level_k): Same.
194 * graphite-ppl.c (ppl_powerset_is_empty): New.
195 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
196 * tree-data-ref.c (dump_data_reference): Print the basic block index.
198 * gcc.dg/graphite/block-0.c: Add documentation.
199 * gcc.dg/graphite/block-4.c: Same.
200 * gcc.dg/graphite/block-7.c: Same.
201 * gcc.dg/graphite/block-8.c: New.
202 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
203 * gcc.dg/graphite/interchange-11.c: Un-XFAILed.
204 * gcc.dg/graphite/interchange-12.c: Add documentation.
205 * gcc.dg/graphite/interchange-13.c: New.
206 * gcc.dg/graphite/interchange-14.c: New.
207 * gcc.dg/graphite/interchange-15.c: New.
208 * gcc.dg/graphite/interchange-8.c: Add documentation.
209 * gcc.dg/graphite/interchange-mvt.c: Same.
211 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
213 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
214 the "a followed by b" relation and document it.
216 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
218 * graphite-dependences.c (build_lexicographical_constraint): Stop the
219 iteration when the bag of constraints is empty.
221 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
223 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
225 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
227 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
228 nest and two loop depths as parameters.
229 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
232 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
234 * graphite-dependences.c (print_pddr): Call
235 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
237 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
239 * graphite-ppl.c (debug_gmp_value): New.
240 * graphite-ppl.h (debug_gmp_value): Declared.
242 2011-01-13 Tobias Grosser <grosser@fim.uni-passau.de>
244 * doc/install.texi: Document availability of cloog-0.16
246 2011-01-05 Vladimir Kargov <kargov@gmail.com>
248 * graphite-scop-detection.c (is_valid_stmt_p): Pass the entry basic
249 block instead of region start to the instantiation.
250 (is_valid_bb_p): Add support for basic blocks with conditional
252 (find_scops_new): Recalculate dominance info before SCOP
255 2011-01-05 Vladimir Kargov <kargov@gmail.com>
257 * graphite-scop-detection.c (get_outermost_loop_in_region): New.
258 (is_valid_loop_p): Correct loop passed to stmt_has_simple_data_refs_p
260 2011-01-05 Vladimir Kargov <kargov@gmail.com>
262 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
263 invalid postdominance info
265 2010-12-29 Sebastian Pop <sebastian.pop@amd.com>
267 * Makefile.in (graphite-opencl-codegen.o): Update dependences.
268 (graphite-opencl-meta-clast.o): Same.
269 (graphite-opencl.o): Same.
270 (refined-regions.o): Same.
271 * graphite-opencl-codegen.c: Do not include unnecessary .h files.
272 * graphite-opencl-meta-clast.c: Same.
273 * graphite-opencl.c: Same.
274 * refined-regions.c: Same.
276 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
278 * graphite-opencl-codegen.c: Use FOR_EACH_VEC_ELT.
279 * graphite-opencl-meta-clast.c: Same.
280 * graphite-opencl.c: Same.
282 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
284 * graphite-opencl-codegen.c: Do not include sys/time.h.
285 * graphite-opencl.c: Same.
287 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
289 * graphite-opencl.c (h_context, h_cmd_queue, h_program): Moved
290 out of ifdef HAVE_cloog section.
292 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
294 * Makefile.in (graphite-opencl.o): Depends on
295 graphite-opencl-functions.def.
296 * graphite-opencl-functions.def: New.
297 * graphite-opencl.c (enum OPENCL_FUNCTIONS): Read data from
298 graphite-opencl-functions.def.
299 (opencl_function_names): Same.
300 (opencl_create_function_decl): Use the enum OPENCL_FUNCTIONS
301 as indices of opencl_function_names.
303 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
305 * graphite-opencl-codegen.c: Fix formatting.
306 * graphite-opencl-meta-clast.c: Same.
307 * graphite-opencl.c: Same.
309 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
311 * graphite-opencl-codegen.c: Fix formating problems.
312 * graphite-opencl-meta-clast.c: Same.
313 * graphite-opencl.c: Same.
314 * graphite-opencl.h: Same.
316 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
318 * graphite-opencl-codegen.c: Sort topologically static functions.
319 * graphite-opencl.c: Same.
321 2010-12-25 Sebastian Pop <sebastian.pop@amd.com>
323 * graphite-cloog-compat.h (cloog_names_nb_scattering): New.
324 (cloog_names_scattering): New.
325 * graphite-opencl-codegen.c (opencl_constant_expression_p): Use
326 clast_expr_* instead of expr_*. Call clast_name_to_str.
327 (opencl_clast_name_to_tree): Now takes a clast_name_p in parameter.
328 (opencl_get_scat_real_name): Same. Call clast_name_to_str.
329 (opencl_add_scat_as_arg): Same.
330 (opencl_print_local_vars): Call cloog_names_scattering and
331 cloog_names_nb_scattering.
332 (opencl_print_for): Do not call value_*.
333 (opencl_print_term): Same.
334 (opencl_print_expr): Use clast_expr_* instead of expr_*.
335 (opencl_print_sum): Same.
336 (opencl_print_binary): Same.
338 2010-12-25 Alexey Kravets <kayrick@ispras.ru>
340 * Makefile.in (OBJS-common): Add graphite-opencl-codegen.o,
341 graphite-opencl-meta-clast.o and graphite-opencl.o.
342 (graphite-opencl-codegen.o): New.
343 (graphite-opencl-meta-clast.o): New.
344 (graphite-opencl.o): New.
345 (GTFILES): Add graphite-opencl.c.
346 * common.opt (fgraphite-opencl): New.
347 (fgraphite-opencl-cpu): New.
348 (fgraphite-opencl-ignore-depth-heuristic): New.
349 (fgraphite-opencl-ignore-mem-heuristic): New.
350 (fgraphite-opencl-ignore-dep): New.
351 (fgraphite-opencl-ignore-types): New.
352 (fgraphite-opencl-depth-base): New.
353 (fgraphite-opencl-debug): New.
354 * graphite-opencl-codegen.c: New file.
355 * graphite-opencl-meta-clast.c: New file.
356 * graphite-opencl.c: New file.
357 * graphite-opencl.h: New file.
358 * graphite.c (graphite_transform_loops): Call graphite_opencl_init and
359 graphite_opencl_finalize.
360 * tree-ssa-loop.c (gate_graphite_transforms): Handle
361 flag_graphite_opencl.
362 * graphite-clast-to-gimple.c (gloog): Call opencl_transform_clast.
363 * dbgcnt.def (opencl_scop_cnt): New counter.
365 2010-12-25 Alexander Monakov <amonakov@ispras.ru>
367 * graphite-dependences.c (graphite_outer_subscript_bound): New.
368 (graphite_carried_dependence_level_k): Export.
369 * graphite-dependences.h (graphite_outer_subscript_bound): Declare.
370 (graphite_carried_dependence_level_k): Ditto.
372 2010-12-25 Alexey Kravets <kayrick@ispras.ru>
374 * graphite-clast-to-gimple.c (struct clast_name_index): Move
375 definition to graphite-clast-to-gimple.h.
376 (clast_name_to_index): Ditto.
377 (clast_name_index_elt_info): Ditto.
378 (eq_clast_name_indexes): Ditto.
379 (save_clast_name_index): Export.
380 (clast_name_to_gcc): Ditto.
381 (clast_to_gcc_expression): Ditto.
382 (gcc_type_for_clast_expr): Ditto.
383 (graphite_create_new_guard): Ditto.
384 (gcc_type_for_iv_of_clast_loop): Ditto.
385 (graphite_create_new_loop): Ditto.
386 (build_iv_mapping): Ditto.
387 (graphite_create_new_loop_guard): Ditto.
388 (debug_clast_name_index): New.
389 (debug_clast_name_indices): New debug function.
391 2010-12-21 Sebastian Pop <sebastian.pop@amd.com>
393 PR tree-optimization/47021
394 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
396 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
398 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
400 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
402 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
404 * graphite-sese-to-poly.c (analyze_drs): Removed.
405 (build_scop_drs): Do not call analyze_drs.
406 (analyze_drs_in_stmts): New.
408 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
409 (insert_out_of_ssa_copy_on_edge): Same.
410 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
411 (rewrite_phi_out_of_ssa): Same.
412 (rewrite_cross_bb_scalar_dependence): Same.
413 (split_reduction_stmt): Move data references in the new basic blocks.
414 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
416 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
418 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
420 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
423 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
424 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
425 * graphite-poly.h (new_poly_bb): Update declaration.
426 (gbb_from_bb): Moved here...
428 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
430 (graphite_stmt_p): Removed.
431 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
432 sbitmap reductions. Always build a gimple_bb_p. Do not call
434 (build_scop_bbs_1): Do not pass in sbitmap reductions.
435 (build_scop_bbs): Same.
436 (gbb_from_bb): ... from here.
437 (add_conditions_to_constraints): Moved up.
439 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
440 not contain data references.
441 (new_pbb_from_pbb): New.
442 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
444 (rewrite_close_phi_out_of_ssa): Update call to
445 insert_out_of_ssa_copy_on_edge.
446 (rewrite_reductions_out_of_ssa): Now static.
447 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
449 (split_reduction_stmt): Call split_pbb.
450 (translate_scalar_reduction_to_array): Pass in the scop, do not
451 pass in the sbitmap reductions.
452 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
453 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
454 (rewrite_commutative_reductions_out_of_ssa): Same.
455 (build_poly_scop): Call build_scop_bbs,
456 rewrite_commutative_reductions_out_of_ssa,
457 rewrite_reductions_out_of_ssa, and
458 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
460 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
462 (rewrite_reductions_out_of_ssa): Same.
463 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
464 (build_scop_bbs): Same.
465 * graphite.c (graphite_transform_loops): Do not initialize reductions.
466 Do not call build_scop_bbs,
467 rewrite_commutative_reductions_out_of_ssa,
468 rewrite_reductions_out_of_ssa, and
469 rewrite_cross_bb_scalar_deps_out_of_ssa.
470 * sese.h (struct gimple_bb): Add field pbb.
473 * gcc.dg/graphite/pr45297.c: New.
475 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
477 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
479 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
480 handle_scalar_deps_crossing_scop_limits.
481 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
482 after the scop. Update call to rewrite_cross_bb_scalar_deps.
484 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
486 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
487 when replacing a constant in an ADDR_EXPR.
489 2010-10-20 Sebastian Pop <sebastian.pop@amd.com>
491 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
493 (lst_do_strip_mine): Same.
494 (scop_do_strip_mine): Same.
495 * graphite-poly.c (apply_poly_transforms): Update call to
497 * graphite-poly.h (scop_do_strip_mine): Update declaration.
499 2010-09-24 Sebastian Pop <sebastian.pop@amd.com>
502 * graphite.c (graphite_initialize): Call scev_reset.
504 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
506 * sese.h (scev_analyzable_p): Return false for real or floating
507 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
509 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
512 * gfortran.dg/graphite/pr45758.f90: New.
514 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
516 * graphite-scop-detection.c (is_scop_p): Free bblist.
518 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
520 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
522 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
524 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
525 Do not allocate ub_expr, it is passed in initialized.
527 2010-09-21 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
529 * common.opt (fgraphite-dump-cloog): New flag.
530 * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
531 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
532 (build_cloog_prog): Dump CLooG input file when
533 flag_graphite_dump_cloog is set.
534 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
536 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
538 Revert previous patch "New flag: -fgraphite-dump-cloog."
540 2010-09-20 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
542 * common.opt (fgraphite-dump-cloog): New flag.
543 * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
544 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
545 (build_cloog_prog): Dump CLooG input file when
546 flag_graphite_dump_cloog is set.
548 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
550 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
551 verify_dominators for CDI_POST_DOMINATORS.
552 * sese.h: Remove comment about CDI_POST_DOMINATORS.
553 (recompute_all_dominators): Remove call to free_dominance_info
554 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
555 for CDI_POST_DOMINATORS.
557 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
559 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
560 over pbb_dim_iter_domain.
562 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
564 * graphite-flattening.c: Fix comments.
566 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
568 * Makefile.in (OBJS-common): Add graphite-flattening.o.
569 (graphite-flattening.o): New rule.
570 * common.opt (floop-flatten): New flag.
571 * doc/invoke.texi (-floop-flatten): Documented.
572 * graphite-flattening.c: New.
573 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
574 * graphite-poly.h (flatten_all_loops): Declared.
575 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
576 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
577 is set, also set flag_graphite.
579 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
581 * graphite-poly.c (cloog_checksum): New.
582 * graphite-poly.h (cloog_checksum): Declared.
584 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
586 * graphite-poly.c (pbb_number_of_iterations): Removed.
587 (pbb_number_of_iterations_at_time): Correctly compute the number
588 of iterations in the transformed loop.
589 * graphite-poly.h (pbb_number_of_iterations): Removed.
591 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
593 * graphite-poly.h (lst_update_scattering_seq): Removed.
594 (lst_update_scattering): Correctly handle outermost loop dewey
597 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
599 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
600 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
601 * graphite-poly.h (lst_niter_for_loop): New.
603 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
605 * graphite-poly.c (apply_poly_transforms): Do not abort when the
606 transform read from disk is not legal. Call fatal_error instead.
608 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
610 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
611 (print_scop_header): Removed. Inlined in the only call place...
612 (print_scop): ... here.
614 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
616 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
618 2010-09-02 Vladimir Kargov <kargov@gmail.com>
620 * graphite-scop-detection.c (is_valid_expr_p, is_valid_loop_p): New.
621 (is_valid_stmt_p): Add data reference and operation-specific checks.
622 (is_valid_bb_p): Change structure, add loop validity check.
623 (is_scop_p): Move the TODO list
624 (find_scops_new): New.
625 (build_scops_new): Move part of functionality to find_scops_new and
626 build_scops. Add necessary steps for successful SCoP construction.
627 (build_scops): Compute SCoP sets for both detection algorithms, choose
628 the resulting one depending on static condition.
630 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
632 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
634 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
636 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
637 (dot_deps_stmt): Same.
638 * graphite-poly.c (dot_lst): Same.
640 2010-08-23 Sebastian Pop <sebastian.pop@amd.com>
642 * graphite-blocking.c (scop_do_strip_mine): Do not call
643 graphite_legal_transform.
644 (scop_do_block): Same.
646 2010-08-20 Vladimir Kargov <kargov@gmail.com>
648 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
651 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
654 * gcc.dg/graphite/id-pr45230.c: New.
656 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
658 * tree-scalar-evolution.c (instantiate_array_ref): New.
659 (instantiate_scev_r): Also handle ARRAY_REFs.
661 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
663 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
664 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
665 RESULT_DECL, and FIELD_DECL. Return false for an
666 SSA_NAME_IS_DEFAULT_DEF.
667 (compute_scalar_evolution_in_loop): Do not further analyze the
668 scalar evolution when no_evolution_in_loop_p returns true.
670 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
672 * tree-chrec.h (evolution_function_is_affine_p): Do not check
673 whether CHREC_LEFT is invariant. A function is affine when
674 CHREC_RIGHT is invariant.
676 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
678 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
680 (rewrite_degenerate_phi): Same.
681 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
683 2010-08-18 Vladimir Kargov <kargov@gmail.com>
685 * graphite-scop-detection.c (graphite_can_represent_scev,
686 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
687 graphite_can_represent_loop): Remove outermost_loop.
689 2010-08-17 Sebastian Pop <sebastian.pop@amd.com>
692 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
693 handle GIMPLE_CALLs with no LHS.
695 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
696 Sebastian Pop <sebastian.pop@amd.com>
698 * gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write.
699 Call remove-build-file to clean up the generated *.graphite files.
701 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
703 * doc/invoke.texi (debugging options): Update documentation.
704 (-floop-interchange): Same.
705 (-flopp-strip-mine): Same.
706 (-floop-block): Same.
707 (-fgraphite-read): Add documentation.
708 (-fgraphite-write): Same.
710 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
712 * toplev.c (process_options): Disable graphite loop optimization
713 options when -fgraphite-read flag is used.
715 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
717 * graphite-poly.c (init_graphite_out_file): New.
718 (init_graphite_in_file): New.
719 (apply_poly_transforms): Updated to enable reading and writing of
721 * toplev.c (init_asm_output): Remove graphite in/out file initialization.
723 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de>
725 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
728 2010-08-12 Sebastian Pop <sebastian.pop@amd.com>
730 * graphite-clast-to-gimple.c (precision_for_value): Adjust
731 computation of precision by 1.
733 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com>
735 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
736 (openscop_read_polyhedron_matrix): New.
737 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
738 (openscop_read_N_int): Same.
739 * graphite-poly.c (openscop_read_N_int): New.
740 (openscop_read_one_int): New.
741 (openscop_read_N_string): New.
742 (openscop_read_one_string): New.
743 (openscop_read_powerset_matrix): New.
744 (graphite_read_transforms): Remove.
745 (graphite_read_scatt): New.
746 (graphite_read_scop_file): New.
747 (apply_poly_transforms): Updated to call graphite_read_scop_file.
749 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
751 * graphite-poly.c: Change include order.
753 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
755 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
756 (cloog_matrix_nrows): New.
758 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
760 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
762 * graphite-poly.c (openscop_print_scattering_function_1): Same.
763 (print_scattering_function_1): Same.
764 (openscop_print_pbb_domain): Same.
765 (openscop_print_scop_context): Same.
766 (print_scop_context): Same.
768 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
770 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
771 (openscop_print_pdr_polyhedron): Print pph.
773 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
775 * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files.
776 * gfortran.dg/graphite/graphite.exp: Same.
777 * gcc.dg/graphite/vect-pr43423.c: New.
779 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
781 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
782 priority signed types.
784 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
786 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
787 to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type.
789 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com>
791 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
792 (openscop_print_polyhedron_matrix): New.
793 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
794 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
795 (openscop_print_pdr_powerset): New.
796 (openscop_print_powerset_matrix): New.
797 (openscop_print_scattering_function_1): New.
798 (print_scattering_function): Add support for scattering names and
800 (graphite_write_transforms): Remove.
801 (apply_poly_transforms): Updated to call print_scop.
802 (print_pdr_access_layout): Updated to support OpenScop format.
804 (openscop_print_pbb_domain): New.
805 (print_pbb_body): Added a parameter to allow indicating that pbb_body is
807 (print_pbb): Updated to call the new print_pbb_body.
808 (openscop_print_scop_context): New.
809 (print_scop_header): New.
810 (print_scop): Updated to call print_scop_header.
811 * graphite-poly.h: Document OpenScop format.
813 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
815 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
816 the case removed in the previous patch, when the only phi argument
817 is defined in the same loop as the phi node itself. Handle it
818 separately from the invariant case by both propagating it outside
819 the region and replacing the phi node with an assign.
821 2010-07-28 Sebastian Pop <sebastian.pop@amd.com>
823 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
824 constant phi nodes with one argument are is_gimple_min_invariant
825 and SSA_NAME_IS_DEFAULT_DEF.
827 * gfortran.dg/graphite/id-22.f: New.
829 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
831 * graphite.c (graphite_initialize): Do not initialize
832 CLooG and initialize the Parma Polyhedra Library
833 manually when using CLOOG_ORG.
834 (graphite_finalize): Do not finalize CLooG and finalize
835 the Parma Polyhedra Library manually when using CLOOG_ORG.
836 * graphite-cloog-compat.h (cloog_initialize): Hide function
837 when using CLOOG_ORG.
838 (cloog_finalize): Same.
840 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
842 * graphite-clast-to-gimple.c (free_scattering): Change
843 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
845 (build_cloog_prog): Same.
846 * graphite-cloog-compat.h (cloog_domain): Removed.
847 (cloog_scattering): New.
848 (cloog_set_domain): Removed.
849 (cloog_set_scattering): New.
850 (cloog_next_domain): Removed.
851 (cloog_next_scattering): New.
852 (cloog_set_next_domain): Removed.
853 (cloog_set_next_scattering): New.
854 (CloogScatteringList): New.
855 (CloogScattering): New.
856 (cloog_scattering_free): New.
857 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
858 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
861 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
863 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
865 (set_cloog_options): Same.
866 (print_clast_stmt): Same.
867 (scop_to_clast): Same.
868 (print_generated_program): Same.
870 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
871 (scop_to_clast): Extend with CloogState.
872 * graphite-cloog-util.c: Include graphite-cloog-compat.h
873 (new_Cloog_Domain_from_ppl_Polyhedron):
874 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
875 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
876 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
877 * graphite-cloog-util.h (build_cloog_prog): Same.
878 * graphite-cloog-copat.h (build_cloog_prog): New.
880 (cloog_state_malloc): New.
881 (cloog_state_free): New.
882 (cloog_loop_malloc): New.
883 (cloog_options_malloc): New.
884 (cloog_statement_alloc): New.
885 (cloog_domain_from_cloog_matrix): New.
886 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
887 (new_Cloog_Domain_from_ppl_Polyhedron): New.
889 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
891 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
892 type of NAME now depends on used CLooG version.
893 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
894 (gcc_type_for_clast_expr): Same.
895 (print_clast_stmt): Replace pprint with clast_pprint.
896 * graphite-cloog-compat.h: Provide compatibility macros for
899 (clast_expr_term): New.
900 (clast_expr_red): New.
901 (clast_expr_bin): New.
904 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
906 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
907 compatible to newer CLooG releases (CLOOG_ORG).
908 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
909 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
910 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
911 (build_cloog_prog) : New.
912 (cloog_program_extract_scalars): New.
913 (cloog_program_scatter): New.
915 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
917 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
918 conditionally (CLOOG_ORG).
919 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
920 (cloog_statement_usr): New.
921 (cloog_domain): Same.
922 (cloog_set_domain): Same.
923 (cloog_next_domain): Same.
924 (cloog_set_next_domain): Same.
925 (cloog_program_nb_scattdims): Same.
926 (cloog_program_set_nb_scattdims): Same.
927 (cloog_program_names): Same.
928 (cloog_program_set_names): Same.
929 (cloog_program_set_context): Same.
930 (cloog_program_set_loop): Same.
931 (cloog_program_blocklist): Same.
932 (cloog_program_set_blocklist): Same.
933 (cloog_program_scaldims): Same.
934 (cloog_program_set_scaldims): Same.
935 (cloog_names_nb_parameters): Same.
936 (cloog_names_set_nb_parameters): Same.
937 (cloog_names_parameters): Same.
938 (cloog_names_set_parameters): Same.
939 (cloog_names_set_nb_iterators): Same.
940 (cloog_names_set_iterators): Same.
941 (cloog_names_set_nb_scattering): Same.
942 (cloog_names_set_scattering): Same.
943 (cloog_statement_set_usr): Same.
944 (cloog_loop_set_next): Same.
945 (cloog_loop_set_domain): Same.
946 (cloog_loop_set_block): Same.
947 (cloog_block_list_next): Same.
948 (cloog_block_list_set_next):
949 (cloog_block_list_set_block): Same.
951 2010-07-27 Sebastian Pop <sebastian.pop@amd.com>
953 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
955 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
956 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
957 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
958 when something has been changed.
959 (rewrite_commutative_reductions_out_of_ssa): Same.
961 * gcc.dg/graphite/id-26.c: New.
963 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
965 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
966 handle the case when def is in the sese region.
967 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
968 for invariant expressions.
969 (rewrite_cross_bb_phi_deps): Removed.
970 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
971 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
972 rewrite_cross_bb_phi_deps.
974 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
976 * graphite-sese-to-poly.c
977 (rewrite_commutative_reductions_out_of_ssa_loop): Call
978 scev_analyzable_p only on is_gimple_reg
980 * gcc.dg/graphite/id-25.c: New.
982 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
984 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
985 (rewrite_close_phi_out_of_ssa): Propagate constant values or
986 parametric expressions outside the scop region.
987 (rewrite_cross_bb_scalar_deps): Same.
988 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
990 * gcc.dg/graphite/run-id-5.c: New.
991 * gcc.dg/graphite/run-id-6.c: New.
992 * gfortran.dg/graphite/id-21.f: New.
994 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
996 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
997 SSA_NAME_DEF_STMT only on SSA_NAMEs.
999 * gcc.dg/graphite/id-24.c: New.
1001 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
1003 * tree-scalar-evolution.c (instantiate_scev_name): Do not
1004 instantiate default definitions.
1006 2010-07-20 Vladimir Kargov <kargov@gmail.com>
1008 * graphite-scop-detection.c (is_valid_stmt_p): New.
1009 (is_valid_bb_p): New.
1011 2010-07-20 Vladimir Kargov <kargov@gmail.com>
1012 Sebastian Pop <sebastian.pop@amd.com>
1014 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
1015 (loop_exits_from_bb_p): New.
1016 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
1017 (loop_exits_from_bb_p): Declared.
1018 * graphite-scop-detection.c (scopdet_basic_block_info): Call
1021 2010-07-20 Vladimir Kargov <kargov@gmail.com>
1023 * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and
1025 (dot_regions_1): New.
1027 * refined-regions.h (dot_regions): Declared.
1028 * Makefile.in (refined-regions.o): Update dependences.
1030 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
1032 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
1033 extra parameter for the region. Call scev_analyzable_p.
1034 (rewrite_reductions_out_of_ssa): Update call to
1035 rewrite_close_phi_out_of_ssa.
1036 (rewrite_cross_bb_phi_deps): Same.
1037 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
1038 parameter for the region. Call scev_analyzable_p.
1039 (rewrite_commutative_reductions_out_of_ssa): Update call to
1040 rewrite_commutative_reductions_out_of_ssa_loop.
1042 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
1044 * gcc.dg/tree-ssa/pr20742.c: New.
1046 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1048 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
1050 * gcc.dg/graphite/id-23.c: New.
1052 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1054 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
1055 SSA scalar phi nodes that can be scev_analyzable_p.
1057 * gfortran.dg/graphite/id-20.f: Adjust testcase.
1059 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1061 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
1062 handle SSA_NAME_IS_DEFAULT_DEF.
1064 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1066 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
1068 * gcc.dg/graphite/pr42729.c: New.
1070 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1072 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
1073 case non close-phi nodes with one argument.
1075 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1077 * sese.h (scev_analyzable_p): Scevs could be expressions without
1078 chrecs and still be scev_analyzable_p.
1080 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1082 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
1084 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1086 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
1087 * cfgloop.h (struct loop): Remove single_iv field.
1088 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
1089 (scop_canonicalize_loops): Removed.
1090 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
1091 over all the loop phi nodes in loop->header.
1092 (build_poly_scop): Remove use of scop_canonicalize_loops.
1094 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1096 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
1099 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1101 * tree-chrec.c (chrec_apply): Should only apply to the specified
1102 variable. Also handle multivariate chains of recurrences that
1103 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
1105 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1107 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
1108 (debug_clast_name_indexes_1): Removed.
1109 (debug_clast_name_indexes): Removed.
1110 (pbb_to_depth_to_oldiv): Removed.
1111 (build_iv_mapping): Replace the use of rename_map with iv_map.
1112 (translate_clast_user): Remove uses of rename_map. Allocate and
1114 (translate_clast_for_loop): Remove uses of rename_map.
1115 (translate_clast_for): Same.
1116 (translate_clast_guard): Same.
1117 (translate_clast): Same.
1119 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
1120 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
1121 * sese.c (set_rename): Now static.
1122 (rename_variables_in_stmt): Removed.
1124 (is_parameter): Removed.
1126 (expand_scalar_variables_call): Removed.
1127 (expand_scalar_variables_ssa_name): Removed.
1128 (expand_scalar_variables_expr): Removed.
1129 (expand_scalar_variables_stmt): Removed.
1130 (expand_scalar_variables): Removed.
1131 (rename_variables): Removed.
1132 (remove_condition): Removed.
1133 (get_true_edge_from_guard_bb): Removed.
1134 (get_false_edge_from_guard_bb): Removed.
1135 (struct igp): Removed.
1136 (default_before_guard): Removed.
1137 (convert_for_phi_arg): Removed.
1138 (add_guard_exit_phis): Removed.
1139 (insert_guard_phis): Removed.
1140 (graphite_copy_stmts_from_block): Now also uses iv_map and a
1141 region. Do not copy conditions. Do not copy induction variables.
1143 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
1144 the translated statement. Use the iv_map for the induction
1146 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
1147 (set_rename): Removed declaration.
1148 (scev_analyzable_p): ...here.
1149 * tree-chrec.c (chrec_apply_map): New.
1150 * tree-chrec.h (chrec_apply_map): Declared.
1152 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
1154 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
1155 insert_loop_close_phis.
1156 * sese.c (name_defined_in_loop_p): Removed.
1157 (expr_defined_in_loop_p): Removed.
1158 (alive_after_loop): Removed.
1159 (close_phi_not_yet_inserted_p): Removed.
1160 (struct alep): Removed.
1161 (add_loop_exit_phis): Removed.
1162 (insert_loop_close_phis): Removed.
1164 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1166 * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped
1168 * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same.
1170 2010-07-07 Sebastian Pop <sebastian.pop@amd.com>
1172 * gfortran.dg/graphite/id-20.f: New.
1174 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1176 * graphite-cloog-util.h: Added cloog.h.
1177 * graphite-blocking.c: Removed cloog.h.
1178 * graphite-dependences.c: Same.
1179 * graphite-interchange.c: Same.
1180 * graphite-poly.c: Same.
1181 * graphite-ppl.c: Same.
1182 * graphite-scop-detection.c: Same.
1183 * graphite-sese-to-poly.c:
1185 Removed graphite-clast-to-gimple.h.
1186 (check_poly_representation): Removed (unused).
1187 * graphite-sese-to-poly.h
1188 (check_poly_representation): Removed (unused).
1190 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1193 (OBJS-common): Added graphite-cloog-util.o.
1194 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1195 (graphite-cloog-util.o): New.
1196 (graphite-ppl.o): Added graphite-cloog-util.h.
1197 * graphite-clast-to-gimple.c:
1198 Added graphite-cloog-util.h to include statements.
1199 * graphite-cloog-util.c: New.
1200 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1201 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1202 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1203 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1204 (ppl_Constrain_System_number_of_constraints): Same.
1205 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1206 (oppose_constraint): Same.
1207 (cloog_matrix_to_ppl_constraint): Same.
1208 (new_Constraint_System_from_Cloog_Matrix): Same.
1209 (insert_constraint_into_matrix): Same. Declared static.
1210 * graphite-cloog-util.h: New.
1211 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1212 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1213 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1214 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1215 (insert_constraint_into_matrix): Same.
1217 Added graphite-cloog-util.h to include statements.
1218 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1219 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1220 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1221 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1222 (insert_constraint_into_matrix): Same.
1223 (ppl_Constrain_System_number_of_constraints): Same.
1224 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1225 (oppose_constraint): Same.
1226 (cloog_matrix_to_ppl_constraint): Same.
1227 (new_Constraint_System_from_Cloog_Matrix): Same.
1229 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1230 graphite-cloog-util.h.
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 (insert_constraint_into_matrix): Removed.
1236 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1238 * graphite-clast-to-gimple.c
1239 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1240 (precision_for_interval): Same.
1241 (gcc_type_for_interval): Same.
1242 (compute_type_for_level): Same.
1243 * graphite-interchange.c
1244 (lst_interchange_profitable_p): Same.
1246 (psct_scattering_dim_for_loop_depth): Same.
1248 (ppl_max_for_le_pointset): Same.
1249 (ppl_min_for_le_pointset): Same.
1251 2010-06-25 Vladimir Kargov <kargov@gmail.com>
1253 * refined-regions.c (bb_index_compare): New.
1254 (get_bbs_in_region): New.
1255 (print_bbs_in_region): New.
1256 (print_refined_region): Add an argument that allows to print
1257 all basic blocks contained in regions.
1258 (debug_refined_region): Update call to print_refined_region.
1259 * refined-regions.h (print_refined_region): Update declaration.
1260 (get_bbs_in_region): Declared.
1261 * graphite-scop-detection.c (build_scops_new): Print the refined
1262 region tree into the Grahite dump file.
1264 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1266 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1267 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1269 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1271 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1272 rewrite_close_phi_out_of_ssa.
1274 * gcc.dg/graphite/id-22.c: New.
1276 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1278 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1280 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1282 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1284 * sese.c (debug_rename_map): Same.
1287 (rename_variables_in_stmt): Same.
1288 (expand_scalar_variables_call): Same.
1289 (expand_scalar_variables_ssa_name): Same.
1290 (expand_scalar_variables_expr): Same.
1291 (expand_scalar_variables_stmt): Same.
1292 (expand_scalar_variables): Same.
1293 (rename_variables): Same.
1294 (graphite_copy_stmts_from_block): Same.
1295 (copy_bb_and_scalar_dependences): Same.
1297 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1299 * graphite-clast-to-gimple.c (copy_renames): Removed.
1300 (translate_clast_for): Do not call copy_renames.
1301 (translate_clast_guard): Same.
1303 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1305 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1306 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1307 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1308 before rewrite_cross_bb_scalar_deps.
1310 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1312 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1313 Early return in when flag_associative_math is not set.
1315 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1317 * gcc.dg/graphite/run-id-2.c: Call abort.
1319 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1321 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1322 of SSA copies on edges except for loop->latch.
1324 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1326 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1327 Split out of rewrite_reductions_out_of_ssa.
1328 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1330 * graphite.c (graphite_transform_loops): Call it.
1332 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1334 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1336 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1338 * passes.c (init_optimization_passes): Add pass_graphite.
1339 Schedule a pass_copy_prop before pass_graphite_transforms.
1340 * timevar.def (TV_GRAPHITE): Declared.
1341 * tree-pass.h (pass_graphite): Declared.
1342 * tree-ssa-loop.c (pass_graphite): New.
1344 * gcc.dg/graphite/id-20.c: New.
1346 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1348 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1349 Remove calls to rename_nb_iterations and rename_sese_parameters.
1350 * graphite-clast-to-gimple.h (gloog): Update declaration.
1351 * graphite.c (graphite_transform_loops): Update call to gloog.
1352 * sese.c (rename_variables_in_expr): Removed.
1353 (rename_nb_iterations): Removed.
1354 (rename_sese_parameters): Removed.
1355 * sese.h (rename_nb_iterations): Removed.
1356 (rename_sese_parameters): Removed.
1358 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1360 * graphite-clast-to-gimple.c (gloog): Remove call to
1361 sese_adjust_liveout_phis.
1362 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1363 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1364 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1365 rewrite_phi_out_of_ssa.
1366 * sese.c (get_vdef_before_sese): Removed.
1367 (sese_adjust_vphi): Removed.
1368 (sese_adjust_liveout_phis): Removed.
1369 * sese.h (sese_adjust_liveout_phis): Removed.
1371 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1373 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1374 argument for the place after which to insert the out of SSA copy.
1375 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1376 (rewrite_phi_out_of_ssa): Same.
1377 (rewrite_cross_bb_scalar_deps): Same.
1378 (insert_copyout): Removed.
1379 (insert_copyin): Removed.
1380 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1381 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1384 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1386 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1387 (rewrite_reductions_out_of_ssa): Same.
1388 (rewrite_commutative_reductions_out_of_ssa): Same.
1389 (build_poly_scop): Do not call these functions.
1390 * graphite-sese-to-poly.h (build_poly_scop): Declared.
1391 (rewrite_reductions_out_of_ssa): Declared.
1392 (rewrite_commutative_reductions_out_of_ssa): Declared.
1393 * graphite.c (graphite_transform_loops): Call on every scop
1394 rewrite_commutative_reductions_out_of_ssa before calling
1395 rewrite_reductions_out_of_ssa and build_scop_bbs.
1397 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1399 * graphite-dependences.c (dot_deps): Make system call to dotty run
1401 (dot_deps_stmt): Same.
1402 * graphite-poly.c (dot_lst): Same.
1404 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1406 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1407 old_type in parameter.
1408 (gcc_type_for_value): Update call to gcc_type_for_interval.
1409 (compute_type_for_level_1): Renamed compute_type_for_level.
1410 Update call to gcc_type_for_interval.
1412 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1414 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
1415 the scev analysis when the variable is not used outside the loop
1416 in a close phi node: call compute_overall_effect_of_inner_loop.
1418 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1420 * graphite-sese-to-poly.c (single_pred_cond): Renamed
1421 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
1422 (build_sese_conditions_before): Renamed call to single_pred_cond.
1423 (build_sese_conditions_after): Same.
1425 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1427 * graphite-poly.h: Fix comments and indentation.
1428 * graphite-sese-to-poly.c: Same.
1429 (build_sese_conditions_before): Compute stmt and gbb only when needed.
1430 * tree-chrec.c: Fix comments and indentation.
1431 (tree-ssa-loop-niter.c): Same.
1433 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de>
1435 * refined-regions.c (create_region): Only initialize the region.
1436 (find_regions_with_entry): Initialize parent relation and bbmap
1438 (build_regions_tree): Set outermost_region to region instead of
1440 (calculate_region_tree): Remove unneeded parameters.
1442 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de>
1444 * graphite-scop-detection.c (is_scop_p): New.
1445 (build_scops_new): New. A skeleton for the new scop detection.
1446 (build_scops_old): Renamed from build_scops.
1447 (build_scops): New version. Call the new and the old scop
1450 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de>
1451 Antoniu Pop <antoniu.pop@gmail.com>
1453 * Makefile.in (OBJS-common): Add refined-regions.o.
1454 (refined-regions.o): New.
1455 (graphite-scop-detection.o): Use refined-regions.h.
1456 * graphite-scop-detection.c: Include refined-regions.h
1457 (build_scops): Also build the refined region tree.
1458 * refined-regions.c: New. Adds an algorithm to detect refined
1460 (print_refined_region): New.
1461 (debug_refined_region): New.
1462 (refined_region_contains_bb_p): New.
1463 (refined_region_contains_region_p): New.
1464 (is_common_df): New.
1465 (struct find_regions_global_data): New.
1467 (typedef struct bb_bb_def): New.
1468 (new_bb_bb_def): New.
1469 (bb_bb_map_hash): New.
1470 (eq_bb_bb_map): New.
1473 (new_bb_reg_def): New.
1474 (bb_reg_map_hash): New.
1475 (eq_bb_reg_map): New.
1476 (find_new_region): New.
1477 (insert_new_reg): New.
1478 (insert_new_bb): New.
1479 (insert_shortcut): New.
1480 (get_next_postdom): New.
1481 (create_region): New.
1482 (find_regions_with_entry): New.
1483 (find_regions_adc): New.
1484 (find_regions): New.
1485 (get_topmost_parent): New.
1486 (build_regions_tree): New.
1487 (calculate_region_tree): New.
1488 (free_region_tree): New.
1489 * refined-regions.h: New.
1490 (struct refined_region): New.
1491 (calculate_region_tree): New.
1492 (free_region_tree): New.
1493 (refined_region_contains_bb_p): New.
1494 (refined_region_contains_region_p): New.
1495 (print_refined_region): New.
1496 (debug_refined_region): New.
1498 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1500 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1503 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
1505 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix
1506 type of integer_one_node for fold_build of POINTER_PLUS_EXPR.
1508 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
1510 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1511 phi_arg_in_outermost_loop.
1512 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1513 (remove_invariant_phi): Same.
1515 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1517 * graphite-blocking.c
1518 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1519 * graphite-clast-to-gimple.c
1520 (clast_to_gcc_expression): Same.
1521 (precision_for_value): Same.
1522 (precision_for_interval): Same.
1523 (gcc_type_for_interval): Same.
1524 (graphite_create_new_guard): Same.
1525 (compute_bounds_for_level): Same.
1526 (graphite_create_new_loop_guard): Same.
1527 * graphite-interchange.c
1528 (build_linearized_memory_access): Same.
1529 (pdr_stride_in_loop): Same.
1530 (memory_strides_in_loop_1): Same.
1531 (memory_strides_in_loop): Same.
1532 (extend_scattering): Same.
1533 (psct_scattering_dim_for_loop_depth): Same.
1534 (pbb_number_of_iterations): Same.
1536 (debug_iteration_domains): Same.
1538 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1539 (ppl_set_inhomogeneous_gmp): Same.
1540 (ppl_strip_loop): Same.
1541 (ppl_lexico_compare_linear_expressions): Same.
1542 (ppl_read_polyhedron_matrix): Same.
1543 (ppl_max_for_le_pointset): Same.
1545 (ppl_read_polyhedron_matrix): Same.
1546 (tree_int_to_gmp): Same.
1547 (gmp_cst_to_tree): Same.
1548 (ppl_set_inhomogeneous): Same.
1549 (ppl_set_inhomogeneous_tree): Same.
1550 (ppl_set_coef): Same.
1551 (ppl_set_coef_tree): Same.
1552 * graphite-sese-to-poly.c
1553 (build_pbb_scattering_polyhedrons): Same.
1554 (build_scop_scattering): Same.
1555 (scan_tree_for_params_right_scev): Same.
1556 (scan_tree_for_params): Same.
1557 (find_params_in_bb): Same.
1558 (find_scop_parameters): Same.
1559 (add_upper_bounds_from_estimated_nit): Same.
1560 (build_loop_iteration_domains): Same.
1561 (add_condition_to_domain): Same.
1562 (pdr_add_memory_accesses): Same.
1564 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1566 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1567 CLooG's value_* macros to their respective mpz_* counterparts.
1568 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1569 (graphite_create_new_loop_guard): Same.
1570 * graphite-interchange.c (build_linearized_memory_access): Same.
1571 (pdr_stride_in_loop): Same.
1572 (memory_strides_in_loop_1): Same.
1573 (1st_interchange_profitable_p): Same.
1574 * graphite-poly.c (extend_scattering): Same.
1575 (psct_scattering_dim_for_loop_depth): Same.
1576 (pbb_number_of_iterations): Same.
1577 (pbb_number_of_iterations_at_time): Same.
1578 * graphite-poly.h (new_1st_loop): Same.
1579 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1580 (oppose_constraint): Same.
1581 (insert_constraint_into_matrix): Same.
1582 (ppl_set_inhomogeneous_gmp): Same.
1583 (ppl_set_coef_gmp): Same.
1584 (ppl_strip_loop): Same.
1585 (ppl_lexico_compare_linear_expressions): Same.
1586 (ppl_max_for_le_pointset): Same.
1587 (ppl_min_for_le_pointset): Same.
1588 (ppl_build_realtion): Same.
1589 * graphite-ppl.h (gmp_cst_to_tree): Same.
1590 (ppl_set_inhomogeneous): Same.
1591 (ppl_set_inhomogeneous_tree): Same.
1592 (ppl_set_coef): Same.
1593 (ppl_set_coef_tree): Same.
1594 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1595 (build_scop_scattering): Same.
1596 (add_value_to_dim): Same.
1597 (scan_tree_for_params_right_scev): Same.
1598 (scan_tree_for_params_int): Same.
1599 (scan_tree_for_params): Same.
1600 (find_params_in_bb): Same.
1601 (find_scop_parameters): Same.
1602 (add_upper_bounds_from_estimated_nit): Same.
1603 (build_loop_iteration_domains): Same.
1604 (create_linear_expr_from_tree): Same.
1605 (add_condition_to_domain): Same.
1606 (pdr_add_memory_accesses): Same.
1608 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1611 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1612 lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
1613 When converting an unsigned type to signed, double its precision.
1614 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
1615 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
1616 (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
1618 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1621 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1622 build_nonstandard_integer_type.
1623 (gcc_type_for_interval): Same.
1625 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1628 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1629 POINTER_PLUS_EXPR for pointer types.
1631 * gcc.dg/graphite/id-19.c: New.
1633 2010-04-04 Sebastian Pop <sebastian.pop@amd.com>
1636 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
1637 * graphite-clast-to-gimple.c: Include langhooks.h.
1638 (max_signed_precision_type): New.
1639 (max_precision_type): Takes two types as arguments.
1640 (precision_for_value): New.
1641 (precision_for_interval): New.
1642 (gcc_type_for_interval): New.
1643 (gcc_type_for_value): New.
1644 (gcc_type_for_clast_term): New.
1645 (gcc_type_for_clast_red): New.
1646 (gcc_type_for_clast_bin): New.
1647 (gcc_type_for_clast_expr): Split up into several functions.
1648 (gcc_type_for_clast_eq): Rewritten.
1649 (compute_bounds_for_level): New.
1650 (compute_type_for_level_1): New.
1651 (compute_type_for_level): New.
1652 (gcc_type_for_cloog_iv): Removed.
1653 (gcc_type_for_iv_of_clast_loop): Rewritten.
1654 (graphite_create_new_loop): Compute the lower and upper bound types
1655 with gcc_type_for_clast_expr.
1656 (graphite_create_new_loop_guard): Same.
1657 (find_cloog_iv_in_expr): Removed.
1658 (compute_cloog_iv_types_1): Removed.
1659 (compute_cloog_iv_types): Removed.
1660 (gloog): Do not call compute_cloog_iv_types.
1661 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
1663 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
1664 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
1665 (GBB_CLOOG_IV_TYPES): Removed.
1667 * gcc.dg/graphite/run-id-pr42644.c: Call abort.
1669 2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
1671 Reverted this commit: as at this point the loop closed SSA form
1672 is under a canonical form respecting the single argument condition.
1673 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1674 close phi nodes may have more than one argument.
1676 2010-04-01 Sebastian Pop <sebastian.pop@amd.com>
1678 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
1679 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
1680 (detect_commutative_reduction): Same.
1682 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
1684 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1685 close phi nodes may have more than one argument.
1687 2010-03-30 Richard Guenther <rguenther@suse.de>
1688 Zdenek Dvorak <ook@ucw.cz>
1689 Sebastian Pop <sebastian.pop@amd.com>
1692 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
1693 with multiple arguments.
1694 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
1696 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1698 * graphite-dependences.c (print_pddr): Call print_pdr with an
1700 * graphite-poly.c (debug_pdr): Add an extra argument for the
1703 (print_pbb_domain): Same.
1705 (print_scop_context): Same.
1707 (print_cloog): Same.
1708 (debug_pbb_domain): Same.
1712 (debug_scop_context): Same.
1714 (debug_cloog): Same.
1715 (print_scop_params): Same.
1716 (debug_scop_params): Same.
1717 (print_iteration_domain): Same.
1718 (print_iteration_domains): Same.
1719 (debug_iteration_domain): Same.
1720 (debug_iteration_domains): Same.
1721 (print_scattering_function): Same.
1722 (print_scattering_functions): Same.
1723 (debug_scattering_function): Same.
1724 (debug_scattering_functions): Same.
1725 * graphite-poly.h (debug_pdr): Update declaration.
1727 (print_pbb_domain): Same.
1729 (print_scop_context): Same.
1731 (print_cloog): Same.
1732 (debug_pbb_domain): Same.
1736 (debug_scop_context): Same.
1738 (debug_cloog): Same.
1739 (print_scop_params): Same.
1740 (debug_scop_params): Same.
1741 (print_iteration_domain): Same.
1742 (print_iteration_domains): Same.
1743 (debug_iteration_domain): Same.
1744 (debug_iteration_domains): Same.
1745 (print_scattering_function): Same.
1746 (print_scattering_functions): Same.
1747 (debug_scattering_function): Same.
1748 (debug_scattering_functions): Same.
1750 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1752 * graphite-poly.c (print_scattering_function_1): New.
1753 (print_scattering_function): Call it.
1754 (print_scop_params): Remove spaces at the end of lines.
1757 * graphite-poly.h (print_cloog): Declared.
1758 (debug_cloog): Declared.
1760 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1762 * tree-ssa-copy.c: Revert this previous change:
1763 (init_copy_prop): Loop closed phi nodes cancontain more than one
1765 (execute_copy_prop): Revert the previous change: do not call
1766 rewrite_into_loop_closed_ssa.
1768 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1769 Richard Guenther <rguenther@suse.de>
1772 * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can
1773 contain more than one argument.
1774 (execute_copy_prop): Revert the previous change: do not call
1775 rewrite_into_loop_closed_ssa.
1777 * gcc.dg/graphite/id-pr43464.c: Remove compile warning.
1778 * gcc.dg/graphite/id-pr43464-1.c: New.
1780 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1783 * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa
1784 and verify_loop_closed_ssa when copy prop is executed in the LNO.
1786 * gcc.dg/graphite/id-pr43464.c: New.
1788 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1790 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
1792 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
1793 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
1794 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
1795 to switch between adding the IV bump in loop->latch or in loop->header.
1797 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1799 * passes.c (init_optimization_passes): Add pass_copy_prop
1802 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1804 * graphite-poly.c (print_scattering_function): Pretty print following
1807 (print_pbb_domain): Same.
1808 (dump_gbb_cases): Same.
1809 (dump_gbb_conditions): Same.
1812 (print_scop_params): Same.
1813 (print_scop_context): Same.
1815 (print_pbb_body): New.
1816 (lst_indent_to): New.
1817 (print_lst): Start new lines with a #.
1818 * graphite-poly.h (pbb_bb): New.
1819 (pbb_index): Use pbb_bb.
1820 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
1822 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
1824 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1827 * gcc.dg/graphite/id-pr43351.c
1829 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1832 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
1833 call insert_out_of_ssa_copy for default definitions.
1834 * gfortran.dg/graphite/id-pr43354.f: New.
1836 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1839 * gfortran.dg/graphite/pr43349.f: New.
1841 2010-03-11 Sebastian Pop <sebastian.pop@amd.com>
1843 * graphite-clast-to-gimple.c (my_long_long): Defined.
1844 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
1845 * graphite-sese-to-poly.c (my_long_long): Defined.
1846 (scop_ivs_can_be_represented): Use it.
1848 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1850 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
1851 graphite-max-bbs-per-function, and loop-block-tile-size.
1852 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
1854 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
1856 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1858 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
1859 forward declaration.
1860 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
1861 (add_upper_bounds_from_estimated_nit): New.
1862 (build_loop_iteration_domains): Use it.
1864 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1866 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
1868 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1871 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
1872 should be an INTEGER_CST. Also handle CASE_CONVERT.
1873 * gcc.dg/graphite/pr43306.c: New.
1875 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1877 * graphite.c (graphite_initialize): To bound the number of bbs per
1878 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
1879 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
1880 * doc/invoke.texi: Document it.
1882 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1884 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
1885 * graphite-sese-to-poly.h (build_poly_scop): Same.
1887 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1889 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
1890 the number of parameters in the scop. Use as an upper bound
1891 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
1892 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
1893 * doc/invoke.texi: Document it.
1895 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1897 * graphite-sese-to-poly.c (add_param_constraints): Use
1898 lower_bound_in_type and upper_bound_in_type.
1900 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1902 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
1903 instead of unsigned_type_node.
1905 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1906 Reza Yazdani <reza.yazdani@amd.com>
1909 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
1910 on pointer type parameters.
1912 * gcc.dg/graphite/run-id-4.c: New.
1914 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1917 * gcc.dg/graphite/run-id-3.c: New.
1919 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
1920 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1922 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
1923 handle conversions from pointer to integers.
1924 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
1925 induction variable, to be able to work with code generated by CLooG.
1926 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
1927 (build_poly_scop): Bail out if we cannot codegen a loop.
1929 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1931 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
1932 code generation with gloog_error.
1934 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1936 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
1937 Call fold_convert on all the returned values.
1938 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
1939 the type of the resulting expression.
1941 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1943 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
1944 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
1945 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
1947 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1949 * graphite-dependences.c (map_into_dep_poly): Removed.
1950 (dependence_polyhedron_1): Use combine_context_id_scat.
1952 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1954 * graphite-poly.h (struct poly_scattering): Add layout documentation.
1955 (struct poly_bb): Same.
1956 (combine_context_id_scat): New.
1958 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
1961 * sese.c (name_defined_in_loop_p): Return false for default
1964 * gcc.dg/graphite/pr42326.c: New.
1966 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1968 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
1969 and clean up the logic.
1971 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1973 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
1976 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1979 * graphite-scop-detection.c (create_single_exit_edge): Move
1980 the call to find_single_exit_edge to....
1981 (create_sese_edges): ...here. Don't handle multiple edges
1982 exiting the function.
1983 (build_graphite_scops): Don't handle multiple edges
1984 exiting the function.
1986 * gcc.dg/graphite/pr43083.c: New.
1988 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1991 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
1992 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
1994 * gfortran.dg/graphite/pr43097.f: New.
1996 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1997 Manuel López-Ibáñez <manu@gcc.gnu.org>
2000 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
2002 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
2005 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
2007 * g++.dg/graphite/pr43026.C: New.
2009 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
2011 * Merge from mainline (154736:156693).
2013 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
2016 * gcc.dg/graphite/pr43012.c: New.
2018 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
2020 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
2021 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
2023 * g++.dg/graphite/pr42930.C: New.
2025 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
2028 * graphite-scop-detection.c (graphite_can_represent_scev): Call
2029 graphite_can_represent_init for MULT_EXPR.
2031 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
2035 * graphite-sese-to-poly.c (remove_phi): New.
2036 (translate_scalar_reduction_to_array): Call remove_phi.
2038 * gcc.dg/graphite/pr42530.c: New.
2039 * gcc.dg/graphite/pr42914.c: New.
2041 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
2044 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
2045 * graphite-clast-to-gimple.h (gloog): Update declaration.
2046 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
2047 * graphite-poly.h (struct poly_bb): Add missing comments.
2048 (struct scop): Add poly_scop_p field.
2050 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
2051 * graphite.c (graphite_transform_loops): Build the polyhedral
2052 representation for each scop before code generation.
2053 * sese.c (rename_variables_in_operand): Removed.
2054 (rename_variables_in_expr): Return the renamed expression.
2055 (rename_sese_parameters): New.
2056 * sese.h (rename_sese_parameters): Declared.
2058 * gcc.dg/graphite/pr42771.c: New.
2060 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
2062 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
2064 * gcc.dg/graphite/block-1.c: Same.
2065 * gcc.dg/graphite/block-3.c: Same.
2066 * gcc.dg/graphite/block-4.c: Same.
2067 * gcc.dg/graphite/block-5.c: Same.
2068 * gcc.dg/graphite/block-6.c: Same.
2069 * gcc.dg/graphite/block-7.c: Same.
2070 * gcc.dg/graphite/interchange-0.c: Same.
2071 * gcc.dg/graphite/interchange-1.c: Same.
2072 * gcc.dg/graphite/interchange-10.c: Same.
2073 * gcc.dg/graphite/interchange-11.c: Same.
2074 * gcc.dg/graphite/interchange-12.c: Same.
2075 * gcc.dg/graphite/interchange-2.c: Same.
2076 * gcc.dg/graphite/interchange-3.c: Same.
2077 * gcc.dg/graphite/interchange-4.c: Same.
2078 * gcc.dg/graphite/interchange-5.c: Same.
2079 * gcc.dg/graphite/interchange-6.c: Same.
2080 * gcc.dg/graphite/interchange-7.c: Same.
2081 * gcc.dg/graphite/interchange-8.c: Same.
2082 * gcc.dg/graphite/interchange-9.c: Same.
2083 * gcc.dg/graphite/interchange-mvt.c: Same.
2085 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
2087 * gfortran.dg/graphite/id-19.f: New.
2088 * gfortran.dg/graphite/pr14741.f90: New.
2089 * gfortran.dg/graphite/pr41924.f90: New.
2090 * gfortran.dg/graphite/run-id-2.f90: New.
2092 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
2095 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
2096 to unknown_dependence.
2097 (graphite_legal_transform_dr): Handle the unknown_dependence.
2098 (graphite_carried_dependence_level_k): Same.
2100 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
2102 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
2104 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
2105 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2108 * graphite-dependences.c (build_lexicographical_constraint): Return
2109 a union of dependence polyhedra.
2110 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
2112 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
2113 * gcc.dg/graphite/block-4.c: Same.
2114 * gcc.dg/graphite/block-7.c: Same.
2115 * gcc.dg/graphite/interchange-12.c: Same.
2116 * gcc.dg/graphite/interchange-mvt.c: Same.
2117 * gfortran.dg/graphite/interchange-1.f: XFAILed.
2118 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
2119 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
2121 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
2123 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
2124 the execution check to FAIL. This testcase is miscompiled by Graphite
2125 and the check should be re-enabled.
2126 * gcc.dg/graphite/interchange-mvt.c: Same.
2127 * gcc.dg/graphite/block-0.c: Same.
2128 * gcc.dg/graphite/block-4.c: Same.
2129 * gcc.dg/graphite/block-7.c: Same.
2131 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
2133 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
2134 * gcc.dg/graphite/scop-0.c: Fix spaces.
2135 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
2136 * gfortran.dg/graphite/block-2.f: Same.
2137 * gfortran.dg/graphite/block-3.f90: Same.
2138 * gfortran.dg/graphite/block-4.f90: Same.
2139 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
2140 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
2142 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
2144 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
2145 PDDR_ORIGINAL_SCATTERING_P.
2146 (pddr_is_empty): Rewritten.
2147 (print_dependence_polyhedron_layout): New.
2150 (build_alias_set_powerset): Moved up.
2151 (poly_drs_may_alias_p): Moved up.
2152 (lexicographically_gt_p): Removed.
2153 (build_lexicographically_gt_constraint): Renamed
2154 build_lexicographical_constraint, reimplemented.
2155 (dependence_polyhedron_1): Simplified parameters.
2156 (dependence_polyhedron): Same. Keep along empty PDDRs
2157 to make efficient use of the cache.
2158 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
2159 (graphite_legal_transform_dr): Rewritten.
2160 (graphite_legal_transform_bb): Pass fewer arguments to
2161 graphite_legal_transform_dr.
2162 (graphite_carried_dependence_level_k): Simplified implementation.
2163 (dot_original_deps_stmt_1): Call dependence_polyhedron.
2164 (dot_transformed_deps_stmt_1): Same.
2165 (dot_original_deps): Same.
2166 (dot_transformed_deps): Same.
2167 * graphite-dependences.h (struct poly_ddr): Added a new field
2168 original_scattering_p.
2169 (PDDR_ORIGINAL_SCATTERING_P): New.
2170 (print_pddr): Declared.
2171 (debug_pddr): Declared.
2172 * graphite-ppl.c: Clarify comment.
2173 * sese.h (print_gimple_bb): Removed unused declaration.
2176 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
2178 * g++.dg/graphite/graphite.exp: Rewritten.
2179 * gcc.dg/graphite/graphite.exp: Rewritten.
2180 * gfortran.dg/graphite/graphite.exp: Rewritten.
2181 * gcc.dg/graphite/block-0.c: Added runtime test.
2182 * gcc.dg/graphite/block-1.c: Same.
2183 * gcc.dg/graphite/block-3.c: Same.
2184 * gcc.dg/graphite/block-4.c: Same.
2185 * gcc.dg/graphite/block-5.c: Same.
2186 * gcc.dg/graphite/block-6.c: Same.
2187 * gcc.dg/graphite/block-7.c: Same.
2188 * gcc.dg/graphite/interchange-0.c: Same.
2189 * gcc.dg/graphite/interchange-1.c: Same.
2190 * gcc.dg/graphite/interchange-10.c: Same.
2191 * gcc.dg/graphite/interchange-11.c: Same.
2192 * gcc.dg/graphite/interchange-12.c: Same.
2193 * gcc.dg/graphite/interchange-2.c: Same.
2194 * gcc.dg/graphite/interchange-3.c: Same.
2195 * gcc.dg/graphite/interchange-4.c: Same.
2196 * gcc.dg/graphite/interchange-5.c: Same.
2197 * gcc.dg/graphite/interchange-6.c: Same.
2198 * gcc.dg/graphite/interchange-7.c: Same.
2199 * gcc.dg/graphite/interchange-8.c: Same.
2200 * gcc.dg/graphite/interchange-9.c: Same.
2201 * gcc.dg/graphite/interchange-mvt.c: Same.
2202 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
2204 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2206 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
2209 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2211 * common.opt: Add -fgraphite-cloog-opts.
2212 * graphite-clast-to-gimple.c (set_cloog_options): Same.
2213 * opts.c (decode_options): Same.
2215 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2217 * gcc.dg/graphite/id-17.c: New.
2218 * gcc.dg/graphite/pr41888.c: New.
2219 * gcc.dg/graphite/scop-22.c: New.
2220 * gfortran.dg/graphite/pr40982.f90: New.
2222 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2224 * graphite-dependences.c: Clarify comments.
2225 (build_pddr): Add an extra parameter direction.
2226 (graphite_legal_transform_dr): Use build_pddr.
2227 (dot_original_deps_stmt_1): Update use of build_pddr.
2228 (dot_transformed_deps_stmt_1): Same.
2229 (dot_original_deps): Same.
2230 (dot_transformed_deps): Same.
2232 * gcc.dg/graphite/interchange-12.c: New.
2233 * gcc.dg/graphite/block-7.c: New.
2235 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2237 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
2238 (pddr_transformed_scattering): Removed.
2239 (graphite_legal_transform_dr): Use build_pddr.
2240 (dot_original_deps_stmt_1): Same.
2241 (dot_transformed_deps_stmt_1): Same.
2242 (dot_original_deps): Same.
2243 (dot_transformed_deps): Same.
2245 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2247 * graphite-dependences.c (lexicographically_gt_p): Add comments.
2248 (build_lexicographically_gt_constraint): Same.
2249 (dependence_polyhedron_1): Same.
2250 (dependence_polyhedron): Same.
2252 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2254 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
2255 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
2256 (lexicographically_gt_p): Change type of direction to int.
2257 (build_lexicographically_gt_constraint): Same.
2258 (dependence_polyhedron_1): Same.
2259 (dependence_polyhedron): Same.
2260 (pddr_original_scattering): Use integers for direction.
2261 (pddr_transformed_scattering): Same.
2262 (graphite_legal_transform_dr): Same.
2263 (graphite_carried_dependence_level_k): Same.
2265 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2267 * graphite-dependences.c (build_pairwise_constraint): Renamed
2268 ppl_build_relation. Moved...
2269 (dr_equality_constraints): Use ppl_build_relation.
2270 (build_pairwise_scheduling_equality): Same.
2271 (build_pairwise_scheduling_inequality): Same.
2272 * graphite-ppl.c (ppl_build_relation): ...here.
2273 * graphite-ppl.h (ppl_build_relation): Declared.
2275 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
2278 * graphite-clast-to-gimple.c (gloog_error): New static variable.
2279 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
2280 Set gloog_error when such an expression failed to be built.
2281 (translate_clast): Early return when gloog_error is set.
2282 (gloog): Clear gloog_error. When gloog_error is set, call
2283 set_ifsese_condition to enable the original code. Return the status
2284 of the code generation based on gloog_error.
2285 * sese.c (set_ifsese_condition): New.
2286 * sese.h (set_ifsese_condition): Declared.
2288 * g++.dg/graphite/pr42681.C: New.
2290 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
2293 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
2294 rename_nb_iterations.
2295 * sese.c (rename_variables_in_operand): New.
2296 (rename_variables_in_expr): New.
2297 (rename_nb_iterations): New.
2298 (sese_adjust_liveout_phis): Update the rename_map.
2299 * sese.h (rename_nb_iterations): Declared.
2300 * tree-scalar-evolution.c (scev_reset_htab): New.
2301 (scev_reset): Call scev_reset_htab.
2302 * tree-scalar-evolution.h (scev_reset_htab): Declared.
2304 * gfortran.dg/graphite/pr42732.f: New.
2306 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
2309 * graphite-clast-to-gimple.c: Fix formatting.
2310 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
2311 (expr_defined_in_loop_p): New.
2312 (add_loop_exit_phis): Also handle full expressions: remove from
2313 the rename_map the expressions defined in the loop that we're closing.
2315 * gfortran.dg/graphite/pr42393-1.f90: New.
2316 * gfortran.dg/graphite/pr42393.f90: Add new flags
2317 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
2318 make this testcase useful in the Graphite branch.
2320 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
2322 * graphite-scop-detection.c (exclude_component_ref): Removed.
2323 (is_simple_operand): Removed.
2324 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
2326 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2329 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
2330 the array indexing of ADDR_EXPRs.
2332 * gcc.dg/graphite/pr42221.c: New.
2334 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2337 * graphite.c (graphite_finalize): Call scev_reset.
2338 (graphite_transform_loops): Do not call scev_reset between the code
2339 generation of scops.
2341 * gcc.dg/graphite/pr42521.c: New.
2343 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2345 * graphite-interchange.c (memory_stride_in_loop): Renamed
2347 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
2348 (memory_strides_in_loop): Memoize the memory strides per loop.
2349 (lst_interchange_profitable_p): Do not initialize to zero the memory
2351 * graphite-poly.h (struct lst): Add a field memory_strides.
2352 (LST_LOOP_MEMORY_STRIDES): New.
2353 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
2354 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
2356 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2358 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
2359 memory_strides_in_loop. Gather memory strides on a whole loop.
2360 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
2361 (lst_interchange_profitable_p): Removed.
2362 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
2364 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2366 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2367 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
2368 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
2369 Remove context_loop and level.
2371 2010-01-07 Richard Guenther <rguenther@suse.de>
2373 PR tree-optimization/42641
2374 * sese.c (rename_map_elt_info): Use the SSA name version, do
2377 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
2379 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
2380 blocked" only when both the strip mine and the interchange have
2383 * gcc.dg/graphite/block-2.c: Removed.
2384 * gcc.dg/graphite/block-3.c: Add scan pattern.
2385 * gcc.dg/graphite/block-4.c: Same.
2386 * gcc.dg/graphite/block-5.c: Same.
2387 * gcc.dg/graphite/block-6.c: Same.
2389 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
2391 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
2392 before allocating a new one.
2393 (copy_renames): Check that slot is not NULL.
2394 (mark_bb_with_pbb): Same.
2395 (compute_cloog_iv_types_1): Same.
2396 * graphite-interchange.c (lst_perfect_nestify): Free the before,
2397 nest, and after LSTs.
2398 (lst_try_interchange_loops): Same.
2400 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
2403 * graphite-interchange.c (lst_try_interchange_loops): Do not return
2404 the before, nest, and after LSTs.
2405 (lst_try_interchange): Removed.
2406 (lst_interchange_select_inner): Do not iterate over the LSTs if they
2408 (lst_interchange_select_outer): Apply interchange on the outer loop
2409 until there are no more changes in the inner loops.
2411 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2413 Revert patch fixing PR middle-end/42221.
2415 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2418 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
2421 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
2423 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2426 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
2427 that contain only one statement.
2429 * gfortran.dg/graphite/pr42180.f90: New.
2431 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2434 * gfortran.dg/graphite/pr42393.f90: New.
2436 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2439 * gfortran.dg/graphite/pr42186.f90: New.
2441 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2444 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
2445 Insert the reduction copy in the same block as the phi node.
2446 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
2448 * gcc.dg/graphite/pr42205-1.c: New.
2449 * gcc.dg/graphite/pr42205-2.c: New.
2451 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2454 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
2455 the array indexing of ADDR_EXPRs.
2457 * gcc.dg/graphite/pr42221.c: New.
2459 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2463 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
2464 index. Call lst_interchange_select_inner only once.
2465 (lst_interchange_select_inner): Update use of lst_try_interchange.
2466 (lst_interchange_select_outer): Update.
2468 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
2472 * graphite-interchange.c (lst_try_interchange): Do not increment the
2473 the OUTER index when there is no AFTER kernel. Do not increment the
2474 OUTER index for after processing the AFTER kernel.
2475 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
2476 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
2477 index. Do not pass to lst_interchange_select_inner the OUTER index.
2478 (scop_do_interchange): Update use of lst_interchange_select_outer.
2480 * gfortran.dg/graphite/graphite.exp
2481 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
2482 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
2483 the graphite dump file.
2484 * gfortran.dg/graphite/interchange-2.f: Same.
2485 * gfortran.dg/graphite/pr42334-1.f: New.
2487 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
2491 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
2493 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
2494 (lst_try_interchange): Reimplemented.
2495 (lst_interchange_select_inner): Same.
2496 (lst_do_interchange): Renamed lst_interchange_select_outer.
2498 (scop_do_interchange): Update use of lst_interchange_select_outer.
2500 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
2501 * gcc.dg/graphite/block-0.c: Un-XFAILed.
2502 * gcc.dg/graphite/pr42211.c: New.
2503 * gfortran.dg/graphite/pr42334.f90: New.
2505 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
2508 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
2509 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
2511 * gfortran.dg/graphite/pr42181.f90: New.
2513 2009-12-12 Sebastian Pop <sebpop@gmail.com>
2516 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
2517 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
2518 (detect_commutative_reduction_arg): Simplified.
2519 (detect_commutative_reduction): Early return when the argument of
2520 the close phi is not of an SSA_NAME.
2522 * gcc.dg/graphite/pr42284.c: New.
2524 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
2526 * dbgcnt.def (graphite_scop): New counter.
2527 * graphite.c: Include dbgcnt.h
2528 (graphite_transform_loops): Use new counter to limit transformations.
2530 2009-12-08 Sebastian Pop <sebpop@gmail.com>
2533 * graphite-scop-detection.c (graphite_can_represent_init): Also
2534 handle more complex MULT_EXPRs containing parameters by recursion
2537 * gfortran.dg/graphite/pr42285.f90: New.
2539 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
2541 * g++.dg/graphite/pr42130.C: Fix type.
2543 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
2545 * g++.dg/graphite/pr42130.C: Correct testcase.
2547 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
2549 * Merge from mainline (154493:154734).
2551 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
2553 * Merge from mainline (151362:154491).
2555 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
2557 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
2558 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
2560 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2563 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
2564 translate_clast_for_loop): New.
2565 (translate_clast_for): Add a condition around the loop, to do not
2566 execute loops with zero iterations.
2567 * g++.dg/graphite/pr42130.C: New.
2568 * gcc.dg/graphite/pr35356-2.c: Adapt.
2570 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2572 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
2573 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
2574 Remove context_loop and level.
2576 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2578 * graphite-clast-to-gimple.c (translate_clast_user,
2579 translate_clast_for, translate_clast_guard): Simplify and move common
2580 elements to translate_clast().
2581 (translate_clast): Simplify and get common elements.
2583 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2585 * graphite-clast-to-gimple.c (translate_clast_user,
2586 translate_clast_for, translate_clast_guard): Split out of
2589 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
2591 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
2592 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
2593 debug_clast_name_indexes_1, debug_clast_name_indexes,
2594 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
2595 (clast_name_to_gcc, clast_to_gcc_expression,
2596 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
2597 gcc_type_for_clast_eq, graphite_translate_clast_equation,
2598 graphite_create_guard_cond_expr, graphite_create_new_loop,
2599 translate_clast): Add params_index.
2600 (initialize_cloog_names): Create parameter strings from scratch, do
2601 not reference other strings.
2602 (create_params_index): New.
2603 (gloog): Initialize params_index.
2604 * graphite-scop-detection (free_scops_1): Removed.
2605 (limit_scops): Use normal free_scops.
2606 * graphite-sese-to-poly.c (save_var_names): Removed.
2607 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
2608 and SESE_PARAMS_INDEX.
2609 * sese.c (new_sese, free_sese): Dito.
2610 * sese.h (struct sese): Remove params_index, params_names.
2611 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
2613 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2615 Revert the following patch from 2009-09-14:
2616 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
2617 tree-scalar-evolution.h, and then tree-data-ref.h.
2618 * graphite-clast-to-gimple.c: Same.
2619 * graphite-dependences.c: Same.
2620 * graphite-interchange.c: Same.
2621 * graphite-poly.c: Same.
2622 * graphite-scop-detection.c: Same.
2623 * graphite-sese-to-poly.c: Same.
2625 * lambda-code.c: Same.
2626 * matrix-reorg.c: Same.
2627 * tree-data-ref.c: Same.
2628 * tree-if-conv.c: Same.
2629 * tree-loop-distribu: Same.: Same.
2630 * tree-loop-linear.c: Same.
2631 * tree-parloops.c: Same.
2632 * tree-predcom.c: Same.
2633 * tree-vect-patterns.c: Same.
2635 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2637 Revert patch from 2009-09-14.
2638 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
2639 passes at -O1 and below.
2641 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2644 * gcc.dg/graphite/pr40281.c: New.
2646 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
2647 evolutions should not variate in inner loops.
2649 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2652 * gfortran.dg/graphite/pr42050.f90: New.
2654 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2656 * graphite-interchange.c (memory_strides_in_loop_depth): New.
2657 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
2659 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2661 * graphite-blocking.c (scop_do_block): New.
2662 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
2663 * graphite-poly.h (scop_do_block): Declared.
2665 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2667 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
2668 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
2669 to transform depth into the time_depth before calling
2670 pbb_number_of_iterations_at_time.
2671 (lst_do_strip_mine): Use a scalar variable instead of recomputing
2674 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2676 Reverted the patch for "scattering permutations" from 2009-10-28.
2678 * graphite-poly.c (print_permutation): New.
2679 (debug_permutation): New.
2680 (new_poly_bb): Initialize PBB_PERMUTATION.
2681 (free_poly_bb): Free PBB_PERMUTATION.
2682 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2683 (struct pbb_permutation_elt): New.
2684 (PBB_PERMUTATION_ELT_STRIDE): New.
2685 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2686 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2687 (new_pbb_permutation_elt): New.
2688 (pbb_permutation_elt_free): New.
2689 (struct poly_bb): Add field permutation.
2690 (PBB_PERMUTATION): New.
2691 (print_permutation): Declared.
2692 (debug_permutation): Declared.
2694 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2696 * graphite-interchange.c (build_partial_difference): New.
2697 (memory_stride_in_loop): Refactored the computation of
2698 equality constraints into build_partial_difference function.
2699 Added support for debugging stride computations.
2701 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2703 * graphite-clast-to-gimple.c (gloog): Free if_region,
2704 if_region->true_region, and if_region->region.
2705 * sese.c (if_region_set_false_region): Free if_region->false_region.
2706 (create_if_region_on_edge): Do not use GGC_NEW.
2707 (move_sese_in_condition): Remove useless initialization.
2709 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2711 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
2712 for the loops created by the loop distribution. Do not modify the
2714 (lst_try_interchange_loops): Same. Use a temporary LST for the
2715 transformed schedule. Call lst_update_scattering before data
2716 dependence analysis.
2717 (lst_try_interchange): Pass an extra parameter INDEX.
2718 (lst_do_interchange_1): New.
2719 (lst_do_interchange): Call lst_do_interchange_1.
2720 (scop_do_interchange): Call lst_update_scattering.
2721 * graphite-poly.c (apply_poly_transforms): Do not call
2722 lst_update_scattering.
2723 * graphite-poly.h (lst_pred): New.
2725 (lst_find_first_pbb): Return NULL when not found.
2727 (lst_insert_in_sequence): Allow LST1 to be NULL.
2729 (lst_substitute_3): New.
2730 * gcc.dg/graphite/interchange-1.c: XFail.
2731 * gcc.dg/graphite/interchange-8.c: XFail.
2732 * gcc.dg/graphite/interchange-11.c: XFail.
2734 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2736 * graphite-interchange.c (lst_perfectly_nested_p): New.
2737 (lst_perfect_nestify): New.
2738 (lst_try_interchange_loops): Call store_lst_schedule,
2739 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
2740 (scop_do_interchange): Avoid redundant legality test.
2741 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
2742 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
2743 * graphite-poly.h (psct_static_dim): New.
2744 (lst_dewey_number_at_depth): New.
2745 (lst_find_pbb): Restructured.
2746 (lst_find_first_pbb): Restructured.
2747 (lst_find_last_pbb): New.
2748 (lst_contains_p): New.
2749 (lst_contains_pbb): New.
2750 (lst_create_nest): New.
2751 (lst_remove_from_sequence): New.
2752 (pbb_update_scattering): New.
2753 (lst_update_scattering_under): New.
2754 (lst_update_scattering_seq): New.
2755 (lst_update_scattering): New.
2756 (lst_insert_in_sequence): New.
2757 (lst_distribute_lst): New.
2758 (lst_remove_all_before_including_pbb): New.
2759 (lst_remove_all_before_excluding_pbb): New.
2761 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2763 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
2764 get_loop_exit_edges.
2766 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2768 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
2770 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2772 * graphite-poly.c (print_permutation): New.
2773 (debug_permutation): New.
2774 (new_poly_bb): Initialize PBB_PERMUTATION.
2775 (free_poly_bb): Free PBB_PERMUTATION.
2776 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2777 (struct pbb_permutation_elt): New.
2778 (PBB_PERMUTATION_ELT_STRIDE): New.
2779 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2780 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2781 (new_pbb_permutation_elt): New.
2782 (pbb_permutation_elt_free): New.
2783 (struct poly_bb): Add field permutation.
2784 (PBB_PERMUTATION): New.
2785 (print_permutation): Declared.
2786 (debug_permutation): Declared.
2788 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2790 * graphite-clast-to-gimple.c (gloog): Do not call
2791 sese_reset_aux_in_loops.
2792 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
2793 extra argument for domains. Do not use loop->aux.
2794 (build_scop_iteration_domain): Initialize and free domains, pass it
2795 to build_loop_iteration_domains and extract the information from
2796 domains. Do not use loop->aux.
2797 * sese.c (sese_reset_aux_in_loops): Removed.
2798 * sese.h (sese_reset_aux_in_loops): Removed.
2800 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2802 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
2803 (dependency_in_loop_p): Same.
2804 (translate_clast): Do not use loop->aux. Initialize
2805 loop->can_be_parallel.
2806 (mark_loops_parallel): Removed.
2807 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
2808 * graphite.c (free_aux_in_new_loops): Removed.
2809 (graphite_finalize): Do not call free_aux_in_new_loops.
2810 (graphite_transform_loops): Do not call mark_loops_parallel.
2812 2009-10-26 Li Feng <nemokingdom@gmail.com>
2814 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
2815 (translate_clast): Pass an extra parameter LEVEL.
2816 Call get_scattering_level.
2817 * graphite-clast-to-gimple.h (get_scattering_level): New.
2819 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2821 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
2822 * cfgloop.h (struct loop): New field single_iv.
2824 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
2825 loop->aux anymore: use loop->single_iv.
2826 (graphite_loop_normal_form): Moved...
2827 (build_graphite_loop_normal_form): Removed.
2828 (gloog): Do not call build_graphite_loop_normal_form.
2829 (free_aux_in_new_loops): Moved...
2830 (mark_loops_parallel): Restructure.
2831 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
2832 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
2833 (scop_canonicalize_loops): New.
2834 (build_poly_scop): Call scop_canonicalize_loops.
2835 * graphite.c (free_aux_in_new_loops): ...here.
2837 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2839 * g++.dg/graphite/graphite.exp: Add the same rules as in
2840 gcc.dg/graphite/graphite.exp.
2842 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2844 * g++.dg/graphite/id-1.C: New.
2846 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2848 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
2850 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
2851 (rewrite_phi_out_of_ssa): Same.
2852 (rewrite_cross_bb_scalar_deps): Same.
2853 (translate_scalar_reduction_to_array): Same.
2855 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2857 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
2860 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2862 * graphite-sese-to-poly.c (dump_alias_graphs): New.
2863 (build_scop_drs): Call dump_alias_graphs.
2865 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2867 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
2868 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2869 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
2870 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2871 * graphite-poly.h (free_lst): New.
2872 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
2873 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
2875 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2877 * graphite-poly.h (struct scop): Add a field saved_schedule.
2878 (SCOP_SAVED_SCHEDULE): New.
2879 (store_lst_schedule): New.
2880 (restore_lst_schedule): New.
2881 (store_scattering): Call store_lst_schedule.
2882 (restore_scattering): Call restore_lst_schedule.
2884 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2886 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
2887 (pdr_add_alias_set): Same.
2888 (build_poly_dr): Same.
2889 (build_alias_set_optimal_p): Same.
2890 (build_base_obj_set_for_drs): Same. Do not store the result of
2893 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2895 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
2896 all_components_are_cliques to 1.
2898 2009-10-20 Li Feng <nemokingdom@gmail.com>
2900 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
2902 (pdr_add_alias_set): Update retrieving alias_set_num.
2903 (build_poly_dr): Update retrieving dr_base_object_set.
2904 (partition_drs_to_sets): Remove.
2905 (build_alias_set_optimal_p): New.
2906 (build_alias_set_for_drs): Rename.
2907 (build_scop_drs): Update.
2908 * graphite-sese-to-poly.h (struct base_alias_pair): New.
2909 (ALIAS_SET_INDEX): Remove.
2910 (BASE_OBJECT_SET_INDEX): Remove.
2912 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2914 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
2916 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2918 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
2919 loop upper bounds for 1-element arrays at end of structures.
2920 * tree-flow.h (array_at_struct_end_p): Declared.
2921 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
2923 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2925 * g++.dg/graphite/pr41305.C: New.
2927 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
2929 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
2930 construction of parameter constraints from loop iteration analysis.
2931 * gcc.dg/graphite/run-id-2.c: New test.
2933 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2935 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
2938 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2940 * graphite-dependences.c (dependence_polyhedron_1): Remove
2941 unused gdim dimensions from the DDR polyhedron.
2943 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2945 * graphite-dependences.c (pddr_transformed_scattering): New.
2946 (dot_original_deps_stmt_1): New.
2947 (dot_transformed_deps_stmt_1): New.
2948 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
2949 dot_transformed_deps_stmt_1.
2950 (dot_original_deps): New.
2951 (dot_transformed_deps): New.
2952 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
2954 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2956 * graphite-dependences.c (reduction_dr_1): Remove wrong
2957 assert: reduction BBs can have multiple reduction writes
2958 to memory. interchange-3.f90 is an example.
2960 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2962 * gfortran.dg/graphite/interchange-3.f90: New.
2964 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2966 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
2968 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2970 * graphite-dependences.c (dependence_polyhedron_1): Add the
2971 context to the dependence polyhedron.
2973 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2975 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
2976 PBB_PDR_DUPLICATES_REMOVED.
2977 (new_poly_bb): Same.
2979 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2981 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
2983 (build_loop_iteration_domains): Extract bounds on parameters
2984 based on the data size.
2985 (build_scop_context): Do not initialize SCOP_CONTEXT;
2986 add new constraints.
2988 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2990 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
2991 * graphite-ppl.h (graphite-ppl.h): Declared.
2993 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2995 * graphite-ppl.c (ppl_print_linear_expr): New.
2996 (debug_ppl_linear_expr): New.
2997 * graphite-ppl.h (ppl_print_linear_expr): Declared.
2998 (debug_ppl_linear_expr): Declared.
3000 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
3002 * graphite-interchange.c: Fix comments.
3003 * gcc.dg/graphite/block-1.c: Fix comments.
3005 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
3007 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
3008 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
3010 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
3012 Reapply the patch from Alexander Monakov that disappeared during
3013 the last merges from trunk.
3015 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
3017 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3018 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3020 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3022 * graphite-interchange.c (memory_stride_in_loop): The depth
3023 argument corresponds to a dynamic time dimension, so use
3024 psct_dynamic_dim to refer to the transformed scattering dimension.
3026 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3028 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
3030 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3032 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
3034 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
3035 the root of the LST.
3036 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
3038 (print_lst): Print the root of LST in a different format.
3039 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
3041 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3043 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
3045 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3047 * doc/passes.texi: Document the Graphite infrastructure.
3049 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3051 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
3052 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
3053 and check the SSA representation.
3055 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
3057 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
3059 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
3061 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3063 * gcc.dg/graphite/interchange-11.c: New.
3065 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3067 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
3069 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3071 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
3072 Add -fno-loop-strip-mine and -fno-loop-interchange.
3073 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
3074 -fno-loop-strip-mine.
3075 * gfortran.dg/graphite/graphite.exp: Same.
3077 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3079 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
3080 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
3081 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
3082 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
3083 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
3084 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
3085 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
3086 DEFAULT_FLAGS_GRAPHITE_SCOP.
3087 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
3088 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
3090 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3092 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
3094 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3095 Sebastian Pop <sebastian.pop@amd.com>
3097 * graphite-interchange.c (build_linearized_memory_access): Pass an
3098 offset as parameter.
3099 (memory_stride_in_loop): Include transform scattering in the
3100 access functions to be able to querry the strides in the
3102 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
3103 not the psct_iterator_dim.
3105 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3107 * graphite-blocking.c (pbb_do_strip_mine): Removed.
3108 (lst_do_strip_mine_loop): New.
3109 (lst_do_strip_mine): New.
3110 (scop_do_strip_mine): Call lst_do_strip_mine.
3111 * graphite-poly.h (lst_add_loop_under_loop): New.
3112 (lst_find_first_pbb): New.
3114 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
3116 * graphite-poly.c (loop_to_lst): Fix LST creation.
3118 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
3120 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
3121 sizeof(unsigned long) to make it run on 32bit systems.
3123 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
3125 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
3128 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
3130 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
3132 (write_alias_graph_to_ascii_dot): New.
3133 (write_alias_graph_to_ascii_ecc): Ditto.
3134 (partition_drs_to_sets): Add testing of optimality of current method
3135 which assigns alias numbers according to DFS Comopnent number. used
3136 as heuristic for the upcoming ECC algorithm.
3137 (build_scop_drs): Write to file also with the ecc and dot format.
3139 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
3141 * gfortran.dg/graphite/interchange-1.f: XFail.
3143 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
3145 * graphite.c (graphite_initialize): Do not handle functions with
3146 more than 100 basic blocks.
3148 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
3150 * graphite-blocking.c (pbb_do_strip_mine): Use
3151 PARAM_LOOP_BLOCK_TILE_SIZE.
3153 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
3155 * graphite-poly.c (dot_lst_1): New.
3157 * graphite-poly.h (dot_lst): Declared.
3159 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
3161 * graphite-dependences.c (dot_deps_stmt_1): New.
3162 (dot_deps_stmt): New.
3163 * graphite-dependences.h (dot_deps_stmt): Declared.
3165 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3167 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
3168 not replace cross BB scalar dependences ending on PHI nodes.
3169 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
3171 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3173 * graphite-poly.c (apply_poly_transforms): Implement the high
3174 level driver for flag_loop_block.
3175 * opts.c (decode_options): Enable flag_loop_block at -O2.
3176 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
3179 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
3181 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
3184 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3186 * graphite-poly.h (lst_find_pbb): New.
3187 (find_lst_loop): New.
3189 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3191 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
3192 * graphite-poly.h (struct scop): Remove dep_graph field.
3193 (SCOP_DEP_GRAPH): Removed.
3195 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3197 * graphite-poly.h (copy_lst): Do full copy of LST.
3199 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
3201 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
3202 when the loop stride is zero.
3204 * gcc.dg/graphite/id-16.c: New.
3206 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3208 * graphite-dependences.c (reduction_dr_1): New.
3209 (reduction_dr_p): New.
3210 (graphite_legal_transform_dr): Call reduction_dr_p.
3211 (reduction_ddr): Renamed reduction_ddr_p.
3212 * graphite-poly.h (same_pdr_p): New.
3213 (number_of_write_pdrs): New.
3214 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
3215 (split_reduction_stmt): Do not split reduction statements
3216 when there are no writes to memory.
3217 (translate_scalar_reduction_to_array_for_stmt): Insert the
3218 memory reduction statement just after the scalar reduction statement.
3220 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
3222 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
3223 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
3225 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3227 * graphite-interchange.c (lst_apply_interchange): New.
3228 (lst_interchange_profitable_p): New.
3229 (lst_try_interchange_loops): New.
3230 (lst_try_interchange): New.
3231 (lst_do_interchange): New.
3232 (pbb_do_interchange): Removed.
3233 (scop_do_interchange): Call lst_do_interchange.
3235 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3237 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
3238 SCOP_TRANSFORMED_SCHEDULE.
3243 * graphite-poly.h (lst_p): New.
3246 (LST_LOOP_FATHER): New.
3249 (scop_to_lst): Declared.
3250 (print_lst): Declared.
3251 (debug_lst): Declared.
3252 (new_lst_loop): New.
3253 (new_lst_stmt): New.
3256 (lst_dewey_number): New.
3257 (struct scop): Add original_schedule and transformed_schedule fields.
3258 (SCOP_ORIGINAL_SCHEDULE): New.
3259 (SCOP_TRANSFORMED_SCHEDULE): New.
3260 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
3262 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3264 * graphite-dependences.c (reduction_ddr): New.
3265 (graphite_legal_transform_bb): Call reduction_ddr.
3266 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
3267 Initialize PBB_IS_REDUCTION.
3268 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
3269 (PBB_IS_REDUCTION): New.
3270 (new_poly_bb): Update declaration.
3271 * graphite-scop-detection.h (build_scop_bbs): Removed.
3272 (nb_reductions_in_loop): Removed.
3273 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
3274 parameter for reductions.
3275 (try_generate_gimple_bb): Update call to new_poly_bb.
3276 (build_scop_bbs_1): Same.
3277 (build_scop_bbs): Same.
3278 (gsi_for_phi_node): New.
3279 (scalar_close_phi_node_p): Remove gcc_assert.
3280 (split_reduction_stmt): New.
3281 (is_reduction_operation_p): New.
3282 (phi_contains_arg): New.
3283 (follow_ssa_with_commutative_ops): New.
3284 (detect_commutative_reduction_arg): New.
3285 (detect_commutative_reduction_assign): New.
3286 (follow_inital_value_to_phi): New.
3287 (edge_initial_value_for_loop_phi): New.
3288 (initial_value_for_loop_phi): New.
3289 (detect_commutative_reduction): New.
3290 (translate_scalar_reduction_to_array_for_stmt): New.
3291 (insert_copyout): New.
3292 (insert_copyin): New.
3293 (translate_scalar_reduction_to_array): New.
3294 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
3295 (rewrite_commutative_reductions_out_of_ssa_loop): New.
3296 (rewrite_commutative_reductions_out_of_ssa): New.
3297 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
3298 * sese.h (split_region_for_bb): New.
3300 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
3301 * gcc.dg/graphite/interchange-1.c: Fix format.
3302 * gcc.dg/graphite/interchange-10.c: New.
3304 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3306 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
3309 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3311 * graphite-sese-to-poly.c (scev_analyzable_p): New.
3312 (rewrite_cross_bb_scalar_dependence): New.
3313 (rewrite_cross_bb_scalar_deps): New.
3314 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
3315 Call rewrite_cross_bb_scalar_deps.
3317 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3319 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
3320 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
3323 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3325 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
3326 * graphite-interchange.c (pbb_do_interchange): Same.
3327 * graphite-poly.c (print_scattering_function): Same.
3329 * graphite-poly.h (pbb_loop): New.
3330 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
3332 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
3334 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
3336 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
3338 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
3339 so don't pass a pointer to it.
3340 (build_alias_set_for_drs): Same.
3341 (build_base_obj_set_for_drs): Same.
3342 (build_scop_drs): Same.
3344 2009-09-26 Li Feng <nemokingdom@gmail.com>
3346 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
3347 the alias graph of data references.
3349 2009-09-25 Li Feng <nemokingdom@gmail.com>
3351 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
3352 (build_scop_drs): When debugging, write the alias graph to file,
3353 otherwise, should be disabled.
3355 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3357 * Merge from mainline (151310:151361).
3359 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3361 * Merge from mainline (151171:151310).
3363 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3365 * Merge from mainline (151171:151806).
3367 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3369 * Revert the last commit.
3371 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3373 * Merge from mainline (151171:151819).
3375 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3377 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
3378 (is_simple_operand): Remove call to stmt_simple_memref_p.
3379 (stmt_simple_for_scop_p): Update call to is_simple_operand.
3381 2009-09-17 David Edelsohn <edelsohn@gnu.org>
3383 * gcc.dg/graphite/interchange-mvt.c: New File.
3384 * gcc.dg/graphite/scop-dsyrk.c: New File.
3385 * gcc.dg/graphite/scop-dsyr2k.c: New File.
3386 * gcc.dg/graphite/scop-mvt.c: New File.
3387 * gcc.dg/graphite/scop-sor.c: New File.
3389 2009-09-17 Li Feng <nemokingdom@gmail.com>
3391 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
3392 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
3393 (graphite_carried_dependence_level_k): Ditto.
3394 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
3395 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
3396 (new_poly_dr): Adjust declaration.
3397 * graphite-sese-to-poly.c (free_data_refs_aux): New.
3398 (free_gimple_bb): Added free_data_refs_aux.
3399 (build_poly_dr): Add dr_base_object_set.
3400 (partition_drs_to_sets): New.
3401 (dr_same_base_object_p): New.
3402 (build_alias_set_for_drs): New.
3403 (build_base_object_set_for_drs): New.
3404 (build_scop_drs): Add build_base_obj_set_for_drs.
3405 * graphite-sese-to-poly.h: Added #define for alias set number index and
3406 base object set index.
3407 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
3408 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
3410 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
3412 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3413 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3415 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3417 * graphite-sese-to-poly.c (struct irp_data): Removed.
3418 (idx_record_params): Removed.
3419 (find_params_in_bb): Scan for parameters the access functions; don't
3420 parse the tree representation.
3422 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3424 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
3425 passes at -O1 and below.
3427 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3429 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
3430 tree-scalar-evolution.h, and then tree-data-ref.h.
3431 * graphite-clast-to-gimple.c: Same.
3432 * graphite-dependences.c: Same.
3433 * graphite-interchange.c: Same.
3434 * graphite-poly.c: Same.
3435 * graphite-scop-detection.c: Same.
3436 * graphite-sese-to-poly.c: Same.
3438 * lambda-code.c: Same.
3439 * matrix-reorg.c: Same.
3440 * tree-data-ref.c: Same.
3441 * tree-if-conv.c: Same.
3442 * tree-loop-distribu: Same.: Same.
3443 * tree-loop-linear.c: Same.
3444 * tree-parloops.c: Same.
3445 * tree-predcom.c: Same.
3446 * tree-vect-patterns.c: Same.
3448 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
3450 Partially revert the previous patch, except the following.
3451 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
3452 as parameters the operands of the not expression.
3454 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3456 * tree-scalar-evolution.c (instantiate_scev_assign): New.
3457 Do not call analyze_scalar_evolution on assignments.
3458 (instantiate_scev_phi): Call analyze_scalar_evolution.
3459 (instantiate_scev_name): Call instantiate_scev_assign and
3460 instantiate_scev_phi.
3461 (instantiate_scev_not): Adapted to pass as parameters the operands
3462 of the not expression.
3464 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3466 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
3467 to pass as parameters the operands of the binary expression.
3469 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3471 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
3472 instantiate_scev_not. Handle NEGATE_EXPR.
3473 (instantiate_scev_r): Handle NEGATE_EXPR.
3475 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3477 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
3479 (instantiate_scev_r): Move code in instantiate_scev_2
3480 and instantiate_scev_1.
3482 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3484 * tree-scalar-evolution.c (instantiate_scev_3): New.
3485 (instantiate_scev_1): Move code in instantiate_scev_3.
3487 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3489 * tree-scalar-evolution.c (instantiate_scev_poly): New.
3490 (instantiate_scev_1): Move code in instantiate_scev_poly.
3492 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3494 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
3495 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
3497 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3499 * tree-scalar-evolution.c (instantiate_scev_convert): New.
3500 (instantiate_scev_1): Move code in instantiate_scev_convert.
3502 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3504 * tree-scalar-evolution.c (instantiate_scev_binary): New.
3505 (instantiate_scev_1): Move code in instantiate_scev_binary.
3507 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3509 * tree-scalar-evolution.c (instantiate_scev_name): New.
3510 (instantiate_scev_1): Move code in instantiate_scev_name.
3512 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3514 * Merge from mainline (150992:151171).
3516 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3518 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
3520 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3522 * graphite-dependences.c (graphite_legal_transform_bb): Call
3523 pbb_remove_duplicate_pdrs.
3524 * graphite-poly.c (can_collapse_pdr): Removed.
3525 (pdr_find_duplicate): Removed.
3526 (can_collapse_pdrs): New.
3527 (pbb_remove_duplicate_pdrs): New.
3528 (new_poly_dr): Do not look for duplicates.
3529 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
3530 (PBB_PDR_DUPLICATES_REMOVED): New.
3531 (pbb_remove_duplicate_pdrs): Declared.
3533 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3535 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
3536 the strides by multiplying by PDR_NB_REFS.
3537 * graphite-poly.c (can_collapse_pdr): New.
3538 (pdr_find_duplicate): New.
3539 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
3540 Initialize PDR_NB_REFS.
3541 * graphite-poly.h (struct poly_dr): Add field nb_refs.
3543 (new_poly_dr): Number of subscripts is a graphite_dim_t.
3545 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3547 Revert one of the previous commits:
3548 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
3549 the computation of symmetric data dependence relations.
3550 (dependency_between_pbbs_p): Same.
3552 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3555 * graphite-poly.c (apply_poly_transforms): Remove legality test before
3558 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3560 * graphite-dependences.c (pddr_original_scattering): Return NULL
3561 for read-read dependence relations.
3562 * graphite-poly.h (enum poly_dr_type): Fix comment.
3565 (pdr_may_write_p): New.
3567 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3569 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
3570 (struct poly_dr): Same.
3571 (new_poly_dr): Same.
3572 * graphite-poly.c (new_poly_dr): Same.
3574 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3575 Sebastian Pop <sebastian.pop@amd.com>
3577 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
3578 pbb_strip_mine_time_depth. Changed the implementation so that
3579 transformation is expressed as a transformation on
3580 time (scatttering) dimensions. Also, ensures that the 2d+1
3581 scheduling format is preserved.
3582 (pbb_strip_mine_profitable_p): Profitability is based on the
3583 iteration number of a given time (scattering) dimension,
3584 and not on a original loop depth dimension.
3585 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
3586 (pbb_do_strip_mine): Call psct_dynamic_dim.
3587 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
3588 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
3589 (pbb_nb_dynamic_scattering_transform): New.
3590 (psct_dynamic_dim): New.
3592 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3594 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3595 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3596 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
3597 * graphite-interchange.c (build_linearized_memory_access): Same.
3598 (memory_stride_in_loop): Same.
3600 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3602 * graphite-dependences.c (pddr_original_scattering): New.
3603 (graphite_legal_transform_dr): Call pddr_original_scattering.
3606 * graphite-dependences.h (dot_deps): Declared.
3607 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
3608 (print_pdr): Print PDR_ID.
3609 * graphite-poly.h (struct poly_dr): Add field id.
3612 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
3614 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
3616 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
3617 not delete the original dependence relation.
3619 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3621 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
3622 the computation of symmetric data dependence relations.
3623 (dependency_between_pbbs_p): Same.
3625 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3627 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
3628 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
3629 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
3630 (free_poly_ddr): New.
3631 (pddr_is_empty): New.
3632 (dependence_polyhedron_1): Now returns a poly_ddr_p.
3633 (dependence_polyhedron): Same. Remove useless gcc_assert.
3635 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
3636 (graphite_carried_dependence_level_k): Call pddr_is_empty.
3637 * graphite-dependences.h (enum poly_dependence_kind): New.
3638 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
3639 (PDRP_SOURCE): Renamed PDDR_SOURCE.
3640 (PDRP_SINK): Renamed PDDR_SINK.
3641 (PDRP_DDP): Renamed PDDR_DDP.
3643 (free_poly_ddr): Declared.
3644 * graphite-poly.c (new_scop): Use the new hash function names.
3645 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
3646 into original_pddrs.
3647 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
3649 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3651 * Merge from mainline (150764:150992).
3653 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3655 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
3656 bounds with LT_EXPR to make niter analysis more precise on code
3657 generated by Graphite.
3659 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3661 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
3662 (graphite_legal_transform_bb): Same.
3663 (poly_drs_may_alias_p): Same.
3665 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
3668 * graphite-ppl.c (ppl_max_for_le): Correct the use of
3669 ppl_Pointset_Powerset_C_Polyhedron_maximize.
3671 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3673 * graphite-poly.c (print_pbb): Print PBB index.
3675 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3677 * Merge from mainline (r150672:150764).
3679 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3681 * graphite-interchange.c (ppl_max_for_le): Moved...
3682 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
3683 * graphite-ppl.c (ppl_max_for_le): ... here.
3684 * graphite-ppl.h (ppl_max_for_le): Declared.
3686 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3688 * Merge from mainline (r150372:150672).
3690 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3693 * sese.c (convert_for_phi_arg): New.
3694 (add_guard_exit_phis): Use convert_for_phi_arg.
3696 * gfortran.dg/graphite/id-17.f: New.
3698 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3700 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
3701 unknown subscript upper bounds.
3703 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
3705 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3706 Pranav Garg <pranav.garg2107@gmail.com>
3708 * graphite-interchange.c (gather_access_strides): Removed.
3709 (ppl_max_for_le): New.
3710 (build_linearized_memory_access): New.
3711 (memory_stride_in_loop): New.
3712 (pbb_interchange_profitable_p): Reimplemented.
3713 * graphite-ppl.h (ppl_new_id_map): New.
3714 (ppl_interchange): New.
3716 * gcc.dg/graphite/interchange-6.c: XFAILed.
3718 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3720 * graphite-interchange.c (compute_subscript): Removed.
3721 (compute_array_size_cstr): Removed.
3722 (compute_array_size_poly): Removed.
3723 (compute_array_size): Removed.
3724 (gather_access_strides_poly): Removed.
3725 (gather_access_strides): Empty.
3727 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3729 * graphite-dependences.c (dependence_polyhedron_1): Replace
3730 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
3731 (graphite_legal_transform_dr): Same.
3732 (graphite_carried_dependence_level_k): Same.
3733 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
3734 Initialize PDR_NB_SUBSCRIPTS.
3735 (print_pdr_access_layout): Replace pdr_nb_subscripts with
3737 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
3738 (PDR_NB_SUBSCRIPTS): New.
3739 (pdr_nb_subscripts): Removed.
3740 (pdr_dim): Simplified.
3741 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
3742 with PDR_NB_SUBSCRIPTS.
3744 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3746 * graphite-interchange.c (compute_array_size): Remove use of
3748 * graphite-poly.c (new_poly_dr): Remove argument data_container.
3749 Do not initialize PDR_DATA_CONTAINER.
3750 (print_pdr): Do not print PDR_DATA_CONTAINER.
3751 * graphite-poly.h (struct poly_dr): Remove data_container field.
3752 (PDR_DATA_CONTAINER): Removed.
3753 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
3755 (build_poly_dr): Same.
3757 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3759 * gcc.dg/graphite/interchange-9.c: New.
3761 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3762 Sebastian Pop <sebastian.pop@amd.com>
3764 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
3765 copy of the dependence polyhedron. Free the temporary objects.
3766 (graphite_carried_dependence_level_k): Free unused objects before
3769 * gcc.dg/graphite/interchange-1.c: XFAILed.
3770 * gcc.dg/graphite/interchange-2.c: XFAILed.
3771 * gcc.dg/graphite/interchange-3.c: XFAILed.
3772 * gcc.dg/graphite/interchange-4.c: XFAILed.
3773 * gcc.dg/graphite/interchange-7.c: XFAILed.
3775 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3777 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
3778 Early return without analyzing the data dependences if no
3779 transform has been done. Call restore_scattering if the transform
3781 (graphite-interchange.c): Same.
3782 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
3783 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
3784 (apply_poly_transforms): Do not gcc_assert that
3785 the transform is legal.
3786 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3787 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
3788 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
3789 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3790 * graphite-poly.h (struct poly_scattering): New.
3791 (struct poly_bb): Add original, transformed, and saved fields.
3792 Remove transformed_scattering, original_scattering, nb_local_variables,
3793 and nb_scattering_transform fields.
3794 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
3795 (poly_scattering_new): New.
3796 (poly_scattering_free): New.
3797 (poly_scattering_copy): New.
3798 (store_scattering_pbb): New.
3799 (store_scattering): New.
3800 (restore_scattering_pbb): New.
3801 (restore_scattering): New.
3802 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3803 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
3805 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3807 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
3810 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3812 * Makefile.in (graphite.o): Depends on PREDICT_H.
3813 * graphite.c: Include predict.h.
3814 (graphite_finalize): Call tree_estimate_probability.
3815 * predict.c (predict_loops): Do not call scev_initialize and
3817 (tree_estimate_probability_bb): New.
3818 (tree_estimate_probability): Do not initialize loops: move that
3819 code to the driver. Call tree_estimate_probability_bb.
3820 (tree_estimate_probability_driver): New.
3821 (pass_profile): Use tree_estimate_probability_driver.
3822 * predict.h (tree_estimate_probability): Declared.
3824 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3826 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
3827 * graphite-dependences.c (graphite_legal_transform): Add time to
3828 TV_GRAPHITE_DATA_DEPS.
3829 (dependency_between_pbbs_p): Same.
3830 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
3832 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
3834 * Merge from mainline (r149952:150372).
3836 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3838 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
3839 * graphite-blocking.c: Same.
3840 * graphite-clast-to-gimple.c: Same.
3841 * graphite-dependences.c: Same.
3842 * graphite-poly.c: Same.
3843 * graphite-poly.h: Same.
3844 * graphite-ppl.c: Same.
3845 * graphite-scop-detection.c: Same.
3846 * graphite-sese-to-poly.c: Same.
3849 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3851 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
3852 (remove_simple_copy_phi): New.
3853 (remove_invariant_phi): New.
3854 (simple_copy_phi_p): New.
3855 (reduction_phi_p): New.
3856 (gsi_for_ssa_name_def): New.
3857 (insert_out_of_ssa_copy): New.
3858 (insert_out_of_ssa_copy_on_edge): New.
3859 (create_zero_dim_array): New.
3860 (scalar_close_phi_node_p): New.
3861 (rewrite_close_phi_out_of_ssa): New.
3862 (rewrite_phi_out_of_ssa): New.
3863 (rewrite_reductions_out_of_ssa): New.
3864 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
3866 * gcc.dg/graphite/id-11.c: New.
3867 * gcc.dg/graphite/id-15.c: New.
3868 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
3869 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
3870 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
3871 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
3872 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
3873 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
3874 * gfortran.dg/graphite/id-13.f: New.
3875 * gfortran.dg/graphite/id-5.f: New.
3877 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3879 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
3880 check that nb_reductions_in_loop is zero.
3881 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
3882 reduction phi nodes.
3883 (nb_reductions_in_loop): Removed.
3884 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
3885 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
3886 (bb_contains_non_iv_scalar_phi_nodes): Removed.
3887 (scop_contains_non_iv_scalar_phi_nodes): Removed.
3888 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
3890 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3892 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
3893 statements that have an empty iteration domain.
3894 * gfortran.dg/graphite/id-16.f: New.
3896 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3898 * tree-scalar-evolution.c (instantiate_scev_1): Return
3899 chrec_dont_know when the result is not above instantiate_below.
3900 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
3901 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
3902 the tree has a known scalar evolution.
3903 * gfortran.dg/graphite/id-14.f: New.
3904 * gfortran.dg/graphite/id-15.f: New.
3906 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3908 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
3910 (rename_variables): Keep inserting renames after the ones already
3913 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3915 * graphite-sese-to-poly.c (compare_bb_depths): New.
3916 (graphite_sort_dominated_info): New.
3917 (build_scop_bbs_1): Call graphite_sort_dominated_info.
3918 (build_scop_scattering): Fix comment.
3920 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3922 * graphite.c (graphite_finalize): Call print_loops instead of
3923 dump_function_to_file.
3924 * gcc.dg/graphite/graphite.exp: Fix formatting.
3925 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
3926 loops generated in the graphite output file.
3927 * gcc.dg/graphite/pr35356-2.c: New.
3928 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
3929 * gfortran.dg/graphite/id-12.f: New.
3931 2009-07-24 Li Feng <nemokingdom@gmail.com>
3933 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
3936 2009-07-24 Li Feng <nemokingdom@gmail.com>
3937 Tobias Grosser <grosser@fim.uni-passau.de>
3939 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
3940 alias set number build alias in ACCESSES polyhedron.
3941 (build_alias_set_for_drs): New.
3942 (build_pbb_drs): Added build_alias_set_for_drs.
3943 * graphite-dependences.c (poly_drs_may_alias_p): New.
3944 (graphite_carried_dependence_level_k): Check alias information
3945 before building polyhedron.
3947 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3949 * Makefile.in (lambda-code.o): Fix formatting.
3951 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3953 * Merge from mainline (r149350-149952)
3955 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3957 * graphite-poly.c (apply_poly_transforms): Move strip_mine
3958 before interchange to prepare for loop blocking.
3960 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3962 * graphite-poly.c (apply_poly_transforms): Add checks after every
3964 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
3965 done in apply_poly_transforms.
3967 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3969 * graphite-dependences.c (build_lexicographically_gt_constraint):
3970 Replace RES parameter with *RES.
3971 (dependence_polyhedron_1): Pass an address of the parameter RES
3972 instead of value of RES.
3974 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3976 * graphite.c (graphite_finalize): Fix comment.
3977 (graphite_transform_loops): Reset scev info after code generation
3980 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3982 * graphite.c (graphite_finalize): Call scev_reset.
3984 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3986 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
3987 GBB_CLOOG_IV_TYPES hash table twice.
3988 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
3989 (add_condition_to_domain): Clear GMP values.
3991 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3993 * graphite-dependences.c: Fix formatting.
3994 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
3995 (pbb_number_of_iterations): Free ppl_Linear_Expression.
3996 * graphite-sese-to-poly.c: Fix formatting.
3997 * graphite.c (graphite_transform_loops): Create the hash table
3998 after the early return.
4000 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
4002 * gcc.dg/graphite/id-14.c: New.
4003 * gcc.dg/graphite/pr40157.c: New.
4004 * gfortran.dg/graphite/id-11.f: New.
4006 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
4008 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
4009 (build_poly_scop): Return false when there are no pbbs within
4010 loops to avoid to pass to cloog scops with no loops.
4012 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
4014 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
4015 useless test "i % 2".
4016 (build_pbb_scattering_polyhedrons): Fix formatting.
4017 (build_poly_dr): Same.
4018 * graphite.c (graphite_transform_loops): Restructure.
4020 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
4022 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
4023 reduction_list parameter.
4024 (rewrite_all_phi_nodes_with_iv): Same.
4025 (canonicalize_loop_ivs): Same.
4026 * tree-parloops.c (struct brli): Removed.
4027 (build_reduction_list_info): Removed.
4028 (build_new_reduction): New.
4029 (analyze_reduction_list): Removed.
4030 (gather_scalar_reductions): Find reductions instead of phi
4031 nodes that can't be canonicalized.
4032 (try_create_reduction_list): Remove reduction_list parameter.
4033 (gen_parallel_loop): Same.
4034 (parallelize_loops): Remove analyze_reductions variable,
4035 initialization and free.
4036 Change reduction_list htab initialization to reduction_info
4037 elements instead of ssa names.
4038 Call try_create_reduction_list and gen_parallel_loop without
4039 analyzed_reduction argument.
4040 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
4041 canonicalize_loop_ivs with one less argument.
4042 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
4044 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
4046 * graphite-dependences.c (new_poly_dr_pair): New.
4047 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
4048 (new_poly_dr_pair): New.
4049 (eq_poly_dr_pair_p): New.
4050 (hash_poly_dr_pair_p): New.
4051 * graphite-dependences.h (struct poly_dr_pair): New.
4052 (eq_poly_dr_pair_p): Declared.
4053 (hash_poly_dr_pair_p): Declared.
4054 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
4055 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
4056 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
4057 * Makefile.in (graphite-poly.o): Add dependence on
4058 graphite-dependences.h.
4060 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
4062 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
4063 polynomials of degree > 1 pass to Graphite.
4064 * tree-chrec.c (scev_is_linear_expression): Call
4065 evolution_function_is_affine_multivariate_p.
4066 * gfortran.dg/graphite/id-10.f90: New.
4068 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
4070 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
4071 Instantiate scevs varying in outer loops.
4072 * gfortran.dg/graphite/id-9.f: Correct testcase.
4074 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
4076 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
4077 redundant constraint.
4079 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
4081 * gcc.dg/graphite/graphite.exp: Fix comments.
4082 * gfortran.dg/graphite/graphite.exp: Trigger actions
4083 based on the file names as in the C testsuite.
4084 * gfortran.dg/graphite/block-1.f90: Fix patterns.
4085 * gfortran.dg/graphite/block-2.f: Same.
4086 * gfortran.dg/graphite/block-3.f90: Same.
4087 * gfortran.dg/graphite/block-4.f90: Same.
4088 * gfortran.dg/graphite/id-1.f90: Same.
4089 * gfortran.dg/graphite/id-2.f90: Same.
4090 * gfortran.dg/graphite/id-3.f90: Same.
4091 * gfortran.dg/graphite/id-4.f90: Same.
4092 * gfortran.dg/graphite/id-6.f: Same.
4093 * gfortran.dg/graphite/id-9.f: Same.
4094 * gfortran.dg/graphite/interchange-1.f: Same.
4095 * gfortran.dg/graphite/interchange-2.f: Same.
4096 * gfortran.dg/graphite/scop-1.f: Same.
4098 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
4100 * sese.c (expand_scalar_variables_call): New.
4101 (expand_scalar_variables_ssa_name): Handle calls in expander.
4103 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
4105 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
4106 Expect to see the pattern twice.
4107 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
4108 * gcc.dg/graphite/interchange-5.c: Same.
4109 * gcc.dg/graphite/interchange-6.c: Same.
4111 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
4113 * gcc.dg/graphite/id-10.c: New.
4114 * gcc.dg/graphite/id-12.c: New.
4115 * gfortran.dg/graphite/id-7.f: New.
4116 * gfortran.dg/graphite/id-8.f: New.
4118 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
4120 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
4123 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
4125 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
4127 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
4129 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
4131 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
4133 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
4134 building PDR subscripts.
4136 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
4138 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
4139 computation of array sizes.
4141 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
4143 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
4145 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
4147 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
4148 build_pairwise_constraint, dr_equality_constraints,
4149 build_pairwise_scheduling_equality,
4150 build_pairwise_scheduling_inequality, lexicographically_gt_p,
4151 build_lexicographically_gt_constraint, dependence_polyhedron,
4152 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
4153 Move from NNC_Polyhedron to C_Polyhedron.
4154 * graphite-interchange.c (compute_array_size_poly,
4155 gather_access_strides): Dito.
4156 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
4157 free_scop, pbb_number_of_iterations): Dito.
4158 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
4159 pbb_dim_iter_domain, struct scop): Dito.
4160 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
4161 new_Cloog_Domain_from_ppl_Polyhedron,
4162 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
4163 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
4164 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
4165 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
4166 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
4167 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
4168 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
4169 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
4170 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
4171 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
4172 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
4173 build_scop_iteration_domain, build_poly_dr): Dito
4175 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4177 * gcc.dg/graphite/graphite.exp: Added a rule to execute
4179 * gcc.dg/graphite/run-id-1.c: New.
4181 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4183 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
4184 positivity constraint on the symbolic number of iterations.
4186 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4188 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
4190 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4191 Tobias Grosser <grosser@fim.uni-passau.de>
4193 * graphite-clast-to-gimple.c (build_scop_context): Removed.
4194 (build_cloog_prog): Directly use SCOP_CONTEXT.
4195 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
4196 (free_scop): Free SCOP_CONTEXT.
4197 (print_scop_context): New.
4198 (print_scop): Call print_scop_context.
4199 (debug_scop_context): New.
4200 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
4201 (struct scop): Added field context.
4202 (SCOP_CONTEXT): New.
4203 * graphite-sese-to-poly.c (add_param_constraints): New.
4204 (build_scop_context): New.
4205 (build_poly_scop): Call build_scop_context.
4207 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4209 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
4210 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
4211 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
4212 * graphite-ppl.h: Include double-int.h and tree.h.
4213 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
4214 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
4215 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
4216 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
4218 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4220 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
4221 POINTER_PLUS_EXPR for pointer types.
4222 (clast_to_gcc_expression): Same.
4224 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4226 * graphite-poly.c (print_scattering_function): Early return when
4227 PBB_TRANSFORMED_SCATTERING is not initialized.
4228 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
4230 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
4232 * tree-parloops.c (analyze_reduction_list): Remove unused variable
4235 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
4237 * tree-parloops.c (analyze_reduction_list): Change return
4239 (try_create_reduction_list): Move the call to
4240 analyze_reduction_list to the beginining.
4241 Call reduction_phi with analyzed_reductions as argument
4242 instead of reduction_list.
4244 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
4246 * Merge from mainline (r148296:149346)
4248 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4250 * graphite-scop-detection.c (graphite_can_represent_init): New.
4251 (graphite_can_represent_scev): Call graphite_can_represent_init:
4252 check that the initial value does not contain multiplications of
4254 (stmt_has_simple_data_refs_p): New.
4255 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
4256 (is_simple_operand): Fix formatting.
4257 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
4259 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4261 * gcc.dg/graphite/id-13.c: New.
4262 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
4263 analyze_scalar_evolution, use scalar_evolution_in_region.
4264 (scan_tree_for_params_right_scev): Add extra assert.
4265 (parameter_index_in_region_1): Split from parameter_index_in_region.
4266 (idx_record_params): Use scalar_evolution_in_region.
4267 (find_params_in_bb): Same.
4268 (find_scop_parameters): Same.
4269 (build_loop_iteration_domains): Same.
4270 (create_linear_expr_from_tree): Same.
4271 * sese.c (scalar_evolution_in_region): New.
4272 * sese.h (scalar_evolution_in_region): Declared.
4273 (defined_in_sese_p): New.
4274 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
4276 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
4279 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4281 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
4282 TREE_DATA_REF_H also implies SCEV_H.
4284 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4286 * graphite-poly.c (print_scop_params): New.
4287 (print_scop): Call print_scop_params.
4288 (debug_scop_params): New.
4289 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
4291 2009-07-07 Li Feng <nemokingdom@gmail.com>
4293 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
4294 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
4295 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
4296 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
4297 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
4298 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
4300 2009-07-07 Li Feng <nemokingdom@gmail.com>
4302 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
4303 for dependency checking part.
4304 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
4305 tests for dependency checking.
4306 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
4307 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
4308 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
4309 flag -fdump-tree-graphite-all for autopar testsuites.
4311 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
4313 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
4314 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
4315 canonicalize_loop_ivs): Moved...
4316 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
4318 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
4320 * tree-parloops.c (try_create_reduction_list): Pass an extra
4321 argument analyzed_reductions. Call analyze_reduction_list.
4322 (gen_parallel_loop): Do not call analyze_reduction_list.
4323 (parallelize_loops): Init and finalize analyzed_reductions.
4325 2009-07-06 Li Feng <nemokingdom@gmail.com>
4327 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
4328 Added flag -fno-loop-strip-mine for autopar testcase.
4330 2009-07-04 Li Feng <nemokingdom@gmail.com>
4332 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
4333 transformed scattering dimension instead of unmatch orignal when
4334 calling dependence_polyhedron.
4336 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4338 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
4340 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4342 * graphite-poly.c (pbb_number_of_iterations): Check for returned
4343 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
4345 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4347 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
4348 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
4349 * graphite-poly.c (pbb_number_of_iterations): New.
4350 * graphite-poly.h (pbb_number_of_iterations): Declared.
4351 (pbb_iterator_dim, pbb_parameter_dim): New.
4353 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
4355 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
4356 last commit on type of lower and upper bound of loops.
4358 2009-06-29 Li Feng <nemokingdom@gmail.com>
4360 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
4361 graphite-dependences.h.
4362 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
4363 (mark_bb_with_pbb): New.
4364 (get_stmtfor_depth): New.
4365 (find_pbb_via_hash): New.
4366 (dependency_in_loop_p): New.
4367 (mark_loops_parallel): New.
4368 (free_aux_in_new_loops): New.
4369 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
4370 bb with it's relevant pbb. Mark newly created loops. Remove mark
4371 innermost loop parallel without checking.
4372 (gloog): Add parameter BB_PBB_MAPPING.
4373 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
4374 (gloog): Change declaration.
4375 (mark_loop_parallel): Make extern.
4376 (free_aux_in_new_loops): Declare.
4377 (bb_pbb_map_hash): New.
4378 (eq_bb_pbb_map): New.
4379 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
4380 auto parallelization when flag_graphite_force_parallel is set.
4381 (graphite_finalize): Added free_aux_in_new_loops.
4382 * tree-parloops.c (parallelize_loops): Only generate parallel code for
4383 the innermost loop that marked parallel. Use
4384 flag_graphite_force_parallel instead of loop->can_be_parallel.
4385 (loop_parallel_p): Move inner most checking out of function.
4387 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4389 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
4390 type of lower and upper bound of loops signed long int.
4392 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4394 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
4395 expression outside the loop.
4397 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4399 * gcc.dg/graphite/interchange-8.c: New.
4401 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4403 * gcc.dg/graphite/interchange-0.c: XFailed.
4404 * gcc.dg/graphite/interchange-5.c: XFailed.
4405 * gcc.dg/graphite/interchange-6.c: XFailed.
4407 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4409 * graphite-interchange.c (compute_array_size_poly): The end of the
4410 recursion should return 1.
4412 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4414 * graphite-interchange.c (compute_array_size_cstr): Allow the
4415 subscript multiplier to be -1.
4416 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
4417 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
4418 data_container. Initializes PDR_DATA_CONTAINER.
4419 (print_pdr_access_layout): New.
4420 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
4421 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
4423 (PDR_DATA_CONTAINER): New.
4424 (new_poly_dr): Update declaration.
4425 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
4426 (build_poly_dr): Call pdr_add_data_dimensions.
4428 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4430 * graphite-poly.h (struct poly_dr): Fix comment.
4431 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
4432 (pdr_add_memory_accesses): New.
4433 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
4435 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4437 * graphite-poly.c (print_pdrs, debug_pdrs): New.
4438 (print_pbb): Add call to print_pdrs.
4439 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
4441 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
4442 Li Feng <nemokingdom@gmail.com>
4444 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
4445 (dependency_between_pbbs_p): New.
4446 (lexicographically_gt_p): Assure !empty_p before polyhedron
4447 intersection assign.
4448 (build_lexicographically_gt_constraint): Correct lexicographically
4450 * graphite-dependences.h: New.
4451 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
4453 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4455 * graphite-clast-to-gimple.c (print_clast_stmt): New.
4456 (gloog): Print to dump_file the generated clast.
4457 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
4458 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
4460 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4462 * graphite-poly.c (extend_scattering): Increment
4463 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
4465 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4467 * graphite-interchange.c (compute_array_size_poly): Added exit of
4468 recursion condition. Continue iterating even after the first equality.
4469 (compute_array_size): Same.
4471 2009-06-24 Li Feng <nemokingdom@gmail.com>
4473 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
4474 -fdump-tree-final_cleanup to -fdump-tree-optimized.
4475 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
4476 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
4477 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
4479 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4481 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
4482 only when the use verifies is_gimple_reg.
4484 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4486 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
4487 Allocate scaldims after call to unify_scattering_dimensions.
4489 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4491 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
4493 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4494 Albert Cohen <albert.cohen@inria.fr>
4496 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
4497 variables for the strip mining.
4499 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4500 Pranav Garg <pranav.garg2107@gmail.com>
4502 * Makefile.in (OBJS-common): Added graphite-blocking.o.
4503 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
4504 (graphite-blocking.o): New rule.
4505 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
4506 * graphite-blocking.c: New.
4507 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
4508 flag_loop_strip_mine.
4509 (psct_scattering_dim_for_loop_depth): New.
4510 * graphite-poly.h (scop_do_strip_mine): Declared.
4511 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
4512 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
4513 flag_loop_strip_mine.
4515 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4517 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
4518 a GMP value and a PPL coefficient at each iteration of a loop.
4520 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4522 * graphite-dependences.c (dependence_polyhedron): Do not use
4523 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
4524 pbb_nb_scattering_transform.
4525 (graphite_legal_transform_dr): Same.
4526 * graphite-poly.c (extend_scattering): Same.
4527 (unify_scattering_dimensions): Same.
4528 (print_scattering_function): Same.
4529 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
4530 PBB_NB_LOCAL_VARIABLES.
4531 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
4532 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
4533 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
4534 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
4535 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
4536 (pbb_nb_scattering_transform): New.
4537 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
4538 (psco_scattering_dim): Add assert on parameters.
4539 (psct_scattering_dim): Same.
4540 (psct_scattering_dim_for_loop_depth): Declared.
4541 (psct_local_var_dim): New.
4542 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
4543 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
4544 correct layout, call pbb_nb_local_vars.
4545 (psct_add_local_variable, psct_add_scattering_dimension): New.
4546 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
4547 Initialize PBB_NB_SCATTERING_TRANSFORM.
4549 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4551 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
4552 (set_coef): Renamed ppl_set_coef.
4553 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
4555 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4557 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
4558 test a boolean against 1.
4559 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
4560 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
4561 (pbb_do_interchange): Returns true when a transform has been performed.
4562 (scop_do_interchange): Same.
4563 * graphite-poly.c (apply_poly_transforms): Use the return value of
4564 scop_do_interchange.
4565 * graphite-poly.h (scop_do_interchange): Update declaration.
4567 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
4569 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
4571 * sese.c (sese_reset_aux_in_loops): New.
4572 * sese.h (sese_reset_aux_in_loops): New.
4574 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4576 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
4577 multiplier and multiply the constant by the multiplier.
4578 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
4579 (build_poly_dr): Do not use the multiplier to define the subscript.
4581 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4583 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
4584 compiler's data reference. Initialize PDR_CDR.
4585 (print_pdr): Call dump_data_reference.
4586 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
4587 Add compiler_dr field.
4588 (PDR_BB): Renamed PDR_PBB.
4590 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
4591 GCC's data reference representation.
4592 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
4593 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
4595 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4597 * graphite-poly.c (print_scattering_function): Also print the layout.
4598 * graphite-poly.h (pbb_nb_local_vars): New.
4600 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4602 * graphite-poly.c (print_pbb_domain): Also print the layout names.
4604 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4606 * graphite-poly.c (print_pdr, debug_pdr): New.
4607 * graphite-poly.h (print_pdr, debug_pdr): Declared.
4608 (PDR_BASE): Removed.
4610 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4612 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
4615 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4617 * graphite-interchange.c (compute_subscript): Allow also -1 in the
4618 subscript identification column.
4619 (pbb_do_interchange): Print to dump_file that some loops "will be
4620 interchanged". Rely on that chain of characters in the testcases.
4621 * gcc.dg/graphite/interchange-0.c: New.
4622 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
4623 interchange-*.c files and compile them with -floop-interchange.
4625 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
4627 * graphite-interchange.c (interchange_profitable_p): Renamed
4628 pbb_interchange_profitable_p.
4630 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4631 Harsha Jagasia <harsha.jagasia@amd.com>
4632 Pranav Garg <pranav.garg2107@gmail.com>
4634 * graphite-interchange.c (interchange_profitable_p): Make static.
4635 (pbb_interchange_loop_depths, pbb_do_interchange,
4636 scop_do_interchange): New.
4637 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
4638 for flag_loop_interchange.
4639 * graphite-poly.h (scop_do_interchange): Declared.
4640 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
4641 flag_loop_interchange is used.
4643 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4645 * graphite-dependences.c (dependence_polyhedron): Update use of
4646 pbb_nb_scattering_dims.
4647 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
4648 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
4649 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
4650 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
4652 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4654 * graphite.c: Cleanup foo.
4656 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4658 * Merge from mainline (r143684:148293).
4659 * Disabled libpcp until it gets fixed.
4661 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
4662 Harsha Jagasia <harsha.jagasia@amd.com>
4664 * graphite-interchange.c: New.
4665 * Makefile.in (graphite-interchange.o): New.
4666 * graphite-poly.h (interchange_profitable_p): Declared.
4667 * graphite-ppl.h (value_max): New.
4669 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4671 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
4672 * graphite-poly.h: Fix some comments.
4676 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4679 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
4680 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
4681 (pdr_accessp_nb_params): Renamed pdr_nb_params.
4682 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
4683 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
4684 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
4685 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
4686 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
4687 * graphite-clast-to-gimple.c: Same.
4688 * graphite-dependences.c: Same.
4689 * graphite-poly.c: Same.
4690 * graphite-sese-to-poly.c: Same.
4692 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4694 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
4695 expressions for an IV rename, as returned by clast_to_gcc_expression.
4696 (copy_renames): Rename new_name to expr.
4697 * sese.c (debug_rename_elt): Same.
4700 (sese_adjust_liveout_phis): Call force_gimple_operand before using
4701 the information from the rename map.
4702 (rename_variables_in_stmt): Same.
4703 (add_loop_exit_phis): Rename new_name to expr.
4704 (insert_loop_close_phis): Same.
4705 (add_guard_exit_phis): Same. Call force_gimple_operand.
4706 * sese.h (struct rename_map_elt): Rename new_name to expr.
4707 (new_rename_map_elt): Same.
4709 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4711 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
4712 * sese.c (set_rename): Make it extern.
4713 * sese.h (set_rename): Declared.
4715 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4717 * graphite-poly.c (extend_scattering): Free values.
4718 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
4720 (ppl_print_powerset_matrix): Same.
4721 * graphite-scop-detection.c (free_scops_1): New.
4722 (limit_scops): Call free_scops_1.
4723 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
4724 (build_poly_dr): Free PPL coefficients.
4725 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
4727 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
4729 * graphite-dependences.c: New.
4730 * graphite-data-ref.c: Removed.
4731 * graphite-data-ref.h: Removed.
4732 * Makefile.in (graphite-data-ref.o): Removed.
4733 (graphite-dependences.o): Added.
4734 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
4735 * graphite-poly.c: Same.
4736 Move the data dependence testing to graphite-dependences.c.
4738 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
4740 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
4741 from graphite_cannot_represent_loop. Code refactored.
4742 (scopdet_basic_block_info): Call graphite_can_represent_loop.
4744 2009-05-17 Li Feng <nemokingdom@gmail.com>
4746 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
4747 Cover all the testcases (not only the filtered ones).
4749 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
4751 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
4752 unnecessary check. Update comments. Move check for REAL_TYPE here.
4753 (harmful_stmt_in_bb): Remove checks for conditions. This is already
4754 done in (stmt_simple_for_scop_p).
4756 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
4758 * graphite.c (print_global_statistics): New.
4759 (print_graphite_scop_statistic): New.
4760 (print_graphite_statistics): New.
4761 (graphite_initialize, graphite_transform_loops): Print statistics.
4762 * graphite-scop-detection (build_scops): Print statistics.
4763 (print_graphite_scop_statistics): New.
4764 (print_graphite_statistics): New.
4766 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4768 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
4769 (debug_clast_name_index): Removed.
4770 (debug_clast_name_indexes_1): Removed.
4771 (debug_clast_name_indexes): Removed.
4772 (clast_name_index_elt_info): Removed.
4773 (eq_clast_name_indexes): Removed.
4774 (clast_name_to_index): Removed.
4775 (new_clast_name_index): Removed.
4776 (save_clast_name_index): Removed.
4777 (save_var_name): Moved...
4778 (init_sese_params_index): Removed.
4779 (clast_name_to_gcc): Remove use of name_tree.
4780 (initialize_cloog_names): Same.
4781 (gloog): Do not call init_sese_params_index.
4782 * graphite-sese-to-poly.c (save_var_name): ...here.
4783 (parameter_index_in_region): New.
4784 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
4785 (parameter_index_in_region): Removed.
4786 (is_parameter): Remove use of name_tree.
4787 * sese.h (struct name_tree): Removed.
4788 (struct sese): Remove use of name_tree. New field params_names.
4789 (SESE_PARAMS_NAMES): New.
4790 (SESE_PARAMS): Remove duplicate.
4791 (parameter_index_in_region): Removed.
4792 (sese_nb_params): Remove use of name_tree.
4793 (struct clast_name_index): New.
4794 (new_clast_name_index): New.
4795 (clast_name_to_index): New.
4796 (save_clast_name_index): New.
4797 (debug_clast_name_index): New.
4798 (debug_clast_name_indexes_1): New.
4799 (debug_clast_name_indexes): New.
4800 (clast_name_index_elt_info): New.
4801 (eq_clast_name_indexes): New.
4803 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4805 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
4806 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
4807 (graphite_loop_normal_form): Do not pass region. Do not
4808 initialize SESE_OLDIVS.
4809 (build_graphite_loop_normal_form): Update call to
4810 graphite_loop_normal_form.
4811 * sese.c (debug_oldivs): Removed.
4812 (new_sese): Do not initialize SESE_OLDIVS.
4813 (free_sese): Do not free SESE_OLDIVS.
4814 (oldiv_for_loop): Removed.
4815 * sese.h (struct sese): Remove old_ivs.
4816 (SESE_OLDIVS): Removed.
4817 (oldiv_for_loop): Removed.
4819 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4821 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
4822 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
4823 replaced by a call to newivs_to_depth_to_newiv.
4824 (clast_to_gcc_expression): Pass newivs, remove ivstack.
4825 (clast_to_gcc_expression_red): Same.
4826 (gcc_type_for_clast_expr): Same.
4827 (gcc_type_for_clast_eq): Same.
4828 (graphite_translate_clast_equation): Same.
4829 (graphite_create_guard_cond_expr): Same.
4830 (graphite_create_new_guard): Same.
4831 (graphite_create_new_loop): Same.
4832 (build_iv_mapping): Same.
4833 (translate_clast): Same.
4835 (loop_iv_stack_patch_for_consts): Removed. *
4836 sese.c (iv_stack_entry_is_constant): Removed.
4837 (iv_stack_entry_is_iv): Removed.
4838 (loop_iv_stack_push_iv): Removed.
4839 (loop_iv_stack_insert_constant): Removed.
4840 (loop_iv_stack_pop): Removed.
4841 (loop_iv_stack_get_iv): Removed.
4842 (loop_iv_stack_get_iv_from_name): Removed.
4843 (debug_loop_iv_stack): Removed.
4844 (free_loop_iv_stack): Removed.
4845 (loop_iv_stack_remove_constants): Removed. *
4846 sese.h (iv_stack_entry_kind): Removed.
4847 (iv_stack_entry_data_union): Removed.
4848 (iv_stack_entry_struct): Removed.
4849 (iv_stack_entry_p): Removed.
4850 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
4851 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
4852 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
4853 loop_iv_stack_pop, free_loop_iv_stack): Removed.
4854 (gbb_loop_at_index): Fix indenting.
4855 (gbb_loop_index): Removed.
4857 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4859 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
4860 Call clast_name_to_index.
4862 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4864 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
4865 do not pass params. Get params from SESE_PARAMS.
4866 (clast_to_gcc_expression): Same.
4867 (clast_to_gcc_expression_red): Same.
4868 (gcc_type_for_clast_eq): Same.
4869 (graphite_translate_clast_equation): Same.
4870 (graphite_create_new_loop): Same.
4871 * sese.c (rename_variables_in_stmt): Fix comment.
4873 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4875 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
4877 Call save_clast_name_index.
4878 (translate_clast): Pass newivs_index.
4879 (gloog): Create and free newivs_index.
4881 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4883 * graphite-clast-to-gimple.c (clast_name_index): New structure.
4884 (clast_name_index_p): New type.
4885 (debug_clast_name_index): New.
4886 (debug_clast_name_indexes_1): New.
4887 (debug_clast_name_indexes): New.
4888 (clast_name_index_elt_info): New.
4889 (eq_clast_name_indexes): New.
4890 (clast_name_to_index): New.
4891 (new_clast_name_index): New.
4892 (save_clast_name_index): New.
4893 (init_sese_params_index): New.
4894 (gloog): Call init_sese_params_index.
4895 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
4896 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
4897 (free_sese): Free SESE_PARAMS_INDEX.
4898 * sese.h (struct sese): Add params_index.
4899 (SESE_PARAMS_INDEX): New.
4901 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4903 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
4904 (graphite_create_new_loop): Pass the newivs vector. Push the
4905 newly created IV to newivs.
4906 (translate_clast): Pass the newivs vector.
4907 (gloog): Create and destroy the newivs vector.
4909 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4911 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
4912 (graphite_loop_normal_form): Initialize loop->aux with the unique
4913 IV that has been created.
4915 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
4917 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
4918 scev with parameters in the base part. They where forbidden
4921 2009-05-11 Li Feng <nemokingdom@gmail.com>
4923 * gcc.dg/graphite/graphite.exp: Set different default
4924 compile options by file names.
4925 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
4926 * gcc.dg/graphite/id-{1-9}.c: Ditto.
4927 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
4928 * gcc.dg/graphite/scop-matmult.c: Ditto.
4930 2009-05-08 Li Feng <nemokingdom@gmail.com>
4932 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
4933 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
4934 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
4935 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
4937 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4939 * graphite-scop-detection (build_scops_1): Fix little bug introduced
4942 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4944 * graphite-scop-detection.c (graphite_can_represent_scev): Only
4945 allow integer constant strides.
4946 (graphite_can_represent_expr): Depend on outermost_loop.
4947 (stmt_simple_memref_p, graphite_cannot_represent_loop,
4948 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
4949 build_scops_1): Same.
4950 (scopdet_basic_block_info): Same and insert layered SCoP
4952 (try_generate_gimple_bb): Cleanup.
4953 (build_scops): Enable data references.
4955 * gcc.dg/graphite/id-5.c: New.
4956 * gcc.dg/graphite/id-9.c: New.
4957 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
4958 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
4960 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4962 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
4963 that we have not yet built for this SCoP.
4965 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4967 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
4968 for complex numbers.
4970 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4972 * graphite-ppl.c: Fix build if cloog is not available.
4974 2009-05-04 Li Feng <nemokingdom@gmail.com>
4976 * tree-parloops.c (loop_parallel_p): Remove construction of
4977 NITER and REDUCTION_LIST.
4978 (try_get_loop_niter): New.
4979 (try_create_reduction_list): New.
4980 (parallelize_loops): Bypass the failed checkings in autopar
4981 when can_be_parallel in loop structure is set to true.
4983 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4985 * gcc.dg/graphite/id-6.c: Update testcase.
4986 * gcc.dg/graphite/scop-3.c: Dito.
4988 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4990 * graphite-scop-detection.c (stmt_simple_for_scop_p):
4991 Enable EQ_EXPR and NE_EXPR again.
4993 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4995 * graphite-scop-detection.c (graphite_can_represent_scev):
4996 Add check if scev is affine multivariate.
4997 (harmful_stmt_in_bb): Check if we can represent the conditions.
4998 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
5000 * gcc.dg/graphite/id-7.c: New.
5002 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
5004 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
5005 Check all bbs in region, not only the bbs that are represented in
5007 (build_poly_scop): Add newline.
5008 * gcc.dg/graphite/id-8.c: New.
5010 2009-04-30 Li Feng <nemokingdom@gmail.com>
5012 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
5013 when loop initialize.
5014 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
5015 * common.opt: Declare flag_graphite_force_parallel.
5016 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
5018 * graphite-poly.c (apply_poly_transforms): Introduce
5019 flag_graphite_force_parallel.
5020 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
5021 * toplev.c (process_options): ditto and replace a not correctly
5024 2009-04-30 Li Feng <nemokingdom@gmail.com>
5026 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
5027 Change the call of gbb_loop_at_index and/or gbb_loop_index due
5028 to the redefinition.
5029 (compute_cloog_iv_types_1): ditto.
5030 (build_iv_mapping): ditto.
5031 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
5033 (free_gimple_bb): Removed GBB_LOOPS related free part.
5034 (build_bb_loops): Removed.
5035 * sese.h (struct gimple_bb): Removed loops.
5036 (GBB_LOOPS): Removed.
5037 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
5038 (gbb_loop_index): ditto.
5040 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
5042 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
5043 allow non constant strides.
5044 * gcc.dg/graphite/scop-20.c: New.
5046 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5048 * graphite-scop-detection.c (dot_all_scops): Fix system call
5049 return value warning.
5052 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5054 * gcc.dg/graphite/id-6.c: Fix pattern.
5055 * gcc.dg/graphite/scop-3.c: Same.
5057 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5059 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
5060 build_pairwise_constraint, dr_equality_constraints,
5061 build_pairwise_scheduling_equality,
5062 build_pairwise_scheduling_inequality, lexicographically_gt_p,
5063 build_lexicographically_gt_constraint, dependence_polyhedron,
5064 graphite_legal_transform_dr, graphite_legal_transform_bb,
5065 graphite_legal_transform): New.
5066 * graphite-poly.h (graphite_legal_transform): Declared.
5067 * graphite-sese-to-poly.c (build_poly_scop): Call to
5068 graphite_legal_transform is disabled for the moment.
5070 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5072 * graphite-poly.h (pbb_nb_scattering_dims): New.
5073 (pbb_nb_scattering): Use it.
5075 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5077 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
5078 Pointset_Powerset version of ppl_insert_dimensions.
5079 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
5081 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5083 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
5085 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5087 * graphite-poly.h: Fix comment.
5089 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
5091 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
5093 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
5095 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
5098 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
5100 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
5101 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
5104 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
5106 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
5107 handle EQ_EXPR and NE_EXPR.
5109 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
5111 * graphite-poly.h (poly_dr): Fix comment.
5113 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
5114 Tobias Grosser <grosser@fim.uni-passau.de>
5116 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
5117 with a zero dimension polyhedron.
5118 (find_scop_parameters): Move the call to scop_set_nb_params here.
5119 (build_loop_iteration_domains): Store in loop->aux the iteration
5121 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
5122 by any loop in scop.
5123 (build_poly_scop): Do not call scop_set_nb_params.
5125 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
5126 Tobias Grosser <grosser@fim.uni-passau.de>
5128 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
5129 add_condition_to_domain not GT_EXPR.
5131 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
5133 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
5134 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
5135 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
5136 upper_bound_assign to calculate unions.
5137 * gcc.dg/graphite/id-6.c: New.
5139 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
5141 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
5142 handle abnormal edges.
5144 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
5146 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
5147 (free_poly_bb): Also free poly_drs.
5148 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
5149 (poly_dr): Polyhedron to Pointset_Powerset.
5150 (pdr_accessp_nb_subscripts): Same.
5151 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
5154 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5156 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
5157 names into more meaningful names.
5159 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5161 * gfortran.dg/graphite/interchange-1.c: New.
5162 * gfortran.dg/graphite/interchange-2.c: New.
5164 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5166 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
5168 * tree-parloops.c (rewrite_phi_with_iv): New.
5169 (rewrite_all_phi_nodes_with_iv): New.
5170 (canonicalize_loop_ivs): Call them.
5172 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5174 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
5175 graphite_find_data_references_in_stmt.
5176 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
5177 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
5179 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5181 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
5183 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5185 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
5186 instead of bb_in_region.
5187 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
5188 (build_sese_conditions): Use flag_bb_in_sese.
5189 * sese.c (register_bb_in_sese): Removed.
5190 (new_sese): Remove initialization of SESE_REGION_BBS.
5191 (free_sese): Do not free SESE_REGION_BBS.
5192 * sese.h (struct sese): Remove field region_basic_blocks.
5193 (SESE_REGION_BBS): Removed.
5194 (bb_in_sese_p): Implement in function of bb_in_region.
5196 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5198 * graphite-scop-detection.c (limit_scops): Deal only with single exit
5201 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
5203 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
5205 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
5206 (add_condition_to_domain): New.
5207 (add_condition_to_pbb): New.
5208 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
5209 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
5211 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
5213 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
5214 ppl_Pointset_Powerset.
5215 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
5216 * graphite-poly.h (poly_bb): poly_bb.domain Same.
5217 (pbb_nb_loops): Same.
5218 * graphite-sese-to-poly.c (build_loop_iteration_domains,
5219 add_conditions_to_domain): Same.
5220 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
5221 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
5222 ppl_const_Polyhedron_t.
5223 (ppl_print_powerset_matrix): New.
5224 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
5225 ppl_print_powerset_matrix): New.
5226 (ppl_print_polyhedron_matrix): Updated.
5228 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
5230 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
5232 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
5234 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
5235 (print_iteration_domains, debug_iteration_domain,
5236 debug_iteration_domains): New.
5237 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
5238 debug_iteration_domains): Declared.
5239 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
5242 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
5243 Sebastian Pop <sebastian.pop@amd.com>
5245 * graphite-poly.h (print_iteration_domain): New.
5246 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
5247 (build_sese_conditions_1, build_sese_conditions_after,
5248 build_sese_conditions_before): New.
5249 (build_sese_conditions): Rewritten.
5251 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
5252 Tobias Grosser <grosser@fim.uni-passau.de>
5254 Cleanup of code generation liveouts.
5255 * graphite-clast-to-gimple.c (translate_clast): Use a single
5256 rename_map instead of one per translated statement.
5257 Do not use SESE_LIVEOUT_RENAMES.
5258 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
5259 (gloog): Do not use SESE_LIVEOUT_RENAMES.
5260 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
5261 phi node of a reduction: when a loop contains a reduction used outside
5262 the loop, there should be a scalar close phi node on the exit block.
5263 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
5264 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
5265 (free_sese): Do not free them.
5266 (sese_build_liveouts_use): Do not use them.
5267 (sese_build_liveouts_bb): Same.
5268 (sese_build_liveouts): Same.
5269 (sese_insert_phis_for_liveouts): Same.
5270 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
5271 (defined_in_loop_p): New.
5272 (alive_after_loop): New.
5273 (close_phi_not_yet_inserted_p): New.
5274 (struct alep, alep_p): New.
5275 (add_loop_exit_phis): Remove from the rename_map all the names defined
5276 in the code generated loop.
5277 (insert_loop_close_phis): Traverse the rename_map passed to it.
5278 Don't use SESE_LIVEOUT_RENAMES.
5279 (default_liveout_before_guard): Renamed default_before_guard.
5280 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
5281 (graphite_copy_stmts_from_block): Do not directly call set_rename.
5282 (register_sese_liveout_renames): Removed.
5283 (copy_bb_and_scalar_dependences): Do not call it.
5284 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
5286 (SESE_LIVEOUT): Removed.
5287 (SESE_LIVEOUT_RENAMES): Removed.
5288 (SESE_REDUCTION_LIST): Removed.
5289 (sese_build_liveouts): Removed.
5290 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
5291 (insert_loop_close_phis): Pass a htab_t instead of a sese.
5292 (insert_guard_phis): Same.
5293 (rename_map_elt): Declare a VEC of them.
5294 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
5295 trees not pointers to trees.
5297 Rewrite in canonical close SSA form:
5298 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
5299 (limit_scops): Close the scop after the block containing the close phi
5301 (canonicalize_loop_closed_ssa): New.
5302 (canonicalize_loop_closed_ssa_form): New.
5303 (build_scops): Call canonicalize_loop_closed_ssa_form.
5305 * graphite-sese-to-poly.c: Fix typos.
5307 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
5309 * graphite-poly.c (print_scattering_function, print_pbb_domain):
5311 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
5312 (print_pbb): Add conditions.
5314 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
5315 Sebastian Pop <sebastian.pop@amd.com>
5317 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
5318 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
5319 (build_scop_bbs_1): New.
5320 (build_scop_bbs): Rewrite.
5321 * sese.h (bb_in_region): New.
5323 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5325 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
5327 (print_scop): Style.
5328 * graphite-poly.h (poly_bb): Add drs vector.
5329 (PBB_DRS): Add accessor.
5330 * graphite-sese-to-poly.c (build_poly_dr): New.
5331 (build_pbb_drs, build_scop_drs): New.
5332 (build_poly_scop): call build_scop_drs (Disabled at the moment).
5334 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5336 * tree-ssa-loop.c: Include forgotten toplev.h
5338 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5340 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
5341 * gcc.dg/graphite/pr37883.c: Remove -floop-*
5342 * gcc.dg/graphite/pr37928.c: Same
5343 * gcc.dg/graphite/pr38409.c: Same
5344 * gcc.dg/graphite/pr38498.c: Same
5345 * gcc.dg/graphite/pr38559.c: Same
5346 * gcc.dg/graphite/pr39335.c: Same
5347 * gcc.dg/graphite/pr39335_1.c: Same
5348 * gfortran.dg/graphite/block-2.f: Same
5349 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
5352 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
5354 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
5355 build_access_matrix, build_scop_data_accesses): Remove access function
5356 building. (We get a new version soon).
5357 (build_bb_loops, scan_tree_for_params_right_scev): Update.
5358 * sese.h (nb_loops_around_loop_in_sese): Remove.
5359 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
5361 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
5362 Sebastian Pop <sebastian.pop@amd.com>
5364 * graphite-scop-detection.c (struct scopdet_info): Rename last
5366 (scopdet_basic_block_info, build_scops_1): Don't use
5367 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
5369 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
5370 Sebastian Pop <sebastian.pop@amd.com>
5372 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
5373 * sese.c (sese_build_liveouts_use): Renamed from
5374 sese_build_livein_liveouts_use. Remove liveins.
5375 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
5376 Call sese_build_liveouts_use.
5377 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
5378 Call sese_build_liveouts_bb.
5379 (new_sese, free_sese): Remove liveins.
5380 (sese_add_exit_phis_var): Deleted.
5381 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
5383 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
5385 * sese.h (sese): Remove num_ver and livein.
5386 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
5388 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
5390 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
5392 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
5394 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
5395 (build_scop_scattering): Do not use compare_prefix_loops any more.
5396 (nb_common_loops): New.
5398 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5400 * sese.c (get_new_name_from_old_name): Renamed get_rename.
5401 (register_old_and_new_names): Renamed set_rename.
5403 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5405 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
5406 of the decl from the previous commit.
5408 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5410 * graphite-scop-detection.c (dot_scop): New.
5411 * graphite-scop-detection.h (dot_scop): Declared.
5413 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5415 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
5417 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5419 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
5420 condition at the end of the loop.
5421 * graphite.c (graphite_initialize, graphite_finalize): Print to
5422 dump_file the compiled function.
5423 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
5424 of create_empty_loop_on_edge.
5425 (translate_clast): Update the code generation of loops for the new
5427 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
5429 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5431 Reverted the patch from 2009-03-19.
5433 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
5435 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
5437 (print_scop): Style.
5438 * graphite-poly.h (poly_bb): Add drs vector.
5439 (PBB_DRS): Add accessor.
5440 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
5441 (build_access_matrix_with_af, build_access_matrix,
5442 build_scop_data_accesses): Delete.
5443 (build_poly_dr): New.
5444 (build_pbb_drs, build_scop_drs): New.
5445 (build_poly_scop): call build_scop_drs.
5447 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
5449 * graphite-scop-detection.c (dot_all_scops_1): Close the table
5450 once per basic block.
5452 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
5454 * graphite-scop-detection.c (graphite_can_represent_scev): New.
5455 (graphite_can_represent_expr): Renamed from loop_affine_expr
5457 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
5458 (graphite_cannot_represent_loop): Add scop_entry to parameters.
5459 (scopdet_basic_block_info): Actually define entry_block.
5460 (stmt_simple_memref_p): Moved here from ...
5462 * tree-data-ref.c (stmt_simple_memref_p): here.
5463 * tree-data-ref.h (stmt_simple_memref_p): Removed.
5465 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
5467 * gcc.dg/graphite/id-4.c: New.
5469 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
5471 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
5472 (register_old_and_new_names): Update the content of the map.
5473 When there was already a rename_map_elt in the map at that
5475 (copy_bb_and_scalar_dependences): Do rename_variables after
5476 expand_scalar_variables.
5477 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5478 of the map. When there was already a rename_map_elt in the
5479 map at that location, free it.
5480 (translate_clast): Pass the rename_map. Do not initialize and free
5481 a rename_map per stmt_user.
5482 (gloog): Initialize and free one rename_map and pass it to
5485 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
5487 * sese.c (expand_scalar_variables_stmt,
5488 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
5490 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
5491 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
5492 the gimple_stmt_iterator of the statement to be expanded.
5493 * graphite-scop-detection.c (is_simple_operand): Do handle
5496 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5498 * graphite-scop-detection.c (is_simple_operand): Do not handle
5500 * gcc.dg/graphite/id-2.c: New.
5502 * graphite-sese-to-poly.c (build_bb_loops,
5503 add_value_to_dim, scan_tree_for_params_right_scev,
5504 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
5505 find_params_in_bb, build_loop_iteration_domains,
5506 add_conditions_to_domain): Remove subtract.
5508 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5510 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
5511 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
5512 pbb_loop_at_index -> gbb_loop_at_index.
5513 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
5514 (debug_loop_vec): Delete.
5515 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
5516 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
5517 (PBB_LOOPS): Removed.
5518 (PBB_BLACK_BOX): Insert cast.
5519 (pbb_set_black_box): New setter.
5520 (pbb_loop_at_index, pbb_loop_index): Removed.
5521 (scop_set_region, scop_set_nb_params): New.
5522 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
5523 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
5524 (build_poly_scop): Use scop_set_nb_params.
5525 * sese.h (gimple_bb): Add LOOPS.
5526 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
5528 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5530 Revert previous commit.
5532 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
5534 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
5535 (register_old_and_new_names): Update the content of the map.
5536 When there was already a rename_map_elt in the map at that
5538 (copy_bb_and_scalar_dependences): Do rename_variables after
5539 expand_scalar_variables.
5540 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5541 of the map. When there was already a rename_map_elt in the
5542 map at that location, free it.
5543 (translate_clast): Pass the rename_map. Do not initialize and free
5544 a rename_map per stmt_user.
5545 (gloog): Initialize and free one rename_map and pass it to
5548 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5550 Remove forgotten line in revert.
5552 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
5554 Revert previous commit.
5556 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
5558 * sese.c (register_old_and_new_names): Update the content
5559 of the map. When there was already a rename_map_elt in the
5560 map at that location, free it.
5561 (copy_bb_and_scalar_dependences): Do rename_variables after
5562 expand_scalar_variables.
5563 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5564 of the map. When there was already a rename_map_elt in the
5565 map at that location, free it.
5566 (translate_clast): Pass the rename_map. Do not initialize and free
5567 a rename_map per stmt_user.
5568 (gloog): Initialize and free one rename_map and pass it to
5571 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
5573 * graphite-clast-to-gimple.c (translate_clast): context_loop
5576 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
5577 Sebastian Pop <sebastian.pop@amd.com>
5579 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
5580 of the use of ppl_Polyhedron_map_space_dimensions.
5582 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
5583 Sebastian Pop <sebastian.pop@amd.com>
5585 * graphite-poly.c (unify_scattering_dimensions): Fix types.
5586 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
5587 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
5588 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
5589 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
5590 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
5591 pbb_nb_params): New.
5592 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
5593 nb_loops_around_pbb): Adapt return types.
5595 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
5597 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
5598 graphite-clast-to-gimple.o, graphite-data-ref.o,
5599 graphite-scop-detection.o, graphite-poly.o): Add
5602 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
5604 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
5605 graphite-clast-to-gimple.o, graphite-data-ref.o,
5606 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
5608 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
5610 * gcc.dg/graphite/pr37485.c: Remove -floop-block
5611 * gcc.dg/graphite/pr37828.c: Same.
5612 * gcc.dg/graphite/pr37684.c: Same.
5613 * gcc.dg/graphite/block-0.c: Same.
5614 * gcc.dg/graphite/block-1.c: Same.
5615 * gcc.dg/graphite/block-2.c: Same.
5616 * gcc.dg/graphite/block-3.c: Same.
5617 * gcc.dg/graphite/block-4.c: Same.
5618 * gcc.dg/graphite/block-5.c: Same.
5619 * gcc.dg/graphite/block-6.c: Same.
5620 * gfortran.dg/graphite/pr38083.f90: Same.
5621 * gfortran.dg/graphite/block-1.f90: Same.
5622 * gfortran.dg/graphite/block-3.f90: Same.
5623 * gfortran.dg/graphite/pr37852.f90: Same.
5624 * gfortran.dg/graphite/block-4.f90: Same.
5625 * gfortran.dg/graphite/pr37980.f90: Same.
5626 * gfortran.dg/graphite/pr38953.f90: Same.
5627 * gfortran.dg/graphite/pr37857.f90: Same.
5628 * opts.c: Remove -floop-block from -O2.
5629 * graphite-poly.c: Fail if -floop-block -floop-interchange or
5630 -floop-strip-mine are used.
5632 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
5633 Sebastian Pop <sebastian.pop@amd.com>
5635 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
5637 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
5638 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
5639 strip_mine_profitable_p, is_interchange_valid,
5640 graphite_trans_bb_block, graphite_trans_loop_block,
5641 graphite_trans_scop_block): Temporary removed.
5642 (extend_scattering, unify_scattering_dimensions): New.
5643 (print_scattering_function, graphite_read_transforms):
5644 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5645 (graphite_generate_scattering_fns): Removed.
5646 (apply_poly_transforms): Cleanup.
5647 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5648 (schedule_to_scattering): Moved.
5649 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
5650 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
5651 (pbb_nb_scattering): New.
5652 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5653 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
5655 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
5657 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5658 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
5659 -> PBB_TRANSFORMED_SCATTERING.
5660 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
5661 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
5662 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
5663 (check_poly_representation): Do not return bool.
5664 (graphite_transform_loops): Reformat.
5665 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
5667 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
5669 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
5670 debug_pbb_domain, debug_pbb, debug_scop): New.
5671 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
5672 debug_pbb_domain, debug_pbb, debug_scop): Declared.
5674 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5677 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
5678 when the type precision of the induction variable should be
5679 larger than the type precision of nit.
5680 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
5681 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
5682 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
5684 * gcc.dg/graphite/pr39335_1.c: New.
5685 * gcc.dg/graphite/pr39335.c: New.
5687 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5689 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
5690 SSA_NAMES not struct reduction_info.
5692 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5694 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
5696 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5697 Tobias Grosser <grosser@fim.uni-passau.de>
5699 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
5700 (free_sese): Free SESE_REDUCTION_LIST.
5701 * sese.h (struct sese): Add field reduction_list.
5702 (SESE_REDUCTION_LIST): New.
5703 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
5704 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
5706 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5707 Tobias Grosser <grosser@fim.uni-passau.de>
5709 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
5712 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5713 Tobias Grosser <grosser@fim.uni-passau.de>
5715 * tree-parloops.c (struct brli, build_reduction_list_info,
5716 analyze_reduction_list, gather_scalar_reductions): New.
5717 (loop_parallel_p): Build a reduction list containing only
5718 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
5719 (gen_parallel_loop): Call the analysis analyze_reduction_list.
5720 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
5721 * tree-flow.h (gather_scalar_reductions): Declared.
5723 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
5726 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
5727 number_of_iterations_exit from a gcc_assert.
5729 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
5730 Jan Sjodin <jan.sjodin@amd.com>
5732 * output.h (graphite_out_file, graphite_in_file): Declared.
5733 * toplev.c (graphite_out_file, graphite_in_file): New.
5734 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
5735 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
5736 Don't call schedule_to_scattering.
5737 * common.opt (fgraphite-write, fgraphite-read): New.
5738 * graphite-poly.c: Include output.h.
5739 (print_scattering_function, print_scattering_functions,
5740 debug_scattering_function, debug_scattering_functions,
5741 graphite_write_transforms, graphite_read_transforms,
5742 graphite_generate_scattering_fns): New.
5743 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
5744 Call graphite_generate_scattering_fns, graphite_write_transforms,
5745 graphite_read_transforms.
5746 (new_poly_bb): Initialize PBB_SCATTERING.
5747 (free_poly_bb): Free PBB_SCATTERING.
5748 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
5749 * graphite-poly.h (struct poly_bb): Add field scattering.
5750 (PBB_SCATTERING): New.
5751 (print_scattering_function, print_scattering_functions,
5752 debug_scattering_function, debug_scattering_functions): Declared.
5753 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
5754 GMP values, not integers!
5755 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
5756 ppl_read_polyhedron_matrix): New.
5757 * graphite-ppl.h (ppl_print_polyhedron_matrix,
5758 debug_ppl_polyhedron_matrix,
5759 ppl_read_polyhedron_matrix): Declared.
5760 * Makefile.in (graphite-poly.o): Depends on output.h.
5762 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5763 Tobias Grosser <grosser@fim.uni-passau.de>
5766 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5767 scalar evolutions in the scop_entry->loop_father.
5769 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5770 Tobias Grosser <grosser@fim.uni-passau.de>
5772 * graphite.h (ref_nb_loops): Remove declaration.
5773 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
5774 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
5775 debug_gbb): Moved to sese.h.
5778 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5779 Tobias Grosser <grosser@fim.uni-passau.de>
5781 * graphite-data-ref.[ch]: Disable.
5783 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5784 Tobias Grosser <grosser@fim.uni-passau.de>
5786 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5787 scalar evolutions in the scop_entry->loop_father.
5789 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5791 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
5792 (graphite_cannot_represent_loop_niter): Renamed
5793 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
5794 (limit_scops): build_sese_loop_nests does not return a bool.
5795 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
5796 * sese.c (nb_reductions_in_loop): ... from here.
5797 (graphite_loop_normal_form): ... from here.
5798 (sese_record_loop): Does not fail, so does not return a bool.
5799 (build_sese_loop_nests): Same.
5800 * sese.h (build_sese_loop_nests): Update declaration.
5801 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
5802 (build_graphite_loop_normal_form): New.
5803 (gloog): Call build_graphite_loop_normal_form.
5804 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
5805 build_sese_loop_nests.
5807 * gcc.dg/graphite/id-1.c: New.
5809 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5810 Tobias Grosser <grosser@fim.uni-passau.de>
5812 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
5813 The SCoP detection fix is sufficient.
5815 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5817 PR tree-optimization/39260
5818 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
5819 the basic block contains a condition with a real type.
5820 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
5822 * gcc.dg/graphite/pr39260.c: New.
5824 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5826 * graphite-poly.c: Inlcude params.h.
5827 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
5829 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
5830 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
5832 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5833 Tobias Grosser <grosser@fim.uni-passau.de>
5835 * graphite-scop-detection.c (dot_all_scops_1,
5836 dot_all_scops): Moved here.
5837 * graphite-scop-detection.h (dot_all_scops): Declared here.
5838 * graphite.c (graphite_initialize, graphite_finalize): New.
5839 (graphite_transform_loops): Cleaned up.
5840 * sese.c (debug_oldivs): Moved here.
5841 * graphite-poly.c (graphite_apply_transformations): Renamed
5842 apply_poly_transforms.
5843 (debug_loop_vec): Moved here.
5844 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
5845 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
5846 find_scop_parameters, build_scop_iteration_domain,
5847 add_conditions_to_constraints, build_scop_canonical_schedules,
5848 build_scop_data_accesses): Now static.
5849 (build_poly_scop, check_poly_representation): New.
5851 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5853 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
5854 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
5855 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
5856 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
5857 scan_tree_for_params_right_scev, scan_tree_for_params_int,
5858 scan_tree_for_params, struct irp_data, dx_record_params,
5859 find_params_in_bb, find_scop_parameters, gbb_from_bb,
5860 build_loop_iteration_domains, add_conditions_to_domain,
5861 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
5862 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
5863 build_sese_conditions, add_conditions_to_constraints,
5864 build_scop_iteration_domain, build_access_matrix_with_af,
5865 build_access_matrix,
5866 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
5868 * graphite-sese-to-poly.c: New.
5869 * graphite-sese-to-poly.h: New.
5871 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
5873 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5875 * graphite.c: Split graphite code generation to a new file.
5876 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
5877 max_precision_type, clast_to_gcc_expression_red,
5878 clast_to_gcc_expression, gcc_type_for_clast_expr,
5879 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
5880 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
5881 graphite_create_new_guard, clast_get_body_of_loop,
5882 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
5883 graphite_create_new_loop, build_iv_mapping, copy_renames,
5884 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5885 compute_cloog_iv_types, free_scattering, save_var_name,
5886 initialize_cloog_names, build_scop_context, build_cloog_prog,
5887 set_cloog_options, debug_clast_stmt, scop_to_clast,
5888 print_generated_program, debug_generated_program,
5889 gloog): Moved to graphite-clast-to-gimple.c.
5891 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
5893 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
5894 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
5895 loop_iv_stack_pop, loop_iv_stack_get_iv,
5896 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
5897 free_loop_iv_stack, loop_iv_stack_remove_constants,
5898 debug_rename_elt, debug_rename_map_1, debug_rename_map,
5899 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
5900 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
5901 eq_ivtype_map_elts, sese_add_exit_phis_edge,
5902 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
5903 get_vdef_before_sese, sese_adjust_vphi,
5904 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
5905 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
5906 is_iv, expand_scalar_variables_ssa_name,
5907 expand_scalar_variables_expr, expand_scalar_variables_stmt,
5908 expand_scalar_variables, rename_variables, remove_condition,
5909 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
5910 add_loop_exit_phis, insert_loop_close_phis, struct igp,
5911 default_liveout_before_guard, add_guard_exit_phis,
5912 insert_guard_phis, register_old_and_new_names,
5913 graphite_copy_stmts_from_block, register_sese_liveout_renames,
5914 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
5915 if_region_set_false_region, create_if_region_on_edge,
5916 move_sese_in_condition): Moved to sese.c.
5918 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
5919 if_region_exit, if_region_get_condition_block,
5920 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
5921 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
5922 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
5923 ivtype_map_elt, new_ivtype_map_elt,
5924 recompute_all_dominators): Moved to sese.h.
5926 * graphite-clast-to-gimple.c: New.
5927 * graphite-clast-to-gimple.h: New.
5928 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
5929 * sese.c: Modified as said above.
5932 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5934 * graphite.c: Split scop detection to a new file.
5935 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
5936 move_sd_regions, loop_affine_expr, exclude_component_ref,
5937 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
5938 graphite_cannot_represent_loop_niter, struct scopdet_info,
5939 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
5940 find_single_entry_edge, find_single_exit_edge,
5941 create_single_entry_edge, sd_region_without_exit,
5942 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
5943 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
5944 Moved to graphite-scop-detection.c.
5946 * graphite-scop-detection.c: New.
5947 * graphite-scop-detection.h: New.
5948 * Makefile.in: Add new rule for graphite-scop-detection.o.
5950 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
5951 tree-scalar-evolution.h.
5952 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
5953 build_sese_loop_nests): Moved here from graphite.c.
5954 (param_index): Renamed parameter_index_in_region.
5956 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5957 Sebastian Pop <sebastian.pop@amd.com>
5959 * gcc.dg/graphite/block-0.c: Expected to fail now.
5960 * gcc.dg/graphite/block-1.c: Same.
5961 * gcc.dg/graphite/block-5.c: Same.
5962 * gcc.dg/graphite/block-6.c: Same.
5964 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5965 Sebastian Pop <sebastian.pop@amd.com>
5967 * graphite.h: Separate from graphite_bb_p the polyhedral
5968 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
5969 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
5970 graphite-data-ref.h.
5971 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
5972 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
5973 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
5974 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5975 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
5976 scop_nb_params): Moved to graphite-poly.h.
5977 * graphite-data-ref.c: Same.
5978 * graphite-data-ref.h: New.
5980 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
5981 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
5982 is_interchange_valid, graphite_trans_bb_block,
5983 graphite_trans_loop_block, scop_max_loop_depth,
5984 graphite_trans_scop_block, graphite_apply_transformations,
5985 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
5987 * graphite-poly.h: New.
5988 * graphite-poly.c: New.
5989 * Makefile.in (OBJS-common): Add graphite-poly.o.
5990 (graphite-poly.o): New rule.
5991 * tree-data-ref.h (struct data_reference): Remove unused scop field.
5994 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5995 Tobias Grosser <grosser@fim.uni-passau.de>
5997 * graphite.c: Replace gb -> gbb.
5999 * graphite-data-ref.c: Same.
6001 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
6002 Tobias Grosser <grosser@fim.uni-passau.de>
6004 * Makefile.in (OBJS-commmon): Add sese.o.
6006 (graphite.o): Add sese.h.
6007 * graphite.c (bb_in_ss_p, loop_in_sese_p,
6008 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
6009 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
6011 (block_before_scop): Add missing return.
6012 (new_scop, free_scop): Remove SESE data structures.
6013 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
6014 find_scop_parameters, build_loop_iteration_domains,
6015 add_conditions_to_domain, register_scop_liveout_renames,
6016 copy_bb_and_scalar_dependences): Scop -> SESE.
6018 (add_conditions_to_domain): SCoP -> SESE and remove check
6019 (scop_contains_non_iv_scalar_phi_nodes): New.
6020 (build_scop_conditions_1, build_scop_conditions): Remove check for
6021 non iv scalar phi nodes.
6022 (print_scop_statistics): New.
6023 (graphite_transform_loops): Cleanup.
6025 * graphite.h: Move to sese & cleanup.
6029 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6030 Tobias Grosser <grosser@fim.uni-passau.de>
6032 * graphite.c (build_scop_conditions_1): Conditions are only
6033 at the end of a basic block.
6035 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6036 Tobias Grosser <grosser@fim.uni-passau>
6038 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
6040 (GBB_ALPHA): Removed.
6042 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6043 Tobias Grosser <grosser@fim.uni-passau.de>
6045 * graphite-data-ref.c (graphite_test_dependence): Don't use
6046 GBB_DYNAMIC_SCHEDULE.
6047 * graphite.c (new_graphite_bb): Same.
6048 (free_graphite_bb): Same.
6049 (build_scop_dynamic_schedules): Removed.
6050 (graphite_transform_loops): Don't call it.
6051 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
6052 (GBB_DYNAMIC_SCHEDULE): Removed.
6054 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6055 Tobias Grosser <grosser@fim.uni-passau.de>
6057 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
6058 (print_graphite_bb): Same.
6059 (build_cloog_prog): Same.
6061 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6062 Tobias Grosser <grosser@fim.uni-passau.de>
6064 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
6066 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6067 Tobias Grosser <grosser@fim.uni-passau.de>
6069 * graphite.c (build_scop_context): Don't use CloogMatrix.
6070 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
6071 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
6073 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6074 Tobias Grosser <grosser@fim.uni-passau.de>
6076 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
6077 liveout_renames, add_params fields...
6078 (struct sese): ... here.
6079 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
6080 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
6082 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6083 Tobias Grosser <grosser@fim.uni-passau.de>
6085 * graphite.c (print_scop): Do not print the CLooG program.
6086 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
6087 build_cloog_prog, gloog): Don't use SCOP_PROG.
6088 (find_transform): Renamed scop_to_clast.
6089 (print_generated_program, debug_generated_program): New.
6090 (graphite_transform_loops): Adapt to new interface.
6091 * graphite.h (struct scop): Remove program field.
6092 (SCOP_PROG): Removed.
6093 (print_generated_program, debug_generated_program): Declared.
6095 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
6097 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
6098 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
6099 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
6100 free_graphite_bb, build_scop_canonical_schedules,
6101 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
6102 schedules are now represented using a ppl_Linear_Expression_t.
6103 * graphite.h (struct graphite_bb): Same.
6104 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
6105 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
6107 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
6109 * graphite.c: Free local memory.
6110 * graphite-ppl.c: Same.
6112 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
6114 * graphite.c (const_column_index, get_first_matching_sign_row_index,
6115 get_lower_bound_row, get_upper_bound_row, copy_constraint,
6116 swap_constraint_variables, scale_constraint_variable): Removed.
6117 (graphite_trans_bb_strip_mine): Remove pong.
6118 * graphite-ppl.c: Include missing header files.
6119 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
6120 * graphite-ppl.h (ppl_strip_loop): Declared.
6121 * Makefile.in (graphite-ppl.o): Adjust dependences.
6123 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
6125 * graphite.c (build_loop_iteration_domains): Remove ping pong.
6126 (build_scop_iteration_domain): Same.
6128 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
6130 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
6132 (add_value_to_dim, scan_tree_for_params_right_scev,
6133 scan_tree_for_params_int): New.
6134 * graphite-ppl.c (oppose_constraint): New.
6135 (insert_constraint_into_matrix): Implement missing cases.
6136 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
6138 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
6140 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
6141 use ppl_move_dimension.
6143 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
6145 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
6148 * graphite-ppl.c: Same.
6149 * graphite-ppl.h: Same.
6151 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
6153 Revert last 3 commits.
6155 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6157 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
6159 (add_value_to_dim, scan_tree_for_params_right_scev,
6160 scan_tree_for_params_int): New.
6161 * graphite-ppl.c (oppose_constraint): New.
6162 (insert_constraint_into_matrix): Implement missing cases.
6163 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
6165 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6167 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
6169 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6170 Tobias Grosser <grosser@fim.uni-passau.de>
6172 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
6173 use ppl_move_dimension.
6174 * graphite-ppl.c (ppl_move_dimension): New.
6175 * graphite-ppl.h (ppl_move_dimension): Declared.
6177 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6179 * graphite.c: Do not include cloog/cloog.h.
6180 (print_graphite_bb): Remove ping pong, call PPL print function.
6182 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
6184 * Makefile.in (OBJS-common): Add graphite-ppl.o.
6185 (graphite.o): Add dependence on graphite-ppl.h.
6186 (graphite-ppl.o): New.
6187 (graphite-data-ref.c): Ping pong between PPL data structures
6189 * graphite-ppl.c: New.
6190 * graphite-ppl.h: New.
6191 * graphite.c: Include graphite-ppl.h.
6192 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
6193 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
6194 Ping pong between PPL data structures and matrices.
6195 (new_graphite_bb): Create a PPL constraint system.
6196 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
6197 (build_loop_iteration_domains): Use PPL functions.
6198 * graphite.h: Include graphite-ppl.h. Fix comments.
6199 (graphite_bb): Use a ppl_Constraint_System_t instead of
6200 CloogMatrix for representing the domain.
6201 (scop): Remove static_schedule.
6202 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
6204 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
6206 * graphite.c: Fix some comments.
6208 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
6211 * graphite.c (if_region_set_false_region): After moving a region
6212 in the false branch of a condition, remove the empty dummy
6214 (gloog): Remove wrong fix for PR38953.
6216 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
6218 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
6219 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
6220 register_bb_in_sese, new_sese, free_sese): Moved.
6221 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
6222 outermost_loop_in_scop, build_scop_iteration_domain,
6223 expand_scalar_variables_ssa_name, get_vdef_before_scop,
6224 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
6225 Use loop_in_sese_p instead of loop_in_scop_p.
6226 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
6227 (free_scop): Do not free SCOP_BBS_B.
6228 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
6229 ref_nb_loops): Moved here...
6230 * graphite.h (ref_nb_loops): ... from here.
6231 (struct scop): Remove bbs_b bitmap.
6232 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
6233 * gcc.dg/graphite/scop-19.c: New
6235 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
6237 * graphite.c (scopdet_basic_block_info): Fix bug in scop
6240 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
6242 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
6243 eq_loop_to_cloog_loop): Remove.
6244 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
6245 * graphite.h (struct scop): Remove loop2cloog_loop.
6246 (loop_domain_dim, loop_iteration_vector_dim): Remove.
6248 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
6250 * opts.c (decode_options): Only add graphite options to O2
6251 if we compile with graphite enabled.
6253 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
6255 * Merge from mainline (r143163:143684).
6257 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
6259 * graphite.c (debug_value): Removed.
6260 * graphite.h (debug_value): Removed.
6262 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6264 * passes.c (init_optimization_passes): Do not call pass_copy_prop
6265 after graphite: pass_copy_prop does not maintain a proper loop closed
6266 SSA form. pass_copy_prop should be fixed.
6268 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6270 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
6272 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6274 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
6275 (gloog): Split the exit of the scop when the scop exit is a loop exit.
6276 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
6279 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
6281 * graphite.c (gloog): Return true when code gen succeeded.
6282 (graphite_transform_loops): Do not call cleanup_tree_cfg if
6283 the code of the function did not changed. After cleanup_tree_cfg
6284 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
6287 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
6289 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
6290 gimple_call_lhs is NULL.
6292 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
6293 Tobias Grosser <tobi.grosser@amd.com>
6295 * graphite.c (graphite_trans_scop_block): Do not block single
6298 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
6299 Tobias Grosser <tobi.grosser@amd.com>
6301 * graphite.c (build_scop_canonical_schedules): Start schedules at
6304 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
6305 Tobias Grosser <tobi.grosser@amd.com>
6307 * graphite.c (compare_prefix_loops): New.
6308 (build_scop_canonical_schedules): Rewritten.
6309 (graphite_transform_loops): Move build_scop_canonical_schedules
6310 after build_scop_iteration_domain.
6312 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6313 Tobias Grosser <tobi.grosser@amd.com>
6315 * graphite.c (add_conditions_to_domain): Add the loops to
6316 the dimension of the iteration domain. Do copy the domain
6317 only when it exists.
6318 (build_scop_conditions_1): Do not call add_conditions_to_domain.
6319 (add_conditions_to_constraints): New.
6320 (can_generate_code_stmt, can_generate_code): Removed.
6321 (gloog): Do not call can_generate_code.
6322 (graphite_transform_loops): Call add_conditions_to_constraints
6323 after building the iteration domain.
6325 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6326 Tobias Grosser <tobi.grosser@amd.com>
6327 Jan Sjodin <jan.sjodin@amd.com>
6329 * graphite.c (scan_tree_for_params): On substractions negate
6330 all the coefficients of the term.
6331 (clast_to_gcc_expression_red): New. Handle reduction expressions
6332 of more than two operands.
6333 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
6334 (get_vdef_before_scop): Handle also the case of default definitions.
6336 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6339 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
6340 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
6341 (gloog): Do not call cleanup_tree_cfg.
6342 (graphite_transform_loops): Call cleanup_tree_cfg after all
6343 scops have been code generated.
6345 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
6347 * passes.c (init_optimization_passes): Schedule after
6348 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
6350 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
6352 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
6354 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
6355 Set the type of an expression to the type of its assign statement.
6356 (expand_scalar_variables_expr): Do not pass loop_p.
6357 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
6358 (copy_bb_and_scalar_dependences): Do not pass loop_p.
6359 (translate_clast): Update call to copy_bb_and_scalar_dependences.
6361 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
6363 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
6364 an expression to the gimple_expr_type of its assign statement.
6365 (expand_scalar_variables_expr): Stop recursion on tcc_constant
6368 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
6370 PR tree-optimization/38786
6371 * gcc.dg/graphite/pr38786.c: New.
6372 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
6373 the SSA_NAME case of expand_scalar_variables_expr.
6374 (expand_scalar_variables_expr): Also gather the scalar computation
6375 used to index the memory access.
6376 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
6377 the gimple_stmt_iterator where it inserts new code.
6379 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
6381 * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
6383 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
6385 * opts.c (decode_options): Enable flag_graphite_identity and
6386 flag_loop_block in -O2 and above.
6388 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
6390 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
6391 Fix merge problem: replace with the file from trunk.
6393 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
6395 * Merge from mainline (r141727:143163).
6397 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
6398 Jan Sjodin <jan.sjodin@amd.com>
6400 PR tree-optimization/38559
6401 * gcc.dg/graphite/pr38559.c: New.
6403 * graphite.c (debug_value, copy_constraint,
6404 swap_constraint_variables, scale_constraint_variable, ): New.
6405 (get_lower_bound, get_upper_bound): Removed.
6406 (graphite_trans_bb_strip_mine): Clean up this code that works
6407 only for constant number of iterations. Fully copy upper and
6408 lower bound constraints, not only the constant part of them.
6409 * graphite.h (debug_value): Declared.
6411 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
6413 PR tree-optimization/38492
6414 PR tree-optimization/38498
6415 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
6416 * tree-chrec.h (scev_is_linear_expression): Declared.
6417 * graphite.c (graphite_cannot_represent_loop_niter): New.
6418 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
6419 (graphite_loop_normal_form): Use gcc_assert.
6420 (scan_tree_for_params): Use CASE_CONVERT.
6421 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
6422 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
6423 Use gcc_assert. Discard scops that contain unhandled cases.
6424 (build_scop_conditions): Return a boolean status for unhandled cases.
6425 (strip_mine_profitable_p): Print the loop number, not its depth.
6426 (is_interchange_valid): Pass the depth of the loop nest, don't
6427 recompute it wrongly.
6428 (graphite_trans_bb_block): Same.
6429 (graphite_trans_bb_block): Print tentative of loop blocking.
6430 (graphite_trans_scop_block): Do not print that the loop has been
6432 (graphite_transform_loops): Do not handle scops that contain condition
6435 * gcc.dg/graphite/pr38500.c: Fixed warning as committed
6437 * gcc.dg/graphite/block-0.c: Update test.
6438 * gcc.dg/graphite/block-1.c: Same.
6439 * gcc.dg/graphite/block-2.c: Remove xfail and test for
6441 * gcc.dg/graphite/block-4.c: Remove test for strip mine.
6442 * gcc.dg/graphite/block-3.c: New.
6443 * gcc.dg/graphite/pr38498.c: New.
6445 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
6447 PR tree-optimization/38510
6448 * gcc.dg/graphite/pr38510.c: New.
6449 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
6450 (translate_clast): Call recompute_all_dominators before
6452 (gloog): Call recompute_all_dominators before graphite_verify.
6454 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
6456 PR tree-optimization/38492
6457 * graphite.c (rename_map_elt, debug_rename_elt,
6458 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
6459 rename_map_elt_info, eq_rename_map_elts,
6460 get_new_name_from_old_name, bb_in_sese_p): Moved around.
6461 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
6462 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
6463 (sese_build_livein_liveouts): New.
6464 (new_sese, free_sese): New.
6465 (new_scop): Call new_sese.
6466 (free_scop): Call free_sese.
6467 (rename_variables_from_edge, rename_phis_end_scop): Removed.
6468 (register_old_new_names): Renamed register_old_and_new_names.
6469 (register_scop_liveout_renames, add_loop_exit_phis,
6470 insert_loop_close_phis, struct igp,
6471 default_liveout_before_guard, add_guard_exit_phis,
6472 insert_guard_phis, copy_renames): New.
6473 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
6474 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
6475 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
6476 (scop_adjust_phis_for_liveouts): New.
6477 (gloog): Call scop_adjust_phis_for_liveouts.
6479 * graphite.h (struct sese): Documented. Added fields liveout,
6481 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
6482 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
6483 (struct scop): Added field liveout_renames.
6484 (SCOP_LIVEOUT_RENAMES): New.
6486 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6488 PR tree-optimization/38409
6489 * gcc.dg/graphite/pr38409.c: New.
6490 * graphite.c (nb_reductions_in_loop): Use simple_iv.
6492 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6494 * graphite.c (gcc_type_for_cloog_iv): By default return
6496 (graphite_create_new_loop): Don't fold_convert the already
6497 fold_convert-ed expression.
6499 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
6501 PR tree-optimization/38446
6502 * gcc.dg/graphite/pr38446.c: New.
6503 * graphite.c (register_bb_in_sese): New.
6504 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
6505 looking at the bbs in the region.
6506 * graphite.h (sese): Add region_basic_blocks pointer set to
6507 structure and initialize at the time of defining new scop.
6509 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
6511 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
6512 (find_params_in_bb): Do not free data refs.
6513 (free_graphite_bb): Add FIXME on disabled free_data_refs.
6515 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6517 * gcc.dg/graphite/scop-16.c: Test only scop specific info.
6518 * gcc.dg/graphite/scop-17.c: Same.
6519 * gcc.dg/graphite/block-5.c: New.
6520 * gcc.dg/graphite/block-6.c: New.
6521 * gcc.dg/graphite/pr37485.c: Clean dump file after.
6522 * gcc.dg/graphite/pr37684.c: Same.
6523 * gcc.dg/graphite/block-2.c: Same.
6525 * graphite.c (struct ivtype_map_elt): New.
6526 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
6527 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
6528 gcc_type_for_cloog_iv): New.
6529 (loop_iv_stack_patch_for_consts): Use the type of the induction
6530 variable from the original loop, except for the automatically
6531 generated loops, i.e., in the case of a strip-mined loop, in
6532 which case there is no original loop: in that case just use
6534 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
6535 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
6536 (clast_name_to_gcc): Accept params to be NULL.
6537 (clast_to_gcc_expression): Take an extra parameter for the type.
6538 Convert to that type all the expressions built by this function.
6539 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
6540 (graphite_translate_clast_equation): Compute the type of the
6541 clast_equation before translating its LHS and RHS.
6542 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
6543 (graphite_create_new_loop): Compute the type of the induction
6544 variable before translating the lower and upper bounds and before
6545 creating the induction variable.
6546 (rename_variables_from_edge, rename_phis_end_scop): New.
6547 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
6548 (sese_add_exit_phis_edge): Do not use integer_zero_node.
6549 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
6550 compute_cloog_iv_types): New.
6551 (gloog): Call compute_cloog_iv_types before starting the
6552 translation of the clast.
6554 * graphite.h (struct graphite_bb): New field cloog_iv_types.
6555 (GBB_CLOOG_IV_TYPES): New.
6556 (debug_ivtype_map): Declared.
6557 (oldiv_for_loop): New.
6559 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
6562 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
6563 (param_index): Assert if parameter is not know after parameter
6565 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
6566 (find_scop_parameters): Mark, that we have finished parameter
6568 (graphite_transform_loops): Move condition detection before parameter
6570 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
6571 * gfortran.dg/graphite/pr38459.f90: New.
6573 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
6575 * graphite.c (graphite_transform_loops): Always call find_transform ()
6576 in ENABLE_CHECKING. So we test these code paths, even if we do not
6579 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
6581 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
6582 (print_scop): Ditto.
6584 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
6587 Fix gfortran.dg/graphite/id-3.f90.
6588 * graphite.c (scopdet_basic_block_info): Fix bug that found some
6589 regions more than once.
6591 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6593 Fix gfortran.dg/graphite/id-4.f90.
6594 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
6597 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6599 Fix gfortran.dg/graphite/id-1.f90.
6600 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
6601 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
6602 (max_precision_type): New.
6603 (value_clast): Removed.
6604 (clast_to_gcc_expression): Be more careful to types of expressions.
6605 Use max_precision_type and update use of gmp_cst_to_tree.
6606 (graphite_translate_clast_equation): Use max_precision_type.
6607 (graphite_create_guard_cond_expr): Do not use integer_type_node,
6608 use the type of the condition.
6609 (graphite_create_new_loop): Do not use integer_type_node, use the
6610 max_precision_type of lb and ub.
6612 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6614 * graphite.c (build_scops_1): Initialize open_scop.exit
6617 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
6619 * gcc.dg/graphite/pr38084.c: New.
6620 * gfortran.dg/graphite/id-1.f90: New.
6621 * gfortran.dg/graphite/id-2.f90: New.
6622 * gfortran.dg/graphite/id-3.f90: New.
6623 * gfortran.dg/graphite/id-4.f90: New.
6624 * gfortran.dg/graphite/pr37857.f90: New.
6626 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
6627 Jan Sjodin <jan.sjodin@amd.com>
6628 Harsha Jagasia <harsha.jagasia@amd.com>
6640 * gcc.dg/graphite/pr38073.c: New.
6641 * gcc.dg/graphite/pr37928.c: New.
6642 * gcc.dg/graphite/pr37883.c: New.
6643 * gcc.dg/graphite/pr38125.c: New.
6644 * gfortran.dg/graphite/pr38083.f90: New.
6645 * gfortran.dg/graphite/pr37852.f90: New.
6646 * gfortran.dg/graphite/pr37980.f90: New.
6648 * gcc.dg/graphite/scop-18.c: Remove reduction, test for
6649 the number of detected scops. Copy exact same test for loop
6651 * gcc.dg/graphite/block-1.c: Fix the number of expected
6652 loops to be blocked as reductions are not handled.
6653 * gcc.dg/graphite/block-4.c: ...here. New.
6655 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
6656 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
6658 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
6659 * Makefile.in (graphite.o): Depend on value-prof.h.
6660 (graphite.o-warn): Removed -Wno-error.
6661 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
6662 to be a NULL pointer. Call update_stmt. Return the newly created
6663 cannonical induction variable.
6665 * graphite.h (debug_rename_map): Declared. Fix some comments.
6667 * graphite.c: Reimplement the code generation from graphite to gimple.
6668 Include value-prof.h.
6669 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
6670 (get_old_iv_from_ssa_name): Removed.
6671 (graphite_stmt_p): New.
6672 (new_graphite_bb): Test for useful statements before building a
6673 graphite statement for the basic block.
6674 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
6675 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
6677 (recompute_all_dominators, graphite_verify,
6678 nb_reductions_in_loop, graphite_loop_normal_form): New.
6679 (scop_record_loop): Call graphite_loop_normal_form.
6680 (build_scop_loop_nests): Iterate over all the blocks of the
6681 function instead of relying on the incomplete information from
6682 SCOP_BBS. Return the success of the operation.
6683 (find_params_in_bb): Use the data from GBB_DATA_REFS.
6684 (add_bb_domains): Removed.
6685 (build_loop_iteration_domains): Don't call add_bb_domains.
6686 Add the iteration domain only to the basic blocks that have been
6687 translated to graphite.
6688 (build_scop_conditions_1): Add constraints only if the basic
6689 block have been translated to graphite.
6690 (build_scop_data_accesses): Completely disabled until data
6691 dependence is correctly implemented.
6692 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
6693 (remove_all_edges_1, remove_all_edges): Removed.
6694 (get_new_name_from_old_name): New.
6695 (graphite_rename_variables_in_stmt): Renamed
6696 rename_variables_in_stmt. Call get_new_name_from_old_name.
6697 Use replace_exp and update_stmt.
6698 (is_old_iv): Renamed is_iv.
6699 (expand_scalar_variables_stmt): Extra parameter for renaming map.
6700 Use replace_exp and update_stmt.
6701 (expand_scalar_variables_expr): Same. Use the map to get the
6702 new names for the renaming of induction variables and for the
6703 renaming of variables after a basic block has been copied.
6704 (expand_scalar_variables): Same.
6705 (graphite_rename_variables): Renamed rename_variables.
6706 (move_phi_nodes): Removed.
6707 (get_false_edge_from_guard_bb): New.
6708 (build_iv_mapping): Do not insert the induction variable of a
6709 loop in the renaming iv map if the basic block does not belong
6711 (register_old_new_names, graphite_copy_stmts_from_block,
6712 copy_bb_and_scalar_dependences): New.
6713 (translate_clast): Heavily reimplemented: copy basic blocks,
6714 do not move them. Finally, in call cleanup_tree_cfg in gloog.
6715 At each translation step call graphite_verify ensuring the
6716 consistency of the SSA, loops and dominators information.
6717 (collect_virtual_phis, find_vdef_for_var_in_bb,
6718 find_vdef_for_var_1, find_vdef_for_var,
6719 patch_phis_for_virtual_defs): Removed huge hack.
6720 (mark_old_loops, remove_dead_loops, skip_phi_defs,
6721 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
6722 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
6723 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
6724 if_region_get_condition_block, if_region_set_false_region,
6725 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
6726 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
6727 sese_add_exit_phis_edge, sese_add_exit_phis_var,
6728 rewrite_into_sese_closed_ssa): New.
6729 (gloog): Remove dead code. Early return if code cannot be
6730 generated. Call cleanup_tree_cfg once the scop has been code
6732 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
6733 block loops with less than two loops.
6734 (graphite_apply_transformations): Remove the call to
6735 scop_remove_ignoreable_gbbs.
6736 (limit_scops): When build_scop_loop_nests fails, continue on
6737 the next scop. Fix open_scop.entry.
6738 (graphite_transform_loops): Call recompute_all_dominators: force the
6739 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
6740 Call initialize_original_copy_tables and free_original_copy_tables
6741 to be able to copy basic blocks during code generation.
6742 When build_scop_loop_nests fails, continue on next scop.
6743 (value_clast): New union.
6744 (clast_to_gcc_expression): Fix type cast warning.
6746 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
6748 * Merge from mainline (r140838:141727).
6750 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6754 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
6756 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6760 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
6761 exits and conditions.
6762 * gcc.dg/graphite/pr37943.c: New.
6764 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6767 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
6769 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6771 * doc/invoke.texi: Fix spaces.
6773 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
6775 PR tree-optimization/37891
6776 Reverted last commit.
6777 * graphite.c (create_single_entry_edge): Set
6778 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6780 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
6781 Mitul Thakkar <mitul.thakkar@amd.com>
6783 * graphite.c (create_single_entry_edge): Set
6784 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6786 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
6788 * doc/invoke.texi: Add -fgraphite-identity.
6789 * graphite.c (graphite_apply_transformations): Check for
6790 -fgraphite-identity.
6791 * toplev.c (process_options): Add flag_graphite_identity.
6792 * tree-ssa-loop.c: Add flag_graphite_identity.
6794 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6796 Undo changes from 2008-10-02:
6797 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6798 operand type when copying the operand to a variable of different type.
6799 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6800 with the IV name after increment.
6802 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6803 Harsha Jagasia <harsha.jagasia@amd.com>
6805 PR tree-optimization/37828
6806 * gcc.dg/graphite/pr37828.c: New.
6807 * graphite.c (graphite_trans_loop_block): Do not loop block
6808 single nested loops.
6810 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
6811 Sebastian Pop <sebastian.pop@amd.com>
6813 * graphite.c (struct rename_map_elt, new_rename_map_elt,
6814 rename_map_elt_info, eq_rename_map_elts): New.
6815 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
6816 (expand_scalar_variables_expr): Change parameters.
6817 (expand_scalar_variables_stmt): Same.
6818 (expand_scalar_variables): Same.
6819 (graphite_rename_ivs): Rename graphite_rename_variables.
6820 (build_iv_mapping): New.
6821 (translate_clast): Call build_iv_mapping.
6822 * graphite.h (gbb_p): New name.
6824 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
6826 PR tree-optimization/37684
6827 * gcc.dg/graphite/pr37684.c: New.
6828 * graphite.c (exclude_component_ref): New.
6829 (is_simple_operand): Call exclude_component_ref.
6831 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
6832 Harsha Jagasia <harsha.jagasia@amd.com>
6834 PR tree-optimization/37485
6835 * gcc.dg/graphite/block-2.c: New
6836 * graphite.c (gmp_cst_to_tree): Moved.
6837 (iv_stack_entry_is_constant): New.
6838 (iv_stack_entry_is_iv): New.
6839 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
6840 (loop_iv_stack_insert_constant): New.
6841 (loop_iv_stack_pop): Use new datatpype.
6842 (loop_iv_stack_get_iv): Same.
6843 (loop_iv_stack_get_iv_from_name): Same.
6844 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
6845 (loop_iv_stack_patch_for_consts): New.
6846 (loop_iv_stack_remove_constants): New.
6847 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
6848 (translate_clast): Call loop_iv_stack_patch_for_consts and
6849 loop_iv_stack_remove_constants.
6850 (gloog): Use new datatype. Redirect construction edge to end
6851 block to avoid accidental deletion.
6852 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
6854 (union iv_stack_entry_data): New. Data in iv stack entry.
6855 (struct iv_stack_entry): New. Datatype for iv stack entries.
6857 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6859 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6860 operand type when copying the operand to a variable of different type.
6862 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6864 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6865 with the IV name after increment.
6867 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6869 * Merge from mainline (r140164:140838).
6871 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6873 * graphite-data-ref.c: New.
6874 * graphite.c (print_scop): Also dump the dependence graph.
6875 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
6876 (new_scop): Initialize SCOP_DEP_GRAPH.
6877 (build_scop_dynamic_schedules): New.
6878 (build_access_matrix_with_af): Fixed column numbering.
6879 (graphite_transform_loops): Call build_scop_dynamic_schedules.
6880 * graphite.h: Add ifndef/define guards against multiple inclusion.
6881 (struct scop): Add dep_graph field.
6882 (SCOP_DEP_GRAPH): Defined.
6883 (ref_nb_loops): Fixed and moved to other position.
6884 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
6885 (nb_loops_around_loop_in_scop): New.
6886 (graphite_dump_dependence_graph): Declared.
6887 (graphite_build_rdg_all_levels): Declared.
6888 (graphite_test_dependence): Declared.
6889 * Makefile.in (graphite-data-ref.o): New target.
6891 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
6893 * Merge from mainline (139870:140164).
6895 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6897 * Merge from mainline (138275:139870).
6898 * gcc.dg/graphite/scop-matmult.c: XFailed as one of
6899 the commits from trunk broke the niter detection.
6901 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6903 * graphite.c: Add more documentation. Fix formatting.
6904 (debug_loop_vec, debug_oldivs, loop_iv_stack,
6905 loop_iv_stack_debug): Moved...
6906 (schedule_to_scattering): Move before use.
6907 (dot_all_scops): Include in "#if 0" the code for system
6910 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
6911 loop_iv_stack_debug): ...here.
6913 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
6915 * tree-phinodes.c (make_phi_node): Extern.
6916 (add_phi_node_to_bb): New.
6917 (create_phi_node): Call add_phi_node_to_bb.
6918 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
6919 (remove_statement): Handle case where stored phi was updated
6920 and is no longer the same.
6921 * graphite.c (is_parameter): New.
6923 (expand_scalar_variables_expr): New.
6924 (expand_scalar_variables_stmt): New.
6925 (expand_scalar_variables): New.
6926 (move_phi_nodes): Create new phi instead of moving old one.
6927 (translate_clast): Call expand_scalar_variables.
6928 (find_vdef_for_var_in_bb): Also scan regular definitions.
6929 (skip_phi_defs): New.
6930 (collect_scop_exit_phi_args): New.
6931 (patch_scop_exit_phi_args): New.
6932 (gloog): Patch phis after scop.
6933 * tree-flow.h: (add_phi_node_to_bb): Declared.
6934 (make_phi_node): Declared.
6936 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6938 * graphite.c (end_scop): Split the entry of the scop when it
6939 is the header of the loop in which the scop is ending.
6940 (build_scops_1, limit_scops): Update uses of end_scop.
6942 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6944 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
6945 SCOP_ENTRY or SCOP_EXIT.
6947 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6949 * graphite.c (get_construction_edge): Removed.
6950 (gloog): Construction edge is the scop entry edge.
6952 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6954 * graphite.c (can_generate_for_scop): Removed.
6955 (gloog): Do not call it.
6957 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6959 * graphite.c (new_scop): Entry of a scop is an edge.
6960 Initialize SESE region.
6961 (free_scop): Free SESE region.
6962 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
6963 (split_difficult_bb): New, split from end_scop.
6964 (end_scop): Exit of a scop is an edge.
6965 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
6966 not automatically updated and thus is always wrong.
6967 * graphite.h (struct sese): New.
6970 (struct scop): New field for a SESE region. Remove entry, exit.
6971 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
6972 semantics as before. Moved comment around.
6974 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6975 Sebastian Pop <sebastian.pop@amd.com>
6977 * graphite.c (graphite_transform_loops): Always enable gloog
6978 and find_transform when ENABLE_CHECKING.
6980 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6982 * graphite.c (graphite_transform_loops): Move pretty printer
6983 of SCOPs before doing any transform. Remove call to print_scops
6984 and dot_all_scops_1.
6986 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6988 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
6989 (print_graphite_bb): Same.
6991 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6993 * graphite.c (dot_all_scops_1): Cleanup.
6994 (move_scops): Fix comment.
6996 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6998 * graphite.c (build_scop_bbs): Revert commit 139355:
7000 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7001 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7003 * graphite.c (build_scop_bbs): Factor up code.
7005 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
7007 * graphite.c (gloog): Update dominator info.
7009 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
7011 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
7013 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
7015 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
7017 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
7018 (translate_clast): Correct formatting.
7019 * graphite.h (struct num_map): Removed.
7020 (struct graphite_bb): Remove num_map field.
7021 (GBB_INDEX_TO_NUM_MAP): Removed.
7023 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
7025 * graphite.c (build_access_matrix_with_af): Fix comments.
7026 (build_scop_data_accesses): Same.
7028 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
7030 * graphite.c (build_scop_data_accesses): Don't construct
7031 access matrices. Add a FIXME and an assert condition that
7032 should pass when the access matrices will be needed.
7034 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
7036 * tree-data-ref.c (stmt_simple_memref_p): Don't call
7038 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
7039 Moved close by free_graphite_bb.
7040 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
7041 (new_scop): Move close by free_scop.
7042 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
7044 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
7046 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
7047 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
7048 instead of recursive call.
7049 (graphite_translate_clast_equation): New.
7050 (graphite_create_guard_cond_expr): New.
7051 (graphite_create_new_guard): New.
7052 (get_stack_index_from_iv): Removed.
7053 (graphite_rename_ivs_stmt): Use gbb_loop_index.
7054 (get_true_edge_from_guard_bb): New.
7055 (translate_clast): Handle stmt_guard in clast.
7056 (get_construction_edge): Allow construction edge detection for
7057 a scope entry with multiple predecessors if one predecessor is
7058 the immediate dominator of scope entry.
7059 (can_generate_code_stmt): Enable code generation for clast_guard.
7060 (gloog): Use correct context loop. Removed check for post dominators.
7061 * cfgloop.h (create_empty_if_region_on_edge): Declared.
7063 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
7065 * graphite.c (remove_dead_loops): Document better which
7068 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
7070 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
7072 (graphite.o): Also depends on pointer-set.h.
7074 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
7076 * graphite.c (scop_record_loop): Fix compile warning.
7078 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
7079 Sebastian Pop <sebastian.pop@amd.com>
7081 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
7083 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
7085 * graphite.c (build_graphite_bb): Initialize bb->aux to
7086 point to the graphite_bb_p.
7087 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
7089 (add_bb_domains): Does not use the scop parameter.
7090 (graphite_transform_loops): Clean bb->aux at the end.
7092 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7093 Sebastian Pop <sebastian.pop@amd.com>
7095 * lib/target-supports.exp
7096 (check_effective_target_fgraphite): New.
7098 * gcc.dg/graphite/graphite.exp: Early exit when
7099 check_effective_target_fgraphite returns false.
7100 Set dg-do-what-default to compile.
7101 (scan-graphite-dump-times): Removed.
7102 * gfortran.dg/graphite/graphite.exp: Same.
7104 * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
7105 Use scan-tree-dump-times instead of scan-graphite-dump-times.
7106 * gcc.dg/graphite/scop-1.c: Same.
7107 * gcc.dg/graphite/scop-2.c: Same.
7108 * gcc.dg/graphite/scop-3.c: Same.
7109 * gcc.dg/graphite/scop-4.c: Same.
7110 * gcc.dg/graphite/scop-5.c: Same.
7111 * gcc.dg/graphite/scop-6.c: Same.
7112 * gcc.dg/graphite/scop-7.c: Same.
7113 * gcc.dg/graphite/scop-8.c: Same.
7114 * gcc.dg/graphite/scop-9.c: Same.
7115 * gcc.dg/graphite/scop-10.c: Same.
7116 * gcc.dg/graphite/scop-11.c: Same.
7117 * gcc.dg/graphite/scop-12.c: Same.
7118 * gcc.dg/graphite/scop-13.c: Same.
7119 * gcc.dg/graphite/scop-matmult.c: Same.
7120 * gcc.dg/graphite/scop-14.c: Same.
7121 * gcc.dg/graphite/scop-15.c: Same.
7122 * gcc.dg/graphite/block-0.c: Same.
7123 * gcc.dg/graphite/scop-16.c: Same.
7124 * gcc.dg/graphite/block-1.c: Same.
7125 * gcc.dg/graphite/scop-17.c: Same.
7126 * gcc.dg/graphite/scop-18.c: Same.
7127 * gfortran.dg/graphite/block-1.f90: Same.
7128 * gfortran.dg/graphite/scop-1.f: Same.
7129 * gfortran.dg/graphite/block-2.f: Same.
7131 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7133 * graphite.c: Fix some XXX comments.
7134 (build_scop_dynamic_schedules): Removed.
7136 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7138 * graphite.h (scop_max_loop_depth): Moved...
7139 * graphite.c (scop_max_loop_depth): ...here.
7140 (remove_all_edges_1): New.
7141 (remove_all_edges): Factored code.
7142 (remove_cond_exprs): Check only the last statement for
7143 a GIMPLE_COND expression.
7145 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7147 * graphite.c (scan_tree_for_params): Early return when the
7148 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
7149 (find_scop_parameters): Factor out code.
7150 (graphite_trans_bb_strip_mine): Remove dead code.
7152 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7154 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
7155 graphite_trans_bb_move_loop): Factor asserts.
7156 (gloog): Perform sanity checks only for ENABLE_CHECKING.
7157 Do not call calculate_dominance_info and estimate_bb_frequencies.
7159 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
7161 * graphite.c (create_loops_mapping, free_loops_mapping,
7162 create_loops_mapping_num, debug_loop_mapping_1,
7163 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
7164 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
7165 graphite_loops_mapping_add_child_num,
7166 graphite_loops_mapping_insert_child,
7167 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
7168 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
7169 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
7170 create_num_from_index, get_num_from_index,
7171 swap_loop_mapped_depth): Removed.
7172 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
7173 (free_scop): Do not call free_loops_mapping.
7174 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
7175 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
7176 get_loop_mapped_depth.
7177 (graphite_trans_bb_move_loop): Do not update the loop mapping.
7178 (graphite_trans_bb_strip_mine): Same.
7179 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
7180 (struct scop): Remove field loops_mapping.
7182 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7183 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7185 * graphite.c (scop_record_loop): Factor out one level of the
7186 condition by early return.
7187 (build_scop_loop_nests): Format following FSF coding style.
7188 (build_scop_dynamic_schedules): Factor out code.
7189 (scopdet_bb_info): Reindent. Default case should not be reachable.
7191 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7192 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7194 * graphite.c (loop_affine_expr): Check for DECL_P or struct
7195 assignments that are not handled as simple operands for now.
7197 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7198 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7200 * graphite.c (build_scop_bbs): Factor up code.
7202 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7203 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7205 * graphite.c (stmt_simple_for_scop_p): Factor code out
7207 (enum gbb_type): New. Group all the GBB_* types under it.
7208 (is_loop_exit): Moved...
7209 (end_scop): Enable BB spliting.
7210 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
7211 * cfgloop.h (is_loop_exit): Declared.
7213 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7215 * doc/invoke.texi: Remove strides from examples containing
7216 DO loops when the strides are equal to 1.
7218 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
7219 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7221 * graphite.c (graphite_trans_scop_block): Or the result with
7222 the result from graphite_trans_loop_block.
7223 * gcc.dg/graphite/block-1.c: New.
7224 * gfortran.dg/graphite/block-1.f90: New.
7225 * gfortran.dg/graphite/block-2.f: New.
7227 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7229 * graphite.c (graphite_transform_loops): Call cloog_initialize
7232 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7234 * tree-data-ref.c) (stmt_simple_memref_p): New.
7235 * tree-data-ref.h (stmt_simple_memref_p): Declared.
7236 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
7237 (is_simple_operand): Call stmt_simple_memref_p.
7239 * gcc.dg/graphite/scop-matmult.c: Updated for not
7240 using pointer arithmetic, as this is optimized by PRE and
7241 makes the code too difficult to analyze.
7243 * gcc.dg/graphite/scop-18.c: Same.
7245 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7247 * gdbinit.in (pgg): New.
7249 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7251 * graphite.c (graphite_trans_loop_block): Fix warning.
7253 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7255 * graphite.c (graphite_trans_loop_block): Fix my merge error.
7257 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7259 * graphite.c (graphite_trans_bb_block): Remove check for
7260 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
7261 Check if loop blocking is profitable for every loop, before applying
7263 (graphite_apply_transformations): Call graphite_trans_bb_block only,
7264 if flag_loop_block is set.
7266 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7268 * graphite.c: Add some more documentation for the loop
7271 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7273 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
7274 * graphite.c: Format on less than 80 columns.
7277 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7279 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
7281 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7283 * doc/invoke.texi (floop-block, floop-strip-mine,
7284 floop-interchange): Update documentation with examples.
7286 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
7288 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
7290 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
7292 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
7294 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
7295 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
7296 * tree-scalar-evolution.c: Revert useless changes.
7297 * tree-phinodes.c: Same.
7300 * tree-vectorizer.h: Same.
7301 * tree-flow.h: Same.
7303 * common.opt (fgraphite): Update documentation.
7305 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
7307 * doc/invoke.texi (-floop-block, -floop-strip-mine,
7308 -floop-interchange): Add more text for explaining what each of these
7310 * tree-into-ssa.c (gimple_vec): Moved to...
7311 * graphite.c: Include gimple.h.
7312 (gimple_vec): Moved to...
7313 (del_loop_to_cloog_loop): Removed.
7314 (loop_affine_expr): Do not call create_data_ref when the
7315 operand is a constant.
7316 (new_scop): Use free instead of del_loop_to_cloog_loop.
7317 * Makefile.in (graphite.o): Depend on GIMPLE_H.
7318 * gimple.h (gimple_vec): ... here.
7320 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7322 * graphite.c (scopdet_bb_info): Only allow loops with known number of
7324 (build_loop_iteration_domains): Fail, if latch executions unknown.
7326 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7328 * graphite.c (add_conditions_to_domain): New.
7329 (build_scop_conditions_1): Call add_conditions_to_domain.
7330 (set_cloog_options): Allow to disable optimizations.
7332 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7334 * graphite.c (find_params_in_bb): Look for parameters in conditions.
7335 Do not use walk_dominator_tree.
7336 (find_scop_parameters): Do not use walk_dominator_tree.
7338 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7340 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
7341 (idx_record_params): Adapt.
7342 * graphite.h (scop_gimple_loop_depth): New.
7344 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7346 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
7347 (scan_tree_for_params): Remove value_init.
7348 (build_scop_context): Remove value_init.
7349 (build_loop_iteration_domains): Remove value_init.
7350 (schedule_to_scattering): Remove value_init.
7351 (graphite_trans_bb_strip_mine): Remove value_init.
7353 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7355 * gcc/graphite.c (limit_scops): New.
7356 (graphite_transform_loops): Add limit SCoPs.
7357 * gcc.dg/graphite/scop-0.c: Update number of SCoPs.
7358 * gcc.dg/graphite/scop-1.c: Update number of SCoPs.
7359 * gcc.dg/graphite/scop-10.c: Update number of SCoPs.
7360 * gcc.dg/graphite/scop-11.c: Update number of SCoPs.
7361 * gcc.dg/graphite/scop-12.c: Update number of SCoPs.
7362 * gcc.dg/graphite/scop-13.c: Update number of SCoPs.
7363 * gcc.dg/graphite/scop-14.c: Update number of SCoPs.
7364 * gcc.dg/graphite/scop-15.c: Update number of SCoPs.
7365 * gcc.dg/graphite/scop-16.c: Update number of SCoPs.
7366 Change loop numbers.
7367 * gcc.dg/graphite/scop-17.c: Update number of SCoPs.
7368 Change loop numbers.
7369 * gcc.dg/graphite/scop-18.c: Update number of SCoPs.
7370 * gcc.dg/graphite/scop-2.c: Update number of SCoPs.
7371 * gcc.dg/graphite/scop-3.c: Update number of SCoPs.
7372 * gcc.dg/graphite/scop-4.c: Update number of SCoPs.
7373 * gcc.dg/graphite/scop-5.c: Update number of SCoPs.
7374 * gcc.dg/graphite/scop-6.c: Update number of SCoPs.
7375 * gcc.dg/graphite/scop-7.c: Update number of SCoPs.
7376 * gcc.dg/graphite/scop-8.c: Update number of SCoPs.
7377 * gcc.dg/graphite/scop-9.c: Update number of SCoPs.
7378 * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
7380 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7382 * graphite.c (graphite_transform_loops): Call always find_transform.
7384 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
7386 * graphite.c (free_loops_mapping): New.
7387 (stmt_simple_for_scop_p): Fix typo.
7388 (stmt_simple_for_scop_p): Fix tuples functions, that
7390 (free_graphite_bb): Fix some memleaks.
7391 (free_scop): Fix some memleaks.
7392 (scopdet_bb_info): Do not forget some tmp SCoPs.
7393 (find_params_in_bb): Fix some memleaks.
7394 (clast_to_gcc_expression): Fix warning.
7396 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
7398 * gcc.dg/graphite/scop-16.c: Fix for 32bit.
7399 * gcc.dg/graphite/scop-17.c: Fix for 32bit.
7401 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
7403 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
7404 Move code ifdef-ed HAVE_cloog...
7405 * graphite.c: Include toplev.h.
7407 * Makefile.in (OBJS-common): Always build graphite.o.
7408 (BACKEND): Remove @GRAPHITE@.
7409 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
7410 (graphite.o): Depend on TOPLEV_H.
7412 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
7414 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
7415 Remove typo left from polylib to ppl conversion.
7416 * graphite.c (graphite_transforms): Use sorry instead of fatal.
7418 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
7420 * toplev.c (process_options): Move the graphite loop optimization
7422 * tree-ssa-loop.c (graphite_transforms): ... here.
7423 When not configured with CLooG, print to dump_file that
7424 Graphite transforms were not performed.
7425 * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
7427 * gcc.dg/graphite/*.c: Updated all testcases to use
7428 scan-graphite-dump-times.
7430 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
7432 * graphite.c (dot_scop, dot_all_scops): Do not call system.
7433 Do not open /tmp/scop.dot and /tmp/allscops.dot.
7435 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
7436 Jan Sjodin <jan.sjodin@amd.com>
7438 * configure: Regenerated.
7439 * omp-low.c (expand_omp_sections): Remove now unused code.
7440 * config.in (HAVE_polylib): Removed.
7441 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
7442 (PPLLIBS, PPLINC): Added.
7443 * graphite.c: Replace unsigned with int wherever possible.
7444 Don't access Cloog's data structures, but use accessor functions.
7445 Clast's stmt->type is now implemented as a vtable: change the
7446 switches of stmt->type into ifs.
7447 (polylib/polylibgmp.h): Don't include.
7448 (initialize_dependence_polyhedron,
7449 initialize_data_dependence_polyhedron, is_empty_polyhedron,
7450 statement_precedes_p, test_dependence, build_rdg_all_levels,
7451 dump_dependence_graph): Removed until this code is cleaned up
7453 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
7454 (POLYLIBINC): Renamed PPLINC.
7456 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
7457 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7458 Jan Sjodin <jan.sjodin@amd.com>
7460 Finish the merge and tuplification of graphite.
7462 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
7463 Jan Sjodin <jan.sjodin@amd.com>
7465 Partial merge from mainline (138072:138275).
7466 * graphite.c still has to be tuplified.
7468 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
7470 * graphite.c (graphite_loops_mapping_max_loop_num): New.
7471 (create_num_from_index): New.
7472 (get_num_from_index): Also pass in the graphite BB.
7473 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
7474 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
7475 (graphite_trans_bb_strip_mine): Call create_num_from_index.
7476 (is_interchange_valid): Return false when failing.
7477 * graphite.h (struct num_map): New.
7478 (struct graphite_bb): New field num_map.
7479 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
7481 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
7483 * graphite.c (dump_gbb_conditions): Print also conditions like
7484 "if (a)". Remove dublicated code and use print_generic_expr ().
7485 (stmt_simple_for_scop_p): Only allow conditions we can handle
7488 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
7490 * graphite.h (struct scop): Removed new_ivs field.
7491 (SCOP_NEWIVS): Deleted.
7492 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
7493 clast_to_gcc_expression, graphite_create_new_loop):
7494 Removed use of new_ivs.
7496 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
7498 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
7499 create_loops_mapping_num, debug_loop_mapping_1): New.
7500 (debug_loop_mapping): Call debug_loop_mapping_1.
7501 (get_loop_mapping_for_num,
7502 graphite_loops_mapping_add_child,
7503 graphite_loops_mapping_add_child_num,
7504 graphite_loops_mapping_insert_child,
7505 graphite_loops_mapping_parent,
7506 split_loop_mapped_depth_for_num,
7507 loop_mapped_depth_split_loop): New.
7508 (increment_loop_mapped_depths): Removed.
7509 (swap_loop_mapped_depth_for_num): Reimplemented.
7510 (new_scop): Call create_loops_mapping.
7511 (scop_record_loop): Call graphite_loops_mapping_insert_child.
7512 (translate_clast): Pass the old loop father in parameter, and pass
7513 it to get_old_iv_from_ssa_name.
7514 (remove_edges_around_useless_blocks, can_generate_code_stmt,
7515 can_generate_code, can_generate_for_scop): New.
7516 (graphite_trans_bb_block): Returns false when it fails to transform.
7517 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
7519 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7521 Reverted all the changes related to the streamization and
7523 These changes are now tracked in the streamization branch.
7525 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7526 Jan Sjodin <jan.sjodin@amd.com>
7528 * graphite.c (gbb_compare): Correctly constify.
7529 (gbb_can_be_ignored): Indent.
7530 (graphite_trans_scop_swap_1and2): Add legality check.
7533 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7535 Remove fallouts from "Reverted the Condate changes".
7536 * tree.h: Remove unused decl.
7537 * gcc.dg/tree-checker: Same.
7538 * timevar.def: Remove counter.
7540 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
7542 * Merge from mainline (135673:138072).
7544 Reverted the MIRO changes (from 2008-04-05) that are now
7545 tracked in the miro branch.
7546 * tree-bounds.c: Removed.
7547 * tree-bounds.h: Removed.
7549 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
7550 are now tracked in the condate branch.
7551 * tree-check.c: Removed.
7552 * tree-match.c: Removed.
7553 * condate.y: Removed.
7555 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7557 * common.opt: New user flag -floop-block, -floop-strip-mine
7558 and -floop-interchange.
7559 * toplev.c (process_options): Enable -fgraphite pass if any one of the
7560 graphite loop optimization flags is turned on.
7561 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
7562 flag_loop_strip_mine and flag_loop_interchange checks before
7564 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
7565 -floop-strip-mine and -floop-interchange.
7566 * gcc.dg/graphite/block-0.c: Add -floop-block and remove
7568 * gcc.dg/graphite/scop-16.c: Ditto.
7569 * gcc.dg/graphite/scop-17.c: Ditto.
7570 * gcc.dg/graphite/scop-18.c: Ditto.
7572 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
7573 Sebastian Pop <sebastian.pop@amd.com>
7575 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
7576 (create_empty_loop_on_edge): More fixes.
7577 * tree-phinodes.c (resize_phi_node): Extern.
7578 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
7579 * cfghooks.c (update_dominator_information): New split from
7581 * tree-vectorizer.c (rename_variables_in_bb): Extern.
7582 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
7583 successor of the function entry block.
7585 * graphite.c: Include pointer-set.h.
7586 (debug_loop_mapping, increment_loop_mapped_depths,
7587 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
7588 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
7589 swap_loop_mapped_depth_for_num, get_num_from_index,
7590 swap_loop_mapped_depth, loop_iv_stack_debug,
7591 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
7592 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
7593 get_old_iv_from_ssa_name): New.
7594 (new_scop): Initialize SCOP_LOOPS_MAPPING.
7595 (free_scop): Free SCOP_LOOPS_MAPPING.
7596 (scop_record_loop): Record old ivs.
7597 (create_var_name): Removed.
7598 (initialize_cloog_names): Allocate double space in case strip mine
7599 applies to all loops once.
7600 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
7601 (clast_to_gcc_expression): Same. Implement more clast to gimple
7603 (graphite_create_new_loop): Pass in ivstack.
7604 (remove_all_edges): Pass in the construction_edge.
7605 (graphite_remove_iv): Removed.
7606 (graphite_rename_ivs, graphite_rename_ivs_stmt,
7607 remove_cond_exprs): Rewritten.
7608 (move_phi_nodes): New.
7609 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
7610 (translate_clast): Pass in ivstack. Rewrite some cases.
7611 (set_cloog_options, debug_clast_stmt): New.
7612 (find_transform): Use set_cloog_options.
7613 (outermost_loop_layer): Removed.
7614 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
7615 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
7616 mark_old_loops, remove_dead_loops): New.
7618 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
7619 (const_column_index, get_first_matching_sign_row_index,
7620 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
7621 get_upper_bound): New.
7622 (graphite_trans_bb_strip_mine): Also update the iv map.
7624 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
7625 (struct name_tree): Add a loop field.
7626 (struct scop): Add a graphite_loops_mapping field.
7627 (SCOP_LOOPS_MAPPING): New.
7628 (debug_clast_stmt): Declare.
7629 * lambda.h (find_induction_var_from_exit_cond): Declare.
7630 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
7631 * cfgloop.h (update_dominators_in_loop): Removed declaration.
7632 (create_empty_loop_on_edge): Updated.
7633 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
7634 rename_variables_in_bb): Declare.
7635 * tree-cfg.c (remove_bb): Extern.
7637 * gcc.dg/graphite/block-0.c: New.
7639 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7640 Sebastian Pop <sebastian.pop@amd.com>
7642 * graphite.c (strip_mine_profitable_p): New.
7643 (graphite_trans_bb_block): Disable strip mining if not profitable.
7645 * gcc.dg/graphite/scop-18.c: New.
7646 * gcc.dg/graphite/scop-17.c: Fixed.
7647 * gcc.dg/graphite/scop-16.c: Fixed.
7649 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
7650 Jan Sjodin <jan.sjodin@amd.com>
7651 Sebastian Pop <sebastian.pop@amd.com>
7653 * graphite.c (is_interchange_valid): New.
7654 (graphite_trans_bb_block): Check loop nest of basic block for legality
7657 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
7658 outer_most_loop, gbb_outer_most_loop_index): New.
7660 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
7661 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
7662 * gcc.dg/graphite/scop-16.c: New.
7663 * gcc.dg/graphite/scop-17.c: New.
7665 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7667 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
7668 (graphite_trans_scop_block): Ignore SCoPs without bbs.
7670 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7672 * graphite.c (new_scop): Initialize SCOP_EXIT.
7673 (scopdet_info): Add.
7674 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
7675 (build_scops_1): Cleanup, bugfixes.
7676 (build_scops): Cleanup.
7678 * gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
7679 * gcc.dg/graphite/scop-15.c: Add SCoP numbers.
7681 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7683 * gfortran.dg/graphite/scop-1.f: Update to reduced test case.
7685 * gfortran.dg/graphite/graphite.exp: Use
7686 DEFAULT_GRAPHITE_FLAGS.
7688 * gcc.dg/graphite/scop-15.c: Update to reduced test case.
7690 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7692 * graphite.c (scan_tree_for_params): Do not assert any more if
7693 MULT_EXPR parameter is negative.
7695 * gfortran.dg/graphite/scop-1.f: New.
7697 * gfortran.dg/graphite/graphite.exp: New.
7699 * gcc.dg/graphite/scop-15.c: New.
7701 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7703 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
7705 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7707 * graphite.c (graphite_trans_bb_swap_loops): Rename from
7708 graphite_swap_loops.
7709 (graphite_trans_bb_move_loop): New.
7710 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
7711 (graphite_trans_bb_block): New.
7712 (graphite_trans_loop_block): New.
7713 (graphite_trans_scop_swap_1and2): Rename from
7714 graphite_trans_swap_1and2.
7715 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
7716 (graphite_trans_scop_block): New.
7717 (graphite_apply_transformations): Rename from
7718 graphite_transformations.
7720 * gcc.dg/graphite/scop-matmult.c: New.
7722 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7724 * graphite.c (gbb_compare): New.
7725 (graphite_sort_gbbs): New.
7726 (gbb_can_be_ignored): New.
7727 (scop_remove_ignoreable_gbbs): New.
7728 (graphite_transformations): Cleanup and add
7729 scop_remove_ignoreable_gbbs.
7730 * lambda.h (lambda_vector_compare): New.
7732 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
7734 * graphite.c (print_graphite_bb): Correct printing of static schedule.
7735 (graphite_swap_loops): int -> unsigned
7736 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
7737 (graphite_transformations): New.
7738 (graphite_transform_loops): Move to graphite_transformations.
7739 * graphite.h (gbb_nb_loops): Return unsigned.
7741 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
7743 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
7744 the domain matrix. This makes scop-0.c work again.
7746 2008-06-20 Richard Guenther <rguenther@suse.de>
7748 * graphite.h: Adjust copyright to GPLv3.
7749 * graphite.c: Likewise.
7750 (stmt_simple_memref_for_scop_p): Split out from ...
7751 (stmt_simple_for_scop_p): ... here. Fix handling of calls
7753 (get_bb_type): Optimize.
7755 (is_bb_addable): Fix memleak, replace is_pred call with
7757 (build_scops): Use current_loops.
7758 (param_index): Fix memleak.
7760 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7762 * graphite.c: Fix formatting.
7764 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7766 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
7767 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
7768 (create_var_name, save_var_name): Newly defined functions.
7769 (initialize_cloog_names): Part of the code factored out to
7771 (clast_to_gcc_expression): Now handles the case of clast_red_sum
7772 in clast_reduction statement.
7773 (graphite_create_new_loop): Now takes a new parameter
7775 (translate_clast): Now also takes the context_loop and bb_exit
7776 parameters. Rewritten the code so that it creates a gimple code
7777 inside the given context.
7778 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
7779 remove_cond_expr, disconnect_cond_expr,
7780 disconnect_virtual_phi_nodes): Newly defined functions.
7781 * graphite.h (struct scop): added old_ivs vector.
7782 SCOP_OLDIVS: New macro.
7784 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
7786 * cfgloopmanip.c: Add missing function comments, fix formatting.
7788 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7790 * cfgloopmanip.c (update_dominators_in_loop): Defined.
7791 (create_empty_loop_on_edge): Defined.
7792 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
7794 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
7795 (update_dominators_in_loop): Declared as extern
7796 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
7798 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
7800 * graphite.c (print_graphite_bb): Allow changing number of loops
7802 (initialize_cloog_names): Allow changing number of loops.
7803 (build_cloog_prog): Simplify.
7804 (find_transform): Enable cloog option --strides.
7805 (graphite_swap_loops): New.
7806 (graphite_strip_mine_loop): New.
7807 (graphite_trans_swap_1and2): New.
7808 (graphite_trans_strip): New.
7809 (graphite_transform_loops): Add graphite_trans_strip.
7810 * graphite.h (scop_max_loop_depth): New.
7812 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7814 * graphite.c (build_scop_iteration_domain): Remove forgotten
7815 line. (Fixes compile)
7817 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7819 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
7820 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
7821 (build_bb_loops): New.
7822 (graphite_transform_loops): Add build_bb_loops.
7823 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
7825 * graphite.h (graphite_bb): Add loops.
7826 (gbb_nb_loops): New.
7827 (gbb_loop_at_index): New.
7828 (gbb_loop_index): New.
7829 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
7830 using nb_params_in_scop.
7832 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7834 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
7835 (build_scop_canonical_schedules): Build minimized schedule.
7836 (schedule_to_scattering): Adapt to minimized schedule.
7837 * graphite.h (graphite_bb): Add/Update descriptions.
7839 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
7840 Tobias Grosser <grosser@fim.uni-passau.de>
7842 * graphite.c (print_graphite_bb): Add condition printing.
7844 (dump_gbb_conditions): New.
7845 (build_scop_conditions_1): New.
7846 (build_scop_conditions): New.
7847 * graphite.h (graphite_bb): Add conditions.
7849 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7851 * graphite.c (print_graphite_bb):
7852 (free_graphite_bb): New.
7853 (free_scop): Free bbs.
7854 (get_bb_type): Free doms.
7855 (build_scop_context): Free context matrix.
7856 (build_loop_iteration_domains): Remove unused code.
7857 (build_cloog_prog): Free scattering function and blocklist.
7858 (find_transform): Free options.
7860 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
7862 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
7863 Remove unnecessery cloog data structures. Make a copy of the domain
7864 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
7865 unnecessary cloog data structures. Fix memory leaks. Remove insert
7866 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
7868 (build_scop_iteration_domain): Remove unnecessary cloog
7869 data structures. Fix memory leaks.
7870 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
7871 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
7873 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7875 * graphite.c (find_scop_params): Remove initialize_cloog_names.
7877 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7879 * graphite.c (end_scop): Style fix.
7880 (schedule_to_scattering): Style and comment fix.
7882 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7883 * graphite.c (print_graphite_bb): Fix definiton of
7884 schedule_to_scattering.
7885 (initialize_cloog_names): Change nb_scattdims to max loop
7887 (schedule_to_scattering): Take parameter for number of scattering
7889 (build_cloog_prog): Only build as much scattering dimensions as
7892 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7894 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
7895 in polyhedron/aermod.f90.
7897 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
7898 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7899 Harsha Jagasia <harsha.jagasia@amd.com>
7901 * graphite.c (is_bb_addable): Fix segfault.
7903 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
7905 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
7906 with multiple exits and conditional handling in edge cases.
7907 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
7909 * gcc.dg/graphite/scop-14.c: New.
7911 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
7912 Adrien Eliche <aeliche@isty.uvsq.fr>
7914 * graphite.c (is_bb_addable): Add more comments and enhance
7915 readablity of the source code. Fix memory leak.
7916 (is_loop_exit): Fix memory leak.
7918 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7920 * graphite.c (first_loop_in_scop): Deleted.
7921 (setup_cloog_loop): Only walk the loop chain for inner loops.
7922 (build_scop_iteration_domain): Execute setup_cloog_loop for
7923 all loops in the first layer.
7925 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7927 * graphite.c (scan_tree_for_params): Change the way params are
7928 added to be indepenent of the number of loops.
7929 (setup_cloog_loop): Revert to short matrix format. Fix parameter
7931 (build_cloog_prog): Revert to short matrix format.
7933 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7934 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7936 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
7939 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7941 * graphite.c (nb_data_refs_in_scop): New.
7942 (graphite_transform_loops): Print more stats: number of
7943 loops, basic blocks and data references per scop.
7945 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7946 Jan Sjodin <jan.sjodin@amd.com>
7948 * graphite.c (loop_affine_expr, idx_record_params,
7949 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
7950 instead of instantiate_parameters.
7952 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7954 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
7955 add support for parameters, add STATIC_SCHEDULE at the right places,
7958 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7960 * graphite.c (build_scop_loop_nests): Only add the loops, that
7961 are contained completely in the SCoP.
7962 (build_cloog_prog): Disable scattering, until schedule_to_scattering
7963 and the domains are fixed.
7964 (build_scop_canonical_schedules): Add support for bbs not contained
7967 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7969 * graphite.h (scop_contains_loop): Update comments to match
7970 the actual behavior.
7971 (scop_contains_loop): New.
7972 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
7974 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7976 * graphite.c (get_bb_type): On function body, i.e. loop_0,
7977 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
7980 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7981 Tobias Grosser <grosser@fim.uni-passau.de>
7983 * graphite.c (graphite_transform_loops): Early return when
7984 there are no loops in the function.
7986 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7987 Jan Sjodin <jan.sjodin@amd.com>
7989 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
7990 offset of the last loop.
7991 (setup_cloog_loop): Copy the entire outer constraint matrix.
7993 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7994 Jan Sjodin <jan.sjodin@amd.com>
7996 * graphite.c (stmt_in_scop_p, function_parameter_p,
7997 invariant_in_scop_p): Removed.
7998 (scan_tree_for_params): Can be used with no constraint
7999 matrix for gathering parameters.
8000 (idx_record_params): Don't use idx_record_param, instead use
8001 scan_tree_for_params.
8002 (find_scop_parameters): Same.
8003 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
8004 Fix the size of loop domains.
8005 (schedule_to_scattering): Exit when the outer loop is not in scop.
8006 (find_transform): Enable build_cloog_prog.
8008 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
8009 Jan Sjodin <jan.sjodin@amd.com>
8011 * graphite.c (schedule_to_scattering): Make scattering domains
8012 uniformly of the same size, as required by CLooG 0.14.0 and before.
8014 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
8015 Jan Sjodin <jan.sjodin@amd.com>
8017 * graphite.c (schedule_to_scattering): Rewrite, correct the
8018 translation of the scheduling function to scattering.
8019 (build_cloog_prog): Call schedule_to_scattering only once.
8020 * graphite.h (scop_loop_index): Do not fail for loops not
8021 in the scop: return -1.
8023 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
8025 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
8026 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
8027 (setup_cloog_loop): Export GBB_DOMAIN.
8028 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
8029 able to rebuild the original control flow.
8030 * graphite.h (graphite_bb): Add domain field and access macro.
8033 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
8035 * graphite.c (debug_gbb): New.
8036 (print_scop, build_graphite_bb): Use SCOP_BBS.
8037 (build_scop_bbs): Reimplemented.
8038 (dfs_bb_in_scop_p): Removed.
8039 (build_scop_loop_nests): Reorder loops inserted in
8040 SCOP_LOOP_NEST: outer loops should come first.
8041 (build_scop_canonical_schedules): Reinitialize at zero
8042 the components of the SCOP_STATIC_SCHEDULE for the loops
8043 that have already been parsed.
8045 * graphite.h (debug_gbb): Declared.
8047 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
8048 Jan Sjodin <jan.sjodin@amd.com>
8050 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
8051 (graphite_loop_to_gcc_loop): Removed.
8052 (remove_all_edges): New.
8053 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
8054 (gloog): Remove useless code.
8056 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
8058 * graphite.c (get_bb_type): Reworked. We distinguish between
8059 loops with one or multiple exits.
8060 (is_loop_exit): New.
8062 (is_bb_addable): Rework condition handling, now support for case
8063 case statements and loops with multiple exits.
8065 * gcc.dg/graphite/scop-11.c: New.
8066 * gcc.dg/graphite/scop-12.c: New.
8067 * gcc.dg/graphite/scop-13.c: New.
8069 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
8071 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
8072 we have too many colors.
8074 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
8076 * doc/invoke.texi (-ftree-loop-fusion): Document.
8077 * tree-pass.h (pass_loop_fusion): Declared.
8078 * tree-loop-fusion.c: New.
8079 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
8080 * tree-data-ref.c (find_data_references_in_loop): Make extern.
8081 * tree-data-ref.h (find_data_references_in_loop): Declared.
8082 * common.opt (ftree-loop-fusion): Declared.
8083 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
8085 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
8087 * graphite.c (build_access_matrix): Fix typo from the merge.
8089 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
8091 * Merge from mainline (130800:135673).
8093 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
8095 * graphite.c (end_scop): The exit of the scop is not part of the scop.
8096 Update dominators after splitting.
8098 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
8100 * graphite.c (is_bb_addable): Return the harmful statement.
8101 Factor up some code.
8102 (end_scop): New. Splits end of scope bbs on a harmful statement.
8103 (build_scops_1): Call end_scop.
8105 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
8107 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
8108 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
8109 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
8110 build_scops_1): Removed.
8111 (build_scops_2): Renamed build_scops_1.
8113 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
8115 * graphite.c: Fix formatting.
8117 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
8119 * graphite.c (get_bb_type): New.
8121 (build_scops_2): New.
8122 (is_bb_addable): New.
8123 (build_scops): Switch the scop detection.
8124 (build_scop_bbs): Add entry bb to scop.
8125 * graphite.h (struct scop): Update comment.
8127 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
8129 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
8132 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
8134 * gcc.dg/graphite/scop-1.c: Update.
8135 * gcc.dg/graphite/scop-2.c: Update.
8136 * gcc.dg/graphite/scop-4.c: Update.
8137 * gcc.dg/graphite/scop-5.c: Add.
8138 * gcc.dg/graphite/scop-6.c: Add.
8140 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
8142 * gcc.dg/graphite/scop-0.c: Add.
8143 * gcc.dg/graphite/scop-7.c: Add.
8144 * gcc.dg/graphite/scop-8.c: Add.
8145 * gcc.dg/graphite/scop-9.c: Add.
8146 * gcc.dg/graphite/scop-10.c: Add.
8148 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
8150 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
8151 Check affine expressions depending on the outermost loop
8153 (stmt_simple_for_scop_p): Same.
8154 (harmfule_stmt_in_scop): Same.
8156 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
8158 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
8159 mark entry and exit, that are not part of the SCoP and update HTML
8162 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
8164 * graphite.c (basic_block_simple_for_scop_p): Renamed
8166 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
8167 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
8168 (all_preds_visited_p, all_succs_visited_p,
8169 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
8170 scop_end_loop): New.
8171 (build_scops): Do not use dfs_enumerate_from.
8173 * gcc.dg/graphite/scop-{1,2,4}.c: Updated.
8175 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
8177 * graphite.c: Add comments to functions that are missing a
8179 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
8181 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
8183 * graphite.c (nb_params_in_scop): Moved...
8184 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
8185 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
8186 (clast_to_gcc_expression): Reduce column size to less than 80.
8187 (graphite_create_iv): Return the new name of the IV.
8188 (find_transform): Set options->esp and options->cpp.
8189 (gloog): Comment out the invalidation of the old loop code.
8190 (initialize_dependence_polyhedron): Replace scop_nb_params with
8193 * graphite.h (nb_params_in_scop): ... here.
8194 (scop_nb_params): Removed.
8195 (loop_domain_dim): Return something even when the loop was not
8196 found in the hash table: avoid ICEing on all the graphite.exp
8199 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8201 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
8203 * graphite.c (build_scop_dynamic_schedules): Schedule is built
8204 according to nesting level.
8205 (find_scop_parameters): Call instantiate_parameters.
8206 (scan_tree_for_params): Extend it to handle general affine bounds.
8207 Inner loop bound can depend on outer loop induction variable.
8208 (setup_cloog_loop): tmp variable is allocated on stack. Call
8209 instantiate_parameters with respect to outermost_loop_in_scop.
8210 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
8212 (create_empty_loop): Function loopify should be given edge
8213 probability, instead of edge frequency. Dominance relation from
8214 switch_bb to loop_header.
8215 (clast_to_gcc_expression): Added handling of clast_reduction node.
8216 (gloog): New functionality for removing old loop.
8217 (test_dependence): Factored out from build_rdg_all_levels.
8218 (build_rdg_all_levels): Dependence testing factored out to
8219 test_dependence function.
8221 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
8222 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
8225 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
8227 * graphite.c (free_scop, param_index, initialize_cloog_names,
8228 nb_params_in_scop): Use name_tree map instead of just a tree
8229 for keeping track of the variable name associated to that tree.
8230 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
8231 clast_to_gcc_expression, graphite_create_iv,
8232 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
8233 graphite_stmt_to_gcc_stmt): New.
8234 (gloog): Call these.
8235 * graphite.h (struct name_tree): New.
8236 (struct scop): Use name_tree instead of tree for params.
8237 Store a vector of name_tree for new_ivs.
8239 (scop_nb_params): Use name_tree instead of tree.
8241 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
8242 Sebastian Pop <sebastian.pop@amd.com>
8244 * tree-bounds.c: New.
8245 * tree-bounds.h: New.
8246 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
8247 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
8248 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
8252 * c-cppbuiltin.c: Same.
8256 * tree-outof-ssa.c: Same.
8258 * Makefile.in: Same.
8260 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
8261 Sebastian Pop <sebastian.pop@amd.com>
8263 * tree-loop-distribution.c (remaining_stmts,
8264 upstream_mem_writes): Removed static variables.
8265 (copy_loop_before, create_bb_after_loop,
8266 mark_nodes_having_upstream_mem_writes, free_rdg_components,
8267 rdg_build_components, rdg_build_partitions,
8268 dump_rdg_partitions): Extern.
8269 (generate_loops_for_partition, generate_code_for_partition): Do not
8271 (already_processed_vertex_p, predecessor_has_mem_write,
8272 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
8273 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
8274 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
8275 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
8276 Pass remaining_stmts and upstream_mem_writes as parameters.
8277 (rdg_component): Moved...
8278 (build_rdg_partition_for_component): Do not aggregate components when
8279 flag_streamize_loops is set.
8280 (gen_sequential_loops): New.
8281 (ldist_gen): Call gen_sequential_loops.
8283 * tree-pass.h (pass_loop_streamization): Declared.
8285 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
8286 basic blocks when loops structures exist.
8288 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
8290 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
8292 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8293 eliminate_local_variables_stmt, eliminate_local_variables,
8294 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8295 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8296 of code delimited by two edges in the CFG.
8297 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8298 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8299 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
8300 the case of parallelisation of reductions.
8301 (create_loop_fn): Extern.
8302 (create_omp_parallel_region): New.
8304 * tree-data-ref.c (dump_data_dependence_relation): Don't call
8305 dump_data_reference for printing dra and drb.
8306 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
8308 (build_rdg): Don't call free_dependence_relations for the moment, as
8309 we attach dependence relations on each edge of the RDG.
8312 * tree-data-ref.h (rdg_component): ...here.
8313 (struct rdg_edge): New field ddr_p relation.
8314 (RDGE_RELATION): New.
8315 (create_bb_after_loop, copy_loop_before,
8316 mark_nodes_having_upstream_mem_writes, rdg_build_components,
8317 rdg_build_partitions, dump_rdg_partitions,
8318 free_rdg_components): Declared.
8320 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
8321 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
8323 * tree-loop-streamization.c: New.
8325 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
8326 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
8328 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
8330 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8332 * passes.c: Schedule pass_loop_streamization.
8334 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
8336 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
8339 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
8341 * graphite.c (dot_all_scops): Update formatting.
8342 Bbs can now be part of more than one SCoP.
8344 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
8346 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
8348 (loop_domain_dim): Check for unregistered toplev SCOP loop.
8349 * graphite.h (loop_to_cloog_loop): New.
8351 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8353 * graphite.c (loop_domain_dim, ref_nb_loops,
8354 loop_iteration_vector_dim): New.
8355 (build_access_matrix_with_af, build_access_matrix,
8356 initialize_dependence_polyhedron): Fixed for new matrix layout.
8357 No longer assume that all iteration domains are of the same
8360 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
8362 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
8363 defined in a loop at depth 0 is invariant.
8364 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
8365 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
8366 be called at loop depth 0.
8368 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
8370 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
8371 (down_open_scop): Removed.
8372 (loop_in_scop_p): Redefined.
8373 (scop_affine_expr): New argument: scop.
8374 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
8375 a harmful statement ending a scop.
8376 (basic_block_simple_for_scop_p): New argument: scop.
8377 (get_loop_start): Removed.
8378 (new_scop): Initialize SCOP_LOOPS.
8379 (free_scop): Free SCOP_LOOPS.
8380 (succs_at_same_depth, preds_at_same_depth): New.
8381 (end_scop): Test the validity of a scop.
8382 (add_dominators_to_open_scops): New.
8383 (test_for_scop_bound): Call add_dominators_to_open_scops.
8384 Add cases for opening and closing multiple scops.
8385 (build_scops, build_scop_bbs): Iterate over basic blocks in
8387 (build_graphite_bb): Pass scop directly.
8388 (dfs_bb_in_scop_p): New.
8389 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
8391 (nb_loops_around_gb): Use loop_in_scop_p.
8392 (schedule_to_scattering): Disabled for the moment the code computing
8393 the "textual order for outer loop".
8395 * graphite.h (struct scop): New field loops.
8397 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
8399 * gcc.dg/graphite/scop-{1,...,7}.c: Updated.
8401 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
8402 Sebastian Pop <sebastian.pop@amd.com>
8404 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
8405 * common.opt (fstreamize-loops): New.
8406 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
8407 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
8408 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
8409 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
8411 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8413 * tree-data-ref.c (build_empty_rdg): New.
8414 (build_rdg): Use it.
8415 * tree-data-ref.h (build_empty_rdg): Declared.
8416 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
8417 (find_vertex_for_stmt): Removed.
8418 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
8420 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
8422 * tree-loop-distribution.c (generate_builtin): After cancelling the
8423 loop tree, also delete basic blocks.
8424 (rdg_flag_uses): Stop recursion when a vertex has already been
8427 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8429 * graphite.c (build_scop_alpha): Removed.
8430 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
8431 and dump_dependence_graph to avoid compiler warnings.
8433 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8435 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
8436 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
8437 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
8438 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
8439 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
8440 (initialize_dependence_polyhedron, find_vertex_for_stmt,
8441 initialize_data_dependence_polyhedron, is_empty_polyhedron,
8442 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
8443 dump_dependence_graph): New.
8444 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
8446 (struct scop): New field loop2cloog_loop.
8447 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
8448 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
8450 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8452 * graphite.c (build_graphite_bb): Fix initialization
8453 of the graphite basic block.
8455 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
8457 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
8458 loop domain matrix. Pass in the number of loops contained in the
8460 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
8461 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
8462 loops that are not surrounding the current loop are not represented
8463 in the domain constraint matrix.
8464 (build_scop_iteration_domain): Initial domain constraint matrix
8465 contains only the eq/ineq, cst, and scop parameters columns.
8467 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8469 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
8470 (print_graphite_bb): Print scattering.
8472 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8474 * graphite.c (initialize_cloog_names): Initialize names of
8475 scattering variables.
8477 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8479 * graphite.c (dot_all_scops_1): Disable debug output while
8482 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8484 * graphite.c (find_transform): Change cloog output language to C.
8486 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
8488 * tree-loop-distribution.c (generate_memset_zero,
8489 generate_builtin, generate_code_for_partition,
8490 rdg_flag_all_uses): New.
8491 (rdg_flag_uses): Gather in the same partition the statements defining
8492 the VUSES of the current statement.
8493 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
8494 Gather in the same partition not only the stores to the same memory
8495 access, but also the reads.
8496 (ldist_generate_loops): Renamed ldist_gen.
8498 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
8499 Tobias Grosser <grosser@fmi.uni-passau.de>
8501 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
8502 next pointer, don't use the inner pointer.
8504 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
8506 * graphite.c (dot_all_scops, dot_all_scops_1): New.
8507 (find_transform): Call dot_all_1.
8508 * graphite.h (dot_all_scops): Declared.
8510 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
8512 * tree-loop-distribution.c: Fix apsi.f ICE.
8513 (create_bb_after_loop): New.
8514 (generate_loops_for_partition): Use it.
8515 * gfortran.dg/ldist-1.f90: New.
8517 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
8518 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
8520 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8522 * graphite.c (find_transform): Dump cloog program sent to cloog.
8524 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8526 * graphite.c (initialize_cloog_names): Initialize cloog
8529 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8531 * graphite.c (build_scop_context): Fix typo, for the matrix
8532 format: insert '0 >= 0' instead of '-1 >= 0'.
8534 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
8536 * Fix merge problems.
8538 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
8540 * graphite.c (setup_cloog_loop): Fix typo.
8542 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
8544 * doc/invoke.texi (-ftree-loop-distribution): Documented.
8545 * tree-loop-distribution.c: Reimplemented.
8546 * tree-pass.h (pass_loop_distribution): New.
8547 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
8549 * graphds.h (struct graph): New field indexes.
8550 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8552 * tree-vect-analyze.c: Remove declaration of static functions when not
8554 * tree-vectorizer.c: Same.
8555 (rename_variables_in_loop): Now extern.
8556 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
8557 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
8558 calling redirect_edge_and_branch_force.
8560 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
8562 * tree-data-ref.c: Don't include tree-chrec.h.
8563 (debug_data_dependence_relations): New.
8564 (dump_data_dependence_relation): Call dump_data_reference on data refs
8566 (same_access_functions): Moved...
8567 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
8568 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8569 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
8570 struct rdg_vertex_info, ): New.
8571 (create_rdg_edge_for_ddr): Compute the dependence level before looking
8573 (create_rdg_vertices): Initialize the htab of graph->indexes.
8574 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
8575 (stmts_from_loop): Don't save LABEL_EXPR.
8576 (hash_stmt_vertex_info, eq_stmt_vertex_info,
8577 hash_stmt_vertex_del): New.
8578 (build_rdg): Initialize rdg->indexes.
8579 (free_rdg, stores_from_loop, ref_base_address,
8580 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
8581 have_similar_memory_accesses_1, ref_base_address_1,
8582 remove_similar_memory_refs): New.
8584 * tree-data-ref.h: Include tree-chrec.h.
8585 (debug_data_dependence_relations): Declared.
8586 (same_access_functions): ...here. Now static inline.
8587 (ddr_is_anti_dependent, ddrs_have_anti_deps,
8588 ddr_dependence_level): New.
8589 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
8590 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
8591 RDG_MEM_READS_STMT): New.
8592 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8593 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
8594 rdg_vertex_for_stmt): Declared.
8595 (struct rdg_edge): New field level.
8596 (RDGE_LEVEL, free_rdg): New.
8597 (stores_from_loop, remove_similar_memory_refs,
8598 rdg_defs_used_in_other_loops_p,
8599 have_similar_memory_accesses): Declared.
8600 (rdg_has_similar_memory_accesses): New.
8602 * lambda.h (dependence_level): New.
8603 * common.opt (ftree-loop-distribution): New.
8604 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
8605 (print_loop_ir): Renamed print_loops.
8606 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
8607 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
8608 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
8609 (tree-loop-distribution.o): Added.
8610 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
8611 (mark_virtual_ops_in_bb): New.
8612 (print_loops_bb, debug_loop_num, debug_loop): New.
8613 * passes.c: Scheduled pass_loop_distribution.
8615 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8617 * graphite.c (scan_tree_for_params): Correct the number of columns
8619 (nb_flat_iterator): New.
8620 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
8621 (build_scop_iteration_domain): Correct the number of columns for
8624 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
8626 * Merge from mainline (129697:130800).
8628 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
8630 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
8631 dominated by SCoP's exit.
8632 (graphite_transform_loops): Compute post dominators.
8634 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
8636 * Merge from mainline (127169:129697).
8638 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
8640 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
8641 parameter for the basic block that contains the expression. Use
8642 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
8643 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
8645 * graphite.h (gbb_loop): New.
8646 (GBB_LOOP): Removed.
8648 2007-08-03 Sebastian Pop <sebpop@gmail.com>
8650 * Makefile.in: Fix merge problem.
8652 2007-08-03 Sebastian Pop <sebpop@gmail.com>
8654 * Merge from mainline (125309:127169).
8655 * tree-loop-distribution.c: Disabled.
8657 2007-06-05 Sebastian Pop <sebpop@gmail.com>
8659 * Merge from mainline (r123693:125309).
8661 2007-05-30 Sebastian Pop <sebpop@gmail.com>
8663 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
8665 (correct_modify_p, check_statements, number_of_lvalue_uses,
8666 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
8667 instead of MODIFY_EXPR.
8668 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
8671 2007-05-24 Sebastian Pop <sebpop@gmail.com>
8673 * tree-loop-distribution.c (struct rdg): Replace arrays by
8674 VECs for edges and vertices.
8675 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
8676 (RDGV_NB_PARTITIONS): New.
8677 (PRDG_NBV, PRDG_NBE): Removed.
8678 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
8679 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
8680 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
8682 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
8683 Sebastian Pop <sebpop@gmail.com>
8685 * doc/invoke.texi (-ftree-loop-distribution): Document.
8686 * tree-loop-distribution.c: New file.
8687 * tree-pass.h (pass_loop_distribution): Declared.
8688 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8689 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
8691 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
8692 (DDR_REVERSED_P): New.
8693 * common.opt (-ftree-loop-distribution): New.
8694 * tree-flow.h (distribute_loops): Declared.
8695 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
8696 * passes.c (init_optimization_passes): Schedule loop distribution.
8698 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
8700 * graphite.c (print_graphite_bb): Don't call dump_data_references.
8701 (print_scop): Don't print when scop is NULL.
8702 (build_scop_context, find_transform): Don't output to stderr.
8704 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
8706 * tree-data-ref.c: Don't include graphite.h.
8707 Comment out the code for printing data reference's scop.
8708 (build_access_matrix_with_af): Moved...
8709 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
8710 * graphite.c (build_access_matrix_with_af): ... here. Now static.
8711 (print_graphite_bb): Print basic block's schedule.
8712 (print_scop): Don't print the schedule, call cloog's pretty printer.
8713 (bb_in_scop_p): A basic block is in a scop only if it is both
8714 dominated and postdominated by the scop's entry and exit basic blocks.
8715 (function_parameter_p): New.
8716 (invariant_in_scop_p): Use function_parameter_p.
8717 (new_scop, save_scop): New.
8718 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
8720 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
8721 (loop_in_scop_p): New.
8722 (scop_record_loop): Use loop_in_scop_p.
8723 (build_scop_domain): Renamed build_scop_iteration_domain.
8724 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
8725 nb_params_in_scop, build_scop_context, first_loop_in_scop,
8726 setup_cloog_loop, dot_scop_1, dot_scop): New.
8727 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
8728 (struct scop): Add a pointer to cloog's representation of a program.
8730 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8732 * doc/invoke.texi (-ftree-check-verbose): Renamed
8733 -ftree-checks-verbose.
8734 * common.opt (flag_tree_check_verbose): Renamed
8735 flag_tree_checks_verbose.
8736 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
8738 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8740 * configure: Regenerated.
8741 * config.in: Regenerated.
8742 * tree-ssa-loop.c (graphite_transforms): Execute
8743 graphite_transform_loops only when HAVE_cloog.
8744 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
8745 * graphite.c: Include polylibgmp.h and cloog.h.
8746 (graphite_transform_loops): Removed loops parameter.
8747 * tree-flow.h (graphite_transform_loops): Update declaration.
8748 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
8749 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
8750 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
8751 (OBJS-common): Remove dependence on graphite.o.
8752 (BACKEND): Depend on @GRAPHITE@.
8754 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
8756 * doc/invoke.texi (-ftree-check-verbose): Documented.
8757 * gcc.dg/tree-checker/tree-checks-1.c: New.
8758 * gcc.dg/tree-checker/tree-checks-2.c: New.
8759 * gcc.dg/tree-checker/tree-checks-3.c: New.
8760 * gcc.dg/tree-checker/tree-checks-4.c: New.
8761 * gcc.dg/tree-checker/tree-checks.exp: New.
8762 * gcc.dg/tree-checker/condates.crp: New.
8763 * common.opt (ftree-checks-verbose): New.
8764 * tree-check.c (tree_check_warning): Move extra stderr output
8765 under control of flag_tree_check_verbose.
8767 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
8769 * tree-match.c: Fix comments formatting.
8770 * tree-match.h: Fix comments formatting.
8771 * tree-check.c: Fix comments formatting.
8772 (tree_check_init): Restructure.
8774 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
8776 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
8778 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
8780 * Merge from mainline (r120733:123693).
8782 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
8784 * condate.y: New file.
8785 * tree-match.h (struct patt_info_s): New field sign.
8786 (struct condate_s): New field msg.
8787 (normalize_condate, name_condate, add_condate): New.
8788 (conds[], condate_parse): Made extern.
8789 * tree-check.c (tree_check_warning): First arg changed to cond;
8790 warning reformatted.
8791 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
8793 (tree_check): Process trivial condates.
8794 (read_delimited_string): Removed.
8795 (print_cond): Print name and msg.
8796 (conds[]): Made extern.
8797 (parse_tree_check_file_once): Rewritten to use the parser in
8799 Processing of option --tree_check_string moved to tree_scan().
8800 * Makefile.in: Added condate.y
8802 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
8804 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
8805 Use VECs instead of varrays.
8806 * diagnostic.h (lazy_dump_generic_node): Update declaration.
8807 * Makefile.in (pretty-print.o): Depend on vec.h.
8808 * pretty-print.c: Include tree.h and vec.h.
8809 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
8810 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
8811 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
8812 pp_free_list): Use VECs instead of varrays.
8813 * pretty-print.h: Do not include varray.h.
8814 (struct tree_chunk_s): Declaration moved before its use.
8815 (output_buffer): Rename varray field to chunks.
8816 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
8817 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
8818 save_global_holes): Use VECs instead of varrays.
8819 * tree-match.h: Declare VECs of cfg_node, and hole_p.
8820 * tree-check.c (scan_cfg_stmts, push_node,
8821 print_matching_stmt): Removed.
8822 (tree_check_instance, push_global_holes_if_new, tree_check,
8823 execute_tree_check): Use VECs instead of varrays.
8824 (gate_tree_check): Don't execute the CFG check when basic_block_info
8827 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8829 * Merge from mainline (r115016:120733).
8831 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8833 * Merge from mainline (r117632:117661).
8835 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8837 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
8838 * tree-pass.h (TDF_DEBUG, debug_p): New.
8839 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
8840 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
8841 get_loop_exit_condition, analyze_evolution_in_loop,
8842 analyze_initial_condition, analyze_scalar_evolution,
8843 instantiate_parameters, number_of_latch_executions): Use debug_p.
8844 * tree-chrec.c (chrec_apply): Use debug_p.
8845 * tree-data-ref.c: Include graphite.h.
8846 (dump_data_reference): Print also the access matrix.
8847 (analyze_array, analyze_indirect_ref, init_data_ref,
8848 analyze_offset_expr, address_analysis, object_analysis,
8849 create_data_ref, finalize_ddr_dependent,
8850 non_affine_dependence_relation, analyze_ziv_subscript,
8851 analyze_siv_subscript_cst_affine,
8852 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
8853 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
8854 analyze_miv_subscript, analyze_overlapping_iterations,
8855 build_classic_dist_vector, subscript_dependence_tester,
8856 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
8857 (build_access_matrix_with_af): No longer static.
8858 * tree-data-ref.h (scop_p): ... declaration here.
8859 (data_reference.scop): New field.
8860 (DR_SCOP, DR_ACCESS_MATRIX): New.
8861 (build_access_matrix_with_af, dr_num_subscripts): Declared.
8862 * graphite.c (print_graphite_bb): Call dump_data_references.
8863 (print_scop): Use scop_nb_loops and scop_dim_domain.
8864 (test_for_scop_bound): Use debug_p.
8865 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
8867 (scop_loop_index): Moved...
8868 (scop_record_loop): New.
8869 (build_scop_loop_nests): Use scop_record_loop.
8870 (build_scop_domain): Use scop_dim_domain.
8871 (build_access_matrix): Implemented.
8872 (build_scop_canonical_schedules): Use scop_nb_loops.
8873 (build_graphite_bb): Initialize GBB_SCOP.
8874 * graphite.h (scop_p): Moved...
8875 (graphite_bb.scop): New field.
8876 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
8877 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
8878 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
8879 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
8880 scop_loop_index): New.
8881 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
8883 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
8885 * Merge from mainline (r117661:120450).
8887 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
8889 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
8890 at the first declaration outside the varying loop, instantiate as
8892 * tree-chrec.c (for_each_scev_op): New.
8893 * tree-chrec.h (for_each_scev_op): Declared.
8894 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
8895 * tree-data-ref.c (get_references_in_stmt,
8896 find_data_references_in_stmt): New, from trunk.
8897 (find_data_references_in_loop): Use get_references_in_stmt
8898 and find_data_references_in_loop, modified as in trunk.
8899 (build_access_matrix_with_af): New.
8900 * tree-data-ref.h (data_reference): Add a field access_matrix.
8901 (data_ref_loc): New, as in trunk.
8902 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
8903 invariant_in_scop_p, param_index, scan_tree_for_params,
8904 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
8905 idx_record_param, idx_record_params, build_access_matrix,
8906 build_scop_data_accesses, build_scop_canonical_schedules,
8907 build_graphite_bb, build_scop_bbs, find_params_in_bb,
8908 build_scop_params): New.
8909 * graphite.h (graphite_bb): New.
8910 (scop): Add fields static_schedule, params, loop_nest,
8912 * lambda.h: Declare vecs of lambda_matrix.
8913 * tree-flow.h (print_loop_ir_bb): Declared.
8914 * tree-cfg.c (print_loop_ir_bb): New.
8915 (print_loop): Use print_loop_ir_bb.
8917 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
8919 * Merge from mainline (r115016:117632).
8921 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
8923 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
8924 break due to a warning.
8926 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
8928 * graphite.c (print_scops, debug_scops): New.
8929 (graphite_transform): Renamed graphite_find_transform.
8930 * graphite.h (debug_scops): Declared.
8932 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
8934 * tree-match.c: Reformat following the GNU style.
8935 * tree-match.h: Reformat following the GNU style.
8936 * tree-pattern.h: Removed empty file.
8937 * Makefile.in: Remove references to tree-pattern.h.
8938 * tree-check.c: Reformat following the GNU style.
8939 (execute_tree_check): Move gate condition code to...
8940 (gate_tree_check): ...here. New function.
8941 (pass_check): Use the gate function.
8943 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
8945 * tree-pattern.h: New. Tree pattern matching and checking using
8947 * tree-check.c: New. Tree/CFG checking pass.
8948 * tree-match.c: New. Library for tree pattern matching.
8949 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
8950 * toplev.c, flags.h: Add globals for tree-check pass.
8951 * Makefile.in: Integrate the files in tree-check pass.
8952 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
8953 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
8954 Introduce a "lazy" pretty-print mode.
8955 * tree.c, tree.h: Add tree_name.
8957 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
8959 * doc/invoke.texi (-fgraphite): Correct typo.
8960 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
8961 use of print_loop_ir.
8962 * gcc.dg/graphite/scop-1.c: New.
8963 * gcc.dg/graphite/scop-2.c: New.
8964 * gcc.dg/graphite/graphite.exp: New.
8965 * graphite.c: Include domwalk.h.
8966 (print_scop): Print only the entry and exit blocks.
8967 (debug_scop): No longer static.
8968 (affine_expr): Fix formating. Return also true when the expression is
8970 (stmt_simple_for_scop_p): Fix formating.
8971 (build_scops): Use domwalk.
8972 (get_loop_start, end_scop, test_for_scop_bound): New.
8973 (graphite_transform_loops): Avoid printing on stderr.
8974 * graphite.h (debug_scop): Declared.
8975 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
8976 * Makefile.in (graphite.o): Depend on domwalk.h.
8977 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
8978 declarations for static functions.
8979 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
8980 controlling output verbosity.
8982 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
8983 Plesco Alexandru <shurikx@gmail.com>
8985 * doc/invoke.texi (-fgraphite): Document.
8986 * tree-pass.h (pass_graphite_transforms): Declared.
8987 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
8988 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
8989 (pass_graphite_transforms): Defined.
8990 * tree-data-ref.c (free_data_ref, data_reference): Extern.
8991 * tree-data-ref.h (free_data_ref, data_reference): Declared.
8992 * graphite.c, graphite.h: New.
8993 * common.opt (fgraphite): Declared.
8994 * tree-flow.h (graphite_transform_loops): Declared.
8995 * Makefile.in (OBJS-common): Add graphite.o.
8996 (graphite.o): New rule.
8997 * passes.c (pass_graphite_transforms): Scheduled.