1 2010-12-25 Sebastian Pop <sebastian.pop@amd.com>
3 * graphite-cloog-compat.h (cloog_names_nb_scattering): New.
4 (cloog_names_scattering): New.
5 * graphite-opencl-codegen.c (opencl_constant_expression_p): Use
6 clast_expr_* instead of expr_*. Call clast_name_to_str.
7 (opencl_clast_name_to_tree): Now takes a clast_name_p in parameter.
8 (opencl_get_scat_real_name): Same. Call clast_name_to_str.
9 (opencl_add_scat_as_arg): Same.
10 (opencl_print_local_vars): Call cloog_names_scattering and
11 cloog_names_nb_scattering.
12 (opencl_print_for): Do not call value_*.
13 (opencl_print_term): Same.
14 (opencl_print_expr): Use clast_expr_* instead of expr_*.
15 (opencl_print_sum): Same.
16 (opencl_print_binary): Same.
18 2010-12-25 Alexey Kravets <kayrick@ispras.ru>
20 * Makefile.in (OBJS-common): Add graphite-opencl-codegen.o,
21 graphite-opencl-meta-clast.o and graphite-opencl.o.
22 (graphite-opencl-codegen.o): New.
23 (graphite-opencl-meta-clast.o): New.
24 (graphite-opencl.o): New.
25 (GTFILES): Add graphite-opencl.c.
26 * common.opt (fgraphite-opencl): New.
27 (fgraphite-opencl-cpu): New.
28 (fgraphite-opencl-ignore-depth-heuristic): New.
29 (fgraphite-opencl-ignore-mem-heuristic): New.
30 (fgraphite-opencl-ignore-dep): New.
31 (fgraphite-opencl-ignore-types): New.
32 (fgraphite-opencl-depth-base): New.
33 (fgraphite-opencl-debug): New.
34 * graphite-opencl-codegen.c: New file.
35 * graphite-opencl-meta-clast.c: New file.
36 * graphite-opencl.c: New file.
37 * graphite-opencl.h: New file.
38 * graphite.c (graphite_transform_loops): Call graphite_opencl_init and
39 graphite_opencl_finalize.
40 * tree-ssa-loop.c (gate_graphite_transforms): Handle
42 * graphite-clast-to-gimple.c (gloog): Call opencl_transform_clast.
43 * dbgcnt.def (opencl_scop_cnt): New counter.
45 2010-12-25 Alexander Monakov <amonakov@ispras.ru>
47 * graphite-dependences.c (graphite_outer_subscript_bound): New.
48 (graphite_carried_dependence_level_k): Export.
49 * graphite-dependences.h (graphite_outer_subscript_bound): Declare.
50 (graphite_carried_dependence_level_k): Ditto.
52 2010-12-25 Alexey Kravets <kayrick@ispras.ru>
54 * graphite-clast-to-gimple.c (struct clast_name_index): Move
55 definition to graphite-clast-to-gimple.h.
56 (clast_name_to_index): Ditto.
57 (clast_name_index_elt_info): Ditto.
58 (eq_clast_name_indexes): Ditto.
59 (save_clast_name_index): Export.
60 (clast_name_to_gcc): Ditto.
61 (clast_to_gcc_expression): Ditto.
62 (gcc_type_for_clast_expr): Ditto.
63 (graphite_create_new_guard): Ditto.
64 (gcc_type_for_iv_of_clast_loop): Ditto.
65 (graphite_create_new_loop): Ditto.
66 (build_iv_mapping): Ditto.
67 (graphite_create_new_loop_guard): Ditto.
68 (debug_clast_name_index): New.
69 (debug_clast_name_indices): New debug function.
71 2010-12-21 Sebastian Pop <sebastian.pop@amd.com>
73 PR tree-optimization/47021
74 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
76 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
78 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
80 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
82 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
84 * graphite-sese-to-poly.c (analyze_drs): Removed.
85 (build_scop_drs): Do not call analyze_drs.
86 (analyze_drs_in_stmts): New.
88 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
89 (insert_out_of_ssa_copy_on_edge): Same.
90 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
91 (rewrite_phi_out_of_ssa): Same.
92 (rewrite_cross_bb_scalar_dependence): Same.
93 (split_reduction_stmt): Move data references in the new basic blocks.
94 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
96 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
98 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
100 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
103 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
104 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
105 * graphite-poly.h (new_poly_bb): Update declaration.
106 (gbb_from_bb): Moved here...
108 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
110 (graphite_stmt_p): Removed.
111 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
112 sbitmap reductions. Always build a gimple_bb_p. Do not call
114 (build_scop_bbs_1): Do not pass in sbitmap reductions.
115 (build_scop_bbs): Same.
116 (gbb_from_bb): ... from here.
117 (add_conditions_to_constraints): Moved up.
119 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
120 not contain data references.
121 (new_pbb_from_pbb): New.
122 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
124 (rewrite_close_phi_out_of_ssa): Update call to
125 insert_out_of_ssa_copy_on_edge.
126 (rewrite_reductions_out_of_ssa): Now static.
127 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
129 (split_reduction_stmt): Call split_pbb.
130 (translate_scalar_reduction_to_array): Pass in the scop, do not
131 pass in the sbitmap reductions.
132 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
133 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
134 (rewrite_commutative_reductions_out_of_ssa): Same.
135 (build_poly_scop): Call build_scop_bbs,
136 rewrite_commutative_reductions_out_of_ssa,
137 rewrite_reductions_out_of_ssa, and
138 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
140 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
142 (rewrite_reductions_out_of_ssa): Same.
143 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
144 (build_scop_bbs): Same.
145 * graphite.c (graphite_transform_loops): Do not initialize reductions.
146 Do not call build_scop_bbs,
147 rewrite_commutative_reductions_out_of_ssa,
148 rewrite_reductions_out_of_ssa, and
149 rewrite_cross_bb_scalar_deps_out_of_ssa.
150 * sese.h (struct gimple_bb): Add field pbb.
153 * gcc.dg/graphite/pr45297.c: New.
155 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
157 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
159 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
160 handle_scalar_deps_crossing_scop_limits.
161 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
162 after the scop. Update call to rewrite_cross_bb_scalar_deps.
164 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
166 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
167 when replacing a constant in an ADDR_EXPR.
169 2010-10-20 Sebastian Pop <sebastian.pop@amd.com>
171 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
173 (lst_do_strip_mine): Same.
174 (scop_do_strip_mine): Same.
175 * graphite-poly.c (apply_poly_transforms): Update call to
177 * graphite-poly.h (scop_do_strip_mine): Update declaration.
179 2010-09-24 Sebastian Pop <sebastian.pop@amd.com>
182 * graphite.c (graphite_initialize): Call scev_reset.
184 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
186 * sese.h (scev_analyzable_p): Return false for real or floating
187 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
189 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
192 * gfortran.dg/graphite/pr45758.f90: New.
194 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
196 * graphite-scop-detection.c (is_scop_p): Free bblist.
198 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
200 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
202 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
204 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
205 Do not allocate ub_expr, it is passed in initialized.
207 2010-09-21 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
209 * common.opt (fgraphite-dump-cloog): New flag.
210 * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
211 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
212 (build_cloog_prog): Dump CLooG input file when
213 flag_graphite_dump_cloog is set.
214 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
216 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
218 Revert previous patch "New flag: -fgraphite-dump-cloog."
220 2010-09-20 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
222 * common.opt (fgraphite-dump-cloog): New flag.
223 * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
224 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
225 (build_cloog_prog): Dump CLooG input file when
226 flag_graphite_dump_cloog is set.
228 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
230 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
231 verify_dominators for CDI_POST_DOMINATORS.
232 * sese.h: Remove comment about CDI_POST_DOMINATORS.
233 (recompute_all_dominators): Remove call to free_dominance_info
234 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
235 for CDI_POST_DOMINATORS.
237 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
239 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
240 over pbb_dim_iter_domain.
242 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
244 * graphite-flattening.c: Fix comments.
246 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
248 * Makefile.in (OBJS-common): Add graphite-flattening.o.
249 (graphite-flattening.o): New rule.
250 * common.opt (floop-flatten): New flag.
251 * doc/invoke.texi (-floop-flatten): Documented.
252 * graphite-flattening.c: New.
253 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
254 * graphite-poly.h (flatten_all_loops): Declared.
255 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
256 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
257 is set, also set flag_graphite.
259 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
261 * graphite-poly.c (cloog_checksum): New.
262 * graphite-poly.h (cloog_checksum): Declared.
264 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
266 * graphite-poly.c (pbb_number_of_iterations): Removed.
267 (pbb_number_of_iterations_at_time): Correctly compute the number
268 of iterations in the transformed loop.
269 * graphite-poly.h (pbb_number_of_iterations): Removed.
271 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
273 * graphite-poly.h (lst_update_scattering_seq): Removed.
274 (lst_update_scattering): Correctly handle outermost loop dewey
277 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
279 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
280 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
281 * graphite-poly.h (lst_niter_for_loop): New.
283 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
285 * graphite-poly.c (apply_poly_transforms): Do not abort when the
286 transform read from disk is not legal. Call fatal_error instead.
288 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
290 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
291 (print_scop_header): Removed. Inlined in the only call place...
292 (print_scop): ... here.
294 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
296 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
298 2010-09-02 Vladimir Kargov <kargov@gmail.com>
300 * graphite-scop-detection.c (is_valid_expr_p, is_valid_loop_p): New.
301 (is_valid_stmt_p): Add data reference and operation-specific checks.
302 (is_valid_bb_p): Change structure, add loop validity check.
303 (is_scop_p): Move the TODO list
304 (find_scops_new): New.
305 (build_scops_new): Move part of functionality to find_scops_new and
306 build_scops. Add necessary steps for successful SCoP construction.
307 (build_scops): Compute SCoP sets for both detection algorithms, choose
308 the resulting one depending on static condition.
310 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
312 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
314 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
316 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
317 (dot_deps_stmt): Same.
318 * graphite-poly.c (dot_lst): Same.
320 2010-08-23 Sebastian Pop <sebastian.pop@amd.com>
322 * graphite-blocking.c (scop_do_strip_mine): Do not call
323 graphite_legal_transform.
324 (scop_do_block): Same.
326 2010-08-20 Vladimir Kargov <kargov@gmail.com>
328 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
331 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
334 * gcc.dg/graphite/id-pr45230.c: New.
336 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
338 * tree-scalar-evolution.c (instantiate_array_ref): New.
339 (instantiate_scev_r): Also handle ARRAY_REFs.
341 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
343 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
344 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
345 RESULT_DECL, and FIELD_DECL. Return false for an
346 SSA_NAME_IS_DEFAULT_DEF.
347 (compute_scalar_evolution_in_loop): Do not further analyze the
348 scalar evolution when no_evolution_in_loop_p returns true.
350 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
352 * tree-chrec.h (evolution_function_is_affine_p): Do not check
353 whether CHREC_LEFT is invariant. A function is affine when
354 CHREC_RIGHT is invariant.
356 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
358 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
360 (rewrite_degenerate_phi): Same.
361 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
363 2010-08-18 Vladimir Kargov <kargov@gmail.com>
365 * graphite-scop-detection.c (graphite_can_represent_scev,
366 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
367 graphite_can_represent_loop): Remove outermost_loop.
369 2010-08-17 Sebastian Pop <sebastian.pop@amd.com>
372 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
373 handle GIMPLE_CALLs with no LHS.
375 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
376 Sebastian Pop <sebastian.pop@amd.com>
378 * gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write.
379 Call remove-build-file to clean up the generated *.graphite files.
381 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
383 * doc/invoke.texi (debugging options): Update documentation.
384 (-floop-interchange): Same.
385 (-flopp-strip-mine): Same.
386 (-floop-block): Same.
387 (-fgraphite-read): Add documentation.
388 (-fgraphite-write): Same.
390 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
392 * toplev.c (process_options): Disable graphite loop optimization
393 options when -fgraphite-read flag is used.
395 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
397 * graphite-poly.c (init_graphite_out_file): New.
398 (init_graphite_in_file): New.
399 (apply_poly_transforms): Updated to enable reading and writing of
401 * toplev.c (init_asm_output): Remove graphite in/out file initialization.
403 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de>
405 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
408 2010-08-12 Sebastian Pop <sebastian.pop@amd.com>
410 * graphite-clast-to-gimple.c (precision_for_value): Adjust
411 computation of precision by 1.
413 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com>
415 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
416 (openscop_read_polyhedron_matrix): New.
417 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
418 (openscop_read_N_int): Same.
419 * graphite-poly.c (openscop_read_N_int): New.
420 (openscop_read_one_int): New.
421 (openscop_read_N_string): New.
422 (openscop_read_one_string): New.
423 (openscop_read_powerset_matrix): New.
424 (graphite_read_transforms): Remove.
425 (graphite_read_scatt): New.
426 (graphite_read_scop_file): New.
427 (apply_poly_transforms): Updated to call graphite_read_scop_file.
429 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
431 * graphite-poly.c: Change include order.
433 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
435 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
436 (cloog_matrix_nrows): New.
438 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
440 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
442 * graphite-poly.c (openscop_print_scattering_function_1): Same.
443 (print_scattering_function_1): Same.
444 (openscop_print_pbb_domain): Same.
445 (openscop_print_scop_context): Same.
446 (print_scop_context): Same.
448 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
450 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
451 (openscop_print_pdr_polyhedron): Print pph.
453 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
455 * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files.
456 * gfortran.dg/graphite/graphite.exp: Same.
457 * gcc.dg/graphite/vect-pr43423.c: New.
459 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
461 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
462 priority signed types.
464 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
466 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
467 to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type.
469 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com>
471 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
472 (openscop_print_polyhedron_matrix): New.
473 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
474 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
475 (openscop_print_pdr_powerset): New.
476 (openscop_print_powerset_matrix): New.
477 (openscop_print_scattering_function_1): New.
478 (print_scattering_function): Add support for scattering names and
480 (graphite_write_transforms): Remove.
481 (apply_poly_transforms): Updated to call print_scop.
482 (print_pdr_access_layout): Updated to support OpenScop format.
484 (openscop_print_pbb_domain): New.
485 (print_pbb_body): Added a parameter to allow indicating that pbb_body is
487 (print_pbb): Updated to call the new print_pbb_body.
488 (openscop_print_scop_context): New.
489 (print_scop_header): New.
490 (print_scop): Updated to call print_scop_header.
491 * graphite-poly.h: Document OpenScop format.
493 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
495 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
496 the case removed in the previous patch, when the only phi argument
497 is defined in the same loop as the phi node itself. Handle it
498 separately from the invariant case by both propagating it outside
499 the region and replacing the phi node with an assign.
501 2010-07-28 Sebastian Pop <sebastian.pop@amd.com>
503 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
504 constant phi nodes with one argument are is_gimple_min_invariant
505 and SSA_NAME_IS_DEFAULT_DEF.
507 * gfortran.dg/graphite/id-22.f: New.
509 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
511 * graphite.c (graphite_initialize): Do not initialize
512 CLooG and initialize the Parma Polyhedra Library
513 manually when using CLOOG_ORG.
514 (graphite_finalize): Do not finalize CLooG and finalize
515 the Parma Polyhedra Library manually when using CLOOG_ORG.
516 * graphite-cloog-compat.h (cloog_initialize): Hide function
517 when using CLOOG_ORG.
518 (cloog_finalize): Same.
520 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
522 * graphite-clast-to-gimple.c (free_scattering): Change
523 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
525 (build_cloog_prog): Same.
526 * graphite-cloog-compat.h (cloog_domain): Removed.
527 (cloog_scattering): New.
528 (cloog_set_domain): Removed.
529 (cloog_set_scattering): New.
530 (cloog_next_domain): Removed.
531 (cloog_next_scattering): New.
532 (cloog_set_next_domain): Removed.
533 (cloog_set_next_scattering): New.
534 (CloogScatteringList): New.
535 (CloogScattering): New.
536 (cloog_scattering_free): New.
537 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
538 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
541 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
543 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
545 (set_cloog_options): Same.
546 (print_clast_stmt): Same.
547 (scop_to_clast): Same.
548 (print_generated_program): Same.
550 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
551 (scop_to_clast): Extend with CloogState.
552 * graphite-cloog-util.c: Include graphite-cloog-compat.h
553 (new_Cloog_Domain_from_ppl_Polyhedron):
554 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
555 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
556 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
557 * graphite-cloog-util.h (build_cloog_prog): Same.
558 * graphite-cloog-copat.h (build_cloog_prog): New.
560 (cloog_state_malloc): New.
561 (cloog_state_free): New.
562 (cloog_loop_malloc): New.
563 (cloog_options_malloc): New.
564 (cloog_statement_alloc): New.
565 (cloog_domain_from_cloog_matrix): New.
566 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
567 (new_Cloog_Domain_from_ppl_Polyhedron): New.
569 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
571 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
572 type of NAME now depends on used CLooG version.
573 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
574 (gcc_type_for_clast_expr): Same.
575 (print_clast_stmt): Replace pprint with clast_pprint.
576 * graphite-cloog-compat.h: Provide compatibility macros for
579 (clast_expr_term): New.
580 (clast_expr_red): New.
581 (clast_expr_bin): New.
584 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
586 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
587 compatible to newer CLooG releases (CLOOG_ORG).
588 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
589 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
590 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
591 (build_cloog_prog) : New.
592 (cloog_program_extract_scalars): New.
593 (cloog_program_scatter): New.
595 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
597 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
598 conditionally (CLOOG_ORG).
599 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
600 (cloog_statement_usr): New.
601 (cloog_domain): Same.
602 (cloog_set_domain): Same.
603 (cloog_next_domain): Same.
604 (cloog_set_next_domain): Same.
605 (cloog_program_nb_scattdims): Same.
606 (cloog_program_set_nb_scattdims): Same.
607 (cloog_program_names): Same.
608 (cloog_program_set_names): Same.
609 (cloog_program_set_context): Same.
610 (cloog_program_set_loop): Same.
611 (cloog_program_blocklist): Same.
612 (cloog_program_set_blocklist): Same.
613 (cloog_program_scaldims): Same.
614 (cloog_program_set_scaldims): Same.
615 (cloog_names_nb_parameters): Same.
616 (cloog_names_set_nb_parameters): Same.
617 (cloog_names_parameters): Same.
618 (cloog_names_set_parameters): Same.
619 (cloog_names_set_nb_iterators): Same.
620 (cloog_names_set_iterators): Same.
621 (cloog_names_set_nb_scattering): Same.
622 (cloog_names_set_scattering): Same.
623 (cloog_statement_set_usr): Same.
624 (cloog_loop_set_next): Same.
625 (cloog_loop_set_domain): Same.
626 (cloog_loop_set_block): Same.
627 (cloog_block_list_next): Same.
628 (cloog_block_list_set_next):
629 (cloog_block_list_set_block): Same.
631 2010-07-27 Sebastian Pop <sebastian.pop@amd.com>
633 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
635 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
636 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
637 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
638 when something has been changed.
639 (rewrite_commutative_reductions_out_of_ssa): Same.
641 * gcc.dg/graphite/id-26.c: New.
643 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
645 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
646 handle the case when def is in the sese region.
647 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
648 for invariant expressions.
649 (rewrite_cross_bb_phi_deps): Removed.
650 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
651 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
652 rewrite_cross_bb_phi_deps.
654 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
656 * graphite-sese-to-poly.c
657 (rewrite_commutative_reductions_out_of_ssa_loop): Call
658 scev_analyzable_p only on is_gimple_reg
660 * gcc.dg/graphite/id-25.c: New.
662 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
664 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
665 (rewrite_close_phi_out_of_ssa): Propagate constant values or
666 parametric expressions outside the scop region.
667 (rewrite_cross_bb_scalar_deps): Same.
668 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
670 * gcc.dg/graphite/run-id-5.c: New.
671 * gcc.dg/graphite/run-id-6.c: New.
672 * gfortran.dg/graphite/id-21.f: New.
674 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
676 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
677 SSA_NAME_DEF_STMT only on SSA_NAMEs.
679 * gcc.dg/graphite/id-24.c: New.
681 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
683 * tree-scalar-evolution.c (instantiate_scev_name): Do not
684 instantiate default definitions.
686 2010-07-20 Vladimir Kargov <kargov@gmail.com>
688 * graphite-scop-detection.c (is_valid_stmt_p): New.
689 (is_valid_bb_p): New.
691 2010-07-20 Vladimir Kargov <kargov@gmail.com>
692 Sebastian Pop <sebastian.pop@amd.com>
694 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
695 (loop_exits_from_bb_p): New.
696 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
697 (loop_exits_from_bb_p): Declared.
698 * graphite-scop-detection.c (scopdet_basic_block_info): Call
701 2010-07-20 Vladimir Kargov <kargov@gmail.com>
703 * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and
705 (dot_regions_1): New.
707 * refined-regions.h (dot_regions): Declared.
708 * Makefile.in (refined-regions.o): Update dependences.
710 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
712 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
713 extra parameter for the region. Call scev_analyzable_p.
714 (rewrite_reductions_out_of_ssa): Update call to
715 rewrite_close_phi_out_of_ssa.
716 (rewrite_cross_bb_phi_deps): Same.
717 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
718 parameter for the region. Call scev_analyzable_p.
719 (rewrite_commutative_reductions_out_of_ssa): Update call to
720 rewrite_commutative_reductions_out_of_ssa_loop.
722 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
724 * gcc.dg/tree-ssa/pr20742.c: New.
726 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
728 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
730 * gcc.dg/graphite/id-23.c: New.
732 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
734 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
735 SSA scalar phi nodes that can be scev_analyzable_p.
737 * gfortran.dg/graphite/id-20.f: Adjust testcase.
739 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
741 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
742 handle SSA_NAME_IS_DEFAULT_DEF.
744 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
746 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
748 * gcc.dg/graphite/pr42729.c: New.
750 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
752 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
753 case non close-phi nodes with one argument.
755 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
757 * sese.h (scev_analyzable_p): Scevs could be expressions without
758 chrecs and still be scev_analyzable_p.
760 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
762 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
764 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
766 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
767 * cfgloop.h (struct loop): Remove single_iv field.
768 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
769 (scop_canonicalize_loops): Removed.
770 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
771 over all the loop phi nodes in loop->header.
772 (build_poly_scop): Remove use of scop_canonicalize_loops.
774 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
776 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
779 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
781 * tree-chrec.c (chrec_apply): Should only apply to the specified
782 variable. Also handle multivariate chains of recurrences that
783 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
785 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
787 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
788 (debug_clast_name_indexes_1): Removed.
789 (debug_clast_name_indexes): Removed.
790 (pbb_to_depth_to_oldiv): Removed.
791 (build_iv_mapping): Replace the use of rename_map with iv_map.
792 (translate_clast_user): Remove uses of rename_map. Allocate and
794 (translate_clast_for_loop): Remove uses of rename_map.
795 (translate_clast_for): Same.
796 (translate_clast_guard): Same.
797 (translate_clast): Same.
799 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
800 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
801 * sese.c (set_rename): Now static.
802 (rename_variables_in_stmt): Removed.
804 (is_parameter): Removed.
806 (expand_scalar_variables_call): Removed.
807 (expand_scalar_variables_ssa_name): Removed.
808 (expand_scalar_variables_expr): Removed.
809 (expand_scalar_variables_stmt): Removed.
810 (expand_scalar_variables): Removed.
811 (rename_variables): Removed.
812 (remove_condition): Removed.
813 (get_true_edge_from_guard_bb): Removed.
814 (get_false_edge_from_guard_bb): Removed.
815 (struct igp): Removed.
816 (default_before_guard): Removed.
817 (convert_for_phi_arg): Removed.
818 (add_guard_exit_phis): Removed.
819 (insert_guard_phis): Removed.
820 (graphite_copy_stmts_from_block): Now also uses iv_map and a
821 region. Do not copy conditions. Do not copy induction variables.
823 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
824 the translated statement. Use the iv_map for the induction
826 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
827 (set_rename): Removed declaration.
828 (scev_analyzable_p): ...here.
829 * tree-chrec.c (chrec_apply_map): New.
830 * tree-chrec.h (chrec_apply_map): Declared.
832 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
834 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
835 insert_loop_close_phis.
836 * sese.c (name_defined_in_loop_p): Removed.
837 (expr_defined_in_loop_p): Removed.
838 (alive_after_loop): Removed.
839 (close_phi_not_yet_inserted_p): Removed.
840 (struct alep): Removed.
841 (add_loop_exit_phis): Removed.
842 (insert_loop_close_phis): Removed.
844 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
846 * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped
848 * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same.
850 2010-07-07 Sebastian Pop <sebastian.pop@amd.com>
852 * gfortran.dg/graphite/id-20.f: New.
854 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
856 * graphite-cloog-util.h: Added cloog.h.
857 * graphite-blocking.c: Removed cloog.h.
858 * graphite-dependences.c: Same.
859 * graphite-interchange.c: Same.
860 * graphite-poly.c: Same.
861 * graphite-ppl.c: Same.
862 * graphite-scop-detection.c: Same.
863 * graphite-sese-to-poly.c:
865 Removed graphite-clast-to-gimple.h.
866 (check_poly_representation): Removed (unused).
867 * graphite-sese-to-poly.h
868 (check_poly_representation): Removed (unused).
870 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
873 (OBJS-common): Added graphite-cloog-util.o.
874 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
875 (graphite-cloog-util.o): New.
876 (graphite-ppl.o): Added graphite-cloog-util.h.
877 * graphite-clast-to-gimple.c:
878 Added graphite-cloog-util.h to include statements.
879 * graphite-cloog-util.c: New.
880 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
881 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
882 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
883 (new_C_Polyhedron_from_Cloog_Matrix): Same.
884 (ppl_Constrain_System_number_of_constraints): Same.
885 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
886 (oppose_constraint): Same.
887 (cloog_matrix_to_ppl_constraint): Same.
888 (new_Constraint_System_from_Cloog_Matrix): Same.
889 (insert_constraint_into_matrix): Same. Declared static.
890 * graphite-cloog-util.h: New.
891 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
892 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
893 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
894 (new_C_Polyhedron_from_Cloog_Matrix): Same.
895 (insert_constraint_into_matrix): Same.
897 Added graphite-cloog-util.h to include statements.
898 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
899 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
900 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
901 (new_C_Polyhedron_from_Cloog_Matrix): Same.
902 (insert_constraint_into_matrix): Same.
903 (ppl_Constrain_System_number_of_constraints): Same.
904 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
905 (oppose_constraint): Same.
906 (cloog_matrix_to_ppl_constraint): Same.
907 (new_Constraint_System_from_Cloog_Matrix): Same.
909 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
910 graphite-cloog-util.h.
911 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
912 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
913 (new_C_Polyhedron_from_Cloog_Matrix): Same.
914 (insert_constraint_into_matrix): Removed.
916 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
918 * graphite-clast-to-gimple.c
919 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
920 (precision_for_interval): Same.
921 (gcc_type_for_interval): Same.
922 (compute_type_for_level): Same.
923 * graphite-interchange.c
924 (lst_interchange_profitable_p): Same.
926 (psct_scattering_dim_for_loop_depth): Same.
928 (ppl_max_for_le_pointset): Same.
929 (ppl_min_for_le_pointset): Same.
931 2010-06-25 Vladimir Kargov <kargov@gmail.com>
933 * refined-regions.c (bb_index_compare): New.
934 (get_bbs_in_region): New.
935 (print_bbs_in_region): New.
936 (print_refined_region): Add an argument that allows to print
937 all basic blocks contained in regions.
938 (debug_refined_region): Update call to print_refined_region.
939 * refined-regions.h (print_refined_region): Update declaration.
940 (get_bbs_in_region): Declared.
941 * graphite-scop-detection.c (build_scops_new): Print the refined
942 region tree into the Grahite dump file.
944 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
946 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
947 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
949 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
951 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
952 rewrite_close_phi_out_of_ssa.
954 * gcc.dg/graphite/id-22.c: New.
956 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
958 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
960 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
962 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
964 * sese.c (debug_rename_map): Same.
967 (rename_variables_in_stmt): Same.
968 (expand_scalar_variables_call): Same.
969 (expand_scalar_variables_ssa_name): Same.
970 (expand_scalar_variables_expr): Same.
971 (expand_scalar_variables_stmt): Same.
972 (expand_scalar_variables): Same.
973 (rename_variables): Same.
974 (graphite_copy_stmts_from_block): Same.
975 (copy_bb_and_scalar_dependences): Same.
977 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
979 * graphite-clast-to-gimple.c (copy_renames): Removed.
980 (translate_clast_for): Do not call copy_renames.
981 (translate_clast_guard): Same.
983 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
985 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
986 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
987 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
988 before rewrite_cross_bb_scalar_deps.
990 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
992 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
993 Early return in when flag_associative_math is not set.
995 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
997 * gcc.dg/graphite/run-id-2.c: Call abort.
999 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1001 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1002 of SSA copies on edges except for loop->latch.
1004 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1006 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1007 Split out of rewrite_reductions_out_of_ssa.
1008 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1010 * graphite.c (graphite_transform_loops): Call it.
1012 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1014 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1016 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1018 * passes.c (init_optimization_passes): Add pass_graphite.
1019 Schedule a pass_copy_prop before pass_graphite_transforms.
1020 * timevar.def (TV_GRAPHITE): Declared.
1021 * tree-pass.h (pass_graphite): Declared.
1022 * tree-ssa-loop.c (pass_graphite): New.
1024 * gcc.dg/graphite/id-20.c: New.
1026 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1028 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1029 Remove calls to rename_nb_iterations and rename_sese_parameters.
1030 * graphite-clast-to-gimple.h (gloog): Update declaration.
1031 * graphite.c (graphite_transform_loops): Update call to gloog.
1032 * sese.c (rename_variables_in_expr): Removed.
1033 (rename_nb_iterations): Removed.
1034 (rename_sese_parameters): Removed.
1035 * sese.h (rename_nb_iterations): Removed.
1036 (rename_sese_parameters): Removed.
1038 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1040 * graphite-clast-to-gimple.c (gloog): Remove call to
1041 sese_adjust_liveout_phis.
1042 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1043 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1044 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1045 rewrite_phi_out_of_ssa.
1046 * sese.c (get_vdef_before_sese): Removed.
1047 (sese_adjust_vphi): Removed.
1048 (sese_adjust_liveout_phis): Removed.
1049 * sese.h (sese_adjust_liveout_phis): Removed.
1051 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1053 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1054 argument for the place after which to insert the out of SSA copy.
1055 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1056 (rewrite_phi_out_of_ssa): Same.
1057 (rewrite_cross_bb_scalar_deps): Same.
1058 (insert_copyout): Removed.
1059 (insert_copyin): Removed.
1060 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1061 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1064 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1066 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1067 (rewrite_reductions_out_of_ssa): Same.
1068 (rewrite_commutative_reductions_out_of_ssa): Same.
1069 (build_poly_scop): Do not call these functions.
1070 * graphite-sese-to-poly.h (build_poly_scop): Declared.
1071 (rewrite_reductions_out_of_ssa): Declared.
1072 (rewrite_commutative_reductions_out_of_ssa): Declared.
1073 * graphite.c (graphite_transform_loops): Call on every scop
1074 rewrite_commutative_reductions_out_of_ssa before calling
1075 rewrite_reductions_out_of_ssa and build_scop_bbs.
1077 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1079 * graphite-dependences.c (dot_deps): Make system call to dotty run
1081 (dot_deps_stmt): Same.
1082 * graphite-poly.c (dot_lst): Same.
1084 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1086 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1087 old_type in parameter.
1088 (gcc_type_for_value): Update call to gcc_type_for_interval.
1089 (compute_type_for_level_1): Renamed compute_type_for_level.
1090 Update call to gcc_type_for_interval.
1092 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1094 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
1095 the scev analysis when the variable is not used outside the loop
1096 in a close phi node: call compute_overall_effect_of_inner_loop.
1098 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1100 * graphite-sese-to-poly.c (single_pred_cond): Renamed
1101 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
1102 (build_sese_conditions_before): Renamed call to single_pred_cond.
1103 (build_sese_conditions_after): Same.
1105 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1107 * graphite-poly.h: Fix comments and indentation.
1108 * graphite-sese-to-poly.c: Same.
1109 (build_sese_conditions_before): Compute stmt and gbb only when needed.
1110 * tree-chrec.c: Fix comments and indentation.
1111 (tree-ssa-loop-niter.c): Same.
1113 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de>
1115 * refined-regions.c (create_region): Only initialize the region.
1116 (find_regions_with_entry): Initialize parent relation and bbmap
1118 (build_regions_tree): Set outermost_region to region instead of
1120 (calculate_region_tree): Remove unneeded parameters.
1122 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de>
1124 * graphite-scop-detection.c (is_scop_p): New.
1125 (build_scops_new): New. A skeleton for the new scop detection.
1126 (build_scops_old): Renamed from build_scops.
1127 (build_scops): New version. Call the new and the old scop
1130 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de>
1131 Antoniu Pop <antoniu.pop@gmail.com>
1133 * Makefile.in (OBJS-common): Add refined-regions.o.
1134 (refined-regions.o): New.
1135 (graphite-scop-detection.o): Use refined-regions.h.
1136 * graphite-scop-detection.c: Include refined-regions.h
1137 (build_scops): Also build the refined region tree.
1138 * refined-regions.c: New. Adds an algorithm to detect refined
1140 (print_refined_region): New.
1141 (debug_refined_region): New.
1142 (refined_region_contains_bb_p): New.
1143 (refined_region_contains_region_p): New.
1144 (is_common_df): New.
1145 (struct find_regions_global_data): New.
1147 (typedef struct bb_bb_def): New.
1148 (new_bb_bb_def): New.
1149 (bb_bb_map_hash): New.
1150 (eq_bb_bb_map): New.
1153 (new_bb_reg_def): New.
1154 (bb_reg_map_hash): New.
1155 (eq_bb_reg_map): New.
1156 (find_new_region): New.
1157 (insert_new_reg): New.
1158 (insert_new_bb): New.
1159 (insert_shortcut): New.
1160 (get_next_postdom): New.
1161 (create_region): New.
1162 (find_regions_with_entry): New.
1163 (find_regions_adc): New.
1164 (find_regions): New.
1165 (get_topmost_parent): New.
1166 (build_regions_tree): New.
1167 (calculate_region_tree): New.
1168 (free_region_tree): New.
1169 * refined-regions.h: New.
1170 (struct refined_region): New.
1171 (calculate_region_tree): New.
1172 (free_region_tree): New.
1173 (refined_region_contains_bb_p): New.
1174 (refined_region_contains_region_p): New.
1175 (print_refined_region): New.
1176 (debug_refined_region): New.
1178 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1180 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1183 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
1185 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix
1186 type of integer_one_node for fold_build of POINTER_PLUS_EXPR.
1188 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
1190 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1191 phi_arg_in_outermost_loop.
1192 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1193 (remove_invariant_phi): Same.
1195 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1197 * graphite-blocking.c
1198 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1199 * graphite-clast-to-gimple.c
1200 (clast_to_gcc_expression): Same.
1201 (precision_for_value): Same.
1202 (precision_for_interval): Same.
1203 (gcc_type_for_interval): Same.
1204 (graphite_create_new_guard): Same.
1205 (compute_bounds_for_level): Same.
1206 (graphite_create_new_loop_guard): Same.
1207 * graphite-interchange.c
1208 (build_linearized_memory_access): Same.
1209 (pdr_stride_in_loop): Same.
1210 (memory_strides_in_loop_1): Same.
1211 (memory_strides_in_loop): Same.
1212 (extend_scattering): Same.
1213 (psct_scattering_dim_for_loop_depth): Same.
1214 (pbb_number_of_iterations): Same.
1216 (debug_iteration_domains): Same.
1218 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1219 (ppl_set_inhomogeneous_gmp): Same.
1220 (ppl_strip_loop): Same.
1221 (ppl_lexico_compare_linear_expressions): Same.
1222 (ppl_read_polyhedron_matrix): Same.
1223 (ppl_max_for_le_pointset): Same.
1225 (ppl_read_polyhedron_matrix): Same.
1226 (tree_int_to_gmp): Same.
1227 (gmp_cst_to_tree): Same.
1228 (ppl_set_inhomogeneous): Same.
1229 (ppl_set_inhomogeneous_tree): Same.
1230 (ppl_set_coef): Same.
1231 (ppl_set_coef_tree): Same.
1232 * graphite-sese-to-poly.c
1233 (build_pbb_scattering_polyhedrons): Same.
1234 (build_scop_scattering): Same.
1235 (scan_tree_for_params_right_scev): Same.
1236 (scan_tree_for_params): Same.
1237 (find_params_in_bb): Same.
1238 (find_scop_parameters): Same.
1239 (add_upper_bounds_from_estimated_nit): Same.
1240 (build_loop_iteration_domains): Same.
1241 (add_condition_to_domain): Same.
1242 (pdr_add_memory_accesses): Same.
1244 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1246 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1247 CLooG's value_* macros to their respective mpz_* counterparts.
1248 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1249 (graphite_create_new_loop_guard): Same.
1250 * graphite-interchange.c (build_linearized_memory_access): Same.
1251 (pdr_stride_in_loop): Same.
1252 (memory_strides_in_loop_1): Same.
1253 (1st_interchange_profitable_p): Same.
1254 * graphite-poly.c (extend_scattering): Same.
1255 (psct_scattering_dim_for_loop_depth): Same.
1256 (pbb_number_of_iterations): Same.
1257 (pbb_number_of_iterations_at_time): Same.
1258 * graphite-poly.h (new_1st_loop): Same.
1259 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1260 (oppose_constraint): Same.
1261 (insert_constraint_into_matrix): Same.
1262 (ppl_set_inhomogeneous_gmp): Same.
1263 (ppl_set_coef_gmp): Same.
1264 (ppl_strip_loop): Same.
1265 (ppl_lexico_compare_linear_expressions): Same.
1266 (ppl_max_for_le_pointset): Same.
1267 (ppl_min_for_le_pointset): Same.
1268 (ppl_build_realtion): Same.
1269 * graphite-ppl.h (gmp_cst_to_tree): Same.
1270 (ppl_set_inhomogeneous): Same.
1271 (ppl_set_inhomogeneous_tree): Same.
1272 (ppl_set_coef): Same.
1273 (ppl_set_coef_tree): Same.
1274 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1275 (build_scop_scattering): Same.
1276 (add_value_to_dim): Same.
1277 (scan_tree_for_params_right_scev): Same.
1278 (scan_tree_for_params_int): Same.
1279 (scan_tree_for_params): Same.
1280 (find_params_in_bb): Same.
1281 (find_scop_parameters): Same.
1282 (add_upper_bounds_from_estimated_nit): Same.
1283 (build_loop_iteration_domains): Same.
1284 (create_linear_expr_from_tree): Same.
1285 (add_condition_to_domain): Same.
1286 (pdr_add_memory_accesses): Same.
1288 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1291 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1292 lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
1293 When converting an unsigned type to signed, double its precision.
1294 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
1295 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
1296 (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
1298 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1301 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1302 build_nonstandard_integer_type.
1303 (gcc_type_for_interval): Same.
1305 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1308 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1309 POINTER_PLUS_EXPR for pointer types.
1311 * gcc.dg/graphite/id-19.c: New.
1313 2010-04-04 Sebastian Pop <sebastian.pop@amd.com>
1316 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
1317 * graphite-clast-to-gimple.c: Include langhooks.h.
1318 (max_signed_precision_type): New.
1319 (max_precision_type): Takes two types as arguments.
1320 (precision_for_value): New.
1321 (precision_for_interval): New.
1322 (gcc_type_for_interval): New.
1323 (gcc_type_for_value): New.
1324 (gcc_type_for_clast_term): New.
1325 (gcc_type_for_clast_red): New.
1326 (gcc_type_for_clast_bin): New.
1327 (gcc_type_for_clast_expr): Split up into several functions.
1328 (gcc_type_for_clast_eq): Rewritten.
1329 (compute_bounds_for_level): New.
1330 (compute_type_for_level_1): New.
1331 (compute_type_for_level): New.
1332 (gcc_type_for_cloog_iv): Removed.
1333 (gcc_type_for_iv_of_clast_loop): Rewritten.
1334 (graphite_create_new_loop): Compute the lower and upper bound types
1335 with gcc_type_for_clast_expr.
1336 (graphite_create_new_loop_guard): Same.
1337 (find_cloog_iv_in_expr): Removed.
1338 (compute_cloog_iv_types_1): Removed.
1339 (compute_cloog_iv_types): Removed.
1340 (gloog): Do not call compute_cloog_iv_types.
1341 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
1343 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
1344 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
1345 (GBB_CLOOG_IV_TYPES): Removed.
1347 * gcc.dg/graphite/run-id-pr42644.c: Call abort.
1349 2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
1351 Reverted this commit: as at this point the loop closed SSA form
1352 is under a canonical form respecting the single argument condition.
1353 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1354 close phi nodes may have more than one argument.
1356 2010-04-01 Sebastian Pop <sebastian.pop@amd.com>
1358 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
1359 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
1360 (detect_commutative_reduction): Same.
1362 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
1364 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1365 close phi nodes may have more than one argument.
1367 2010-03-30 Richard Guenther <rguenther@suse.de>
1368 Zdenek Dvorak <ook@ucw.cz>
1369 Sebastian Pop <sebastian.pop@amd.com>
1372 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
1373 with multiple arguments.
1374 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
1376 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1378 * graphite-dependences.c (print_pddr): Call print_pdr with an
1380 * graphite-poly.c (debug_pdr): Add an extra argument for the
1383 (print_pbb_domain): Same.
1385 (print_scop_context): Same.
1387 (print_cloog): Same.
1388 (debug_pbb_domain): Same.
1392 (debug_scop_context): Same.
1394 (debug_cloog): Same.
1395 (print_scop_params): Same.
1396 (debug_scop_params): Same.
1397 (print_iteration_domain): Same.
1398 (print_iteration_domains): Same.
1399 (debug_iteration_domain): Same.
1400 (debug_iteration_domains): Same.
1401 (print_scattering_function): Same.
1402 (print_scattering_functions): Same.
1403 (debug_scattering_function): Same.
1404 (debug_scattering_functions): Same.
1405 * graphite-poly.h (debug_pdr): Update declaration.
1407 (print_pbb_domain): Same.
1409 (print_scop_context): Same.
1411 (print_cloog): Same.
1412 (debug_pbb_domain): Same.
1416 (debug_scop_context): Same.
1418 (debug_cloog): Same.
1419 (print_scop_params): Same.
1420 (debug_scop_params): Same.
1421 (print_iteration_domain): Same.
1422 (print_iteration_domains): Same.
1423 (debug_iteration_domain): Same.
1424 (debug_iteration_domains): Same.
1425 (print_scattering_function): Same.
1426 (print_scattering_functions): Same.
1427 (debug_scattering_function): Same.
1428 (debug_scattering_functions): Same.
1430 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1432 * graphite-poly.c (print_scattering_function_1): New.
1433 (print_scattering_function): Call it.
1434 (print_scop_params): Remove spaces at the end of lines.
1437 * graphite-poly.h (print_cloog): Declared.
1438 (debug_cloog): Declared.
1440 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1442 * tree-ssa-copy.c: Revert this previous change:
1443 (init_copy_prop): Loop closed phi nodes cancontain more than one
1445 (execute_copy_prop): Revert the previous change: do not call
1446 rewrite_into_loop_closed_ssa.
1448 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1449 Richard Guenther <rguenther@suse.de>
1452 * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can
1453 contain more than one argument.
1454 (execute_copy_prop): Revert the previous change: do not call
1455 rewrite_into_loop_closed_ssa.
1457 * gcc.dg/graphite/id-pr43464.c: Remove compile warning.
1458 * gcc.dg/graphite/id-pr43464-1.c: New.
1460 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1463 * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa
1464 and verify_loop_closed_ssa when copy prop is executed in the LNO.
1466 * gcc.dg/graphite/id-pr43464.c: New.
1468 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1470 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
1472 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
1473 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
1474 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
1475 to switch between adding the IV bump in loop->latch or in loop->header.
1477 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1479 * passes.c (init_optimization_passes): Add pass_copy_prop
1482 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1484 * graphite-poly.c (print_scattering_function): Pretty print following
1487 (print_pbb_domain): Same.
1488 (dump_gbb_cases): Same.
1489 (dump_gbb_conditions): Same.
1492 (print_scop_params): Same.
1493 (print_scop_context): Same.
1495 (print_pbb_body): New.
1496 (lst_indent_to): New.
1497 (print_lst): Start new lines with a #.
1498 * graphite-poly.h (pbb_bb): New.
1499 (pbb_index): Use pbb_bb.
1500 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
1502 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
1504 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1507 * gcc.dg/graphite/id-pr43351.c
1509 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1512 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
1513 call insert_out_of_ssa_copy for default definitions.
1514 * gfortran.dg/graphite/id-pr43354.f: New.
1516 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1519 * gfortran.dg/graphite/pr43349.f: New.
1521 2010-03-11 Sebastian Pop <sebastian.pop@amd.com>
1523 * graphite-clast-to-gimple.c (my_long_long): Defined.
1524 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
1525 * graphite-sese-to-poly.c (my_long_long): Defined.
1526 (scop_ivs_can_be_represented): Use it.
1528 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1530 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
1531 graphite-max-bbs-per-function, and loop-block-tile-size.
1532 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
1534 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
1536 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1538 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
1539 forward declaration.
1540 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
1541 (add_upper_bounds_from_estimated_nit): New.
1542 (build_loop_iteration_domains): Use it.
1544 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1546 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
1548 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1551 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
1552 should be an INTEGER_CST. Also handle CASE_CONVERT.
1553 * gcc.dg/graphite/pr43306.c: New.
1555 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1557 * graphite.c (graphite_initialize): To bound the number of bbs per
1558 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
1559 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
1560 * doc/invoke.texi: Document it.
1562 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1564 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
1565 * graphite-sese-to-poly.h (build_poly_scop): Same.
1567 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1569 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
1570 the number of parameters in the scop. Use as an upper bound
1571 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
1572 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
1573 * doc/invoke.texi: Document it.
1575 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1577 * graphite-sese-to-poly.c (add_param_constraints): Use
1578 lower_bound_in_type and upper_bound_in_type.
1580 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1582 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
1583 instead of unsigned_type_node.
1585 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1586 Reza Yazdani <reza.yazdani@amd.com>
1589 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
1590 on pointer type parameters.
1592 * gcc.dg/graphite/run-id-4.c: New.
1594 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1597 * gcc.dg/graphite/run-id-3.c: New.
1599 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
1600 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1602 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
1603 handle conversions from pointer to integers.
1604 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
1605 induction variable, to be able to work with code generated by CLooG.
1606 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
1607 (build_poly_scop): Bail out if we cannot codegen a loop.
1609 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1611 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
1612 code generation with gloog_error.
1614 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1616 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
1617 Call fold_convert on all the returned values.
1618 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
1619 the type of the resulting expression.
1621 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1623 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
1624 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
1625 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
1627 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1629 * graphite-dependences.c (map_into_dep_poly): Removed.
1630 (dependence_polyhedron_1): Use combine_context_id_scat.
1632 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1634 * graphite-poly.h (struct poly_scattering): Add layout documentation.
1635 (struct poly_bb): Same.
1636 (combine_context_id_scat): New.
1638 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
1641 * sese.c (name_defined_in_loop_p): Return false for default
1644 * gcc.dg/graphite/pr42326.c: New.
1646 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1648 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
1649 and clean up the logic.
1651 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1653 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
1656 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1659 * graphite-scop-detection.c (create_single_exit_edge): Move
1660 the call to find_single_exit_edge to....
1661 (create_sese_edges): ...here. Don't handle multiple edges
1662 exiting the function.
1663 (build_graphite_scops): Don't handle multiple edges
1664 exiting the function.
1666 * gcc.dg/graphite/pr43083.c: New.
1668 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1671 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
1672 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
1674 * gfortran.dg/graphite/pr43097.f: New.
1676 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1679 * graphite-scop-detection.c (create_single_exit_edge): Move
1680 the call to find_single_exit_edge to....
1681 (create_sese_edges): ...here. Don't handle multiple edges
1682 exiting the function.
1683 (build_graphite_scops): Don't handle multiple edges
1684 exiting the function.
1686 * gcc.dg/graphite/pr43083.c: New.
1688 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1691 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
1692 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
1694 * gfortran.dg/graphite/pr43097.f: New.
1696 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1697 Manuel López-Ibáñez <manu@gcc.gnu.org>
1700 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
1702 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1705 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
1707 * g++.dg/graphite/pr43026.C: New.
1709 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
1711 * Merge from mainline (154736:156693).
1713 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
1716 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
1718 * g++.dg/graphite/pr43026.C: New.
1720 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
1722 * Merge from mainline (154736:156693).
1724 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
1727 * gcc.dg/graphite/pr43012.c: New.
1729 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1731 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
1733 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1735 * g++.dg/graphite/pr42930.C: New.
1737 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1739 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
1741 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1743 * g++.dg/graphite/pr42930.C: New.
1745 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1748 * graphite-scop-detection.c (graphite_can_represent_scev): Call
1749 graphite_can_represent_init for MULT_EXPR.
1751 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1755 * graphite-sese-to-poly.c (remove_phi): New.
1756 (translate_scalar_reduction_to_array): Call remove_phi.
1758 * gcc.dg/graphite/pr42530.c: New.
1759 * gcc.dg/graphite/pr42914.c: New.
1761 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1764 * graphite-scop-detection.c (graphite_can_represent_scev): Call
1765 graphite_can_represent_init for MULT_EXPR.
1767 2010-02-10 Sebastian Pop <seb@napoca>
1771 * graphite-sese-to-poly.c (remove_phi): New.
1772 (translate_scalar_reduction_to_array): Call remove_phi.
1774 * gcc.dg/graphite/pr42530.c: New.
1775 * gcc.dg/graphite/pr42914.c: New.
1777 2010-02-10 Sebastian Pop <seb@napoca>
1780 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
1781 * graphite-clast-to-gimple.h (gloog): Update declaration.
1782 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
1783 * graphite-poly.h (struct poly_bb): Add missing comments.
1784 (struct scop): Add poly_scop_p field.
1786 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
1787 * graphite.c (graphite_transform_loops): Build the polyhedral
1788 representation for each scop before code generation.
1789 * sese.c (rename_variables_in_operand): Removed.
1790 (rename_variables_in_expr): Return the renamed expression.
1791 (rename_sese_parameters): New.
1792 * sese.h (rename_sese_parameters): Declared.
1794 * gcc.dg/graphite/pr42771.c: New.
1796 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1798 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
1800 * gcc.dg/graphite/block-1.c: Same.
1801 * gcc.dg/graphite/block-3.c: Same.
1802 * gcc.dg/graphite/block-4.c: Same.
1803 * gcc.dg/graphite/block-5.c: Same.
1804 * gcc.dg/graphite/block-6.c: Same.
1805 * gcc.dg/graphite/block-7.c: Same.
1806 * gcc.dg/graphite/interchange-0.c: Same.
1807 * gcc.dg/graphite/interchange-1.c: Same.
1808 * gcc.dg/graphite/interchange-10.c: Same.
1809 * gcc.dg/graphite/interchange-11.c: Same.
1810 * gcc.dg/graphite/interchange-12.c: Same.
1811 * gcc.dg/graphite/interchange-2.c: Same.
1812 * gcc.dg/graphite/interchange-3.c: Same.
1813 * gcc.dg/graphite/interchange-4.c: Same.
1814 * gcc.dg/graphite/interchange-5.c: Same.
1815 * gcc.dg/graphite/interchange-6.c: Same.
1816 * gcc.dg/graphite/interchange-7.c: Same.
1817 * gcc.dg/graphite/interchange-8.c: Same.
1818 * gcc.dg/graphite/interchange-9.c: Same.
1819 * gcc.dg/graphite/interchange-mvt.c: Same.
1821 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1823 * gfortran.dg/graphite/id-19.f: New.
1824 * gfortran.dg/graphite/pr14741.f90: New.
1825 * gfortran.dg/graphite/pr41924.f90: New.
1826 * gfortran.dg/graphite/run-id-2.f90: New.
1828 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1831 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
1832 to unknown_dependence.
1833 (graphite_legal_transform_dr): Handle the unknown_dependence.
1834 (graphite_carried_dependence_level_k): Same.
1836 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1838 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
1840 * gcc.dg/graphite/block-1.c: Same.
1841 * gcc.dg/graphite/block-3.c: Same.
1842 * gcc.dg/graphite/block-4.c: Same.
1843 * gcc.dg/graphite/block-5.c: Same.
1844 * gcc.dg/graphite/block-6.c: Same.
1845 * gcc.dg/graphite/block-7.c: Same.
1846 * gcc.dg/graphite/interchange-0.c: Same.
1847 * gcc.dg/graphite/interchange-1.c: Same.
1848 * gcc.dg/graphite/interchange-10.c: Same.
1849 * gcc.dg/graphite/interchange-11.c: Same.
1850 * gcc.dg/graphite/interchange-12.c: Same.
1851 * gcc.dg/graphite/interchange-2.c: Same.
1852 * gcc.dg/graphite/interchange-3.c: Same.
1853 * gcc.dg/graphite/interchange-4.c: Same.
1854 * gcc.dg/graphite/interchange-5.c: Same.
1855 * gcc.dg/graphite/interchange-6.c: Same.
1856 * gcc.dg/graphite/interchange-7.c: Same.
1857 * gcc.dg/graphite/interchange-8.c: Same.
1858 * gcc.dg/graphite/interchange-9.c: Same.
1859 * gcc.dg/graphite/interchange-mvt.c: Same.
1861 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1863 * gfortran.dg/graphite/id-19.f: New.
1864 * gfortran.dg/graphite/pr14741.f90: New.
1865 * gfortran.dg/graphite/pr41924.f90: New.
1866 * gfortran.dg/graphite/run-id-2.f90: New.
1868 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1871 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
1872 to unknown_dependence.
1873 (graphite_legal_transform_dr): Handle the unknown_dependence.
1874 (graphite_carried_dependence_level_k): Same.
1876 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1878 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
1880 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
1881 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1884 * graphite-dependences.c (build_lexicographical_constraint): Return
1885 a union of dependence polyhedra.
1886 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
1888 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
1889 * gcc.dg/graphite/block-4.c: Same.
1890 * gcc.dg/graphite/block-7.c: Same.
1891 * gcc.dg/graphite/interchange-12.c: Same.
1892 * gcc.dg/graphite/interchange-mvt.c: Same.
1893 * gfortran.dg/graphite/interchange-1.f: XFAILed.
1894 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
1895 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
1897 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1899 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
1900 the execution check to FAIL. This testcase is miscompiled by Graphite
1901 and the check should be re-enabled.
1902 * gcc.dg/graphite/interchange-mvt.c: Same.
1903 * gcc.dg/graphite/block-0.c: Same.
1904 * gcc.dg/graphite/block-4.c: Same.
1905 * gcc.dg/graphite/block-7.c: Same.
1907 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1909 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
1910 * gcc.dg/graphite/scop-0.c: Fix spaces.
1911 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
1912 * gfortran.dg/graphite/block-2.f: Same.
1913 * gfortran.dg/graphite/block-3.f90: Same.
1914 * gfortran.dg/graphite/block-4.f90: Same.
1915 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
1916 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
1918 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1920 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
1921 PDDR_ORIGINAL_SCATTERING_P.
1922 (pddr_is_empty): Rewritten.
1923 (print_dependence_polyhedron_layout): New.
1926 (build_alias_set_powerset): Moved up.
1927 (poly_drs_may_alias_p): Moved up.
1928 (lexicographically_gt_p): Removed.
1929 (build_lexicographically_gt_constraint): Renamed
1930 build_lexicographical_constraint, reimplemented.
1931 (dependence_polyhedron_1): Simplified parameters.
1932 (dependence_polyhedron): Same. Keep along empty PDDRs
1933 to make efficient use of the cache.
1934 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
1935 (graphite_legal_transform_dr): Rewritten.
1936 (graphite_legal_transform_bb): Pass fewer arguments to
1937 graphite_legal_transform_dr.
1938 (graphite_carried_dependence_level_k): Simplified implementation.
1939 (dot_original_deps_stmt_1): Call dependence_polyhedron.
1940 (dot_transformed_deps_stmt_1): Same.
1941 (dot_original_deps): Same.
1942 (dot_transformed_deps): Same.
1943 * graphite-dependences.h (struct poly_ddr): Added a new field
1944 original_scattering_p.
1945 (PDDR_ORIGINAL_SCATTERING_P): New.
1946 (print_pddr): Declared.
1947 (debug_pddr): Declared.
1948 * graphite-ppl.c: Clarify comment.
1949 * sese.h (print_gimple_bb): Removed unused declaration.
1952 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1954 * g++.dg/graphite/graphite.exp: Rewritten.
1955 * gcc.dg/graphite/graphite.exp: Rewritten.
1956 * gfortran.dg/graphite/graphite.exp: Rewritten.
1957 * gcc.dg/graphite/block-0.c: Added runtime test.
1958 * gcc.dg/graphite/block-1.c: Same.
1959 * gcc.dg/graphite/block-3.c: Same.
1960 * gcc.dg/graphite/block-4.c: Same.
1961 * gcc.dg/graphite/block-5.c: Same.
1962 * gcc.dg/graphite/block-6.c: Same.
1963 * gcc.dg/graphite/block-7.c: Same.
1964 * gcc.dg/graphite/interchange-0.c: Same.
1965 * gcc.dg/graphite/interchange-1.c: Same.
1966 * gcc.dg/graphite/interchange-10.c: Same.
1967 * gcc.dg/graphite/interchange-11.c: Same.
1968 * gcc.dg/graphite/interchange-12.c: Same.
1969 * gcc.dg/graphite/interchange-2.c: Same.
1970 * gcc.dg/graphite/interchange-3.c: Same.
1971 * gcc.dg/graphite/interchange-4.c: Same.
1972 * gcc.dg/graphite/interchange-5.c: Same.
1973 * gcc.dg/graphite/interchange-6.c: Same.
1974 * gcc.dg/graphite/interchange-7.c: Same.
1975 * gcc.dg/graphite/interchange-8.c: Same.
1976 * gcc.dg/graphite/interchange-9.c: Same.
1977 * gcc.dg/graphite/interchange-mvt.c: Same.
1978 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
1980 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1982 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
1985 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1987 * common.opt: Add -fgraphite-cloog-opts.
1988 * graphite-clast-to-gimple.c (set_cloog_options): Same.
1989 * opts.c (decode_options): Same.
1991 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1993 * gcc.dg/graphite/id-17.c: New.
1994 * gcc.dg/graphite/pr41888.c: New.
1995 * gcc.dg/graphite/scop-22.c: New.
1996 * gfortran.dg/graphite/pr40982.f90: New.
1998 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2000 * testsuite/gcc.dg/graphite/id-17.c: New.
2001 * testsuite/gcc.dg/graphite/pr41888.c: New.
2002 * testsuite/gcc.dg/graphite/scop-22.c: New.
2003 * testsuite/gfortran.dg/graphite/pr40982.f90: New.
2005 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2007 * graphite-dependences.c: Clarify comments.
2008 (build_pddr): Add an extra parameter direction.
2009 (graphite_legal_transform_dr): Use build_pddr.
2010 (dot_original_deps_stmt_1): Update use of build_pddr.
2011 (dot_transformed_deps_stmt_1): Same.
2012 (dot_original_deps): Same.
2013 (dot_transformed_deps): Same.
2015 * gcc.dg/graphite/interchange-12.c: New.
2016 * gcc.dg/graphite/block-7.c: New.
2018 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2020 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
2021 (pddr_transformed_scattering): Removed.
2022 (graphite_legal_transform_dr): Use build_pddr.
2023 (dot_original_deps_stmt_1): Same.
2024 (dot_transformed_deps_stmt_1): Same.
2025 (dot_original_deps): Same.
2026 (dot_transformed_deps): Same.
2028 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2030 * graphite-dependences.c (lexicographically_gt_p): Add comments.
2031 (build_lexicographically_gt_constraint): Same.
2032 (dependence_polyhedron_1): Same.
2033 (dependence_polyhedron): Same.
2035 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2037 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
2038 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
2039 (lexicographically_gt_p): Change type of direction to int.
2040 (build_lexicographically_gt_constraint): Same.
2041 (dependence_polyhedron_1): Same.
2042 (dependence_polyhedron): Same.
2043 (pddr_original_scattering): Use integers for direction.
2044 (pddr_transformed_scattering): Same.
2045 (graphite_legal_transform_dr): Same.
2046 (graphite_carried_dependence_level_k): Same.
2048 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2050 * graphite-dependences.c (build_pairwise_constraint): Renamed
2051 ppl_build_relation. Moved...
2052 (dr_equality_constraints): Use ppl_build_relation.
2053 (build_pairwise_scheduling_equality): Same.
2054 (build_pairwise_scheduling_inequality): Same.
2055 * graphite-ppl.c (ppl_build_relation): ...here.
2056 * graphite-ppl.h (ppl_build_relation): Declared.
2058 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
2061 * graphite-clast-to-gimple.c (gloog_error): New static variable.
2062 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
2063 Set gloog_error when such an expression failed to be built.
2064 (translate_clast): Early return when gloog_error is set.
2065 (gloog): Clear gloog_error. When gloog_error is set, call
2066 set_ifsese_condition to enable the original code. Return the status
2067 of the code generation based on gloog_error.
2068 * sese.c (set_ifsese_condition): New.
2069 * sese.h (set_ifsese_condition): Declared.
2071 * g++.dg/graphite/pr42681.C: New.
2073 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
2076 * graphite-clast-to-gimple.c (gloog_error): New static variable.
2077 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
2078 Set gloog_error when such an expression failed to be built.
2079 (translate_clast): Early return when gloog_error is set.
2080 (gloog): Clear gloog_error. When gloog_error is set, call
2081 set_ifsese_condition to enable the original code. Return the status
2082 of the code generation based on gloog_error.
2083 * sese.c (set_ifsese_condition): New.
2084 * sese.h (set_ifsese_condition): Declared.
2086 * testsuite/g++.dg/graphite/pr42681.C: New.
2088 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
2091 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
2092 rename_nb_iterations.
2093 * sese.c (rename_variables_in_operand): New.
2094 (rename_variables_in_expr): New.
2095 (rename_nb_iterations): New.
2096 (sese_adjust_liveout_phis): Update the rename_map.
2097 * sese.h (rename_nb_iterations): Declared.
2098 * tree-scalar-evolution.c (scev_reset_htab): New.
2099 (scev_reset): Call scev_reset_htab.
2100 * tree-scalar-evolution.h (scev_reset_htab): Declared.
2102 * gfortran.dg/graphite/pr42732.f: New.
2104 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
2107 * graphite-clast-to-gimple.c: Fix formatting.
2108 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
2109 (expr_defined_in_loop_p): New.
2110 (add_loop_exit_phis): Also handle full expressions: remove from
2111 the rename_map the expressions defined in the loop that we're closing.
2113 * gfortran.dg/graphite/pr42393-1.f90: New.
2114 * gfortran.dg/graphite/pr42393.f90: Add new flags
2115 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
2116 make this testcase useful in the Graphite branch.
2118 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
2121 * graphite-clast-to-gimple.c: Fix formatting.
2122 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
2123 (expr_defined_in_loop_p): New.
2124 (add_loop_exit_phis): Also handle full expressions: remove from
2125 the rename_map the expressions defined in the loop that we're closing.
2127 * testsuite/gfortran.dg/graphite/pr42393-1.f90: New.
2128 * testsuite/gfortran.dg/graphite/pr42393.f90: Add new flags
2129 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
2130 make this testcase useful in the Graphite branch.
2132 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
2134 * graphite-scop-detection.c (exclude_component_ref): Removed.
2135 (is_simple_operand): Removed.
2136 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
2138 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2141 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
2142 the array indexing of ADDR_EXPRs.
2144 * gcc.dg/graphite/pr42221.c: New.
2146 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2149 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
2150 the array indexing of ADDR_EXPRs.
2152 * testsuite/gcc.dg/graphite/pr42221.c: New.
2154 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2157 * graphite.c (graphite_finalize): Call scev_reset.
2158 (graphite_transform_loops): Do not call scev_reset between the code
2159 generation of scops.
2161 * gcc.dg/graphite/pr42521.c: New.
2163 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2165 * graphite-interchange.c (memory_stride_in_loop): Renamed
2167 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
2168 (memory_strides_in_loop): Memoize the memory strides per loop.
2169 (lst_interchange_profitable_p): Do not initialize to zero the memory
2171 * graphite-poly.h (struct lst): Add a field memory_strides.
2172 (LST_LOOP_MEMORY_STRIDES): New.
2173 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
2174 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
2176 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2178 * graphite-interchange.c (memory_stride_in_loop): Renamed
2180 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
2181 (memory_strides_in_loop): Memoize the memory strides per loop.
2182 (lst_interchange_profitable_p): Do not initialize to zero the memory
2184 * graphite-poly.h (struct lst): Add a field memory_strides.
2185 (LST_LOOP_MEMORY_STRIDES): New.
2186 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
2187 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
2189 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2191 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
2192 memory_strides_in_loop. Gather memory strides on a whole loop.
2193 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
2194 (lst_interchange_profitable_p): Removed.
2195 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
2197 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2199 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2200 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
2201 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
2202 Remove context_loop and level.
2204 2010-01-07 Richard Guenther <rguenther@suse.de>
2206 PR tree-optimization/42641
2207 * sese.c (rename_map_elt_info): Use the SSA name version, do
2210 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
2212 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
2213 blocked" only when both the strip mine and the interchange have
2216 * gcc.dg/graphite/block-2.c: Removed.
2217 * gcc.dg/graphite/block-3.c: Add scan pattern.
2218 * gcc.dg/graphite/block-4.c: Same.
2219 * gcc.dg/graphite/block-5.c: Same.
2220 * gcc.dg/graphite/block-6.c: Same.
2222 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
2224 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
2225 before allocating a new one.
2226 (copy_renames): Check that slot is not NULL.
2227 (mark_bb_with_pbb): Same.
2228 (compute_cloog_iv_types_1): Same.
2229 * graphite-interchange.c (lst_perfect_nestify): Free the before,
2230 nest, and after LSTs.
2231 (lst_try_interchange_loops): Same.
2233 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
2236 * graphite-interchange.c (lst_try_interchange_loops): Do not return
2237 the before, nest, and after LSTs.
2238 (lst_try_interchange): Removed.
2239 (lst_interchange_select_inner): Do not iterate over the LSTs if they
2241 (lst_interchange_select_outer): Apply interchange on the outer loop
2242 until there are no more changes in the inner loops.
2244 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2246 Revert patch fixing PR middle-end/42221.
2248 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2251 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
2254 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
2256 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2259 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
2260 that contain only one statement.
2262 * gfortran.dg/graphite/pr42180.f90: New.
2264 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2267 * gfortran.dg/graphite/pr42393.f90: New.
2269 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2272 * gfortran.dg/graphite/pr42186.f90: New.
2274 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2277 * testsuite/gfortran.dg/graphite/pr42186.f90: New.
2279 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2282 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
2283 Insert the reduction copy in the same block as the phi node.
2284 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
2286 * gcc.dg/graphite/pr42205-1.c: New.
2287 * gcc.dg/graphite/pr42205-2.c: New.
2289 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2292 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
2293 the array indexing of ADDR_EXPRs.
2295 * gcc.dg/graphite/pr42221.c: New.
2297 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2301 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
2302 index. Call lst_interchange_select_inner only once.
2303 (lst_interchange_select_inner): Update use of lst_try_interchange.
2304 (lst_interchange_select_outer): Update.
2306 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
2310 * graphite-interchange.c (lst_try_interchange): Do not increment the
2311 the OUTER index when there is no AFTER kernel. Do not increment the
2312 OUTER index for after processing the AFTER kernel.
2313 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
2314 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
2315 index. Do not pass to lst_interchange_select_inner the OUTER index.
2316 (scop_do_interchange): Update use of lst_interchange_select_outer.
2318 * gfortran.dg/graphite/graphite.exp
2319 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
2320 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
2321 the graphite dump file.
2322 * gfortran.dg/graphite/interchange-2.f: Same.
2323 * gfortran.dg/graphite/pr42334-1.f: New.
2325 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
2329 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
2331 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
2332 (lst_try_interchange): Reimplemented.
2333 (lst_interchange_select_inner): Same.
2334 (lst_do_interchange): Renamed lst_interchange_select_outer.
2336 (scop_do_interchange): Update use of lst_interchange_select_outer.
2338 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
2339 * gcc.dg/graphite/block-0.c: Un-XFAILed.
2340 * gcc.dg/graphite/pr42211.c: New.
2341 * gfortran.dg/graphite/pr42334.f90: New.
2343 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
2346 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
2347 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
2349 * gfortran.dg/graphite/pr42181.f90: New.
2351 2009-12-12 Sebastian Pop <sebpop@gmail.com>
2354 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
2355 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
2356 (detect_commutative_reduction_arg): Simplified.
2357 (detect_commutative_reduction): Early return when the argument of
2358 the close phi is not of an SSA_NAME.
2360 * gcc.dg/graphite/pr42284.c: New.
2362 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
2364 * dbgcnt.def (graphite_scop): New counter.
2365 * graphite.c: Include dbgcnt.h
2366 (graphite_transform_loops): Use new counter to limit transformations.
2368 2009-12-08 Sebastian Pop <sebpop@gmail.com>
2371 * graphite-scop-detection.c (graphite_can_represent_init): Also
2372 handle more complex MULT_EXPRs containing parameters by recursion
2375 * gfortran.dg/graphite/pr42285.f90: New.
2377 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
2379 * g++.dg/graphite/pr42130.C: Fix type.
2381 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
2383 * g++.dg/graphite/pr42130.C: Correct testcase.
2385 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
2387 * Merge from mainline (154493:154734).
2389 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
2391 * Merge from mainline (151362:154491).
2393 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
2395 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
2396 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
2398 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2401 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
2402 translate_clast_for_loop): New.
2403 (translate_clast_for): Add a condition around the loop, to do not
2404 execute loops with zero iterations.
2405 * g++.dg/graphite/pr42130.C: New.
2406 * gcc.dg/graphite/pr35356-2.c: Adapt.
2408 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2410 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
2411 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
2412 Remove context_loop and level.
2414 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2416 * graphite-clast-to-gimple.c (translate_clast_user,
2417 translate_clast_for, translate_clast_guard): Simplify and move common
2418 elements to translate_clast().
2419 (translate_clast): Simplify and get common elements.
2421 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2423 * graphite-clast-to-gimple.c (translate_clast_user,
2424 translate_clast_for, translate_clast_guard): Split out of
2427 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
2429 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
2430 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
2431 debug_clast_name_indexes_1, debug_clast_name_indexes,
2432 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
2433 (clast_name_to_gcc, clast_to_gcc_expression,
2434 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
2435 gcc_type_for_clast_eq, graphite_translate_clast_equation,
2436 graphite_create_guard_cond_expr, graphite_create_new_loop,
2437 translate_clast): Add params_index.
2438 (initialize_cloog_names): Create parameter strings from scratch, do
2439 not reference other strings.
2440 (create_params_index): New.
2441 (gloog): Initialize params_index.
2442 * graphite-scop-detection (free_scops_1): Removed.
2443 (limit_scops): Use normal free_scops.
2444 * graphite-sese-to-poly.c (save_var_names): Removed.
2445 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
2446 and SESE_PARAMS_INDEX.
2447 * sese.c (new_sese, free_sese): Dito.
2448 * sese.h (struct sese): Remove params_index, params_names.
2449 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
2451 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2453 Revert the following patch from 2009-09-14:
2454 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
2455 tree-scalar-evolution.h, and then tree-data-ref.h.
2456 * graphite-clast-to-gimple.c: Same.
2457 * graphite-dependences.c: Same.
2458 * graphite-interchange.c: Same.
2459 * graphite-poly.c: Same.
2460 * graphite-scop-detection.c: Same.
2461 * graphite-sese-to-poly.c: Same.
2463 * lambda-code.c: Same.
2464 * matrix-reorg.c: Same.
2465 * tree-data-ref.c: Same.
2466 * tree-if-conv.c: Same.
2467 * tree-loop-distribu: Same.: Same.
2468 * tree-loop-linear.c: Same.
2469 * tree-parloops.c: Same.
2470 * tree-predcom.c: Same.
2471 * tree-vect-patterns.c: Same.
2473 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2475 Revert patch from 2009-09-14.
2476 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
2477 passes at -O1 and below.
2479 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2482 * gcc.dg/graphite/pr40281.c: New.
2484 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
2485 evolutions should not variate in inner loops.
2487 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2490 * gfortran.dg/graphite/pr42050.f90: New.
2492 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2494 * graphite-interchange.c (memory_strides_in_loop_depth): New.
2495 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
2497 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2499 * graphite-blocking.c (scop_do_block): New.
2500 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
2501 * graphite-poly.h (scop_do_block): Declared.
2503 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2505 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
2506 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
2507 to transform depth into the time_depth before calling
2508 pbb_number_of_iterations_at_time.
2509 (lst_do_strip_mine): Use a scalar variable instead of recomputing
2512 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2514 Reverted the patch for "scattering permutations" from 2009-10-28.
2516 * graphite-poly.c (print_permutation): New.
2517 (debug_permutation): New.
2518 (new_poly_bb): Initialize PBB_PERMUTATION.
2519 (free_poly_bb): Free PBB_PERMUTATION.
2520 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2521 (struct pbb_permutation_elt): New.
2522 (PBB_PERMUTATION_ELT_STRIDE): New.
2523 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2524 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2525 (new_pbb_permutation_elt): New.
2526 (pbb_permutation_elt_free): New.
2527 (struct poly_bb): Add field permutation.
2528 (PBB_PERMUTATION): New.
2529 (print_permutation): Declared.
2530 (debug_permutation): Declared.
2532 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2534 * graphite-interchange.c (build_partial_difference): New.
2535 (memory_stride_in_loop): Refactored the computation of
2536 equality constraints into build_partial_difference function.
2537 Added support for debugging stride computations.
2539 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2541 * graphite-clast-to-gimple.c (gloog): Free if_region,
2542 if_region->true_region, and if_region->region.
2543 * sese.c (if_region_set_false_region): Free if_region->false_region.
2544 (create_if_region_on_edge): Do not use GGC_NEW.
2545 (move_sese_in_condition): Remove useless initialization.
2547 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2549 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
2550 for the loops created by the loop distribution. Do not modify the
2552 (lst_try_interchange_loops): Same. Use a temporary LST for the
2553 transformed schedule. Call lst_update_scattering before data
2554 dependence analysis.
2555 (lst_try_interchange): Pass an extra parameter INDEX.
2556 (lst_do_interchange_1): New.
2557 (lst_do_interchange): Call lst_do_interchange_1.
2558 (scop_do_interchange): Call lst_update_scattering.
2559 * graphite-poly.c (apply_poly_transforms): Do not call
2560 lst_update_scattering.
2561 * graphite-poly.h (lst_pred): New.
2563 (lst_find_first_pbb): Return NULL when not found.
2565 (lst_insert_in_sequence): Allow LST1 to be NULL.
2567 (lst_substitute_3): New.
2568 * gcc.dg/graphite/interchange-1.c: XFail.
2569 * gcc.dg/graphite/interchange-8.c: XFail.
2570 * gcc.dg/graphite/interchange-11.c: XFail.
2572 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2574 * graphite-interchange.c (lst_perfectly_nested_p): New.
2575 (lst_perfect_nestify): New.
2576 (lst_try_interchange_loops): Call store_lst_schedule,
2577 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
2578 (scop_do_interchange): Avoid redundant legality test.
2579 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
2580 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
2581 * graphite-poly.h (psct_static_dim): New.
2582 (lst_dewey_number_at_depth): New.
2583 (lst_find_pbb): Restructured.
2584 (lst_find_first_pbb): Restructured.
2585 (lst_find_last_pbb): New.
2586 (lst_contains_p): New.
2587 (lst_contains_pbb): New.
2588 (lst_create_nest): New.
2589 (lst_remove_from_sequence): New.
2590 (pbb_update_scattering): New.
2591 (lst_update_scattering_under): New.
2592 (lst_update_scattering_seq): New.
2593 (lst_update_scattering): New.
2594 (lst_insert_in_sequence): New.
2595 (lst_distribute_lst): New.
2596 (lst_remove_all_before_including_pbb): New.
2597 (lst_remove_all_before_excluding_pbb): New.
2599 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2601 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
2602 get_loop_exit_edges.
2604 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2606 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
2608 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2610 * graphite-poly.c (print_permutation): New.
2611 (debug_permutation): New.
2612 (new_poly_bb): Initialize PBB_PERMUTATION.
2613 (free_poly_bb): Free PBB_PERMUTATION.
2614 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2615 (struct pbb_permutation_elt): New.
2616 (PBB_PERMUTATION_ELT_STRIDE): New.
2617 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2618 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2619 (new_pbb_permutation_elt): New.
2620 (pbb_permutation_elt_free): New.
2621 (struct poly_bb): Add field permutation.
2622 (PBB_PERMUTATION): New.
2623 (print_permutation): Declared.
2624 (debug_permutation): Declared.
2626 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2628 * graphite-clast-to-gimple.c (gloog): Do not call
2629 sese_reset_aux_in_loops.
2630 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
2631 extra argument for domains. Do not use loop->aux.
2632 (build_scop_iteration_domain): Initialize and free domains, pass it
2633 to build_loop_iteration_domains and extract the information from
2634 domains. Do not use loop->aux.
2635 * sese.c (sese_reset_aux_in_loops): Removed.
2636 * sese.h (sese_reset_aux_in_loops): Removed.
2638 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2640 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
2641 (dependency_in_loop_p): Same.
2642 (translate_clast): Do not use loop->aux. Initialize
2643 loop->can_be_parallel.
2644 (mark_loops_parallel): Removed.
2645 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
2646 * graphite.c (free_aux_in_new_loops): Removed.
2647 (graphite_finalize): Do not call free_aux_in_new_loops.
2648 (graphite_transform_loops): Do not call mark_loops_parallel.
2650 2009-10-26 Li Feng <nemokingdom@gmail.com>
2652 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
2653 (translate_clast): Pass an extra parameter LEVEL.
2654 Call get_scattering_level.
2655 * graphite-clast-to-gimple.h (get_scattering_level): New.
2657 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2659 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
2660 * cfgloop.h (struct loop): New field single_iv.
2662 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
2663 loop->aux anymore: use loop->single_iv.
2664 (graphite_loop_normal_form): Moved...
2665 (build_graphite_loop_normal_form): Removed.
2666 (gloog): Do not call build_graphite_loop_normal_form.
2667 (free_aux_in_new_loops): Moved...
2668 (mark_loops_parallel): Restructure.
2669 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
2670 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
2671 (scop_canonicalize_loops): New.
2672 (build_poly_scop): Call scop_canonicalize_loops.
2673 * graphite.c (free_aux_in_new_loops): ...here.
2675 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2677 * g++.dg/graphite/graphite.exp: Add the same rules as in
2678 gcc.dg/graphite/graphite.exp.
2680 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2682 * g++.dg/graphite/id-1.C: New.
2684 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2686 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
2688 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
2689 (rewrite_phi_out_of_ssa): Same.
2690 (rewrite_cross_bb_scalar_deps): Same.
2691 (translate_scalar_reduction_to_array): Same.
2693 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2695 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
2698 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2700 * graphite-sese-to-poly.c (dump_alias_graphs): New.
2701 (build_scop_drs): Call dump_alias_graphs.
2703 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2705 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
2706 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2707 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
2708 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2709 * graphite-poly.h (free_lst): New.
2710 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
2711 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
2713 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2715 * graphite-poly.h (struct scop): Add a field saved_schedule.
2716 (SCOP_SAVED_SCHEDULE): New.
2717 (store_lst_schedule): New.
2718 (restore_lst_schedule): New.
2719 (store_scattering): Call store_lst_schedule.
2720 (restore_scattering): Call restore_lst_schedule.
2722 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2724 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
2725 (pdr_add_alias_set): Same.
2726 (build_poly_dr): Same.
2727 (build_alias_set_optimal_p): Same.
2728 (build_base_obj_set_for_drs): Same. Do not store the result of
2731 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2733 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
2734 all_components_are_cliques to 1.
2736 2009-10-20 Li Feng <nemokingdom@gmail.com>
2738 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
2740 (pdr_add_alias_set): Update retrieving alias_set_num.
2741 (build_poly_dr): Update retrieving dr_base_object_set.
2742 (partition_drs_to_sets): Remove.
2743 (build_alias_set_optimal_p): New.
2744 (build_alias_set_for_drs): Rename.
2745 (build_scop_drs): Update.
2746 * graphite-sese-to-poly.h (struct base_alias_pair): New.
2747 (ALIAS_SET_INDEX): Remove.
2748 (BASE_OBJECT_SET_INDEX): Remove.
2750 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2752 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
2754 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2756 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
2757 loop upper bounds for 1-element arrays at end of structures.
2758 * tree-flow.h (array_at_struct_end_p): Declared.
2759 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
2761 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2763 * g++.dg/graphite/pr41305.C: New.
2765 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
2767 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
2768 construction of parameter constraints from loop iteration analysis.
2769 * gcc.dg/graphite/run-id-2.c: New test.
2771 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2773 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
2776 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2778 * graphite-dependences.c (dependence_polyhedron_1): Remove
2779 unused gdim dimensions from the DDR polyhedron.
2781 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2783 * graphite-dependences.c (pddr_transformed_scattering): New.
2784 (dot_original_deps_stmt_1): New.
2785 (dot_transformed_deps_stmt_1): New.
2786 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
2787 dot_transformed_deps_stmt_1.
2788 (dot_original_deps): New.
2789 (dot_transformed_deps): New.
2790 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
2792 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2794 * graphite-dependences.c (reduction_dr_1): Remove wrong
2795 assert: reduction BBs can have multiple reduction writes
2796 to memory. interchange-3.f90 is an example.
2798 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2800 * gfortran.dg/graphite/interchange-3.f90: New.
2802 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2804 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
2806 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2808 * graphite-dependences.c (dependence_polyhedron_1): Add the
2809 context to the dependence polyhedron.
2811 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2813 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
2814 PBB_PDR_DUPLICATES_REMOVED.
2815 (new_poly_bb): Same.
2817 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2819 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
2821 (build_loop_iteration_domains): Extract bounds on parameters
2822 based on the data size.
2823 (build_scop_context): Do not initialize SCOP_CONTEXT;
2824 add new constraints.
2826 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2828 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
2829 * graphite-ppl.h (graphite-ppl.h): Declared.
2831 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2833 * graphite-ppl.c (ppl_print_linear_expr): New.
2834 (debug_ppl_linear_expr): New.
2835 * graphite-ppl.h (ppl_print_linear_expr): Declared.
2836 (debug_ppl_linear_expr): Declared.
2838 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2840 * graphite-interchange.c: Fix comments.
2841 * gcc.dg/graphite/block-1.c: Fix comments.
2843 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2845 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
2846 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
2848 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2850 Reapply the patch from Alexander Monakov that disappeared during
2851 the last merges from trunk.
2853 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
2855 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2856 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2858 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2860 * graphite-interchange.c (memory_stride_in_loop): The depth
2861 argument corresponds to a dynamic time dimension, so use
2862 psct_dynamic_dim to refer to the transformed scattering dimension.
2864 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2866 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
2868 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2870 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
2872 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
2873 the root of the LST.
2874 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
2876 (print_lst): Print the root of LST in a different format.
2877 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
2879 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2881 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
2883 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2885 * doc/passes.texi: Document the Graphite infrastructure.
2887 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2889 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
2890 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
2891 and check the SSA representation.
2893 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
2895 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2897 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
2899 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2901 * gcc.dg/graphite/interchange-11.c: New.
2903 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2905 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
2907 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2909 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2910 Add -fno-loop-strip-mine and -fno-loop-interchange.
2911 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
2912 -fno-loop-strip-mine.
2913 * gfortran.dg/graphite/graphite.exp: Same.
2915 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2917 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2918 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
2919 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
2920 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
2921 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
2922 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
2923 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
2924 DEFAULT_FLAGS_GRAPHITE_SCOP.
2925 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
2926 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
2928 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2930 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
2932 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2933 Sebastian Pop <sebastian.pop@amd.com>
2935 * graphite-interchange.c (build_linearized_memory_access): Pass an
2936 offset as parameter.
2937 (memory_stride_in_loop): Include transform scattering in the
2938 access functions to be able to querry the strides in the
2940 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
2941 not the psct_iterator_dim.
2943 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2945 * graphite-blocking.c (pbb_do_strip_mine): Removed.
2946 (lst_do_strip_mine_loop): New.
2947 (lst_do_strip_mine): New.
2948 (scop_do_strip_mine): Call lst_do_strip_mine.
2949 * graphite-poly.h (lst_add_loop_under_loop): New.
2950 (lst_find_first_pbb): New.
2952 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2954 * graphite-poly.c (loop_to_lst): Fix LST creation.
2956 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2958 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
2959 sizeof(unsigned long) to make it run on 32bit systems.
2961 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2963 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
2966 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2968 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
2970 (write_alias_graph_to_ascii_dot): New.
2971 (write_alias_graph_to_ascii_ecc): Ditto.
2972 (partition_drs_to_sets): Add testing of optimality of current method
2973 which assigns alias numbers according to DFS Comopnent number. used
2974 as heuristic for the upcoming ECC algorithm.
2975 (build_scop_drs): Write to file also with the ecc and dot format.
2977 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2979 * gfortran.dg/graphite/interchange-1.f: XFail.
2981 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2983 * graphite.c (graphite_initialize): Do not handle functions with
2984 more than 100 basic blocks.
2986 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2988 * graphite-blocking.c (pbb_do_strip_mine): Use
2989 PARAM_LOOP_BLOCK_TILE_SIZE.
2991 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2993 * graphite-poly.c (dot_lst_1): New.
2995 * graphite-poly.h (dot_lst): Declared.
2997 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2999 * graphite-dependences.c (dot_deps_stmt_1): New.
3000 (dot_deps_stmt): New.
3001 * graphite-dependences.h (dot_deps_stmt): Declared.
3003 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3005 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
3006 not replace cross BB scalar dependences ending on PHI nodes.
3007 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
3009 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3011 * graphite-poly.c (apply_poly_transforms): Implement the high
3012 level driver for flag_loop_block.
3013 * opts.c (decode_options): Enable flag_loop_block at -O2.
3014 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
3017 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
3019 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
3022 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3024 * graphite-poly.h (lst_find_pbb): New.
3025 (find_lst_loop): New.
3027 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3029 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
3030 * graphite-poly.h (struct scop): Remove dep_graph field.
3031 (SCOP_DEP_GRAPH): Removed.
3033 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3035 * graphite-poly.h (copy_lst): Do full copy of LST.
3037 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
3039 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
3040 when the loop stride is zero.
3042 * gcc.dg/graphite/id-16.c: New.
3044 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3046 * graphite-dependences.c (reduction_dr_1): New.
3047 (reduction_dr_p): New.
3048 (graphite_legal_transform_dr): Call reduction_dr_p.
3049 (reduction_ddr): Renamed reduction_ddr_p.
3050 * graphite-poly.h (same_pdr_p): New.
3051 (number_of_write_pdrs): New.
3052 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
3053 (split_reduction_stmt): Do not split reduction statements
3054 when there are no writes to memory.
3055 (translate_scalar_reduction_to_array_for_stmt): Insert the
3056 memory reduction statement just after the scalar reduction statement.
3058 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
3060 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
3061 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
3063 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3065 * graphite-interchange.c (lst_apply_interchange): New.
3066 (lst_interchange_profitable_p): New.
3067 (lst_try_interchange_loops): New.
3068 (lst_try_interchange): New.
3069 (lst_do_interchange): New.
3070 (pbb_do_interchange): Removed.
3071 (scop_do_interchange): Call lst_do_interchange.
3073 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3075 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
3076 SCOP_TRANSFORMED_SCHEDULE.
3081 * graphite-poly.h (lst_p): New.
3084 (LST_LOOP_FATHER): New.
3087 (scop_to_lst): Declared.
3088 (print_lst): Declared.
3089 (debug_lst): Declared.
3090 (new_lst_loop): New.
3091 (new_lst_stmt): New.
3094 (lst_dewey_number): New.
3095 (struct scop): Add original_schedule and transformed_schedule fields.
3096 (SCOP_ORIGINAL_SCHEDULE): New.
3097 (SCOP_TRANSFORMED_SCHEDULE): New.
3098 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
3100 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3102 * graphite-dependences.c (reduction_ddr): New.
3103 (graphite_legal_transform_bb): Call reduction_ddr.
3104 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
3105 Initialize PBB_IS_REDUCTION.
3106 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
3107 (PBB_IS_REDUCTION): New.
3108 (new_poly_bb): Update declaration.
3109 * graphite-scop-detection.h (build_scop_bbs): Removed.
3110 (nb_reductions_in_loop): Removed.
3111 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
3112 parameter for reductions.
3113 (try_generate_gimple_bb): Update call to new_poly_bb.
3114 (build_scop_bbs_1): Same.
3115 (build_scop_bbs): Same.
3116 (gsi_for_phi_node): New.
3117 (scalar_close_phi_node_p): Remove gcc_assert.
3118 (split_reduction_stmt): New.
3119 (is_reduction_operation_p): New.
3120 (phi_contains_arg): New.
3121 (follow_ssa_with_commutative_ops): New.
3122 (detect_commutative_reduction_arg): New.
3123 (detect_commutative_reduction_assign): New.
3124 (follow_inital_value_to_phi): New.
3125 (edge_initial_value_for_loop_phi): New.
3126 (initial_value_for_loop_phi): New.
3127 (detect_commutative_reduction): New.
3128 (translate_scalar_reduction_to_array_for_stmt): New.
3129 (insert_copyout): New.
3130 (insert_copyin): New.
3131 (translate_scalar_reduction_to_array): New.
3132 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
3133 (rewrite_commutative_reductions_out_of_ssa_loop): New.
3134 (rewrite_commutative_reductions_out_of_ssa): New.
3135 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
3136 * sese.h (split_region_for_bb): New.
3138 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
3139 * gcc.dg/graphite/interchange-1.c: Fix format.
3140 * gcc.dg/graphite/interchange-10.c: New.
3142 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3144 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
3147 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3149 * graphite-sese-to-poly.c (scev_analyzable_p): New.
3150 (rewrite_cross_bb_scalar_dependence): New.
3151 (rewrite_cross_bb_scalar_deps): New.
3152 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
3153 Call rewrite_cross_bb_scalar_deps.
3155 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3157 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
3158 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
3161 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3163 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
3164 * graphite-interchange.c (pbb_do_interchange): Same.
3165 * graphite-poly.c (print_scattering_function): Same.
3167 * graphite-poly.h (pbb_loop): New.
3168 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
3170 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
3172 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
3174 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
3176 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
3177 so don't pass a pointer to it.
3178 (build_alias_set_for_drs): Same.
3179 (build_base_obj_set_for_drs): Same.
3180 (build_scop_drs): Same.
3182 2009-09-26 Li Feng <nemokingdom@gmail.com>
3184 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
3185 the alias graph of data references.
3187 2009-09-25 Li Feng <nemokingdom@gmail.com>
3189 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
3190 (build_scop_drs): When debugging, write the alias graph to file,
3191 otherwise, should be disabled.
3193 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3195 * Merge from mainline (151310:151361).
3197 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3199 * Merge from mainline (151171:151310).
3201 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3203 * Merge from mainline (151171:151806).
3205 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3207 * Revert the last commit.
3209 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3211 * Merge from mainline (151171:151819).
3213 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3215 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
3216 (is_simple_operand): Remove call to stmt_simple_memref_p.
3217 (stmt_simple_for_scop_p): Update call to is_simple_operand.
3219 2009-09-17 David Edelsohn <edelsohn@gnu.org>
3221 * gcc.dg/graphite/interchange-mvt.c: New File.
3222 * gcc.dg/graphite/scop-dsyrk.c: New File.
3223 * gcc.dg/graphite/scop-dsyr2k.c: New File.
3224 * gcc.dg/graphite/scop-mvt.c: New File.
3225 * gcc.dg/graphite/scop-sor.c: New File.
3227 2009-09-17 Li Feng <nemokingdom@gmail.com>
3229 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
3230 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
3231 (graphite_carried_dependence_level_k): Ditto.
3232 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
3233 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
3234 (new_poly_dr): Adjust declaration.
3235 * graphite-sese-to-poly.c (free_data_refs_aux): New.
3236 (free_gimple_bb): Added free_data_refs_aux.
3237 (build_poly_dr): Add dr_base_object_set.
3238 (partition_drs_to_sets): New.
3239 (dr_same_base_object_p): New.
3240 (build_alias_set_for_drs): New.
3241 (build_base_object_set_for_drs): New.
3242 (build_scop_drs): Add build_base_obj_set_for_drs.
3243 * graphite-sese-to-poly.h: Added #define for alias set number index and
3244 base object set index.
3245 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
3246 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
3248 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
3250 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3251 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3253 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3255 * graphite-sese-to-poly.c (struct irp_data): Removed.
3256 (idx_record_params): Removed.
3257 (find_params_in_bb): Scan for parameters the access functions; don't
3258 parse the tree representation.
3260 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3262 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
3263 passes at -O1 and below.
3265 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3267 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
3268 tree-scalar-evolution.h, and then tree-data-ref.h.
3269 * graphite-clast-to-gimple.c: Same.
3270 * graphite-dependences.c: Same.
3271 * graphite-interchange.c: Same.
3272 * graphite-poly.c: Same.
3273 * graphite-scop-detection.c: Same.
3274 * graphite-sese-to-poly.c: Same.
3276 * lambda-code.c: Same.
3277 * matrix-reorg.c: Same.
3278 * tree-data-ref.c: Same.
3279 * tree-if-conv.c: Same.
3280 * tree-loop-distribu: Same.: Same.
3281 * tree-loop-linear.c: Same.
3282 * tree-parloops.c: Same.
3283 * tree-predcom.c: Same.
3284 * tree-vect-patterns.c: Same.
3286 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
3288 Partially revert the previous patch, except the following.
3289 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
3290 as parameters the operands of the not expression.
3292 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3294 * tree-scalar-evolution.c (instantiate_scev_assign): New.
3295 Do not call analyze_scalar_evolution on assignments.
3296 (instantiate_scev_phi): Call analyze_scalar_evolution.
3297 (instantiate_scev_name): Call instantiate_scev_assign and
3298 instantiate_scev_phi.
3299 (instantiate_scev_not): Adapted to pass as parameters the operands
3300 of the not expression.
3302 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3304 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
3305 to pass as parameters the operands of the binary expression.
3307 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3309 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
3310 instantiate_scev_not. Handle NEGATE_EXPR.
3311 (instantiate_scev_r): Handle NEGATE_EXPR.
3313 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3315 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
3317 (instantiate_scev_r): Move code in instantiate_scev_2
3318 and instantiate_scev_1.
3320 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3322 * tree-scalar-evolution.c (instantiate_scev_3): New.
3323 (instantiate_scev_1): Move code in instantiate_scev_3.
3325 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3327 * tree-scalar-evolution.c (instantiate_scev_poly): New.
3328 (instantiate_scev_1): Move code in instantiate_scev_poly.
3330 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3332 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
3333 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
3335 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3337 * tree-scalar-evolution.c (instantiate_scev_convert): New.
3338 (instantiate_scev_1): Move code in instantiate_scev_convert.
3340 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3342 * tree-scalar-evolution.c (instantiate_scev_binary): New.
3343 (instantiate_scev_1): Move code in instantiate_scev_binary.
3345 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3347 * tree-scalar-evolution.c (instantiate_scev_name): New.
3348 (instantiate_scev_1): Move code in instantiate_scev_name.
3350 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3352 * Merge from mainline (150992:151171).
3354 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3356 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
3358 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3360 * graphite-dependences.c (graphite_legal_transform_bb): Call
3361 pbb_remove_duplicate_pdrs.
3362 * graphite-poly.c (can_collapse_pdr): Removed.
3363 (pdr_find_duplicate): Removed.
3364 (can_collapse_pdrs): New.
3365 (pbb_remove_duplicate_pdrs): New.
3366 (new_poly_dr): Do not look for duplicates.
3367 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
3368 (PBB_PDR_DUPLICATES_REMOVED): New.
3369 (pbb_remove_duplicate_pdrs): Declared.
3371 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3373 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
3374 the strides by multiplying by PDR_NB_REFS.
3375 * graphite-poly.c (can_collapse_pdr): New.
3376 (pdr_find_duplicate): New.
3377 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
3378 Initialize PDR_NB_REFS.
3379 * graphite-poly.h (struct poly_dr): Add field nb_refs.
3381 (new_poly_dr): Number of subscripts is a graphite_dim_t.
3383 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3385 Revert one of the previous commits:
3386 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
3387 the computation of symmetric data dependence relations.
3388 (dependency_between_pbbs_p): Same.
3390 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3393 * graphite-poly.c (apply_poly_transforms): Remove legality test before
3396 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3398 * graphite-dependences.c (pddr_original_scattering): Return NULL
3399 for read-read dependence relations.
3400 * graphite-poly.h (enum poly_dr_type): Fix comment.
3403 (pdr_may_write_p): New.
3405 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3407 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
3408 (struct poly_dr): Same.
3409 (new_poly_dr): Same.
3410 * graphite-poly.c (new_poly_dr): Same.
3412 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3413 Sebastian Pop <sebastian.pop@amd.com>
3415 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
3416 pbb_strip_mine_time_depth. Changed the implementation so that
3417 transformation is expressed as a transformation on
3418 time (scatttering) dimensions. Also, ensures that the 2d+1
3419 scheduling format is preserved.
3420 (pbb_strip_mine_profitable_p): Profitability is based on the
3421 iteration number of a given time (scattering) dimension,
3422 and not on a original loop depth dimension.
3423 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
3424 (pbb_do_strip_mine): Call psct_dynamic_dim.
3425 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
3426 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
3427 (pbb_nb_dynamic_scattering_transform): New.
3428 (psct_dynamic_dim): New.
3430 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3432 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3433 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3434 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
3435 * graphite-interchange.c (build_linearized_memory_access): Same.
3436 (memory_stride_in_loop): Same.
3438 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3440 * graphite-dependences.c (pddr_original_scattering): New.
3441 (graphite_legal_transform_dr): Call pddr_original_scattering.
3444 * graphite-dependences.h (dot_deps): Declared.
3445 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
3446 (print_pdr): Print PDR_ID.
3447 * graphite-poly.h (struct poly_dr): Add field id.
3450 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
3452 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
3454 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
3455 not delete the original dependence relation.
3457 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3459 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
3460 the computation of symmetric data dependence relations.
3461 (dependency_between_pbbs_p): Same.
3463 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3465 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
3466 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
3467 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
3468 (free_poly_ddr): New.
3469 (pddr_is_empty): New.
3470 (dependence_polyhedron_1): Now returns a poly_ddr_p.
3471 (dependence_polyhedron): Same. Remove useless gcc_assert.
3473 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
3474 (graphite_carried_dependence_level_k): Call pddr_is_empty.
3475 * graphite-dependences.h (enum poly_dependence_kind): New.
3476 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
3477 (PDRP_SOURCE): Renamed PDDR_SOURCE.
3478 (PDRP_SINK): Renamed PDDR_SINK.
3479 (PDRP_DDP): Renamed PDDR_DDP.
3481 (free_poly_ddr): Declared.
3482 * graphite-poly.c (new_scop): Use the new hash function names.
3483 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
3484 into original_pddrs.
3485 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
3487 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3489 * Merge from mainline (150764:150992).
3491 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3493 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
3494 bounds with LT_EXPR to make niter analysis more precise on code
3495 generated by Graphite.
3497 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3499 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
3500 (graphite_legal_transform_bb): Same.
3501 (poly_drs_may_alias_p): Same.
3503 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
3506 * graphite-ppl.c (ppl_max_for_le): Correct the use of
3507 ppl_Pointset_Powerset_C_Polyhedron_maximize.
3509 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3511 * graphite-poly.c (print_pbb): Print PBB index.
3513 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3515 * Merge from mainline (r150672:150764).
3517 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3519 * graphite-interchange.c (ppl_max_for_le): Moved...
3520 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
3521 * graphite-ppl.c (ppl_max_for_le): ... here.
3522 * graphite-ppl.h (ppl_max_for_le): Declared.
3524 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3526 * Merge from mainline (r150372:150672).
3528 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3531 * sese.c (convert_for_phi_arg): New.
3532 (add_guard_exit_phis): Use convert_for_phi_arg.
3534 * gfortran.dg/graphite/id-17.f: New.
3536 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3538 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
3539 unknown subscript upper bounds.
3541 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
3543 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3544 Pranav Garg <pranav.garg2107@gmail.com>
3546 * graphite-interchange.c (gather_access_strides): Removed.
3547 (ppl_max_for_le): New.
3548 (build_linearized_memory_access): New.
3549 (memory_stride_in_loop): New.
3550 (pbb_interchange_profitable_p): Reimplemented.
3551 * graphite-ppl.h (ppl_new_id_map): New.
3552 (ppl_interchange): New.
3554 * gcc.dg/graphite/interchange-6.c: XFAILed.
3556 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3558 * graphite-interchange.c (compute_subscript): Removed.
3559 (compute_array_size_cstr): Removed.
3560 (compute_array_size_poly): Removed.
3561 (compute_array_size): Removed.
3562 (gather_access_strides_poly): Removed.
3563 (gather_access_strides): Empty.
3565 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3567 * graphite-dependences.c (dependence_polyhedron_1): Replace
3568 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
3569 (graphite_legal_transform_dr): Same.
3570 (graphite_carried_dependence_level_k): Same.
3571 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
3572 Initialize PDR_NB_SUBSCRIPTS.
3573 (print_pdr_access_layout): Replace pdr_nb_subscripts with
3575 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
3576 (PDR_NB_SUBSCRIPTS): New.
3577 (pdr_nb_subscripts): Removed.
3578 (pdr_dim): Simplified.
3579 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
3580 with PDR_NB_SUBSCRIPTS.
3582 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3584 * graphite-interchange.c (compute_array_size): Remove use of
3586 * graphite-poly.c (new_poly_dr): Remove argument data_container.
3587 Do not initialize PDR_DATA_CONTAINER.
3588 (print_pdr): Do not print PDR_DATA_CONTAINER.
3589 * graphite-poly.h (struct poly_dr): Remove data_container field.
3590 (PDR_DATA_CONTAINER): Removed.
3591 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
3593 (build_poly_dr): Same.
3595 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3597 * gcc.dg/graphite/interchange-9.c: New.
3599 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3600 Sebastian Pop <sebastian.pop@amd.com>
3602 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
3603 copy of the dependence polyhedron. Free the temporary objects.
3604 (graphite_carried_dependence_level_k): Free unused objects before
3607 * gcc.dg/graphite/interchange-1.c: XFAILed.
3608 * gcc.dg/graphite/interchange-2.c: XFAILed.
3609 * gcc.dg/graphite/interchange-3.c: XFAILed.
3610 * gcc.dg/graphite/interchange-4.c: XFAILed.
3611 * gcc.dg/graphite/interchange-7.c: XFAILed.
3613 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3615 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
3616 Early return without analyzing the data dependences if no
3617 transform has been done. Call restore_scattering if the transform
3619 (graphite-interchange.c): Same.
3620 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
3621 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
3622 (apply_poly_transforms): Do not gcc_assert that
3623 the transform is legal.
3624 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3625 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
3626 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
3627 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3628 * graphite-poly.h (struct poly_scattering): New.
3629 (struct poly_bb): Add original, transformed, and saved fields.
3630 Remove transformed_scattering, original_scattering, nb_local_variables,
3631 and nb_scattering_transform fields.
3632 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
3633 (poly_scattering_new): New.
3634 (poly_scattering_free): New.
3635 (poly_scattering_copy): New.
3636 (store_scattering_pbb): New.
3637 (store_scattering): New.
3638 (restore_scattering_pbb): New.
3639 (restore_scattering): New.
3640 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3641 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
3643 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3645 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
3648 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3650 * Makefile.in (graphite.o): Depends on PREDICT_H.
3651 * graphite.c: Include predict.h.
3652 (graphite_finalize): Call tree_estimate_probability.
3653 * predict.c (predict_loops): Do not call scev_initialize and
3655 (tree_estimate_probability_bb): New.
3656 (tree_estimate_probability): Do not initialize loops: move that
3657 code to the driver. Call tree_estimate_probability_bb.
3658 (tree_estimate_probability_driver): New.
3659 (pass_profile): Use tree_estimate_probability_driver.
3660 * predict.h (tree_estimate_probability): Declared.
3662 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3664 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
3665 * graphite-dependences.c (graphite_legal_transform): Add time to
3666 TV_GRAPHITE_DATA_DEPS.
3667 (dependency_between_pbbs_p): Same.
3668 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
3670 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
3672 * Merge from mainline (r149952:150372).
3674 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3676 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
3677 * graphite-blocking.c: Same.
3678 * graphite-clast-to-gimple.c: Same.
3679 * graphite-dependences.c: Same.
3680 * graphite-poly.c: Same.
3681 * graphite-poly.h: Same.
3682 * graphite-ppl.c: Same.
3683 * graphite-scop-detection.c: Same.
3684 * graphite-sese-to-poly.c: Same.
3687 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3689 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
3690 (remove_simple_copy_phi): New.
3691 (remove_invariant_phi): New.
3692 (simple_copy_phi_p): New.
3693 (reduction_phi_p): New.
3694 (gsi_for_ssa_name_def): New.
3695 (insert_out_of_ssa_copy): New.
3696 (insert_out_of_ssa_copy_on_edge): New.
3697 (create_zero_dim_array): New.
3698 (scalar_close_phi_node_p): New.
3699 (rewrite_close_phi_out_of_ssa): New.
3700 (rewrite_phi_out_of_ssa): New.
3701 (rewrite_reductions_out_of_ssa): New.
3702 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
3704 * gcc.dg/graphite/id-11.c: New.
3705 * gcc.dg/graphite/id-15.c: New.
3706 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
3707 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
3708 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
3709 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
3710 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
3711 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
3712 * gfortran.dg/graphite/id-13.f: New.
3713 * gfortran.dg/graphite/id-5.f: New.
3715 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3717 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
3718 check that nb_reductions_in_loop is zero.
3719 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
3720 reduction phi nodes.
3721 (nb_reductions_in_loop): Removed.
3722 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
3723 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
3724 (bb_contains_non_iv_scalar_phi_nodes): Removed.
3725 (scop_contains_non_iv_scalar_phi_nodes): Removed.
3726 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
3728 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3730 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
3731 statements that have an empty iteration domain.
3732 * gfortran.dg/graphite/id-16.f: New.
3734 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3736 * tree-scalar-evolution.c (instantiate_scev_1): Return
3737 chrec_dont_know when the result is not above instantiate_below.
3738 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
3739 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
3740 the tree has a known scalar evolution.
3741 * gfortran.dg/graphite/id-14.f: New.
3742 * gfortran.dg/graphite/id-15.f: New.
3744 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3746 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
3748 (rename_variables): Keep inserting renames after the ones already
3751 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3753 * graphite-sese-to-poly.c (compare_bb_depths): New.
3754 (graphite_sort_dominated_info): New.
3755 (build_scop_bbs_1): Call graphite_sort_dominated_info.
3756 (build_scop_scattering): Fix comment.
3758 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3760 * graphite.c (graphite_finalize): Call print_loops instead of
3761 dump_function_to_file.
3762 * gcc.dg/graphite/graphite.exp: Fix formatting.
3763 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
3764 loops generated in the graphite output file.
3765 * gcc.dg/graphite/pr35356-2.c: New.
3766 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
3767 * gfortran.dg/graphite/id-12.f: New.
3769 2009-07-24 Li Feng <nemokingdom@gmail.com>
3771 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
3774 2009-07-24 Li Feng <nemokingdom@gmail.com>
3775 Tobias Grosser <grosser@fim.uni-passau.de>
3777 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
3778 alias set number build alias in ACCESSES polyhedron.
3779 (build_alias_set_for_drs): New.
3780 (build_pbb_drs): Added build_alias_set_for_drs.
3781 * graphite-dependences.c (poly_drs_may_alias_p): New.
3782 (graphite_carried_dependence_level_k): Check alias information
3783 before building polyhedron.
3785 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3787 * Makefile.in (lambda-code.o): Fix formatting.
3789 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3791 * Merge from mainline (r149350-149952)
3793 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3795 * graphite-poly.c (apply_poly_transforms): Move strip_mine
3796 before interchange to prepare for loop blocking.
3798 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3800 * graphite-poly.c (apply_poly_transforms): Add checks after every
3802 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
3803 done in apply_poly_transforms.
3805 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3807 * graphite-dependences.c (build_lexicographically_gt_constraint):
3808 Replace RES parameter with *RES.
3809 (dependence_polyhedron_1): Pass an address of the parameter RES
3810 instead of value of RES.
3812 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3814 * graphite.c (graphite_finalize): Fix comment.
3815 (graphite_transform_loops): Reset scev info after code generation
3818 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3820 * graphite.c (graphite_finalize): Call scev_reset.
3822 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3824 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
3825 GBB_CLOOG_IV_TYPES hash table twice.
3826 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
3827 (add_condition_to_domain): Clear GMP values.
3829 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3831 * graphite-dependences.c: Fix formatting.
3832 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
3833 (pbb_number_of_iterations): Free ppl_Linear_Expression.
3834 * graphite-sese-to-poly.c: Fix formatting.
3835 * graphite.c (graphite_transform_loops): Create the hash table
3836 after the early return.
3838 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3840 * gcc.dg/graphite/id-14.c: New.
3841 * gcc.dg/graphite/pr40157.c: New.
3842 * gfortran.dg/graphite/id-11.f: New.
3844 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3846 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
3847 (build_poly_scop): Return false when there are no pbbs within
3848 loops to avoid to pass to cloog scops with no loops.
3850 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3852 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
3853 useless test "i % 2".
3854 (build_pbb_scattering_polyhedrons): Fix formatting.
3855 (build_poly_dr): Same.
3856 * graphite.c (graphite_transform_loops): Restructure.
3858 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
3860 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
3861 reduction_list parameter.
3862 (rewrite_all_phi_nodes_with_iv): Same.
3863 (canonicalize_loop_ivs): Same.
3864 * tree-parloops.c (struct brli): Removed.
3865 (build_reduction_list_info): Removed.
3866 (build_new_reduction): New.
3867 (analyze_reduction_list): Removed.
3868 (gather_scalar_reductions): Find reductions instead of phi
3869 nodes that can't be canonicalized.
3870 (try_create_reduction_list): Remove reduction_list parameter.
3871 (gen_parallel_loop): Same.
3872 (parallelize_loops): Remove analyze_reductions variable,
3873 initialization and free.
3874 Change reduction_list htab initialization to reduction_info
3875 elements instead of ssa names.
3876 Call try_create_reduction_list and gen_parallel_loop without
3877 analyzed_reduction argument.
3878 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
3879 canonicalize_loop_ivs with one less argument.
3880 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
3882 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3884 * graphite-dependences.c (new_poly_dr_pair): New.
3885 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
3886 (new_poly_dr_pair): New.
3887 (eq_poly_dr_pair_p): New.
3888 (hash_poly_dr_pair_p): New.
3889 * graphite-dependences.h (struct poly_dr_pair): New.
3890 (eq_poly_dr_pair_p): Declared.
3891 (hash_poly_dr_pair_p): Declared.
3892 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
3893 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
3894 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
3895 * Makefile.in (graphite-poly.o): Add dependence on
3896 graphite-dependences.h.
3898 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3900 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
3901 polynomials of degree > 1 pass to Graphite.
3902 * tree-chrec.c (scev_is_linear_expression): Call
3903 evolution_function_is_affine_multivariate_p.
3904 * gfortran.dg/graphite/id-10.f90: New.
3906 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3908 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
3909 Instantiate scevs varying in outer loops.
3910 * gfortran.dg/graphite/id-9.f: Correct testcase.
3912 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3914 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
3915 redundant constraint.
3917 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3919 * gcc.dg/graphite/graphite.exp: Fix comments.
3920 * gfortran.dg/graphite/graphite.exp: Trigger actions
3921 based on the file names as in the C testsuite.
3922 * gfortran.dg/graphite/block-1.f90: Fix patterns.
3923 * gfortran.dg/graphite/block-2.f: Same.
3924 * gfortran.dg/graphite/block-3.f90: Same.
3925 * gfortran.dg/graphite/block-4.f90: Same.
3926 * gfortran.dg/graphite/id-1.f90: Same.
3927 * gfortran.dg/graphite/id-2.f90: Same.
3928 * gfortran.dg/graphite/id-3.f90: Same.
3929 * gfortran.dg/graphite/id-4.f90: Same.
3930 * gfortran.dg/graphite/id-6.f: Same.
3931 * gfortran.dg/graphite/id-9.f: Same.
3932 * gfortran.dg/graphite/interchange-1.f: Same.
3933 * gfortran.dg/graphite/interchange-2.f: Same.
3934 * gfortran.dg/graphite/scop-1.f: Same.
3936 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3938 * sese.c (expand_scalar_variables_call): New.
3939 (expand_scalar_variables_ssa_name): Handle calls in expander.
3941 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3943 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
3944 Expect to see the pattern twice.
3945 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
3946 * gcc.dg/graphite/interchange-5.c: Same.
3947 * gcc.dg/graphite/interchange-6.c: Same.
3949 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3951 * gcc.dg/graphite/id-10.c: New.
3952 * gcc.dg/graphite/id-12.c: New.
3953 * gfortran.dg/graphite/id-7.f: New.
3954 * gfortran.dg/graphite/id-8.f: New.
3956 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3958 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
3961 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3963 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
3965 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3967 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
3969 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3971 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
3972 building PDR subscripts.
3974 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3976 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
3977 computation of array sizes.
3979 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3981 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
3983 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
3985 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
3986 build_pairwise_constraint, dr_equality_constraints,
3987 build_pairwise_scheduling_equality,
3988 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3989 build_lexicographically_gt_constraint, dependence_polyhedron,
3990 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
3991 Move from NNC_Polyhedron to C_Polyhedron.
3992 * graphite-interchange.c (compute_array_size_poly,
3993 gather_access_strides): Dito.
3994 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
3995 free_scop, pbb_number_of_iterations): Dito.
3996 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
3997 pbb_dim_iter_domain, struct scop): Dito.
3998 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
3999 new_Cloog_Domain_from_ppl_Polyhedron,
4000 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
4001 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
4002 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
4003 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
4004 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
4005 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
4006 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
4007 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
4008 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
4009 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
4010 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
4011 build_scop_iteration_domain, build_poly_dr): Dito
4013 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4015 * gcc.dg/graphite/graphite.exp: Added a rule to execute
4017 * gcc.dg/graphite/run-id-1.c: New.
4019 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4021 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
4022 positivity constraint on the symbolic number of iterations.
4024 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4026 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
4028 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4029 Tobias Grosser <grosser@fim.uni-passau.de>
4031 * graphite-clast-to-gimple.c (build_scop_context): Removed.
4032 (build_cloog_prog): Directly use SCOP_CONTEXT.
4033 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
4034 (free_scop): Free SCOP_CONTEXT.
4035 (print_scop_context): New.
4036 (print_scop): Call print_scop_context.
4037 (debug_scop_context): New.
4038 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
4039 (struct scop): Added field context.
4040 (SCOP_CONTEXT): New.
4041 * graphite-sese-to-poly.c (add_param_constraints): New.
4042 (build_scop_context): New.
4043 (build_poly_scop): Call build_scop_context.
4045 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4047 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
4048 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
4049 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
4050 * graphite-ppl.h: Include double-int.h and tree.h.
4051 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
4052 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
4053 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
4054 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
4056 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4058 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
4059 POINTER_PLUS_EXPR for pointer types.
4060 (clast_to_gcc_expression): Same.
4062 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4064 * graphite-poly.c (print_scattering_function): Early return when
4065 PBB_TRANSFORMED_SCATTERING is not initialized.
4066 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
4068 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
4070 * tree-parloops.c (analyze_reduction_list): Remove unused variable
4073 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
4075 * tree-parloops.c (analyze_reduction_list): Change return
4077 (try_create_reduction_list): Move the call to
4078 analyze_reduction_list to the beginining.
4079 Call reduction_phi with analyzed_reductions as argument
4080 instead of reduction_list.
4082 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
4084 * Merge from mainline (r148296:149346)
4086 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4088 * graphite-scop-detection.c (graphite_can_represent_init): New.
4089 (graphite_can_represent_scev): Call graphite_can_represent_init:
4090 check that the initial value does not contain multiplications of
4092 (stmt_has_simple_data_refs_p): New.
4093 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
4094 (is_simple_operand): Fix formatting.
4095 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
4097 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4099 * gcc.dg/graphite/id-13.c: New.
4100 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
4101 analyze_scalar_evolution, use scalar_evolution_in_region.
4102 (scan_tree_for_params_right_scev): Add extra assert.
4103 (parameter_index_in_region_1): Split from parameter_index_in_region.
4104 (idx_record_params): Use scalar_evolution_in_region.
4105 (find_params_in_bb): Same.
4106 (find_scop_parameters): Same.
4107 (build_loop_iteration_domains): Same.
4108 (create_linear_expr_from_tree): Same.
4109 * sese.c (scalar_evolution_in_region): New.
4110 * sese.h (scalar_evolution_in_region): Declared.
4111 (defined_in_sese_p): New.
4112 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
4114 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
4117 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4119 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
4120 TREE_DATA_REF_H also implies SCEV_H.
4122 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4124 * graphite-poly.c (print_scop_params): New.
4125 (print_scop): Call print_scop_params.
4126 (debug_scop_params): New.
4127 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
4129 2009-07-07 Li Feng <nemokingdom@gmail.com>
4131 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
4132 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
4133 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
4134 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
4135 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
4136 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
4138 2009-07-07 Li Feng <nemokingdom@gmail.com>
4140 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
4141 for dependency checking part.
4142 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
4143 tests for dependency checking.
4144 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
4145 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
4146 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
4147 flag -fdump-tree-graphite-all for autopar testsuites.
4149 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
4151 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
4152 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
4153 canonicalize_loop_ivs): Moved...
4154 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
4156 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
4158 * tree-parloops.c (try_create_reduction_list): Pass an extra
4159 argument analyzed_reductions. Call analyze_reduction_list.
4160 (gen_parallel_loop): Do not call analyze_reduction_list.
4161 (parallelize_loops): Init and finalize analyzed_reductions.
4163 2009-07-06 Li Feng <nemokingdom@gmail.com>
4165 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
4166 Added flag -fno-loop-strip-mine for autopar testcase.
4168 2009-07-04 Li Feng <nemokingdom@gmail.com>
4170 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
4171 transformed scattering dimension instead of unmatch orignal when
4172 calling dependence_polyhedron.
4174 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4176 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
4178 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4180 * graphite-poly.c (pbb_number_of_iterations): Check for returned
4181 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
4183 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4185 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
4186 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
4187 * graphite-poly.c (pbb_number_of_iterations): New.
4188 * graphite-poly.h (pbb_number_of_iterations): Declared.
4189 (pbb_iterator_dim, pbb_parameter_dim): New.
4191 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
4193 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
4194 last commit on type of lower and upper bound of loops.
4196 2009-06-29 Li Feng <nemokingdom@gmail.com>
4198 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
4199 graphite-dependences.h.
4200 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
4201 (mark_bb_with_pbb): New.
4202 (get_stmtfor_depth): New.
4203 (find_pbb_via_hash): New.
4204 (dependency_in_loop_p): New.
4205 (mark_loops_parallel): New.
4206 (free_aux_in_new_loops): New.
4207 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
4208 bb with it's relevant pbb. Mark newly created loops. Remove mark
4209 innermost loop parallel without checking.
4210 (gloog): Add parameter BB_PBB_MAPPING.
4211 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
4212 (gloog): Change declaration.
4213 (mark_loop_parallel): Make extern.
4214 (free_aux_in_new_loops): Declare.
4215 (bb_pbb_map_hash): New.
4216 (eq_bb_pbb_map): New.
4217 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
4218 auto parallelization when flag_graphite_force_parallel is set.
4219 (graphite_finalize): Added free_aux_in_new_loops.
4220 * tree-parloops.c (parallelize_loops): Only generate parallel code for
4221 the innermost loop that marked parallel. Use
4222 flag_graphite_force_parallel instead of loop->can_be_parallel.
4223 (loop_parallel_p): Move inner most checking out of function.
4225 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4227 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
4228 type of lower and upper bound of loops signed long int.
4230 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4232 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
4233 expression outside the loop.
4235 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4237 * gcc.dg/graphite/interchange-8.c: New.
4239 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4241 * gcc.dg/graphite/interchange-0.c: XFailed.
4242 * gcc.dg/graphite/interchange-5.c: XFailed.
4243 * gcc.dg/graphite/interchange-6.c: XFailed.
4245 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4247 * graphite-interchange.c (compute_array_size_poly): The end of the
4248 recursion should return 1.
4250 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4252 * graphite-interchange.c (compute_array_size_cstr): Allow the
4253 subscript multiplier to be -1.
4254 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
4255 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
4256 data_container. Initializes PDR_DATA_CONTAINER.
4257 (print_pdr_access_layout): New.
4258 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
4259 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
4261 (PDR_DATA_CONTAINER): New.
4262 (new_poly_dr): Update declaration.
4263 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
4264 (build_poly_dr): Call pdr_add_data_dimensions.
4266 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4268 * graphite-poly.h (struct poly_dr): Fix comment.
4269 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
4270 (pdr_add_memory_accesses): New.
4271 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
4273 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4275 * graphite-poly.c (print_pdrs, debug_pdrs): New.
4276 (print_pbb): Add call to print_pdrs.
4277 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
4279 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
4280 Li Feng <nemokingdom@gmail.com>
4282 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
4283 (dependency_between_pbbs_p): New.
4284 (lexicographically_gt_p): Assure !empty_p before polyhedron
4285 intersection assign.
4286 (build_lexicographically_gt_constraint): Correct lexicographically
4288 * graphite-dependences.h: New.
4289 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
4291 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4293 * graphite-clast-to-gimple.c (print_clast_stmt): New.
4294 (gloog): Print to dump_file the generated clast.
4295 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
4296 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
4298 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4300 * graphite-poly.c (extend_scattering): Increment
4301 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
4303 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4305 * graphite-interchange.c (compute_array_size_poly): Added exit of
4306 recursion condition. Continue iterating even after the first equality.
4307 (compute_array_size): Same.
4309 2009-06-24 Li Feng <nemokingdom@gmail.com>
4311 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
4312 -fdump-tree-final_cleanup to -fdump-tree-optimized.
4313 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
4314 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
4315 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
4317 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4319 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
4320 only when the use verifies is_gimple_reg.
4322 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4324 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
4325 Allocate scaldims after call to unify_scattering_dimensions.
4327 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4329 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
4331 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4332 Albert Cohen <albert.cohen@inria.fr>
4334 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
4335 variables for the strip mining.
4337 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4338 Pranav Garg <pranav.garg2107@gmail.com>
4340 * Makefile.in (OBJS-common): Added graphite-blocking.o.
4341 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
4342 (graphite-blocking.o): New rule.
4343 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
4344 * graphite-blocking.c: New.
4345 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
4346 flag_loop_strip_mine.
4347 (psct_scattering_dim_for_loop_depth): New.
4348 * graphite-poly.h (scop_do_strip_mine): Declared.
4349 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
4350 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
4351 flag_loop_strip_mine.
4353 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4355 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
4356 a GMP value and a PPL coefficient at each iteration of a loop.
4358 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4360 * graphite-dependences.c (dependence_polyhedron): Do not use
4361 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
4362 pbb_nb_scattering_transform.
4363 (graphite_legal_transform_dr): Same.
4364 * graphite-poly.c (extend_scattering): Same.
4365 (unify_scattering_dimensions): Same.
4366 (print_scattering_function): Same.
4367 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
4368 PBB_NB_LOCAL_VARIABLES.
4369 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
4370 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
4371 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
4372 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
4373 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
4374 (pbb_nb_scattering_transform): New.
4375 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
4376 (psco_scattering_dim): Add assert on parameters.
4377 (psct_scattering_dim): Same.
4378 (psct_scattering_dim_for_loop_depth): Declared.
4379 (psct_local_var_dim): New.
4380 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
4381 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
4382 correct layout, call pbb_nb_local_vars.
4383 (psct_add_local_variable, psct_add_scattering_dimension): New.
4384 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
4385 Initialize PBB_NB_SCATTERING_TRANSFORM.
4387 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4389 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
4390 (set_coef): Renamed ppl_set_coef.
4391 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
4393 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4395 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
4396 test a boolean against 1.
4397 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
4398 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
4399 (pbb_do_interchange): Returns true when a transform has been performed.
4400 (scop_do_interchange): Same.
4401 * graphite-poly.c (apply_poly_transforms): Use the return value of
4402 scop_do_interchange.
4403 * graphite-poly.h (scop_do_interchange): Update declaration.
4405 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
4407 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
4409 * sese.c (sese_reset_aux_in_loops): New.
4410 * sese.h (sese_reset_aux_in_loops): New.
4412 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4414 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
4415 multiplier and multiply the constant by the multiplier.
4416 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
4417 (build_poly_dr): Do not use the multiplier to define the subscript.
4419 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4421 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
4422 compiler's data reference. Initialize PDR_CDR.
4423 (print_pdr): Call dump_data_reference.
4424 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
4425 Add compiler_dr field.
4426 (PDR_BB): Renamed PDR_PBB.
4428 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
4429 GCC's data reference representation.
4430 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
4431 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
4433 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4435 * graphite-poly.c (print_scattering_function): Also print the layout.
4436 * graphite-poly.h (pbb_nb_local_vars): New.
4438 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4440 * graphite-poly.c (print_pbb_domain): Also print the layout names.
4442 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4444 * graphite-poly.c (print_pdr, debug_pdr): New.
4445 * graphite-poly.h (print_pdr, debug_pdr): Declared.
4446 (PDR_BASE): Removed.
4448 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4450 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
4453 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4455 * graphite-interchange.c (compute_subscript): Allow also -1 in the
4456 subscript identification column.
4457 (pbb_do_interchange): Print to dump_file that some loops "will be
4458 interchanged". Rely on that chain of characters in the testcases.
4459 * gcc.dg/graphite/interchange-0.c: New.
4460 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
4461 interchange-*.c files and compile them with -floop-interchange.
4463 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
4465 * graphite-interchange.c (interchange_profitable_p): Renamed
4466 pbb_interchange_profitable_p.
4468 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4469 Harsha Jagasia <harsha.jagasia@amd.com>
4470 Pranav Garg <pranav.garg2107@gmail.com>
4472 * graphite-interchange.c (interchange_profitable_p): Make static.
4473 (pbb_interchange_loop_depths, pbb_do_interchange,
4474 scop_do_interchange): New.
4475 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
4476 for flag_loop_interchange.
4477 * graphite-poly.h (scop_do_interchange): Declared.
4478 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
4479 flag_loop_interchange is used.
4481 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4483 * graphite-dependences.c (dependence_polyhedron): Update use of
4484 pbb_nb_scattering_dims.
4485 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
4486 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
4487 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
4488 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
4490 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4492 * graphite.c: Cleanup foo.
4494 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4496 * Merge from mainline (r143684:148293).
4497 * Disabled libpcp until it gets fixed.
4499 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
4500 Harsha Jagasia <harsha.jagasia@amd.com>
4502 * graphite-interchange.c: New.
4503 * Makefile.in (graphite-interchange.o): New.
4504 * graphite-poly.h (interchange_profitable_p): Declared.
4505 * graphite-ppl.h (value_max): New.
4507 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4509 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
4510 * graphite-poly.h: Fix some comments.
4514 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4517 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
4518 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
4519 (pdr_accessp_nb_params): Renamed pdr_nb_params.
4520 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
4521 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
4522 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
4523 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
4524 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
4525 * graphite-clast-to-gimple.c: Same.
4526 * graphite-dependences.c: Same.
4527 * graphite-poly.c: Same.
4528 * graphite-sese-to-poly.c: Same.
4530 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4532 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
4533 expressions for an IV rename, as returned by clast_to_gcc_expression.
4534 (copy_renames): Rename new_name to expr.
4535 * sese.c (debug_rename_elt): Same.
4538 (sese_adjust_liveout_phis): Call force_gimple_operand before using
4539 the information from the rename map.
4540 (rename_variables_in_stmt): Same.
4541 (add_loop_exit_phis): Rename new_name to expr.
4542 (insert_loop_close_phis): Same.
4543 (add_guard_exit_phis): Same. Call force_gimple_operand.
4544 * sese.h (struct rename_map_elt): Rename new_name to expr.
4545 (new_rename_map_elt): Same.
4547 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4549 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
4550 * sese.c (set_rename): Make it extern.
4551 * sese.h (set_rename): Declared.
4553 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4555 * graphite-poly.c (extend_scattering): Free values.
4556 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
4558 (ppl_print_powerset_matrix): Same.
4559 * graphite-scop-detection.c (free_scops_1): New.
4560 (limit_scops): Call free_scops_1.
4561 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
4562 (build_poly_dr): Free PPL coefficients.
4563 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
4565 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
4567 * graphite-dependences.c: New.
4568 * graphite-data-ref.c: Removed.
4569 * graphite-data-ref.h: Removed.
4570 * Makefile.in (graphite-data-ref.o): Removed.
4571 (graphite-dependences.o): Added.
4572 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
4573 * graphite-poly.c: Same.
4574 Move the data dependence testing to graphite-dependences.c.
4576 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
4578 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
4579 from graphite_cannot_represent_loop. Code refactored.
4580 (scopdet_basic_block_info): Call graphite_can_represent_loop.
4582 2009-05-17 Li Feng <nemokingdom@gmail.com>
4584 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
4585 Cover all the testcases (not only the filtered ones).
4587 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
4589 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
4590 unnecessary check. Update comments. Move check for REAL_TYPE here.
4591 (harmful_stmt_in_bb): Remove checks for conditions. This is already
4592 done in (stmt_simple_for_scop_p).
4594 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
4596 * graphite.c (print_global_statistics): New.
4597 (print_graphite_scop_statistic): New.
4598 (print_graphite_statistics): New.
4599 (graphite_initialize, graphite_transform_loops): Print statistics.
4600 * graphite-scop-detection (build_scops): Print statistics.
4601 (print_graphite_scop_statistics): New.
4602 (print_graphite_statistics): New.
4604 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4606 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
4607 (debug_clast_name_index): Removed.
4608 (debug_clast_name_indexes_1): Removed.
4609 (debug_clast_name_indexes): Removed.
4610 (clast_name_index_elt_info): Removed.
4611 (eq_clast_name_indexes): Removed.
4612 (clast_name_to_index): Removed.
4613 (new_clast_name_index): Removed.
4614 (save_clast_name_index): Removed.
4615 (save_var_name): Moved...
4616 (init_sese_params_index): Removed.
4617 (clast_name_to_gcc): Remove use of name_tree.
4618 (initialize_cloog_names): Same.
4619 (gloog): Do not call init_sese_params_index.
4620 * graphite-sese-to-poly.c (save_var_name): ...here.
4621 (parameter_index_in_region): New.
4622 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
4623 (parameter_index_in_region): Removed.
4624 (is_parameter): Remove use of name_tree.
4625 * sese.h (struct name_tree): Removed.
4626 (struct sese): Remove use of name_tree. New field params_names.
4627 (SESE_PARAMS_NAMES): New.
4628 (SESE_PARAMS): Remove duplicate.
4629 (parameter_index_in_region): Removed.
4630 (sese_nb_params): Remove use of name_tree.
4631 (struct clast_name_index): New.
4632 (new_clast_name_index): New.
4633 (clast_name_to_index): New.
4634 (save_clast_name_index): New.
4635 (debug_clast_name_index): New.
4636 (debug_clast_name_indexes_1): New.
4637 (debug_clast_name_indexes): New.
4638 (clast_name_index_elt_info): New.
4639 (eq_clast_name_indexes): New.
4641 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4643 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
4644 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
4645 (graphite_loop_normal_form): Do not pass region. Do not
4646 initialize SESE_OLDIVS.
4647 (build_graphite_loop_normal_form): Update call to
4648 graphite_loop_normal_form.
4649 * sese.c (debug_oldivs): Removed.
4650 (new_sese): Do not initialize SESE_OLDIVS.
4651 (free_sese): Do not free SESE_OLDIVS.
4652 (oldiv_for_loop): Removed.
4653 * sese.h (struct sese): Remove old_ivs.
4654 (SESE_OLDIVS): Removed.
4655 (oldiv_for_loop): Removed.
4657 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4659 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
4660 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
4661 replaced by a call to newivs_to_depth_to_newiv.
4662 (clast_to_gcc_expression): Pass newivs, remove ivstack.
4663 (clast_to_gcc_expression_red): Same.
4664 (gcc_type_for_clast_expr): Same.
4665 (gcc_type_for_clast_eq): Same.
4666 (graphite_translate_clast_equation): Same.
4667 (graphite_create_guard_cond_expr): Same.
4668 (graphite_create_new_guard): Same.
4669 (graphite_create_new_loop): Same.
4670 (build_iv_mapping): Same.
4671 (translate_clast): Same.
4673 (loop_iv_stack_patch_for_consts): Removed. *
4674 sese.c (iv_stack_entry_is_constant): Removed.
4675 (iv_stack_entry_is_iv): Removed.
4676 (loop_iv_stack_push_iv): Removed.
4677 (loop_iv_stack_insert_constant): Removed.
4678 (loop_iv_stack_pop): Removed.
4679 (loop_iv_stack_get_iv): Removed.
4680 (loop_iv_stack_get_iv_from_name): Removed.
4681 (debug_loop_iv_stack): Removed.
4682 (free_loop_iv_stack): Removed.
4683 (loop_iv_stack_remove_constants): Removed. *
4684 sese.h (iv_stack_entry_kind): Removed.
4685 (iv_stack_entry_data_union): Removed.
4686 (iv_stack_entry_struct): Removed.
4687 (iv_stack_entry_p): Removed.
4688 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
4689 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
4690 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
4691 loop_iv_stack_pop, free_loop_iv_stack): Removed.
4692 (gbb_loop_at_index): Fix indenting.
4693 (gbb_loop_index): Removed.
4695 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4697 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
4698 Call clast_name_to_index.
4700 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4702 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
4703 do not pass params. Get params from SESE_PARAMS.
4704 (clast_to_gcc_expression): Same.
4705 (clast_to_gcc_expression_red): Same.
4706 (gcc_type_for_clast_eq): Same.
4707 (graphite_translate_clast_equation): Same.
4708 (graphite_create_new_loop): Same.
4709 * sese.c (rename_variables_in_stmt): Fix comment.
4711 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4713 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
4715 Call save_clast_name_index.
4716 (translate_clast): Pass newivs_index.
4717 (gloog): Create and free newivs_index.
4719 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4721 * graphite-clast-to-gimple.c (clast_name_index): New structure.
4722 (clast_name_index_p): New type.
4723 (debug_clast_name_index): New.
4724 (debug_clast_name_indexes_1): New.
4725 (debug_clast_name_indexes): New.
4726 (clast_name_index_elt_info): New.
4727 (eq_clast_name_indexes): New.
4728 (clast_name_to_index): New.
4729 (new_clast_name_index): New.
4730 (save_clast_name_index): New.
4731 (init_sese_params_index): New.
4732 (gloog): Call init_sese_params_index.
4733 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
4734 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
4735 (free_sese): Free SESE_PARAMS_INDEX.
4736 * sese.h (struct sese): Add params_index.
4737 (SESE_PARAMS_INDEX): New.
4739 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4741 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
4742 (graphite_create_new_loop): Pass the newivs vector. Push the
4743 newly created IV to newivs.
4744 (translate_clast): Pass the newivs vector.
4745 (gloog): Create and destroy the newivs vector.
4747 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4749 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
4750 (graphite_loop_normal_form): Initialize loop->aux with the unique
4751 IV that has been created.
4753 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
4755 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
4756 scev with parameters in the base part. They where forbidden
4759 2009-05-11 Li Feng <nemokingdom@gmail.com>
4761 * gcc.dg/graphite/graphite.exp: Set different default
4762 compile options by file names.
4763 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
4764 * gcc.dg/graphite/id-{1-9}.c: Ditto.
4765 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
4766 * gcc.dg/graphite/scop-matmult.c: Ditto.
4768 2009-05-08 Li Feng <nemokingdom@gmail.com>
4770 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
4771 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
4772 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
4773 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
4775 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4777 * graphite-scop-detection (build_scops_1): Fix little bug introduced
4780 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4782 * graphite-scop-detection.c (graphite_can_represent_scev): Only
4783 allow integer constant strides.
4784 (graphite_can_represent_expr): Depend on outermost_loop.
4785 (stmt_simple_memref_p, graphite_cannot_represent_loop,
4786 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
4787 build_scops_1): Same.
4788 (scopdet_basic_block_info): Same and insert layered SCoP
4790 (try_generate_gimple_bb): Cleanup.
4791 (build_scops): Enable data references.
4793 * gcc.dg/graphite/id-5.c: New.
4794 * gcc.dg/graphite/id-9.c: New.
4795 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
4796 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
4798 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4800 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
4801 that we have not yet built for this SCoP.
4803 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4805 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
4806 for complex numbers.
4808 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4810 * graphite-ppl.c: Fix build if cloog is not available.
4812 2009-05-04 Li Feng <nemokingdom@gmail.com>
4814 * tree-parloops.c (loop_parallel_p): Remove construction of
4815 NITER and REDUCTION_LIST.
4816 (try_get_loop_niter): New.
4817 (try_create_reduction_list): New.
4818 (parallelize_loops): Bypass the failed checkings in autopar
4819 when can_be_parallel in loop structure is set to true.
4821 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4823 * gcc.dg/graphite/id-6.c: Update testcase.
4824 * gcc.dg/graphite/scop-3.c: Dito.
4826 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4828 * graphite-scop-detection.c (stmt_simple_for_scop_p):
4829 Enable EQ_EXPR and NE_EXPR again.
4831 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4833 * graphite-scop-detection.c (graphite_can_represent_scev):
4834 Add check if scev is affine multivariate.
4835 (harmful_stmt_in_bb): Check if we can represent the conditions.
4836 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
4838 * gcc.dg/graphite/id-7.c: New.
4840 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4842 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
4843 Check all bbs in region, not only the bbs that are represented in
4845 (build_poly_scop): Add newline.
4846 * gcc.dg/graphite/id-8.c: New.
4848 2009-04-30 Li Feng <nemokingdom@gmail.com>
4850 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
4851 when loop initialize.
4852 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
4853 * common.opt: Declare flag_graphite_force_parallel.
4854 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
4856 * graphite-poly.c (apply_poly_transforms): Introduce
4857 flag_graphite_force_parallel.
4858 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
4859 * toplev.c (process_options): ditto and replace a not correctly
4862 2009-04-30 Li Feng <nemokingdom@gmail.com>
4864 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
4865 Change the call of gbb_loop_at_index and/or gbb_loop_index due
4866 to the redefinition.
4867 (compute_cloog_iv_types_1): ditto.
4868 (build_iv_mapping): ditto.
4869 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
4871 (free_gimple_bb): Removed GBB_LOOPS related free part.
4872 (build_bb_loops): Removed.
4873 * sese.h (struct gimple_bb): Removed loops.
4874 (GBB_LOOPS): Removed.
4875 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
4876 (gbb_loop_index): ditto.
4878 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4880 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
4881 allow non constant strides.
4882 * gcc.dg/graphite/scop-20.c: New.
4884 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4886 * graphite-scop-detection.c (dot_all_scops): Fix system call
4887 return value warning.
4890 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4892 * gcc.dg/graphite/id-6.c: Fix pattern.
4893 * gcc.dg/graphite/scop-3.c: Same.
4895 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4897 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
4898 build_pairwise_constraint, dr_equality_constraints,
4899 build_pairwise_scheduling_equality,
4900 build_pairwise_scheduling_inequality, lexicographically_gt_p,
4901 build_lexicographically_gt_constraint, dependence_polyhedron,
4902 graphite_legal_transform_dr, graphite_legal_transform_bb,
4903 graphite_legal_transform): New.
4904 * graphite-poly.h (graphite_legal_transform): Declared.
4905 * graphite-sese-to-poly.c (build_poly_scop): Call to
4906 graphite_legal_transform is disabled for the moment.
4908 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4910 * graphite-poly.h (pbb_nb_scattering_dims): New.
4911 (pbb_nb_scattering): Use it.
4913 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4915 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
4916 Pointset_Powerset version of ppl_insert_dimensions.
4917 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
4919 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4921 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
4923 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4925 * graphite-poly.h: Fix comment.
4927 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4929 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
4931 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4933 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
4936 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4938 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
4939 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
4942 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
4944 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
4945 handle EQ_EXPR and NE_EXPR.
4947 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
4949 * graphite-poly.h (poly_dr): Fix comment.
4951 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4952 Tobias Grosser <grosser@fim.uni-passau.de>
4954 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
4955 with a zero dimension polyhedron.
4956 (find_scop_parameters): Move the call to scop_set_nb_params here.
4957 (build_loop_iteration_domains): Store in loop->aux the iteration
4959 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
4960 by any loop in scop.
4961 (build_poly_scop): Do not call scop_set_nb_params.
4963 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4964 Tobias Grosser <grosser@fim.uni-passau.de>
4966 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
4967 add_condition_to_domain not GT_EXPR.
4969 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4971 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
4972 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
4973 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
4974 upper_bound_assign to calculate unions.
4975 * gcc.dg/graphite/id-6.c: New.
4977 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4979 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
4980 handle abnormal edges.
4982 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4984 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
4985 (free_poly_bb): Also free poly_drs.
4986 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
4987 (poly_dr): Polyhedron to Pointset_Powerset.
4988 (pdr_accessp_nb_subscripts): Same.
4989 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
4992 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4994 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
4995 names into more meaningful names.
4997 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4999 * gfortran.dg/graphite/interchange-1.c: New.
5000 * gfortran.dg/graphite/interchange-2.c: New.
5002 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5004 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
5006 * tree-parloops.c (rewrite_phi_with_iv): New.
5007 (rewrite_all_phi_nodes_with_iv): New.
5008 (canonicalize_loop_ivs): Call them.
5010 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5012 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
5013 graphite_find_data_references_in_stmt.
5014 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
5015 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
5017 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5019 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
5021 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5023 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
5024 instead of bb_in_region.
5025 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
5026 (build_sese_conditions): Use flag_bb_in_sese.
5027 * sese.c (register_bb_in_sese): Removed.
5028 (new_sese): Remove initialization of SESE_REGION_BBS.
5029 (free_sese): Do not free SESE_REGION_BBS.
5030 * sese.h (struct sese): Remove field region_basic_blocks.
5031 (SESE_REGION_BBS): Removed.
5032 (bb_in_sese_p): Implement in function of bb_in_region.
5034 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5036 * graphite-scop-detection.c (limit_scops): Deal only with single exit
5039 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
5041 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
5043 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
5044 (add_condition_to_domain): New.
5045 (add_condition_to_pbb): New.
5046 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
5047 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
5049 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
5051 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
5052 ppl_Pointset_Powerset.
5053 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
5054 * graphite-poly.h (poly_bb): poly_bb.domain Same.
5055 (pbb_nb_loops): Same.
5056 * graphite-sese-to-poly.c (build_loop_iteration_domains,
5057 add_conditions_to_domain): Same.
5058 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
5059 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
5060 ppl_const_Polyhedron_t.
5061 (ppl_print_powerset_matrix): New.
5062 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
5063 ppl_print_powerset_matrix): New.
5064 (ppl_print_polyhedron_matrix): Updated.
5066 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
5068 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
5070 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
5072 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
5073 (print_iteration_domains, debug_iteration_domain,
5074 debug_iteration_domains): New.
5075 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
5076 debug_iteration_domains): Declared.
5077 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
5080 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
5081 Sebastian Pop <sebastian.pop@amd.com>
5083 * graphite-poly.h (print_iteration_domain): New.
5084 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
5085 (build_sese_conditions_1, build_sese_conditions_after,
5086 build_sese_conditions_before): New.
5087 (build_sese_conditions): Rewritten.
5089 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
5090 Tobias Grosser <grosser@fim.uni-passau.de>
5092 Cleanup of code generation liveouts.
5093 * graphite-clast-to-gimple.c (translate_clast): Use a single
5094 rename_map instead of one per translated statement.
5095 Do not use SESE_LIVEOUT_RENAMES.
5096 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
5097 (gloog): Do not use SESE_LIVEOUT_RENAMES.
5098 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
5099 phi node of a reduction: when a loop contains a reduction used outside
5100 the loop, there should be a scalar close phi node on the exit block.
5101 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
5102 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
5103 (free_sese): Do not free them.
5104 (sese_build_liveouts_use): Do not use them.
5105 (sese_build_liveouts_bb): Same.
5106 (sese_build_liveouts): Same.
5107 (sese_insert_phis_for_liveouts): Same.
5108 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
5109 (defined_in_loop_p): New.
5110 (alive_after_loop): New.
5111 (close_phi_not_yet_inserted_p): New.
5112 (struct alep, alep_p): New.
5113 (add_loop_exit_phis): Remove from the rename_map all the names defined
5114 in the code generated loop.
5115 (insert_loop_close_phis): Traverse the rename_map passed to it.
5116 Don't use SESE_LIVEOUT_RENAMES.
5117 (default_liveout_before_guard): Renamed default_before_guard.
5118 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
5119 (graphite_copy_stmts_from_block): Do not directly call set_rename.
5120 (register_sese_liveout_renames): Removed.
5121 (copy_bb_and_scalar_dependences): Do not call it.
5122 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
5124 (SESE_LIVEOUT): Removed.
5125 (SESE_LIVEOUT_RENAMES): Removed.
5126 (SESE_REDUCTION_LIST): Removed.
5127 (sese_build_liveouts): Removed.
5128 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
5129 (insert_loop_close_phis): Pass a htab_t instead of a sese.
5130 (insert_guard_phis): Same.
5131 (rename_map_elt): Declare a VEC of them.
5132 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
5133 trees not pointers to trees.
5135 Rewrite in canonical close SSA form:
5136 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
5137 (limit_scops): Close the scop after the block containing the close phi
5139 (canonicalize_loop_closed_ssa): New.
5140 (canonicalize_loop_closed_ssa_form): New.
5141 (build_scops): Call canonicalize_loop_closed_ssa_form.
5143 * graphite-sese-to-poly.c: Fix typos.
5145 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
5147 * graphite-poly.c (print_scattering_function, print_pbb_domain):
5149 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
5150 (print_pbb): Add conditions.
5152 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
5153 Sebastian Pop <sebastian.pop@amd.com>
5155 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
5156 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
5157 (build_scop_bbs_1): New.
5158 (build_scop_bbs): Rewrite.
5159 * sese.h (bb_in_region): New.
5161 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5163 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
5165 (print_scop): Style.
5166 * graphite-poly.h (poly_bb): Add drs vector.
5167 (PBB_DRS): Add accessor.
5168 * graphite-sese-to-poly.c (build_poly_dr): New.
5169 (build_pbb_drs, build_scop_drs): New.
5170 (build_poly_scop): call build_scop_drs (Disabled at the moment).
5172 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5174 * tree-ssa-loop.c: Include forgotten toplev.h
5176 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5178 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
5179 * gcc.dg/graphite/pr37883.c: Remove -floop-*
5180 * gcc.dg/graphite/pr37928.c: Same
5181 * gcc.dg/graphite/pr38409.c: Same
5182 * gcc.dg/graphite/pr38498.c: Same
5183 * gcc.dg/graphite/pr38559.c: Same
5184 * gcc.dg/graphite/pr39335.c: Same
5185 * gcc.dg/graphite/pr39335_1.c: Same
5186 * gfortran.dg/graphite/block-2.f: Same
5187 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
5190 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
5192 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
5193 build_access_matrix, build_scop_data_accesses): Remove access function
5194 building. (We get a new version soon).
5195 (build_bb_loops, scan_tree_for_params_right_scev): Update.
5196 * sese.h (nb_loops_around_loop_in_sese): Remove.
5197 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
5199 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
5200 Sebastian Pop <sebastian.pop@amd.com>
5202 * graphite-scop-detection.c (struct scopdet_info): Rename last
5204 (scopdet_basic_block_info, build_scops_1): Don't use
5205 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
5207 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
5208 Sebastian Pop <sebastian.pop@amd.com>
5210 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
5211 * sese.c (sese_build_liveouts_use): Renamed from
5212 sese_build_livein_liveouts_use. Remove liveins.
5213 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
5214 Call sese_build_liveouts_use.
5215 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
5216 Call sese_build_liveouts_bb.
5217 (new_sese, free_sese): Remove liveins.
5218 (sese_add_exit_phis_var): Deleted.
5219 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
5221 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
5223 * sese.h (sese): Remove num_ver and livein.
5224 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
5226 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
5228 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
5230 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
5232 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
5233 (build_scop_scattering): Do not use compare_prefix_loops any more.
5234 (nb_common_loops): New.
5236 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5238 * sese.c (get_new_name_from_old_name): Renamed get_rename.
5239 (register_old_and_new_names): Renamed set_rename.
5241 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5243 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
5244 of the decl from the previous commit.
5246 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5248 * graphite-scop-detection.c (dot_scop): New.
5249 * graphite-scop-detection.h (dot_scop): Declared.
5251 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5253 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
5255 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5257 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
5258 condition at the end of the loop.
5259 * graphite.c (graphite_initialize, graphite_finalize): Print to
5260 dump_file the compiled function.
5261 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
5262 of create_empty_loop_on_edge.
5263 (translate_clast): Update the code generation of loops for the new
5265 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
5267 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5269 Reverted the patch from 2009-03-19.
5271 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
5273 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
5275 (print_scop): Style.
5276 * graphite-poly.h (poly_bb): Add drs vector.
5277 (PBB_DRS): Add accessor.
5278 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
5279 (build_access_matrix_with_af, build_access_matrix,
5280 build_scop_data_accesses): Delete.
5281 (build_poly_dr): New.
5282 (build_pbb_drs, build_scop_drs): New.
5283 (build_poly_scop): call build_scop_drs.
5285 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
5287 * graphite-scop-detection.c (dot_all_scops_1): Close the table
5288 once per basic block.
5290 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
5292 * graphite-scop-detection.c (graphite_can_represent_scev): New.
5293 (graphite_can_represent_expr): Renamed from loop_affine_expr
5295 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
5296 (graphite_cannot_represent_loop): Add scop_entry to parameters.
5297 (scopdet_basic_block_info): Actually define entry_block.
5298 (stmt_simple_memref_p): Moved here from ...
5300 * tree-data-ref.c (stmt_simple_memref_p): here.
5301 * tree-data-ref.h (stmt_simple_memref_p): Removed.
5303 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
5305 * gcc.dg/graphite/id-4.c: New.
5307 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
5309 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
5310 (register_old_and_new_names): Update the content of the map.
5311 When there was already a rename_map_elt in the map at that
5313 (copy_bb_and_scalar_dependences): Do rename_variables after
5314 expand_scalar_variables.
5315 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5316 of the map. When there was already a rename_map_elt in the
5317 map at that location, free it.
5318 (translate_clast): Pass the rename_map. Do not initialize and free
5319 a rename_map per stmt_user.
5320 (gloog): Initialize and free one rename_map and pass it to
5323 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
5325 * sese.c (expand_scalar_variables_stmt,
5326 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
5328 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
5329 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
5330 the gimple_stmt_iterator of the statement to be expanded.
5331 * graphite-scop-detection.c (is_simple_operand): Do handle
5334 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5336 * graphite-scop-detection.c (is_simple_operand): Do not handle
5338 * gcc.dg/graphite/id-2.c: New.
5340 * graphite-sese-to-poly.c (build_bb_loops,
5341 add_value_to_dim, scan_tree_for_params_right_scev,
5342 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
5343 find_params_in_bb, build_loop_iteration_domains,
5344 add_conditions_to_domain): Remove subtract.
5346 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5348 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
5349 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
5350 pbb_loop_at_index -> gbb_loop_at_index.
5351 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
5352 (debug_loop_vec): Delete.
5353 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
5354 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
5355 (PBB_LOOPS): Removed.
5356 (PBB_BLACK_BOX): Insert cast.
5357 (pbb_set_black_box): New setter.
5358 (pbb_loop_at_index, pbb_loop_index): Removed.
5359 (scop_set_region, scop_set_nb_params): New.
5360 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
5361 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
5362 (build_poly_scop): Use scop_set_nb_params.
5363 * sese.h (gimple_bb): Add LOOPS.
5364 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
5366 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5368 Revert previous commit.
5370 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
5372 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
5373 (register_old_and_new_names): Update the content of the map.
5374 When there was already a rename_map_elt in the map at that
5376 (copy_bb_and_scalar_dependences): Do rename_variables after
5377 expand_scalar_variables.
5378 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5379 of the map. When there was already a rename_map_elt in the
5380 map at that location, free it.
5381 (translate_clast): Pass the rename_map. Do not initialize and free
5382 a rename_map per stmt_user.
5383 (gloog): Initialize and free one rename_map and pass it to
5386 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5388 Remove forgotten line in revert.
5390 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
5392 Revert previous commit.
5394 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
5396 * sese.c (register_old_and_new_names): Update the content
5397 of the map. When there was already a rename_map_elt in the
5398 map at that location, free it.
5399 (copy_bb_and_scalar_dependences): Do rename_variables after
5400 expand_scalar_variables.
5401 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5402 of the map. When there was already a rename_map_elt in the
5403 map at that location, free it.
5404 (translate_clast): Pass the rename_map. Do not initialize and free
5405 a rename_map per stmt_user.
5406 (gloog): Initialize and free one rename_map and pass it to
5409 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
5411 * graphite-clast-to-gimple.c (translate_clast): context_loop
5414 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
5415 Sebastian Pop <sebastian.pop@amd.com>
5417 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
5418 of the use of ppl_Polyhedron_map_space_dimensions.
5420 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
5421 Sebastian Pop <sebastian.pop@amd.com>
5423 * graphite-poly.c (unify_scattering_dimensions): Fix types.
5424 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
5425 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
5426 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
5427 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
5428 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
5429 pbb_nb_params): New.
5430 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
5431 nb_loops_around_pbb): Adapt return types.
5433 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
5435 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
5436 graphite-clast-to-gimple.o, graphite-data-ref.o,
5437 graphite-scop-detection.o, graphite-poly.o): Add
5440 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
5442 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
5443 graphite-clast-to-gimple.o, graphite-data-ref.o,
5444 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
5446 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
5448 * gcc.dg/graphite/pr37485.c: Remove -floop-block
5449 * gcc.dg/graphite/pr37828.c: Same.
5450 * gcc.dg/graphite/pr37684.c: Same.
5451 * gcc.dg/graphite/block-0.c: Same.
5452 * gcc.dg/graphite/block-1.c: Same.
5453 * gcc.dg/graphite/block-2.c: Same.
5454 * gcc.dg/graphite/block-3.c: Same.
5455 * gcc.dg/graphite/block-4.c: Same.
5456 * gcc.dg/graphite/block-5.c: Same.
5457 * gcc.dg/graphite/block-6.c: Same.
5458 * gfortran.dg/graphite/pr38083.f90: Same.
5459 * gfortran.dg/graphite/block-1.f90: Same.
5460 * gfortran.dg/graphite/block-3.f90: Same.
5461 * gfortran.dg/graphite/pr37852.f90: Same.
5462 * gfortran.dg/graphite/block-4.f90: Same.
5463 * gfortran.dg/graphite/pr37980.f90: Same.
5464 * gfortran.dg/graphite/pr38953.f90: Same.
5465 * gfortran.dg/graphite/pr37857.f90: Same.
5466 * opts.c: Remove -floop-block from -O2.
5467 * graphite-poly.c: Fail if -floop-block -floop-interchange or
5468 -floop-strip-mine are used.
5470 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
5471 Sebastian Pop <sebastian.pop@amd.com>
5473 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
5475 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
5476 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
5477 strip_mine_profitable_p, is_interchange_valid,
5478 graphite_trans_bb_block, graphite_trans_loop_block,
5479 graphite_trans_scop_block): Temporary removed.
5480 (extend_scattering, unify_scattering_dimensions): New.
5481 (print_scattering_function, graphite_read_transforms):
5482 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5483 (graphite_generate_scattering_fns): Removed.
5484 (apply_poly_transforms): Cleanup.
5485 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5486 (schedule_to_scattering): Moved.
5487 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
5488 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
5489 (pbb_nb_scattering): New.
5490 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5491 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
5493 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
5495 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5496 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
5497 -> PBB_TRANSFORMED_SCATTERING.
5498 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
5499 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
5500 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
5501 (check_poly_representation): Do not return bool.
5502 (graphite_transform_loops): Reformat.
5503 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
5505 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
5507 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
5508 debug_pbb_domain, debug_pbb, debug_scop): New.
5509 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
5510 debug_pbb_domain, debug_pbb, debug_scop): Declared.
5512 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5515 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
5516 when the type precision of the induction variable should be
5517 larger than the type precision of nit.
5518 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
5519 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
5520 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
5522 * gcc.dg/graphite/pr39335_1.c: New.
5523 * gcc.dg/graphite/pr39335.c: New.
5525 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5527 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
5528 SSA_NAMES not struct reduction_info.
5530 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5532 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
5534 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5535 Tobias Grosser <grosser@fim.uni-passau.de>
5537 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
5538 (free_sese): Free SESE_REDUCTION_LIST.
5539 * sese.h (struct sese): Add field reduction_list.
5540 (SESE_REDUCTION_LIST): New.
5541 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
5542 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
5544 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5545 Tobias Grosser <grosser@fim.uni-passau.de>
5547 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
5550 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5551 Tobias Grosser <grosser@fim.uni-passau.de>
5553 * tree-parloops.c (struct brli, build_reduction_list_info,
5554 analyze_reduction_list, gather_scalar_reductions): New.
5555 (loop_parallel_p): Build a reduction list containing only
5556 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
5557 (gen_parallel_loop): Call the analysis analyze_reduction_list.
5558 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
5559 * tree-flow.h (gather_scalar_reductions): Declared.
5561 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
5564 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
5565 number_of_iterations_exit from a gcc_assert.
5567 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
5568 Jan Sjodin <jan.sjodin@amd.com>
5570 * output.h (graphite_out_file, graphite_in_file): Declared.
5571 * toplev.c (graphite_out_file, graphite_in_file): New.
5572 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
5573 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
5574 Don't call schedule_to_scattering.
5575 * common.opt (fgraphite-write, fgraphite-read): New.
5576 * graphite-poly.c: Include output.h.
5577 (print_scattering_function, print_scattering_functions,
5578 debug_scattering_function, debug_scattering_functions,
5579 graphite_write_transforms, graphite_read_transforms,
5580 graphite_generate_scattering_fns): New.
5581 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
5582 Call graphite_generate_scattering_fns, graphite_write_transforms,
5583 graphite_read_transforms.
5584 (new_poly_bb): Initialize PBB_SCATTERING.
5585 (free_poly_bb): Free PBB_SCATTERING.
5586 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
5587 * graphite-poly.h (struct poly_bb): Add field scattering.
5588 (PBB_SCATTERING): New.
5589 (print_scattering_function, print_scattering_functions,
5590 debug_scattering_function, debug_scattering_functions): Declared.
5591 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
5592 GMP values, not integers!
5593 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
5594 ppl_read_polyhedron_matrix): New.
5595 * graphite-ppl.h (ppl_print_polyhedron_matrix,
5596 debug_ppl_polyhedron_matrix,
5597 ppl_read_polyhedron_matrix): Declared.
5598 * Makefile.in (graphite-poly.o): Depends on output.h.
5600 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5601 Tobias Grosser <grosser@fim.uni-passau.de>
5604 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5605 scalar evolutions in the scop_entry->loop_father.
5607 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5608 Tobias Grosser <grosser@fim.uni-passau.de>
5610 * graphite.h (ref_nb_loops): Remove declaration.
5611 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
5612 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
5613 debug_gbb): Moved to sese.h.
5616 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5617 Tobias Grosser <grosser@fim.uni-passau.de>
5619 * graphite-data-ref.[ch]: Disable.
5621 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5622 Tobias Grosser <grosser@fim.uni-passau.de>
5624 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5625 scalar evolutions in the scop_entry->loop_father.
5627 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5629 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
5630 (graphite_cannot_represent_loop_niter): Renamed
5631 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
5632 (limit_scops): build_sese_loop_nests does not return a bool.
5633 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
5634 * sese.c (nb_reductions_in_loop): ... from here.
5635 (graphite_loop_normal_form): ... from here.
5636 (sese_record_loop): Does not fail, so does not return a bool.
5637 (build_sese_loop_nests): Same.
5638 * sese.h (build_sese_loop_nests): Update declaration.
5639 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
5640 (build_graphite_loop_normal_form): New.
5641 (gloog): Call build_graphite_loop_normal_form.
5642 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
5643 build_sese_loop_nests.
5645 * gcc.dg/graphite/id-1.c: New.
5647 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5648 Tobias Grosser <grosser@fim.uni-passau.de>
5650 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
5651 The SCoP detection fix is sufficient.
5653 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5655 PR tree-optimization/39260
5656 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
5657 the basic block contains a condition with a real type.
5658 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
5660 * gcc.dg/graphite/pr39260.c: New.
5662 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5664 * graphite-poly.c: Inlcude params.h.
5665 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
5667 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
5668 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
5670 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5671 Tobias Grosser <grosser@fim.uni-passau.de>
5673 * graphite-scop-detection.c (dot_all_scops_1,
5674 dot_all_scops): Moved here.
5675 * graphite-scop-detection.h (dot_all_scops): Declared here.
5676 * graphite.c (graphite_initialize, graphite_finalize): New.
5677 (graphite_transform_loops): Cleaned up.
5678 * sese.c (debug_oldivs): Moved here.
5679 * graphite-poly.c (graphite_apply_transformations): Renamed
5680 apply_poly_transforms.
5681 (debug_loop_vec): Moved here.
5682 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
5683 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
5684 find_scop_parameters, build_scop_iteration_domain,
5685 add_conditions_to_constraints, build_scop_canonical_schedules,
5686 build_scop_data_accesses): Now static.
5687 (build_poly_scop, check_poly_representation): New.
5689 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5691 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
5692 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
5693 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
5694 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
5695 scan_tree_for_params_right_scev, scan_tree_for_params_int,
5696 scan_tree_for_params, struct irp_data, dx_record_params,
5697 find_params_in_bb, find_scop_parameters, gbb_from_bb,
5698 build_loop_iteration_domains, add_conditions_to_domain,
5699 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
5700 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
5701 build_sese_conditions, add_conditions_to_constraints,
5702 build_scop_iteration_domain, build_access_matrix_with_af,
5703 build_access_matrix,
5704 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
5706 * graphite-sese-to-poly.c: New.
5707 * graphite-sese-to-poly.h: New.
5709 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
5711 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5713 * graphite.c: Split graphite code generation to a new file.
5714 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
5715 max_precision_type, clast_to_gcc_expression_red,
5716 clast_to_gcc_expression, gcc_type_for_clast_expr,
5717 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
5718 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
5719 graphite_create_new_guard, clast_get_body_of_loop,
5720 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
5721 graphite_create_new_loop, build_iv_mapping, copy_renames,
5722 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5723 compute_cloog_iv_types, free_scattering, save_var_name,
5724 initialize_cloog_names, build_scop_context, build_cloog_prog,
5725 set_cloog_options, debug_clast_stmt, scop_to_clast,
5726 print_generated_program, debug_generated_program,
5727 gloog): Moved to graphite-clast-to-gimple.c.
5729 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
5731 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
5732 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
5733 loop_iv_stack_pop, loop_iv_stack_get_iv,
5734 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
5735 free_loop_iv_stack, loop_iv_stack_remove_constants,
5736 debug_rename_elt, debug_rename_map_1, debug_rename_map,
5737 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
5738 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
5739 eq_ivtype_map_elts, sese_add_exit_phis_edge,
5740 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
5741 get_vdef_before_sese, sese_adjust_vphi,
5742 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
5743 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
5744 is_iv, expand_scalar_variables_ssa_name,
5745 expand_scalar_variables_expr, expand_scalar_variables_stmt,
5746 expand_scalar_variables, rename_variables, remove_condition,
5747 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
5748 add_loop_exit_phis, insert_loop_close_phis, struct igp,
5749 default_liveout_before_guard, add_guard_exit_phis,
5750 insert_guard_phis, register_old_and_new_names,
5751 graphite_copy_stmts_from_block, register_sese_liveout_renames,
5752 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
5753 if_region_set_false_region, create_if_region_on_edge,
5754 move_sese_in_condition): Moved to sese.c.
5756 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
5757 if_region_exit, if_region_get_condition_block,
5758 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
5759 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
5760 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
5761 ivtype_map_elt, new_ivtype_map_elt,
5762 recompute_all_dominators): Moved to sese.h.
5764 * graphite-clast-to-gimple.c: New.
5765 * graphite-clast-to-gimple.h: New.
5766 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
5767 * sese.c: Modified as said above.
5770 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5772 * graphite.c: Split scop detection to a new file.
5773 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
5774 move_sd_regions, loop_affine_expr, exclude_component_ref,
5775 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
5776 graphite_cannot_represent_loop_niter, struct scopdet_info,
5777 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
5778 find_single_entry_edge, find_single_exit_edge,
5779 create_single_entry_edge, sd_region_without_exit,
5780 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
5781 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
5782 Moved to graphite-scop-detection.c.
5784 * graphite-scop-detection.c: New.
5785 * graphite-scop-detection.h: New.
5786 * Makefile.in: Add new rule for graphite-scop-detection.o.
5788 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
5789 tree-scalar-evolution.h.
5790 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
5791 build_sese_loop_nests): Moved here from graphite.c.
5792 (param_index): Renamed parameter_index_in_region.
5794 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5795 Sebastian Pop <sebastian.pop@amd.com>
5797 * gcc.dg/graphite/block-0.c: Expected to fail now.
5798 * gcc.dg/graphite/block-1.c: Same.
5799 * gcc.dg/graphite/block-5.c: Same.
5800 * gcc.dg/graphite/block-6.c: Same.
5802 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5803 Sebastian Pop <sebastian.pop@amd.com>
5805 * graphite.h: Separate from graphite_bb_p the polyhedral
5806 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
5807 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
5808 graphite-data-ref.h.
5809 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
5810 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
5811 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
5812 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5813 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
5814 scop_nb_params): Moved to graphite-poly.h.
5815 * graphite-data-ref.c: Same.
5816 * graphite-data-ref.h: New.
5818 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
5819 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
5820 is_interchange_valid, graphite_trans_bb_block,
5821 graphite_trans_loop_block, scop_max_loop_depth,
5822 graphite_trans_scop_block, graphite_apply_transformations,
5823 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
5825 * graphite-poly.h: New.
5826 * graphite-poly.c: New.
5827 * Makefile.in (OBJS-common): Add graphite-poly.o.
5828 (graphite-poly.o): New rule.
5829 * tree-data-ref.h (struct data_reference): Remove unused scop field.
5832 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5833 Tobias Grosser <grosser@fim.uni-passau.de>
5835 * graphite.c: Replace gb -> gbb.
5837 * graphite-data-ref.c: Same.
5839 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5840 Tobias Grosser <grosser@fim.uni-passau.de>
5842 * Makefile.in (OBJS-commmon): Add sese.o.
5844 (graphite.o): Add sese.h.
5845 * graphite.c (bb_in_ss_p, loop_in_sese_p,
5846 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
5847 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
5849 (block_before_scop): Add missing return.
5850 (new_scop, free_scop): Remove SESE data structures.
5851 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
5852 find_scop_parameters, build_loop_iteration_domains,
5853 add_conditions_to_domain, register_scop_liveout_renames,
5854 copy_bb_and_scalar_dependences): Scop -> SESE.
5856 (add_conditions_to_domain): SCoP -> SESE and remove check
5857 (scop_contains_non_iv_scalar_phi_nodes): New.
5858 (build_scop_conditions_1, build_scop_conditions): Remove check for
5859 non iv scalar phi nodes.
5860 (print_scop_statistics): New.
5861 (graphite_transform_loops): Cleanup.
5863 * graphite.h: Move to sese & cleanup.
5867 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5868 Tobias Grosser <grosser@fim.uni-passau.de>
5870 * graphite.c (build_scop_conditions_1): Conditions are only
5871 at the end of a basic block.
5873 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5874 Tobias Grosser <grosser@fim.uni-passau>
5876 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
5878 (GBB_ALPHA): Removed.
5880 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5881 Tobias Grosser <grosser@fim.uni-passau.de>
5883 * graphite-data-ref.c (graphite_test_dependence): Don't use
5884 GBB_DYNAMIC_SCHEDULE.
5885 * graphite.c (new_graphite_bb): Same.
5886 (free_graphite_bb): Same.
5887 (build_scop_dynamic_schedules): Removed.
5888 (graphite_transform_loops): Don't call it.
5889 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
5890 (GBB_DYNAMIC_SCHEDULE): Removed.
5892 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5893 Tobias Grosser <grosser@fim.uni-passau.de>
5895 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
5896 (print_graphite_bb): Same.
5897 (build_cloog_prog): Same.
5899 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5900 Tobias Grosser <grosser@fim.uni-passau.de>
5902 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
5904 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5905 Tobias Grosser <grosser@fim.uni-passau.de>
5907 * graphite.c (build_scop_context): Don't use CloogMatrix.
5908 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
5909 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
5911 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5912 Tobias Grosser <grosser@fim.uni-passau.de>
5914 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
5915 liveout_renames, add_params fields...
5916 (struct sese): ... here.
5917 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
5918 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
5920 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5921 Tobias Grosser <grosser@fim.uni-passau.de>
5923 * graphite.c (print_scop): Do not print the CLooG program.
5924 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
5925 build_cloog_prog, gloog): Don't use SCOP_PROG.
5926 (find_transform): Renamed scop_to_clast.
5927 (print_generated_program, debug_generated_program): New.
5928 (graphite_transform_loops): Adapt to new interface.
5929 * graphite.h (struct scop): Remove program field.
5930 (SCOP_PROG): Removed.
5931 (print_generated_program, debug_generated_program): Declared.
5933 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5935 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
5936 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
5937 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
5938 free_graphite_bb, build_scop_canonical_schedules,
5939 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
5940 schedules are now represented using a ppl_Linear_Expression_t.
5941 * graphite.h (struct graphite_bb): Same.
5942 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
5943 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
5945 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5947 * graphite.c: Free local memory.
5948 * graphite-ppl.c: Same.
5950 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5952 * graphite.c (const_column_index, get_first_matching_sign_row_index,
5953 get_lower_bound_row, get_upper_bound_row, copy_constraint,
5954 swap_constraint_variables, scale_constraint_variable): Removed.
5955 (graphite_trans_bb_strip_mine): Remove pong.
5956 * graphite-ppl.c: Include missing header files.
5957 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
5958 * graphite-ppl.h (ppl_strip_loop): Declared.
5959 * Makefile.in (graphite-ppl.o): Adjust dependences.
5961 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
5963 * graphite.c (build_loop_iteration_domains): Remove ping pong.
5964 (build_scop_iteration_domain): Same.
5966 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5968 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5970 (add_value_to_dim, scan_tree_for_params_right_scev,
5971 scan_tree_for_params_int): New.
5972 * graphite-ppl.c (oppose_constraint): New.
5973 (insert_constraint_into_matrix): Implement missing cases.
5974 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5976 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5978 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
5979 use ppl_move_dimension.
5981 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5983 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
5986 * graphite-ppl.c: Same.
5987 * graphite-ppl.h: Same.
5989 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5991 Revert last 3 commits.
5993 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5995 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5997 (add_value_to_dim, scan_tree_for_params_right_scev,
5998 scan_tree_for_params_int): New.
5999 * graphite-ppl.c (oppose_constraint): New.
6000 (insert_constraint_into_matrix): Implement missing cases.
6001 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
6003 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6005 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
6007 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6008 Tobias Grosser <grosser@fim.uni-passau.de>
6010 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
6011 use ppl_move_dimension.
6012 * graphite-ppl.c (ppl_move_dimension): New.
6013 * graphite-ppl.h (ppl_move_dimension): Declared.
6015 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6017 * graphite.c: Do not include cloog/cloog.h.
6018 (print_graphite_bb): Remove ping pong, call PPL print function.
6020 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
6022 * Makefile.in (OBJS-common): Add graphite-ppl.o.
6023 (graphite.o): Add dependence on graphite-ppl.h.
6024 (graphite-ppl.o): New.
6025 (graphite-data-ref.c): Ping pong between PPL data structures
6027 * graphite-ppl.c: New.
6028 * graphite-ppl.h: New.
6029 * graphite.c: Include graphite-ppl.h.
6030 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
6031 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
6032 Ping pong between PPL data structures and matrices.
6033 (new_graphite_bb): Create a PPL constraint system.
6034 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
6035 (build_loop_iteration_domains): Use PPL functions.
6036 * graphite.h: Include graphite-ppl.h. Fix comments.
6037 (graphite_bb): Use a ppl_Constraint_System_t instead of
6038 CloogMatrix for representing the domain.
6039 (scop): Remove static_schedule.
6040 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
6042 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
6044 * graphite.c: Fix some comments.
6046 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
6049 * graphite.c (if_region_set_false_region): After moving a region
6050 in the false branch of a condition, remove the empty dummy
6052 (gloog): Remove wrong fix for PR38953.
6054 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
6056 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
6057 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
6058 register_bb_in_sese, new_sese, free_sese): Moved.
6059 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
6060 outermost_loop_in_scop, build_scop_iteration_domain,
6061 expand_scalar_variables_ssa_name, get_vdef_before_scop,
6062 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
6063 Use loop_in_sese_p instead of loop_in_scop_p.
6064 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
6065 (free_scop): Do not free SCOP_BBS_B.
6066 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
6067 ref_nb_loops): Moved here...
6068 * graphite.h (ref_nb_loops): ... from here.
6069 (struct scop): Remove bbs_b bitmap.
6070 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
6071 * gcc.dg/graphite/scop-19.c: New
6073 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
6075 * graphite.c (scopdet_basic_block_info): Fix bug in scop
6078 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
6080 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
6081 eq_loop_to_cloog_loop): Remove.
6082 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
6083 * graphite.h (struct scop): Remove loop2cloog_loop.
6084 (loop_domain_dim, loop_iteration_vector_dim): Remove.
6086 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
6088 * opts.c (decode_options): Only add graphite options to O2
6089 if we compile with graphite enabled.
6091 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
6093 * Merge from mainline (r143163:143684).
6095 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
6097 * graphite.c (debug_value): Removed.
6098 * graphite.h (debug_value): Removed.
6100 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6102 * passes.c (init_optimization_passes): Do not call pass_copy_prop
6103 after graphite: pass_copy_prop does not maintain a proper loop closed
6104 SSA form. pass_copy_prop should be fixed.
6106 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6108 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
6110 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6112 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
6113 (gloog): Split the exit of the scop when the scop exit is a loop exit.
6114 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
6117 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
6119 * graphite.c (gloog): Return true when code gen succeeded.
6120 (graphite_transform_loops): Do not call cleanup_tree_cfg if
6121 the code of the function did not changed. After cleanup_tree_cfg
6122 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
6125 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
6127 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
6128 gimple_call_lhs is NULL.
6130 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
6131 Tobias Grosser <tobi.grosser@amd.com>
6133 * graphite.c (graphite_trans_scop_block): Do not block single
6136 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
6137 Tobias Grosser <tobi.grosser@amd.com>
6139 * graphite.c (build_scop_canonical_schedules): Start schedules at
6142 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
6143 Tobias Grosser <tobi.grosser@amd.com>
6145 * graphite.c (compare_prefix_loops): New.
6146 (build_scop_canonical_schedules): Rewritten.
6147 (graphite_transform_loops): Move build_scop_canonical_schedules
6148 after build_scop_iteration_domain.
6150 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6151 Tobias Grosser <tobi.grosser@amd.com>
6153 * graphite.c (add_conditions_to_domain): Add the loops to
6154 the dimension of the iteration domain. Do copy the domain
6155 only when it exists.
6156 (build_scop_conditions_1): Do not call add_conditions_to_domain.
6157 (add_conditions_to_constraints): New.
6158 (can_generate_code_stmt, can_generate_code): Removed.
6159 (gloog): Do not call can_generate_code.
6160 (graphite_transform_loops): Call add_conditions_to_constraints
6161 after building the iteration domain.
6163 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6164 Tobias Grosser <tobi.grosser@amd.com>
6165 Jan Sjodin <jan.sjodin@amd.com>
6167 * graphite.c (scan_tree_for_params): On substractions negate
6168 all the coefficients of the term.
6169 (clast_to_gcc_expression_red): New. Handle reduction expressions
6170 of more than two operands.
6171 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
6172 (get_vdef_before_scop): Handle also the case of default definitions.
6174 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6177 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
6178 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
6179 (gloog): Do not call cleanup_tree_cfg.
6180 (graphite_transform_loops): Call cleanup_tree_cfg after all
6181 scops have been code generated.
6183 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
6185 * passes.c (init_optimization_passes): Schedule after
6186 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
6188 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
6190 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
6192 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
6193 Set the type of an expression to the type of its assign statement.
6194 (expand_scalar_variables_expr): Do not pass loop_p.
6195 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
6196 (copy_bb_and_scalar_dependences): Do not pass loop_p.
6197 (translate_clast): Update call to copy_bb_and_scalar_dependences.
6199 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
6201 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
6202 an expression to the gimple_expr_type of its assign statement.
6203 (expand_scalar_variables_expr): Stop recursion on tcc_constant
6206 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
6208 PR tree-optimization/38786
6209 * gcc.dg/graphite/pr38786.c: New.
6210 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
6211 the SSA_NAME case of expand_scalar_variables_expr.
6212 (expand_scalar_variables_expr): Also gather the scalar computation
6213 used to index the memory access.
6214 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
6215 the gimple_stmt_iterator where it inserts new code.
6217 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
6219 * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
6221 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
6223 * opts.c (decode_options): Enable flag_graphite_identity and
6224 flag_loop_block in -O2 and above.
6226 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
6228 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
6229 Fix merge problem: replace with the file from trunk.
6231 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
6233 * Merge from mainline (r141727:143163).
6235 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
6236 Jan Sjodin <jan.sjodin@amd.com>
6238 PR tree-optimization/38559
6239 * gcc.dg/graphite/pr38559.c: New.
6241 * graphite.c (debug_value, copy_constraint,
6242 swap_constraint_variables, scale_constraint_variable, ): New.
6243 (get_lower_bound, get_upper_bound): Removed.
6244 (graphite_trans_bb_strip_mine): Clean up this code that works
6245 only for constant number of iterations. Fully copy upper and
6246 lower bound constraints, not only the constant part of them.
6247 * graphite.h (debug_value): Declared.
6249 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
6251 PR tree-optimization/38492
6252 PR tree-optimization/38498
6253 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
6254 * tree-chrec.h (scev_is_linear_expression): Declared.
6255 * graphite.c (graphite_cannot_represent_loop_niter): New.
6256 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
6257 (graphite_loop_normal_form): Use gcc_assert.
6258 (scan_tree_for_params): Use CASE_CONVERT.
6259 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
6260 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
6261 Use gcc_assert. Discard scops that contain unhandled cases.
6262 (build_scop_conditions): Return a boolean status for unhandled cases.
6263 (strip_mine_profitable_p): Print the loop number, not its depth.
6264 (is_interchange_valid): Pass the depth of the loop nest, don't
6265 recompute it wrongly.
6266 (graphite_trans_bb_block): Same.
6267 (graphite_trans_bb_block): Print tentative of loop blocking.
6268 (graphite_trans_scop_block): Do not print that the loop has been
6270 (graphite_transform_loops): Do not handle scops that contain condition
6273 * gcc.dg/graphite/pr38500.c: Fixed warning as committed
6275 * gcc.dg/graphite/block-0.c: Update test.
6276 * gcc.dg/graphite/block-1.c: Same.
6277 * gcc.dg/graphite/block-2.c: Remove xfail and test for
6279 * gcc.dg/graphite/block-4.c: Remove test for strip mine.
6280 * gcc.dg/graphite/block-3.c: New.
6281 * gcc.dg/graphite/pr38498.c: New.
6283 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
6285 PR tree-optimization/38510
6286 * gcc.dg/graphite/pr38510.c: New.
6287 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
6288 (translate_clast): Call recompute_all_dominators before
6290 (gloog): Call recompute_all_dominators before graphite_verify.
6292 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
6294 PR tree-optimization/38492
6295 * graphite.c (rename_map_elt, debug_rename_elt,
6296 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
6297 rename_map_elt_info, eq_rename_map_elts,
6298 get_new_name_from_old_name, bb_in_sese_p): Moved around.
6299 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
6300 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
6301 (sese_build_livein_liveouts): New.
6302 (new_sese, free_sese): New.
6303 (new_scop): Call new_sese.
6304 (free_scop): Call free_sese.
6305 (rename_variables_from_edge, rename_phis_end_scop): Removed.
6306 (register_old_new_names): Renamed register_old_and_new_names.
6307 (register_scop_liveout_renames, add_loop_exit_phis,
6308 insert_loop_close_phis, struct igp,
6309 default_liveout_before_guard, add_guard_exit_phis,
6310 insert_guard_phis, copy_renames): New.
6311 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
6312 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
6313 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
6314 (scop_adjust_phis_for_liveouts): New.
6315 (gloog): Call scop_adjust_phis_for_liveouts.
6317 * graphite.h (struct sese): Documented. Added fields liveout,
6319 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
6320 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
6321 (struct scop): Added field liveout_renames.
6322 (SCOP_LIVEOUT_RENAMES): New.
6324 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6326 PR tree-optimization/38409
6327 * gcc.dg/graphite/pr38409.c: New.
6328 * graphite.c (nb_reductions_in_loop): Use simple_iv.
6330 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6332 * graphite.c (gcc_type_for_cloog_iv): By default return
6334 (graphite_create_new_loop): Don't fold_convert the already
6335 fold_convert-ed expression.
6337 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
6339 PR tree-optimization/38446
6340 * gcc.dg/graphite/pr38446.c: New.
6341 * graphite.c (register_bb_in_sese): New.
6342 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
6343 looking at the bbs in the region.
6344 * graphite.h (sese): Add region_basic_blocks pointer set to
6345 structure and initialize at the time of defining new scop.
6347 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
6349 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
6350 (find_params_in_bb): Do not free data refs.
6351 (free_graphite_bb): Add FIXME on disabled free_data_refs.
6353 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6355 * gcc.dg/graphite/scop-16.c: Test only scop specific info.
6356 * gcc.dg/graphite/scop-17.c: Same.
6357 * gcc.dg/graphite/block-5.c: New.
6358 * gcc.dg/graphite/block-6.c: New.
6359 * gcc.dg/graphite/pr37485.c: Clean dump file after.
6360 * gcc.dg/graphite/pr37684.c: Same.
6361 * gcc.dg/graphite/block-2.c: Same.
6363 * graphite.c (struct ivtype_map_elt): New.
6364 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
6365 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
6366 gcc_type_for_cloog_iv): New.
6367 (loop_iv_stack_patch_for_consts): Use the type of the induction
6368 variable from the original loop, except for the automatically
6369 generated loops, i.e., in the case of a strip-mined loop, in
6370 which case there is no original loop: in that case just use
6372 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
6373 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
6374 (clast_name_to_gcc): Accept params to be NULL.
6375 (clast_to_gcc_expression): Take an extra parameter for the type.
6376 Convert to that type all the expressions built by this function.
6377 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
6378 (graphite_translate_clast_equation): Compute the type of the
6379 clast_equation before translating its LHS and RHS.
6380 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
6381 (graphite_create_new_loop): Compute the type of the induction
6382 variable before translating the lower and upper bounds and before
6383 creating the induction variable.
6384 (rename_variables_from_edge, rename_phis_end_scop): New.
6385 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
6386 (sese_add_exit_phis_edge): Do not use integer_zero_node.
6387 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
6388 compute_cloog_iv_types): New.
6389 (gloog): Call compute_cloog_iv_types before starting the
6390 translation of the clast.
6392 * graphite.h (struct graphite_bb): New field cloog_iv_types.
6393 (GBB_CLOOG_IV_TYPES): New.
6394 (debug_ivtype_map): Declared.
6395 (oldiv_for_loop): New.
6397 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
6400 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
6401 (param_index): Assert if parameter is not know after parameter
6403 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
6404 (find_scop_parameters): Mark, that we have finished parameter
6406 (graphite_transform_loops): Move condition detection before parameter
6408 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
6409 * gfortran.dg/graphite/pr38459.f90: New.
6411 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
6413 * graphite.c (graphite_transform_loops): Always call find_transform ()
6414 in ENABLE_CHECKING. So we test these code paths, even if we do not
6417 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
6419 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
6420 (print_scop): Ditto.
6422 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
6425 Fix gfortran.dg/graphite/id-3.f90.
6426 * graphite.c (scopdet_basic_block_info): Fix bug that found some
6427 regions more than once.
6429 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6431 Fix gfortran.dg/graphite/id-4.f90.
6432 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
6435 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6437 Fix gfortran.dg/graphite/id-1.f90.
6438 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
6439 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
6440 (max_precision_type): New.
6441 (value_clast): Removed.
6442 (clast_to_gcc_expression): Be more careful to types of expressions.
6443 Use max_precision_type and update use of gmp_cst_to_tree.
6444 (graphite_translate_clast_equation): Use max_precision_type.
6445 (graphite_create_guard_cond_expr): Do not use integer_type_node,
6446 use the type of the condition.
6447 (graphite_create_new_loop): Do not use integer_type_node, use the
6448 max_precision_type of lb and ub.
6450 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6452 * graphite.c (build_scops_1): Initialize open_scop.exit
6455 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
6457 * gcc.dg/graphite/pr38084.c: New.
6458 * gfortran.dg/graphite/id-1.f90: New.
6459 * gfortran.dg/graphite/id-2.f90: New.
6460 * gfortran.dg/graphite/id-3.f90: New.
6461 * gfortran.dg/graphite/id-4.f90: New.
6462 * gfortran.dg/graphite/pr37857.f90: New.
6464 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
6465 Jan Sjodin <jan.sjodin@amd.com>
6466 Harsha Jagasia <harsha.jagasia@amd.com>
6478 * gcc.dg/graphite/pr38073.c: New.
6479 * gcc.dg/graphite/pr37928.c: New.
6480 * gcc.dg/graphite/pr37883.c: New.
6481 * gcc.dg/graphite/pr38125.c: New.
6482 * gfortran.dg/graphite/pr38083.f90: New.
6483 * gfortran.dg/graphite/pr37852.f90: New.
6484 * gfortran.dg/graphite/pr37980.f90: New.
6486 * gcc.dg/graphite/scop-18.c: Remove reduction, test for
6487 the number of detected scops. Copy exact same test for loop
6489 * gcc.dg/graphite/block-1.c: Fix the number of expected
6490 loops to be blocked as reductions are not handled.
6491 * gcc.dg/graphite/block-4.c: ...here. New.
6493 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
6494 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
6496 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
6497 * Makefile.in (graphite.o): Depend on value-prof.h.
6498 (graphite.o-warn): Removed -Wno-error.
6499 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
6500 to be a NULL pointer. Call update_stmt. Return the newly created
6501 cannonical induction variable.
6503 * graphite.h (debug_rename_map): Declared. Fix some comments.
6505 * graphite.c: Reimplement the code generation from graphite to gimple.
6506 Include value-prof.h.
6507 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
6508 (get_old_iv_from_ssa_name): Removed.
6509 (graphite_stmt_p): New.
6510 (new_graphite_bb): Test for useful statements before building a
6511 graphite statement for the basic block.
6512 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
6513 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
6515 (recompute_all_dominators, graphite_verify,
6516 nb_reductions_in_loop, graphite_loop_normal_form): New.
6517 (scop_record_loop): Call graphite_loop_normal_form.
6518 (build_scop_loop_nests): Iterate over all the blocks of the
6519 function instead of relying on the incomplete information from
6520 SCOP_BBS. Return the success of the operation.
6521 (find_params_in_bb): Use the data from GBB_DATA_REFS.
6522 (add_bb_domains): Removed.
6523 (build_loop_iteration_domains): Don't call add_bb_domains.
6524 Add the iteration domain only to the basic blocks that have been
6525 translated to graphite.
6526 (build_scop_conditions_1): Add constraints only if the basic
6527 block have been translated to graphite.
6528 (build_scop_data_accesses): Completely disabled until data
6529 dependence is correctly implemented.
6530 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
6531 (remove_all_edges_1, remove_all_edges): Removed.
6532 (get_new_name_from_old_name): New.
6533 (graphite_rename_variables_in_stmt): Renamed
6534 rename_variables_in_stmt. Call get_new_name_from_old_name.
6535 Use replace_exp and update_stmt.
6536 (is_old_iv): Renamed is_iv.
6537 (expand_scalar_variables_stmt): Extra parameter for renaming map.
6538 Use replace_exp and update_stmt.
6539 (expand_scalar_variables_expr): Same. Use the map to get the
6540 new names for the renaming of induction variables and for the
6541 renaming of variables after a basic block has been copied.
6542 (expand_scalar_variables): Same.
6543 (graphite_rename_variables): Renamed rename_variables.
6544 (move_phi_nodes): Removed.
6545 (get_false_edge_from_guard_bb): New.
6546 (build_iv_mapping): Do not insert the induction variable of a
6547 loop in the renaming iv map if the basic block does not belong
6549 (register_old_new_names, graphite_copy_stmts_from_block,
6550 copy_bb_and_scalar_dependences): New.
6551 (translate_clast): Heavily reimplemented: copy basic blocks,
6552 do not move them. Finally, in call cleanup_tree_cfg in gloog.
6553 At each translation step call graphite_verify ensuring the
6554 consistency of the SSA, loops and dominators information.
6555 (collect_virtual_phis, find_vdef_for_var_in_bb,
6556 find_vdef_for_var_1, find_vdef_for_var,
6557 patch_phis_for_virtual_defs): Removed huge hack.
6558 (mark_old_loops, remove_dead_loops, skip_phi_defs,
6559 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
6560 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
6561 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
6562 if_region_get_condition_block, if_region_set_false_region,
6563 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
6564 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
6565 sese_add_exit_phis_edge, sese_add_exit_phis_var,
6566 rewrite_into_sese_closed_ssa): New.
6567 (gloog): Remove dead code. Early return if code cannot be
6568 generated. Call cleanup_tree_cfg once the scop has been code
6570 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
6571 block loops with less than two loops.
6572 (graphite_apply_transformations): Remove the call to
6573 scop_remove_ignoreable_gbbs.
6574 (limit_scops): When build_scop_loop_nests fails, continue on
6575 the next scop. Fix open_scop.entry.
6576 (graphite_transform_loops): Call recompute_all_dominators: force the
6577 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
6578 Call initialize_original_copy_tables and free_original_copy_tables
6579 to be able to copy basic blocks during code generation.
6580 When build_scop_loop_nests fails, continue on next scop.
6581 (value_clast): New union.
6582 (clast_to_gcc_expression): Fix type cast warning.
6584 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
6586 * Merge from mainline (r140838:141727).
6588 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6592 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
6594 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6598 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
6599 exits and conditions.
6600 * gcc.dg/graphite/pr37943.c: New.
6602 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6605 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
6607 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6609 * doc/invoke.texi: Fix spaces.
6611 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
6613 PR tree-optimization/37891
6614 Reverted last commit.
6615 * graphite.c (create_single_entry_edge): Set
6616 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6618 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
6619 Mitul Thakkar <mitul.thakkar@amd.com>
6621 * graphite.c (create_single_entry_edge): Set
6622 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6624 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
6626 * doc/invoke.texi: Add -fgraphite-identity.
6627 * graphite.c (graphite_apply_transformations): Check for
6628 -fgraphite-identity.
6629 * toplev.c (process_options): Add flag_graphite_identity.
6630 * tree-ssa-loop.c: Add flag_graphite_identity.
6632 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6634 Undo changes from 2008-10-02:
6635 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6636 operand type when copying the operand to a variable of different type.
6637 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6638 with the IV name after increment.
6640 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6641 Harsha Jagasia <harsha.jagasia@amd.com>
6643 PR tree-optimization/37828
6644 * gcc.dg/graphite/pr37828.c: New.
6645 * graphite.c (graphite_trans_loop_block): Do not loop block
6646 single nested loops.
6648 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
6649 Sebastian Pop <sebastian.pop@amd.com>
6651 * graphite.c (struct rename_map_elt, new_rename_map_elt,
6652 rename_map_elt_info, eq_rename_map_elts): New.
6653 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
6654 (expand_scalar_variables_expr): Change parameters.
6655 (expand_scalar_variables_stmt): Same.
6656 (expand_scalar_variables): Same.
6657 (graphite_rename_ivs): Rename graphite_rename_variables.
6658 (build_iv_mapping): New.
6659 (translate_clast): Call build_iv_mapping.
6660 * graphite.h (gbb_p): New name.
6662 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
6664 PR tree-optimization/37684
6665 * gcc.dg/graphite/pr37684.c: New.
6666 * graphite.c (exclude_component_ref): New.
6667 (is_simple_operand): Call exclude_component_ref.
6669 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
6670 Harsha Jagasia <harsha.jagasia@amd.com>
6672 PR tree-optimization/37485
6673 * gcc.dg/graphite/block-2.c: New
6674 * graphite.c (gmp_cst_to_tree): Moved.
6675 (iv_stack_entry_is_constant): New.
6676 (iv_stack_entry_is_iv): New.
6677 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
6678 (loop_iv_stack_insert_constant): New.
6679 (loop_iv_stack_pop): Use new datatpype.
6680 (loop_iv_stack_get_iv): Same.
6681 (loop_iv_stack_get_iv_from_name): Same.
6682 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
6683 (loop_iv_stack_patch_for_consts): New.
6684 (loop_iv_stack_remove_constants): New.
6685 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
6686 (translate_clast): Call loop_iv_stack_patch_for_consts and
6687 loop_iv_stack_remove_constants.
6688 (gloog): Use new datatype. Redirect construction edge to end
6689 block to avoid accidental deletion.
6690 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
6692 (union iv_stack_entry_data): New. Data in iv stack entry.
6693 (struct iv_stack_entry): New. Datatype for iv stack entries.
6695 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6697 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6698 operand type when copying the operand to a variable of different type.
6700 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6702 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6703 with the IV name after increment.
6705 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6707 * Merge from mainline (r140164:140838).
6709 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6711 * graphite-data-ref.c: New.
6712 * graphite.c (print_scop): Also dump the dependence graph.
6713 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
6714 (new_scop): Initialize SCOP_DEP_GRAPH.
6715 (build_scop_dynamic_schedules): New.
6716 (build_access_matrix_with_af): Fixed column numbering.
6717 (graphite_transform_loops): Call build_scop_dynamic_schedules.
6718 * graphite.h: Add ifndef/define guards against multiple inclusion.
6719 (struct scop): Add dep_graph field.
6720 (SCOP_DEP_GRAPH): Defined.
6721 (ref_nb_loops): Fixed and moved to other position.
6722 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
6723 (nb_loops_around_loop_in_scop): New.
6724 (graphite_dump_dependence_graph): Declared.
6725 (graphite_build_rdg_all_levels): Declared.
6726 (graphite_test_dependence): Declared.
6727 * Makefile.in (graphite-data-ref.o): New target.
6729 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
6731 * Merge from mainline (139870:140164).
6733 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6735 * Merge from mainline (138275:139870).
6736 * gcc.dg/graphite/scop-matmult.c: XFailed as one of
6737 the commits from trunk broke the niter detection.
6739 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6741 * graphite.c: Add more documentation. Fix formatting.
6742 (debug_loop_vec, debug_oldivs, loop_iv_stack,
6743 loop_iv_stack_debug): Moved...
6744 (schedule_to_scattering): Move before use.
6745 (dot_all_scops): Include in "#if 0" the code for system
6748 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
6749 loop_iv_stack_debug): ...here.
6751 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
6753 * tree-phinodes.c (make_phi_node): Extern.
6754 (add_phi_node_to_bb): New.
6755 (create_phi_node): Call add_phi_node_to_bb.
6756 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
6757 (remove_statement): Handle case where stored phi was updated
6758 and is no longer the same.
6759 * graphite.c (is_parameter): New.
6761 (expand_scalar_variables_expr): New.
6762 (expand_scalar_variables_stmt): New.
6763 (expand_scalar_variables): New.
6764 (move_phi_nodes): Create new phi instead of moving old one.
6765 (translate_clast): Call expand_scalar_variables.
6766 (find_vdef_for_var_in_bb): Also scan regular definitions.
6767 (skip_phi_defs): New.
6768 (collect_scop_exit_phi_args): New.
6769 (patch_scop_exit_phi_args): New.
6770 (gloog): Patch phis after scop.
6771 * tree-flow.h: (add_phi_node_to_bb): Declared.
6772 (make_phi_node): Declared.
6774 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6776 * graphite.c (end_scop): Split the entry of the scop when it
6777 is the header of the loop in which the scop is ending.
6778 (build_scops_1, limit_scops): Update uses of end_scop.
6780 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6782 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
6783 SCOP_ENTRY or SCOP_EXIT.
6785 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6787 * graphite.c (get_construction_edge): Removed.
6788 (gloog): Construction edge is the scop entry edge.
6790 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6792 * graphite.c (can_generate_for_scop): Removed.
6793 (gloog): Do not call it.
6795 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6797 * graphite.c (new_scop): Entry of a scop is an edge.
6798 Initialize SESE region.
6799 (free_scop): Free SESE region.
6800 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
6801 (split_difficult_bb): New, split from end_scop.
6802 (end_scop): Exit of a scop is an edge.
6803 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
6804 not automatically updated and thus is always wrong.
6805 * graphite.h (struct sese): New.
6808 (struct scop): New field for a SESE region. Remove entry, exit.
6809 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
6810 semantics as before. Moved comment around.
6812 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6813 Sebastian Pop <sebastian.pop@amd.com>
6815 * graphite.c (graphite_transform_loops): Always enable gloog
6816 and find_transform when ENABLE_CHECKING.
6818 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6820 * graphite.c (graphite_transform_loops): Move pretty printer
6821 of SCOPs before doing any transform. Remove call to print_scops
6822 and dot_all_scops_1.
6824 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6826 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
6827 (print_graphite_bb): Same.
6829 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6831 * graphite.c (dot_all_scops_1): Cleanup.
6832 (move_scops): Fix comment.
6834 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6836 * graphite.c (build_scop_bbs): Revert commit 139355:
6838 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6839 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6841 * graphite.c (build_scop_bbs): Factor up code.
6843 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6845 * graphite.c (gloog): Update dominator info.
6847 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6849 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
6851 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6853 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
6855 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
6856 (translate_clast): Correct formatting.
6857 * graphite.h (struct num_map): Removed.
6858 (struct graphite_bb): Remove num_map field.
6859 (GBB_INDEX_TO_NUM_MAP): Removed.
6861 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6863 * graphite.c (build_access_matrix_with_af): Fix comments.
6864 (build_scop_data_accesses): Same.
6866 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6868 * graphite.c (build_scop_data_accesses): Don't construct
6869 access matrices. Add a FIXME and an assert condition that
6870 should pass when the access matrices will be needed.
6872 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6874 * tree-data-ref.c (stmt_simple_memref_p): Don't call
6876 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
6877 Moved close by free_graphite_bb.
6878 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
6879 (new_scop): Move close by free_scop.
6880 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
6882 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
6884 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
6885 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
6886 instead of recursive call.
6887 (graphite_translate_clast_equation): New.
6888 (graphite_create_guard_cond_expr): New.
6889 (graphite_create_new_guard): New.
6890 (get_stack_index_from_iv): Removed.
6891 (graphite_rename_ivs_stmt): Use gbb_loop_index.
6892 (get_true_edge_from_guard_bb): New.
6893 (translate_clast): Handle stmt_guard in clast.
6894 (get_construction_edge): Allow construction edge detection for
6895 a scope entry with multiple predecessors if one predecessor is
6896 the immediate dominator of scope entry.
6897 (can_generate_code_stmt): Enable code generation for clast_guard.
6898 (gloog): Use correct context loop. Removed check for post dominators.
6899 * cfgloop.h (create_empty_if_region_on_edge): Declared.
6901 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6903 * graphite.c (remove_dead_loops): Document better which
6906 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6908 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
6910 (graphite.o): Also depends on pointer-set.h.
6912 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6914 * graphite.c (scop_record_loop): Fix compile warning.
6916 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
6917 Sebastian Pop <sebastian.pop@amd.com>
6919 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
6921 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6923 * graphite.c (build_graphite_bb): Initialize bb->aux to
6924 point to the graphite_bb_p.
6925 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
6927 (add_bb_domains): Does not use the scop parameter.
6928 (graphite_transform_loops): Clean bb->aux at the end.
6930 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6931 Sebastian Pop <sebastian.pop@amd.com>
6933 * lib/target-supports.exp
6934 (check_effective_target_fgraphite): New.
6936 * gcc.dg/graphite/graphite.exp: Early exit when
6937 check_effective_target_fgraphite returns false.
6938 Set dg-do-what-default to compile.
6939 (scan-graphite-dump-times): Removed.
6940 * gfortran.dg/graphite/graphite.exp: Same.
6942 * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
6943 Use scan-tree-dump-times instead of scan-graphite-dump-times.
6944 * gcc.dg/graphite/scop-1.c: Same.
6945 * gcc.dg/graphite/scop-2.c: Same.
6946 * gcc.dg/graphite/scop-3.c: Same.
6947 * gcc.dg/graphite/scop-4.c: Same.
6948 * gcc.dg/graphite/scop-5.c: Same.
6949 * gcc.dg/graphite/scop-6.c: Same.
6950 * gcc.dg/graphite/scop-7.c: Same.
6951 * gcc.dg/graphite/scop-8.c: Same.
6952 * gcc.dg/graphite/scop-9.c: Same.
6953 * gcc.dg/graphite/scop-10.c: Same.
6954 * gcc.dg/graphite/scop-11.c: Same.
6955 * gcc.dg/graphite/scop-12.c: Same.
6956 * gcc.dg/graphite/scop-13.c: Same.
6957 * gcc.dg/graphite/scop-matmult.c: Same.
6958 * gcc.dg/graphite/scop-14.c: Same.
6959 * gcc.dg/graphite/scop-15.c: Same.
6960 * gcc.dg/graphite/block-0.c: Same.
6961 * gcc.dg/graphite/scop-16.c: Same.
6962 * gcc.dg/graphite/block-1.c: Same.
6963 * gcc.dg/graphite/scop-17.c: Same.
6964 * gcc.dg/graphite/scop-18.c: Same.
6965 * gfortran.dg/graphite/block-1.f90: Same.
6966 * gfortran.dg/graphite/scop-1.f: Same.
6967 * gfortran.dg/graphite/block-2.f: Same.
6969 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6971 * graphite.c: Fix some XXX comments.
6972 (build_scop_dynamic_schedules): Removed.
6974 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6976 * graphite.h (scop_max_loop_depth): Moved...
6977 * graphite.c (scop_max_loop_depth): ...here.
6978 (remove_all_edges_1): New.
6979 (remove_all_edges): Factored code.
6980 (remove_cond_exprs): Check only the last statement for
6981 a GIMPLE_COND expression.
6983 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6985 * graphite.c (scan_tree_for_params): Early return when the
6986 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
6987 (find_scop_parameters): Factor out code.
6988 (graphite_trans_bb_strip_mine): Remove dead code.
6990 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6992 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
6993 graphite_trans_bb_move_loop): Factor asserts.
6994 (gloog): Perform sanity checks only for ENABLE_CHECKING.
6995 Do not call calculate_dominance_info and estimate_bb_frequencies.
6997 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
6999 * graphite.c (create_loops_mapping, free_loops_mapping,
7000 create_loops_mapping_num, debug_loop_mapping_1,
7001 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
7002 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
7003 graphite_loops_mapping_add_child_num,
7004 graphite_loops_mapping_insert_child,
7005 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
7006 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
7007 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
7008 create_num_from_index, get_num_from_index,
7009 swap_loop_mapped_depth): Removed.
7010 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
7011 (free_scop): Do not call free_loops_mapping.
7012 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
7013 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
7014 get_loop_mapped_depth.
7015 (graphite_trans_bb_move_loop): Do not update the loop mapping.
7016 (graphite_trans_bb_strip_mine): Same.
7017 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
7018 (struct scop): Remove field loops_mapping.
7020 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7021 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7023 * graphite.c (scop_record_loop): Factor out one level of the
7024 condition by early return.
7025 (build_scop_loop_nests): Format following FSF coding style.
7026 (build_scop_dynamic_schedules): Factor out code.
7027 (scopdet_bb_info): Reindent. Default case should not be reachable.
7029 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7030 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7032 * graphite.c (loop_affine_expr): Check for DECL_P or struct
7033 assignments that are not handled as simple operands for now.
7035 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7036 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7038 * graphite.c (build_scop_bbs): Factor up code.
7040 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7041 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7043 * graphite.c (stmt_simple_for_scop_p): Factor code out
7045 (enum gbb_type): New. Group all the GBB_* types under it.
7046 (is_loop_exit): Moved...
7047 (end_scop): Enable BB spliting.
7048 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
7049 * cfgloop.h (is_loop_exit): Declared.
7051 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7053 * doc/invoke.texi: Remove strides from examples containing
7054 DO loops when the strides are equal to 1.
7056 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
7057 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7059 * graphite.c (graphite_trans_scop_block): Or the result with
7060 the result from graphite_trans_loop_block.
7061 * gcc.dg/graphite/block-1.c: New.
7062 * gfortran.dg/graphite/block-1.f90: New.
7063 * gfortran.dg/graphite/block-2.f: New.
7065 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7067 * graphite.c (graphite_transform_loops): Call cloog_initialize
7070 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7072 * tree-data-ref.c) (stmt_simple_memref_p): New.
7073 * tree-data-ref.h (stmt_simple_memref_p): Declared.
7074 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
7075 (is_simple_operand): Call stmt_simple_memref_p.
7077 * gcc.dg/graphite/scop-matmult.c: Updated for not
7078 using pointer arithmetic, as this is optimized by PRE and
7079 makes the code too difficult to analyze.
7081 * gcc.dg/graphite/scop-18.c: Same.
7083 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7085 * gdbinit.in (pgg): New.
7087 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7089 * graphite.c (graphite_trans_loop_block): Fix warning.
7091 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7093 * graphite.c (graphite_trans_loop_block): Fix my merge error.
7095 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7097 * graphite.c (graphite_trans_bb_block): Remove check for
7098 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
7099 Check if loop blocking is profitable for every loop, before applying
7101 (graphite_apply_transformations): Call graphite_trans_bb_block only,
7102 if flag_loop_block is set.
7104 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7106 * graphite.c: Add some more documentation for the loop
7109 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7111 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
7112 * graphite.c: Format on less than 80 columns.
7115 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7117 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
7119 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7121 * doc/invoke.texi (floop-block, floop-strip-mine,
7122 floop-interchange): Update documentation with examples.
7124 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
7126 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
7128 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
7130 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
7132 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
7133 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
7134 * tree-scalar-evolution.c: Revert useless changes.
7135 * tree-phinodes.c: Same.
7138 * tree-vectorizer.h: Same.
7139 * tree-flow.h: Same.
7141 * common.opt (fgraphite): Update documentation.
7143 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
7145 * doc/invoke.texi (-floop-block, -floop-strip-mine,
7146 -floop-interchange): Add more text for explaining what each of these
7148 * tree-into-ssa.c (gimple_vec): Moved to...
7149 * graphite.c: Include gimple.h.
7150 (gimple_vec): Moved to...
7151 (del_loop_to_cloog_loop): Removed.
7152 (loop_affine_expr): Do not call create_data_ref when the
7153 operand is a constant.
7154 (new_scop): Use free instead of del_loop_to_cloog_loop.
7155 * Makefile.in (graphite.o): Depend on GIMPLE_H.
7156 * gimple.h (gimple_vec): ... here.
7158 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7160 * graphite.c (scopdet_bb_info): Only allow loops with known number of
7162 (build_loop_iteration_domains): Fail, if latch executions unknown.
7164 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7166 * graphite.c (add_conditions_to_domain): New.
7167 (build_scop_conditions_1): Call add_conditions_to_domain.
7168 (set_cloog_options): Allow to disable optimizations.
7170 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7172 * graphite.c (find_params_in_bb): Look for parameters in conditions.
7173 Do not use walk_dominator_tree.
7174 (find_scop_parameters): Do not use walk_dominator_tree.
7176 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7178 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
7179 (idx_record_params): Adapt.
7180 * graphite.h (scop_gimple_loop_depth): New.
7182 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7184 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
7185 (scan_tree_for_params): Remove value_init.
7186 (build_scop_context): Remove value_init.
7187 (build_loop_iteration_domains): Remove value_init.
7188 (schedule_to_scattering): Remove value_init.
7189 (graphite_trans_bb_strip_mine): Remove value_init.
7191 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7193 * gcc/graphite.c (limit_scops): New.
7194 (graphite_transform_loops): Add limit SCoPs.
7195 * gcc.dg/graphite/scop-0.c: Update number of SCoPs.
7196 * gcc.dg/graphite/scop-1.c: Update number of SCoPs.
7197 * gcc.dg/graphite/scop-10.c: Update number of SCoPs.
7198 * gcc.dg/graphite/scop-11.c: Update number of SCoPs.
7199 * gcc.dg/graphite/scop-12.c: Update number of SCoPs.
7200 * gcc.dg/graphite/scop-13.c: Update number of SCoPs.
7201 * gcc.dg/graphite/scop-14.c: Update number of SCoPs.
7202 * gcc.dg/graphite/scop-15.c: Update number of SCoPs.
7203 * gcc.dg/graphite/scop-16.c: Update number of SCoPs.
7204 Change loop numbers.
7205 * gcc.dg/graphite/scop-17.c: Update number of SCoPs.
7206 Change loop numbers.
7207 * gcc.dg/graphite/scop-18.c: Update number of SCoPs.
7208 * gcc.dg/graphite/scop-2.c: Update number of SCoPs.
7209 * gcc.dg/graphite/scop-3.c: Update number of SCoPs.
7210 * gcc.dg/graphite/scop-4.c: Update number of SCoPs.
7211 * gcc.dg/graphite/scop-5.c: Update number of SCoPs.
7212 * gcc.dg/graphite/scop-6.c: Update number of SCoPs.
7213 * gcc.dg/graphite/scop-7.c: Update number of SCoPs.
7214 * gcc.dg/graphite/scop-8.c: Update number of SCoPs.
7215 * gcc.dg/graphite/scop-9.c: Update number of SCoPs.
7216 * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
7218 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7220 * graphite.c (graphite_transform_loops): Call always find_transform.
7222 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
7224 * graphite.c (free_loops_mapping): New.
7225 (stmt_simple_for_scop_p): Fix typo.
7226 (stmt_simple_for_scop_p): Fix tuples functions, that
7228 (free_graphite_bb): Fix some memleaks.
7229 (free_scop): Fix some memleaks.
7230 (scopdet_bb_info): Do not forget some tmp SCoPs.
7231 (find_params_in_bb): Fix some memleaks.
7232 (clast_to_gcc_expression): Fix warning.
7234 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
7236 * gcc.dg/graphite/scop-16.c: Fix for 32bit.
7237 * gcc.dg/graphite/scop-17.c: Fix for 32bit.
7239 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
7241 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
7242 Move code ifdef-ed HAVE_cloog...
7243 * graphite.c: Include toplev.h.
7245 * Makefile.in (OBJS-common): Always build graphite.o.
7246 (BACKEND): Remove @GRAPHITE@.
7247 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
7248 (graphite.o): Depend on TOPLEV_H.
7250 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
7252 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
7253 Remove typo left from polylib to ppl conversion.
7254 * graphite.c (graphite_transforms): Use sorry instead of fatal.
7256 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
7258 * toplev.c (process_options): Move the graphite loop optimization
7260 * tree-ssa-loop.c (graphite_transforms): ... here.
7261 When not configured with CLooG, print to dump_file that
7262 Graphite transforms were not performed.
7263 * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
7265 * gcc.dg/graphite/*.c: Updated all testcases to use
7266 scan-graphite-dump-times.
7268 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
7270 * graphite.c (dot_scop, dot_all_scops): Do not call system.
7271 Do not open /tmp/scop.dot and /tmp/allscops.dot.
7273 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
7274 Jan Sjodin <jan.sjodin@amd.com>
7276 * configure: Regenerated.
7277 * omp-low.c (expand_omp_sections): Remove now unused code.
7278 * config.in (HAVE_polylib): Removed.
7279 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
7280 (PPLLIBS, PPLINC): Added.
7281 * graphite.c: Replace unsigned with int wherever possible.
7282 Don't access Cloog's data structures, but use accessor functions.
7283 Clast's stmt->type is now implemented as a vtable: change the
7284 switches of stmt->type into ifs.
7285 (polylib/polylibgmp.h): Don't include.
7286 (initialize_dependence_polyhedron,
7287 initialize_data_dependence_polyhedron, is_empty_polyhedron,
7288 statement_precedes_p, test_dependence, build_rdg_all_levels,
7289 dump_dependence_graph): Removed until this code is cleaned up
7291 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
7292 (POLYLIBINC): Renamed PPLINC.
7294 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
7295 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7296 Jan Sjodin <jan.sjodin@amd.com>
7298 Finish the merge and tuplification of graphite.
7300 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
7301 Jan Sjodin <jan.sjodin@amd.com>
7303 Partial merge from mainline (138072:138275).
7304 * graphite.c still has to be tuplified.
7306 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
7308 * graphite.c (graphite_loops_mapping_max_loop_num): New.
7309 (create_num_from_index): New.
7310 (get_num_from_index): Also pass in the graphite BB.
7311 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
7312 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
7313 (graphite_trans_bb_strip_mine): Call create_num_from_index.
7314 (is_interchange_valid): Return false when failing.
7315 * graphite.h (struct num_map): New.
7316 (struct graphite_bb): New field num_map.
7317 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
7319 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
7321 * graphite.c (dump_gbb_conditions): Print also conditions like
7322 "if (a)". Remove dublicated code and use print_generic_expr ().
7323 (stmt_simple_for_scop_p): Only allow conditions we can handle
7326 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
7328 * graphite.h (struct scop): Removed new_ivs field.
7329 (SCOP_NEWIVS): Deleted.
7330 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
7331 clast_to_gcc_expression, graphite_create_new_loop):
7332 Removed use of new_ivs.
7334 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
7336 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
7337 create_loops_mapping_num, debug_loop_mapping_1): New.
7338 (debug_loop_mapping): Call debug_loop_mapping_1.
7339 (get_loop_mapping_for_num,
7340 graphite_loops_mapping_add_child,
7341 graphite_loops_mapping_add_child_num,
7342 graphite_loops_mapping_insert_child,
7343 graphite_loops_mapping_parent,
7344 split_loop_mapped_depth_for_num,
7345 loop_mapped_depth_split_loop): New.
7346 (increment_loop_mapped_depths): Removed.
7347 (swap_loop_mapped_depth_for_num): Reimplemented.
7348 (new_scop): Call create_loops_mapping.
7349 (scop_record_loop): Call graphite_loops_mapping_insert_child.
7350 (translate_clast): Pass the old loop father in parameter, and pass
7351 it to get_old_iv_from_ssa_name.
7352 (remove_edges_around_useless_blocks, can_generate_code_stmt,
7353 can_generate_code, can_generate_for_scop): New.
7354 (graphite_trans_bb_block): Returns false when it fails to transform.
7355 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
7357 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7359 Reverted all the changes related to the streamization and
7361 These changes are now tracked in the streamization branch.
7363 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7364 Jan Sjodin <jan.sjodin@amd.com>
7366 * graphite.c (gbb_compare): Correctly constify.
7367 (gbb_can_be_ignored): Indent.
7368 (graphite_trans_scop_swap_1and2): Add legality check.
7371 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7373 Remove fallouts from "Reverted the Condate changes".
7374 * tree.h: Remove unused decl.
7375 * gcc.dg/tree-checker: Same.
7376 * timevar.def: Remove counter.
7378 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
7380 * Merge from mainline (135673:138072).
7382 Reverted the MIRO changes (from 2008-04-05) that are now
7383 tracked in the miro branch.
7384 * tree-bounds.c: Removed.
7385 * tree-bounds.h: Removed.
7387 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
7388 are now tracked in the condate branch.
7389 * tree-check.c: Removed.
7390 * tree-match.c: Removed.
7391 * condate.y: Removed.
7393 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7395 * common.opt: New user flag -floop-block, -floop-strip-mine
7396 and -floop-interchange.
7397 * toplev.c (process_options): Enable -fgraphite pass if any one of the
7398 graphite loop optimization flags is turned on.
7399 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
7400 flag_loop_strip_mine and flag_loop_interchange checks before
7402 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
7403 -floop-strip-mine and -floop-interchange.
7404 * gcc.dg/graphite/block-0.c: Add -floop-block and remove
7406 * gcc.dg/graphite/scop-16.c: Ditto.
7407 * gcc.dg/graphite/scop-17.c: Ditto.
7408 * gcc.dg/graphite/scop-18.c: Ditto.
7410 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
7411 Sebastian Pop <sebastian.pop@amd.com>
7413 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
7414 (create_empty_loop_on_edge): More fixes.
7415 * tree-phinodes.c (resize_phi_node): Extern.
7416 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
7417 * cfghooks.c (update_dominator_information): New split from
7419 * tree-vectorizer.c (rename_variables_in_bb): Extern.
7420 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
7421 successor of the function entry block.
7423 * graphite.c: Include pointer-set.h.
7424 (debug_loop_mapping, increment_loop_mapped_depths,
7425 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
7426 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
7427 swap_loop_mapped_depth_for_num, get_num_from_index,
7428 swap_loop_mapped_depth, loop_iv_stack_debug,
7429 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
7430 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
7431 get_old_iv_from_ssa_name): New.
7432 (new_scop): Initialize SCOP_LOOPS_MAPPING.
7433 (free_scop): Free SCOP_LOOPS_MAPPING.
7434 (scop_record_loop): Record old ivs.
7435 (create_var_name): Removed.
7436 (initialize_cloog_names): Allocate double space in case strip mine
7437 applies to all loops once.
7438 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
7439 (clast_to_gcc_expression): Same. Implement more clast to gimple
7441 (graphite_create_new_loop): Pass in ivstack.
7442 (remove_all_edges): Pass in the construction_edge.
7443 (graphite_remove_iv): Removed.
7444 (graphite_rename_ivs, graphite_rename_ivs_stmt,
7445 remove_cond_exprs): Rewritten.
7446 (move_phi_nodes): New.
7447 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
7448 (translate_clast): Pass in ivstack. Rewrite some cases.
7449 (set_cloog_options, debug_clast_stmt): New.
7450 (find_transform): Use set_cloog_options.
7451 (outermost_loop_layer): Removed.
7452 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
7453 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
7454 mark_old_loops, remove_dead_loops): New.
7456 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
7457 (const_column_index, get_first_matching_sign_row_index,
7458 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
7459 get_upper_bound): New.
7460 (graphite_trans_bb_strip_mine): Also update the iv map.
7462 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
7463 (struct name_tree): Add a loop field.
7464 (struct scop): Add a graphite_loops_mapping field.
7465 (SCOP_LOOPS_MAPPING): New.
7466 (debug_clast_stmt): Declare.
7467 * lambda.h (find_induction_var_from_exit_cond): Declare.
7468 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
7469 * cfgloop.h (update_dominators_in_loop): Removed declaration.
7470 (create_empty_loop_on_edge): Updated.
7471 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
7472 rename_variables_in_bb): Declare.
7473 * tree-cfg.c (remove_bb): Extern.
7475 * gcc.dg/graphite/block-0.c: New.
7477 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7478 Sebastian Pop <sebastian.pop@amd.com>
7480 * graphite.c (strip_mine_profitable_p): New.
7481 (graphite_trans_bb_block): Disable strip mining if not profitable.
7483 * gcc.dg/graphite/scop-18.c: New.
7484 * gcc.dg/graphite/scop-17.c: Fixed.
7485 * gcc.dg/graphite/scop-16.c: Fixed.
7487 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
7488 Jan Sjodin <jan.sjodin@amd.com>
7489 Sebastian Pop <sebastian.pop@amd.com>
7491 * graphite.c (is_interchange_valid): New.
7492 (graphite_trans_bb_block): Check loop nest of basic block for legality
7495 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
7496 outer_most_loop, gbb_outer_most_loop_index): New.
7498 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
7499 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
7500 * gcc.dg/graphite/scop-16.c: New.
7501 * gcc.dg/graphite/scop-17.c: New.
7503 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7505 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
7506 (graphite_trans_scop_block): Ignore SCoPs without bbs.
7508 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7510 * graphite.c (new_scop): Initialize SCOP_EXIT.
7511 (scopdet_info): Add.
7512 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
7513 (build_scops_1): Cleanup, bugfixes.
7514 (build_scops): Cleanup.
7516 * gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
7517 * gcc.dg/graphite/scop-15.c: Add SCoP numbers.
7519 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7521 * gfortran.dg/graphite/scop-1.f: Update to reduced test case.
7523 * gfortran.dg/graphite/graphite.exp: Use
7524 DEFAULT_GRAPHITE_FLAGS.
7526 * gcc.dg/graphite/scop-15.c: Update to reduced test case.
7528 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7530 * graphite.c (scan_tree_for_params): Do not assert any more if
7531 MULT_EXPR parameter is negative.
7533 * gfortran.dg/graphite/scop-1.f: New.
7535 * gfortran.dg/graphite/graphite.exp: New.
7537 * gcc.dg/graphite/scop-15.c: New.
7539 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7541 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
7543 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7545 * graphite.c (graphite_trans_bb_swap_loops): Rename from
7546 graphite_swap_loops.
7547 (graphite_trans_bb_move_loop): New.
7548 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
7549 (graphite_trans_bb_block): New.
7550 (graphite_trans_loop_block): New.
7551 (graphite_trans_scop_swap_1and2): Rename from
7552 graphite_trans_swap_1and2.
7553 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
7554 (graphite_trans_scop_block): New.
7555 (graphite_apply_transformations): Rename from
7556 graphite_transformations.
7558 * gcc.dg/graphite/scop-matmult.c: New.
7560 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7562 * graphite.c (gbb_compare): New.
7563 (graphite_sort_gbbs): New.
7564 (gbb_can_be_ignored): New.
7565 (scop_remove_ignoreable_gbbs): New.
7566 (graphite_transformations): Cleanup and add
7567 scop_remove_ignoreable_gbbs.
7568 * lambda.h (lambda_vector_compare): New.
7570 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
7572 * graphite.c (print_graphite_bb): Correct printing of static schedule.
7573 (graphite_swap_loops): int -> unsigned
7574 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
7575 (graphite_transformations): New.
7576 (graphite_transform_loops): Move to graphite_transformations.
7577 * graphite.h (gbb_nb_loops): Return unsigned.
7579 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
7581 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
7582 the domain matrix. This makes scop-0.c work again.
7584 2008-06-20 Richard Guenther <rguenther@suse.de>
7586 * graphite.h: Adjust copyright to GPLv3.
7587 * graphite.c: Likewise.
7588 (stmt_simple_memref_for_scop_p): Split out from ...
7589 (stmt_simple_for_scop_p): ... here. Fix handling of calls
7591 (get_bb_type): Optimize.
7593 (is_bb_addable): Fix memleak, replace is_pred call with
7595 (build_scops): Use current_loops.
7596 (param_index): Fix memleak.
7598 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7600 * graphite.c: Fix formatting.
7602 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7604 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
7605 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
7606 (create_var_name, save_var_name): Newly defined functions.
7607 (initialize_cloog_names): Part of the code factored out to
7609 (clast_to_gcc_expression): Now handles the case of clast_red_sum
7610 in clast_reduction statement.
7611 (graphite_create_new_loop): Now takes a new parameter
7613 (translate_clast): Now also takes the context_loop and bb_exit
7614 parameters. Rewritten the code so that it creates a gimple code
7615 inside the given context.
7616 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
7617 remove_cond_expr, disconnect_cond_expr,
7618 disconnect_virtual_phi_nodes): Newly defined functions.
7619 * graphite.h (struct scop): added old_ivs vector.
7620 SCOP_OLDIVS: New macro.
7622 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
7624 * cfgloopmanip.c: Add missing function comments, fix formatting.
7626 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7628 * cfgloopmanip.c (update_dominators_in_loop): Defined.
7629 (create_empty_loop_on_edge): Defined.
7630 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
7632 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
7633 (update_dominators_in_loop): Declared as extern
7634 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
7636 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
7638 * graphite.c (print_graphite_bb): Allow changing number of loops
7640 (initialize_cloog_names): Allow changing number of loops.
7641 (build_cloog_prog): Simplify.
7642 (find_transform): Enable cloog option --strides.
7643 (graphite_swap_loops): New.
7644 (graphite_strip_mine_loop): New.
7645 (graphite_trans_swap_1and2): New.
7646 (graphite_trans_strip): New.
7647 (graphite_transform_loops): Add graphite_trans_strip.
7648 * graphite.h (scop_max_loop_depth): New.
7650 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7652 * graphite.c (build_scop_iteration_domain): Remove forgotten
7653 line. (Fixes compile)
7655 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7657 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
7658 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
7659 (build_bb_loops): New.
7660 (graphite_transform_loops): Add build_bb_loops.
7661 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
7663 * graphite.h (graphite_bb): Add loops.
7664 (gbb_nb_loops): New.
7665 (gbb_loop_at_index): New.
7666 (gbb_loop_index): New.
7667 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
7668 using nb_params_in_scop.
7670 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7672 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
7673 (build_scop_canonical_schedules): Build minimized schedule.
7674 (schedule_to_scattering): Adapt to minimized schedule.
7675 * graphite.h (graphite_bb): Add/Update descriptions.
7677 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
7678 Tobias Grosser <grosser@fim.uni-passau.de>
7680 * graphite.c (print_graphite_bb): Add condition printing.
7682 (dump_gbb_conditions): New.
7683 (build_scop_conditions_1): New.
7684 (build_scop_conditions): New.
7685 * graphite.h (graphite_bb): Add conditions.
7687 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7689 * graphite.c (print_graphite_bb):
7690 (free_graphite_bb): New.
7691 (free_scop): Free bbs.
7692 (get_bb_type): Free doms.
7693 (build_scop_context): Free context matrix.
7694 (build_loop_iteration_domains): Remove unused code.
7695 (build_cloog_prog): Free scattering function and blocklist.
7696 (find_transform): Free options.
7698 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
7700 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
7701 Remove unnecessery cloog data structures. Make a copy of the domain
7702 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
7703 unnecessary cloog data structures. Fix memory leaks. Remove insert
7704 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
7706 (build_scop_iteration_domain): Remove unnecessary cloog
7707 data structures. Fix memory leaks.
7708 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
7709 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
7711 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7713 * graphite.c (find_scop_params): Remove initialize_cloog_names.
7715 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7717 * graphite.c (end_scop): Style fix.
7718 (schedule_to_scattering): Style and comment fix.
7720 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7721 * graphite.c (print_graphite_bb): Fix definiton of
7722 schedule_to_scattering.
7723 (initialize_cloog_names): Change nb_scattdims to max loop
7725 (schedule_to_scattering): Take parameter for number of scattering
7727 (build_cloog_prog): Only build as much scattering dimensions as
7730 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7732 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
7733 in polyhedron/aermod.f90.
7735 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
7736 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7737 Harsha Jagasia <harsha.jagasia@amd.com>
7739 * graphite.c (is_bb_addable): Fix segfault.
7741 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
7743 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
7744 with multiple exits and conditional handling in edge cases.
7745 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
7747 * gcc.dg/graphite/scop-14.c: New.
7749 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
7750 Adrien Eliche <aeliche@isty.uvsq.fr>
7752 * graphite.c (is_bb_addable): Add more comments and enhance
7753 readablity of the source code. Fix memory leak.
7754 (is_loop_exit): Fix memory leak.
7756 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7758 * graphite.c (first_loop_in_scop): Deleted.
7759 (setup_cloog_loop): Only walk the loop chain for inner loops.
7760 (build_scop_iteration_domain): Execute setup_cloog_loop for
7761 all loops in the first layer.
7763 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7765 * graphite.c (scan_tree_for_params): Change the way params are
7766 added to be indepenent of the number of loops.
7767 (setup_cloog_loop): Revert to short matrix format. Fix parameter
7769 (build_cloog_prog): Revert to short matrix format.
7771 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7772 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7774 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
7777 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7779 * graphite.c (nb_data_refs_in_scop): New.
7780 (graphite_transform_loops): Print more stats: number of
7781 loops, basic blocks and data references per scop.
7783 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7784 Jan Sjodin <jan.sjodin@amd.com>
7786 * graphite.c (loop_affine_expr, idx_record_params,
7787 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
7788 instead of instantiate_parameters.
7790 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7792 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
7793 add support for parameters, add STATIC_SCHEDULE at the right places,
7796 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7798 * graphite.c (build_scop_loop_nests): Only add the loops, that
7799 are contained completely in the SCoP.
7800 (build_cloog_prog): Disable scattering, until schedule_to_scattering
7801 and the domains are fixed.
7802 (build_scop_canonical_schedules): Add support for bbs not contained
7805 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7807 * graphite.h (scop_contains_loop): Update comments to match
7808 the actual behavior.
7809 (scop_contains_loop): New.
7810 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
7812 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7814 * graphite.c (get_bb_type): On function body, i.e. loop_0,
7815 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
7818 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7819 Tobias Grosser <grosser@fim.uni-passau.de>
7821 * graphite.c (graphite_transform_loops): Early return when
7822 there are no loops in the function.
7824 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7825 Jan Sjodin <jan.sjodin@amd.com>
7827 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
7828 offset of the last loop.
7829 (setup_cloog_loop): Copy the entire outer constraint matrix.
7831 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7832 Jan Sjodin <jan.sjodin@amd.com>
7834 * graphite.c (stmt_in_scop_p, function_parameter_p,
7835 invariant_in_scop_p): Removed.
7836 (scan_tree_for_params): Can be used with no constraint
7837 matrix for gathering parameters.
7838 (idx_record_params): Don't use idx_record_param, instead use
7839 scan_tree_for_params.
7840 (find_scop_parameters): Same.
7841 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
7842 Fix the size of loop domains.
7843 (schedule_to_scattering): Exit when the outer loop is not in scop.
7844 (find_transform): Enable build_cloog_prog.
7846 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7847 Jan Sjodin <jan.sjodin@amd.com>
7849 * graphite.c (schedule_to_scattering): Make scattering domains
7850 uniformly of the same size, as required by CLooG 0.14.0 and before.
7852 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7853 Jan Sjodin <jan.sjodin@amd.com>
7855 * graphite.c (schedule_to_scattering): Rewrite, correct the
7856 translation of the scheduling function to scattering.
7857 (build_cloog_prog): Call schedule_to_scattering only once.
7858 * graphite.h (scop_loop_index): Do not fail for loops not
7859 in the scop: return -1.
7861 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
7863 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
7864 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
7865 (setup_cloog_loop): Export GBB_DOMAIN.
7866 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
7867 able to rebuild the original control flow.
7868 * graphite.h (graphite_bb): Add domain field and access macro.
7871 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7873 * graphite.c (debug_gbb): New.
7874 (print_scop, build_graphite_bb): Use SCOP_BBS.
7875 (build_scop_bbs): Reimplemented.
7876 (dfs_bb_in_scop_p): Removed.
7877 (build_scop_loop_nests): Reorder loops inserted in
7878 SCOP_LOOP_NEST: outer loops should come first.
7879 (build_scop_canonical_schedules): Reinitialize at zero
7880 the components of the SCOP_STATIC_SCHEDULE for the loops
7881 that have already been parsed.
7883 * graphite.h (debug_gbb): Declared.
7885 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7886 Jan Sjodin <jan.sjodin@amd.com>
7888 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
7889 (graphite_loop_to_gcc_loop): Removed.
7890 (remove_all_edges): New.
7891 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
7892 (gloog): Remove useless code.
7894 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7896 * graphite.c (get_bb_type): Reworked. We distinguish between
7897 loops with one or multiple exits.
7898 (is_loop_exit): New.
7900 (is_bb_addable): Rework condition handling, now support for case
7901 case statements and loops with multiple exits.
7903 * gcc.dg/graphite/scop-11.c: New.
7904 * gcc.dg/graphite/scop-12.c: New.
7905 * gcc.dg/graphite/scop-13.c: New.
7907 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7909 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
7910 we have too many colors.
7912 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
7914 * doc/invoke.texi (-ftree-loop-fusion): Document.
7915 * tree-pass.h (pass_loop_fusion): Declared.
7916 * tree-loop-fusion.c: New.
7917 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
7918 * tree-data-ref.c (find_data_references_in_loop): Make extern.
7919 * tree-data-ref.h (find_data_references_in_loop): Declared.
7920 * common.opt (ftree-loop-fusion): Declared.
7921 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
7923 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
7925 * graphite.c (build_access_matrix): Fix typo from the merge.
7927 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7929 * Merge from mainline (130800:135673).
7931 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7933 * graphite.c (end_scop): The exit of the scop is not part of the scop.
7934 Update dominators after splitting.
7936 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7938 * graphite.c (is_bb_addable): Return the harmful statement.
7939 Factor up some code.
7940 (end_scop): New. Splits end of scope bbs on a harmful statement.
7941 (build_scops_1): Call end_scop.
7943 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7945 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
7946 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
7947 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
7948 build_scops_1): Removed.
7949 (build_scops_2): Renamed build_scops_1.
7951 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7953 * graphite.c: Fix formatting.
7955 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7957 * graphite.c (get_bb_type): New.
7959 (build_scops_2): New.
7960 (is_bb_addable): New.
7961 (build_scops): Switch the scop detection.
7962 (build_scop_bbs): Add entry bb to scop.
7963 * graphite.h (struct scop): Update comment.
7965 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7967 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
7970 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7972 * gcc.dg/graphite/scop-1.c: Update.
7973 * gcc.dg/graphite/scop-2.c: Update.
7974 * gcc.dg/graphite/scop-4.c: Update.
7975 * gcc.dg/graphite/scop-5.c: Add.
7976 * gcc.dg/graphite/scop-6.c: Add.
7978 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7980 * gcc.dg/graphite/scop-0.c: Add.
7981 * gcc.dg/graphite/scop-7.c: Add.
7982 * gcc.dg/graphite/scop-8.c: Add.
7983 * gcc.dg/graphite/scop-9.c: Add.
7984 * gcc.dg/graphite/scop-10.c: Add.
7986 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7988 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
7989 Check affine expressions depending on the outermost loop
7991 (stmt_simple_for_scop_p): Same.
7992 (harmfule_stmt_in_scop): Same.
7994 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
7996 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
7997 mark entry and exit, that are not part of the SCoP and update HTML
8000 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
8002 * graphite.c (basic_block_simple_for_scop_p): Renamed
8004 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
8005 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
8006 (all_preds_visited_p, all_succs_visited_p,
8007 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
8008 scop_end_loop): New.
8009 (build_scops): Do not use dfs_enumerate_from.
8011 * gcc.dg/graphite/scop-{1,2,4}.c: Updated.
8013 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
8015 * graphite.c: Add comments to functions that are missing a
8017 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
8019 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
8021 * graphite.c (nb_params_in_scop): Moved...
8022 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
8023 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
8024 (clast_to_gcc_expression): Reduce column size to less than 80.
8025 (graphite_create_iv): Return the new name of the IV.
8026 (find_transform): Set options->esp and options->cpp.
8027 (gloog): Comment out the invalidation of the old loop code.
8028 (initialize_dependence_polyhedron): Replace scop_nb_params with
8031 * graphite.h (nb_params_in_scop): ... here.
8032 (scop_nb_params): Removed.
8033 (loop_domain_dim): Return something even when the loop was not
8034 found in the hash table: avoid ICEing on all the graphite.exp
8037 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8039 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
8041 * graphite.c (build_scop_dynamic_schedules): Schedule is built
8042 according to nesting level.
8043 (find_scop_parameters): Call instantiate_parameters.
8044 (scan_tree_for_params): Extend it to handle general affine bounds.
8045 Inner loop bound can depend on outer loop induction variable.
8046 (setup_cloog_loop): tmp variable is allocated on stack. Call
8047 instantiate_parameters with respect to outermost_loop_in_scop.
8048 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
8050 (create_empty_loop): Function loopify should be given edge
8051 probability, instead of edge frequency. Dominance relation from
8052 switch_bb to loop_header.
8053 (clast_to_gcc_expression): Added handling of clast_reduction node.
8054 (gloog): New functionality for removing old loop.
8055 (test_dependence): Factored out from build_rdg_all_levels.
8056 (build_rdg_all_levels): Dependence testing factored out to
8057 test_dependence function.
8059 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
8060 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
8063 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
8065 * graphite.c (free_scop, param_index, initialize_cloog_names,
8066 nb_params_in_scop): Use name_tree map instead of just a tree
8067 for keeping track of the variable name associated to that tree.
8068 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
8069 clast_to_gcc_expression, graphite_create_iv,
8070 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
8071 graphite_stmt_to_gcc_stmt): New.
8072 (gloog): Call these.
8073 * graphite.h (struct name_tree): New.
8074 (struct scop): Use name_tree instead of tree for params.
8075 Store a vector of name_tree for new_ivs.
8077 (scop_nb_params): Use name_tree instead of tree.
8079 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
8080 Sebastian Pop <sebastian.pop@amd.com>
8082 * tree-bounds.c: New.
8083 * tree-bounds.h: New.
8084 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
8085 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
8086 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
8090 * c-cppbuiltin.c: Same.
8094 * tree-outof-ssa.c: Same.
8096 * Makefile.in: Same.
8098 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
8099 Sebastian Pop <sebastian.pop@amd.com>
8101 * tree-loop-distribution.c (remaining_stmts,
8102 upstream_mem_writes): Removed static variables.
8103 (copy_loop_before, create_bb_after_loop,
8104 mark_nodes_having_upstream_mem_writes, free_rdg_components,
8105 rdg_build_components, rdg_build_partitions,
8106 dump_rdg_partitions): Extern.
8107 (generate_loops_for_partition, generate_code_for_partition): Do not
8109 (already_processed_vertex_p, predecessor_has_mem_write,
8110 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
8111 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
8112 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
8113 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
8114 Pass remaining_stmts and upstream_mem_writes as parameters.
8115 (rdg_component): Moved...
8116 (build_rdg_partition_for_component): Do not aggregate components when
8117 flag_streamize_loops is set.
8118 (gen_sequential_loops): New.
8119 (ldist_gen): Call gen_sequential_loops.
8121 * tree-pass.h (pass_loop_streamization): Declared.
8123 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
8124 basic blocks when loops structures exist.
8126 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
8128 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
8130 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8131 eliminate_local_variables_stmt, eliminate_local_variables,
8132 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8133 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8134 of code delimited by two edges in the CFG.
8135 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8136 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8137 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
8138 the case of parallelisation of reductions.
8139 (create_loop_fn): Extern.
8140 (create_omp_parallel_region): New.
8142 * tree-data-ref.c (dump_data_dependence_relation): Don't call
8143 dump_data_reference for printing dra and drb.
8144 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
8146 (build_rdg): Don't call free_dependence_relations for the moment, as
8147 we attach dependence relations on each edge of the RDG.
8150 * tree-data-ref.h (rdg_component): ...here.
8151 (struct rdg_edge): New field ddr_p relation.
8152 (RDGE_RELATION): New.
8153 (create_bb_after_loop, copy_loop_before,
8154 mark_nodes_having_upstream_mem_writes, rdg_build_components,
8155 rdg_build_partitions, dump_rdg_partitions,
8156 free_rdg_components): Declared.
8158 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
8159 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
8161 * tree-loop-streamization.c: New.
8163 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
8164 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
8166 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
8168 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8170 * passes.c: Schedule pass_loop_streamization.
8172 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
8174 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
8177 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
8179 * graphite.c (dot_all_scops): Update formatting.
8180 Bbs can now be part of more than one SCoP.
8182 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
8184 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
8186 (loop_domain_dim): Check for unregistered toplev SCOP loop.
8187 * graphite.h (loop_to_cloog_loop): New.
8189 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8191 * graphite.c (loop_domain_dim, ref_nb_loops,
8192 loop_iteration_vector_dim): New.
8193 (build_access_matrix_with_af, build_access_matrix,
8194 initialize_dependence_polyhedron): Fixed for new matrix layout.
8195 No longer assume that all iteration domains are of the same
8198 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
8200 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
8201 defined in a loop at depth 0 is invariant.
8202 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
8203 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
8204 be called at loop depth 0.
8206 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
8208 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
8209 (down_open_scop): Removed.
8210 (loop_in_scop_p): Redefined.
8211 (scop_affine_expr): New argument: scop.
8212 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
8213 a harmful statement ending a scop.
8214 (basic_block_simple_for_scop_p): New argument: scop.
8215 (get_loop_start): Removed.
8216 (new_scop): Initialize SCOP_LOOPS.
8217 (free_scop): Free SCOP_LOOPS.
8218 (succs_at_same_depth, preds_at_same_depth): New.
8219 (end_scop): Test the validity of a scop.
8220 (add_dominators_to_open_scops): New.
8221 (test_for_scop_bound): Call add_dominators_to_open_scops.
8222 Add cases for opening and closing multiple scops.
8223 (build_scops, build_scop_bbs): Iterate over basic blocks in
8225 (build_graphite_bb): Pass scop directly.
8226 (dfs_bb_in_scop_p): New.
8227 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
8229 (nb_loops_around_gb): Use loop_in_scop_p.
8230 (schedule_to_scattering): Disabled for the moment the code computing
8231 the "textual order for outer loop".
8233 * graphite.h (struct scop): New field loops.
8235 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
8237 * gcc.dg/graphite/scop-{1,...,7}.c: Updated.
8239 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
8240 Sebastian Pop <sebastian.pop@amd.com>
8242 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
8243 * common.opt (fstreamize-loops): New.
8244 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
8245 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
8246 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
8247 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
8249 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8251 * tree-data-ref.c (build_empty_rdg): New.
8252 (build_rdg): Use it.
8253 * tree-data-ref.h (build_empty_rdg): Declared.
8254 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
8255 (find_vertex_for_stmt): Removed.
8256 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
8258 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
8260 * tree-loop-distribution.c (generate_builtin): After cancelling the
8261 loop tree, also delete basic blocks.
8262 (rdg_flag_uses): Stop recursion when a vertex has already been
8265 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8267 * graphite.c (build_scop_alpha): Removed.
8268 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
8269 and dump_dependence_graph to avoid compiler warnings.
8271 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8273 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
8274 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
8275 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
8276 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
8277 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
8278 (initialize_dependence_polyhedron, find_vertex_for_stmt,
8279 initialize_data_dependence_polyhedron, is_empty_polyhedron,
8280 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
8281 dump_dependence_graph): New.
8282 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
8284 (struct scop): New field loop2cloog_loop.
8285 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
8286 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
8288 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8290 * graphite.c (build_graphite_bb): Fix initialization
8291 of the graphite basic block.
8293 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
8295 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
8296 loop domain matrix. Pass in the number of loops contained in the
8298 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
8299 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
8300 loops that are not surrounding the current loop are not represented
8301 in the domain constraint matrix.
8302 (build_scop_iteration_domain): Initial domain constraint matrix
8303 contains only the eq/ineq, cst, and scop parameters columns.
8305 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8307 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
8308 (print_graphite_bb): Print scattering.
8310 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8312 * graphite.c (initialize_cloog_names): Initialize names of
8313 scattering variables.
8315 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8317 * graphite.c (dot_all_scops_1): Disable debug output while
8320 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8322 * graphite.c (find_transform): Change cloog output language to C.
8324 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
8326 * tree-loop-distribution.c (generate_memset_zero,
8327 generate_builtin, generate_code_for_partition,
8328 rdg_flag_all_uses): New.
8329 (rdg_flag_uses): Gather in the same partition the statements defining
8330 the VUSES of the current statement.
8331 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
8332 Gather in the same partition not only the stores to the same memory
8333 access, but also the reads.
8334 (ldist_generate_loops): Renamed ldist_gen.
8336 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
8337 Tobias Grosser <grosser@fmi.uni-passau.de>
8339 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
8340 next pointer, don't use the inner pointer.
8342 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
8344 * graphite.c (dot_all_scops, dot_all_scops_1): New.
8345 (find_transform): Call dot_all_1.
8346 * graphite.h (dot_all_scops): Declared.
8348 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
8350 * tree-loop-distribution.c: Fix apsi.f ICE.
8351 (create_bb_after_loop): New.
8352 (generate_loops_for_partition): Use it.
8353 * gfortran.dg/ldist-1.f90: New.
8355 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
8356 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
8358 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8360 * graphite.c (find_transform): Dump cloog program sent to cloog.
8362 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8364 * graphite.c (initialize_cloog_names): Initialize cloog
8367 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8369 * graphite.c (build_scop_context): Fix typo, for the matrix
8370 format: insert '0 >= 0' instead of '-1 >= 0'.
8372 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
8374 * Fix merge problems.
8376 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
8378 * graphite.c (setup_cloog_loop): Fix typo.
8380 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
8382 * doc/invoke.texi (-ftree-loop-distribution): Documented.
8383 * tree-loop-distribution.c: Reimplemented.
8384 * tree-pass.h (pass_loop_distribution): New.
8385 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
8387 * graphds.h (struct graph): New field indexes.
8388 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8390 * tree-vect-analyze.c: Remove declaration of static functions when not
8392 * tree-vectorizer.c: Same.
8393 (rename_variables_in_loop): Now extern.
8394 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
8395 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
8396 calling redirect_edge_and_branch_force.
8398 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
8400 * tree-data-ref.c: Don't include tree-chrec.h.
8401 (debug_data_dependence_relations): New.
8402 (dump_data_dependence_relation): Call dump_data_reference on data refs
8404 (same_access_functions): Moved...
8405 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
8406 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8407 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
8408 struct rdg_vertex_info, ): New.
8409 (create_rdg_edge_for_ddr): Compute the dependence level before looking
8411 (create_rdg_vertices): Initialize the htab of graph->indexes.
8412 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
8413 (stmts_from_loop): Don't save LABEL_EXPR.
8414 (hash_stmt_vertex_info, eq_stmt_vertex_info,
8415 hash_stmt_vertex_del): New.
8416 (build_rdg): Initialize rdg->indexes.
8417 (free_rdg, stores_from_loop, ref_base_address,
8418 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
8419 have_similar_memory_accesses_1, ref_base_address_1,
8420 remove_similar_memory_refs): New.
8422 * tree-data-ref.h: Include tree-chrec.h.
8423 (debug_data_dependence_relations): Declared.
8424 (same_access_functions): ...here. Now static inline.
8425 (ddr_is_anti_dependent, ddrs_have_anti_deps,
8426 ddr_dependence_level): New.
8427 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
8428 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
8429 RDG_MEM_READS_STMT): New.
8430 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8431 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
8432 rdg_vertex_for_stmt): Declared.
8433 (struct rdg_edge): New field level.
8434 (RDGE_LEVEL, free_rdg): New.
8435 (stores_from_loop, remove_similar_memory_refs,
8436 rdg_defs_used_in_other_loops_p,
8437 have_similar_memory_accesses): Declared.
8438 (rdg_has_similar_memory_accesses): New.
8440 * lambda.h (dependence_level): New.
8441 * common.opt (ftree-loop-distribution): New.
8442 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
8443 (print_loop_ir): Renamed print_loops.
8444 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
8445 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
8446 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
8447 (tree-loop-distribution.o): Added.
8448 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
8449 (mark_virtual_ops_in_bb): New.
8450 (print_loops_bb, debug_loop_num, debug_loop): New.
8451 * passes.c: Scheduled pass_loop_distribution.
8453 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8455 * graphite.c (scan_tree_for_params): Correct the number of columns
8457 (nb_flat_iterator): New.
8458 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
8459 (build_scop_iteration_domain): Correct the number of columns for
8462 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
8464 * Merge from mainline (129697:130800).
8466 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
8468 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
8469 dominated by SCoP's exit.
8470 (graphite_transform_loops): Compute post dominators.
8472 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
8474 * Merge from mainline (127169:129697).
8476 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
8478 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
8479 parameter for the basic block that contains the expression. Use
8480 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
8481 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
8483 * graphite.h (gbb_loop): New.
8484 (GBB_LOOP): Removed.
8486 2007-08-03 Sebastian Pop <sebpop@gmail.com>
8488 * Makefile.in: Fix merge problem.
8490 2007-08-03 Sebastian Pop <sebpop@gmail.com>
8492 * Merge from mainline (125309:127169).
8493 * tree-loop-distribution.c: Disabled.
8495 2007-06-05 Sebastian Pop <sebpop@gmail.com>
8497 * Merge from mainline (r123693:125309).
8499 2007-05-30 Sebastian Pop <sebpop@gmail.com>
8501 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
8503 (correct_modify_p, check_statements, number_of_lvalue_uses,
8504 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
8505 instead of MODIFY_EXPR.
8506 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
8509 2007-05-24 Sebastian Pop <sebpop@gmail.com>
8511 * tree-loop-distribution.c (struct rdg): Replace arrays by
8512 VECs for edges and vertices.
8513 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
8514 (RDGV_NB_PARTITIONS): New.
8515 (PRDG_NBV, PRDG_NBE): Removed.
8516 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
8517 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
8518 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
8520 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
8521 Sebastian Pop <sebpop@gmail.com>
8523 * doc/invoke.texi (-ftree-loop-distribution): Document.
8524 * tree-loop-distribution.c: New file.
8525 * tree-pass.h (pass_loop_distribution): Declared.
8526 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8527 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
8529 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
8530 (DDR_REVERSED_P): New.
8531 * common.opt (-ftree-loop-distribution): New.
8532 * tree-flow.h (distribute_loops): Declared.
8533 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
8534 * passes.c (init_optimization_passes): Schedule loop distribution.
8536 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
8538 * graphite.c (print_graphite_bb): Don't call dump_data_references.
8539 (print_scop): Don't print when scop is NULL.
8540 (build_scop_context, find_transform): Don't output to stderr.
8542 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
8544 * tree-data-ref.c: Don't include graphite.h.
8545 Comment out the code for printing data reference's scop.
8546 (build_access_matrix_with_af): Moved...
8547 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
8548 * graphite.c (build_access_matrix_with_af): ... here. Now static.
8549 (print_graphite_bb): Print basic block's schedule.
8550 (print_scop): Don't print the schedule, call cloog's pretty printer.
8551 (bb_in_scop_p): A basic block is in a scop only if it is both
8552 dominated and postdominated by the scop's entry and exit basic blocks.
8553 (function_parameter_p): New.
8554 (invariant_in_scop_p): Use function_parameter_p.
8555 (new_scop, save_scop): New.
8556 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
8558 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
8559 (loop_in_scop_p): New.
8560 (scop_record_loop): Use loop_in_scop_p.
8561 (build_scop_domain): Renamed build_scop_iteration_domain.
8562 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
8563 nb_params_in_scop, build_scop_context, first_loop_in_scop,
8564 setup_cloog_loop, dot_scop_1, dot_scop): New.
8565 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
8566 (struct scop): Add a pointer to cloog's representation of a program.
8568 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8570 * doc/invoke.texi (-ftree-check-verbose): Renamed
8571 -ftree-checks-verbose.
8572 * common.opt (flag_tree_check_verbose): Renamed
8573 flag_tree_checks_verbose.
8574 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
8576 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8578 * configure: Regenerated.
8579 * config.in: Regenerated.
8580 * tree-ssa-loop.c (graphite_transforms): Execute
8581 graphite_transform_loops only when HAVE_cloog.
8582 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
8583 * graphite.c: Include polylibgmp.h and cloog.h.
8584 (graphite_transform_loops): Removed loops parameter.
8585 * tree-flow.h (graphite_transform_loops): Update declaration.
8586 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
8587 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
8588 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
8589 (OBJS-common): Remove dependence on graphite.o.
8590 (BACKEND): Depend on @GRAPHITE@.
8592 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
8594 * doc/invoke.texi (-ftree-check-verbose): Documented.
8595 * gcc.dg/tree-checker/tree-checks-1.c: New.
8596 * gcc.dg/tree-checker/tree-checks-2.c: New.
8597 * gcc.dg/tree-checker/tree-checks-3.c: New.
8598 * gcc.dg/tree-checker/tree-checks-4.c: New.
8599 * gcc.dg/tree-checker/tree-checks.exp: New.
8600 * gcc.dg/tree-checker/condates.crp: New.
8601 * common.opt (ftree-checks-verbose): New.
8602 * tree-check.c (tree_check_warning): Move extra stderr output
8603 under control of flag_tree_check_verbose.
8605 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
8607 * tree-match.c: Fix comments formatting.
8608 * tree-match.h: Fix comments formatting.
8609 * tree-check.c: Fix comments formatting.
8610 (tree_check_init): Restructure.
8612 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
8614 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
8616 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
8618 * Merge from mainline (r120733:123693).
8620 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
8622 * condate.y: New file.
8623 * tree-match.h (struct patt_info_s): New field sign.
8624 (struct condate_s): New field msg.
8625 (normalize_condate, name_condate, add_condate): New.
8626 (conds[], condate_parse): Made extern.
8627 * tree-check.c (tree_check_warning): First arg changed to cond;
8628 warning reformatted.
8629 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
8631 (tree_check): Process trivial condates.
8632 (read_delimited_string): Removed.
8633 (print_cond): Print name and msg.
8634 (conds[]): Made extern.
8635 (parse_tree_check_file_once): Rewritten to use the parser in
8637 Processing of option --tree_check_string moved to tree_scan().
8638 * Makefile.in: Added condate.y
8640 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
8642 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
8643 Use VECs instead of varrays.
8644 * diagnostic.h (lazy_dump_generic_node): Update declaration.
8645 * Makefile.in (pretty-print.o): Depend on vec.h.
8646 * pretty-print.c: Include tree.h and vec.h.
8647 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
8648 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
8649 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
8650 pp_free_list): Use VECs instead of varrays.
8651 * pretty-print.h: Do not include varray.h.
8652 (struct tree_chunk_s): Declaration moved before its use.
8653 (output_buffer): Rename varray field to chunks.
8654 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
8655 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
8656 save_global_holes): Use VECs instead of varrays.
8657 * tree-match.h: Declare VECs of cfg_node, and hole_p.
8658 * tree-check.c (scan_cfg_stmts, push_node,
8659 print_matching_stmt): Removed.
8660 (tree_check_instance, push_global_holes_if_new, tree_check,
8661 execute_tree_check): Use VECs instead of varrays.
8662 (gate_tree_check): Don't execute the CFG check when basic_block_info
8665 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8667 * Merge from mainline (r115016:120733).
8669 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8671 * Merge from mainline (r117632:117661).
8673 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8675 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
8676 * tree-pass.h (TDF_DEBUG, debug_p): New.
8677 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
8678 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
8679 get_loop_exit_condition, analyze_evolution_in_loop,
8680 analyze_initial_condition, analyze_scalar_evolution,
8681 instantiate_parameters, number_of_latch_executions): Use debug_p.
8682 * tree-chrec.c (chrec_apply): Use debug_p.
8683 * tree-data-ref.c: Include graphite.h.
8684 (dump_data_reference): Print also the access matrix.
8685 (analyze_array, analyze_indirect_ref, init_data_ref,
8686 analyze_offset_expr, address_analysis, object_analysis,
8687 create_data_ref, finalize_ddr_dependent,
8688 non_affine_dependence_relation, analyze_ziv_subscript,
8689 analyze_siv_subscript_cst_affine,
8690 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
8691 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
8692 analyze_miv_subscript, analyze_overlapping_iterations,
8693 build_classic_dist_vector, subscript_dependence_tester,
8694 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
8695 (build_access_matrix_with_af): No longer static.
8696 * tree-data-ref.h (scop_p): ... declaration here.
8697 (data_reference.scop): New field.
8698 (DR_SCOP, DR_ACCESS_MATRIX): New.
8699 (build_access_matrix_with_af, dr_num_subscripts): Declared.
8700 * graphite.c (print_graphite_bb): Call dump_data_references.
8701 (print_scop): Use scop_nb_loops and scop_dim_domain.
8702 (test_for_scop_bound): Use debug_p.
8703 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
8705 (scop_loop_index): Moved...
8706 (scop_record_loop): New.
8707 (build_scop_loop_nests): Use scop_record_loop.
8708 (build_scop_domain): Use scop_dim_domain.
8709 (build_access_matrix): Implemented.
8710 (build_scop_canonical_schedules): Use scop_nb_loops.
8711 (build_graphite_bb): Initialize GBB_SCOP.
8712 * graphite.h (scop_p): Moved...
8713 (graphite_bb.scop): New field.
8714 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
8715 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
8716 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
8717 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
8718 scop_loop_index): New.
8719 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
8721 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
8723 * Merge from mainline (r117661:120450).
8725 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
8727 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
8728 at the first declaration outside the varying loop, instantiate as
8730 * tree-chrec.c (for_each_scev_op): New.
8731 * tree-chrec.h (for_each_scev_op): Declared.
8732 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
8733 * tree-data-ref.c (get_references_in_stmt,
8734 find_data_references_in_stmt): New, from trunk.
8735 (find_data_references_in_loop): Use get_references_in_stmt
8736 and find_data_references_in_loop, modified as in trunk.
8737 (build_access_matrix_with_af): New.
8738 * tree-data-ref.h (data_reference): Add a field access_matrix.
8739 (data_ref_loc): New, as in trunk.
8740 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
8741 invariant_in_scop_p, param_index, scan_tree_for_params,
8742 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
8743 idx_record_param, idx_record_params, build_access_matrix,
8744 build_scop_data_accesses, build_scop_canonical_schedules,
8745 build_graphite_bb, build_scop_bbs, find_params_in_bb,
8746 build_scop_params): New.
8747 * graphite.h (graphite_bb): New.
8748 (scop): Add fields static_schedule, params, loop_nest,
8750 * lambda.h: Declare vecs of lambda_matrix.
8751 * tree-flow.h (print_loop_ir_bb): Declared.
8752 * tree-cfg.c (print_loop_ir_bb): New.
8753 (print_loop): Use print_loop_ir_bb.
8755 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
8757 * Merge from mainline (r115016:117632).
8759 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
8761 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
8762 break due to a warning.
8764 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
8766 * graphite.c (print_scops, debug_scops): New.
8767 (graphite_transform): Renamed graphite_find_transform.
8768 * graphite.h (debug_scops): Declared.
8770 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
8772 * tree-match.c: Reformat following the GNU style.
8773 * tree-match.h: Reformat following the GNU style.
8774 * tree-pattern.h: Removed empty file.
8775 * Makefile.in: Remove references to tree-pattern.h.
8776 * tree-check.c: Reformat following the GNU style.
8777 (execute_tree_check): Move gate condition code to...
8778 (gate_tree_check): ...here. New function.
8779 (pass_check): Use the gate function.
8781 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
8783 * tree-pattern.h: New. Tree pattern matching and checking using
8785 * tree-check.c: New. Tree/CFG checking pass.
8786 * tree-match.c: New. Library for tree pattern matching.
8787 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
8788 * toplev.c, flags.h: Add globals for tree-check pass.
8789 * Makefile.in: Integrate the files in tree-check pass.
8790 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
8791 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
8792 Introduce a "lazy" pretty-print mode.
8793 * tree.c, tree.h: Add tree_name.
8795 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
8797 * doc/invoke.texi (-fgraphite): Correct typo.
8798 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
8799 use of print_loop_ir.
8800 * gcc.dg/graphite/scop-1.c: New.
8801 * gcc.dg/graphite/scop-2.c: New.
8802 * gcc.dg/graphite/graphite.exp: New.
8803 * graphite.c: Include domwalk.h.
8804 (print_scop): Print only the entry and exit blocks.
8805 (debug_scop): No longer static.
8806 (affine_expr): Fix formating. Return also true when the expression is
8808 (stmt_simple_for_scop_p): Fix formating.
8809 (build_scops): Use domwalk.
8810 (get_loop_start, end_scop, test_for_scop_bound): New.
8811 (graphite_transform_loops): Avoid printing on stderr.
8812 * graphite.h (debug_scop): Declared.
8813 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
8814 * Makefile.in (graphite.o): Depend on domwalk.h.
8815 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
8816 declarations for static functions.
8817 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
8818 controlling output verbosity.
8820 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
8821 Plesco Alexandru <shurikx@gmail.com>
8823 * doc/invoke.texi (-fgraphite): Document.
8824 * tree-pass.h (pass_graphite_transforms): Declared.
8825 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
8826 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
8827 (pass_graphite_transforms): Defined.
8828 * tree-data-ref.c (free_data_ref, data_reference): Extern.
8829 * tree-data-ref.h (free_data_ref, data_reference): Declared.
8830 * graphite.c, graphite.h: New.
8831 * common.opt (fgraphite): Declared.
8832 * tree-flow.h (graphite_transform_loops): Declared.
8833 * Makefile.in (OBJS-common): Add graphite.o.
8834 (graphite.o): New rule.
8835 * passes.c (pass_graphite_transforms): Scheduled.