1 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
3 * sese.h (scev_analyzable_p): Return false for real or floating
4 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
6 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
9 * gfortran.dg/graphite/pr45758.f90: New.
11 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
13 * graphite-scop-detection.c (is_scop_p): Free bblist.
15 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
17 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
19 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
21 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
22 Do not allocate ub_expr, it is passed in initialized.
24 2010-09-21 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
26 * common.opt (fgraphite-dump-cloog): New flag.
27 * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
28 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
29 (build_cloog_prog): Dump CLooG input file when
30 flag_graphite_dump_cloog is set.
31 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
33 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
35 Revert previous patch "New flag: -fgraphite-dump-cloog."
37 2010-09-20 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
39 * common.opt (fgraphite-dump-cloog): New flag.
40 * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
41 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
42 (build_cloog_prog): Dump CLooG input file when
43 flag_graphite_dump_cloog is set.
45 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
47 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
48 verify_dominators for CDI_POST_DOMINATORS.
49 * sese.h: Remove comment about CDI_POST_DOMINATORS.
50 (recompute_all_dominators): Remove call to free_dominance_info
51 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
52 for CDI_POST_DOMINATORS.
54 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
56 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
57 over pbb_dim_iter_domain.
59 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
61 * graphite-flattening.c: Fix comments.
63 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
65 * Makefile.in (OBJS-common): Add graphite-flattening.o.
66 (graphite-flattening.o): New rule.
67 * common.opt (floop-flatten): New flag.
68 * doc/invoke.texi (-floop-flatten): Documented.
69 * graphite-flattening.c: New.
70 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
71 * graphite-poly.h (flatten_all_loops): Declared.
72 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
73 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
74 is set, also set flag_graphite.
76 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
78 * graphite-poly.c (cloog_checksum): New.
79 * graphite-poly.h (cloog_checksum): Declared.
81 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
83 * graphite-poly.c (pbb_number_of_iterations): Removed.
84 (pbb_number_of_iterations_at_time): Correctly compute the number
85 of iterations in the transformed loop.
86 * graphite-poly.h (pbb_number_of_iterations): Removed.
88 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
90 * graphite-poly.h (lst_update_scattering_seq): Removed.
91 (lst_update_scattering): Correctly handle outermost loop dewey
94 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
96 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
97 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
98 * graphite-poly.h (lst_niter_for_loop): New.
100 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
102 * graphite-poly.c (apply_poly_transforms): Do not abort when the
103 transform read from disk is not legal. Call fatal_error instead.
105 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
107 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
108 (print_scop_header): Removed. Inlined in the only call place...
109 (print_scop): ... here.
111 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
113 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
115 2010-09-02 Vladimir Kargov <kargov@gmail.com>
117 * graphite-scop-detection.c (is_valid_expr_p, is_valid_loop_p): New.
118 (is_valid_stmt_p): Add data reference and operation-specific checks.
119 (is_valid_bb_p): Change structure, add loop validity check.
120 (is_scop_p): Move the TODO list
121 (find_scops_new): New.
122 (build_scops_new): Move part of functionality to find_scops_new and
123 build_scops. Add necessary steps for successful SCoP construction.
124 (build_scops): Compute SCoP sets for both detection algorithms, choose
125 the resulting one depending on static condition.
127 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
129 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
131 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
133 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
134 (dot_deps_stmt): Same.
135 * graphite-poly.c (dot_lst): Same.
137 2010-08-23 Sebastian Pop <sebastian.pop@amd.com>
139 * graphite-blocking.c (scop_do_strip_mine): Do not call
140 graphite_legal_transform.
141 (scop_do_block): Same.
143 2010-08-20 Vladimir Kargov <kargov@gmail.com>
145 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
148 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
151 * gcc.dg/graphite/id-pr45230.c: New.
153 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
155 * tree-scalar-evolution.c (instantiate_array_ref): New.
156 (instantiate_scev_r): Also handle ARRAY_REFs.
158 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
160 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
161 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
162 RESULT_DECL, and FIELD_DECL. Return false for an
163 SSA_NAME_IS_DEFAULT_DEF.
164 (compute_scalar_evolution_in_loop): Do not further analyze the
165 scalar evolution when no_evolution_in_loop_p returns true.
167 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
169 * tree-chrec.h (evolution_function_is_affine_p): Do not check
170 whether CHREC_LEFT is invariant. A function is affine when
171 CHREC_RIGHT is invariant.
173 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
175 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
177 (rewrite_degenerate_phi): Same.
178 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
180 2010-08-18 Vladimir Kargov <kargov@gmail.com>
182 * graphite-scop-detection.c (graphite_can_represent_scev,
183 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
184 graphite_can_represent_loop): Remove outermost_loop.
186 2010-08-17 Sebastian Pop <sebastian.pop@amd.com>
189 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
190 handle GIMPLE_CALLs with no LHS.
192 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
193 Sebastian Pop <sebastian.pop@amd.com>
195 * gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write.
196 Call remove-build-file to clean up the generated *.graphite files.
198 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
200 * doc/invoke.texi (debugging options): Update documentation.
201 (-floop-interchange): Same.
202 (-flopp-strip-mine): Same.
203 (-floop-block): Same.
204 (-fgraphite-read): Add documentation.
205 (-fgraphite-write): Same.
207 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
209 * toplev.c (process_options): Disable graphite loop optimization
210 options when -fgraphite-read flag is used.
212 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
214 * graphite-poly.c (init_graphite_out_file): New.
215 (init_graphite_in_file): New.
216 (apply_poly_transforms): Updated to enable reading and writing of
218 * toplev.c (init_asm_output): Remove graphite in/out file initialization.
220 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de>
222 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
225 2010-08-12 Sebastian Pop <sebastian.pop@amd.com>
227 * graphite-clast-to-gimple.c (precision_for_value): Adjust
228 computation of precision by 1.
230 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com>
232 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
233 (openscop_read_polyhedron_matrix): New.
234 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
235 (openscop_read_N_int): Same.
236 * graphite-poly.c (openscop_read_N_int): New.
237 (openscop_read_one_int): New.
238 (openscop_read_N_string): New.
239 (openscop_read_one_string): New.
240 (openscop_read_powerset_matrix): New.
241 (graphite_read_transforms): Remove.
242 (graphite_read_scatt): New.
243 (graphite_read_scop_file): New.
244 (apply_poly_transforms): Updated to call graphite_read_scop_file.
246 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
248 * graphite-poly.c: Change include order.
250 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
252 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
253 (cloog_matrix_nrows): New.
255 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
257 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
259 * graphite-poly.c (openscop_print_scattering_function_1): Same.
260 (print_scattering_function_1): Same.
261 (openscop_print_pbb_domain): Same.
262 (openscop_print_scop_context): Same.
263 (print_scop_context): Same.
265 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
267 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
268 (openscop_print_pdr_polyhedron): Print pph.
270 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
272 * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files.
273 * gfortran.dg/graphite/graphite.exp: Same.
274 * gcc.dg/graphite/vect-pr43423.c: New.
276 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
278 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
279 priority signed types.
281 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
283 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
284 to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type.
286 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com>
288 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
289 (openscop_print_polyhedron_matrix): New.
290 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
291 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
292 (openscop_print_pdr_powerset): New.
293 (openscop_print_powerset_matrix): New.
294 (openscop_print_scattering_function_1): New.
295 (print_scattering_function): Add support for scattering names and
297 (graphite_write_transforms): Remove.
298 (apply_poly_transforms): Updated to call print_scop.
299 (print_pdr_access_layout): Updated to support OpenScop format.
301 (openscop_print_pbb_domain): New.
302 (print_pbb_body): Added a parameter to allow indicating that pbb_body is
304 (print_pbb): Updated to call the new print_pbb_body.
305 (openscop_print_scop_context): New.
306 (print_scop_header): New.
307 (print_scop): Updated to call print_scop_header.
308 * graphite-poly.h: Document OpenScop format.
310 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
312 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
313 the case removed in the previous patch, when the only phi argument
314 is defined in the same loop as the phi node itself. Handle it
315 separately from the invariant case by both propagating it outside
316 the region and replacing the phi node with an assign.
318 2010-07-28 Sebastian Pop <sebastian.pop@amd.com>
320 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
321 constant phi nodes with one argument are is_gimple_min_invariant
322 and SSA_NAME_IS_DEFAULT_DEF.
324 * gfortran.dg/graphite/id-22.f: New.
326 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
328 * graphite.c (graphite_initialize): Do not initialize
329 CLooG and initialize the Parma Polyhedra Library
330 manually when using CLOOG_ORG.
331 (graphite_finalize): Do not finalize CLooG and finalize
332 the Parma Polyhedra Library manually when using CLOOG_ORG.
333 * graphite-cloog-compat.h (cloog_initialize): Hide function
334 when using CLOOG_ORG.
335 (cloog_finalize): Same.
337 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
339 * graphite-clast-to-gimple.c (free_scattering): Change
340 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
342 (build_cloog_prog): Same.
343 * graphite-cloog-compat.h (cloog_domain): Removed.
344 (cloog_scattering): New.
345 (cloog_set_domain): Removed.
346 (cloog_set_scattering): New.
347 (cloog_next_domain): Removed.
348 (cloog_next_scattering): New.
349 (cloog_set_next_domain): Removed.
350 (cloog_set_next_scattering): New.
351 (CloogScatteringList): New.
352 (CloogScattering): New.
353 (cloog_scattering_free): New.
354 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
355 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
358 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
360 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
362 (set_cloog_options): Same.
363 (print_clast_stmt): Same.
364 (scop_to_clast): Same.
365 (print_generated_program): Same.
367 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
368 (scop_to_clast): Extend with CloogState.
369 * graphite-cloog-util.c: Include graphite-cloog-compat.h
370 (new_Cloog_Domain_from_ppl_Polyhedron):
371 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
372 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
373 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
374 * graphite-cloog-util.h (build_cloog_prog): Same.
375 * graphite-cloog-copat.h (build_cloog_prog): New.
377 (cloog_state_malloc): New.
378 (cloog_state_free): New.
379 (cloog_loop_malloc): New.
380 (cloog_options_malloc): New.
381 (cloog_statement_alloc): New.
382 (cloog_domain_from_cloog_matrix): New.
383 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
384 (new_Cloog_Domain_from_ppl_Polyhedron): New.
386 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
388 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
389 type of NAME now depends on used CLooG version.
390 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
391 (gcc_type_for_clast_expr): Same.
392 (print_clast_stmt): Replace pprint with clast_pprint.
393 * graphite-cloog-compat.h: Provide compatibility macros for
396 (clast_expr_term): New.
397 (clast_expr_red): New.
398 (clast_expr_bin): New.
401 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
403 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
404 compatible to newer CLooG releases (CLOOG_ORG).
405 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
406 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
407 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
408 (build_cloog_prog) : New.
409 (cloog_program_extract_scalars): New.
410 (cloog_program_scatter): New.
412 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
414 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
415 conditionally (CLOOG_ORG).
416 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
417 (cloog_statement_usr): New.
418 (cloog_domain): Same.
419 (cloog_set_domain): Same.
420 (cloog_next_domain): Same.
421 (cloog_set_next_domain): Same.
422 (cloog_program_nb_scattdims): Same.
423 (cloog_program_set_nb_scattdims): Same.
424 (cloog_program_names): Same.
425 (cloog_program_set_names): Same.
426 (cloog_program_set_context): Same.
427 (cloog_program_set_loop): Same.
428 (cloog_program_blocklist): Same.
429 (cloog_program_set_blocklist): Same.
430 (cloog_program_scaldims): Same.
431 (cloog_program_set_scaldims): Same.
432 (cloog_names_nb_parameters): Same.
433 (cloog_names_set_nb_parameters): Same.
434 (cloog_names_parameters): Same.
435 (cloog_names_set_parameters): Same.
436 (cloog_names_set_nb_iterators): Same.
437 (cloog_names_set_iterators): Same.
438 (cloog_names_set_nb_scattering): Same.
439 (cloog_names_set_scattering): Same.
440 (cloog_statement_set_usr): Same.
441 (cloog_loop_set_next): Same.
442 (cloog_loop_set_domain): Same.
443 (cloog_loop_set_block): Same.
444 (cloog_block_list_next): Same.
445 (cloog_block_list_set_next):
446 (cloog_block_list_set_block): Same.
448 2010-07-27 Sebastian Pop <sebastian.pop@amd.com>
450 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
452 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
453 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
454 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
455 when something has been changed.
456 (rewrite_commutative_reductions_out_of_ssa): Same.
458 * gcc.dg/graphite/id-26.c: New.
460 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
462 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
463 handle the case when def is in the sese region.
464 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
465 for invariant expressions.
466 (rewrite_cross_bb_phi_deps): Removed.
467 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
468 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
469 rewrite_cross_bb_phi_deps.
471 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
473 * graphite-sese-to-poly.c
474 (rewrite_commutative_reductions_out_of_ssa_loop): Call
475 scev_analyzable_p only on is_gimple_reg
477 * gcc.dg/graphite/id-25.c: New.
479 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
481 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
482 (rewrite_close_phi_out_of_ssa): Propagate constant values or
483 parametric expressions outside the scop region.
484 (rewrite_cross_bb_scalar_deps): Same.
485 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
487 * gcc.dg/graphite/run-id-5.c: New.
488 * gcc.dg/graphite/run-id-6.c: New.
489 * gfortran.dg/graphite/id-21.f: New.
491 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
493 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
494 SSA_NAME_DEF_STMT only on SSA_NAMEs.
496 * gcc.dg/graphite/id-24.c: New.
498 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
500 * tree-scalar-evolution.c (instantiate_scev_name): Do not
501 instantiate default definitions.
503 2010-07-20 Vladimir Kargov <kargov@gmail.com>
505 * graphite-scop-detection.c (is_valid_stmt_p): New.
506 (is_valid_bb_p): New.
508 2010-07-20 Vladimir Kargov <kargov@gmail.com>
509 Sebastian Pop <sebastian.pop@amd.com>
511 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
512 (loop_exits_from_bb_p): New.
513 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
514 (loop_exits_from_bb_p): Declared.
515 * graphite-scop-detection.c (scopdet_basic_block_info): Call
518 2010-07-20 Vladimir Kargov <kargov@gmail.com>
520 * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and
522 (dot_regions_1): New.
524 * refined-regions.h (dot_regions): Declared.
525 * Makefile.in (refined-regions.o): Update dependences.
527 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
529 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
530 extra parameter for the region. Call scev_analyzable_p.
531 (rewrite_reductions_out_of_ssa): Update call to
532 rewrite_close_phi_out_of_ssa.
533 (rewrite_cross_bb_phi_deps): Same.
534 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
535 parameter for the region. Call scev_analyzable_p.
536 (rewrite_commutative_reductions_out_of_ssa): Update call to
537 rewrite_commutative_reductions_out_of_ssa_loop.
539 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
541 * gcc.dg/tree-ssa/pr20742.c: New.
543 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
545 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
547 * gcc.dg/graphite/id-23.c: New.
549 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
551 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
552 SSA scalar phi nodes that can be scev_analyzable_p.
554 * gfortran.dg/graphite/id-20.f: Adjust testcase.
556 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
558 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
559 handle SSA_NAME_IS_DEFAULT_DEF.
561 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
563 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
565 * gcc.dg/graphite/pr42729.c: New.
567 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
569 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
570 case non close-phi nodes with one argument.
572 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
574 * sese.h (scev_analyzable_p): Scevs could be expressions without
575 chrecs and still be scev_analyzable_p.
577 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
579 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
581 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
583 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
584 * cfgloop.h (struct loop): Remove single_iv field.
585 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
586 (scop_canonicalize_loops): Removed.
587 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
588 over all the loop phi nodes in loop->header.
589 (build_poly_scop): Remove use of scop_canonicalize_loops.
591 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
593 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
596 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
598 * tree-chrec.c (chrec_apply): Should only apply to the specified
599 variable. Also handle multivariate chains of recurrences that
600 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
602 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
604 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
605 (debug_clast_name_indexes_1): Removed.
606 (debug_clast_name_indexes): Removed.
607 (pbb_to_depth_to_oldiv): Removed.
608 (build_iv_mapping): Replace the use of rename_map with iv_map.
609 (translate_clast_user): Remove uses of rename_map. Allocate and
611 (translate_clast_for_loop): Remove uses of rename_map.
612 (translate_clast_for): Same.
613 (translate_clast_guard): Same.
614 (translate_clast): Same.
616 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
617 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
618 * sese.c (set_rename): Now static.
619 (rename_variables_in_stmt): Removed.
621 (is_parameter): Removed.
623 (expand_scalar_variables_call): Removed.
624 (expand_scalar_variables_ssa_name): Removed.
625 (expand_scalar_variables_expr): Removed.
626 (expand_scalar_variables_stmt): Removed.
627 (expand_scalar_variables): Removed.
628 (rename_variables): Removed.
629 (remove_condition): Removed.
630 (get_true_edge_from_guard_bb): Removed.
631 (get_false_edge_from_guard_bb): Removed.
632 (struct igp): Removed.
633 (default_before_guard): Removed.
634 (convert_for_phi_arg): Removed.
635 (add_guard_exit_phis): Removed.
636 (insert_guard_phis): Removed.
637 (graphite_copy_stmts_from_block): Now also uses iv_map and a
638 region. Do not copy conditions. Do not copy induction variables.
640 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
641 the translated statement. Use the iv_map for the induction
643 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
644 (set_rename): Removed declaration.
645 (scev_analyzable_p): ...here.
646 * tree-chrec.c (chrec_apply_map): New.
647 * tree-chrec.h (chrec_apply_map): Declared.
649 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
651 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
652 insert_loop_close_phis.
653 * sese.c (name_defined_in_loop_p): Removed.
654 (expr_defined_in_loop_p): Removed.
655 (alive_after_loop): Removed.
656 (close_phi_not_yet_inserted_p): Removed.
657 (struct alep): Removed.
658 (add_loop_exit_phis): Removed.
659 (insert_loop_close_phis): Removed.
661 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
663 * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped
665 * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same.
667 2010-07-07 Sebastian Pop <sebastian.pop@amd.com>
669 * gfortran.dg/graphite/id-20.f: New.
671 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
673 * graphite-cloog-util.h: Added cloog.h.
674 * graphite-blocking.c: Removed cloog.h.
675 * graphite-dependences.c: Same.
676 * graphite-interchange.c: Same.
677 * graphite-poly.c: Same.
678 * graphite-ppl.c: Same.
679 * graphite-scop-detection.c: Same.
680 * graphite-sese-to-poly.c:
682 Removed graphite-clast-to-gimple.h.
683 (check_poly_representation): Removed (unused).
684 * graphite-sese-to-poly.h
685 (check_poly_representation): Removed (unused).
687 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
690 (OBJS-common): Added graphite-cloog-util.o.
691 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
692 (graphite-cloog-util.o): New.
693 (graphite-ppl.o): Added graphite-cloog-util.h.
694 * graphite-clast-to-gimple.c:
695 Added graphite-cloog-util.h to include statements.
696 * graphite-cloog-util.c: New.
697 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
698 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
699 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
700 (new_C_Polyhedron_from_Cloog_Matrix): Same.
701 (ppl_Constrain_System_number_of_constraints): Same.
702 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
703 (oppose_constraint): Same.
704 (cloog_matrix_to_ppl_constraint): Same.
705 (new_Constraint_System_from_Cloog_Matrix): Same.
706 (insert_constraint_into_matrix): Same. Declared static.
707 * graphite-cloog-util.h: New.
708 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
709 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
710 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
711 (new_C_Polyhedron_from_Cloog_Matrix): Same.
712 (insert_constraint_into_matrix): Same.
714 Added graphite-cloog-util.h to include statements.
715 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
716 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
717 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
718 (new_C_Polyhedron_from_Cloog_Matrix): Same.
719 (insert_constraint_into_matrix): Same.
720 (ppl_Constrain_System_number_of_constraints): Same.
721 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
722 (oppose_constraint): Same.
723 (cloog_matrix_to_ppl_constraint): Same.
724 (new_Constraint_System_from_Cloog_Matrix): Same.
726 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
727 graphite-cloog-util.h.
728 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
729 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
730 (new_C_Polyhedron_from_Cloog_Matrix): Same.
731 (insert_constraint_into_matrix): Removed.
733 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
735 * graphite-clast-to-gimple.c
736 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
737 (precision_for_interval): Same.
738 (gcc_type_for_interval): Same.
739 (compute_type_for_level): Same.
740 * graphite-interchange.c
741 (lst_interchange_profitable_p): Same.
743 (psct_scattering_dim_for_loop_depth): Same.
745 (ppl_max_for_le_pointset): Same.
746 (ppl_min_for_le_pointset): Same.
748 2010-06-25 Vladimir Kargov <kargov@gmail.com>
750 * refined-regions.c (bb_index_compare): New.
751 (get_bbs_in_region): New.
752 (print_bbs_in_region): New.
753 (print_refined_region): Add an argument that allows to print
754 all basic blocks contained in regions.
755 (debug_refined_region): Update call to print_refined_region.
756 * refined-regions.h (print_refined_region): Update declaration.
757 (get_bbs_in_region): Declared.
758 * graphite-scop-detection.c (build_scops_new): Print the refined
759 region tree into the Grahite dump file.
761 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
763 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
764 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
766 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
768 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
769 rewrite_close_phi_out_of_ssa.
771 * gcc.dg/graphite/id-22.c: New.
773 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
775 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
777 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
779 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
781 * sese.c (debug_rename_map): Same.
784 (rename_variables_in_stmt): Same.
785 (expand_scalar_variables_call): Same.
786 (expand_scalar_variables_ssa_name): Same.
787 (expand_scalar_variables_expr): Same.
788 (expand_scalar_variables_stmt): Same.
789 (expand_scalar_variables): Same.
790 (rename_variables): Same.
791 (graphite_copy_stmts_from_block): Same.
792 (copy_bb_and_scalar_dependences): Same.
794 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
796 * graphite-clast-to-gimple.c (copy_renames): Removed.
797 (translate_clast_for): Do not call copy_renames.
798 (translate_clast_guard): Same.
800 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
802 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
803 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
804 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
805 before rewrite_cross_bb_scalar_deps.
807 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
809 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
810 Early return in when flag_associative_math is not set.
812 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
814 * gcc.dg/graphite/run-id-2.c: Call abort.
816 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
818 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
819 of SSA copies on edges except for loop->latch.
821 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
823 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
824 Split out of rewrite_reductions_out_of_ssa.
825 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
827 * graphite.c (graphite_transform_loops): Call it.
829 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
831 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
833 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
835 * passes.c (init_optimization_passes): Add pass_graphite.
836 Schedule a pass_copy_prop before pass_graphite_transforms.
837 * timevar.def (TV_GRAPHITE): Declared.
838 * tree-pass.h (pass_graphite): Declared.
839 * tree-ssa-loop.c (pass_graphite): New.
841 * gcc.dg/graphite/id-20.c: New.
843 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
845 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
846 Remove calls to rename_nb_iterations and rename_sese_parameters.
847 * graphite-clast-to-gimple.h (gloog): Update declaration.
848 * graphite.c (graphite_transform_loops): Update call to gloog.
849 * sese.c (rename_variables_in_expr): Removed.
850 (rename_nb_iterations): Removed.
851 (rename_sese_parameters): Removed.
852 * sese.h (rename_nb_iterations): Removed.
853 (rename_sese_parameters): Removed.
855 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
857 * graphite-clast-to-gimple.c (gloog): Remove call to
858 sese_adjust_liveout_phis.
859 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
860 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
861 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
862 rewrite_phi_out_of_ssa.
863 * sese.c (get_vdef_before_sese): Removed.
864 (sese_adjust_vphi): Removed.
865 (sese_adjust_liveout_phis): Removed.
866 * sese.h (sese_adjust_liveout_phis): Removed.
868 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
870 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
871 argument for the place after which to insert the out of SSA copy.
872 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
873 (rewrite_phi_out_of_ssa): Same.
874 (rewrite_cross_bb_scalar_deps): Same.
875 (insert_copyout): Removed.
876 (insert_copyin): Removed.
877 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
878 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
881 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
883 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
884 (rewrite_reductions_out_of_ssa): Same.
885 (rewrite_commutative_reductions_out_of_ssa): Same.
886 (build_poly_scop): Do not call these functions.
887 * graphite-sese-to-poly.h (build_poly_scop): Declared.
888 (rewrite_reductions_out_of_ssa): Declared.
889 (rewrite_commutative_reductions_out_of_ssa): Declared.
890 * graphite.c (graphite_transform_loops): Call on every scop
891 rewrite_commutative_reductions_out_of_ssa before calling
892 rewrite_reductions_out_of_ssa and build_scop_bbs.
894 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
896 * graphite-dependences.c (dot_deps): Make system call to dotty run
898 (dot_deps_stmt): Same.
899 * graphite-poly.c (dot_lst): Same.
901 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
903 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
904 old_type in parameter.
905 (gcc_type_for_value): Update call to gcc_type_for_interval.
906 (compute_type_for_level_1): Renamed compute_type_for_level.
907 Update call to gcc_type_for_interval.
909 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
911 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
912 the scev analysis when the variable is not used outside the loop
913 in a close phi node: call compute_overall_effect_of_inner_loop.
915 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
917 * graphite-sese-to-poly.c (single_pred_cond): Renamed
918 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
919 (build_sese_conditions_before): Renamed call to single_pred_cond.
920 (build_sese_conditions_after): Same.
922 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
924 * graphite-poly.h: Fix comments and indentation.
925 * graphite-sese-to-poly.c: Same.
926 (build_sese_conditions_before): Compute stmt and gbb only when needed.
927 * tree-chrec.c: Fix comments and indentation.
928 (tree-ssa-loop-niter.c): Same.
930 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de>
932 * refined-regions.c (create_region): Only initialize the region.
933 (find_regions_with_entry): Initialize parent relation and bbmap
935 (build_regions_tree): Set outermost_region to region instead of
937 (calculate_region_tree): Remove unneeded parameters.
939 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de>
941 * graphite-scop-detection.c (is_scop_p): New.
942 (build_scops_new): New. A skeleton for the new scop detection.
943 (build_scops_old): Renamed from build_scops.
944 (build_scops): New version. Call the new and the old scop
947 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de>
948 Antoniu Pop <antoniu.pop@gmail.com>
950 * Makefile.in (OBJS-common): Add refined-regions.o.
951 (refined-regions.o): New.
952 (graphite-scop-detection.o): Use refined-regions.h.
953 * graphite-scop-detection.c: Include refined-regions.h
954 (build_scops): Also build the refined region tree.
955 * refined-regions.c: New. Adds an algorithm to detect refined
957 (print_refined_region): New.
958 (debug_refined_region): New.
959 (refined_region_contains_bb_p): New.
960 (refined_region_contains_region_p): New.
962 (struct find_regions_global_data): New.
964 (typedef struct bb_bb_def): New.
965 (new_bb_bb_def): New.
966 (bb_bb_map_hash): New.
970 (new_bb_reg_def): New.
971 (bb_reg_map_hash): New.
972 (eq_bb_reg_map): New.
973 (find_new_region): New.
974 (insert_new_reg): New.
975 (insert_new_bb): New.
976 (insert_shortcut): New.
977 (get_next_postdom): New.
978 (create_region): New.
979 (find_regions_with_entry): New.
980 (find_regions_adc): New.
982 (get_topmost_parent): New.
983 (build_regions_tree): New.
984 (calculate_region_tree): New.
985 (free_region_tree): New.
986 * refined-regions.h: New.
987 (struct refined_region): New.
988 (calculate_region_tree): New.
989 (free_region_tree): New.
990 (refined_region_contains_bb_p): New.
991 (refined_region_contains_region_p): New.
992 (print_refined_region): New.
993 (debug_refined_region): New.
995 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
997 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1000 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
1002 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix
1003 type of integer_one_node for fold_build of POINTER_PLUS_EXPR.
1005 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
1007 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1008 phi_arg_in_outermost_loop.
1009 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1010 (remove_invariant_phi): Same.
1012 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1014 * graphite-blocking.c
1015 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1016 * graphite-clast-to-gimple.c
1017 (clast_to_gcc_expression): Same.
1018 (precision_for_value): Same.
1019 (precision_for_interval): Same.
1020 (gcc_type_for_interval): Same.
1021 (graphite_create_new_guard): Same.
1022 (compute_bounds_for_level): Same.
1023 (graphite_create_new_loop_guard): Same.
1024 * graphite-interchange.c
1025 (build_linearized_memory_access): Same.
1026 (pdr_stride_in_loop): Same.
1027 (memory_strides_in_loop_1): Same.
1028 (memory_strides_in_loop): Same.
1029 (extend_scattering): Same.
1030 (psct_scattering_dim_for_loop_depth): Same.
1031 (pbb_number_of_iterations): Same.
1033 (debug_iteration_domains): Same.
1035 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1036 (ppl_set_inhomogeneous_gmp): Same.
1037 (ppl_strip_loop): Same.
1038 (ppl_lexico_compare_linear_expressions): Same.
1039 (ppl_read_polyhedron_matrix): Same.
1040 (ppl_max_for_le_pointset): Same.
1042 (ppl_read_polyhedron_matrix): Same.
1043 (tree_int_to_gmp): Same.
1044 (gmp_cst_to_tree): Same.
1045 (ppl_set_inhomogeneous): Same.
1046 (ppl_set_inhomogeneous_tree): Same.
1047 (ppl_set_coef): Same.
1048 (ppl_set_coef_tree): Same.
1049 * graphite-sese-to-poly.c
1050 (build_pbb_scattering_polyhedrons): Same.
1051 (build_scop_scattering): Same.
1052 (scan_tree_for_params_right_scev): Same.
1053 (scan_tree_for_params): Same.
1054 (find_params_in_bb): Same.
1055 (find_scop_parameters): Same.
1056 (add_upper_bounds_from_estimated_nit): Same.
1057 (build_loop_iteration_domains): Same.
1058 (add_condition_to_domain): Same.
1059 (pdr_add_memory_accesses): Same.
1061 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1063 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1064 CLooG's value_* macros to their respective mpz_* counterparts.
1065 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1066 (graphite_create_new_loop_guard): Same.
1067 * graphite-interchange.c (build_linearized_memory_access): Same.
1068 (pdr_stride_in_loop): Same.
1069 (memory_strides_in_loop_1): Same.
1070 (1st_interchange_profitable_p): Same.
1071 * graphite-poly.c (extend_scattering): Same.
1072 (psct_scattering_dim_for_loop_depth): Same.
1073 (pbb_number_of_iterations): Same.
1074 (pbb_number_of_iterations_at_time): Same.
1075 * graphite-poly.h (new_1st_loop): Same.
1076 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1077 (oppose_constraint): Same.
1078 (insert_constraint_into_matrix): Same.
1079 (ppl_set_inhomogeneous_gmp): Same.
1080 (ppl_set_coef_gmp): Same.
1081 (ppl_strip_loop): Same.
1082 (ppl_lexico_compare_linear_expressions): Same.
1083 (ppl_max_for_le_pointset): Same.
1084 (ppl_min_for_le_pointset): Same.
1085 (ppl_build_realtion): Same.
1086 * graphite-ppl.h (gmp_cst_to_tree): Same.
1087 (ppl_set_inhomogeneous): Same.
1088 (ppl_set_inhomogeneous_tree): Same.
1089 (ppl_set_coef): Same.
1090 (ppl_set_coef_tree): Same.
1091 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1092 (build_scop_scattering): Same.
1093 (add_value_to_dim): Same.
1094 (scan_tree_for_params_right_scev): Same.
1095 (scan_tree_for_params_int): Same.
1096 (scan_tree_for_params): Same.
1097 (find_params_in_bb): Same.
1098 (find_scop_parameters): Same.
1099 (add_upper_bounds_from_estimated_nit): Same.
1100 (build_loop_iteration_domains): Same.
1101 (create_linear_expr_from_tree): Same.
1102 (add_condition_to_domain): Same.
1103 (pdr_add_memory_accesses): Same.
1105 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1108 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1109 lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
1110 When converting an unsigned type to signed, double its precision.
1111 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
1112 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
1113 (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
1115 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1118 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1119 build_nonstandard_integer_type.
1120 (gcc_type_for_interval): Same.
1122 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1125 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1126 POINTER_PLUS_EXPR for pointer types.
1128 * gcc.dg/graphite/id-19.c: New.
1130 2010-04-04 Sebastian Pop <sebastian.pop@amd.com>
1133 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
1134 * graphite-clast-to-gimple.c: Include langhooks.h.
1135 (max_signed_precision_type): New.
1136 (max_precision_type): Takes two types as arguments.
1137 (precision_for_value): New.
1138 (precision_for_interval): New.
1139 (gcc_type_for_interval): New.
1140 (gcc_type_for_value): New.
1141 (gcc_type_for_clast_term): New.
1142 (gcc_type_for_clast_red): New.
1143 (gcc_type_for_clast_bin): New.
1144 (gcc_type_for_clast_expr): Split up into several functions.
1145 (gcc_type_for_clast_eq): Rewritten.
1146 (compute_bounds_for_level): New.
1147 (compute_type_for_level_1): New.
1148 (compute_type_for_level): New.
1149 (gcc_type_for_cloog_iv): Removed.
1150 (gcc_type_for_iv_of_clast_loop): Rewritten.
1151 (graphite_create_new_loop): Compute the lower and upper bound types
1152 with gcc_type_for_clast_expr.
1153 (graphite_create_new_loop_guard): Same.
1154 (find_cloog_iv_in_expr): Removed.
1155 (compute_cloog_iv_types_1): Removed.
1156 (compute_cloog_iv_types): Removed.
1157 (gloog): Do not call compute_cloog_iv_types.
1158 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
1160 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
1161 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
1162 (GBB_CLOOG_IV_TYPES): Removed.
1164 * gcc.dg/graphite/run-id-pr42644.c: Call abort.
1166 2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
1168 Reverted this commit: as at this point the loop closed SSA form
1169 is under a canonical form respecting the single argument condition.
1170 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1171 close phi nodes may have more than one argument.
1173 2010-04-01 Sebastian Pop <sebastian.pop@amd.com>
1175 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
1176 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
1177 (detect_commutative_reduction): Same.
1179 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
1181 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1182 close phi nodes may have more than one argument.
1184 2010-03-30 Richard Guenther <rguenther@suse.de>
1185 Zdenek Dvorak <ook@ucw.cz>
1186 Sebastian Pop <sebastian.pop@amd.com>
1189 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
1190 with multiple arguments.
1191 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
1193 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1195 * graphite-dependences.c (print_pddr): Call print_pdr with an
1197 * graphite-poly.c (debug_pdr): Add an extra argument for the
1200 (print_pbb_domain): Same.
1202 (print_scop_context): Same.
1204 (print_cloog): Same.
1205 (debug_pbb_domain): Same.
1209 (debug_scop_context): Same.
1211 (debug_cloog): Same.
1212 (print_scop_params): Same.
1213 (debug_scop_params): Same.
1214 (print_iteration_domain): Same.
1215 (print_iteration_domains): Same.
1216 (debug_iteration_domain): Same.
1217 (debug_iteration_domains): Same.
1218 (print_scattering_function): Same.
1219 (print_scattering_functions): Same.
1220 (debug_scattering_function): Same.
1221 (debug_scattering_functions): Same.
1222 * graphite-poly.h (debug_pdr): Update declaration.
1224 (print_pbb_domain): Same.
1226 (print_scop_context): Same.
1228 (print_cloog): Same.
1229 (debug_pbb_domain): Same.
1233 (debug_scop_context): Same.
1235 (debug_cloog): Same.
1236 (print_scop_params): Same.
1237 (debug_scop_params): Same.
1238 (print_iteration_domain): Same.
1239 (print_iteration_domains): Same.
1240 (debug_iteration_domain): Same.
1241 (debug_iteration_domains): Same.
1242 (print_scattering_function): Same.
1243 (print_scattering_functions): Same.
1244 (debug_scattering_function): Same.
1245 (debug_scattering_functions): Same.
1247 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1249 * graphite-poly.c (print_scattering_function_1): New.
1250 (print_scattering_function): Call it.
1251 (print_scop_params): Remove spaces at the end of lines.
1254 * graphite-poly.h (print_cloog): Declared.
1255 (debug_cloog): Declared.
1257 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1259 * tree-ssa-copy.c: Revert this previous change:
1260 (init_copy_prop): Loop closed phi nodes cancontain more than one
1262 (execute_copy_prop): Revert the previous change: do not call
1263 rewrite_into_loop_closed_ssa.
1265 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1266 Richard Guenther <rguenther@suse.de>
1269 * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can
1270 contain more than one argument.
1271 (execute_copy_prop): Revert the previous change: do not call
1272 rewrite_into_loop_closed_ssa.
1274 * gcc.dg/graphite/id-pr43464.c: Remove compile warning.
1275 * gcc.dg/graphite/id-pr43464-1.c: New.
1277 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1280 * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa
1281 and verify_loop_closed_ssa when copy prop is executed in the LNO.
1283 * gcc.dg/graphite/id-pr43464.c: New.
1285 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1287 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
1289 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
1290 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
1291 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
1292 to switch between adding the IV bump in loop->latch or in loop->header.
1294 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1296 * passes.c (init_optimization_passes): Add pass_copy_prop
1299 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1301 * graphite-poly.c (print_scattering_function): Pretty print following
1304 (print_pbb_domain): Same.
1305 (dump_gbb_cases): Same.
1306 (dump_gbb_conditions): Same.
1309 (print_scop_params): Same.
1310 (print_scop_context): Same.
1312 (print_pbb_body): New.
1313 (lst_indent_to): New.
1314 (print_lst): Start new lines with a #.
1315 * graphite-poly.h (pbb_bb): New.
1316 (pbb_index): Use pbb_bb.
1317 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
1319 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
1321 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1324 * gcc.dg/graphite/id-pr43351.c
1326 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1329 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
1330 call insert_out_of_ssa_copy for default definitions.
1331 * gfortran.dg/graphite/id-pr43354.f: New.
1333 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1336 * gfortran.dg/graphite/pr43349.f: New.
1338 2010-03-11 Sebastian Pop <sebastian.pop@amd.com>
1340 * graphite-clast-to-gimple.c (my_long_long): Defined.
1341 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
1342 * graphite-sese-to-poly.c (my_long_long): Defined.
1343 (scop_ivs_can_be_represented): Use it.
1345 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1347 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
1348 graphite-max-bbs-per-function, and loop-block-tile-size.
1349 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
1351 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
1353 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1355 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
1356 forward declaration.
1357 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
1358 (add_upper_bounds_from_estimated_nit): New.
1359 (build_loop_iteration_domains): Use it.
1361 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1363 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
1365 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1368 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
1369 should be an INTEGER_CST. Also handle CASE_CONVERT.
1370 * gcc.dg/graphite/pr43306.c: New.
1372 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1374 * graphite.c (graphite_initialize): To bound the number of bbs per
1375 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
1376 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
1377 * doc/invoke.texi: Document it.
1379 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1381 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
1382 * graphite-sese-to-poly.h (build_poly_scop): Same.
1384 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1386 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
1387 the number of parameters in the scop. Use as an upper bound
1388 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
1389 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
1390 * doc/invoke.texi: Document it.
1392 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1394 * graphite-sese-to-poly.c (add_param_constraints): Use
1395 lower_bound_in_type and upper_bound_in_type.
1397 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1399 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
1400 instead of unsigned_type_node.
1402 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1403 Reza Yazdani <reza.yazdani@amd.com>
1406 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
1407 on pointer type parameters.
1409 * gcc.dg/graphite/run-id-4.c: New.
1411 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1414 * gcc.dg/graphite/run-id-3.c: New.
1416 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
1417 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1419 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
1420 handle conversions from pointer to integers.
1421 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
1422 induction variable, to be able to work with code generated by CLooG.
1423 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
1424 (build_poly_scop): Bail out if we cannot codegen a loop.
1426 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1428 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
1429 code generation with gloog_error.
1431 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1433 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
1434 Call fold_convert on all the returned values.
1435 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
1436 the type of the resulting expression.
1438 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1440 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
1441 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
1442 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
1444 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1446 * graphite-dependences.c (map_into_dep_poly): Removed.
1447 (dependence_polyhedron_1): Use combine_context_id_scat.
1449 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1451 * graphite-poly.h (struct poly_scattering): Add layout documentation.
1452 (struct poly_bb): Same.
1453 (combine_context_id_scat): New.
1455 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
1458 * sese.c (name_defined_in_loop_p): Return false for default
1461 * gcc.dg/graphite/pr42326.c: New.
1463 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1465 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
1466 and clean up the logic.
1468 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1470 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
1473 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1476 * graphite-scop-detection.c (create_single_exit_edge): Move
1477 the call to find_single_exit_edge to....
1478 (create_sese_edges): ...here. Don't handle multiple edges
1479 exiting the function.
1480 (build_graphite_scops): Don't handle multiple edges
1481 exiting the function.
1483 * gcc.dg/graphite/pr43083.c: New.
1485 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1488 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
1489 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
1491 * gfortran.dg/graphite/pr43097.f: New.
1493 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1494 Manuel López-Ibáñez <manu@gcc.gnu.org>
1497 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
1499 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1502 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
1504 * g++.dg/graphite/pr43026.C: New.
1506 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
1508 * Merge from mainline (154736:156693).
1510 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
1513 * gcc.dg/graphite/pr43012.c: New.
1515 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1517 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
1518 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1520 * g++.dg/graphite/pr42930.C: New.
1522 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1525 * graphite-scop-detection.c (graphite_can_represent_scev): Call
1526 graphite_can_represent_init for MULT_EXPR.
1528 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1532 * graphite-sese-to-poly.c (remove_phi): New.
1533 (translate_scalar_reduction_to_array): Call remove_phi.
1535 * gcc.dg/graphite/pr42530.c: New.
1536 * gcc.dg/graphite/pr42914.c: New.
1538 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1541 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
1542 * graphite-clast-to-gimple.h (gloog): Update declaration.
1543 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
1544 * graphite-poly.h (struct poly_bb): Add missing comments.
1545 (struct scop): Add poly_scop_p field.
1547 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
1548 * graphite.c (graphite_transform_loops): Build the polyhedral
1549 representation for each scop before code generation.
1550 * sese.c (rename_variables_in_operand): Removed.
1551 (rename_variables_in_expr): Return the renamed expression.
1552 (rename_sese_parameters): New.
1553 * sese.h (rename_sese_parameters): Declared.
1555 * gcc.dg/graphite/pr42771.c: New.
1557 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1559 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
1561 * gcc.dg/graphite/block-1.c: Same.
1562 * gcc.dg/graphite/block-3.c: Same.
1563 * gcc.dg/graphite/block-4.c: Same.
1564 * gcc.dg/graphite/block-5.c: Same.
1565 * gcc.dg/graphite/block-6.c: Same.
1566 * gcc.dg/graphite/block-7.c: Same.
1567 * gcc.dg/graphite/interchange-0.c: Same.
1568 * gcc.dg/graphite/interchange-1.c: Same.
1569 * gcc.dg/graphite/interchange-10.c: Same.
1570 * gcc.dg/graphite/interchange-11.c: Same.
1571 * gcc.dg/graphite/interchange-12.c: Same.
1572 * gcc.dg/graphite/interchange-2.c: Same.
1573 * gcc.dg/graphite/interchange-3.c: Same.
1574 * gcc.dg/graphite/interchange-4.c: Same.
1575 * gcc.dg/graphite/interchange-5.c: Same.
1576 * gcc.dg/graphite/interchange-6.c: Same.
1577 * gcc.dg/graphite/interchange-7.c: Same.
1578 * gcc.dg/graphite/interchange-8.c: Same.
1579 * gcc.dg/graphite/interchange-9.c: Same.
1580 * gcc.dg/graphite/interchange-mvt.c: Same.
1582 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1584 * gfortran.dg/graphite/id-19.f: New.
1585 * gfortran.dg/graphite/pr14741.f90: New.
1586 * gfortran.dg/graphite/pr41924.f90: New.
1587 * gfortran.dg/graphite/run-id-2.f90: New.
1589 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1592 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
1593 to unknown_dependence.
1594 (graphite_legal_transform_dr): Handle the unknown_dependence.
1595 (graphite_carried_dependence_level_k): Same.
1597 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1599 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
1601 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
1602 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1605 * graphite-dependences.c (build_lexicographical_constraint): Return
1606 a union of dependence polyhedra.
1607 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
1609 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
1610 * gcc.dg/graphite/block-4.c: Same.
1611 * gcc.dg/graphite/block-7.c: Same.
1612 * gcc.dg/graphite/interchange-12.c: Same.
1613 * gcc.dg/graphite/interchange-mvt.c: Same.
1614 * gfortran.dg/graphite/interchange-1.f: XFAILed.
1615 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
1616 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
1618 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1620 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
1621 the execution check to FAIL. This testcase is miscompiled by Graphite
1622 and the check should be re-enabled.
1623 * gcc.dg/graphite/interchange-mvt.c: Same.
1624 * gcc.dg/graphite/block-0.c: Same.
1625 * gcc.dg/graphite/block-4.c: Same.
1626 * gcc.dg/graphite/block-7.c: Same.
1628 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1630 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
1631 * gcc.dg/graphite/scop-0.c: Fix spaces.
1632 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
1633 * gfortran.dg/graphite/block-2.f: Same.
1634 * gfortran.dg/graphite/block-3.f90: Same.
1635 * gfortran.dg/graphite/block-4.f90: Same.
1636 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
1637 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
1639 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1641 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
1642 PDDR_ORIGINAL_SCATTERING_P.
1643 (pddr_is_empty): Rewritten.
1644 (print_dependence_polyhedron_layout): New.
1647 (build_alias_set_powerset): Moved up.
1648 (poly_drs_may_alias_p): Moved up.
1649 (lexicographically_gt_p): Removed.
1650 (build_lexicographically_gt_constraint): Renamed
1651 build_lexicographical_constraint, reimplemented.
1652 (dependence_polyhedron_1): Simplified parameters.
1653 (dependence_polyhedron): Same. Keep along empty PDDRs
1654 to make efficient use of the cache.
1655 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
1656 (graphite_legal_transform_dr): Rewritten.
1657 (graphite_legal_transform_bb): Pass fewer arguments to
1658 graphite_legal_transform_dr.
1659 (graphite_carried_dependence_level_k): Simplified implementation.
1660 (dot_original_deps_stmt_1): Call dependence_polyhedron.
1661 (dot_transformed_deps_stmt_1): Same.
1662 (dot_original_deps): Same.
1663 (dot_transformed_deps): Same.
1664 * graphite-dependences.h (struct poly_ddr): Added a new field
1665 original_scattering_p.
1666 (PDDR_ORIGINAL_SCATTERING_P): New.
1667 (print_pddr): Declared.
1668 (debug_pddr): Declared.
1669 * graphite-ppl.c: Clarify comment.
1670 * sese.h (print_gimple_bb): Removed unused declaration.
1673 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1675 * g++.dg/graphite/graphite.exp: Rewritten.
1676 * gcc.dg/graphite/graphite.exp: Rewritten.
1677 * gfortran.dg/graphite/graphite.exp: Rewritten.
1678 * gcc.dg/graphite/block-0.c: Added runtime test.
1679 * gcc.dg/graphite/block-1.c: Same.
1680 * gcc.dg/graphite/block-3.c: Same.
1681 * gcc.dg/graphite/block-4.c: Same.
1682 * gcc.dg/graphite/block-5.c: Same.
1683 * gcc.dg/graphite/block-6.c: Same.
1684 * gcc.dg/graphite/block-7.c: Same.
1685 * gcc.dg/graphite/interchange-0.c: Same.
1686 * gcc.dg/graphite/interchange-1.c: Same.
1687 * gcc.dg/graphite/interchange-10.c: Same.
1688 * gcc.dg/graphite/interchange-11.c: Same.
1689 * gcc.dg/graphite/interchange-12.c: Same.
1690 * gcc.dg/graphite/interchange-2.c: Same.
1691 * gcc.dg/graphite/interchange-3.c: Same.
1692 * gcc.dg/graphite/interchange-4.c: Same.
1693 * gcc.dg/graphite/interchange-5.c: Same.
1694 * gcc.dg/graphite/interchange-6.c: Same.
1695 * gcc.dg/graphite/interchange-7.c: Same.
1696 * gcc.dg/graphite/interchange-8.c: Same.
1697 * gcc.dg/graphite/interchange-9.c: Same.
1698 * gcc.dg/graphite/interchange-mvt.c: Same.
1699 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
1701 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1703 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
1706 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1708 * common.opt: Add -fgraphite-cloog-opts.
1709 * graphite-clast-to-gimple.c (set_cloog_options): Same.
1710 * opts.c (decode_options): Same.
1712 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1714 * gcc.dg/graphite/id-17.c: New.
1715 * gcc.dg/graphite/pr41888.c: New.
1716 * gcc.dg/graphite/scop-22.c: New.
1717 * gfortran.dg/graphite/pr40982.f90: New.
1719 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1721 * graphite-dependences.c: Clarify comments.
1722 (build_pddr): Add an extra parameter direction.
1723 (graphite_legal_transform_dr): Use build_pddr.
1724 (dot_original_deps_stmt_1): Update use of build_pddr.
1725 (dot_transformed_deps_stmt_1): Same.
1726 (dot_original_deps): Same.
1727 (dot_transformed_deps): Same.
1729 * gcc.dg/graphite/interchange-12.c: New.
1730 * gcc.dg/graphite/block-7.c: New.
1732 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1734 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
1735 (pddr_transformed_scattering): Removed.
1736 (graphite_legal_transform_dr): Use build_pddr.
1737 (dot_original_deps_stmt_1): Same.
1738 (dot_transformed_deps_stmt_1): Same.
1739 (dot_original_deps): Same.
1740 (dot_transformed_deps): Same.
1742 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1744 * graphite-dependences.c (lexicographically_gt_p): Add comments.
1745 (build_lexicographically_gt_constraint): Same.
1746 (dependence_polyhedron_1): Same.
1747 (dependence_polyhedron): Same.
1749 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1751 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
1752 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
1753 (lexicographically_gt_p): Change type of direction to int.
1754 (build_lexicographically_gt_constraint): Same.
1755 (dependence_polyhedron_1): Same.
1756 (dependence_polyhedron): Same.
1757 (pddr_original_scattering): Use integers for direction.
1758 (pddr_transformed_scattering): Same.
1759 (graphite_legal_transform_dr): Same.
1760 (graphite_carried_dependence_level_k): Same.
1762 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1764 * graphite-dependences.c (build_pairwise_constraint): Renamed
1765 ppl_build_relation. Moved...
1766 (dr_equality_constraints): Use ppl_build_relation.
1767 (build_pairwise_scheduling_equality): Same.
1768 (build_pairwise_scheduling_inequality): Same.
1769 * graphite-ppl.c (ppl_build_relation): ...here.
1770 * graphite-ppl.h (ppl_build_relation): Declared.
1772 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
1775 * graphite-clast-to-gimple.c (gloog_error): New static variable.
1776 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
1777 Set gloog_error when such an expression failed to be built.
1778 (translate_clast): Early return when gloog_error is set.
1779 (gloog): Clear gloog_error. When gloog_error is set, call
1780 set_ifsese_condition to enable the original code. Return the status
1781 of the code generation based on gloog_error.
1782 * sese.c (set_ifsese_condition): New.
1783 * sese.h (set_ifsese_condition): Declared.
1785 * g++.dg/graphite/pr42681.C: New.
1787 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
1790 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
1791 rename_nb_iterations.
1792 * sese.c (rename_variables_in_operand): New.
1793 (rename_variables_in_expr): New.
1794 (rename_nb_iterations): New.
1795 (sese_adjust_liveout_phis): Update the rename_map.
1796 * sese.h (rename_nb_iterations): Declared.
1797 * tree-scalar-evolution.c (scev_reset_htab): New.
1798 (scev_reset): Call scev_reset_htab.
1799 * tree-scalar-evolution.h (scev_reset_htab): Declared.
1801 * gfortran.dg/graphite/pr42732.f: New.
1803 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
1806 * graphite-clast-to-gimple.c: Fix formatting.
1807 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
1808 (expr_defined_in_loop_p): New.
1809 (add_loop_exit_phis): Also handle full expressions: remove from
1810 the rename_map the expressions defined in the loop that we're closing.
1812 * gfortran.dg/graphite/pr42393-1.f90: New.
1813 * gfortran.dg/graphite/pr42393.f90: Add new flags
1814 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
1815 make this testcase useful in the Graphite branch.
1817 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
1819 * graphite-scop-detection.c (exclude_component_ref): Removed.
1820 (is_simple_operand): Removed.
1821 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
1823 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1826 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
1827 the array indexing of ADDR_EXPRs.
1829 * gcc.dg/graphite/pr42221.c: New.
1831 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1834 * graphite.c (graphite_finalize): Call scev_reset.
1835 (graphite_transform_loops): Do not call scev_reset between the code
1836 generation of scops.
1838 * gcc.dg/graphite/pr42521.c: New.
1840 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1842 * graphite-interchange.c (memory_stride_in_loop): Renamed
1844 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
1845 (memory_strides_in_loop): Memoize the memory strides per loop.
1846 (lst_interchange_profitable_p): Do not initialize to zero the memory
1848 * graphite-poly.h (struct lst): Add a field memory_strides.
1849 (LST_LOOP_MEMORY_STRIDES): New.
1850 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
1851 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
1853 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1855 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
1856 memory_strides_in_loop. Gather memory strides on a whole loop.
1857 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
1858 (lst_interchange_profitable_p): Removed.
1859 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
1861 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1863 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1864 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
1865 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
1866 Remove context_loop and level.
1868 2010-01-07 Richard Guenther <rguenther@suse.de>
1870 PR tree-optimization/42641
1871 * sese.c (rename_map_elt_info): Use the SSA name version, do
1874 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
1876 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
1877 blocked" only when both the strip mine and the interchange have
1880 * gcc.dg/graphite/block-2.c: Removed.
1881 * gcc.dg/graphite/block-3.c: Add scan pattern.
1882 * gcc.dg/graphite/block-4.c: Same.
1883 * gcc.dg/graphite/block-5.c: Same.
1884 * gcc.dg/graphite/block-6.c: Same.
1886 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
1888 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
1889 before allocating a new one.
1890 (copy_renames): Check that slot is not NULL.
1891 (mark_bb_with_pbb): Same.
1892 (compute_cloog_iv_types_1): Same.
1893 * graphite-interchange.c (lst_perfect_nestify): Free the before,
1894 nest, and after LSTs.
1895 (lst_try_interchange_loops): Same.
1897 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
1900 * graphite-interchange.c (lst_try_interchange_loops): Do not return
1901 the before, nest, and after LSTs.
1902 (lst_try_interchange): Removed.
1903 (lst_interchange_select_inner): Do not iterate over the LSTs if they
1905 (lst_interchange_select_outer): Apply interchange on the outer loop
1906 until there are no more changes in the inner loops.
1908 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1910 Revert patch fixing PR middle-end/42221.
1912 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1915 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
1918 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
1920 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1923 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
1924 that contain only one statement.
1926 * gfortran.dg/graphite/pr42180.f90: New.
1928 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1931 * gfortran.dg/graphite/pr42393.f90: New.
1933 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1936 * gfortran.dg/graphite/pr42186.f90: New.
1938 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1941 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
1942 Insert the reduction copy in the same block as the phi node.
1943 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
1945 * gcc.dg/graphite/pr42205-1.c: New.
1946 * gcc.dg/graphite/pr42205-2.c: New.
1948 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1951 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
1952 the array indexing of ADDR_EXPRs.
1954 * gcc.dg/graphite/pr42221.c: New.
1956 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1960 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
1961 index. Call lst_interchange_select_inner only once.
1962 (lst_interchange_select_inner): Update use of lst_try_interchange.
1963 (lst_interchange_select_outer): Update.
1965 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
1969 * graphite-interchange.c (lst_try_interchange): Do not increment the
1970 the OUTER index when there is no AFTER kernel. Do not increment the
1971 OUTER index for after processing the AFTER kernel.
1972 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
1973 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
1974 index. Do not pass to lst_interchange_select_inner the OUTER index.
1975 (scop_do_interchange): Update use of lst_interchange_select_outer.
1977 * gfortran.dg/graphite/graphite.exp
1978 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
1979 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
1980 the graphite dump file.
1981 * gfortran.dg/graphite/interchange-2.f: Same.
1982 * gfortran.dg/graphite/pr42334-1.f: New.
1984 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
1988 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
1990 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
1991 (lst_try_interchange): Reimplemented.
1992 (lst_interchange_select_inner): Same.
1993 (lst_do_interchange): Renamed lst_interchange_select_outer.
1995 (scop_do_interchange): Update use of lst_interchange_select_outer.
1997 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
1998 * gcc.dg/graphite/block-0.c: Un-XFAILed.
1999 * gcc.dg/graphite/pr42211.c: New.
2000 * gfortran.dg/graphite/pr42334.f90: New.
2002 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
2005 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
2006 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
2008 * gfortran.dg/graphite/pr42181.f90: New.
2010 2009-12-12 Sebastian Pop <sebpop@gmail.com>
2013 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
2014 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
2015 (detect_commutative_reduction_arg): Simplified.
2016 (detect_commutative_reduction): Early return when the argument of
2017 the close phi is not of an SSA_NAME.
2019 * gcc.dg/graphite/pr42284.c: New.
2021 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
2023 * dbgcnt.def (graphite_scop): New counter.
2024 * graphite.c: Include dbgcnt.h
2025 (graphite_transform_loops): Use new counter to limit transformations.
2027 2009-12-08 Sebastian Pop <sebpop@gmail.com>
2030 * graphite-scop-detection.c (graphite_can_represent_init): Also
2031 handle more complex MULT_EXPRs containing parameters by recursion
2034 * gfortran.dg/graphite/pr42285.f90: New.
2036 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
2038 * g++.dg/graphite/pr42130.C: Fix type.
2040 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
2042 * g++.dg/graphite/pr42130.C: Correct testcase.
2044 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
2046 * Merge from mainline (154493:154734).
2048 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
2050 * Merge from mainline (151362:154491).
2052 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
2054 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
2055 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
2057 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2060 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
2061 translate_clast_for_loop): New.
2062 (translate_clast_for): Add a condition around the loop, to do not
2063 execute loops with zero iterations.
2064 * g++.dg/graphite/pr42130.C: New.
2065 * gcc.dg/graphite/pr35356-2.c: Adapt.
2067 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2069 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
2070 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
2071 Remove context_loop and level.
2073 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2075 * graphite-clast-to-gimple.c (translate_clast_user,
2076 translate_clast_for, translate_clast_guard): Simplify and move common
2077 elements to translate_clast().
2078 (translate_clast): Simplify and get common elements.
2080 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2082 * graphite-clast-to-gimple.c (translate_clast_user,
2083 translate_clast_for, translate_clast_guard): Split out of
2086 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
2088 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
2089 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
2090 debug_clast_name_indexes_1, debug_clast_name_indexes,
2091 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
2092 (clast_name_to_gcc, clast_to_gcc_expression,
2093 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
2094 gcc_type_for_clast_eq, graphite_translate_clast_equation,
2095 graphite_create_guard_cond_expr, graphite_create_new_loop,
2096 translate_clast): Add params_index.
2097 (initialize_cloog_names): Create parameter strings from scratch, do
2098 not reference other strings.
2099 (create_params_index): New.
2100 (gloog): Initialize params_index.
2101 * graphite-scop-detection (free_scops_1): Removed.
2102 (limit_scops): Use normal free_scops.
2103 * graphite-sese-to-poly.c (save_var_names): Removed.
2104 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
2105 and SESE_PARAMS_INDEX.
2106 * sese.c (new_sese, free_sese): Dito.
2107 * sese.h (struct sese): Remove params_index, params_names.
2108 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
2110 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2112 Revert the following patch from 2009-09-14:
2113 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
2114 tree-scalar-evolution.h, and then tree-data-ref.h.
2115 * graphite-clast-to-gimple.c: Same.
2116 * graphite-dependences.c: Same.
2117 * graphite-interchange.c: Same.
2118 * graphite-poly.c: Same.
2119 * graphite-scop-detection.c: Same.
2120 * graphite-sese-to-poly.c: Same.
2122 * lambda-code.c: Same.
2123 * matrix-reorg.c: Same.
2124 * tree-data-ref.c: Same.
2125 * tree-if-conv.c: Same.
2126 * tree-loop-distribu: Same.: Same.
2127 * tree-loop-linear.c: Same.
2128 * tree-parloops.c: Same.
2129 * tree-predcom.c: Same.
2130 * tree-vect-patterns.c: Same.
2132 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2134 Revert patch from 2009-09-14.
2135 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
2136 passes at -O1 and below.
2138 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2141 * gcc.dg/graphite/pr40281.c: New.
2143 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
2144 evolutions should not variate in inner loops.
2146 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2149 * gfortran.dg/graphite/pr42050.f90: New.
2151 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2153 * graphite-interchange.c (memory_strides_in_loop_depth): New.
2154 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
2156 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2158 * graphite-blocking.c (scop_do_block): New.
2159 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
2160 * graphite-poly.h (scop_do_block): Declared.
2162 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2164 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
2165 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
2166 to transform depth into the time_depth before calling
2167 pbb_number_of_iterations_at_time.
2168 (lst_do_strip_mine): Use a scalar variable instead of recomputing
2171 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2173 Reverted the patch for "scattering permutations" from 2009-10-28.
2175 * graphite-poly.c (print_permutation): New.
2176 (debug_permutation): New.
2177 (new_poly_bb): Initialize PBB_PERMUTATION.
2178 (free_poly_bb): Free PBB_PERMUTATION.
2179 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2180 (struct pbb_permutation_elt): New.
2181 (PBB_PERMUTATION_ELT_STRIDE): New.
2182 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2183 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2184 (new_pbb_permutation_elt): New.
2185 (pbb_permutation_elt_free): New.
2186 (struct poly_bb): Add field permutation.
2187 (PBB_PERMUTATION): New.
2188 (print_permutation): Declared.
2189 (debug_permutation): Declared.
2191 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2193 * graphite-interchange.c (build_partial_difference): New.
2194 (memory_stride_in_loop): Refactored the computation of
2195 equality constraints into build_partial_difference function.
2196 Added support for debugging stride computations.
2198 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2200 * graphite-clast-to-gimple.c (gloog): Free if_region,
2201 if_region->true_region, and if_region->region.
2202 * sese.c (if_region_set_false_region): Free if_region->false_region.
2203 (create_if_region_on_edge): Do not use GGC_NEW.
2204 (move_sese_in_condition): Remove useless initialization.
2206 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2208 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
2209 for the loops created by the loop distribution. Do not modify the
2211 (lst_try_interchange_loops): Same. Use a temporary LST for the
2212 transformed schedule. Call lst_update_scattering before data
2213 dependence analysis.
2214 (lst_try_interchange): Pass an extra parameter INDEX.
2215 (lst_do_interchange_1): New.
2216 (lst_do_interchange): Call lst_do_interchange_1.
2217 (scop_do_interchange): Call lst_update_scattering.
2218 * graphite-poly.c (apply_poly_transforms): Do not call
2219 lst_update_scattering.
2220 * graphite-poly.h (lst_pred): New.
2222 (lst_find_first_pbb): Return NULL when not found.
2224 (lst_insert_in_sequence): Allow LST1 to be NULL.
2226 (lst_substitute_3): New.
2227 * gcc.dg/graphite/interchange-1.c: XFail.
2228 * gcc.dg/graphite/interchange-8.c: XFail.
2229 * gcc.dg/graphite/interchange-11.c: XFail.
2231 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2233 * graphite-interchange.c (lst_perfectly_nested_p): New.
2234 (lst_perfect_nestify): New.
2235 (lst_try_interchange_loops): Call store_lst_schedule,
2236 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
2237 (scop_do_interchange): Avoid redundant legality test.
2238 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
2239 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
2240 * graphite-poly.h (psct_static_dim): New.
2241 (lst_dewey_number_at_depth): New.
2242 (lst_find_pbb): Restructured.
2243 (lst_find_first_pbb): Restructured.
2244 (lst_find_last_pbb): New.
2245 (lst_contains_p): New.
2246 (lst_contains_pbb): New.
2247 (lst_create_nest): New.
2248 (lst_remove_from_sequence): New.
2249 (pbb_update_scattering): New.
2250 (lst_update_scattering_under): New.
2251 (lst_update_scattering_seq): New.
2252 (lst_update_scattering): New.
2253 (lst_insert_in_sequence): New.
2254 (lst_distribute_lst): New.
2255 (lst_remove_all_before_including_pbb): New.
2256 (lst_remove_all_before_excluding_pbb): New.
2258 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2260 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
2261 get_loop_exit_edges.
2263 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2265 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
2267 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2269 * graphite-poly.c (print_permutation): New.
2270 (debug_permutation): New.
2271 (new_poly_bb): Initialize PBB_PERMUTATION.
2272 (free_poly_bb): Free PBB_PERMUTATION.
2273 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2274 (struct pbb_permutation_elt): New.
2275 (PBB_PERMUTATION_ELT_STRIDE): New.
2276 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2277 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2278 (new_pbb_permutation_elt): New.
2279 (pbb_permutation_elt_free): New.
2280 (struct poly_bb): Add field permutation.
2281 (PBB_PERMUTATION): New.
2282 (print_permutation): Declared.
2283 (debug_permutation): Declared.
2285 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2287 * graphite-clast-to-gimple.c (gloog): Do not call
2288 sese_reset_aux_in_loops.
2289 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
2290 extra argument for domains. Do not use loop->aux.
2291 (build_scop_iteration_domain): Initialize and free domains, pass it
2292 to build_loop_iteration_domains and extract the information from
2293 domains. Do not use loop->aux.
2294 * sese.c (sese_reset_aux_in_loops): Removed.
2295 * sese.h (sese_reset_aux_in_loops): Removed.
2297 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2299 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
2300 (dependency_in_loop_p): Same.
2301 (translate_clast): Do not use loop->aux. Initialize
2302 loop->can_be_parallel.
2303 (mark_loops_parallel): Removed.
2304 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
2305 * graphite.c (free_aux_in_new_loops): Removed.
2306 (graphite_finalize): Do not call free_aux_in_new_loops.
2307 (graphite_transform_loops): Do not call mark_loops_parallel.
2309 2009-10-26 Li Feng <nemokingdom@gmail.com>
2311 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
2312 (translate_clast): Pass an extra parameter LEVEL.
2313 Call get_scattering_level.
2314 * graphite-clast-to-gimple.h (get_scattering_level): New.
2316 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2318 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
2319 * cfgloop.h (struct loop): New field single_iv.
2321 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
2322 loop->aux anymore: use loop->single_iv.
2323 (graphite_loop_normal_form): Moved...
2324 (build_graphite_loop_normal_form): Removed.
2325 (gloog): Do not call build_graphite_loop_normal_form.
2326 (free_aux_in_new_loops): Moved...
2327 (mark_loops_parallel): Restructure.
2328 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
2329 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
2330 (scop_canonicalize_loops): New.
2331 (build_poly_scop): Call scop_canonicalize_loops.
2332 * graphite.c (free_aux_in_new_loops): ...here.
2334 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2336 * g++.dg/graphite/graphite.exp: Add the same rules as in
2337 gcc.dg/graphite/graphite.exp.
2339 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2341 * g++.dg/graphite/id-1.C: New.
2343 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2345 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
2347 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
2348 (rewrite_phi_out_of_ssa): Same.
2349 (rewrite_cross_bb_scalar_deps): Same.
2350 (translate_scalar_reduction_to_array): Same.
2352 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2354 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
2357 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2359 * graphite-sese-to-poly.c (dump_alias_graphs): New.
2360 (build_scop_drs): Call dump_alias_graphs.
2362 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2364 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
2365 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2366 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
2367 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2368 * graphite-poly.h (free_lst): New.
2369 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
2370 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
2372 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2374 * graphite-poly.h (struct scop): Add a field saved_schedule.
2375 (SCOP_SAVED_SCHEDULE): New.
2376 (store_lst_schedule): New.
2377 (restore_lst_schedule): New.
2378 (store_scattering): Call store_lst_schedule.
2379 (restore_scattering): Call restore_lst_schedule.
2381 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2383 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
2384 (pdr_add_alias_set): Same.
2385 (build_poly_dr): Same.
2386 (build_alias_set_optimal_p): Same.
2387 (build_base_obj_set_for_drs): Same. Do not store the result of
2390 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2392 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
2393 all_components_are_cliques to 1.
2395 2009-10-20 Li Feng <nemokingdom@gmail.com>
2397 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
2399 (pdr_add_alias_set): Update retrieving alias_set_num.
2400 (build_poly_dr): Update retrieving dr_base_object_set.
2401 (partition_drs_to_sets): Remove.
2402 (build_alias_set_optimal_p): New.
2403 (build_alias_set_for_drs): Rename.
2404 (build_scop_drs): Update.
2405 * graphite-sese-to-poly.h (struct base_alias_pair): New.
2406 (ALIAS_SET_INDEX): Remove.
2407 (BASE_OBJECT_SET_INDEX): Remove.
2409 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2411 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
2413 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2415 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
2416 loop upper bounds for 1-element arrays at end of structures.
2417 * tree-flow.h (array_at_struct_end_p): Declared.
2418 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
2420 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2422 * g++.dg/graphite/pr41305.C: New.
2424 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
2426 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
2427 construction of parameter constraints from loop iteration analysis.
2428 * gcc.dg/graphite/run-id-2.c: New test.
2430 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2432 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
2435 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2437 * graphite-dependences.c (dependence_polyhedron_1): Remove
2438 unused gdim dimensions from the DDR polyhedron.
2440 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2442 * graphite-dependences.c (pddr_transformed_scattering): New.
2443 (dot_original_deps_stmt_1): New.
2444 (dot_transformed_deps_stmt_1): New.
2445 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
2446 dot_transformed_deps_stmt_1.
2447 (dot_original_deps): New.
2448 (dot_transformed_deps): New.
2449 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
2451 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2453 * graphite-dependences.c (reduction_dr_1): Remove wrong
2454 assert: reduction BBs can have multiple reduction writes
2455 to memory. interchange-3.f90 is an example.
2457 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2459 * gfortran.dg/graphite/interchange-3.f90: New.
2461 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2463 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
2465 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2467 * graphite-dependences.c (dependence_polyhedron_1): Add the
2468 context to the dependence polyhedron.
2470 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2472 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
2473 PBB_PDR_DUPLICATES_REMOVED.
2474 (new_poly_bb): Same.
2476 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2478 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
2480 (build_loop_iteration_domains): Extract bounds on parameters
2481 based on the data size.
2482 (build_scop_context): Do not initialize SCOP_CONTEXT;
2483 add new constraints.
2485 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2487 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
2488 * graphite-ppl.h (graphite-ppl.h): Declared.
2490 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2492 * graphite-ppl.c (ppl_print_linear_expr): New.
2493 (debug_ppl_linear_expr): New.
2494 * graphite-ppl.h (ppl_print_linear_expr): Declared.
2495 (debug_ppl_linear_expr): Declared.
2497 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2499 * graphite-interchange.c: Fix comments.
2500 * gcc.dg/graphite/block-1.c: Fix comments.
2502 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2504 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
2505 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
2507 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2509 Reapply the patch from Alexander Monakov that disappeared during
2510 the last merges from trunk.
2512 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
2514 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2515 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2517 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2519 * graphite-interchange.c (memory_stride_in_loop): The depth
2520 argument corresponds to a dynamic time dimension, so use
2521 psct_dynamic_dim to refer to the transformed scattering dimension.
2523 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2525 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
2527 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2529 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
2531 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
2532 the root of the LST.
2533 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
2535 (print_lst): Print the root of LST in a different format.
2536 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
2538 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2540 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
2542 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2544 * doc/passes.texi: Document the Graphite infrastructure.
2546 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2548 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
2549 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
2550 and check the SSA representation.
2552 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
2554 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2556 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
2558 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2560 * gcc.dg/graphite/interchange-11.c: New.
2562 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2564 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
2566 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2568 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2569 Add -fno-loop-strip-mine and -fno-loop-interchange.
2570 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
2571 -fno-loop-strip-mine.
2572 * gfortran.dg/graphite/graphite.exp: Same.
2574 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2576 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2577 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
2578 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
2579 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
2580 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
2581 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
2582 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
2583 DEFAULT_FLAGS_GRAPHITE_SCOP.
2584 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
2585 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
2587 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2589 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
2591 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2592 Sebastian Pop <sebastian.pop@amd.com>
2594 * graphite-interchange.c (build_linearized_memory_access): Pass an
2595 offset as parameter.
2596 (memory_stride_in_loop): Include transform scattering in the
2597 access functions to be able to querry the strides in the
2599 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
2600 not the psct_iterator_dim.
2602 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2604 * graphite-blocking.c (pbb_do_strip_mine): Removed.
2605 (lst_do_strip_mine_loop): New.
2606 (lst_do_strip_mine): New.
2607 (scop_do_strip_mine): Call lst_do_strip_mine.
2608 * graphite-poly.h (lst_add_loop_under_loop): New.
2609 (lst_find_first_pbb): New.
2611 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2613 * graphite-poly.c (loop_to_lst): Fix LST creation.
2615 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2617 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
2618 sizeof(unsigned long) to make it run on 32bit systems.
2620 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2622 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
2625 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2627 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
2629 (write_alias_graph_to_ascii_dot): New.
2630 (write_alias_graph_to_ascii_ecc): Ditto.
2631 (partition_drs_to_sets): Add testing of optimality of current method
2632 which assigns alias numbers according to DFS Comopnent number. used
2633 as heuristic for the upcoming ECC algorithm.
2634 (build_scop_drs): Write to file also with the ecc and dot format.
2636 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2638 * gfortran.dg/graphite/interchange-1.f: XFail.
2640 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2642 * graphite.c (graphite_initialize): Do not handle functions with
2643 more than 100 basic blocks.
2645 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2647 * graphite-blocking.c (pbb_do_strip_mine): Use
2648 PARAM_LOOP_BLOCK_TILE_SIZE.
2650 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2652 * graphite-poly.c (dot_lst_1): New.
2654 * graphite-poly.h (dot_lst): Declared.
2656 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2658 * graphite-dependences.c (dot_deps_stmt_1): New.
2659 (dot_deps_stmt): New.
2660 * graphite-dependences.h (dot_deps_stmt): Declared.
2662 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2664 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
2665 not replace cross BB scalar dependences ending on PHI nodes.
2666 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
2668 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2670 * graphite-poly.c (apply_poly_transforms): Implement the high
2671 level driver for flag_loop_block.
2672 * opts.c (decode_options): Enable flag_loop_block at -O2.
2673 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
2676 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
2678 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2681 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2683 * graphite-poly.h (lst_find_pbb): New.
2684 (find_lst_loop): New.
2686 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2688 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
2689 * graphite-poly.h (struct scop): Remove dep_graph field.
2690 (SCOP_DEP_GRAPH): Removed.
2692 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2694 * graphite-poly.h (copy_lst): Do full copy of LST.
2696 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
2698 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
2699 when the loop stride is zero.
2701 * gcc.dg/graphite/id-16.c: New.
2703 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2705 * graphite-dependences.c (reduction_dr_1): New.
2706 (reduction_dr_p): New.
2707 (graphite_legal_transform_dr): Call reduction_dr_p.
2708 (reduction_ddr): Renamed reduction_ddr_p.
2709 * graphite-poly.h (same_pdr_p): New.
2710 (number_of_write_pdrs): New.
2711 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
2712 (split_reduction_stmt): Do not split reduction statements
2713 when there are no writes to memory.
2714 (translate_scalar_reduction_to_array_for_stmt): Insert the
2715 memory reduction statement just after the scalar reduction statement.
2717 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
2719 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
2720 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
2722 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2724 * graphite-interchange.c (lst_apply_interchange): New.
2725 (lst_interchange_profitable_p): New.
2726 (lst_try_interchange_loops): New.
2727 (lst_try_interchange): New.
2728 (lst_do_interchange): New.
2729 (pbb_do_interchange): Removed.
2730 (scop_do_interchange): Call lst_do_interchange.
2732 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2734 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
2735 SCOP_TRANSFORMED_SCHEDULE.
2740 * graphite-poly.h (lst_p): New.
2743 (LST_LOOP_FATHER): New.
2746 (scop_to_lst): Declared.
2747 (print_lst): Declared.
2748 (debug_lst): Declared.
2749 (new_lst_loop): New.
2750 (new_lst_stmt): New.
2753 (lst_dewey_number): New.
2754 (struct scop): Add original_schedule and transformed_schedule fields.
2755 (SCOP_ORIGINAL_SCHEDULE): New.
2756 (SCOP_TRANSFORMED_SCHEDULE): New.
2757 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
2759 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2761 * graphite-dependences.c (reduction_ddr): New.
2762 (graphite_legal_transform_bb): Call reduction_ddr.
2763 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
2764 Initialize PBB_IS_REDUCTION.
2765 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
2766 (PBB_IS_REDUCTION): New.
2767 (new_poly_bb): Update declaration.
2768 * graphite-scop-detection.h (build_scop_bbs): Removed.
2769 (nb_reductions_in_loop): Removed.
2770 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
2771 parameter for reductions.
2772 (try_generate_gimple_bb): Update call to new_poly_bb.
2773 (build_scop_bbs_1): Same.
2774 (build_scop_bbs): Same.
2775 (gsi_for_phi_node): New.
2776 (scalar_close_phi_node_p): Remove gcc_assert.
2777 (split_reduction_stmt): New.
2778 (is_reduction_operation_p): New.
2779 (phi_contains_arg): New.
2780 (follow_ssa_with_commutative_ops): New.
2781 (detect_commutative_reduction_arg): New.
2782 (detect_commutative_reduction_assign): New.
2783 (follow_inital_value_to_phi): New.
2784 (edge_initial_value_for_loop_phi): New.
2785 (initial_value_for_loop_phi): New.
2786 (detect_commutative_reduction): New.
2787 (translate_scalar_reduction_to_array_for_stmt): New.
2788 (insert_copyout): New.
2789 (insert_copyin): New.
2790 (translate_scalar_reduction_to_array): New.
2791 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
2792 (rewrite_commutative_reductions_out_of_ssa_loop): New.
2793 (rewrite_commutative_reductions_out_of_ssa): New.
2794 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
2795 * sese.h (split_region_for_bb): New.
2797 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
2798 * gcc.dg/graphite/interchange-1.c: Fix format.
2799 * gcc.dg/graphite/interchange-10.c: New.
2801 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2803 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
2806 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2808 * graphite-sese-to-poly.c (scev_analyzable_p): New.
2809 (rewrite_cross_bb_scalar_dependence): New.
2810 (rewrite_cross_bb_scalar_deps): New.
2811 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
2812 Call rewrite_cross_bb_scalar_deps.
2814 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2816 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
2817 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
2820 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2822 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
2823 * graphite-interchange.c (pbb_do_interchange): Same.
2824 * graphite-poly.c (print_scattering_function): Same.
2826 * graphite-poly.h (pbb_loop): New.
2827 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
2829 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
2831 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
2833 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
2835 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
2836 so don't pass a pointer to it.
2837 (build_alias_set_for_drs): Same.
2838 (build_base_obj_set_for_drs): Same.
2839 (build_scop_drs): Same.
2841 2009-09-26 Li Feng <nemokingdom@gmail.com>
2843 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
2844 the alias graph of data references.
2846 2009-09-25 Li Feng <nemokingdom@gmail.com>
2848 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
2849 (build_scop_drs): When debugging, write the alias graph to file,
2850 otherwise, should be disabled.
2852 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2854 * Merge from mainline (151310:151361).
2856 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2858 * Merge from mainline (151171:151310).
2860 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2862 * Merge from mainline (151171:151806).
2864 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2866 * Revert the last commit.
2868 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2870 * Merge from mainline (151171:151819).
2872 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2874 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
2875 (is_simple_operand): Remove call to stmt_simple_memref_p.
2876 (stmt_simple_for_scop_p): Update call to is_simple_operand.
2878 2009-09-17 David Edelsohn <edelsohn@gnu.org>
2880 * gcc.dg/graphite/interchange-mvt.c: New File.
2881 * gcc.dg/graphite/scop-dsyrk.c: New File.
2882 * gcc.dg/graphite/scop-dsyr2k.c: New File.
2883 * gcc.dg/graphite/scop-mvt.c: New File.
2884 * gcc.dg/graphite/scop-sor.c: New File.
2886 2009-09-17 Li Feng <nemokingdom@gmail.com>
2888 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
2889 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
2890 (graphite_carried_dependence_level_k): Ditto.
2891 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
2892 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
2893 (new_poly_dr): Adjust declaration.
2894 * graphite-sese-to-poly.c (free_data_refs_aux): New.
2895 (free_gimple_bb): Added free_data_refs_aux.
2896 (build_poly_dr): Add dr_base_object_set.
2897 (partition_drs_to_sets): New.
2898 (dr_same_base_object_p): New.
2899 (build_alias_set_for_drs): New.
2900 (build_base_object_set_for_drs): New.
2901 (build_scop_drs): Add build_base_obj_set_for_drs.
2902 * graphite-sese-to-poly.h: Added #define for alias set number index and
2903 base object set index.
2904 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
2905 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
2907 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
2909 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2910 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2912 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2914 * graphite-sese-to-poly.c (struct irp_data): Removed.
2915 (idx_record_params): Removed.
2916 (find_params_in_bb): Scan for parameters the access functions; don't
2917 parse the tree representation.
2919 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2921 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
2922 passes at -O1 and below.
2924 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2926 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
2927 tree-scalar-evolution.h, and then tree-data-ref.h.
2928 * graphite-clast-to-gimple.c: Same.
2929 * graphite-dependences.c: Same.
2930 * graphite-interchange.c: Same.
2931 * graphite-poly.c: Same.
2932 * graphite-scop-detection.c: Same.
2933 * graphite-sese-to-poly.c: Same.
2935 * lambda-code.c: Same.
2936 * matrix-reorg.c: Same.
2937 * tree-data-ref.c: Same.
2938 * tree-if-conv.c: Same.
2939 * tree-loop-distribu: Same.: Same.
2940 * tree-loop-linear.c: Same.
2941 * tree-parloops.c: Same.
2942 * tree-predcom.c: Same.
2943 * tree-vect-patterns.c: Same.
2945 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
2947 Partially revert the previous patch, except the following.
2948 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
2949 as parameters the operands of the not expression.
2951 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2953 * tree-scalar-evolution.c (instantiate_scev_assign): New.
2954 Do not call analyze_scalar_evolution on assignments.
2955 (instantiate_scev_phi): Call analyze_scalar_evolution.
2956 (instantiate_scev_name): Call instantiate_scev_assign and
2957 instantiate_scev_phi.
2958 (instantiate_scev_not): Adapted to pass as parameters the operands
2959 of the not expression.
2961 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2963 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
2964 to pass as parameters the operands of the binary expression.
2966 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2968 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
2969 instantiate_scev_not. Handle NEGATE_EXPR.
2970 (instantiate_scev_r): Handle NEGATE_EXPR.
2972 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2974 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
2976 (instantiate_scev_r): Move code in instantiate_scev_2
2977 and instantiate_scev_1.
2979 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2981 * tree-scalar-evolution.c (instantiate_scev_3): New.
2982 (instantiate_scev_1): Move code in instantiate_scev_3.
2984 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2986 * tree-scalar-evolution.c (instantiate_scev_poly): New.
2987 (instantiate_scev_1): Move code in instantiate_scev_poly.
2989 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2991 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
2992 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
2994 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2996 * tree-scalar-evolution.c (instantiate_scev_convert): New.
2997 (instantiate_scev_1): Move code in instantiate_scev_convert.
2999 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3001 * tree-scalar-evolution.c (instantiate_scev_binary): New.
3002 (instantiate_scev_1): Move code in instantiate_scev_binary.
3004 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3006 * tree-scalar-evolution.c (instantiate_scev_name): New.
3007 (instantiate_scev_1): Move code in instantiate_scev_name.
3009 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3011 * Merge from mainline (150992:151171).
3013 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3015 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
3017 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3019 * graphite-dependences.c (graphite_legal_transform_bb): Call
3020 pbb_remove_duplicate_pdrs.
3021 * graphite-poly.c (can_collapse_pdr): Removed.
3022 (pdr_find_duplicate): Removed.
3023 (can_collapse_pdrs): New.
3024 (pbb_remove_duplicate_pdrs): New.
3025 (new_poly_dr): Do not look for duplicates.
3026 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
3027 (PBB_PDR_DUPLICATES_REMOVED): New.
3028 (pbb_remove_duplicate_pdrs): Declared.
3030 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3032 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
3033 the strides by multiplying by PDR_NB_REFS.
3034 * graphite-poly.c (can_collapse_pdr): New.
3035 (pdr_find_duplicate): New.
3036 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
3037 Initialize PDR_NB_REFS.
3038 * graphite-poly.h (struct poly_dr): Add field nb_refs.
3040 (new_poly_dr): Number of subscripts is a graphite_dim_t.
3042 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3044 Revert one of the previous commits:
3045 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
3046 the computation of symmetric data dependence relations.
3047 (dependency_between_pbbs_p): Same.
3049 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3052 * graphite-poly.c (apply_poly_transforms): Remove legality test before
3055 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3057 * graphite-dependences.c (pddr_original_scattering): Return NULL
3058 for read-read dependence relations.
3059 * graphite-poly.h (enum poly_dr_type): Fix comment.
3062 (pdr_may_write_p): New.
3064 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3066 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
3067 (struct poly_dr): Same.
3068 (new_poly_dr): Same.
3069 * graphite-poly.c (new_poly_dr): Same.
3071 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3072 Sebastian Pop <sebastian.pop@amd.com>
3074 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
3075 pbb_strip_mine_time_depth. Changed the implementation so that
3076 transformation is expressed as a transformation on
3077 time (scatttering) dimensions. Also, ensures that the 2d+1
3078 scheduling format is preserved.
3079 (pbb_strip_mine_profitable_p): Profitability is based on the
3080 iteration number of a given time (scattering) dimension,
3081 and not on a original loop depth dimension.
3082 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
3083 (pbb_do_strip_mine): Call psct_dynamic_dim.
3084 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
3085 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
3086 (pbb_nb_dynamic_scattering_transform): New.
3087 (psct_dynamic_dim): New.
3089 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3091 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3092 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3093 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
3094 * graphite-interchange.c (build_linearized_memory_access): Same.
3095 (memory_stride_in_loop): Same.
3097 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3099 * graphite-dependences.c (pddr_original_scattering): New.
3100 (graphite_legal_transform_dr): Call pddr_original_scattering.
3103 * graphite-dependences.h (dot_deps): Declared.
3104 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
3105 (print_pdr): Print PDR_ID.
3106 * graphite-poly.h (struct poly_dr): Add field id.
3109 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
3111 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
3113 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
3114 not delete the original dependence relation.
3116 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3118 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
3119 the computation of symmetric data dependence relations.
3120 (dependency_between_pbbs_p): Same.
3122 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3124 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
3125 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
3126 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
3127 (free_poly_ddr): New.
3128 (pddr_is_empty): New.
3129 (dependence_polyhedron_1): Now returns a poly_ddr_p.
3130 (dependence_polyhedron): Same. Remove useless gcc_assert.
3132 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
3133 (graphite_carried_dependence_level_k): Call pddr_is_empty.
3134 * graphite-dependences.h (enum poly_dependence_kind): New.
3135 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
3136 (PDRP_SOURCE): Renamed PDDR_SOURCE.
3137 (PDRP_SINK): Renamed PDDR_SINK.
3138 (PDRP_DDP): Renamed PDDR_DDP.
3140 (free_poly_ddr): Declared.
3141 * graphite-poly.c (new_scop): Use the new hash function names.
3142 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
3143 into original_pddrs.
3144 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
3146 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3148 * Merge from mainline (150764:150992).
3150 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3152 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
3153 bounds with LT_EXPR to make niter analysis more precise on code
3154 generated by Graphite.
3156 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3158 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
3159 (graphite_legal_transform_bb): Same.
3160 (poly_drs_may_alias_p): Same.
3162 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
3165 * graphite-ppl.c (ppl_max_for_le): Correct the use of
3166 ppl_Pointset_Powerset_C_Polyhedron_maximize.
3168 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3170 * graphite-poly.c (print_pbb): Print PBB index.
3172 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3174 * Merge from mainline (r150672:150764).
3176 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3178 * graphite-interchange.c (ppl_max_for_le): Moved...
3179 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
3180 * graphite-ppl.c (ppl_max_for_le): ... here.
3181 * graphite-ppl.h (ppl_max_for_le): Declared.
3183 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3185 * Merge from mainline (r150372:150672).
3187 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3190 * sese.c (convert_for_phi_arg): New.
3191 (add_guard_exit_phis): Use convert_for_phi_arg.
3193 * gfortran.dg/graphite/id-17.f: New.
3195 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3197 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
3198 unknown subscript upper bounds.
3200 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
3202 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3203 Pranav Garg <pranav.garg2107@gmail.com>
3205 * graphite-interchange.c (gather_access_strides): Removed.
3206 (ppl_max_for_le): New.
3207 (build_linearized_memory_access): New.
3208 (memory_stride_in_loop): New.
3209 (pbb_interchange_profitable_p): Reimplemented.
3210 * graphite-ppl.h (ppl_new_id_map): New.
3211 (ppl_interchange): New.
3213 * gcc.dg/graphite/interchange-6.c: XFAILed.
3215 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3217 * graphite-interchange.c (compute_subscript): Removed.
3218 (compute_array_size_cstr): Removed.
3219 (compute_array_size_poly): Removed.
3220 (compute_array_size): Removed.
3221 (gather_access_strides_poly): Removed.
3222 (gather_access_strides): Empty.
3224 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3226 * graphite-dependences.c (dependence_polyhedron_1): Replace
3227 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
3228 (graphite_legal_transform_dr): Same.
3229 (graphite_carried_dependence_level_k): Same.
3230 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
3231 Initialize PDR_NB_SUBSCRIPTS.
3232 (print_pdr_access_layout): Replace pdr_nb_subscripts with
3234 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
3235 (PDR_NB_SUBSCRIPTS): New.
3236 (pdr_nb_subscripts): Removed.
3237 (pdr_dim): Simplified.
3238 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
3239 with PDR_NB_SUBSCRIPTS.
3241 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3243 * graphite-interchange.c (compute_array_size): Remove use of
3245 * graphite-poly.c (new_poly_dr): Remove argument data_container.
3246 Do not initialize PDR_DATA_CONTAINER.
3247 (print_pdr): Do not print PDR_DATA_CONTAINER.
3248 * graphite-poly.h (struct poly_dr): Remove data_container field.
3249 (PDR_DATA_CONTAINER): Removed.
3250 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
3252 (build_poly_dr): Same.
3254 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3256 * gcc.dg/graphite/interchange-9.c: New.
3258 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3259 Sebastian Pop <sebastian.pop@amd.com>
3261 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
3262 copy of the dependence polyhedron. Free the temporary objects.
3263 (graphite_carried_dependence_level_k): Free unused objects before
3266 * gcc.dg/graphite/interchange-1.c: XFAILed.
3267 * gcc.dg/graphite/interchange-2.c: XFAILed.
3268 * gcc.dg/graphite/interchange-3.c: XFAILed.
3269 * gcc.dg/graphite/interchange-4.c: XFAILed.
3270 * gcc.dg/graphite/interchange-7.c: XFAILed.
3272 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3274 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
3275 Early return without analyzing the data dependences if no
3276 transform has been done. Call restore_scattering if the transform
3278 (graphite-interchange.c): Same.
3279 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
3280 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
3281 (apply_poly_transforms): Do not gcc_assert that
3282 the transform is legal.
3283 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3284 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
3285 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
3286 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3287 * graphite-poly.h (struct poly_scattering): New.
3288 (struct poly_bb): Add original, transformed, and saved fields.
3289 Remove transformed_scattering, original_scattering, nb_local_variables,
3290 and nb_scattering_transform fields.
3291 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
3292 (poly_scattering_new): New.
3293 (poly_scattering_free): New.
3294 (poly_scattering_copy): New.
3295 (store_scattering_pbb): New.
3296 (store_scattering): New.
3297 (restore_scattering_pbb): New.
3298 (restore_scattering): New.
3299 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3300 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
3302 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3304 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
3307 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3309 * Makefile.in (graphite.o): Depends on PREDICT_H.
3310 * graphite.c: Include predict.h.
3311 (graphite_finalize): Call tree_estimate_probability.
3312 * predict.c (predict_loops): Do not call scev_initialize and
3314 (tree_estimate_probability_bb): New.
3315 (tree_estimate_probability): Do not initialize loops: move that
3316 code to the driver. Call tree_estimate_probability_bb.
3317 (tree_estimate_probability_driver): New.
3318 (pass_profile): Use tree_estimate_probability_driver.
3319 * predict.h (tree_estimate_probability): Declared.
3321 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3323 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
3324 * graphite-dependences.c (graphite_legal_transform): Add time to
3325 TV_GRAPHITE_DATA_DEPS.
3326 (dependency_between_pbbs_p): Same.
3327 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
3329 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
3331 * Merge from mainline (r149952:150372).
3333 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3335 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
3336 * graphite-blocking.c: Same.
3337 * graphite-clast-to-gimple.c: Same.
3338 * graphite-dependences.c: Same.
3339 * graphite-poly.c: Same.
3340 * graphite-poly.h: Same.
3341 * graphite-ppl.c: Same.
3342 * graphite-scop-detection.c: Same.
3343 * graphite-sese-to-poly.c: Same.
3346 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3348 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
3349 (remove_simple_copy_phi): New.
3350 (remove_invariant_phi): New.
3351 (simple_copy_phi_p): New.
3352 (reduction_phi_p): New.
3353 (gsi_for_ssa_name_def): New.
3354 (insert_out_of_ssa_copy): New.
3355 (insert_out_of_ssa_copy_on_edge): New.
3356 (create_zero_dim_array): New.
3357 (scalar_close_phi_node_p): New.
3358 (rewrite_close_phi_out_of_ssa): New.
3359 (rewrite_phi_out_of_ssa): New.
3360 (rewrite_reductions_out_of_ssa): New.
3361 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
3363 * gcc.dg/graphite/id-11.c: New.
3364 * gcc.dg/graphite/id-15.c: New.
3365 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
3366 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
3367 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
3368 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
3369 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
3370 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
3371 * gfortran.dg/graphite/id-13.f: New.
3372 * gfortran.dg/graphite/id-5.f: New.
3374 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3376 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
3377 check that nb_reductions_in_loop is zero.
3378 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
3379 reduction phi nodes.
3380 (nb_reductions_in_loop): Removed.
3381 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
3382 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
3383 (bb_contains_non_iv_scalar_phi_nodes): Removed.
3384 (scop_contains_non_iv_scalar_phi_nodes): Removed.
3385 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
3387 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3389 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
3390 statements that have an empty iteration domain.
3391 * gfortran.dg/graphite/id-16.f: New.
3393 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3395 * tree-scalar-evolution.c (instantiate_scev_1): Return
3396 chrec_dont_know when the result is not above instantiate_below.
3397 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
3398 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
3399 the tree has a known scalar evolution.
3400 * gfortran.dg/graphite/id-14.f: New.
3401 * gfortran.dg/graphite/id-15.f: New.
3403 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3405 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
3407 (rename_variables): Keep inserting renames after the ones already
3410 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3412 * graphite-sese-to-poly.c (compare_bb_depths): New.
3413 (graphite_sort_dominated_info): New.
3414 (build_scop_bbs_1): Call graphite_sort_dominated_info.
3415 (build_scop_scattering): Fix comment.
3417 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3419 * graphite.c (graphite_finalize): Call print_loops instead of
3420 dump_function_to_file.
3421 * gcc.dg/graphite/graphite.exp: Fix formatting.
3422 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
3423 loops generated in the graphite output file.
3424 * gcc.dg/graphite/pr35356-2.c: New.
3425 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
3426 * gfortran.dg/graphite/id-12.f: New.
3428 2009-07-24 Li Feng <nemokingdom@gmail.com>
3430 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
3433 2009-07-24 Li Feng <nemokingdom@gmail.com>
3434 Tobias Grosser <grosser@fim.uni-passau.de>
3436 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
3437 alias set number build alias in ACCESSES polyhedron.
3438 (build_alias_set_for_drs): New.
3439 (build_pbb_drs): Added build_alias_set_for_drs.
3440 * graphite-dependences.c (poly_drs_may_alias_p): New.
3441 (graphite_carried_dependence_level_k): Check alias information
3442 before building polyhedron.
3444 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3446 * Makefile.in (lambda-code.o): Fix formatting.
3448 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3450 * Merge from mainline (r149350-149952)
3452 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3454 * graphite-poly.c (apply_poly_transforms): Move strip_mine
3455 before interchange to prepare for loop blocking.
3457 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3459 * graphite-poly.c (apply_poly_transforms): Add checks after every
3461 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
3462 done in apply_poly_transforms.
3464 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3466 * graphite-dependences.c (build_lexicographically_gt_constraint):
3467 Replace RES parameter with *RES.
3468 (dependence_polyhedron_1): Pass an address of the parameter RES
3469 instead of value of RES.
3471 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3473 * graphite.c (graphite_finalize): Fix comment.
3474 (graphite_transform_loops): Reset scev info after code generation
3477 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3479 * graphite.c (graphite_finalize): Call scev_reset.
3481 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3483 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
3484 GBB_CLOOG_IV_TYPES hash table twice.
3485 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
3486 (add_condition_to_domain): Clear GMP values.
3488 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3490 * graphite-dependences.c: Fix formatting.
3491 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
3492 (pbb_number_of_iterations): Free ppl_Linear_Expression.
3493 * graphite-sese-to-poly.c: Fix formatting.
3494 * graphite.c (graphite_transform_loops): Create the hash table
3495 after the early return.
3497 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3499 * gcc.dg/graphite/id-14.c: New.
3500 * gcc.dg/graphite/pr40157.c: New.
3501 * gfortran.dg/graphite/id-11.f: New.
3503 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3505 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
3506 (build_poly_scop): Return false when there are no pbbs within
3507 loops to avoid to pass to cloog scops with no loops.
3509 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3511 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
3512 useless test "i % 2".
3513 (build_pbb_scattering_polyhedrons): Fix formatting.
3514 (build_poly_dr): Same.
3515 * graphite.c (graphite_transform_loops): Restructure.
3517 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
3519 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
3520 reduction_list parameter.
3521 (rewrite_all_phi_nodes_with_iv): Same.
3522 (canonicalize_loop_ivs): Same.
3523 * tree-parloops.c (struct brli): Removed.
3524 (build_reduction_list_info): Removed.
3525 (build_new_reduction): New.
3526 (analyze_reduction_list): Removed.
3527 (gather_scalar_reductions): Find reductions instead of phi
3528 nodes that can't be canonicalized.
3529 (try_create_reduction_list): Remove reduction_list parameter.
3530 (gen_parallel_loop): Same.
3531 (parallelize_loops): Remove analyze_reductions variable,
3532 initialization and free.
3533 Change reduction_list htab initialization to reduction_info
3534 elements instead of ssa names.
3535 Call try_create_reduction_list and gen_parallel_loop without
3536 analyzed_reduction argument.
3537 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
3538 canonicalize_loop_ivs with one less argument.
3539 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
3541 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3543 * graphite-dependences.c (new_poly_dr_pair): New.
3544 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
3545 (new_poly_dr_pair): New.
3546 (eq_poly_dr_pair_p): New.
3547 (hash_poly_dr_pair_p): New.
3548 * graphite-dependences.h (struct poly_dr_pair): New.
3549 (eq_poly_dr_pair_p): Declared.
3550 (hash_poly_dr_pair_p): Declared.
3551 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
3552 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
3553 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
3554 * Makefile.in (graphite-poly.o): Add dependence on
3555 graphite-dependences.h.
3557 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3559 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
3560 polynomials of degree > 1 pass to Graphite.
3561 * tree-chrec.c (scev_is_linear_expression): Call
3562 evolution_function_is_affine_multivariate_p.
3563 * gfortran.dg/graphite/id-10.f90: New.
3565 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3567 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
3568 Instantiate scevs varying in outer loops.
3569 * gfortran.dg/graphite/id-9.f: Correct testcase.
3571 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3573 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
3574 redundant constraint.
3576 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3578 * gcc.dg/graphite/graphite.exp: Fix comments.
3579 * gfortran.dg/graphite/graphite.exp: Trigger actions
3580 based on the file names as in the C testsuite.
3581 * gfortran.dg/graphite/block-1.f90: Fix patterns.
3582 * gfortran.dg/graphite/block-2.f: Same.
3583 * gfortran.dg/graphite/block-3.f90: Same.
3584 * gfortran.dg/graphite/block-4.f90: Same.
3585 * gfortran.dg/graphite/id-1.f90: Same.
3586 * gfortran.dg/graphite/id-2.f90: Same.
3587 * gfortran.dg/graphite/id-3.f90: Same.
3588 * gfortran.dg/graphite/id-4.f90: Same.
3589 * gfortran.dg/graphite/id-6.f: Same.
3590 * gfortran.dg/graphite/id-9.f: Same.
3591 * gfortran.dg/graphite/interchange-1.f: Same.
3592 * gfortran.dg/graphite/interchange-2.f: Same.
3593 * gfortran.dg/graphite/scop-1.f: Same.
3595 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3597 * sese.c (expand_scalar_variables_call): New.
3598 (expand_scalar_variables_ssa_name): Handle calls in expander.
3600 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3602 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
3603 Expect to see the pattern twice.
3604 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
3605 * gcc.dg/graphite/interchange-5.c: Same.
3606 * gcc.dg/graphite/interchange-6.c: Same.
3608 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3610 * gcc.dg/graphite/id-10.c: New.
3611 * gcc.dg/graphite/id-12.c: New.
3612 * gfortran.dg/graphite/id-7.f: New.
3613 * gfortran.dg/graphite/id-8.f: New.
3615 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3617 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
3620 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3622 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
3624 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3626 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
3628 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3630 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
3631 building PDR subscripts.
3633 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3635 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
3636 computation of array sizes.
3638 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3640 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
3642 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
3644 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
3645 build_pairwise_constraint, dr_equality_constraints,
3646 build_pairwise_scheduling_equality,
3647 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3648 build_lexicographically_gt_constraint, dependence_polyhedron,
3649 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
3650 Move from NNC_Polyhedron to C_Polyhedron.
3651 * graphite-interchange.c (compute_array_size_poly,
3652 gather_access_strides): Dito.
3653 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
3654 free_scop, pbb_number_of_iterations): Dito.
3655 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
3656 pbb_dim_iter_domain, struct scop): Dito.
3657 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
3658 new_Cloog_Domain_from_ppl_Polyhedron,
3659 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
3660 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
3661 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
3662 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
3663 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
3664 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
3665 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
3666 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
3667 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
3668 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
3669 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
3670 build_scop_iteration_domain, build_poly_dr): Dito
3672 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3674 * gcc.dg/graphite/graphite.exp: Added a rule to execute
3676 * gcc.dg/graphite/run-id-1.c: New.
3678 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3680 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
3681 positivity constraint on the symbolic number of iterations.
3683 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3685 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
3687 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3688 Tobias Grosser <grosser@fim.uni-passau.de>
3690 * graphite-clast-to-gimple.c (build_scop_context): Removed.
3691 (build_cloog_prog): Directly use SCOP_CONTEXT.
3692 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
3693 (free_scop): Free SCOP_CONTEXT.
3694 (print_scop_context): New.
3695 (print_scop): Call print_scop_context.
3696 (debug_scop_context): New.
3697 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
3698 (struct scop): Added field context.
3699 (SCOP_CONTEXT): New.
3700 * graphite-sese-to-poly.c (add_param_constraints): New.
3701 (build_scop_context): New.
3702 (build_poly_scop): Call build_scop_context.
3704 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3706 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
3707 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
3708 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
3709 * graphite-ppl.h: Include double-int.h and tree.h.
3710 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
3711 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
3712 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
3713 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
3715 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3717 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
3718 POINTER_PLUS_EXPR for pointer types.
3719 (clast_to_gcc_expression): Same.
3721 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3723 * graphite-poly.c (print_scattering_function): Early return when
3724 PBB_TRANSFORMED_SCATTERING is not initialized.
3725 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
3727 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
3729 * tree-parloops.c (analyze_reduction_list): Remove unused variable
3732 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
3734 * tree-parloops.c (analyze_reduction_list): Change return
3736 (try_create_reduction_list): Move the call to
3737 analyze_reduction_list to the beginining.
3738 Call reduction_phi with analyzed_reductions as argument
3739 instead of reduction_list.
3741 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
3743 * Merge from mainline (r148296:149346)
3745 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3747 * graphite-scop-detection.c (graphite_can_represent_init): New.
3748 (graphite_can_represent_scev): Call graphite_can_represent_init:
3749 check that the initial value does not contain multiplications of
3751 (stmt_has_simple_data_refs_p): New.
3752 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
3753 (is_simple_operand): Fix formatting.
3754 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
3756 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3758 * gcc.dg/graphite/id-13.c: New.
3759 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
3760 analyze_scalar_evolution, use scalar_evolution_in_region.
3761 (scan_tree_for_params_right_scev): Add extra assert.
3762 (parameter_index_in_region_1): Split from parameter_index_in_region.
3763 (idx_record_params): Use scalar_evolution_in_region.
3764 (find_params_in_bb): Same.
3765 (find_scop_parameters): Same.
3766 (build_loop_iteration_domains): Same.
3767 (create_linear_expr_from_tree): Same.
3768 * sese.c (scalar_evolution_in_region): New.
3769 * sese.h (scalar_evolution_in_region): Declared.
3770 (defined_in_sese_p): New.
3771 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
3773 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
3776 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3778 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
3779 TREE_DATA_REF_H also implies SCEV_H.
3781 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3783 * graphite-poly.c (print_scop_params): New.
3784 (print_scop): Call print_scop_params.
3785 (debug_scop_params): New.
3786 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
3788 2009-07-07 Li Feng <nemokingdom@gmail.com>
3790 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
3791 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
3792 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
3793 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
3794 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
3795 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
3797 2009-07-07 Li Feng <nemokingdom@gmail.com>
3799 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
3800 for dependency checking part.
3801 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
3802 tests for dependency checking.
3803 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
3804 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
3805 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
3806 flag -fdump-tree-graphite-all for autopar testsuites.
3808 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
3810 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
3811 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
3812 canonicalize_loop_ivs): Moved...
3813 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
3815 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
3817 * tree-parloops.c (try_create_reduction_list): Pass an extra
3818 argument analyzed_reductions. Call analyze_reduction_list.
3819 (gen_parallel_loop): Do not call analyze_reduction_list.
3820 (parallelize_loops): Init and finalize analyzed_reductions.
3822 2009-07-06 Li Feng <nemokingdom@gmail.com>
3824 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
3825 Added flag -fno-loop-strip-mine for autopar testcase.
3827 2009-07-04 Li Feng <nemokingdom@gmail.com>
3829 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
3830 transformed scattering dimension instead of unmatch orignal when
3831 calling dependence_polyhedron.
3833 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3835 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
3837 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3839 * graphite-poly.c (pbb_number_of_iterations): Check for returned
3840 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
3842 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3844 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
3845 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
3846 * graphite-poly.c (pbb_number_of_iterations): New.
3847 * graphite-poly.h (pbb_number_of_iterations): Declared.
3848 (pbb_iterator_dim, pbb_parameter_dim): New.
3850 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
3852 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
3853 last commit on type of lower and upper bound of loops.
3855 2009-06-29 Li Feng <nemokingdom@gmail.com>
3857 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
3858 graphite-dependences.h.
3859 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
3860 (mark_bb_with_pbb): New.
3861 (get_stmtfor_depth): New.
3862 (find_pbb_via_hash): New.
3863 (dependency_in_loop_p): New.
3864 (mark_loops_parallel): New.
3865 (free_aux_in_new_loops): New.
3866 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
3867 bb with it's relevant pbb. Mark newly created loops. Remove mark
3868 innermost loop parallel without checking.
3869 (gloog): Add parameter BB_PBB_MAPPING.
3870 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
3871 (gloog): Change declaration.
3872 (mark_loop_parallel): Make extern.
3873 (free_aux_in_new_loops): Declare.
3874 (bb_pbb_map_hash): New.
3875 (eq_bb_pbb_map): New.
3876 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
3877 auto parallelization when flag_graphite_force_parallel is set.
3878 (graphite_finalize): Added free_aux_in_new_loops.
3879 * tree-parloops.c (parallelize_loops): Only generate parallel code for
3880 the innermost loop that marked parallel. Use
3881 flag_graphite_force_parallel instead of loop->can_be_parallel.
3882 (loop_parallel_p): Move inner most checking out of function.
3884 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3886 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
3887 type of lower and upper bound of loops signed long int.
3889 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3891 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
3892 expression outside the loop.
3894 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3896 * gcc.dg/graphite/interchange-8.c: New.
3898 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3900 * gcc.dg/graphite/interchange-0.c: XFailed.
3901 * gcc.dg/graphite/interchange-5.c: XFailed.
3902 * gcc.dg/graphite/interchange-6.c: XFailed.
3904 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3906 * graphite-interchange.c (compute_array_size_poly): The end of the
3907 recursion should return 1.
3909 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3911 * graphite-interchange.c (compute_array_size_cstr): Allow the
3912 subscript multiplier to be -1.
3913 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
3914 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
3915 data_container. Initializes PDR_DATA_CONTAINER.
3916 (print_pdr_access_layout): New.
3917 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
3918 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
3920 (PDR_DATA_CONTAINER): New.
3921 (new_poly_dr): Update declaration.
3922 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
3923 (build_poly_dr): Call pdr_add_data_dimensions.
3925 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3927 * graphite-poly.h (struct poly_dr): Fix comment.
3928 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
3929 (pdr_add_memory_accesses): New.
3930 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
3932 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3934 * graphite-poly.c (print_pdrs, debug_pdrs): New.
3935 (print_pbb): Add call to print_pdrs.
3936 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
3938 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3939 Li Feng <nemokingdom@gmail.com>
3941 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
3942 (dependency_between_pbbs_p): New.
3943 (lexicographically_gt_p): Assure !empty_p before polyhedron
3944 intersection assign.
3945 (build_lexicographically_gt_constraint): Correct lexicographically
3947 * graphite-dependences.h: New.
3948 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
3950 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3952 * graphite-clast-to-gimple.c (print_clast_stmt): New.
3953 (gloog): Print to dump_file the generated clast.
3954 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
3955 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
3957 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3959 * graphite-poly.c (extend_scattering): Increment
3960 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
3962 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3964 * graphite-interchange.c (compute_array_size_poly): Added exit of
3965 recursion condition. Continue iterating even after the first equality.
3966 (compute_array_size): Same.
3968 2009-06-24 Li Feng <nemokingdom@gmail.com>
3970 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
3971 -fdump-tree-final_cleanup to -fdump-tree-optimized.
3972 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
3973 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
3974 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
3976 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3978 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
3979 only when the use verifies is_gimple_reg.
3981 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3983 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
3984 Allocate scaldims after call to unify_scattering_dimensions.
3986 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3988 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
3990 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3991 Albert Cohen <albert.cohen@inria.fr>
3993 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
3994 variables for the strip mining.
3996 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3997 Pranav Garg <pranav.garg2107@gmail.com>
3999 * Makefile.in (OBJS-common): Added graphite-blocking.o.
4000 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
4001 (graphite-blocking.o): New rule.
4002 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
4003 * graphite-blocking.c: New.
4004 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
4005 flag_loop_strip_mine.
4006 (psct_scattering_dim_for_loop_depth): New.
4007 * graphite-poly.h (scop_do_strip_mine): Declared.
4008 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
4009 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
4010 flag_loop_strip_mine.
4012 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4014 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
4015 a GMP value and a PPL coefficient at each iteration of a loop.
4017 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4019 * graphite-dependences.c (dependence_polyhedron): Do not use
4020 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
4021 pbb_nb_scattering_transform.
4022 (graphite_legal_transform_dr): Same.
4023 * graphite-poly.c (extend_scattering): Same.
4024 (unify_scattering_dimensions): Same.
4025 (print_scattering_function): Same.
4026 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
4027 PBB_NB_LOCAL_VARIABLES.
4028 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
4029 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
4030 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
4031 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
4032 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
4033 (pbb_nb_scattering_transform): New.
4034 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
4035 (psco_scattering_dim): Add assert on parameters.
4036 (psct_scattering_dim): Same.
4037 (psct_scattering_dim_for_loop_depth): Declared.
4038 (psct_local_var_dim): New.
4039 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
4040 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
4041 correct layout, call pbb_nb_local_vars.
4042 (psct_add_local_variable, psct_add_scattering_dimension): New.
4043 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
4044 Initialize PBB_NB_SCATTERING_TRANSFORM.
4046 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4048 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
4049 (set_coef): Renamed ppl_set_coef.
4050 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
4052 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4054 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
4055 test a boolean against 1.
4056 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
4057 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
4058 (pbb_do_interchange): Returns true when a transform has been performed.
4059 (scop_do_interchange): Same.
4060 * graphite-poly.c (apply_poly_transforms): Use the return value of
4061 scop_do_interchange.
4062 * graphite-poly.h (scop_do_interchange): Update declaration.
4064 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
4066 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
4068 * sese.c (sese_reset_aux_in_loops): New.
4069 * sese.h (sese_reset_aux_in_loops): New.
4071 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4073 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
4074 multiplier and multiply the constant by the multiplier.
4075 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
4076 (build_poly_dr): Do not use the multiplier to define the subscript.
4078 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4080 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
4081 compiler's data reference. Initialize PDR_CDR.
4082 (print_pdr): Call dump_data_reference.
4083 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
4084 Add compiler_dr field.
4085 (PDR_BB): Renamed PDR_PBB.
4087 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
4088 GCC's data reference representation.
4089 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
4090 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
4092 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4094 * graphite-poly.c (print_scattering_function): Also print the layout.
4095 * graphite-poly.h (pbb_nb_local_vars): New.
4097 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4099 * graphite-poly.c (print_pbb_domain): Also print the layout names.
4101 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4103 * graphite-poly.c (print_pdr, debug_pdr): New.
4104 * graphite-poly.h (print_pdr, debug_pdr): Declared.
4105 (PDR_BASE): Removed.
4107 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4109 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
4112 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4114 * graphite-interchange.c (compute_subscript): Allow also -1 in the
4115 subscript identification column.
4116 (pbb_do_interchange): Print to dump_file that some loops "will be
4117 interchanged". Rely on that chain of characters in the testcases.
4118 * gcc.dg/graphite/interchange-0.c: New.
4119 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
4120 interchange-*.c files and compile them with -floop-interchange.
4122 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
4124 * graphite-interchange.c (interchange_profitable_p): Renamed
4125 pbb_interchange_profitable_p.
4127 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4128 Harsha Jagasia <harsha.jagasia@amd.com>
4129 Pranav Garg <pranav.garg2107@gmail.com>
4131 * graphite-interchange.c (interchange_profitable_p): Make static.
4132 (pbb_interchange_loop_depths, pbb_do_interchange,
4133 scop_do_interchange): New.
4134 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
4135 for flag_loop_interchange.
4136 * graphite-poly.h (scop_do_interchange): Declared.
4137 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
4138 flag_loop_interchange is used.
4140 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4142 * graphite-dependences.c (dependence_polyhedron): Update use of
4143 pbb_nb_scattering_dims.
4144 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
4145 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
4146 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
4147 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
4149 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4151 * graphite.c: Cleanup foo.
4153 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4155 * Merge from mainline (r143684:148293).
4156 * Disabled libpcp until it gets fixed.
4158 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
4159 Harsha Jagasia <harsha.jagasia@amd.com>
4161 * graphite-interchange.c: New.
4162 * Makefile.in (graphite-interchange.o): New.
4163 * graphite-poly.h (interchange_profitable_p): Declared.
4164 * graphite-ppl.h (value_max): New.
4166 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4168 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
4169 * graphite-poly.h: Fix some comments.
4173 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4176 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
4177 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
4178 (pdr_accessp_nb_params): Renamed pdr_nb_params.
4179 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
4180 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
4181 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
4182 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
4183 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
4184 * graphite-clast-to-gimple.c: Same.
4185 * graphite-dependences.c: Same.
4186 * graphite-poly.c: Same.
4187 * graphite-sese-to-poly.c: Same.
4189 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4191 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
4192 expressions for an IV rename, as returned by clast_to_gcc_expression.
4193 (copy_renames): Rename new_name to expr.
4194 * sese.c (debug_rename_elt): Same.
4197 (sese_adjust_liveout_phis): Call force_gimple_operand before using
4198 the information from the rename map.
4199 (rename_variables_in_stmt): Same.
4200 (add_loop_exit_phis): Rename new_name to expr.
4201 (insert_loop_close_phis): Same.
4202 (add_guard_exit_phis): Same. Call force_gimple_operand.
4203 * sese.h (struct rename_map_elt): Rename new_name to expr.
4204 (new_rename_map_elt): Same.
4206 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4208 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
4209 * sese.c (set_rename): Make it extern.
4210 * sese.h (set_rename): Declared.
4212 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4214 * graphite-poly.c (extend_scattering): Free values.
4215 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
4217 (ppl_print_powerset_matrix): Same.
4218 * graphite-scop-detection.c (free_scops_1): New.
4219 (limit_scops): Call free_scops_1.
4220 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
4221 (build_poly_dr): Free PPL coefficients.
4222 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
4224 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
4226 * graphite-dependences.c: New.
4227 * graphite-data-ref.c: Removed.
4228 * graphite-data-ref.h: Removed.
4229 * Makefile.in (graphite-data-ref.o): Removed.
4230 (graphite-dependences.o): Added.
4231 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
4232 * graphite-poly.c: Same.
4233 Move the data dependence testing to graphite-dependences.c.
4235 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
4237 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
4238 from graphite_cannot_represent_loop. Code refactored.
4239 (scopdet_basic_block_info): Call graphite_can_represent_loop.
4241 2009-05-17 Li Feng <nemokingdom@gmail.com>
4243 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
4244 Cover all the testcases (not only the filtered ones).
4246 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
4248 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
4249 unnecessary check. Update comments. Move check for REAL_TYPE here.
4250 (harmful_stmt_in_bb): Remove checks for conditions. This is already
4251 done in (stmt_simple_for_scop_p).
4253 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
4255 * graphite.c (print_global_statistics): New.
4256 (print_graphite_scop_statistic): New.
4257 (print_graphite_statistics): New.
4258 (graphite_initialize, graphite_transform_loops): Print statistics.
4259 * graphite-scop-detection (build_scops): Print statistics.
4260 (print_graphite_scop_statistics): New.
4261 (print_graphite_statistics): New.
4263 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4265 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
4266 (debug_clast_name_index): Removed.
4267 (debug_clast_name_indexes_1): Removed.
4268 (debug_clast_name_indexes): Removed.
4269 (clast_name_index_elt_info): Removed.
4270 (eq_clast_name_indexes): Removed.
4271 (clast_name_to_index): Removed.
4272 (new_clast_name_index): Removed.
4273 (save_clast_name_index): Removed.
4274 (save_var_name): Moved...
4275 (init_sese_params_index): Removed.
4276 (clast_name_to_gcc): Remove use of name_tree.
4277 (initialize_cloog_names): Same.
4278 (gloog): Do not call init_sese_params_index.
4279 * graphite-sese-to-poly.c (save_var_name): ...here.
4280 (parameter_index_in_region): New.
4281 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
4282 (parameter_index_in_region): Removed.
4283 (is_parameter): Remove use of name_tree.
4284 * sese.h (struct name_tree): Removed.
4285 (struct sese): Remove use of name_tree. New field params_names.
4286 (SESE_PARAMS_NAMES): New.
4287 (SESE_PARAMS): Remove duplicate.
4288 (parameter_index_in_region): Removed.
4289 (sese_nb_params): Remove use of name_tree.
4290 (struct clast_name_index): New.
4291 (new_clast_name_index): New.
4292 (clast_name_to_index): New.
4293 (save_clast_name_index): New.
4294 (debug_clast_name_index): New.
4295 (debug_clast_name_indexes_1): New.
4296 (debug_clast_name_indexes): New.
4297 (clast_name_index_elt_info): New.
4298 (eq_clast_name_indexes): New.
4300 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4302 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
4303 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
4304 (graphite_loop_normal_form): Do not pass region. Do not
4305 initialize SESE_OLDIVS.
4306 (build_graphite_loop_normal_form): Update call to
4307 graphite_loop_normal_form.
4308 * sese.c (debug_oldivs): Removed.
4309 (new_sese): Do not initialize SESE_OLDIVS.
4310 (free_sese): Do not free SESE_OLDIVS.
4311 (oldiv_for_loop): Removed.
4312 * sese.h (struct sese): Remove old_ivs.
4313 (SESE_OLDIVS): Removed.
4314 (oldiv_for_loop): Removed.
4316 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4318 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
4319 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
4320 replaced by a call to newivs_to_depth_to_newiv.
4321 (clast_to_gcc_expression): Pass newivs, remove ivstack.
4322 (clast_to_gcc_expression_red): Same.
4323 (gcc_type_for_clast_expr): Same.
4324 (gcc_type_for_clast_eq): Same.
4325 (graphite_translate_clast_equation): Same.
4326 (graphite_create_guard_cond_expr): Same.
4327 (graphite_create_new_guard): Same.
4328 (graphite_create_new_loop): Same.
4329 (build_iv_mapping): Same.
4330 (translate_clast): Same.
4332 (loop_iv_stack_patch_for_consts): Removed. *
4333 sese.c (iv_stack_entry_is_constant): Removed.
4334 (iv_stack_entry_is_iv): Removed.
4335 (loop_iv_stack_push_iv): Removed.
4336 (loop_iv_stack_insert_constant): Removed.
4337 (loop_iv_stack_pop): Removed.
4338 (loop_iv_stack_get_iv): Removed.
4339 (loop_iv_stack_get_iv_from_name): Removed.
4340 (debug_loop_iv_stack): Removed.
4341 (free_loop_iv_stack): Removed.
4342 (loop_iv_stack_remove_constants): Removed. *
4343 sese.h (iv_stack_entry_kind): Removed.
4344 (iv_stack_entry_data_union): Removed.
4345 (iv_stack_entry_struct): Removed.
4346 (iv_stack_entry_p): Removed.
4347 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
4348 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
4349 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
4350 loop_iv_stack_pop, free_loop_iv_stack): Removed.
4351 (gbb_loop_at_index): Fix indenting.
4352 (gbb_loop_index): Removed.
4354 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4356 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
4357 Call clast_name_to_index.
4359 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4361 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
4362 do not pass params. Get params from SESE_PARAMS.
4363 (clast_to_gcc_expression): Same.
4364 (clast_to_gcc_expression_red): Same.
4365 (gcc_type_for_clast_eq): Same.
4366 (graphite_translate_clast_equation): Same.
4367 (graphite_create_new_loop): Same.
4368 * sese.c (rename_variables_in_stmt): Fix comment.
4370 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4372 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
4374 Call save_clast_name_index.
4375 (translate_clast): Pass newivs_index.
4376 (gloog): Create and free newivs_index.
4378 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4380 * graphite-clast-to-gimple.c (clast_name_index): New structure.
4381 (clast_name_index_p): New type.
4382 (debug_clast_name_index): New.
4383 (debug_clast_name_indexes_1): New.
4384 (debug_clast_name_indexes): New.
4385 (clast_name_index_elt_info): New.
4386 (eq_clast_name_indexes): New.
4387 (clast_name_to_index): New.
4388 (new_clast_name_index): New.
4389 (save_clast_name_index): New.
4390 (init_sese_params_index): New.
4391 (gloog): Call init_sese_params_index.
4392 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
4393 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
4394 (free_sese): Free SESE_PARAMS_INDEX.
4395 * sese.h (struct sese): Add params_index.
4396 (SESE_PARAMS_INDEX): New.
4398 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4400 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
4401 (graphite_create_new_loop): Pass the newivs vector. Push the
4402 newly created IV to newivs.
4403 (translate_clast): Pass the newivs vector.
4404 (gloog): Create and destroy the newivs vector.
4406 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4408 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
4409 (graphite_loop_normal_form): Initialize loop->aux with the unique
4410 IV that has been created.
4412 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
4414 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
4415 scev with parameters in the base part. They where forbidden
4418 2009-05-11 Li Feng <nemokingdom@gmail.com>
4420 * gcc.dg/graphite/graphite.exp: Set different default
4421 compile options by file names.
4422 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
4423 * gcc.dg/graphite/id-{1-9}.c: Ditto.
4424 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
4425 * gcc.dg/graphite/scop-matmult.c: Ditto.
4427 2009-05-08 Li Feng <nemokingdom@gmail.com>
4429 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
4430 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
4431 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
4432 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
4434 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4436 * graphite-scop-detection (build_scops_1): Fix little bug introduced
4439 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4441 * graphite-scop-detection.c (graphite_can_represent_scev): Only
4442 allow integer constant strides.
4443 (graphite_can_represent_expr): Depend on outermost_loop.
4444 (stmt_simple_memref_p, graphite_cannot_represent_loop,
4445 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
4446 build_scops_1): Same.
4447 (scopdet_basic_block_info): Same and insert layered SCoP
4449 (try_generate_gimple_bb): Cleanup.
4450 (build_scops): Enable data references.
4452 * gcc.dg/graphite/id-5.c: New.
4453 * gcc.dg/graphite/id-9.c: New.
4454 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
4455 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
4457 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4459 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
4460 that we have not yet built for this SCoP.
4462 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4464 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
4465 for complex numbers.
4467 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4469 * graphite-ppl.c: Fix build if cloog is not available.
4471 2009-05-04 Li Feng <nemokingdom@gmail.com>
4473 * tree-parloops.c (loop_parallel_p): Remove construction of
4474 NITER and REDUCTION_LIST.
4475 (try_get_loop_niter): New.
4476 (try_create_reduction_list): New.
4477 (parallelize_loops): Bypass the failed checkings in autopar
4478 when can_be_parallel in loop structure is set to true.
4480 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4482 * gcc.dg/graphite/id-6.c: Update testcase.
4483 * gcc.dg/graphite/scop-3.c: Dito.
4485 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4487 * graphite-scop-detection.c (stmt_simple_for_scop_p):
4488 Enable EQ_EXPR and NE_EXPR again.
4490 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4492 * graphite-scop-detection.c (graphite_can_represent_scev):
4493 Add check if scev is affine multivariate.
4494 (harmful_stmt_in_bb): Check if we can represent the conditions.
4495 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
4497 * gcc.dg/graphite/id-7.c: New.
4499 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4501 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
4502 Check all bbs in region, not only the bbs that are represented in
4504 (build_poly_scop): Add newline.
4505 * gcc.dg/graphite/id-8.c: New.
4507 2009-04-30 Li Feng <nemokingdom@gmail.com>
4509 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
4510 when loop initialize.
4511 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
4512 * common.opt: Declare flag_graphite_force_parallel.
4513 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
4515 * graphite-poly.c (apply_poly_transforms): Introduce
4516 flag_graphite_force_parallel.
4517 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
4518 * toplev.c (process_options): ditto and replace a not correctly
4521 2009-04-30 Li Feng <nemokingdom@gmail.com>
4523 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
4524 Change the call of gbb_loop_at_index and/or gbb_loop_index due
4525 to the redefinition.
4526 (compute_cloog_iv_types_1): ditto.
4527 (build_iv_mapping): ditto.
4528 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
4530 (free_gimple_bb): Removed GBB_LOOPS related free part.
4531 (build_bb_loops): Removed.
4532 * sese.h (struct gimple_bb): Removed loops.
4533 (GBB_LOOPS): Removed.
4534 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
4535 (gbb_loop_index): ditto.
4537 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4539 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
4540 allow non constant strides.
4541 * gcc.dg/graphite/scop-20.c: New.
4543 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4545 * graphite-scop-detection.c (dot_all_scops): Fix system call
4546 return value warning.
4549 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4551 * gcc.dg/graphite/id-6.c: Fix pattern.
4552 * gcc.dg/graphite/scop-3.c: Same.
4554 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4556 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
4557 build_pairwise_constraint, dr_equality_constraints,
4558 build_pairwise_scheduling_equality,
4559 build_pairwise_scheduling_inequality, lexicographically_gt_p,
4560 build_lexicographically_gt_constraint, dependence_polyhedron,
4561 graphite_legal_transform_dr, graphite_legal_transform_bb,
4562 graphite_legal_transform): New.
4563 * graphite-poly.h (graphite_legal_transform): Declared.
4564 * graphite-sese-to-poly.c (build_poly_scop): Call to
4565 graphite_legal_transform is disabled for the moment.
4567 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4569 * graphite-poly.h (pbb_nb_scattering_dims): New.
4570 (pbb_nb_scattering): Use it.
4572 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4574 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
4575 Pointset_Powerset version of ppl_insert_dimensions.
4576 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
4578 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4580 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
4582 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4584 * graphite-poly.h: Fix comment.
4586 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4588 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
4590 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4592 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
4595 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4597 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
4598 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
4601 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
4603 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
4604 handle EQ_EXPR and NE_EXPR.
4606 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
4608 * graphite-poly.h (poly_dr): Fix comment.
4610 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4611 Tobias Grosser <grosser@fim.uni-passau.de>
4613 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
4614 with a zero dimension polyhedron.
4615 (find_scop_parameters): Move the call to scop_set_nb_params here.
4616 (build_loop_iteration_domains): Store in loop->aux the iteration
4618 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
4619 by any loop in scop.
4620 (build_poly_scop): Do not call scop_set_nb_params.
4622 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4623 Tobias Grosser <grosser@fim.uni-passau.de>
4625 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
4626 add_condition_to_domain not GT_EXPR.
4628 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4630 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
4631 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
4632 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
4633 upper_bound_assign to calculate unions.
4634 * gcc.dg/graphite/id-6.c: New.
4636 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4638 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
4639 handle abnormal edges.
4641 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4643 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
4644 (free_poly_bb): Also free poly_drs.
4645 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
4646 (poly_dr): Polyhedron to Pointset_Powerset.
4647 (pdr_accessp_nb_subscripts): Same.
4648 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
4651 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4653 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
4654 names into more meaningful names.
4656 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4658 * gfortran.dg/graphite/interchange-1.c: New.
4659 * gfortran.dg/graphite/interchange-2.c: New.
4661 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4663 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
4665 * tree-parloops.c (rewrite_phi_with_iv): New.
4666 (rewrite_all_phi_nodes_with_iv): New.
4667 (canonicalize_loop_ivs): Call them.
4669 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4671 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
4672 graphite_find_data_references_in_stmt.
4673 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
4674 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
4676 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4678 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
4680 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4682 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
4683 instead of bb_in_region.
4684 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
4685 (build_sese_conditions): Use flag_bb_in_sese.
4686 * sese.c (register_bb_in_sese): Removed.
4687 (new_sese): Remove initialization of SESE_REGION_BBS.
4688 (free_sese): Do not free SESE_REGION_BBS.
4689 * sese.h (struct sese): Remove field region_basic_blocks.
4690 (SESE_REGION_BBS): Removed.
4691 (bb_in_sese_p): Implement in function of bb_in_region.
4693 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4695 * graphite-scop-detection.c (limit_scops): Deal only with single exit
4698 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
4700 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
4702 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
4703 (add_condition_to_domain): New.
4704 (add_condition_to_pbb): New.
4705 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
4706 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
4708 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
4710 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
4711 ppl_Pointset_Powerset.
4712 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
4713 * graphite-poly.h (poly_bb): poly_bb.domain Same.
4714 (pbb_nb_loops): Same.
4715 * graphite-sese-to-poly.c (build_loop_iteration_domains,
4716 add_conditions_to_domain): Same.
4717 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
4718 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
4719 ppl_const_Polyhedron_t.
4720 (ppl_print_powerset_matrix): New.
4721 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
4722 ppl_print_powerset_matrix): New.
4723 (ppl_print_polyhedron_matrix): Updated.
4725 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
4727 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
4729 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
4731 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
4732 (print_iteration_domains, debug_iteration_domain,
4733 debug_iteration_domains): New.
4734 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
4735 debug_iteration_domains): Declared.
4736 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
4739 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
4740 Sebastian Pop <sebastian.pop@amd.com>
4742 * graphite-poly.h (print_iteration_domain): New.
4743 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
4744 (build_sese_conditions_1, build_sese_conditions_after,
4745 build_sese_conditions_before): New.
4746 (build_sese_conditions): Rewritten.
4748 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
4749 Tobias Grosser <grosser@fim.uni-passau.de>
4751 Cleanup of code generation liveouts.
4752 * graphite-clast-to-gimple.c (translate_clast): Use a single
4753 rename_map instead of one per translated statement.
4754 Do not use SESE_LIVEOUT_RENAMES.
4755 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
4756 (gloog): Do not use SESE_LIVEOUT_RENAMES.
4757 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
4758 phi node of a reduction: when a loop contains a reduction used outside
4759 the loop, there should be a scalar close phi node on the exit block.
4760 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
4761 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
4762 (free_sese): Do not free them.
4763 (sese_build_liveouts_use): Do not use them.
4764 (sese_build_liveouts_bb): Same.
4765 (sese_build_liveouts): Same.
4766 (sese_insert_phis_for_liveouts): Same.
4767 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
4768 (defined_in_loop_p): New.
4769 (alive_after_loop): New.
4770 (close_phi_not_yet_inserted_p): New.
4771 (struct alep, alep_p): New.
4772 (add_loop_exit_phis): Remove from the rename_map all the names defined
4773 in the code generated loop.
4774 (insert_loop_close_phis): Traverse the rename_map passed to it.
4775 Don't use SESE_LIVEOUT_RENAMES.
4776 (default_liveout_before_guard): Renamed default_before_guard.
4777 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
4778 (graphite_copy_stmts_from_block): Do not directly call set_rename.
4779 (register_sese_liveout_renames): Removed.
4780 (copy_bb_and_scalar_dependences): Do not call it.
4781 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
4783 (SESE_LIVEOUT): Removed.
4784 (SESE_LIVEOUT_RENAMES): Removed.
4785 (SESE_REDUCTION_LIST): Removed.
4786 (sese_build_liveouts): Removed.
4787 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
4788 (insert_loop_close_phis): Pass a htab_t instead of a sese.
4789 (insert_guard_phis): Same.
4790 (rename_map_elt): Declare a VEC of them.
4791 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
4792 trees not pointers to trees.
4794 Rewrite in canonical close SSA form:
4795 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
4796 (limit_scops): Close the scop after the block containing the close phi
4798 (canonicalize_loop_closed_ssa): New.
4799 (canonicalize_loop_closed_ssa_form): New.
4800 (build_scops): Call canonicalize_loop_closed_ssa_form.
4802 * graphite-sese-to-poly.c: Fix typos.
4804 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
4806 * graphite-poly.c (print_scattering_function, print_pbb_domain):
4808 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
4809 (print_pbb): Add conditions.
4811 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
4812 Sebastian Pop <sebastian.pop@amd.com>
4814 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
4815 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
4816 (build_scop_bbs_1): New.
4817 (build_scop_bbs): Rewrite.
4818 * sese.h (bb_in_region): New.
4820 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4822 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
4824 (print_scop): Style.
4825 * graphite-poly.h (poly_bb): Add drs vector.
4826 (PBB_DRS): Add accessor.
4827 * graphite-sese-to-poly.c (build_poly_dr): New.
4828 (build_pbb_drs, build_scop_drs): New.
4829 (build_poly_scop): call build_scop_drs (Disabled at the moment).
4831 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4833 * tree-ssa-loop.c: Include forgotten toplev.h
4835 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4837 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
4838 * gcc.dg/graphite/pr37883.c: Remove -floop-*
4839 * gcc.dg/graphite/pr37928.c: Same
4840 * gcc.dg/graphite/pr38409.c: Same
4841 * gcc.dg/graphite/pr38498.c: Same
4842 * gcc.dg/graphite/pr38559.c: Same
4843 * gcc.dg/graphite/pr39335.c: Same
4844 * gcc.dg/graphite/pr39335_1.c: Same
4845 * gfortran.dg/graphite/block-2.f: Same
4846 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
4849 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
4851 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
4852 build_access_matrix, build_scop_data_accesses): Remove access function
4853 building. (We get a new version soon).
4854 (build_bb_loops, scan_tree_for_params_right_scev): Update.
4855 * sese.h (nb_loops_around_loop_in_sese): Remove.
4856 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
4858 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
4859 Sebastian Pop <sebastian.pop@amd.com>
4861 * graphite-scop-detection.c (struct scopdet_info): Rename last
4863 (scopdet_basic_block_info, build_scops_1): Don't use
4864 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
4866 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
4867 Sebastian Pop <sebastian.pop@amd.com>
4869 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
4870 * sese.c (sese_build_liveouts_use): Renamed from
4871 sese_build_livein_liveouts_use. Remove liveins.
4872 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
4873 Call sese_build_liveouts_use.
4874 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
4875 Call sese_build_liveouts_bb.
4876 (new_sese, free_sese): Remove liveins.
4877 (sese_add_exit_phis_var): Deleted.
4878 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
4880 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
4882 * sese.h (sese): Remove num_ver and livein.
4883 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
4885 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
4887 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
4889 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
4891 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
4892 (build_scop_scattering): Do not use compare_prefix_loops any more.
4893 (nb_common_loops): New.
4895 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4897 * sese.c (get_new_name_from_old_name): Renamed get_rename.
4898 (register_old_and_new_names): Renamed set_rename.
4900 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4902 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
4903 of the decl from the previous commit.
4905 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4907 * graphite-scop-detection.c (dot_scop): New.
4908 * graphite-scop-detection.h (dot_scop): Declared.
4910 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4912 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
4914 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4916 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
4917 condition at the end of the loop.
4918 * graphite.c (graphite_initialize, graphite_finalize): Print to
4919 dump_file the compiled function.
4920 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
4921 of create_empty_loop_on_edge.
4922 (translate_clast): Update the code generation of loops for the new
4924 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
4926 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4928 Reverted the patch from 2009-03-19.
4930 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
4932 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
4934 (print_scop): Style.
4935 * graphite-poly.h (poly_bb): Add drs vector.
4936 (PBB_DRS): Add accessor.
4937 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
4938 (build_access_matrix_with_af, build_access_matrix,
4939 build_scop_data_accesses): Delete.
4940 (build_poly_dr): New.
4941 (build_pbb_drs, build_scop_drs): New.
4942 (build_poly_scop): call build_scop_drs.
4944 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
4946 * graphite-scop-detection.c (dot_all_scops_1): Close the table
4947 once per basic block.
4949 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
4951 * graphite-scop-detection.c (graphite_can_represent_scev): New.
4952 (graphite_can_represent_expr): Renamed from loop_affine_expr
4954 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
4955 (graphite_cannot_represent_loop): Add scop_entry to parameters.
4956 (scopdet_basic_block_info): Actually define entry_block.
4957 (stmt_simple_memref_p): Moved here from ...
4959 * tree-data-ref.c (stmt_simple_memref_p): here.
4960 * tree-data-ref.h (stmt_simple_memref_p): Removed.
4962 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
4964 * gcc.dg/graphite/id-4.c: New.
4966 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
4968 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
4969 (register_old_and_new_names): Update the content of the map.
4970 When there was already a rename_map_elt in the map at that
4972 (copy_bb_and_scalar_dependences): Do rename_variables after
4973 expand_scalar_variables.
4974 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4975 of the map. When there was already a rename_map_elt in the
4976 map at that location, free it.
4977 (translate_clast): Pass the rename_map. Do not initialize and free
4978 a rename_map per stmt_user.
4979 (gloog): Initialize and free one rename_map and pass it to
4982 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
4984 * sese.c (expand_scalar_variables_stmt,
4985 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
4987 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
4988 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
4989 the gimple_stmt_iterator of the statement to be expanded.
4990 * graphite-scop-detection.c (is_simple_operand): Do handle
4993 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4995 * graphite-scop-detection.c (is_simple_operand): Do not handle
4997 * gcc.dg/graphite/id-2.c: New.
4999 * graphite-sese-to-poly.c (build_bb_loops,
5000 add_value_to_dim, scan_tree_for_params_right_scev,
5001 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
5002 find_params_in_bb, build_loop_iteration_domains,
5003 add_conditions_to_domain): Remove subtract.
5005 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5007 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
5008 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
5009 pbb_loop_at_index -> gbb_loop_at_index.
5010 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
5011 (debug_loop_vec): Delete.
5012 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
5013 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
5014 (PBB_LOOPS): Removed.
5015 (PBB_BLACK_BOX): Insert cast.
5016 (pbb_set_black_box): New setter.
5017 (pbb_loop_at_index, pbb_loop_index): Removed.
5018 (scop_set_region, scop_set_nb_params): New.
5019 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
5020 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
5021 (build_poly_scop): Use scop_set_nb_params.
5022 * sese.h (gimple_bb): Add LOOPS.
5023 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
5025 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5027 Revert previous commit.
5029 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
5031 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
5032 (register_old_and_new_names): Update the content of the map.
5033 When there was already a rename_map_elt in the map at that
5035 (copy_bb_and_scalar_dependences): Do rename_variables after
5036 expand_scalar_variables.
5037 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5038 of the map. When there was already a rename_map_elt in the
5039 map at that location, free it.
5040 (translate_clast): Pass the rename_map. Do not initialize and free
5041 a rename_map per stmt_user.
5042 (gloog): Initialize and free one rename_map and pass it to
5045 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5047 Remove forgotten line in revert.
5049 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
5051 Revert previous commit.
5053 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
5055 * sese.c (register_old_and_new_names): Update the content
5056 of the map. When there was already a rename_map_elt in the
5057 map at that location, free it.
5058 (copy_bb_and_scalar_dependences): Do rename_variables after
5059 expand_scalar_variables.
5060 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5061 of the map. When there was already a rename_map_elt in the
5062 map at that location, free it.
5063 (translate_clast): Pass the rename_map. Do not initialize and free
5064 a rename_map per stmt_user.
5065 (gloog): Initialize and free one rename_map and pass it to
5068 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
5070 * graphite-clast-to-gimple.c (translate_clast): context_loop
5073 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
5074 Sebastian Pop <sebastian.pop@amd.com>
5076 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
5077 of the use of ppl_Polyhedron_map_space_dimensions.
5079 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
5080 Sebastian Pop <sebastian.pop@amd.com>
5082 * graphite-poly.c (unify_scattering_dimensions): Fix types.
5083 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
5084 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
5085 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
5086 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
5087 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
5088 pbb_nb_params): New.
5089 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
5090 nb_loops_around_pbb): Adapt return types.
5092 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
5094 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
5095 graphite-clast-to-gimple.o, graphite-data-ref.o,
5096 graphite-scop-detection.o, graphite-poly.o): Add
5099 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
5101 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
5102 graphite-clast-to-gimple.o, graphite-data-ref.o,
5103 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
5105 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
5107 * gcc.dg/graphite/pr37485.c: Remove -floop-block
5108 * gcc.dg/graphite/pr37828.c: Same.
5109 * gcc.dg/graphite/pr37684.c: Same.
5110 * gcc.dg/graphite/block-0.c: Same.
5111 * gcc.dg/graphite/block-1.c: Same.
5112 * gcc.dg/graphite/block-2.c: Same.
5113 * gcc.dg/graphite/block-3.c: Same.
5114 * gcc.dg/graphite/block-4.c: Same.
5115 * gcc.dg/graphite/block-5.c: Same.
5116 * gcc.dg/graphite/block-6.c: Same.
5117 * gfortran.dg/graphite/pr38083.f90: Same.
5118 * gfortran.dg/graphite/block-1.f90: Same.
5119 * gfortran.dg/graphite/block-3.f90: Same.
5120 * gfortran.dg/graphite/pr37852.f90: Same.
5121 * gfortran.dg/graphite/block-4.f90: Same.
5122 * gfortran.dg/graphite/pr37980.f90: Same.
5123 * gfortran.dg/graphite/pr38953.f90: Same.
5124 * gfortran.dg/graphite/pr37857.f90: Same.
5125 * opts.c: Remove -floop-block from -O2.
5126 * graphite-poly.c: Fail if -floop-block -floop-interchange or
5127 -floop-strip-mine are used.
5129 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
5130 Sebastian Pop <sebastian.pop@amd.com>
5132 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
5134 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
5135 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
5136 strip_mine_profitable_p, is_interchange_valid,
5137 graphite_trans_bb_block, graphite_trans_loop_block,
5138 graphite_trans_scop_block): Temporary removed.
5139 (extend_scattering, unify_scattering_dimensions): New.
5140 (print_scattering_function, graphite_read_transforms):
5141 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5142 (graphite_generate_scattering_fns): Removed.
5143 (apply_poly_transforms): Cleanup.
5144 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5145 (schedule_to_scattering): Moved.
5146 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
5147 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
5148 (pbb_nb_scattering): New.
5149 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5150 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
5152 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
5154 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5155 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
5156 -> PBB_TRANSFORMED_SCATTERING.
5157 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
5158 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
5159 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
5160 (check_poly_representation): Do not return bool.
5161 (graphite_transform_loops): Reformat.
5162 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
5164 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
5166 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
5167 debug_pbb_domain, debug_pbb, debug_scop): New.
5168 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
5169 debug_pbb_domain, debug_pbb, debug_scop): Declared.
5171 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5174 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
5175 when the type precision of the induction variable should be
5176 larger than the type precision of nit.
5177 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
5178 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
5179 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
5181 * gcc.dg/graphite/pr39335_1.c: New.
5182 * gcc.dg/graphite/pr39335.c: New.
5184 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5186 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
5187 SSA_NAMES not struct reduction_info.
5189 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5191 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
5193 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5194 Tobias Grosser <grosser@fim.uni-passau.de>
5196 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
5197 (free_sese): Free SESE_REDUCTION_LIST.
5198 * sese.h (struct sese): Add field reduction_list.
5199 (SESE_REDUCTION_LIST): New.
5200 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
5201 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
5203 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5204 Tobias Grosser <grosser@fim.uni-passau.de>
5206 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
5209 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5210 Tobias Grosser <grosser@fim.uni-passau.de>
5212 * tree-parloops.c (struct brli, build_reduction_list_info,
5213 analyze_reduction_list, gather_scalar_reductions): New.
5214 (loop_parallel_p): Build a reduction list containing only
5215 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
5216 (gen_parallel_loop): Call the analysis analyze_reduction_list.
5217 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
5218 * tree-flow.h (gather_scalar_reductions): Declared.
5220 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
5223 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
5224 number_of_iterations_exit from a gcc_assert.
5226 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
5227 Jan Sjodin <jan.sjodin@amd.com>
5229 * output.h (graphite_out_file, graphite_in_file): Declared.
5230 * toplev.c (graphite_out_file, graphite_in_file): New.
5231 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
5232 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
5233 Don't call schedule_to_scattering.
5234 * common.opt (fgraphite-write, fgraphite-read): New.
5235 * graphite-poly.c: Include output.h.
5236 (print_scattering_function, print_scattering_functions,
5237 debug_scattering_function, debug_scattering_functions,
5238 graphite_write_transforms, graphite_read_transforms,
5239 graphite_generate_scattering_fns): New.
5240 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
5241 Call graphite_generate_scattering_fns, graphite_write_transforms,
5242 graphite_read_transforms.
5243 (new_poly_bb): Initialize PBB_SCATTERING.
5244 (free_poly_bb): Free PBB_SCATTERING.
5245 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
5246 * graphite-poly.h (struct poly_bb): Add field scattering.
5247 (PBB_SCATTERING): New.
5248 (print_scattering_function, print_scattering_functions,
5249 debug_scattering_function, debug_scattering_functions): Declared.
5250 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
5251 GMP values, not integers!
5252 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
5253 ppl_read_polyhedron_matrix): New.
5254 * graphite-ppl.h (ppl_print_polyhedron_matrix,
5255 debug_ppl_polyhedron_matrix,
5256 ppl_read_polyhedron_matrix): Declared.
5257 * Makefile.in (graphite-poly.o): Depends on output.h.
5259 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5260 Tobias Grosser <grosser@fim.uni-passau.de>
5263 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5264 scalar evolutions in the scop_entry->loop_father.
5266 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5267 Tobias Grosser <grosser@fim.uni-passau.de>
5269 * graphite.h (ref_nb_loops): Remove declaration.
5270 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
5271 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
5272 debug_gbb): Moved to sese.h.
5275 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5276 Tobias Grosser <grosser@fim.uni-passau.de>
5278 * graphite-data-ref.[ch]: Disable.
5280 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5281 Tobias Grosser <grosser@fim.uni-passau.de>
5283 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5284 scalar evolutions in the scop_entry->loop_father.
5286 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5288 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
5289 (graphite_cannot_represent_loop_niter): Renamed
5290 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
5291 (limit_scops): build_sese_loop_nests does not return a bool.
5292 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
5293 * sese.c (nb_reductions_in_loop): ... from here.
5294 (graphite_loop_normal_form): ... from here.
5295 (sese_record_loop): Does not fail, so does not return a bool.
5296 (build_sese_loop_nests): Same.
5297 * sese.h (build_sese_loop_nests): Update declaration.
5298 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
5299 (build_graphite_loop_normal_form): New.
5300 (gloog): Call build_graphite_loop_normal_form.
5301 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
5302 build_sese_loop_nests.
5304 * gcc.dg/graphite/id-1.c: New.
5306 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5307 Tobias Grosser <grosser@fim.uni-passau.de>
5309 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
5310 The SCoP detection fix is sufficient.
5312 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5314 PR tree-optimization/39260
5315 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
5316 the basic block contains a condition with a real type.
5317 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
5319 * gcc.dg/graphite/pr39260.c: New.
5321 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5323 * graphite-poly.c: Inlcude params.h.
5324 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
5326 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
5327 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
5329 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5330 Tobias Grosser <grosser@fim.uni-passau.de>
5332 * graphite-scop-detection.c (dot_all_scops_1,
5333 dot_all_scops): Moved here.
5334 * graphite-scop-detection.h (dot_all_scops): Declared here.
5335 * graphite.c (graphite_initialize, graphite_finalize): New.
5336 (graphite_transform_loops): Cleaned up.
5337 * sese.c (debug_oldivs): Moved here.
5338 * graphite-poly.c (graphite_apply_transformations): Renamed
5339 apply_poly_transforms.
5340 (debug_loop_vec): Moved here.
5341 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
5342 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
5343 find_scop_parameters, build_scop_iteration_domain,
5344 add_conditions_to_constraints, build_scop_canonical_schedules,
5345 build_scop_data_accesses): Now static.
5346 (build_poly_scop, check_poly_representation): New.
5348 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5350 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
5351 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
5352 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
5353 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
5354 scan_tree_for_params_right_scev, scan_tree_for_params_int,
5355 scan_tree_for_params, struct irp_data, dx_record_params,
5356 find_params_in_bb, find_scop_parameters, gbb_from_bb,
5357 build_loop_iteration_domains, add_conditions_to_domain,
5358 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
5359 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
5360 build_sese_conditions, add_conditions_to_constraints,
5361 build_scop_iteration_domain, build_access_matrix_with_af,
5362 build_access_matrix,
5363 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
5365 * graphite-sese-to-poly.c: New.
5366 * graphite-sese-to-poly.h: New.
5368 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
5370 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5372 * graphite.c: Split graphite code generation to a new file.
5373 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
5374 max_precision_type, clast_to_gcc_expression_red,
5375 clast_to_gcc_expression, gcc_type_for_clast_expr,
5376 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
5377 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
5378 graphite_create_new_guard, clast_get_body_of_loop,
5379 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
5380 graphite_create_new_loop, build_iv_mapping, copy_renames,
5381 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5382 compute_cloog_iv_types, free_scattering, save_var_name,
5383 initialize_cloog_names, build_scop_context, build_cloog_prog,
5384 set_cloog_options, debug_clast_stmt, scop_to_clast,
5385 print_generated_program, debug_generated_program,
5386 gloog): Moved to graphite-clast-to-gimple.c.
5388 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
5390 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
5391 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
5392 loop_iv_stack_pop, loop_iv_stack_get_iv,
5393 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
5394 free_loop_iv_stack, loop_iv_stack_remove_constants,
5395 debug_rename_elt, debug_rename_map_1, debug_rename_map,
5396 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
5397 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
5398 eq_ivtype_map_elts, sese_add_exit_phis_edge,
5399 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
5400 get_vdef_before_sese, sese_adjust_vphi,
5401 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
5402 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
5403 is_iv, expand_scalar_variables_ssa_name,
5404 expand_scalar_variables_expr, expand_scalar_variables_stmt,
5405 expand_scalar_variables, rename_variables, remove_condition,
5406 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
5407 add_loop_exit_phis, insert_loop_close_phis, struct igp,
5408 default_liveout_before_guard, add_guard_exit_phis,
5409 insert_guard_phis, register_old_and_new_names,
5410 graphite_copy_stmts_from_block, register_sese_liveout_renames,
5411 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
5412 if_region_set_false_region, create_if_region_on_edge,
5413 move_sese_in_condition): Moved to sese.c.
5415 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
5416 if_region_exit, if_region_get_condition_block,
5417 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
5418 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
5419 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
5420 ivtype_map_elt, new_ivtype_map_elt,
5421 recompute_all_dominators): Moved to sese.h.
5423 * graphite-clast-to-gimple.c: New.
5424 * graphite-clast-to-gimple.h: New.
5425 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
5426 * sese.c: Modified as said above.
5429 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5431 * graphite.c: Split scop detection to a new file.
5432 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
5433 move_sd_regions, loop_affine_expr, exclude_component_ref,
5434 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
5435 graphite_cannot_represent_loop_niter, struct scopdet_info,
5436 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
5437 find_single_entry_edge, find_single_exit_edge,
5438 create_single_entry_edge, sd_region_without_exit,
5439 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
5440 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
5441 Moved to graphite-scop-detection.c.
5443 * graphite-scop-detection.c: New.
5444 * graphite-scop-detection.h: New.
5445 * Makefile.in: Add new rule for graphite-scop-detection.o.
5447 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
5448 tree-scalar-evolution.h.
5449 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
5450 build_sese_loop_nests): Moved here from graphite.c.
5451 (param_index): Renamed parameter_index_in_region.
5453 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5454 Sebastian Pop <sebastian.pop@amd.com>
5456 * gcc.dg/graphite/block-0.c: Expected to fail now.
5457 * gcc.dg/graphite/block-1.c: Same.
5458 * gcc.dg/graphite/block-5.c: Same.
5459 * gcc.dg/graphite/block-6.c: Same.
5461 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5462 Sebastian Pop <sebastian.pop@amd.com>
5464 * graphite.h: Separate from graphite_bb_p the polyhedral
5465 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
5466 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
5467 graphite-data-ref.h.
5468 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
5469 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
5470 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
5471 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5472 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
5473 scop_nb_params): Moved to graphite-poly.h.
5474 * graphite-data-ref.c: Same.
5475 * graphite-data-ref.h: New.
5477 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
5478 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
5479 is_interchange_valid, graphite_trans_bb_block,
5480 graphite_trans_loop_block, scop_max_loop_depth,
5481 graphite_trans_scop_block, graphite_apply_transformations,
5482 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
5484 * graphite-poly.h: New.
5485 * graphite-poly.c: New.
5486 * Makefile.in (OBJS-common): Add graphite-poly.o.
5487 (graphite-poly.o): New rule.
5488 * tree-data-ref.h (struct data_reference): Remove unused scop field.
5491 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5492 Tobias Grosser <grosser@fim.uni-passau.de>
5494 * graphite.c: Replace gb -> gbb.
5496 * graphite-data-ref.c: Same.
5498 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5499 Tobias Grosser <grosser@fim.uni-passau.de>
5501 * Makefile.in (OBJS-commmon): Add sese.o.
5503 (graphite.o): Add sese.h.
5504 * graphite.c (bb_in_ss_p, loop_in_sese_p,
5505 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
5506 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
5508 (block_before_scop): Add missing return.
5509 (new_scop, free_scop): Remove SESE data structures.
5510 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
5511 find_scop_parameters, build_loop_iteration_domains,
5512 add_conditions_to_domain, register_scop_liveout_renames,
5513 copy_bb_and_scalar_dependences): Scop -> SESE.
5515 (add_conditions_to_domain): SCoP -> SESE and remove check
5516 (scop_contains_non_iv_scalar_phi_nodes): New.
5517 (build_scop_conditions_1, build_scop_conditions): Remove check for
5518 non iv scalar phi nodes.
5519 (print_scop_statistics): New.
5520 (graphite_transform_loops): Cleanup.
5522 * graphite.h: Move to sese & cleanup.
5526 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5527 Tobias Grosser <grosser@fim.uni-passau.de>
5529 * graphite.c (build_scop_conditions_1): Conditions are only
5530 at the end of a basic block.
5532 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5533 Tobias Grosser <grosser@fim.uni-passau>
5535 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
5537 (GBB_ALPHA): Removed.
5539 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5540 Tobias Grosser <grosser@fim.uni-passau.de>
5542 * graphite-data-ref.c (graphite_test_dependence): Don't use
5543 GBB_DYNAMIC_SCHEDULE.
5544 * graphite.c (new_graphite_bb): Same.
5545 (free_graphite_bb): Same.
5546 (build_scop_dynamic_schedules): Removed.
5547 (graphite_transform_loops): Don't call it.
5548 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
5549 (GBB_DYNAMIC_SCHEDULE): Removed.
5551 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5552 Tobias Grosser <grosser@fim.uni-passau.de>
5554 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
5555 (print_graphite_bb): Same.
5556 (build_cloog_prog): Same.
5558 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5559 Tobias Grosser <grosser@fim.uni-passau.de>
5561 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
5563 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5564 Tobias Grosser <grosser@fim.uni-passau.de>
5566 * graphite.c (build_scop_context): Don't use CloogMatrix.
5567 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
5568 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
5570 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5571 Tobias Grosser <grosser@fim.uni-passau.de>
5573 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
5574 liveout_renames, add_params fields...
5575 (struct sese): ... here.
5576 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
5577 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
5579 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5580 Tobias Grosser <grosser@fim.uni-passau.de>
5582 * graphite.c (print_scop): Do not print the CLooG program.
5583 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
5584 build_cloog_prog, gloog): Don't use SCOP_PROG.
5585 (find_transform): Renamed scop_to_clast.
5586 (print_generated_program, debug_generated_program): New.
5587 (graphite_transform_loops): Adapt to new interface.
5588 * graphite.h (struct scop): Remove program field.
5589 (SCOP_PROG): Removed.
5590 (print_generated_program, debug_generated_program): Declared.
5592 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5594 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
5595 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
5596 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
5597 free_graphite_bb, build_scop_canonical_schedules,
5598 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
5599 schedules are now represented using a ppl_Linear_Expression_t.
5600 * graphite.h (struct graphite_bb): Same.
5601 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
5602 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
5604 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5606 * graphite.c: Free local memory.
5607 * graphite-ppl.c: Same.
5609 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5611 * graphite.c (const_column_index, get_first_matching_sign_row_index,
5612 get_lower_bound_row, get_upper_bound_row, copy_constraint,
5613 swap_constraint_variables, scale_constraint_variable): Removed.
5614 (graphite_trans_bb_strip_mine): Remove pong.
5615 * graphite-ppl.c: Include missing header files.
5616 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
5617 * graphite-ppl.h (ppl_strip_loop): Declared.
5618 * Makefile.in (graphite-ppl.o): Adjust dependences.
5620 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
5622 * graphite.c (build_loop_iteration_domains): Remove ping pong.
5623 (build_scop_iteration_domain): Same.
5625 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5627 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5629 (add_value_to_dim, scan_tree_for_params_right_scev,
5630 scan_tree_for_params_int): New.
5631 * graphite-ppl.c (oppose_constraint): New.
5632 (insert_constraint_into_matrix): Implement missing cases.
5633 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5635 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5637 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
5638 use ppl_move_dimension.
5640 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5642 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
5645 * graphite-ppl.c: Same.
5646 * graphite-ppl.h: Same.
5648 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5650 Revert last 3 commits.
5652 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5654 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5656 (add_value_to_dim, scan_tree_for_params_right_scev,
5657 scan_tree_for_params_int): New.
5658 * graphite-ppl.c (oppose_constraint): New.
5659 (insert_constraint_into_matrix): Implement missing cases.
5660 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5662 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5664 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
5666 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5667 Tobias Grosser <grosser@fim.uni-passau.de>
5669 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
5670 use ppl_move_dimension.
5671 * graphite-ppl.c (ppl_move_dimension): New.
5672 * graphite-ppl.h (ppl_move_dimension): Declared.
5674 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5676 * graphite.c: Do not include cloog/cloog.h.
5677 (print_graphite_bb): Remove ping pong, call PPL print function.
5679 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
5681 * Makefile.in (OBJS-common): Add graphite-ppl.o.
5682 (graphite.o): Add dependence on graphite-ppl.h.
5683 (graphite-ppl.o): New.
5684 (graphite-data-ref.c): Ping pong between PPL data structures
5686 * graphite-ppl.c: New.
5687 * graphite-ppl.h: New.
5688 * graphite.c: Include graphite-ppl.h.
5689 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
5690 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
5691 Ping pong between PPL data structures and matrices.
5692 (new_graphite_bb): Create a PPL constraint system.
5693 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
5694 (build_loop_iteration_domains): Use PPL functions.
5695 * graphite.h: Include graphite-ppl.h. Fix comments.
5696 (graphite_bb): Use a ppl_Constraint_System_t instead of
5697 CloogMatrix for representing the domain.
5698 (scop): Remove static_schedule.
5699 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
5701 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
5703 * graphite.c: Fix some comments.
5705 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
5708 * graphite.c (if_region_set_false_region): After moving a region
5709 in the false branch of a condition, remove the empty dummy
5711 (gloog): Remove wrong fix for PR38953.
5713 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
5715 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
5716 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
5717 register_bb_in_sese, new_sese, free_sese): Moved.
5718 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
5719 outermost_loop_in_scop, build_scop_iteration_domain,
5720 expand_scalar_variables_ssa_name, get_vdef_before_scop,
5721 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
5722 Use loop_in_sese_p instead of loop_in_scop_p.
5723 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
5724 (free_scop): Do not free SCOP_BBS_B.
5725 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
5726 ref_nb_loops): Moved here...
5727 * graphite.h (ref_nb_loops): ... from here.
5728 (struct scop): Remove bbs_b bitmap.
5729 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
5730 * gcc.dg/graphite/scop-19.c: New
5732 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
5734 * graphite.c (scopdet_basic_block_info): Fix bug in scop
5737 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
5739 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
5740 eq_loop_to_cloog_loop): Remove.
5741 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
5742 * graphite.h (struct scop): Remove loop2cloog_loop.
5743 (loop_domain_dim, loop_iteration_vector_dim): Remove.
5745 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
5747 * opts.c (decode_options): Only add graphite options to O2
5748 if we compile with graphite enabled.
5750 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
5752 * Merge from mainline (r143163:143684).
5754 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
5756 * graphite.c (debug_value): Removed.
5757 * graphite.h (debug_value): Removed.
5759 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5761 * passes.c (init_optimization_passes): Do not call pass_copy_prop
5762 after graphite: pass_copy_prop does not maintain a proper loop closed
5763 SSA form. pass_copy_prop should be fixed.
5765 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5767 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
5769 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5771 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
5772 (gloog): Split the exit of the scop when the scop exit is a loop exit.
5773 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
5776 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
5778 * graphite.c (gloog): Return true when code gen succeeded.
5779 (graphite_transform_loops): Do not call cleanup_tree_cfg if
5780 the code of the function did not changed. After cleanup_tree_cfg
5781 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
5784 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
5786 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
5787 gimple_call_lhs is NULL.
5789 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
5790 Tobias Grosser <tobi.grosser@amd.com>
5792 * graphite.c (graphite_trans_scop_block): Do not block single
5795 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
5796 Tobias Grosser <tobi.grosser@amd.com>
5798 * graphite.c (build_scop_canonical_schedules): Start schedules at
5801 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
5802 Tobias Grosser <tobi.grosser@amd.com>
5804 * graphite.c (compare_prefix_loops): New.
5805 (build_scop_canonical_schedules): Rewritten.
5806 (graphite_transform_loops): Move build_scop_canonical_schedules
5807 after build_scop_iteration_domain.
5809 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5810 Tobias Grosser <tobi.grosser@amd.com>
5812 * graphite.c (add_conditions_to_domain): Add the loops to
5813 the dimension of the iteration domain. Do copy the domain
5814 only when it exists.
5815 (build_scop_conditions_1): Do not call add_conditions_to_domain.
5816 (add_conditions_to_constraints): New.
5817 (can_generate_code_stmt, can_generate_code): Removed.
5818 (gloog): Do not call can_generate_code.
5819 (graphite_transform_loops): Call add_conditions_to_constraints
5820 after building the iteration domain.
5822 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5823 Tobias Grosser <tobi.grosser@amd.com>
5824 Jan Sjodin <jan.sjodin@amd.com>
5826 * graphite.c (scan_tree_for_params): On substractions negate
5827 all the coefficients of the term.
5828 (clast_to_gcc_expression_red): New. Handle reduction expressions
5829 of more than two operands.
5830 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
5831 (get_vdef_before_scop): Handle also the case of default definitions.
5833 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5836 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
5837 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
5838 (gloog): Do not call cleanup_tree_cfg.
5839 (graphite_transform_loops): Call cleanup_tree_cfg after all
5840 scops have been code generated.
5842 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
5844 * passes.c (init_optimization_passes): Schedule after
5845 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
5847 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
5849 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
5851 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
5852 Set the type of an expression to the type of its assign statement.
5853 (expand_scalar_variables_expr): Do not pass loop_p.
5854 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
5855 (copy_bb_and_scalar_dependences): Do not pass loop_p.
5856 (translate_clast): Update call to copy_bb_and_scalar_dependences.
5858 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
5860 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
5861 an expression to the gimple_expr_type of its assign statement.
5862 (expand_scalar_variables_expr): Stop recursion on tcc_constant
5865 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
5867 PR tree-optimization/38786
5868 * gcc.dg/graphite/pr38786.c: New.
5869 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
5870 the SSA_NAME case of expand_scalar_variables_expr.
5871 (expand_scalar_variables_expr): Also gather the scalar computation
5872 used to index the memory access.
5873 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
5874 the gimple_stmt_iterator where it inserts new code.
5876 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
5878 * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
5880 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
5882 * opts.c (decode_options): Enable flag_graphite_identity and
5883 flag_loop_block in -O2 and above.
5885 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
5887 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
5888 Fix merge problem: replace with the file from trunk.
5890 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
5892 * Merge from mainline (r141727:143163).
5894 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
5895 Jan Sjodin <jan.sjodin@amd.com>
5897 PR tree-optimization/38559
5898 * gcc.dg/graphite/pr38559.c: New.
5900 * graphite.c (debug_value, copy_constraint,
5901 swap_constraint_variables, scale_constraint_variable, ): New.
5902 (get_lower_bound, get_upper_bound): Removed.
5903 (graphite_trans_bb_strip_mine): Clean up this code that works
5904 only for constant number of iterations. Fully copy upper and
5905 lower bound constraints, not only the constant part of them.
5906 * graphite.h (debug_value): Declared.
5908 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
5910 PR tree-optimization/38492
5911 PR tree-optimization/38498
5912 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
5913 * tree-chrec.h (scev_is_linear_expression): Declared.
5914 * graphite.c (graphite_cannot_represent_loop_niter): New.
5915 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
5916 (graphite_loop_normal_form): Use gcc_assert.
5917 (scan_tree_for_params): Use CASE_CONVERT.
5918 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
5919 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
5920 Use gcc_assert. Discard scops that contain unhandled cases.
5921 (build_scop_conditions): Return a boolean status for unhandled cases.
5922 (strip_mine_profitable_p): Print the loop number, not its depth.
5923 (is_interchange_valid): Pass the depth of the loop nest, don't
5924 recompute it wrongly.
5925 (graphite_trans_bb_block): Same.
5926 (graphite_trans_bb_block): Print tentative of loop blocking.
5927 (graphite_trans_scop_block): Do not print that the loop has been
5929 (graphite_transform_loops): Do not handle scops that contain condition
5932 * gcc.dg/graphite/pr38500.c: Fixed warning as committed
5934 * gcc.dg/graphite/block-0.c: Update test.
5935 * gcc.dg/graphite/block-1.c: Same.
5936 * gcc.dg/graphite/block-2.c: Remove xfail and test for
5938 * gcc.dg/graphite/block-4.c: Remove test for strip mine.
5939 * gcc.dg/graphite/block-3.c: New.
5940 * gcc.dg/graphite/pr38498.c: New.
5942 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
5944 PR tree-optimization/38510
5945 * gcc.dg/graphite/pr38510.c: New.
5946 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
5947 (translate_clast): Call recompute_all_dominators before
5949 (gloog): Call recompute_all_dominators before graphite_verify.
5951 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
5953 PR tree-optimization/38492
5954 * graphite.c (rename_map_elt, debug_rename_elt,
5955 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
5956 rename_map_elt_info, eq_rename_map_elts,
5957 get_new_name_from_old_name, bb_in_sese_p): Moved around.
5958 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
5959 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
5960 (sese_build_livein_liveouts): New.
5961 (new_sese, free_sese): New.
5962 (new_scop): Call new_sese.
5963 (free_scop): Call free_sese.
5964 (rename_variables_from_edge, rename_phis_end_scop): Removed.
5965 (register_old_new_names): Renamed register_old_and_new_names.
5966 (register_scop_liveout_renames, add_loop_exit_phis,
5967 insert_loop_close_phis, struct igp,
5968 default_liveout_before_guard, add_guard_exit_phis,
5969 insert_guard_phis, copy_renames): New.
5970 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
5971 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
5972 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
5973 (scop_adjust_phis_for_liveouts): New.
5974 (gloog): Call scop_adjust_phis_for_liveouts.
5976 * graphite.h (struct sese): Documented. Added fields liveout,
5978 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
5979 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
5980 (struct scop): Added field liveout_renames.
5981 (SCOP_LIVEOUT_RENAMES): New.
5983 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5985 PR tree-optimization/38409
5986 * gcc.dg/graphite/pr38409.c: New.
5987 * graphite.c (nb_reductions_in_loop): Use simple_iv.
5989 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5991 * graphite.c (gcc_type_for_cloog_iv): By default return
5993 (graphite_create_new_loop): Don't fold_convert the already
5994 fold_convert-ed expression.
5996 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
5998 PR tree-optimization/38446
5999 * gcc.dg/graphite/pr38446.c: New.
6000 * graphite.c (register_bb_in_sese): New.
6001 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
6002 looking at the bbs in the region.
6003 * graphite.h (sese): Add region_basic_blocks pointer set to
6004 structure and initialize at the time of defining new scop.
6006 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
6008 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
6009 (find_params_in_bb): Do not free data refs.
6010 (free_graphite_bb): Add FIXME on disabled free_data_refs.
6012 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6014 * gcc.dg/graphite/scop-16.c: Test only scop specific info.
6015 * gcc.dg/graphite/scop-17.c: Same.
6016 * gcc.dg/graphite/block-5.c: New.
6017 * gcc.dg/graphite/block-6.c: New.
6018 * gcc.dg/graphite/pr37485.c: Clean dump file after.
6019 * gcc.dg/graphite/pr37684.c: Same.
6020 * gcc.dg/graphite/block-2.c: Same.
6022 * graphite.c (struct ivtype_map_elt): New.
6023 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
6024 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
6025 gcc_type_for_cloog_iv): New.
6026 (loop_iv_stack_patch_for_consts): Use the type of the induction
6027 variable from the original loop, except for the automatically
6028 generated loops, i.e., in the case of a strip-mined loop, in
6029 which case there is no original loop: in that case just use
6031 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
6032 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
6033 (clast_name_to_gcc): Accept params to be NULL.
6034 (clast_to_gcc_expression): Take an extra parameter for the type.
6035 Convert to that type all the expressions built by this function.
6036 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
6037 (graphite_translate_clast_equation): Compute the type of the
6038 clast_equation before translating its LHS and RHS.
6039 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
6040 (graphite_create_new_loop): Compute the type of the induction
6041 variable before translating the lower and upper bounds and before
6042 creating the induction variable.
6043 (rename_variables_from_edge, rename_phis_end_scop): New.
6044 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
6045 (sese_add_exit_phis_edge): Do not use integer_zero_node.
6046 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
6047 compute_cloog_iv_types): New.
6048 (gloog): Call compute_cloog_iv_types before starting the
6049 translation of the clast.
6051 * graphite.h (struct graphite_bb): New field cloog_iv_types.
6052 (GBB_CLOOG_IV_TYPES): New.
6053 (debug_ivtype_map): Declared.
6054 (oldiv_for_loop): New.
6056 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
6059 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
6060 (param_index): Assert if parameter is not know after parameter
6062 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
6063 (find_scop_parameters): Mark, that we have finished parameter
6065 (graphite_transform_loops): Move condition detection before parameter
6067 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
6068 * gfortran.dg/graphite/pr38459.f90: New.
6070 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
6072 * graphite.c (graphite_transform_loops): Always call find_transform ()
6073 in ENABLE_CHECKING. So we test these code paths, even if we do not
6076 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
6078 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
6079 (print_scop): Ditto.
6081 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
6084 Fix gfortran.dg/graphite/id-3.f90.
6085 * graphite.c (scopdet_basic_block_info): Fix bug that found some
6086 regions more than once.
6088 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6090 Fix gfortran.dg/graphite/id-4.f90.
6091 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
6094 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6096 Fix gfortran.dg/graphite/id-1.f90.
6097 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
6098 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
6099 (max_precision_type): New.
6100 (value_clast): Removed.
6101 (clast_to_gcc_expression): Be more careful to types of expressions.
6102 Use max_precision_type and update use of gmp_cst_to_tree.
6103 (graphite_translate_clast_equation): Use max_precision_type.
6104 (graphite_create_guard_cond_expr): Do not use integer_type_node,
6105 use the type of the condition.
6106 (graphite_create_new_loop): Do not use integer_type_node, use the
6107 max_precision_type of lb and ub.
6109 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6111 * graphite.c (build_scops_1): Initialize open_scop.exit
6114 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
6116 * gcc.dg/graphite/pr38084.c: New.
6117 * gfortran.dg/graphite/id-1.f90: New.
6118 * gfortran.dg/graphite/id-2.f90: New.
6119 * gfortran.dg/graphite/id-3.f90: New.
6120 * gfortran.dg/graphite/id-4.f90: New.
6121 * gfortran.dg/graphite/pr37857.f90: New.
6123 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
6124 Jan Sjodin <jan.sjodin@amd.com>
6125 Harsha Jagasia <harsha.jagasia@amd.com>
6137 * gcc.dg/graphite/pr38073.c: New.
6138 * gcc.dg/graphite/pr37928.c: New.
6139 * gcc.dg/graphite/pr37883.c: New.
6140 * gcc.dg/graphite/pr38125.c: New.
6141 * gfortran.dg/graphite/pr38083.f90: New.
6142 * gfortran.dg/graphite/pr37852.f90: New.
6143 * gfortran.dg/graphite/pr37980.f90: New.
6145 * gcc.dg/graphite/scop-18.c: Remove reduction, test for
6146 the number of detected scops. Copy exact same test for loop
6148 * gcc.dg/graphite/block-1.c: Fix the number of expected
6149 loops to be blocked as reductions are not handled.
6150 * gcc.dg/graphite/block-4.c: ...here. New.
6152 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
6153 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
6155 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
6156 * Makefile.in (graphite.o): Depend on value-prof.h.
6157 (graphite.o-warn): Removed -Wno-error.
6158 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
6159 to be a NULL pointer. Call update_stmt. Return the newly created
6160 cannonical induction variable.
6162 * graphite.h (debug_rename_map): Declared. Fix some comments.
6164 * graphite.c: Reimplement the code generation from graphite to gimple.
6165 Include value-prof.h.
6166 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
6167 (get_old_iv_from_ssa_name): Removed.
6168 (graphite_stmt_p): New.
6169 (new_graphite_bb): Test for useful statements before building a
6170 graphite statement for the basic block.
6171 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
6172 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
6174 (recompute_all_dominators, graphite_verify,
6175 nb_reductions_in_loop, graphite_loop_normal_form): New.
6176 (scop_record_loop): Call graphite_loop_normal_form.
6177 (build_scop_loop_nests): Iterate over all the blocks of the
6178 function instead of relying on the incomplete information from
6179 SCOP_BBS. Return the success of the operation.
6180 (find_params_in_bb): Use the data from GBB_DATA_REFS.
6181 (add_bb_domains): Removed.
6182 (build_loop_iteration_domains): Don't call add_bb_domains.
6183 Add the iteration domain only to the basic blocks that have been
6184 translated to graphite.
6185 (build_scop_conditions_1): Add constraints only if the basic
6186 block have been translated to graphite.
6187 (build_scop_data_accesses): Completely disabled until data
6188 dependence is correctly implemented.
6189 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
6190 (remove_all_edges_1, remove_all_edges): Removed.
6191 (get_new_name_from_old_name): New.
6192 (graphite_rename_variables_in_stmt): Renamed
6193 rename_variables_in_stmt. Call get_new_name_from_old_name.
6194 Use replace_exp and update_stmt.
6195 (is_old_iv): Renamed is_iv.
6196 (expand_scalar_variables_stmt): Extra parameter for renaming map.
6197 Use replace_exp and update_stmt.
6198 (expand_scalar_variables_expr): Same. Use the map to get the
6199 new names for the renaming of induction variables and for the
6200 renaming of variables after a basic block has been copied.
6201 (expand_scalar_variables): Same.
6202 (graphite_rename_variables): Renamed rename_variables.
6203 (move_phi_nodes): Removed.
6204 (get_false_edge_from_guard_bb): New.
6205 (build_iv_mapping): Do not insert the induction variable of a
6206 loop in the renaming iv map if the basic block does not belong
6208 (register_old_new_names, graphite_copy_stmts_from_block,
6209 copy_bb_and_scalar_dependences): New.
6210 (translate_clast): Heavily reimplemented: copy basic blocks,
6211 do not move them. Finally, in call cleanup_tree_cfg in gloog.
6212 At each translation step call graphite_verify ensuring the
6213 consistency of the SSA, loops and dominators information.
6214 (collect_virtual_phis, find_vdef_for_var_in_bb,
6215 find_vdef_for_var_1, find_vdef_for_var,
6216 patch_phis_for_virtual_defs): Removed huge hack.
6217 (mark_old_loops, remove_dead_loops, skip_phi_defs,
6218 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
6219 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
6220 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
6221 if_region_get_condition_block, if_region_set_false_region,
6222 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
6223 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
6224 sese_add_exit_phis_edge, sese_add_exit_phis_var,
6225 rewrite_into_sese_closed_ssa): New.
6226 (gloog): Remove dead code. Early return if code cannot be
6227 generated. Call cleanup_tree_cfg once the scop has been code
6229 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
6230 block loops with less than two loops.
6231 (graphite_apply_transformations): Remove the call to
6232 scop_remove_ignoreable_gbbs.
6233 (limit_scops): When build_scop_loop_nests fails, continue on
6234 the next scop. Fix open_scop.entry.
6235 (graphite_transform_loops): Call recompute_all_dominators: force the
6236 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
6237 Call initialize_original_copy_tables and free_original_copy_tables
6238 to be able to copy basic blocks during code generation.
6239 When build_scop_loop_nests fails, continue on next scop.
6240 (value_clast): New union.
6241 (clast_to_gcc_expression): Fix type cast warning.
6243 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
6245 * Merge from mainline (r140838:141727).
6247 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6251 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
6253 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6257 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
6258 exits and conditions.
6259 * gcc.dg/graphite/pr37943.c: New.
6261 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6264 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
6266 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6268 * doc/invoke.texi: Fix spaces.
6270 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
6272 PR tree-optimization/37891
6273 Reverted last commit.
6274 * graphite.c (create_single_entry_edge): Set
6275 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6277 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
6278 Mitul Thakkar <mitul.thakkar@amd.com>
6280 * graphite.c (create_single_entry_edge): Set
6281 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6283 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
6285 * doc/invoke.texi: Add -fgraphite-identity.
6286 * graphite.c (graphite_apply_transformations): Check for
6287 -fgraphite-identity.
6288 * toplev.c (process_options): Add flag_graphite_identity.
6289 * tree-ssa-loop.c: Add flag_graphite_identity.
6291 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6293 Undo changes from 2008-10-02:
6294 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6295 operand type when copying the operand to a variable of different type.
6296 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6297 with the IV name after increment.
6299 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6300 Harsha Jagasia <harsha.jagasia@amd.com>
6302 PR tree-optimization/37828
6303 * gcc.dg/graphite/pr37828.c: New.
6304 * graphite.c (graphite_trans_loop_block): Do not loop block
6305 single nested loops.
6307 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
6308 Sebastian Pop <sebastian.pop@amd.com>
6310 * graphite.c (struct rename_map_elt, new_rename_map_elt,
6311 rename_map_elt_info, eq_rename_map_elts): New.
6312 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
6313 (expand_scalar_variables_expr): Change parameters.
6314 (expand_scalar_variables_stmt): Same.
6315 (expand_scalar_variables): Same.
6316 (graphite_rename_ivs): Rename graphite_rename_variables.
6317 (build_iv_mapping): New.
6318 (translate_clast): Call build_iv_mapping.
6319 * graphite.h (gbb_p): New name.
6321 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
6323 PR tree-optimization/37684
6324 * gcc.dg/graphite/pr37684.c: New.
6325 * graphite.c (exclude_component_ref): New.
6326 (is_simple_operand): Call exclude_component_ref.
6328 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
6329 Harsha Jagasia <harsha.jagasia@amd.com>
6331 PR tree-optimization/37485
6332 * gcc.dg/graphite/block-2.c: New
6333 * graphite.c (gmp_cst_to_tree): Moved.
6334 (iv_stack_entry_is_constant): New.
6335 (iv_stack_entry_is_iv): New.
6336 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
6337 (loop_iv_stack_insert_constant): New.
6338 (loop_iv_stack_pop): Use new datatpype.
6339 (loop_iv_stack_get_iv): Same.
6340 (loop_iv_stack_get_iv_from_name): Same.
6341 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
6342 (loop_iv_stack_patch_for_consts): New.
6343 (loop_iv_stack_remove_constants): New.
6344 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
6345 (translate_clast): Call loop_iv_stack_patch_for_consts and
6346 loop_iv_stack_remove_constants.
6347 (gloog): Use new datatype. Redirect construction edge to end
6348 block to avoid accidental deletion.
6349 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
6351 (union iv_stack_entry_data): New. Data in iv stack entry.
6352 (struct iv_stack_entry): New. Datatype for iv stack entries.
6354 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6356 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6357 operand type when copying the operand to a variable of different type.
6359 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6361 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6362 with the IV name after increment.
6364 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6366 * Merge from mainline (r140164:140838).
6368 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6370 * graphite-data-ref.c: New.
6371 * graphite.c (print_scop): Also dump the dependence graph.
6372 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
6373 (new_scop): Initialize SCOP_DEP_GRAPH.
6374 (build_scop_dynamic_schedules): New.
6375 (build_access_matrix_with_af): Fixed column numbering.
6376 (graphite_transform_loops): Call build_scop_dynamic_schedules.
6377 * graphite.h: Add ifndef/define guards against multiple inclusion.
6378 (struct scop): Add dep_graph field.
6379 (SCOP_DEP_GRAPH): Defined.
6380 (ref_nb_loops): Fixed and moved to other position.
6381 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
6382 (nb_loops_around_loop_in_scop): New.
6383 (graphite_dump_dependence_graph): Declared.
6384 (graphite_build_rdg_all_levels): Declared.
6385 (graphite_test_dependence): Declared.
6386 * Makefile.in (graphite-data-ref.o): New target.
6388 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
6390 * Merge from mainline (139870:140164).
6392 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6394 * Merge from mainline (138275:139870).
6395 * gcc.dg/graphite/scop-matmult.c: XFailed as one of
6396 the commits from trunk broke the niter detection.
6398 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6400 * graphite.c: Add more documentation. Fix formatting.
6401 (debug_loop_vec, debug_oldivs, loop_iv_stack,
6402 loop_iv_stack_debug): Moved...
6403 (schedule_to_scattering): Move before use.
6404 (dot_all_scops): Include in "#if 0" the code for system
6407 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
6408 loop_iv_stack_debug): ...here.
6410 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
6412 * tree-phinodes.c (make_phi_node): Extern.
6413 (add_phi_node_to_bb): New.
6414 (create_phi_node): Call add_phi_node_to_bb.
6415 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
6416 (remove_statement): Handle case where stored phi was updated
6417 and is no longer the same.
6418 * graphite.c (is_parameter): New.
6420 (expand_scalar_variables_expr): New.
6421 (expand_scalar_variables_stmt): New.
6422 (expand_scalar_variables): New.
6423 (move_phi_nodes): Create new phi instead of moving old one.
6424 (translate_clast): Call expand_scalar_variables.
6425 (find_vdef_for_var_in_bb): Also scan regular definitions.
6426 (skip_phi_defs): New.
6427 (collect_scop_exit_phi_args): New.
6428 (patch_scop_exit_phi_args): New.
6429 (gloog): Patch phis after scop.
6430 * tree-flow.h: (add_phi_node_to_bb): Declared.
6431 (make_phi_node): Declared.
6433 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6435 * graphite.c (end_scop): Split the entry of the scop when it
6436 is the header of the loop in which the scop is ending.
6437 (build_scops_1, limit_scops): Update uses of end_scop.
6439 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6441 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
6442 SCOP_ENTRY or SCOP_EXIT.
6444 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6446 * graphite.c (get_construction_edge): Removed.
6447 (gloog): Construction edge is the scop entry edge.
6449 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6451 * graphite.c (can_generate_for_scop): Removed.
6452 (gloog): Do not call it.
6454 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6456 * graphite.c (new_scop): Entry of a scop is an edge.
6457 Initialize SESE region.
6458 (free_scop): Free SESE region.
6459 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
6460 (split_difficult_bb): New, split from end_scop.
6461 (end_scop): Exit of a scop is an edge.
6462 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
6463 not automatically updated and thus is always wrong.
6464 * graphite.h (struct sese): New.
6467 (struct scop): New field for a SESE region. Remove entry, exit.
6468 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
6469 semantics as before. Moved comment around.
6471 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6472 Sebastian Pop <sebastian.pop@amd.com>
6474 * graphite.c (graphite_transform_loops): Always enable gloog
6475 and find_transform when ENABLE_CHECKING.
6477 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6479 * graphite.c (graphite_transform_loops): Move pretty printer
6480 of SCOPs before doing any transform. Remove call to print_scops
6481 and dot_all_scops_1.
6483 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6485 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
6486 (print_graphite_bb): Same.
6488 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6490 * graphite.c (dot_all_scops_1): Cleanup.
6491 (move_scops): Fix comment.
6493 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6495 * graphite.c (build_scop_bbs): Revert commit 139355:
6497 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6498 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6500 * graphite.c (build_scop_bbs): Factor up code.
6502 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6504 * graphite.c (gloog): Update dominator info.
6506 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6508 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
6510 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6512 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
6514 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
6515 (translate_clast): Correct formatting.
6516 * graphite.h (struct num_map): Removed.
6517 (struct graphite_bb): Remove num_map field.
6518 (GBB_INDEX_TO_NUM_MAP): Removed.
6520 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6522 * graphite.c (build_access_matrix_with_af): Fix comments.
6523 (build_scop_data_accesses): Same.
6525 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6527 * graphite.c (build_scop_data_accesses): Don't construct
6528 access matrices. Add a FIXME and an assert condition that
6529 should pass when the access matrices will be needed.
6531 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6533 * tree-data-ref.c (stmt_simple_memref_p): Don't call
6535 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
6536 Moved close by free_graphite_bb.
6537 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
6538 (new_scop): Move close by free_scop.
6539 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
6541 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
6543 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
6544 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
6545 instead of recursive call.
6546 (graphite_translate_clast_equation): New.
6547 (graphite_create_guard_cond_expr): New.
6548 (graphite_create_new_guard): New.
6549 (get_stack_index_from_iv): Removed.
6550 (graphite_rename_ivs_stmt): Use gbb_loop_index.
6551 (get_true_edge_from_guard_bb): New.
6552 (translate_clast): Handle stmt_guard in clast.
6553 (get_construction_edge): Allow construction edge detection for
6554 a scope entry with multiple predecessors if one predecessor is
6555 the immediate dominator of scope entry.
6556 (can_generate_code_stmt): Enable code generation for clast_guard.
6557 (gloog): Use correct context loop. Removed check for post dominators.
6558 * cfgloop.h (create_empty_if_region_on_edge): Declared.
6560 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6562 * graphite.c (remove_dead_loops): Document better which
6565 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6567 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
6569 (graphite.o): Also depends on pointer-set.h.
6571 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6573 * graphite.c (scop_record_loop): Fix compile warning.
6575 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
6576 Sebastian Pop <sebastian.pop@amd.com>
6578 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
6580 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6582 * graphite.c (build_graphite_bb): Initialize bb->aux to
6583 point to the graphite_bb_p.
6584 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
6586 (add_bb_domains): Does not use the scop parameter.
6587 (graphite_transform_loops): Clean bb->aux at the end.
6589 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6590 Sebastian Pop <sebastian.pop@amd.com>
6592 * lib/target-supports.exp
6593 (check_effective_target_fgraphite): New.
6595 * gcc.dg/graphite/graphite.exp: Early exit when
6596 check_effective_target_fgraphite returns false.
6597 Set dg-do-what-default to compile.
6598 (scan-graphite-dump-times): Removed.
6599 * gfortran.dg/graphite/graphite.exp: Same.
6601 * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
6602 Use scan-tree-dump-times instead of scan-graphite-dump-times.
6603 * gcc.dg/graphite/scop-1.c: Same.
6604 * gcc.dg/graphite/scop-2.c: Same.
6605 * gcc.dg/graphite/scop-3.c: Same.
6606 * gcc.dg/graphite/scop-4.c: Same.
6607 * gcc.dg/graphite/scop-5.c: Same.
6608 * gcc.dg/graphite/scop-6.c: Same.
6609 * gcc.dg/graphite/scop-7.c: Same.
6610 * gcc.dg/graphite/scop-8.c: Same.
6611 * gcc.dg/graphite/scop-9.c: Same.
6612 * gcc.dg/graphite/scop-10.c: Same.
6613 * gcc.dg/graphite/scop-11.c: Same.
6614 * gcc.dg/graphite/scop-12.c: Same.
6615 * gcc.dg/graphite/scop-13.c: Same.
6616 * gcc.dg/graphite/scop-matmult.c: Same.
6617 * gcc.dg/graphite/scop-14.c: Same.
6618 * gcc.dg/graphite/scop-15.c: Same.
6619 * gcc.dg/graphite/block-0.c: Same.
6620 * gcc.dg/graphite/scop-16.c: Same.
6621 * gcc.dg/graphite/block-1.c: Same.
6622 * gcc.dg/graphite/scop-17.c: Same.
6623 * gcc.dg/graphite/scop-18.c: Same.
6624 * gfortran.dg/graphite/block-1.f90: Same.
6625 * gfortran.dg/graphite/scop-1.f: Same.
6626 * gfortran.dg/graphite/block-2.f: Same.
6628 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6630 * graphite.c: Fix some XXX comments.
6631 (build_scop_dynamic_schedules): Removed.
6633 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6635 * graphite.h (scop_max_loop_depth): Moved...
6636 * graphite.c (scop_max_loop_depth): ...here.
6637 (remove_all_edges_1): New.
6638 (remove_all_edges): Factored code.
6639 (remove_cond_exprs): Check only the last statement for
6640 a GIMPLE_COND expression.
6642 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6644 * graphite.c (scan_tree_for_params): Early return when the
6645 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
6646 (find_scop_parameters): Factor out code.
6647 (graphite_trans_bb_strip_mine): Remove dead code.
6649 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6651 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
6652 graphite_trans_bb_move_loop): Factor asserts.
6653 (gloog): Perform sanity checks only for ENABLE_CHECKING.
6654 Do not call calculate_dominance_info and estimate_bb_frequencies.
6656 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
6658 * graphite.c (create_loops_mapping, free_loops_mapping,
6659 create_loops_mapping_num, debug_loop_mapping_1,
6660 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
6661 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
6662 graphite_loops_mapping_add_child_num,
6663 graphite_loops_mapping_insert_child,
6664 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
6665 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
6666 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
6667 create_num_from_index, get_num_from_index,
6668 swap_loop_mapped_depth): Removed.
6669 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
6670 (free_scop): Do not call free_loops_mapping.
6671 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
6672 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
6673 get_loop_mapped_depth.
6674 (graphite_trans_bb_move_loop): Do not update the loop mapping.
6675 (graphite_trans_bb_strip_mine): Same.
6676 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
6677 (struct scop): Remove field loops_mapping.
6679 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6680 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6682 * graphite.c (scop_record_loop): Factor out one level of the
6683 condition by early return.
6684 (build_scop_loop_nests): Format following FSF coding style.
6685 (build_scop_dynamic_schedules): Factor out code.
6686 (scopdet_bb_info): Reindent. Default case should not be reachable.
6688 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6689 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6691 * graphite.c (loop_affine_expr): Check for DECL_P or struct
6692 assignments that are not handled as simple operands for now.
6694 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6695 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6697 * graphite.c (build_scop_bbs): Factor up code.
6699 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6700 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6702 * graphite.c (stmt_simple_for_scop_p): Factor code out
6704 (enum gbb_type): New. Group all the GBB_* types under it.
6705 (is_loop_exit): Moved...
6706 (end_scop): Enable BB spliting.
6707 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
6708 * cfgloop.h (is_loop_exit): Declared.
6710 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6712 * doc/invoke.texi: Remove strides from examples containing
6713 DO loops when the strides are equal to 1.
6715 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
6716 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6718 * graphite.c (graphite_trans_scop_block): Or the result with
6719 the result from graphite_trans_loop_block.
6720 * gcc.dg/graphite/block-1.c: New.
6721 * gfortran.dg/graphite/block-1.f90: New.
6722 * gfortran.dg/graphite/block-2.f: New.
6724 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6726 * graphite.c (graphite_transform_loops): Call cloog_initialize
6729 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6731 * tree-data-ref.c) (stmt_simple_memref_p): New.
6732 * tree-data-ref.h (stmt_simple_memref_p): Declared.
6733 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
6734 (is_simple_operand): Call stmt_simple_memref_p.
6736 * gcc.dg/graphite/scop-matmult.c: Updated for not
6737 using pointer arithmetic, as this is optimized by PRE and
6738 makes the code too difficult to analyze.
6740 * gcc.dg/graphite/scop-18.c: Same.
6742 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6744 * gdbinit.in (pgg): New.
6746 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6748 * graphite.c (graphite_trans_loop_block): Fix warning.
6750 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6752 * graphite.c (graphite_trans_loop_block): Fix my merge error.
6754 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6756 * graphite.c (graphite_trans_bb_block): Remove check for
6757 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
6758 Check if loop blocking is profitable for every loop, before applying
6760 (graphite_apply_transformations): Call graphite_trans_bb_block only,
6761 if flag_loop_block is set.
6763 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6765 * graphite.c: Add some more documentation for the loop
6768 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6770 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
6771 * graphite.c: Format on less than 80 columns.
6774 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6776 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
6778 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6780 * doc/invoke.texi (floop-block, floop-strip-mine,
6781 floop-interchange): Update documentation with examples.
6783 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
6785 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
6787 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
6789 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
6791 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
6792 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
6793 * tree-scalar-evolution.c: Revert useless changes.
6794 * tree-phinodes.c: Same.
6797 * tree-vectorizer.h: Same.
6798 * tree-flow.h: Same.
6800 * common.opt (fgraphite): Update documentation.
6802 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
6804 * doc/invoke.texi (-floop-block, -floop-strip-mine,
6805 -floop-interchange): Add more text for explaining what each of these
6807 * tree-into-ssa.c (gimple_vec): Moved to...
6808 * graphite.c: Include gimple.h.
6809 (gimple_vec): Moved to...
6810 (del_loop_to_cloog_loop): Removed.
6811 (loop_affine_expr): Do not call create_data_ref when the
6812 operand is a constant.
6813 (new_scop): Use free instead of del_loop_to_cloog_loop.
6814 * Makefile.in (graphite.o): Depend on GIMPLE_H.
6815 * gimple.h (gimple_vec): ... here.
6817 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6819 * graphite.c (scopdet_bb_info): Only allow loops with known number of
6821 (build_loop_iteration_domains): Fail, if latch executions unknown.
6823 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6825 * graphite.c (add_conditions_to_domain): New.
6826 (build_scop_conditions_1): Call add_conditions_to_domain.
6827 (set_cloog_options): Allow to disable optimizations.
6829 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6831 * graphite.c (find_params_in_bb): Look for parameters in conditions.
6832 Do not use walk_dominator_tree.
6833 (find_scop_parameters): Do not use walk_dominator_tree.
6835 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6837 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
6838 (idx_record_params): Adapt.
6839 * graphite.h (scop_gimple_loop_depth): New.
6841 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6843 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
6844 (scan_tree_for_params): Remove value_init.
6845 (build_scop_context): Remove value_init.
6846 (build_loop_iteration_domains): Remove value_init.
6847 (schedule_to_scattering): Remove value_init.
6848 (graphite_trans_bb_strip_mine): Remove value_init.
6850 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6852 * gcc/graphite.c (limit_scops): New.
6853 (graphite_transform_loops): Add limit SCoPs.
6854 * gcc.dg/graphite/scop-0.c: Update number of SCoPs.
6855 * gcc.dg/graphite/scop-1.c: Update number of SCoPs.
6856 * gcc.dg/graphite/scop-10.c: Update number of SCoPs.
6857 * gcc.dg/graphite/scop-11.c: Update number of SCoPs.
6858 * gcc.dg/graphite/scop-12.c: Update number of SCoPs.
6859 * gcc.dg/graphite/scop-13.c: Update number of SCoPs.
6860 * gcc.dg/graphite/scop-14.c: Update number of SCoPs.
6861 * gcc.dg/graphite/scop-15.c: Update number of SCoPs.
6862 * gcc.dg/graphite/scop-16.c: Update number of SCoPs.
6863 Change loop numbers.
6864 * gcc.dg/graphite/scop-17.c: Update number of SCoPs.
6865 Change loop numbers.
6866 * gcc.dg/graphite/scop-18.c: Update number of SCoPs.
6867 * gcc.dg/graphite/scop-2.c: Update number of SCoPs.
6868 * gcc.dg/graphite/scop-3.c: Update number of SCoPs.
6869 * gcc.dg/graphite/scop-4.c: Update number of SCoPs.
6870 * gcc.dg/graphite/scop-5.c: Update number of SCoPs.
6871 * gcc.dg/graphite/scop-6.c: Update number of SCoPs.
6872 * gcc.dg/graphite/scop-7.c: Update number of SCoPs.
6873 * gcc.dg/graphite/scop-8.c: Update number of SCoPs.
6874 * gcc.dg/graphite/scop-9.c: Update number of SCoPs.
6875 * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
6877 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6879 * graphite.c (graphite_transform_loops): Call always find_transform.
6881 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
6883 * graphite.c (free_loops_mapping): New.
6884 (stmt_simple_for_scop_p): Fix typo.
6885 (stmt_simple_for_scop_p): Fix tuples functions, that
6887 (free_graphite_bb): Fix some memleaks.
6888 (free_scop): Fix some memleaks.
6889 (scopdet_bb_info): Do not forget some tmp SCoPs.
6890 (find_params_in_bb): Fix some memleaks.
6891 (clast_to_gcc_expression): Fix warning.
6893 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
6895 * gcc.dg/graphite/scop-16.c: Fix for 32bit.
6896 * gcc.dg/graphite/scop-17.c: Fix for 32bit.
6898 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
6900 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
6901 Move code ifdef-ed HAVE_cloog...
6902 * graphite.c: Include toplev.h.
6904 * Makefile.in (OBJS-common): Always build graphite.o.
6905 (BACKEND): Remove @GRAPHITE@.
6906 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
6907 (graphite.o): Depend on TOPLEV_H.
6909 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
6911 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
6912 Remove typo left from polylib to ppl conversion.
6913 * graphite.c (graphite_transforms): Use sorry instead of fatal.
6915 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
6917 * toplev.c (process_options): Move the graphite loop optimization
6919 * tree-ssa-loop.c (graphite_transforms): ... here.
6920 When not configured with CLooG, print to dump_file that
6921 Graphite transforms were not performed.
6922 * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
6924 * gcc.dg/graphite/*.c: Updated all testcases to use
6925 scan-graphite-dump-times.
6927 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
6929 * graphite.c (dot_scop, dot_all_scops): Do not call system.
6930 Do not open /tmp/scop.dot and /tmp/allscops.dot.
6932 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
6933 Jan Sjodin <jan.sjodin@amd.com>
6935 * configure: Regenerated.
6936 * omp-low.c (expand_omp_sections): Remove now unused code.
6937 * config.in (HAVE_polylib): Removed.
6938 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
6939 (PPLLIBS, PPLINC): Added.
6940 * graphite.c: Replace unsigned with int wherever possible.
6941 Don't access Cloog's data structures, but use accessor functions.
6942 Clast's stmt->type is now implemented as a vtable: change the
6943 switches of stmt->type into ifs.
6944 (polylib/polylibgmp.h): Don't include.
6945 (initialize_dependence_polyhedron,
6946 initialize_data_dependence_polyhedron, is_empty_polyhedron,
6947 statement_precedes_p, test_dependence, build_rdg_all_levels,
6948 dump_dependence_graph): Removed until this code is cleaned up
6950 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
6951 (POLYLIBINC): Renamed PPLINC.
6953 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
6954 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6955 Jan Sjodin <jan.sjodin@amd.com>
6957 Finish the merge and tuplification of graphite.
6959 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
6960 Jan Sjodin <jan.sjodin@amd.com>
6962 Partial merge from mainline (138072:138275).
6963 * graphite.c still has to be tuplified.
6965 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
6967 * graphite.c (graphite_loops_mapping_max_loop_num): New.
6968 (create_num_from_index): New.
6969 (get_num_from_index): Also pass in the graphite BB.
6970 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
6971 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
6972 (graphite_trans_bb_strip_mine): Call create_num_from_index.
6973 (is_interchange_valid): Return false when failing.
6974 * graphite.h (struct num_map): New.
6975 (struct graphite_bb): New field num_map.
6976 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
6978 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
6980 * graphite.c (dump_gbb_conditions): Print also conditions like
6981 "if (a)". Remove dublicated code and use print_generic_expr ().
6982 (stmt_simple_for_scop_p): Only allow conditions we can handle
6985 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
6987 * graphite.h (struct scop): Removed new_ivs field.
6988 (SCOP_NEWIVS): Deleted.
6989 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
6990 clast_to_gcc_expression, graphite_create_new_loop):
6991 Removed use of new_ivs.
6993 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
6995 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
6996 create_loops_mapping_num, debug_loop_mapping_1): New.
6997 (debug_loop_mapping): Call debug_loop_mapping_1.
6998 (get_loop_mapping_for_num,
6999 graphite_loops_mapping_add_child,
7000 graphite_loops_mapping_add_child_num,
7001 graphite_loops_mapping_insert_child,
7002 graphite_loops_mapping_parent,
7003 split_loop_mapped_depth_for_num,
7004 loop_mapped_depth_split_loop): New.
7005 (increment_loop_mapped_depths): Removed.
7006 (swap_loop_mapped_depth_for_num): Reimplemented.
7007 (new_scop): Call create_loops_mapping.
7008 (scop_record_loop): Call graphite_loops_mapping_insert_child.
7009 (translate_clast): Pass the old loop father in parameter, and pass
7010 it to get_old_iv_from_ssa_name.
7011 (remove_edges_around_useless_blocks, can_generate_code_stmt,
7012 can_generate_code, can_generate_for_scop): New.
7013 (graphite_trans_bb_block): Returns false when it fails to transform.
7014 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
7016 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7018 Reverted all the changes related to the streamization and
7020 These changes are now tracked in the streamization branch.
7022 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7023 Jan Sjodin <jan.sjodin@amd.com>
7025 * graphite.c (gbb_compare): Correctly constify.
7026 (gbb_can_be_ignored): Indent.
7027 (graphite_trans_scop_swap_1and2): Add legality check.
7030 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7032 Remove fallouts from "Reverted the Condate changes".
7033 * tree.h: Remove unused decl.
7034 * gcc.dg/tree-checker: Same.
7035 * timevar.def: Remove counter.
7037 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
7039 * Merge from mainline (135673:138072).
7041 Reverted the MIRO changes (from 2008-04-05) that are now
7042 tracked in the miro branch.
7043 * tree-bounds.c: Removed.
7044 * tree-bounds.h: Removed.
7046 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
7047 are now tracked in the condate branch.
7048 * tree-check.c: Removed.
7049 * tree-match.c: Removed.
7050 * condate.y: Removed.
7052 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7054 * common.opt: New user flag -floop-block, -floop-strip-mine
7055 and -floop-interchange.
7056 * toplev.c (process_options): Enable -fgraphite pass if any one of the
7057 graphite loop optimization flags is turned on.
7058 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
7059 flag_loop_strip_mine and flag_loop_interchange checks before
7061 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
7062 -floop-strip-mine and -floop-interchange.
7063 * gcc.dg/graphite/block-0.c: Add -floop-block and remove
7065 * gcc.dg/graphite/scop-16.c: Ditto.
7066 * gcc.dg/graphite/scop-17.c: Ditto.
7067 * gcc.dg/graphite/scop-18.c: Ditto.
7069 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
7070 Sebastian Pop <sebastian.pop@amd.com>
7072 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
7073 (create_empty_loop_on_edge): More fixes.
7074 * tree-phinodes.c (resize_phi_node): Extern.
7075 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
7076 * cfghooks.c (update_dominator_information): New split from
7078 * tree-vectorizer.c (rename_variables_in_bb): Extern.
7079 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
7080 successor of the function entry block.
7082 * graphite.c: Include pointer-set.h.
7083 (debug_loop_mapping, increment_loop_mapped_depths,
7084 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
7085 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
7086 swap_loop_mapped_depth_for_num, get_num_from_index,
7087 swap_loop_mapped_depth, loop_iv_stack_debug,
7088 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
7089 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
7090 get_old_iv_from_ssa_name): New.
7091 (new_scop): Initialize SCOP_LOOPS_MAPPING.
7092 (free_scop): Free SCOP_LOOPS_MAPPING.
7093 (scop_record_loop): Record old ivs.
7094 (create_var_name): Removed.
7095 (initialize_cloog_names): Allocate double space in case strip mine
7096 applies to all loops once.
7097 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
7098 (clast_to_gcc_expression): Same. Implement more clast to gimple
7100 (graphite_create_new_loop): Pass in ivstack.
7101 (remove_all_edges): Pass in the construction_edge.
7102 (graphite_remove_iv): Removed.
7103 (graphite_rename_ivs, graphite_rename_ivs_stmt,
7104 remove_cond_exprs): Rewritten.
7105 (move_phi_nodes): New.
7106 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
7107 (translate_clast): Pass in ivstack. Rewrite some cases.
7108 (set_cloog_options, debug_clast_stmt): New.
7109 (find_transform): Use set_cloog_options.
7110 (outermost_loop_layer): Removed.
7111 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
7112 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
7113 mark_old_loops, remove_dead_loops): New.
7115 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
7116 (const_column_index, get_first_matching_sign_row_index,
7117 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
7118 get_upper_bound): New.
7119 (graphite_trans_bb_strip_mine): Also update the iv map.
7121 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
7122 (struct name_tree): Add a loop field.
7123 (struct scop): Add a graphite_loops_mapping field.
7124 (SCOP_LOOPS_MAPPING): New.
7125 (debug_clast_stmt): Declare.
7126 * lambda.h (find_induction_var_from_exit_cond): Declare.
7127 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
7128 * cfgloop.h (update_dominators_in_loop): Removed declaration.
7129 (create_empty_loop_on_edge): Updated.
7130 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
7131 rename_variables_in_bb): Declare.
7132 * tree-cfg.c (remove_bb): Extern.
7134 * gcc.dg/graphite/block-0.c: New.
7136 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7137 Sebastian Pop <sebastian.pop@amd.com>
7139 * graphite.c (strip_mine_profitable_p): New.
7140 (graphite_trans_bb_block): Disable strip mining if not profitable.
7142 * gcc.dg/graphite/scop-18.c: New.
7143 * gcc.dg/graphite/scop-17.c: Fixed.
7144 * gcc.dg/graphite/scop-16.c: Fixed.
7146 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
7147 Jan Sjodin <jan.sjodin@amd.com>
7148 Sebastian Pop <sebastian.pop@amd.com>
7150 * graphite.c (is_interchange_valid): New.
7151 (graphite_trans_bb_block): Check loop nest of basic block for legality
7154 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
7155 outer_most_loop, gbb_outer_most_loop_index): New.
7157 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
7158 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
7159 * gcc.dg/graphite/scop-16.c: New.
7160 * gcc.dg/graphite/scop-17.c: New.
7162 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7164 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
7165 (graphite_trans_scop_block): Ignore SCoPs without bbs.
7167 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7169 * graphite.c (new_scop): Initialize SCOP_EXIT.
7170 (scopdet_info): Add.
7171 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
7172 (build_scops_1): Cleanup, bugfixes.
7173 (build_scops): Cleanup.
7175 * gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
7176 * gcc.dg/graphite/scop-15.c: Add SCoP numbers.
7178 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7180 * gfortran.dg/graphite/scop-1.f: Update to reduced test case.
7182 * gfortran.dg/graphite/graphite.exp: Use
7183 DEFAULT_GRAPHITE_FLAGS.
7185 * gcc.dg/graphite/scop-15.c: Update to reduced test case.
7187 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7189 * graphite.c (scan_tree_for_params): Do not assert any more if
7190 MULT_EXPR parameter is negative.
7192 * gfortran.dg/graphite/scop-1.f: New.
7194 * gfortran.dg/graphite/graphite.exp: New.
7196 * gcc.dg/graphite/scop-15.c: New.
7198 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7200 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
7202 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7204 * graphite.c (graphite_trans_bb_swap_loops): Rename from
7205 graphite_swap_loops.
7206 (graphite_trans_bb_move_loop): New.
7207 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
7208 (graphite_trans_bb_block): New.
7209 (graphite_trans_loop_block): New.
7210 (graphite_trans_scop_swap_1and2): Rename from
7211 graphite_trans_swap_1and2.
7212 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
7213 (graphite_trans_scop_block): New.
7214 (graphite_apply_transformations): Rename from
7215 graphite_transformations.
7217 * gcc.dg/graphite/scop-matmult.c: New.
7219 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7221 * graphite.c (gbb_compare): New.
7222 (graphite_sort_gbbs): New.
7223 (gbb_can_be_ignored): New.
7224 (scop_remove_ignoreable_gbbs): New.
7225 (graphite_transformations): Cleanup and add
7226 scop_remove_ignoreable_gbbs.
7227 * lambda.h (lambda_vector_compare): New.
7229 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
7231 * graphite.c (print_graphite_bb): Correct printing of static schedule.
7232 (graphite_swap_loops): int -> unsigned
7233 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
7234 (graphite_transformations): New.
7235 (graphite_transform_loops): Move to graphite_transformations.
7236 * graphite.h (gbb_nb_loops): Return unsigned.
7238 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
7240 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
7241 the domain matrix. This makes scop-0.c work again.
7243 2008-06-20 Richard Guenther <rguenther@suse.de>
7245 * graphite.h: Adjust copyright to GPLv3.
7246 * graphite.c: Likewise.
7247 (stmt_simple_memref_for_scop_p): Split out from ...
7248 (stmt_simple_for_scop_p): ... here. Fix handling of calls
7250 (get_bb_type): Optimize.
7252 (is_bb_addable): Fix memleak, replace is_pred call with
7254 (build_scops): Use current_loops.
7255 (param_index): Fix memleak.
7257 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7259 * graphite.c: Fix formatting.
7261 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7263 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
7264 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
7265 (create_var_name, save_var_name): Newly defined functions.
7266 (initialize_cloog_names): Part of the code factored out to
7268 (clast_to_gcc_expression): Now handles the case of clast_red_sum
7269 in clast_reduction statement.
7270 (graphite_create_new_loop): Now takes a new parameter
7272 (translate_clast): Now also takes the context_loop and bb_exit
7273 parameters. Rewritten the code so that it creates a gimple code
7274 inside the given context.
7275 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
7276 remove_cond_expr, disconnect_cond_expr,
7277 disconnect_virtual_phi_nodes): Newly defined functions.
7278 * graphite.h (struct scop): added old_ivs vector.
7279 SCOP_OLDIVS: New macro.
7281 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
7283 * cfgloopmanip.c: Add missing function comments, fix formatting.
7285 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7287 * cfgloopmanip.c (update_dominators_in_loop): Defined.
7288 (create_empty_loop_on_edge): Defined.
7289 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
7291 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
7292 (update_dominators_in_loop): Declared as extern
7293 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
7295 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
7297 * graphite.c (print_graphite_bb): Allow changing number of loops
7299 (initialize_cloog_names): Allow changing number of loops.
7300 (build_cloog_prog): Simplify.
7301 (find_transform): Enable cloog option --strides.
7302 (graphite_swap_loops): New.
7303 (graphite_strip_mine_loop): New.
7304 (graphite_trans_swap_1and2): New.
7305 (graphite_trans_strip): New.
7306 (graphite_transform_loops): Add graphite_trans_strip.
7307 * graphite.h (scop_max_loop_depth): New.
7309 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7311 * graphite.c (build_scop_iteration_domain): Remove forgotten
7312 line. (Fixes compile)
7314 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7316 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
7317 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
7318 (build_bb_loops): New.
7319 (graphite_transform_loops): Add build_bb_loops.
7320 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
7322 * graphite.h (graphite_bb): Add loops.
7323 (gbb_nb_loops): New.
7324 (gbb_loop_at_index): New.
7325 (gbb_loop_index): New.
7326 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
7327 using nb_params_in_scop.
7329 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7331 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
7332 (build_scop_canonical_schedules): Build minimized schedule.
7333 (schedule_to_scattering): Adapt to minimized schedule.
7334 * graphite.h (graphite_bb): Add/Update descriptions.
7336 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
7337 Tobias Grosser <grosser@fim.uni-passau.de>
7339 * graphite.c (print_graphite_bb): Add condition printing.
7341 (dump_gbb_conditions): New.
7342 (build_scop_conditions_1): New.
7343 (build_scop_conditions): New.
7344 * graphite.h (graphite_bb): Add conditions.
7346 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7348 * graphite.c (print_graphite_bb):
7349 (free_graphite_bb): New.
7350 (free_scop): Free bbs.
7351 (get_bb_type): Free doms.
7352 (build_scop_context): Free context matrix.
7353 (build_loop_iteration_domains): Remove unused code.
7354 (build_cloog_prog): Free scattering function and blocklist.
7355 (find_transform): Free options.
7357 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
7359 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
7360 Remove unnecessery cloog data structures. Make a copy of the domain
7361 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
7362 unnecessary cloog data structures. Fix memory leaks. Remove insert
7363 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
7365 (build_scop_iteration_domain): Remove unnecessary cloog
7366 data structures. Fix memory leaks.
7367 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
7368 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
7370 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7372 * graphite.c (find_scop_params): Remove initialize_cloog_names.
7374 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7376 * graphite.c (end_scop): Style fix.
7377 (schedule_to_scattering): Style and comment fix.
7379 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7380 * graphite.c (print_graphite_bb): Fix definiton of
7381 schedule_to_scattering.
7382 (initialize_cloog_names): Change nb_scattdims to max loop
7384 (schedule_to_scattering): Take parameter for number of scattering
7386 (build_cloog_prog): Only build as much scattering dimensions as
7389 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7391 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
7392 in polyhedron/aermod.f90.
7394 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
7395 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7396 Harsha Jagasia <harsha.jagasia@amd.com>
7398 * graphite.c (is_bb_addable): Fix segfault.
7400 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
7402 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
7403 with multiple exits and conditional handling in edge cases.
7404 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
7406 * gcc.dg/graphite/scop-14.c: New.
7408 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
7409 Adrien Eliche <aeliche@isty.uvsq.fr>
7411 * graphite.c (is_bb_addable): Add more comments and enhance
7412 readablity of the source code. Fix memory leak.
7413 (is_loop_exit): Fix memory leak.
7415 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7417 * graphite.c (first_loop_in_scop): Deleted.
7418 (setup_cloog_loop): Only walk the loop chain for inner loops.
7419 (build_scop_iteration_domain): Execute setup_cloog_loop for
7420 all loops in the first layer.
7422 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7424 * graphite.c (scan_tree_for_params): Change the way params are
7425 added to be indepenent of the number of loops.
7426 (setup_cloog_loop): Revert to short matrix format. Fix parameter
7428 (build_cloog_prog): Revert to short matrix format.
7430 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7431 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7433 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
7436 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7438 * graphite.c (nb_data_refs_in_scop): New.
7439 (graphite_transform_loops): Print more stats: number of
7440 loops, basic blocks and data references per scop.
7442 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7443 Jan Sjodin <jan.sjodin@amd.com>
7445 * graphite.c (loop_affine_expr, idx_record_params,
7446 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
7447 instead of instantiate_parameters.
7449 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7451 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
7452 add support for parameters, add STATIC_SCHEDULE at the right places,
7455 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7457 * graphite.c (build_scop_loop_nests): Only add the loops, that
7458 are contained completely in the SCoP.
7459 (build_cloog_prog): Disable scattering, until schedule_to_scattering
7460 and the domains are fixed.
7461 (build_scop_canonical_schedules): Add support for bbs not contained
7464 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7466 * graphite.h (scop_contains_loop): Update comments to match
7467 the actual behavior.
7468 (scop_contains_loop): New.
7469 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
7471 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7473 * graphite.c (get_bb_type): On function body, i.e. loop_0,
7474 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
7477 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7478 Tobias Grosser <grosser@fim.uni-passau.de>
7480 * graphite.c (graphite_transform_loops): Early return when
7481 there are no loops in the function.
7483 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7484 Jan Sjodin <jan.sjodin@amd.com>
7486 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
7487 offset of the last loop.
7488 (setup_cloog_loop): Copy the entire outer constraint matrix.
7490 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7491 Jan Sjodin <jan.sjodin@amd.com>
7493 * graphite.c (stmt_in_scop_p, function_parameter_p,
7494 invariant_in_scop_p): Removed.
7495 (scan_tree_for_params): Can be used with no constraint
7496 matrix for gathering parameters.
7497 (idx_record_params): Don't use idx_record_param, instead use
7498 scan_tree_for_params.
7499 (find_scop_parameters): Same.
7500 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
7501 Fix the size of loop domains.
7502 (schedule_to_scattering): Exit when the outer loop is not in scop.
7503 (find_transform): Enable build_cloog_prog.
7505 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7506 Jan Sjodin <jan.sjodin@amd.com>
7508 * graphite.c (schedule_to_scattering): Make scattering domains
7509 uniformly of the same size, as required by CLooG 0.14.0 and before.
7511 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7512 Jan Sjodin <jan.sjodin@amd.com>
7514 * graphite.c (schedule_to_scattering): Rewrite, correct the
7515 translation of the scheduling function to scattering.
7516 (build_cloog_prog): Call schedule_to_scattering only once.
7517 * graphite.h (scop_loop_index): Do not fail for loops not
7518 in the scop: return -1.
7520 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
7522 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
7523 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
7524 (setup_cloog_loop): Export GBB_DOMAIN.
7525 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
7526 able to rebuild the original control flow.
7527 * graphite.h (graphite_bb): Add domain field and access macro.
7530 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7532 * graphite.c (debug_gbb): New.
7533 (print_scop, build_graphite_bb): Use SCOP_BBS.
7534 (build_scop_bbs): Reimplemented.
7535 (dfs_bb_in_scop_p): Removed.
7536 (build_scop_loop_nests): Reorder loops inserted in
7537 SCOP_LOOP_NEST: outer loops should come first.
7538 (build_scop_canonical_schedules): Reinitialize at zero
7539 the components of the SCOP_STATIC_SCHEDULE for the loops
7540 that have already been parsed.
7542 * graphite.h (debug_gbb): Declared.
7544 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7545 Jan Sjodin <jan.sjodin@amd.com>
7547 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
7548 (graphite_loop_to_gcc_loop): Removed.
7549 (remove_all_edges): New.
7550 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
7551 (gloog): Remove useless code.
7553 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7555 * graphite.c (get_bb_type): Reworked. We distinguish between
7556 loops with one or multiple exits.
7557 (is_loop_exit): New.
7559 (is_bb_addable): Rework condition handling, now support for case
7560 case statements and loops with multiple exits.
7562 * gcc.dg/graphite/scop-11.c: New.
7563 * gcc.dg/graphite/scop-12.c: New.
7564 * gcc.dg/graphite/scop-13.c: New.
7566 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7568 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
7569 we have too many colors.
7571 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
7573 * doc/invoke.texi (-ftree-loop-fusion): Document.
7574 * tree-pass.h (pass_loop_fusion): Declared.
7575 * tree-loop-fusion.c: New.
7576 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
7577 * tree-data-ref.c (find_data_references_in_loop): Make extern.
7578 * tree-data-ref.h (find_data_references_in_loop): Declared.
7579 * common.opt (ftree-loop-fusion): Declared.
7580 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
7582 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
7584 * graphite.c (build_access_matrix): Fix typo from the merge.
7586 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7588 * Merge from mainline (130800:135673).
7590 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7592 * graphite.c (end_scop): The exit of the scop is not part of the scop.
7593 Update dominators after splitting.
7595 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7597 * graphite.c (is_bb_addable): Return the harmful statement.
7598 Factor up some code.
7599 (end_scop): New. Splits end of scope bbs on a harmful statement.
7600 (build_scops_1): Call end_scop.
7602 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7604 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
7605 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
7606 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
7607 build_scops_1): Removed.
7608 (build_scops_2): Renamed build_scops_1.
7610 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7612 * graphite.c: Fix formatting.
7614 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7616 * graphite.c (get_bb_type): New.
7618 (build_scops_2): New.
7619 (is_bb_addable): New.
7620 (build_scops): Switch the scop detection.
7621 (build_scop_bbs): Add entry bb to scop.
7622 * graphite.h (struct scop): Update comment.
7624 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7626 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
7629 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7631 * gcc.dg/graphite/scop-1.c: Update.
7632 * gcc.dg/graphite/scop-2.c: Update.
7633 * gcc.dg/graphite/scop-4.c: Update.
7634 * gcc.dg/graphite/scop-5.c: Add.
7635 * gcc.dg/graphite/scop-6.c: Add.
7637 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7639 * gcc.dg/graphite/scop-0.c: Add.
7640 * gcc.dg/graphite/scop-7.c: Add.
7641 * gcc.dg/graphite/scop-8.c: Add.
7642 * gcc.dg/graphite/scop-9.c: Add.
7643 * gcc.dg/graphite/scop-10.c: Add.
7645 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7647 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
7648 Check affine expressions depending on the outermost loop
7650 (stmt_simple_for_scop_p): Same.
7651 (harmfule_stmt_in_scop): Same.
7653 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
7655 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
7656 mark entry and exit, that are not part of the SCoP and update HTML
7659 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
7661 * graphite.c (basic_block_simple_for_scop_p): Renamed
7663 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
7664 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
7665 (all_preds_visited_p, all_succs_visited_p,
7666 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
7667 scop_end_loop): New.
7668 (build_scops): Do not use dfs_enumerate_from.
7670 * gcc.dg/graphite/scop-{1,2,4}.c: Updated.
7672 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
7674 * graphite.c: Add comments to functions that are missing a
7676 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
7678 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
7680 * graphite.c (nb_params_in_scop): Moved...
7681 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
7682 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
7683 (clast_to_gcc_expression): Reduce column size to less than 80.
7684 (graphite_create_iv): Return the new name of the IV.
7685 (find_transform): Set options->esp and options->cpp.
7686 (gloog): Comment out the invalidation of the old loop code.
7687 (initialize_dependence_polyhedron): Replace scop_nb_params with
7690 * graphite.h (nb_params_in_scop): ... here.
7691 (scop_nb_params): Removed.
7692 (loop_domain_dim): Return something even when the loop was not
7693 found in the hash table: avoid ICEing on all the graphite.exp
7696 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7698 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
7700 * graphite.c (build_scop_dynamic_schedules): Schedule is built
7701 according to nesting level.
7702 (find_scop_parameters): Call instantiate_parameters.
7703 (scan_tree_for_params): Extend it to handle general affine bounds.
7704 Inner loop bound can depend on outer loop induction variable.
7705 (setup_cloog_loop): tmp variable is allocated on stack. Call
7706 instantiate_parameters with respect to outermost_loop_in_scop.
7707 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
7709 (create_empty_loop): Function loopify should be given edge
7710 probability, instead of edge frequency. Dominance relation from
7711 switch_bb to loop_header.
7712 (clast_to_gcc_expression): Added handling of clast_reduction node.
7713 (gloog): New functionality for removing old loop.
7714 (test_dependence): Factored out from build_rdg_all_levels.
7715 (build_rdg_all_levels): Dependence testing factored out to
7716 test_dependence function.
7718 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
7719 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
7722 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
7724 * graphite.c (free_scop, param_index, initialize_cloog_names,
7725 nb_params_in_scop): Use name_tree map instead of just a tree
7726 for keeping track of the variable name associated to that tree.
7727 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
7728 clast_to_gcc_expression, graphite_create_iv,
7729 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
7730 graphite_stmt_to_gcc_stmt): New.
7731 (gloog): Call these.
7732 * graphite.h (struct name_tree): New.
7733 (struct scop): Use name_tree instead of tree for params.
7734 Store a vector of name_tree for new_ivs.
7736 (scop_nb_params): Use name_tree instead of tree.
7738 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
7739 Sebastian Pop <sebastian.pop@amd.com>
7741 * tree-bounds.c: New.
7742 * tree-bounds.h: New.
7743 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
7744 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
7745 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
7749 * c-cppbuiltin.c: Same.
7753 * tree-outof-ssa.c: Same.
7755 * Makefile.in: Same.
7757 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
7758 Sebastian Pop <sebastian.pop@amd.com>
7760 * tree-loop-distribution.c (remaining_stmts,
7761 upstream_mem_writes): Removed static variables.
7762 (copy_loop_before, create_bb_after_loop,
7763 mark_nodes_having_upstream_mem_writes, free_rdg_components,
7764 rdg_build_components, rdg_build_partitions,
7765 dump_rdg_partitions): Extern.
7766 (generate_loops_for_partition, generate_code_for_partition): Do not
7768 (already_processed_vertex_p, predecessor_has_mem_write,
7769 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
7770 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
7771 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
7772 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
7773 Pass remaining_stmts and upstream_mem_writes as parameters.
7774 (rdg_component): Moved...
7775 (build_rdg_partition_for_component): Do not aggregate components when
7776 flag_streamize_loops is set.
7777 (gen_sequential_loops): New.
7778 (ldist_gen): Call gen_sequential_loops.
7780 * tree-pass.h (pass_loop_streamization): Declared.
7782 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
7783 basic blocks when loops structures exist.
7785 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
7787 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
7789 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
7790 eliminate_local_variables_stmt, eliminate_local_variables,
7791 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
7792 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
7793 of code delimited by two edges in the CFG.
7794 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
7795 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
7796 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
7797 the case of parallelisation of reductions.
7798 (create_loop_fn): Extern.
7799 (create_omp_parallel_region): New.
7801 * tree-data-ref.c (dump_data_dependence_relation): Don't call
7802 dump_data_reference for printing dra and drb.
7803 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
7805 (build_rdg): Don't call free_dependence_relations for the moment, as
7806 we attach dependence relations on each edge of the RDG.
7809 * tree-data-ref.h (rdg_component): ...here.
7810 (struct rdg_edge): New field ddr_p relation.
7811 (RDGE_RELATION): New.
7812 (create_bb_after_loop, copy_loop_before,
7813 mark_nodes_having_upstream_mem_writes, rdg_build_components,
7814 rdg_build_partitions, dump_rdg_partitions,
7815 free_rdg_components): Declared.
7817 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
7818 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
7820 * tree-loop-streamization.c: New.
7822 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
7823 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
7825 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
7827 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
7829 * passes.c: Schedule pass_loop_streamization.
7831 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
7833 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
7836 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
7838 * graphite.c (dot_all_scops): Update formatting.
7839 Bbs can now be part of more than one SCoP.
7841 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
7843 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
7845 (loop_domain_dim): Check for unregistered toplev SCOP loop.
7846 * graphite.h (loop_to_cloog_loop): New.
7848 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7850 * graphite.c (loop_domain_dim, ref_nb_loops,
7851 loop_iteration_vector_dim): New.
7852 (build_access_matrix_with_af, build_access_matrix,
7853 initialize_dependence_polyhedron): Fixed for new matrix layout.
7854 No longer assume that all iteration domains are of the same
7857 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
7859 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
7860 defined in a loop at depth 0 is invariant.
7861 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
7862 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
7863 be called at loop depth 0.
7865 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
7867 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
7868 (down_open_scop): Removed.
7869 (loop_in_scop_p): Redefined.
7870 (scop_affine_expr): New argument: scop.
7871 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
7872 a harmful statement ending a scop.
7873 (basic_block_simple_for_scop_p): New argument: scop.
7874 (get_loop_start): Removed.
7875 (new_scop): Initialize SCOP_LOOPS.
7876 (free_scop): Free SCOP_LOOPS.
7877 (succs_at_same_depth, preds_at_same_depth): New.
7878 (end_scop): Test the validity of a scop.
7879 (add_dominators_to_open_scops): New.
7880 (test_for_scop_bound): Call add_dominators_to_open_scops.
7881 Add cases for opening and closing multiple scops.
7882 (build_scops, build_scop_bbs): Iterate over basic blocks in
7884 (build_graphite_bb): Pass scop directly.
7885 (dfs_bb_in_scop_p): New.
7886 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
7888 (nb_loops_around_gb): Use loop_in_scop_p.
7889 (schedule_to_scattering): Disabled for the moment the code computing
7890 the "textual order for outer loop".
7892 * graphite.h (struct scop): New field loops.
7894 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
7896 * gcc.dg/graphite/scop-{1,...,7}.c: Updated.
7898 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
7899 Sebastian Pop <sebastian.pop@amd.com>
7901 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
7902 * common.opt (fstreamize-loops): New.
7903 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
7904 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
7905 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
7906 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
7908 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7910 * tree-data-ref.c (build_empty_rdg): New.
7911 (build_rdg): Use it.
7912 * tree-data-ref.h (build_empty_rdg): Declared.
7913 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
7914 (find_vertex_for_stmt): Removed.
7915 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
7917 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
7919 * tree-loop-distribution.c (generate_builtin): After cancelling the
7920 loop tree, also delete basic blocks.
7921 (rdg_flag_uses): Stop recursion when a vertex has already been
7924 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7926 * graphite.c (build_scop_alpha): Removed.
7927 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
7928 and dump_dependence_graph to avoid compiler warnings.
7930 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7932 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
7933 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
7934 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
7935 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
7936 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
7937 (initialize_dependence_polyhedron, find_vertex_for_stmt,
7938 initialize_data_dependence_polyhedron, is_empty_polyhedron,
7939 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
7940 dump_dependence_graph): New.
7941 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
7943 (struct scop): New field loop2cloog_loop.
7944 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
7945 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
7947 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7949 * graphite.c (build_graphite_bb): Fix initialization
7950 of the graphite basic block.
7952 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
7954 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
7955 loop domain matrix. Pass in the number of loops contained in the
7957 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
7958 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
7959 loops that are not surrounding the current loop are not represented
7960 in the domain constraint matrix.
7961 (build_scop_iteration_domain): Initial domain constraint matrix
7962 contains only the eq/ineq, cst, and scop parameters columns.
7964 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7966 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
7967 (print_graphite_bb): Print scattering.
7969 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7971 * graphite.c (initialize_cloog_names): Initialize names of
7972 scattering variables.
7974 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7976 * graphite.c (dot_all_scops_1): Disable debug output while
7979 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7981 * graphite.c (find_transform): Change cloog output language to C.
7983 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
7985 * tree-loop-distribution.c (generate_memset_zero,
7986 generate_builtin, generate_code_for_partition,
7987 rdg_flag_all_uses): New.
7988 (rdg_flag_uses): Gather in the same partition the statements defining
7989 the VUSES of the current statement.
7990 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
7991 Gather in the same partition not only the stores to the same memory
7992 access, but also the reads.
7993 (ldist_generate_loops): Renamed ldist_gen.
7995 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
7996 Tobias Grosser <grosser@fmi.uni-passau.de>
7998 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
7999 next pointer, don't use the inner pointer.
8001 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
8003 * graphite.c (dot_all_scops, dot_all_scops_1): New.
8004 (find_transform): Call dot_all_1.
8005 * graphite.h (dot_all_scops): Declared.
8007 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
8009 * tree-loop-distribution.c: Fix apsi.f ICE.
8010 (create_bb_after_loop): New.
8011 (generate_loops_for_partition): Use it.
8012 * gfortran.dg/ldist-1.f90: New.
8014 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
8015 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
8017 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8019 * graphite.c (find_transform): Dump cloog program sent to cloog.
8021 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8023 * graphite.c (initialize_cloog_names): Initialize cloog
8026 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8028 * graphite.c (build_scop_context): Fix typo, for the matrix
8029 format: insert '0 >= 0' instead of '-1 >= 0'.
8031 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
8033 * Fix merge problems.
8035 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
8037 * graphite.c (setup_cloog_loop): Fix typo.
8039 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
8041 * doc/invoke.texi (-ftree-loop-distribution): Documented.
8042 * tree-loop-distribution.c: Reimplemented.
8043 * tree-pass.h (pass_loop_distribution): New.
8044 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
8046 * graphds.h (struct graph): New field indexes.
8047 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8049 * tree-vect-analyze.c: Remove declaration of static functions when not
8051 * tree-vectorizer.c: Same.
8052 (rename_variables_in_loop): Now extern.
8053 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
8054 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
8055 calling redirect_edge_and_branch_force.
8057 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
8059 * tree-data-ref.c: Don't include tree-chrec.h.
8060 (debug_data_dependence_relations): New.
8061 (dump_data_dependence_relation): Call dump_data_reference on data refs
8063 (same_access_functions): Moved...
8064 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
8065 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8066 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
8067 struct rdg_vertex_info, ): New.
8068 (create_rdg_edge_for_ddr): Compute the dependence level before looking
8070 (create_rdg_vertices): Initialize the htab of graph->indexes.
8071 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
8072 (stmts_from_loop): Don't save LABEL_EXPR.
8073 (hash_stmt_vertex_info, eq_stmt_vertex_info,
8074 hash_stmt_vertex_del): New.
8075 (build_rdg): Initialize rdg->indexes.
8076 (free_rdg, stores_from_loop, ref_base_address,
8077 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
8078 have_similar_memory_accesses_1, ref_base_address_1,
8079 remove_similar_memory_refs): New.
8081 * tree-data-ref.h: Include tree-chrec.h.
8082 (debug_data_dependence_relations): Declared.
8083 (same_access_functions): ...here. Now static inline.
8084 (ddr_is_anti_dependent, ddrs_have_anti_deps,
8085 ddr_dependence_level): New.
8086 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
8087 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
8088 RDG_MEM_READS_STMT): New.
8089 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8090 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
8091 rdg_vertex_for_stmt): Declared.
8092 (struct rdg_edge): New field level.
8093 (RDGE_LEVEL, free_rdg): New.
8094 (stores_from_loop, remove_similar_memory_refs,
8095 rdg_defs_used_in_other_loops_p,
8096 have_similar_memory_accesses): Declared.
8097 (rdg_has_similar_memory_accesses): New.
8099 * lambda.h (dependence_level): New.
8100 * common.opt (ftree-loop-distribution): New.
8101 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
8102 (print_loop_ir): Renamed print_loops.
8103 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
8104 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
8105 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
8106 (tree-loop-distribution.o): Added.
8107 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
8108 (mark_virtual_ops_in_bb): New.
8109 (print_loops_bb, debug_loop_num, debug_loop): New.
8110 * passes.c: Scheduled pass_loop_distribution.
8112 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8114 * graphite.c (scan_tree_for_params): Correct the number of columns
8116 (nb_flat_iterator): New.
8117 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
8118 (build_scop_iteration_domain): Correct the number of columns for
8121 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
8123 * Merge from mainline (129697:130800).
8125 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
8127 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
8128 dominated by SCoP's exit.
8129 (graphite_transform_loops): Compute post dominators.
8131 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
8133 * Merge from mainline (127169:129697).
8135 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
8137 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
8138 parameter for the basic block that contains the expression. Use
8139 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
8140 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
8142 * graphite.h (gbb_loop): New.
8143 (GBB_LOOP): Removed.
8145 2007-08-03 Sebastian Pop <sebpop@gmail.com>
8147 * Makefile.in: Fix merge problem.
8149 2007-08-03 Sebastian Pop <sebpop@gmail.com>
8151 * Merge from mainline (125309:127169).
8152 * tree-loop-distribution.c: Disabled.
8154 2007-06-05 Sebastian Pop <sebpop@gmail.com>
8156 * Merge from mainline (r123693:125309).
8158 2007-05-30 Sebastian Pop <sebpop@gmail.com>
8160 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
8162 (correct_modify_p, check_statements, number_of_lvalue_uses,
8163 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
8164 instead of MODIFY_EXPR.
8165 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
8168 2007-05-24 Sebastian Pop <sebpop@gmail.com>
8170 * tree-loop-distribution.c (struct rdg): Replace arrays by
8171 VECs for edges and vertices.
8172 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
8173 (RDGV_NB_PARTITIONS): New.
8174 (PRDG_NBV, PRDG_NBE): Removed.
8175 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
8176 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
8177 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
8179 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
8180 Sebastian Pop <sebpop@gmail.com>
8182 * doc/invoke.texi (-ftree-loop-distribution): Document.
8183 * tree-loop-distribution.c: New file.
8184 * tree-pass.h (pass_loop_distribution): Declared.
8185 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8186 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
8188 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
8189 (DDR_REVERSED_P): New.
8190 * common.opt (-ftree-loop-distribution): New.
8191 * tree-flow.h (distribute_loops): Declared.
8192 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
8193 * passes.c (init_optimization_passes): Schedule loop distribution.
8195 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
8197 * graphite.c (print_graphite_bb): Don't call dump_data_references.
8198 (print_scop): Don't print when scop is NULL.
8199 (build_scop_context, find_transform): Don't output to stderr.
8201 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
8203 * tree-data-ref.c: Don't include graphite.h.
8204 Comment out the code for printing data reference's scop.
8205 (build_access_matrix_with_af): Moved...
8206 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
8207 * graphite.c (build_access_matrix_with_af): ... here. Now static.
8208 (print_graphite_bb): Print basic block's schedule.
8209 (print_scop): Don't print the schedule, call cloog's pretty printer.
8210 (bb_in_scop_p): A basic block is in a scop only if it is both
8211 dominated and postdominated by the scop's entry and exit basic blocks.
8212 (function_parameter_p): New.
8213 (invariant_in_scop_p): Use function_parameter_p.
8214 (new_scop, save_scop): New.
8215 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
8217 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
8218 (loop_in_scop_p): New.
8219 (scop_record_loop): Use loop_in_scop_p.
8220 (build_scop_domain): Renamed build_scop_iteration_domain.
8221 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
8222 nb_params_in_scop, build_scop_context, first_loop_in_scop,
8223 setup_cloog_loop, dot_scop_1, dot_scop): New.
8224 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
8225 (struct scop): Add a pointer to cloog's representation of a program.
8227 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8229 * doc/invoke.texi (-ftree-check-verbose): Renamed
8230 -ftree-checks-verbose.
8231 * common.opt (flag_tree_check_verbose): Renamed
8232 flag_tree_checks_verbose.
8233 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
8235 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8237 * configure: Regenerated.
8238 * config.in: Regenerated.
8239 * tree-ssa-loop.c (graphite_transforms): Execute
8240 graphite_transform_loops only when HAVE_cloog.
8241 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
8242 * graphite.c: Include polylibgmp.h and cloog.h.
8243 (graphite_transform_loops): Removed loops parameter.
8244 * tree-flow.h (graphite_transform_loops): Update declaration.
8245 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
8246 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
8247 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
8248 (OBJS-common): Remove dependence on graphite.o.
8249 (BACKEND): Depend on @GRAPHITE@.
8251 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
8253 * doc/invoke.texi (-ftree-check-verbose): Documented.
8254 * gcc.dg/tree-checker/tree-checks-1.c: New.
8255 * gcc.dg/tree-checker/tree-checks-2.c: New.
8256 * gcc.dg/tree-checker/tree-checks-3.c: New.
8257 * gcc.dg/tree-checker/tree-checks-4.c: New.
8258 * gcc.dg/tree-checker/tree-checks.exp: New.
8259 * gcc.dg/tree-checker/condates.crp: New.
8260 * common.opt (ftree-checks-verbose): New.
8261 * tree-check.c (tree_check_warning): Move extra stderr output
8262 under control of flag_tree_check_verbose.
8264 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
8266 * tree-match.c: Fix comments formatting.
8267 * tree-match.h: Fix comments formatting.
8268 * tree-check.c: Fix comments formatting.
8269 (tree_check_init): Restructure.
8271 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
8273 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
8275 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
8277 * Merge from mainline (r120733:123693).
8279 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
8281 * condate.y: New file.
8282 * tree-match.h (struct patt_info_s): New field sign.
8283 (struct condate_s): New field msg.
8284 (normalize_condate, name_condate, add_condate): New.
8285 (conds[], condate_parse): Made extern.
8286 * tree-check.c (tree_check_warning): First arg changed to cond;
8287 warning reformatted.
8288 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
8290 (tree_check): Process trivial condates.
8291 (read_delimited_string): Removed.
8292 (print_cond): Print name and msg.
8293 (conds[]): Made extern.
8294 (parse_tree_check_file_once): Rewritten to use the parser in
8296 Processing of option --tree_check_string moved to tree_scan().
8297 * Makefile.in: Added condate.y
8299 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
8301 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
8302 Use VECs instead of varrays.
8303 * diagnostic.h (lazy_dump_generic_node): Update declaration.
8304 * Makefile.in (pretty-print.o): Depend on vec.h.
8305 * pretty-print.c: Include tree.h and vec.h.
8306 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
8307 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
8308 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
8309 pp_free_list): Use VECs instead of varrays.
8310 * pretty-print.h: Do not include varray.h.
8311 (struct tree_chunk_s): Declaration moved before its use.
8312 (output_buffer): Rename varray field to chunks.
8313 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
8314 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
8315 save_global_holes): Use VECs instead of varrays.
8316 * tree-match.h: Declare VECs of cfg_node, and hole_p.
8317 * tree-check.c (scan_cfg_stmts, push_node,
8318 print_matching_stmt): Removed.
8319 (tree_check_instance, push_global_holes_if_new, tree_check,
8320 execute_tree_check): Use VECs instead of varrays.
8321 (gate_tree_check): Don't execute the CFG check when basic_block_info
8324 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8326 * Merge from mainline (r115016:120733).
8328 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8330 * Merge from mainline (r117632:117661).
8332 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8334 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
8335 * tree-pass.h (TDF_DEBUG, debug_p): New.
8336 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
8337 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
8338 get_loop_exit_condition, analyze_evolution_in_loop,
8339 analyze_initial_condition, analyze_scalar_evolution,
8340 instantiate_parameters, number_of_latch_executions): Use debug_p.
8341 * tree-chrec.c (chrec_apply): Use debug_p.
8342 * tree-data-ref.c: Include graphite.h.
8343 (dump_data_reference): Print also the access matrix.
8344 (analyze_array, analyze_indirect_ref, init_data_ref,
8345 analyze_offset_expr, address_analysis, object_analysis,
8346 create_data_ref, finalize_ddr_dependent,
8347 non_affine_dependence_relation, analyze_ziv_subscript,
8348 analyze_siv_subscript_cst_affine,
8349 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
8350 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
8351 analyze_miv_subscript, analyze_overlapping_iterations,
8352 build_classic_dist_vector, subscript_dependence_tester,
8353 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
8354 (build_access_matrix_with_af): No longer static.
8355 * tree-data-ref.h (scop_p): ... declaration here.
8356 (data_reference.scop): New field.
8357 (DR_SCOP, DR_ACCESS_MATRIX): New.
8358 (build_access_matrix_with_af, dr_num_subscripts): Declared.
8359 * graphite.c (print_graphite_bb): Call dump_data_references.
8360 (print_scop): Use scop_nb_loops and scop_dim_domain.
8361 (test_for_scop_bound): Use debug_p.
8362 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
8364 (scop_loop_index): Moved...
8365 (scop_record_loop): New.
8366 (build_scop_loop_nests): Use scop_record_loop.
8367 (build_scop_domain): Use scop_dim_domain.
8368 (build_access_matrix): Implemented.
8369 (build_scop_canonical_schedules): Use scop_nb_loops.
8370 (build_graphite_bb): Initialize GBB_SCOP.
8371 * graphite.h (scop_p): Moved...
8372 (graphite_bb.scop): New field.
8373 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
8374 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
8375 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
8376 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
8377 scop_loop_index): New.
8378 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
8380 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
8382 * Merge from mainline (r117661:120450).
8384 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
8386 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
8387 at the first declaration outside the varying loop, instantiate as
8389 * tree-chrec.c (for_each_scev_op): New.
8390 * tree-chrec.h (for_each_scev_op): Declared.
8391 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
8392 * tree-data-ref.c (get_references_in_stmt,
8393 find_data_references_in_stmt): New, from trunk.
8394 (find_data_references_in_loop): Use get_references_in_stmt
8395 and find_data_references_in_loop, modified as in trunk.
8396 (build_access_matrix_with_af): New.
8397 * tree-data-ref.h (data_reference): Add a field access_matrix.
8398 (data_ref_loc): New, as in trunk.
8399 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
8400 invariant_in_scop_p, param_index, scan_tree_for_params,
8401 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
8402 idx_record_param, idx_record_params, build_access_matrix,
8403 build_scop_data_accesses, build_scop_canonical_schedules,
8404 build_graphite_bb, build_scop_bbs, find_params_in_bb,
8405 build_scop_params): New.
8406 * graphite.h (graphite_bb): New.
8407 (scop): Add fields static_schedule, params, loop_nest,
8409 * lambda.h: Declare vecs of lambda_matrix.
8410 * tree-flow.h (print_loop_ir_bb): Declared.
8411 * tree-cfg.c (print_loop_ir_bb): New.
8412 (print_loop): Use print_loop_ir_bb.
8414 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
8416 * Merge from mainline (r115016:117632).
8418 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
8420 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
8421 break due to a warning.
8423 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
8425 * graphite.c (print_scops, debug_scops): New.
8426 (graphite_transform): Renamed graphite_find_transform.
8427 * graphite.h (debug_scops): Declared.
8429 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
8431 * tree-match.c: Reformat following the GNU style.
8432 * tree-match.h: Reformat following the GNU style.
8433 * tree-pattern.h: Removed empty file.
8434 * Makefile.in: Remove references to tree-pattern.h.
8435 * tree-check.c: Reformat following the GNU style.
8436 (execute_tree_check): Move gate condition code to...
8437 (gate_tree_check): ...here. New function.
8438 (pass_check): Use the gate function.
8440 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
8442 * tree-pattern.h: New. Tree pattern matching and checking using
8444 * tree-check.c: New. Tree/CFG checking pass.
8445 * tree-match.c: New. Library for tree pattern matching.
8446 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
8447 * toplev.c, flags.h: Add globals for tree-check pass.
8448 * Makefile.in: Integrate the files in tree-check pass.
8449 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
8450 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
8451 Introduce a "lazy" pretty-print mode.
8452 * tree.c, tree.h: Add tree_name.
8454 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
8456 * doc/invoke.texi (-fgraphite): Correct typo.
8457 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
8458 use of print_loop_ir.
8459 * gcc.dg/graphite/scop-1.c: New.
8460 * gcc.dg/graphite/scop-2.c: New.
8461 * gcc.dg/graphite/graphite.exp: New.
8462 * graphite.c: Include domwalk.h.
8463 (print_scop): Print only the entry and exit blocks.
8464 (debug_scop): No longer static.
8465 (affine_expr): Fix formating. Return also true when the expression is
8467 (stmt_simple_for_scop_p): Fix formating.
8468 (build_scops): Use domwalk.
8469 (get_loop_start, end_scop, test_for_scop_bound): New.
8470 (graphite_transform_loops): Avoid printing on stderr.
8471 * graphite.h (debug_scop): Declared.
8472 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
8473 * Makefile.in (graphite.o): Depend on domwalk.h.
8474 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
8475 declarations for static functions.
8476 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
8477 controlling output verbosity.
8479 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
8480 Plesco Alexandru <shurikx@gmail.com>
8482 * doc/invoke.texi (-fgraphite): Document.
8483 * tree-pass.h (pass_graphite_transforms): Declared.
8484 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
8485 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
8486 (pass_graphite_transforms): Defined.
8487 * tree-data-ref.c (free_data_ref, data_reference): Extern.
8488 * tree-data-ref.h (free_data_ref, data_reference): Declared.
8489 * graphite.c, graphite.h: New.
8490 * common.opt (fgraphite): Declared.
8491 * tree-flow.h (graphite_transform_loops): Declared.
8492 * Makefile.in (OBJS-common): Add graphite.o.
8493 (graphite.o): New rule.
8494 * passes.c (pass_graphite_transforms): Scheduled.