1 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
3 * tree-scalar-evolution.c (instantiate_array_ref): New.
4 (instantiate_scev_r): Also handle ARRAY_REFs.
6 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
8 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
9 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
10 RESULT_DECL, and FIELD_DECL. Return false for an
11 SSA_NAME_IS_DEFAULT_DEF.
12 (compute_scalar_evolution_in_loop): Do not further analyze the
13 scalar evolution when no_evolution_in_loop_p returns true.
15 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
17 * tree-chrec.h (evolution_function_is_affine_p): Do not check
18 whether CHREC_LEFT is invariant. A function is affine when
19 CHREC_RIGHT is invariant.
21 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
23 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
25 (rewrite_degenerate_phi): Same.
26 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
28 2010-08-18 Vladimir Kargov <kargov@gmail.com>
30 * graphite-scop-detection.c (graphite_can_represent_scev,
31 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
32 graphite_can_represent_loop): Remove outermost_loop.
34 2010-08-17 Sebastian Pop <sebastian.pop@amd.com>
37 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
38 handle GIMPLE_CALLs with no LHS.
40 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
41 Sebastian Pop <sebastian.pop@amd.com>
43 * gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write.
44 Call remove-build-file to clean up the generated *.graphite files.
46 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
48 * doc/invoke.texi (debugging options): Update documentation.
49 (-floop-interchange): Same.
50 (-flopp-strip-mine): Same.
52 (-fgraphite-read): Add documentation.
53 (-fgraphite-write): Same.
55 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
57 * toplev.c (process_options): Disable graphite loop optimization
58 options when -fgraphite-read flag is used.
60 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
62 * graphite-poly.c (init_graphite_out_file): New.
63 (init_graphite_in_file): New.
64 (apply_poly_transforms): Updated to enable reading and writing of
66 * toplev.c (init_asm_output): Remove graphite in/out file initialization.
68 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de>
70 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
73 2010-08-12 Sebastian Pop <sebastian.pop@amd.com>
75 * graphite-clast-to-gimple.c (precision_for_value): Adjust
76 computation of precision by 1.
78 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com>
80 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
81 (openscop_read_polyhedron_matrix): New.
82 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
83 (openscop_read_N_int): Same.
84 * graphite-poly.c (openscop_read_N_int): New.
85 (openscop_read_one_int): New.
86 (openscop_read_N_string): New.
87 (openscop_read_one_string): New.
88 (openscop_read_powerset_matrix): New.
89 (graphite_read_transforms): Remove.
90 (graphite_read_scatt): New.
91 (graphite_read_scop_file): New.
92 (apply_poly_transforms): Updated to call graphite_read_scop_file.
94 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
96 * graphite-poly.c: Change include order.
98 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
100 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
101 (cloog_matrix_nrows): New.
103 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
105 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
107 * graphite-poly.c (openscop_print_scattering_function_1): Same.
108 (print_scattering_function_1): Same.
109 (openscop_print_pbb_domain): Same.
110 (openscop_print_scop_context): Same.
111 (print_scop_context): Same.
113 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
115 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
116 (openscop_print_pdr_polyhedron): Print pph.
118 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
120 * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files.
121 * gfortran.dg/graphite/graphite.exp: Same.
122 * gcc.dg/graphite/vect-pr43423.c: New.
124 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
126 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
127 priority signed types.
129 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
131 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
132 to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type.
134 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com>
136 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
137 (openscop_print_polyhedron_matrix): New.
138 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
139 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
140 (openscop_print_pdr_powerset): New.
141 (openscop_print_powerset_matrix): New.
142 (openscop_print_scattering_function_1): New.
143 (print_scattering_function): Add support for scattering names and
145 (graphite_write_transforms): Remove.
146 (apply_poly_transforms): Updated to call print_scop.
147 (print_pdr_access_layout): Updated to support OpenScop format.
149 (openscop_print_pbb_domain): New.
150 (print_pbb_body): Added a parameter to allow indicating that pbb_body is
152 (print_pbb): Updated to call the new print_pbb_body.
153 (openscop_print_scop_context): New.
154 (print_scop_header): New.
155 (print_scop): Updated to call print_scop_header.
156 * graphite-poly.h: Document OpenScop format.
158 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
160 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
161 the case removed in the previous patch, when the only phi argument
162 is defined in the same loop as the phi node itself. Handle it
163 separately from the invariant case by both propagating it outside
164 the region and replacing the phi node with an assign.
166 2010-07-28 Sebastian Pop <sebastian.pop@amd.com>
168 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
169 constant phi nodes with one argument are is_gimple_min_invariant
170 and SSA_NAME_IS_DEFAULT_DEF.
172 * gfortran.dg/graphite/id-22.f: New.
174 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
176 * graphite.c (graphite_initialize): Do not initialize
177 CLooG and initialize the Parma Polyhedra Library
178 manually when using CLOOG_ORG.
179 (graphite_finalize): Do not finalize CLooG and finalize
180 the Parma Polyhedra Library manually when using CLOOG_ORG.
181 * graphite-cloog-compat.h (cloog_initialize): Hide function
182 when using CLOOG_ORG.
183 (cloog_finalize): Same.
185 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
187 * graphite-clast-to-gimple.c (free_scattering): Change
188 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
190 (build_cloog_prog): Same.
191 * graphite-cloog-compat.h (cloog_domain): Removed.
192 (cloog_scattering): New.
193 (cloog_set_domain): Removed.
194 (cloog_set_scattering): New.
195 (cloog_next_domain): Removed.
196 (cloog_next_scattering): New.
197 (cloog_set_next_domain): Removed.
198 (cloog_set_next_scattering): New.
199 (CloogScatteringList): New.
200 (CloogScattering): New.
201 (cloog_scattering_free): New.
202 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
203 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
206 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
208 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
210 (set_cloog_options): Same.
211 (print_clast_stmt): Same.
212 (scop_to_clast): Same.
213 (print_generated_program): Same.
215 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
216 (scop_to_clast): Extend with CloogState.
217 * graphite-cloog-util.c: Include graphite-cloog-compat.h
218 (new_Cloog_Domain_from_ppl_Polyhedron):
219 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
220 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
221 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
222 * graphite-cloog-util.h (build_cloog_prog): Same.
223 * graphite-cloog-copat.h (build_cloog_prog): New.
225 (cloog_state_malloc): New.
226 (cloog_state_free): New.
227 (cloog_loop_malloc): New.
228 (cloog_options_malloc): New.
229 (cloog_statement_alloc): New.
230 (cloog_domain_from_cloog_matrix): New.
231 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
232 (new_Cloog_Domain_from_ppl_Polyhedron): New.
234 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
236 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
237 type of NAME now depends on used CLooG version.
238 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
239 (gcc_type_for_clast_expr): Same.
240 (print_clast_stmt): Replace pprint with clast_pprint.
241 * graphite-cloog-compat.h: Provide compatibility macros for
244 (clast_expr_term): New.
245 (clast_expr_red): New.
246 (clast_expr_bin): New.
249 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
251 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
252 compatible to newer CLooG releases (CLOOG_ORG).
253 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
254 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
255 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
256 (build_cloog_prog) : New.
257 (cloog_program_extract_scalars): New.
258 (cloog_program_scatter): New.
260 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
262 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
263 conditionally (CLOOG_ORG).
264 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
265 (cloog_statement_usr): New.
266 (cloog_domain): Same.
267 (cloog_set_domain): Same.
268 (cloog_next_domain): Same.
269 (cloog_set_next_domain): Same.
270 (cloog_program_nb_scattdims): Same.
271 (cloog_program_set_nb_scattdims): Same.
272 (cloog_program_names): Same.
273 (cloog_program_set_names): Same.
274 (cloog_program_set_context): Same.
275 (cloog_program_set_loop): Same.
276 (cloog_program_blocklist): Same.
277 (cloog_program_set_blocklist): Same.
278 (cloog_program_scaldims): Same.
279 (cloog_program_set_scaldims): Same.
280 (cloog_names_nb_parameters): Same.
281 (cloog_names_set_nb_parameters): Same.
282 (cloog_names_parameters): Same.
283 (cloog_names_set_parameters): Same.
284 (cloog_names_set_nb_iterators): Same.
285 (cloog_names_set_iterators): Same.
286 (cloog_names_set_nb_scattering): Same.
287 (cloog_names_set_scattering): Same.
288 (cloog_statement_set_usr): Same.
289 (cloog_loop_set_next): Same.
290 (cloog_loop_set_domain): Same.
291 (cloog_loop_set_block): Same.
292 (cloog_block_list_next): Same.
293 (cloog_block_list_set_next):
294 (cloog_block_list_set_block): Same.
296 2010-07-27 Sebastian Pop <sebastian.pop@amd.com>
298 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
300 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
301 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
302 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
303 when something has been changed.
304 (rewrite_commutative_reductions_out_of_ssa): Same.
306 * gcc.dg/graphite/id-26.c: New.
308 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
310 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
311 handle the case when def is in the sese region.
312 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
313 for invariant expressions.
314 (rewrite_cross_bb_phi_deps): Removed.
315 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
316 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
317 rewrite_cross_bb_phi_deps.
319 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
321 * graphite-sese-to-poly.c
322 (rewrite_commutative_reductions_out_of_ssa_loop): Call
323 scev_analyzable_p only on is_gimple_reg
325 * gcc.dg/graphite/id-25.c: New.
327 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
329 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
330 (rewrite_close_phi_out_of_ssa): Propagate constant values or
331 parametric expressions outside the scop region.
332 (rewrite_cross_bb_scalar_deps): Same.
333 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
335 * gcc.dg/graphite/run-id-5.c: New.
336 * gcc.dg/graphite/run-id-6.c: New.
337 * gfortran.dg/graphite/id-21.f: New.
339 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
341 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
342 SSA_NAME_DEF_STMT only on SSA_NAMEs.
344 * gcc.dg/graphite/id-24.c: New.
346 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
348 * tree-scalar-evolution.c (instantiate_scev_name): Do not
349 instantiate default definitions.
351 2010-07-20 Vladimir Kargov <kargov@gmail.com>
353 * graphite-scop-detection.c (is_valid_stmt_p): New.
354 (is_valid_bb_p): New.
356 2010-07-20 Vladimir Kargov <kargov@gmail.com>
357 Sebastian Pop <sebastian.pop@amd.com>
359 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
360 (loop_exits_from_bb_p): New.
361 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
362 (loop_exits_from_bb_p): Declared.
363 * graphite-scop-detection.c (scopdet_basic_block_info): Call
366 2010-07-20 Vladimir Kargov <kargov@gmail.com>
368 * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and
370 (dot_regions_1): New.
372 * refined-regions.h (dot_regions): Declared.
373 * Makefile.in (refined-regions.o): Update dependences.
375 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
377 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
378 extra parameter for the region. Call scev_analyzable_p.
379 (rewrite_reductions_out_of_ssa): Update call to
380 rewrite_close_phi_out_of_ssa.
381 (rewrite_cross_bb_phi_deps): Same.
382 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
383 parameter for the region. Call scev_analyzable_p.
384 (rewrite_commutative_reductions_out_of_ssa): Update call to
385 rewrite_commutative_reductions_out_of_ssa_loop.
387 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
389 * gcc.dg/tree-ssa/pr20742.c: New.
391 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
393 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
395 * gcc.dg/graphite/id-23.c: New.
397 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
399 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
400 SSA scalar phi nodes that can be scev_analyzable_p.
402 * gfortran.dg/graphite/id-20.f: Adjust testcase.
404 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
406 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
407 handle SSA_NAME_IS_DEFAULT_DEF.
409 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
411 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
413 * gcc.dg/graphite/pr42729.c: New.
415 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
417 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
418 case non close-phi nodes with one argument.
420 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
422 * sese.h (scev_analyzable_p): Scevs could be expressions without
423 chrecs and still be scev_analyzable_p.
425 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
427 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
429 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
431 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
432 * cfgloop.h (struct loop): Remove single_iv field.
433 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
434 (scop_canonicalize_loops): Removed.
435 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
436 over all the loop phi nodes in loop->header.
437 (build_poly_scop): Remove use of scop_canonicalize_loops.
439 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
441 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
444 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
446 * tree-chrec.c (chrec_apply): Should only apply to the specified
447 variable. Also handle multivariate chains of recurrences that
448 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
450 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
452 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
453 (debug_clast_name_indexes_1): Removed.
454 (debug_clast_name_indexes): Removed.
455 (pbb_to_depth_to_oldiv): Removed.
456 (build_iv_mapping): Replace the use of rename_map with iv_map.
457 (translate_clast_user): Remove uses of rename_map. Allocate and
459 (translate_clast_for_loop): Remove uses of rename_map.
460 (translate_clast_for): Same.
461 (translate_clast_guard): Same.
462 (translate_clast): Same.
464 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
465 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
466 * sese.c (set_rename): Now static.
467 (rename_variables_in_stmt): Removed.
469 (is_parameter): Removed.
471 (expand_scalar_variables_call): Removed.
472 (expand_scalar_variables_ssa_name): Removed.
473 (expand_scalar_variables_expr): Removed.
474 (expand_scalar_variables_stmt): Removed.
475 (expand_scalar_variables): Removed.
476 (rename_variables): Removed.
477 (remove_condition): Removed.
478 (get_true_edge_from_guard_bb): Removed.
479 (get_false_edge_from_guard_bb): Removed.
480 (struct igp): Removed.
481 (default_before_guard): Removed.
482 (convert_for_phi_arg): Removed.
483 (add_guard_exit_phis): Removed.
484 (insert_guard_phis): Removed.
485 (graphite_copy_stmts_from_block): Now also uses iv_map and a
486 region. Do not copy conditions. Do not copy induction variables.
488 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
489 the translated statement. Use the iv_map for the induction
491 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
492 (set_rename): Removed declaration.
493 (scev_analyzable_p): ...here.
494 * tree-chrec.c (chrec_apply_map): New.
495 * tree-chrec.h (chrec_apply_map): Declared.
497 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
499 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
500 insert_loop_close_phis.
501 * sese.c (name_defined_in_loop_p): Removed.
502 (expr_defined_in_loop_p): Removed.
503 (alive_after_loop): Removed.
504 (close_phi_not_yet_inserted_p): Removed.
505 (struct alep): Removed.
506 (add_loop_exit_phis): Removed.
507 (insert_loop_close_phis): Removed.
509 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
511 * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped
513 * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same.
515 2010-07-07 Sebastian Pop <sebastian.pop@amd.com>
517 * gfortran.dg/graphite/id-20.f: New.
519 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
521 * graphite-cloog-util.h: Added cloog.h.
522 * graphite-blocking.c: Removed cloog.h.
523 * graphite-dependences.c: Same.
524 * graphite-interchange.c: Same.
525 * graphite-poly.c: Same.
526 * graphite-ppl.c: Same.
527 * graphite-scop-detection.c: Same.
528 * graphite-sese-to-poly.c:
530 Removed graphite-clast-to-gimple.h.
531 (check_poly_representation): Removed (unused).
532 * graphite-sese-to-poly.h
533 (check_poly_representation): Removed (unused).
535 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
538 (OBJS-common): Added graphite-cloog-util.o.
539 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
540 (graphite-cloog-util.o): New.
541 (graphite-ppl.o): Added graphite-cloog-util.h.
542 * graphite-clast-to-gimple.c:
543 Added graphite-cloog-util.h to include statements.
544 * graphite-cloog-util.c: New.
545 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
546 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
547 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
548 (new_C_Polyhedron_from_Cloog_Matrix): Same.
549 (ppl_Constrain_System_number_of_constraints): Same.
550 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
551 (oppose_constraint): Same.
552 (cloog_matrix_to_ppl_constraint): Same.
553 (new_Constraint_System_from_Cloog_Matrix): Same.
554 (insert_constraint_into_matrix): Same. Declared static.
555 * graphite-cloog-util.h: New.
556 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
557 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
558 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
559 (new_C_Polyhedron_from_Cloog_Matrix): Same.
560 (insert_constraint_into_matrix): Same.
562 Added graphite-cloog-util.h to include statements.
563 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
564 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
565 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
566 (new_C_Polyhedron_from_Cloog_Matrix): Same.
567 (insert_constraint_into_matrix): Same.
568 (ppl_Constrain_System_number_of_constraints): Same.
569 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
570 (oppose_constraint): Same.
571 (cloog_matrix_to_ppl_constraint): Same.
572 (new_Constraint_System_from_Cloog_Matrix): Same.
574 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
575 graphite-cloog-util.h.
576 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
577 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
578 (new_C_Polyhedron_from_Cloog_Matrix): Same.
579 (insert_constraint_into_matrix): Removed.
581 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
583 * graphite-clast-to-gimple.c
584 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
585 (precision_for_interval): Same.
586 (gcc_type_for_interval): Same.
587 (compute_type_for_level): Same.
588 * graphite-interchange.c
589 (lst_interchange_profitable_p): Same.
591 (psct_scattering_dim_for_loop_depth): Same.
593 (ppl_max_for_le_pointset): Same.
594 (ppl_min_for_le_pointset): Same.
596 2010-06-25 Vladimir Kargov <kargov@gmail.com>
598 * refined-regions.c (bb_index_compare): New.
599 (get_bbs_in_region): New.
600 (print_bbs_in_region): New.
601 (print_refined_region): Add an argument that allows to print
602 all basic blocks contained in regions.
603 (debug_refined_region): Update call to print_refined_region.
604 * refined-regions.h (print_refined_region): Update declaration.
605 (get_bbs_in_region): Declared.
606 * graphite-scop-detection.c (build_scops_new): Print the refined
607 region tree into the Grahite dump file.
609 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
611 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
612 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
614 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
616 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
617 rewrite_close_phi_out_of_ssa.
619 * gcc.dg/graphite/id-22.c: New.
621 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
623 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
625 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
627 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
629 * sese.c (debug_rename_map): Same.
632 (rename_variables_in_stmt): Same.
633 (expand_scalar_variables_call): Same.
634 (expand_scalar_variables_ssa_name): Same.
635 (expand_scalar_variables_expr): Same.
636 (expand_scalar_variables_stmt): Same.
637 (expand_scalar_variables): Same.
638 (rename_variables): Same.
639 (graphite_copy_stmts_from_block): Same.
640 (copy_bb_and_scalar_dependences): Same.
642 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
644 * graphite-clast-to-gimple.c (copy_renames): Removed.
645 (translate_clast_for): Do not call copy_renames.
646 (translate_clast_guard): Same.
648 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
650 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
651 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
652 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
653 before rewrite_cross_bb_scalar_deps.
655 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
657 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
658 Early return in when flag_associative_math is not set.
660 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
662 * gcc.dg/graphite/run-id-2.c: Call abort.
664 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
666 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
667 of SSA copies on edges except for loop->latch.
669 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
671 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
672 Split out of rewrite_reductions_out_of_ssa.
673 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
675 * graphite.c (graphite_transform_loops): Call it.
677 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
679 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
681 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
683 * passes.c (init_optimization_passes): Add pass_graphite.
684 Schedule a pass_copy_prop before pass_graphite_transforms.
685 * timevar.def (TV_GRAPHITE): Declared.
686 * tree-pass.h (pass_graphite): Declared.
687 * tree-ssa-loop.c (pass_graphite): New.
689 * gcc.dg/graphite/id-20.c: New.
691 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
693 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
694 Remove calls to rename_nb_iterations and rename_sese_parameters.
695 * graphite-clast-to-gimple.h (gloog): Update declaration.
696 * graphite.c (graphite_transform_loops): Update call to gloog.
697 * sese.c (rename_variables_in_expr): Removed.
698 (rename_nb_iterations): Removed.
699 (rename_sese_parameters): Removed.
700 * sese.h (rename_nb_iterations): Removed.
701 (rename_sese_parameters): Removed.
703 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
705 * graphite-clast-to-gimple.c (gloog): Remove call to
706 sese_adjust_liveout_phis.
707 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
708 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
709 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
710 rewrite_phi_out_of_ssa.
711 * sese.c (get_vdef_before_sese): Removed.
712 (sese_adjust_vphi): Removed.
713 (sese_adjust_liveout_phis): Removed.
714 * sese.h (sese_adjust_liveout_phis): Removed.
716 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
718 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
719 argument for the place after which to insert the out of SSA copy.
720 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
721 (rewrite_phi_out_of_ssa): Same.
722 (rewrite_cross_bb_scalar_deps): Same.
723 (insert_copyout): Removed.
724 (insert_copyin): Removed.
725 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
726 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
729 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
731 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
732 (rewrite_reductions_out_of_ssa): Same.
733 (rewrite_commutative_reductions_out_of_ssa): Same.
734 (build_poly_scop): Do not call these functions.
735 * graphite-sese-to-poly.h (build_poly_scop): Declared.
736 (rewrite_reductions_out_of_ssa): Declared.
737 (rewrite_commutative_reductions_out_of_ssa): Declared.
738 * graphite.c (graphite_transform_loops): Call on every scop
739 rewrite_commutative_reductions_out_of_ssa before calling
740 rewrite_reductions_out_of_ssa and build_scop_bbs.
742 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
744 * graphite-dependences.c (dot_deps): Make system call to dotty run
746 (dot_deps_stmt): Same.
747 * graphite-poly.c (dot_lst): Same.
749 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
751 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
752 old_type in parameter.
753 (gcc_type_for_value): Update call to gcc_type_for_interval.
754 (compute_type_for_level_1): Renamed compute_type_for_level.
755 Update call to gcc_type_for_interval.
757 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
759 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
760 the scev analysis when the variable is not used outside the loop
761 in a close phi node: call compute_overall_effect_of_inner_loop.
763 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
765 * graphite-sese-to-poly.c (single_pred_cond): Renamed
766 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
767 (build_sese_conditions_before): Renamed call to single_pred_cond.
768 (build_sese_conditions_after): Same.
770 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
772 * graphite-poly.h: Fix comments and indentation.
773 * graphite-sese-to-poly.c: Same.
774 (build_sese_conditions_before): Compute stmt and gbb only when needed.
775 * tree-chrec.c: Fix comments and indentation.
776 (tree-ssa-loop-niter.c): Same.
778 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de>
780 * refined-regions.c (create_region): Only initialize the region.
781 (find_regions_with_entry): Initialize parent relation and bbmap
783 (build_regions_tree): Set outermost_region to region instead of
785 (calculate_region_tree): Remove unneeded parameters.
787 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de>
789 * graphite-scop-detection.c (is_scop_p): New.
790 (build_scops_new): New. A skeleton for the new scop detection.
791 (build_scops_old): Renamed from build_scops.
792 (build_scops): New version. Call the new and the old scop
795 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de>
796 Antoniu Pop <antoniu.pop@gmail.com>
798 * Makefile.in (OBJS-common): Add refined-regions.o.
799 (refined-regions.o): New.
800 (graphite-scop-detection.o): Use refined-regions.h.
801 * graphite-scop-detection.c: Include refined-regions.h
802 (build_scops): Also build the refined region tree.
803 * refined-regions.c: New. Adds an algorithm to detect refined
805 (print_refined_region): New.
806 (debug_refined_region): New.
807 (refined_region_contains_bb_p): New.
808 (refined_region_contains_region_p): New.
810 (struct find_regions_global_data): New.
812 (typedef struct bb_bb_def): New.
813 (new_bb_bb_def): New.
814 (bb_bb_map_hash): New.
818 (new_bb_reg_def): New.
819 (bb_reg_map_hash): New.
820 (eq_bb_reg_map): New.
821 (find_new_region): New.
822 (insert_new_reg): New.
823 (insert_new_bb): New.
824 (insert_shortcut): New.
825 (get_next_postdom): New.
826 (create_region): New.
827 (find_regions_with_entry): New.
828 (find_regions_adc): New.
830 (get_topmost_parent): New.
831 (build_regions_tree): New.
832 (calculate_region_tree): New.
833 (free_region_tree): New.
834 * refined-regions.h: New.
835 (struct refined_region): New.
836 (calculate_region_tree): New.
837 (free_region_tree): New.
838 (refined_region_contains_bb_p): New.
839 (refined_region_contains_region_p): New.
840 (print_refined_region): New.
841 (debug_refined_region): New.
843 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
845 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
848 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
850 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix
851 type of integer_one_node for fold_build of POINTER_PLUS_EXPR.
853 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
855 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
856 phi_arg_in_outermost_loop.
857 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
858 (remove_invariant_phi): Same.
860 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
862 * graphite-blocking.c
863 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
864 * graphite-clast-to-gimple.c
865 (clast_to_gcc_expression): Same.
866 (precision_for_value): Same.
867 (precision_for_interval): Same.
868 (gcc_type_for_interval): Same.
869 (graphite_create_new_guard): Same.
870 (compute_bounds_for_level): Same.
871 (graphite_create_new_loop_guard): Same.
872 * graphite-interchange.c
873 (build_linearized_memory_access): Same.
874 (pdr_stride_in_loop): Same.
875 (memory_strides_in_loop_1): Same.
876 (memory_strides_in_loop): Same.
877 (extend_scattering): Same.
878 (psct_scattering_dim_for_loop_depth): Same.
879 (pbb_number_of_iterations): Same.
881 (debug_iteration_domains): Same.
883 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
884 (ppl_set_inhomogeneous_gmp): Same.
885 (ppl_strip_loop): Same.
886 (ppl_lexico_compare_linear_expressions): Same.
887 (ppl_read_polyhedron_matrix): Same.
888 (ppl_max_for_le_pointset): Same.
890 (ppl_read_polyhedron_matrix): Same.
891 (tree_int_to_gmp): Same.
892 (gmp_cst_to_tree): Same.
893 (ppl_set_inhomogeneous): Same.
894 (ppl_set_inhomogeneous_tree): Same.
895 (ppl_set_coef): Same.
896 (ppl_set_coef_tree): Same.
897 * graphite-sese-to-poly.c
898 (build_pbb_scattering_polyhedrons): Same.
899 (build_scop_scattering): Same.
900 (scan_tree_for_params_right_scev): Same.
901 (scan_tree_for_params): Same.
902 (find_params_in_bb): Same.
903 (find_scop_parameters): Same.
904 (add_upper_bounds_from_estimated_nit): Same.
905 (build_loop_iteration_domains): Same.
906 (add_condition_to_domain): Same.
907 (pdr_add_memory_accesses): Same.
909 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
911 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
912 CLooG's value_* macros to their respective mpz_* counterparts.
913 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
914 (graphite_create_new_loop_guard): Same.
915 * graphite-interchange.c (build_linearized_memory_access): Same.
916 (pdr_stride_in_loop): Same.
917 (memory_strides_in_loop_1): Same.
918 (1st_interchange_profitable_p): Same.
919 * graphite-poly.c (extend_scattering): Same.
920 (psct_scattering_dim_for_loop_depth): Same.
921 (pbb_number_of_iterations): Same.
922 (pbb_number_of_iterations_at_time): Same.
923 * graphite-poly.h (new_1st_loop): Same.
924 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
925 (oppose_constraint): Same.
926 (insert_constraint_into_matrix): Same.
927 (ppl_set_inhomogeneous_gmp): Same.
928 (ppl_set_coef_gmp): Same.
929 (ppl_strip_loop): Same.
930 (ppl_lexico_compare_linear_expressions): Same.
931 (ppl_max_for_le_pointset): Same.
932 (ppl_min_for_le_pointset): Same.
933 (ppl_build_realtion): Same.
934 * graphite-ppl.h (gmp_cst_to_tree): Same.
935 (ppl_set_inhomogeneous): Same.
936 (ppl_set_inhomogeneous_tree): Same.
937 (ppl_set_coef): Same.
938 (ppl_set_coef_tree): Same.
939 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
940 (build_scop_scattering): Same.
941 (add_value_to_dim): Same.
942 (scan_tree_for_params_right_scev): Same.
943 (scan_tree_for_params_int): Same.
944 (scan_tree_for_params): Same.
945 (find_params_in_bb): Same.
946 (find_scop_parameters): Same.
947 (add_upper_bounds_from_estimated_nit): Same.
948 (build_loop_iteration_domains): Same.
949 (create_linear_expr_from_tree): Same.
950 (add_condition_to_domain): Same.
951 (pdr_add_memory_accesses): Same.
953 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
956 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
957 lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
958 When converting an unsigned type to signed, double its precision.
959 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
960 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
961 (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
963 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
966 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
967 build_nonstandard_integer_type.
968 (gcc_type_for_interval): Same.
970 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
973 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
974 POINTER_PLUS_EXPR for pointer types.
976 * gcc.dg/graphite/id-19.c: New.
978 2010-04-04 Sebastian Pop <sebastian.pop@amd.com>
981 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
982 * graphite-clast-to-gimple.c: Include langhooks.h.
983 (max_signed_precision_type): New.
984 (max_precision_type): Takes two types as arguments.
985 (precision_for_value): New.
986 (precision_for_interval): New.
987 (gcc_type_for_interval): New.
988 (gcc_type_for_value): New.
989 (gcc_type_for_clast_term): New.
990 (gcc_type_for_clast_red): New.
991 (gcc_type_for_clast_bin): New.
992 (gcc_type_for_clast_expr): Split up into several functions.
993 (gcc_type_for_clast_eq): Rewritten.
994 (compute_bounds_for_level): New.
995 (compute_type_for_level_1): New.
996 (compute_type_for_level): New.
997 (gcc_type_for_cloog_iv): Removed.
998 (gcc_type_for_iv_of_clast_loop): Rewritten.
999 (graphite_create_new_loop): Compute the lower and upper bound types
1000 with gcc_type_for_clast_expr.
1001 (graphite_create_new_loop_guard): Same.
1002 (find_cloog_iv_in_expr): Removed.
1003 (compute_cloog_iv_types_1): Removed.
1004 (compute_cloog_iv_types): Removed.
1005 (gloog): Do not call compute_cloog_iv_types.
1006 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
1008 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
1009 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
1010 (GBB_CLOOG_IV_TYPES): Removed.
1012 * gcc.dg/graphite/run-id-pr42644.c: Call abort.
1014 2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
1016 Reverted this commit: as at this point the loop closed SSA form
1017 is under a canonical form respecting the single argument condition.
1018 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1019 close phi nodes may have more than one argument.
1021 2010-04-01 Sebastian Pop <sebastian.pop@amd.com>
1023 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
1024 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
1025 (detect_commutative_reduction): Same.
1027 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
1029 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1030 close phi nodes may have more than one argument.
1032 2010-03-30 Richard Guenther <rguenther@suse.de>
1033 Zdenek Dvorak <ook@ucw.cz>
1034 Sebastian Pop <sebastian.pop@amd.com>
1037 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
1038 with multiple arguments.
1039 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
1041 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1043 * graphite-dependences.c (print_pddr): Call print_pdr with an
1045 * graphite-poly.c (debug_pdr): Add an extra argument for the
1048 (print_pbb_domain): Same.
1050 (print_scop_context): Same.
1052 (print_cloog): Same.
1053 (debug_pbb_domain): Same.
1057 (debug_scop_context): Same.
1059 (debug_cloog): Same.
1060 (print_scop_params): Same.
1061 (debug_scop_params): Same.
1062 (print_iteration_domain): Same.
1063 (print_iteration_domains): Same.
1064 (debug_iteration_domain): Same.
1065 (debug_iteration_domains): Same.
1066 (print_scattering_function): Same.
1067 (print_scattering_functions): Same.
1068 (debug_scattering_function): Same.
1069 (debug_scattering_functions): Same.
1070 * graphite-poly.h (debug_pdr): Update declaration.
1072 (print_pbb_domain): Same.
1074 (print_scop_context): Same.
1076 (print_cloog): Same.
1077 (debug_pbb_domain): Same.
1081 (debug_scop_context): Same.
1083 (debug_cloog): Same.
1084 (print_scop_params): Same.
1085 (debug_scop_params): Same.
1086 (print_iteration_domain): Same.
1087 (print_iteration_domains): Same.
1088 (debug_iteration_domain): Same.
1089 (debug_iteration_domains): Same.
1090 (print_scattering_function): Same.
1091 (print_scattering_functions): Same.
1092 (debug_scattering_function): Same.
1093 (debug_scattering_functions): Same.
1095 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1097 * graphite-poly.c (print_scattering_function_1): New.
1098 (print_scattering_function): Call it.
1099 (print_scop_params): Remove spaces at the end of lines.
1102 * graphite-poly.h (print_cloog): Declared.
1103 (debug_cloog): Declared.
1105 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1107 * tree-ssa-copy.c: Revert this previous change:
1108 (init_copy_prop): Loop closed phi nodes cancontain more than one
1110 (execute_copy_prop): Revert the previous change: do not call
1111 rewrite_into_loop_closed_ssa.
1113 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1114 Richard Guenther <rguenther@suse.de>
1117 * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can
1118 contain more than one argument.
1119 (execute_copy_prop): Revert the previous change: do not call
1120 rewrite_into_loop_closed_ssa.
1122 * gcc.dg/graphite/id-pr43464.c: Remove compile warning.
1123 * gcc.dg/graphite/id-pr43464-1.c: New.
1125 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1128 * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa
1129 and verify_loop_closed_ssa when copy prop is executed in the LNO.
1131 * gcc.dg/graphite/id-pr43464.c: New.
1133 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1135 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
1137 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
1138 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
1139 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
1140 to switch between adding the IV bump in loop->latch or in loop->header.
1142 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1144 * passes.c (init_optimization_passes): Add pass_copy_prop
1147 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1149 * graphite-poly.c (print_scattering_function): Pretty print following
1152 (print_pbb_domain): Same.
1153 (dump_gbb_cases): Same.
1154 (dump_gbb_conditions): Same.
1157 (print_scop_params): Same.
1158 (print_scop_context): Same.
1160 (print_pbb_body): New.
1161 (lst_indent_to): New.
1162 (print_lst): Start new lines with a #.
1163 * graphite-poly.h (pbb_bb): New.
1164 (pbb_index): Use pbb_bb.
1165 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
1167 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
1169 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1172 * gcc.dg/graphite/id-pr43351.c
1174 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1177 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
1178 call insert_out_of_ssa_copy for default definitions.
1179 * gfortran.dg/graphite/id-pr43354.f: New.
1181 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1184 * gfortran.dg/graphite/pr43349.f: New.
1186 2010-03-11 Sebastian Pop <sebastian.pop@amd.com>
1188 * graphite-clast-to-gimple.c (my_long_long): Defined.
1189 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
1190 * graphite-sese-to-poly.c (my_long_long): Defined.
1191 (scop_ivs_can_be_represented): Use it.
1193 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1195 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
1196 graphite-max-bbs-per-function, and loop-block-tile-size.
1197 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
1199 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
1201 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1203 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
1204 forward declaration.
1205 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
1206 (add_upper_bounds_from_estimated_nit): New.
1207 (build_loop_iteration_domains): Use it.
1209 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1211 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
1213 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1216 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
1217 should be an INTEGER_CST. Also handle CASE_CONVERT.
1218 * gcc.dg/graphite/pr43306.c: New.
1220 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1222 * graphite.c (graphite_initialize): To bound the number of bbs per
1223 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
1224 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
1225 * doc/invoke.texi: Document it.
1227 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1229 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
1230 * graphite-sese-to-poly.h (build_poly_scop): Same.
1232 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1234 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
1235 the number of parameters in the scop. Use as an upper bound
1236 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
1237 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
1238 * doc/invoke.texi: Document it.
1240 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1242 * graphite-sese-to-poly.c (add_param_constraints): Use
1243 lower_bound_in_type and upper_bound_in_type.
1245 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1247 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
1248 instead of unsigned_type_node.
1250 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1251 Reza Yazdani <reza.yazdani@amd.com>
1254 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
1255 on pointer type parameters.
1257 * gcc.dg/graphite/run-id-4.c: New.
1259 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1262 * gcc.dg/graphite/run-id-3.c: New.
1264 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
1265 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1267 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
1268 handle conversions from pointer to integers.
1269 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
1270 induction variable, to be able to work with code generated by CLooG.
1271 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
1272 (build_poly_scop): Bail out if we cannot codegen a loop.
1274 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1276 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
1277 code generation with gloog_error.
1279 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1281 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
1282 Call fold_convert on all the returned values.
1283 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
1284 the type of the resulting expression.
1286 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1288 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
1289 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
1290 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
1292 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1294 * graphite-dependences.c (map_into_dep_poly): Removed.
1295 (dependence_polyhedron_1): Use combine_context_id_scat.
1297 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1299 * graphite-poly.h (struct poly_scattering): Add layout documentation.
1300 (struct poly_bb): Same.
1301 (combine_context_id_scat): New.
1303 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
1306 * sese.c (name_defined_in_loop_p): Return false for default
1309 * gcc.dg/graphite/pr42326.c: New.
1311 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1313 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
1314 and clean up the logic.
1316 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1318 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
1321 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1324 * graphite-scop-detection.c (create_single_exit_edge): Move
1325 the call to find_single_exit_edge to....
1326 (create_sese_edges): ...here. Don't handle multiple edges
1327 exiting the function.
1328 (build_graphite_scops): Don't handle multiple edges
1329 exiting the function.
1331 * gcc.dg/graphite/pr43083.c: New.
1333 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1336 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
1337 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
1339 * gfortran.dg/graphite/pr43097.f: New.
1341 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1342 Manuel López-Ibáñez <manu@gcc.gnu.org>
1345 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
1347 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1350 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
1352 * g++.dg/graphite/pr43026.C: New.
1354 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
1356 * Merge from mainline (154736:156693).
1358 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
1361 * gcc.dg/graphite/pr43012.c: New.
1363 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1365 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
1366 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1368 * g++.dg/graphite/pr42930.C: New.
1370 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1373 * graphite-scop-detection.c (graphite_can_represent_scev): Call
1374 graphite_can_represent_init for MULT_EXPR.
1376 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1380 * graphite-sese-to-poly.c (remove_phi): New.
1381 (translate_scalar_reduction_to_array): Call remove_phi.
1383 * gcc.dg/graphite/pr42530.c: New.
1384 * gcc.dg/graphite/pr42914.c: New.
1386 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1389 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
1390 * graphite-clast-to-gimple.h (gloog): Update declaration.
1391 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
1392 * graphite-poly.h (struct poly_bb): Add missing comments.
1393 (struct scop): Add poly_scop_p field.
1395 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
1396 * graphite.c (graphite_transform_loops): Build the polyhedral
1397 representation for each scop before code generation.
1398 * sese.c (rename_variables_in_operand): Removed.
1399 (rename_variables_in_expr): Return the renamed expression.
1400 (rename_sese_parameters): New.
1401 * sese.h (rename_sese_parameters): Declared.
1403 * gcc.dg/graphite/pr42771.c: New.
1405 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1407 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
1409 * gcc.dg/graphite/block-1.c: Same.
1410 * gcc.dg/graphite/block-3.c: Same.
1411 * gcc.dg/graphite/block-4.c: Same.
1412 * gcc.dg/graphite/block-5.c: Same.
1413 * gcc.dg/graphite/block-6.c: Same.
1414 * gcc.dg/graphite/block-7.c: Same.
1415 * gcc.dg/graphite/interchange-0.c: Same.
1416 * gcc.dg/graphite/interchange-1.c: Same.
1417 * gcc.dg/graphite/interchange-10.c: Same.
1418 * gcc.dg/graphite/interchange-11.c: Same.
1419 * gcc.dg/graphite/interchange-12.c: Same.
1420 * gcc.dg/graphite/interchange-2.c: Same.
1421 * gcc.dg/graphite/interchange-3.c: Same.
1422 * gcc.dg/graphite/interchange-4.c: Same.
1423 * gcc.dg/graphite/interchange-5.c: Same.
1424 * gcc.dg/graphite/interchange-6.c: Same.
1425 * gcc.dg/graphite/interchange-7.c: Same.
1426 * gcc.dg/graphite/interchange-8.c: Same.
1427 * gcc.dg/graphite/interchange-9.c: Same.
1428 * gcc.dg/graphite/interchange-mvt.c: Same.
1430 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1432 * gfortran.dg/graphite/id-19.f: New.
1433 * gfortran.dg/graphite/pr14741.f90: New.
1434 * gfortran.dg/graphite/pr41924.f90: New.
1435 * gfortran.dg/graphite/run-id-2.f90: New.
1437 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1440 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
1441 to unknown_dependence.
1442 (graphite_legal_transform_dr): Handle the unknown_dependence.
1443 (graphite_carried_dependence_level_k): Same.
1445 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1447 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
1449 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
1450 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1453 * graphite-dependences.c (build_lexicographical_constraint): Return
1454 a union of dependence polyhedra.
1455 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
1457 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
1458 * gcc.dg/graphite/block-4.c: Same.
1459 * gcc.dg/graphite/block-7.c: Same.
1460 * gcc.dg/graphite/interchange-12.c: Same.
1461 * gcc.dg/graphite/interchange-mvt.c: Same.
1462 * gfortran.dg/graphite/interchange-1.f: XFAILed.
1463 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
1464 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
1466 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1468 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
1469 the execution check to FAIL. This testcase is miscompiled by Graphite
1470 and the check should be re-enabled.
1471 * gcc.dg/graphite/interchange-mvt.c: Same.
1472 * gcc.dg/graphite/block-0.c: Same.
1473 * gcc.dg/graphite/block-4.c: Same.
1474 * gcc.dg/graphite/block-7.c: Same.
1476 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1478 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
1479 * gcc.dg/graphite/scop-0.c: Fix spaces.
1480 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
1481 * gfortran.dg/graphite/block-2.f: Same.
1482 * gfortran.dg/graphite/block-3.f90: Same.
1483 * gfortran.dg/graphite/block-4.f90: Same.
1484 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
1485 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
1487 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1489 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
1490 PDDR_ORIGINAL_SCATTERING_P.
1491 (pddr_is_empty): Rewritten.
1492 (print_dependence_polyhedron_layout): New.
1495 (build_alias_set_powerset): Moved up.
1496 (poly_drs_may_alias_p): Moved up.
1497 (lexicographically_gt_p): Removed.
1498 (build_lexicographically_gt_constraint): Renamed
1499 build_lexicographical_constraint, reimplemented.
1500 (dependence_polyhedron_1): Simplified parameters.
1501 (dependence_polyhedron): Same. Keep along empty PDDRs
1502 to make efficient use of the cache.
1503 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
1504 (graphite_legal_transform_dr): Rewritten.
1505 (graphite_legal_transform_bb): Pass fewer arguments to
1506 graphite_legal_transform_dr.
1507 (graphite_carried_dependence_level_k): Simplified implementation.
1508 (dot_original_deps_stmt_1): Call dependence_polyhedron.
1509 (dot_transformed_deps_stmt_1): Same.
1510 (dot_original_deps): Same.
1511 (dot_transformed_deps): Same.
1512 * graphite-dependences.h (struct poly_ddr): Added a new field
1513 original_scattering_p.
1514 (PDDR_ORIGINAL_SCATTERING_P): New.
1515 (print_pddr): Declared.
1516 (debug_pddr): Declared.
1517 * graphite-ppl.c: Clarify comment.
1518 * sese.h (print_gimple_bb): Removed unused declaration.
1521 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1523 * g++.dg/graphite/graphite.exp: Rewritten.
1524 * gcc.dg/graphite/graphite.exp: Rewritten.
1525 * gfortran.dg/graphite/graphite.exp: Rewritten.
1526 * gcc.dg/graphite/block-0.c: Added runtime test.
1527 * gcc.dg/graphite/block-1.c: Same.
1528 * gcc.dg/graphite/block-3.c: Same.
1529 * gcc.dg/graphite/block-4.c: Same.
1530 * gcc.dg/graphite/block-5.c: Same.
1531 * gcc.dg/graphite/block-6.c: Same.
1532 * gcc.dg/graphite/block-7.c: Same.
1533 * gcc.dg/graphite/interchange-0.c: Same.
1534 * gcc.dg/graphite/interchange-1.c: Same.
1535 * gcc.dg/graphite/interchange-10.c: Same.
1536 * gcc.dg/graphite/interchange-11.c: Same.
1537 * gcc.dg/graphite/interchange-12.c: Same.
1538 * gcc.dg/graphite/interchange-2.c: Same.
1539 * gcc.dg/graphite/interchange-3.c: Same.
1540 * gcc.dg/graphite/interchange-4.c: Same.
1541 * gcc.dg/graphite/interchange-5.c: Same.
1542 * gcc.dg/graphite/interchange-6.c: Same.
1543 * gcc.dg/graphite/interchange-7.c: Same.
1544 * gcc.dg/graphite/interchange-8.c: Same.
1545 * gcc.dg/graphite/interchange-9.c: Same.
1546 * gcc.dg/graphite/interchange-mvt.c: Same.
1547 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
1549 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1551 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
1554 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1556 * common.opt: Add -fgraphite-cloog-opts.
1557 * graphite-clast-to-gimple.c (set_cloog_options): Same.
1558 * opts.c (decode_options): Same.
1560 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1562 * gcc.dg/graphite/id-17.c: New.
1563 * gcc.dg/graphite/pr41888.c: New.
1564 * gcc.dg/graphite/scop-22.c: New.
1565 * gfortran.dg/graphite/pr40982.f90: New.
1567 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1569 * graphite-dependences.c: Clarify comments.
1570 (build_pddr): Add an extra parameter direction.
1571 (graphite_legal_transform_dr): Use build_pddr.
1572 (dot_original_deps_stmt_1): Update use of build_pddr.
1573 (dot_transformed_deps_stmt_1): Same.
1574 (dot_original_deps): Same.
1575 (dot_transformed_deps): Same.
1577 * gcc.dg/graphite/interchange-12.c: New.
1578 * gcc.dg/graphite/block-7.c: New.
1580 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1582 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
1583 (pddr_transformed_scattering): Removed.
1584 (graphite_legal_transform_dr): Use build_pddr.
1585 (dot_original_deps_stmt_1): Same.
1586 (dot_transformed_deps_stmt_1): Same.
1587 (dot_original_deps): Same.
1588 (dot_transformed_deps): Same.
1590 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1592 * graphite-dependences.c (lexicographically_gt_p): Add comments.
1593 (build_lexicographically_gt_constraint): Same.
1594 (dependence_polyhedron_1): Same.
1595 (dependence_polyhedron): Same.
1597 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1599 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
1600 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
1601 (lexicographically_gt_p): Change type of direction to int.
1602 (build_lexicographically_gt_constraint): Same.
1603 (dependence_polyhedron_1): Same.
1604 (dependence_polyhedron): Same.
1605 (pddr_original_scattering): Use integers for direction.
1606 (pddr_transformed_scattering): Same.
1607 (graphite_legal_transform_dr): Same.
1608 (graphite_carried_dependence_level_k): Same.
1610 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1612 * graphite-dependences.c (build_pairwise_constraint): Renamed
1613 ppl_build_relation. Moved...
1614 (dr_equality_constraints): Use ppl_build_relation.
1615 (build_pairwise_scheduling_equality): Same.
1616 (build_pairwise_scheduling_inequality): Same.
1617 * graphite-ppl.c (ppl_build_relation): ...here.
1618 * graphite-ppl.h (ppl_build_relation): Declared.
1620 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
1623 * graphite-clast-to-gimple.c (gloog_error): New static variable.
1624 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
1625 Set gloog_error when such an expression failed to be built.
1626 (translate_clast): Early return when gloog_error is set.
1627 (gloog): Clear gloog_error. When gloog_error is set, call
1628 set_ifsese_condition to enable the original code. Return the status
1629 of the code generation based on gloog_error.
1630 * sese.c (set_ifsese_condition): New.
1631 * sese.h (set_ifsese_condition): Declared.
1633 * g++.dg/graphite/pr42681.C: New.
1635 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
1638 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
1639 rename_nb_iterations.
1640 * sese.c (rename_variables_in_operand): New.
1641 (rename_variables_in_expr): New.
1642 (rename_nb_iterations): New.
1643 (sese_adjust_liveout_phis): Update the rename_map.
1644 * sese.h (rename_nb_iterations): Declared.
1645 * tree-scalar-evolution.c (scev_reset_htab): New.
1646 (scev_reset): Call scev_reset_htab.
1647 * tree-scalar-evolution.h (scev_reset_htab): Declared.
1649 * gfortran.dg/graphite/pr42732.f: New.
1651 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
1654 * graphite-clast-to-gimple.c: Fix formatting.
1655 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
1656 (expr_defined_in_loop_p): New.
1657 (add_loop_exit_phis): Also handle full expressions: remove from
1658 the rename_map the expressions defined in the loop that we're closing.
1660 * gfortran.dg/graphite/pr42393-1.f90: New.
1661 * gfortran.dg/graphite/pr42393.f90: Add new flags
1662 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
1663 make this testcase useful in the Graphite branch.
1665 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
1667 * graphite-scop-detection.c (exclude_component_ref): Removed.
1668 (is_simple_operand): Removed.
1669 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
1671 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1674 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
1675 the array indexing of ADDR_EXPRs.
1677 * gcc.dg/graphite/pr42221.c: New.
1679 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1682 * graphite.c (graphite_finalize): Call scev_reset.
1683 (graphite_transform_loops): Do not call scev_reset between the code
1684 generation of scops.
1686 * gcc.dg/graphite/pr42521.c: New.
1688 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1690 * graphite-interchange.c (memory_stride_in_loop): Renamed
1692 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
1693 (memory_strides_in_loop): Memoize the memory strides per loop.
1694 (lst_interchange_profitable_p): Do not initialize to zero the memory
1696 * graphite-poly.h (struct lst): Add a field memory_strides.
1697 (LST_LOOP_MEMORY_STRIDES): New.
1698 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
1699 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
1701 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1703 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
1704 memory_strides_in_loop. Gather memory strides on a whole loop.
1705 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
1706 (lst_interchange_profitable_p): Removed.
1707 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
1709 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1711 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1712 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
1713 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
1714 Remove context_loop and level.
1716 2010-01-07 Richard Guenther <rguenther@suse.de>
1718 PR tree-optimization/42641
1719 * sese.c (rename_map_elt_info): Use the SSA name version, do
1722 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
1724 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
1725 blocked" only when both the strip mine and the interchange have
1728 * gcc.dg/graphite/block-2.c: Removed.
1729 * gcc.dg/graphite/block-3.c: Add scan pattern.
1730 * gcc.dg/graphite/block-4.c: Same.
1731 * gcc.dg/graphite/block-5.c: Same.
1732 * gcc.dg/graphite/block-6.c: Same.
1734 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
1736 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
1737 before allocating a new one.
1738 (copy_renames): Check that slot is not NULL.
1739 (mark_bb_with_pbb): Same.
1740 (compute_cloog_iv_types_1): Same.
1741 * graphite-interchange.c (lst_perfect_nestify): Free the before,
1742 nest, and after LSTs.
1743 (lst_try_interchange_loops): Same.
1745 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
1748 * graphite-interchange.c (lst_try_interchange_loops): Do not return
1749 the before, nest, and after LSTs.
1750 (lst_try_interchange): Removed.
1751 (lst_interchange_select_inner): Do not iterate over the LSTs if they
1753 (lst_interchange_select_outer): Apply interchange on the outer loop
1754 until there are no more changes in the inner loops.
1756 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1758 Revert patch fixing PR middle-end/42221.
1760 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1763 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
1766 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
1768 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1771 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
1772 that contain only one statement.
1774 * gfortran.dg/graphite/pr42180.f90: New.
1776 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1779 * gfortran.dg/graphite/pr42393.f90: New.
1781 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1784 * gfortran.dg/graphite/pr42186.f90: New.
1786 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1789 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
1790 Insert the reduction copy in the same block as the phi node.
1791 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
1793 * gcc.dg/graphite/pr42205-1.c: New.
1794 * gcc.dg/graphite/pr42205-2.c: New.
1796 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1799 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
1800 the array indexing of ADDR_EXPRs.
1802 * gcc.dg/graphite/pr42221.c: New.
1804 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1808 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
1809 index. Call lst_interchange_select_inner only once.
1810 (lst_interchange_select_inner): Update use of lst_try_interchange.
1811 (lst_interchange_select_outer): Update.
1813 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
1817 * graphite-interchange.c (lst_try_interchange): Do not increment the
1818 the OUTER index when there is no AFTER kernel. Do not increment the
1819 OUTER index for after processing the AFTER kernel.
1820 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
1821 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
1822 index. Do not pass to lst_interchange_select_inner the OUTER index.
1823 (scop_do_interchange): Update use of lst_interchange_select_outer.
1825 * gfortran.dg/graphite/graphite.exp
1826 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
1827 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
1828 the graphite dump file.
1829 * gfortran.dg/graphite/interchange-2.f: Same.
1830 * gfortran.dg/graphite/pr42334-1.f: New.
1832 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
1836 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
1838 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
1839 (lst_try_interchange): Reimplemented.
1840 (lst_interchange_select_inner): Same.
1841 (lst_do_interchange): Renamed lst_interchange_select_outer.
1843 (scop_do_interchange): Update use of lst_interchange_select_outer.
1845 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
1846 * gcc.dg/graphite/block-0.c: Un-XFAILed.
1847 * gcc.dg/graphite/pr42211.c: New.
1848 * gfortran.dg/graphite/pr42334.f90: New.
1850 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
1853 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
1854 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
1856 * gfortran.dg/graphite/pr42181.f90: New.
1858 2009-12-12 Sebastian Pop <sebpop@gmail.com>
1861 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
1862 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
1863 (detect_commutative_reduction_arg): Simplified.
1864 (detect_commutative_reduction): Early return when the argument of
1865 the close phi is not of an SSA_NAME.
1867 * gcc.dg/graphite/pr42284.c: New.
1869 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
1871 * dbgcnt.def (graphite_scop): New counter.
1872 * graphite.c: Include dbgcnt.h
1873 (graphite_transform_loops): Use new counter to limit transformations.
1875 2009-12-08 Sebastian Pop <sebpop@gmail.com>
1878 * graphite-scop-detection.c (graphite_can_represent_init): Also
1879 handle more complex MULT_EXPRs containing parameters by recursion
1882 * gfortran.dg/graphite/pr42285.f90: New.
1884 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
1886 * g++.dg/graphite/pr42130.C: Fix type.
1888 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
1890 * g++.dg/graphite/pr42130.C: Correct testcase.
1892 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
1894 * Merge from mainline (154493:154734).
1896 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
1898 * Merge from mainline (151362:154491).
1900 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
1902 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
1903 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
1905 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1908 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
1909 translate_clast_for_loop): New.
1910 (translate_clast_for): Add a condition around the loop, to do not
1911 execute loops with zero iterations.
1912 * g++.dg/graphite/pr42130.C: New.
1913 * gcc.dg/graphite/pr35356-2.c: Adapt.
1915 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1917 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
1918 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
1919 Remove context_loop and level.
1921 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1923 * graphite-clast-to-gimple.c (translate_clast_user,
1924 translate_clast_for, translate_clast_guard): Simplify and move common
1925 elements to translate_clast().
1926 (translate_clast): Simplify and get common elements.
1928 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1930 * graphite-clast-to-gimple.c (translate_clast_user,
1931 translate_clast_for, translate_clast_guard): Split out of
1934 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
1936 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
1937 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
1938 debug_clast_name_indexes_1, debug_clast_name_indexes,
1939 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
1940 (clast_name_to_gcc, clast_to_gcc_expression,
1941 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
1942 gcc_type_for_clast_eq, graphite_translate_clast_equation,
1943 graphite_create_guard_cond_expr, graphite_create_new_loop,
1944 translate_clast): Add params_index.
1945 (initialize_cloog_names): Create parameter strings from scratch, do
1946 not reference other strings.
1947 (create_params_index): New.
1948 (gloog): Initialize params_index.
1949 * graphite-scop-detection (free_scops_1): Removed.
1950 (limit_scops): Use normal free_scops.
1951 * graphite-sese-to-poly.c (save_var_names): Removed.
1952 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
1953 and SESE_PARAMS_INDEX.
1954 * sese.c (new_sese, free_sese): Dito.
1955 * sese.h (struct sese): Remove params_index, params_names.
1956 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
1958 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
1960 Revert the following patch from 2009-09-14:
1961 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1962 tree-scalar-evolution.h, and then tree-data-ref.h.
1963 * graphite-clast-to-gimple.c: Same.
1964 * graphite-dependences.c: Same.
1965 * graphite-interchange.c: Same.
1966 * graphite-poly.c: Same.
1967 * graphite-scop-detection.c: Same.
1968 * graphite-sese-to-poly.c: Same.
1970 * lambda-code.c: Same.
1971 * matrix-reorg.c: Same.
1972 * tree-data-ref.c: Same.
1973 * tree-if-conv.c: Same.
1974 * tree-loop-distribu: Same.: Same.
1975 * tree-loop-linear.c: Same.
1976 * tree-parloops.c: Same.
1977 * tree-predcom.c: Same.
1978 * tree-vect-patterns.c: Same.
1980 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
1982 Revert patch from 2009-09-14.
1983 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
1984 passes at -O1 and below.
1986 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1989 * gcc.dg/graphite/pr40281.c: New.
1991 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
1992 evolutions should not variate in inner loops.
1994 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1997 * gfortran.dg/graphite/pr42050.f90: New.
1999 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2001 * graphite-interchange.c (memory_strides_in_loop_depth): New.
2002 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
2004 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2006 * graphite-blocking.c (scop_do_block): New.
2007 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
2008 * graphite-poly.h (scop_do_block): Declared.
2010 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2012 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
2013 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
2014 to transform depth into the time_depth before calling
2015 pbb_number_of_iterations_at_time.
2016 (lst_do_strip_mine): Use a scalar variable instead of recomputing
2019 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2021 Reverted the patch for "scattering permutations" from 2009-10-28.
2023 * graphite-poly.c (print_permutation): New.
2024 (debug_permutation): New.
2025 (new_poly_bb): Initialize PBB_PERMUTATION.
2026 (free_poly_bb): Free PBB_PERMUTATION.
2027 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2028 (struct pbb_permutation_elt): New.
2029 (PBB_PERMUTATION_ELT_STRIDE): New.
2030 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2031 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2032 (new_pbb_permutation_elt): New.
2033 (pbb_permutation_elt_free): New.
2034 (struct poly_bb): Add field permutation.
2035 (PBB_PERMUTATION): New.
2036 (print_permutation): Declared.
2037 (debug_permutation): Declared.
2039 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2041 * graphite-interchange.c (build_partial_difference): New.
2042 (memory_stride_in_loop): Refactored the computation of
2043 equality constraints into build_partial_difference function.
2044 Added support for debugging stride computations.
2046 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2048 * graphite-clast-to-gimple.c (gloog): Free if_region,
2049 if_region->true_region, and if_region->region.
2050 * sese.c (if_region_set_false_region): Free if_region->false_region.
2051 (create_if_region_on_edge): Do not use GGC_NEW.
2052 (move_sese_in_condition): Remove useless initialization.
2054 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2056 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
2057 for the loops created by the loop distribution. Do not modify the
2059 (lst_try_interchange_loops): Same. Use a temporary LST for the
2060 transformed schedule. Call lst_update_scattering before data
2061 dependence analysis.
2062 (lst_try_interchange): Pass an extra parameter INDEX.
2063 (lst_do_interchange_1): New.
2064 (lst_do_interchange): Call lst_do_interchange_1.
2065 (scop_do_interchange): Call lst_update_scattering.
2066 * graphite-poly.c (apply_poly_transforms): Do not call
2067 lst_update_scattering.
2068 * graphite-poly.h (lst_pred): New.
2070 (lst_find_first_pbb): Return NULL when not found.
2072 (lst_insert_in_sequence): Allow LST1 to be NULL.
2074 (lst_substitute_3): New.
2075 * gcc.dg/graphite/interchange-1.c: XFail.
2076 * gcc.dg/graphite/interchange-8.c: XFail.
2077 * gcc.dg/graphite/interchange-11.c: XFail.
2079 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2081 * graphite-interchange.c (lst_perfectly_nested_p): New.
2082 (lst_perfect_nestify): New.
2083 (lst_try_interchange_loops): Call store_lst_schedule,
2084 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
2085 (scop_do_interchange): Avoid redundant legality test.
2086 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
2087 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
2088 * graphite-poly.h (psct_static_dim): New.
2089 (lst_dewey_number_at_depth): New.
2090 (lst_find_pbb): Restructured.
2091 (lst_find_first_pbb): Restructured.
2092 (lst_find_last_pbb): New.
2093 (lst_contains_p): New.
2094 (lst_contains_pbb): New.
2095 (lst_create_nest): New.
2096 (lst_remove_from_sequence): New.
2097 (pbb_update_scattering): New.
2098 (lst_update_scattering_under): New.
2099 (lst_update_scattering_seq): New.
2100 (lst_update_scattering): New.
2101 (lst_insert_in_sequence): New.
2102 (lst_distribute_lst): New.
2103 (lst_remove_all_before_including_pbb): New.
2104 (lst_remove_all_before_excluding_pbb): New.
2106 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2108 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
2109 get_loop_exit_edges.
2111 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2113 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
2115 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2117 * graphite-poly.c (print_permutation): New.
2118 (debug_permutation): New.
2119 (new_poly_bb): Initialize PBB_PERMUTATION.
2120 (free_poly_bb): Free PBB_PERMUTATION.
2121 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2122 (struct pbb_permutation_elt): New.
2123 (PBB_PERMUTATION_ELT_STRIDE): New.
2124 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2125 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2126 (new_pbb_permutation_elt): New.
2127 (pbb_permutation_elt_free): New.
2128 (struct poly_bb): Add field permutation.
2129 (PBB_PERMUTATION): New.
2130 (print_permutation): Declared.
2131 (debug_permutation): Declared.
2133 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2135 * graphite-clast-to-gimple.c (gloog): Do not call
2136 sese_reset_aux_in_loops.
2137 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
2138 extra argument for domains. Do not use loop->aux.
2139 (build_scop_iteration_domain): Initialize and free domains, pass it
2140 to build_loop_iteration_domains and extract the information from
2141 domains. Do not use loop->aux.
2142 * sese.c (sese_reset_aux_in_loops): Removed.
2143 * sese.h (sese_reset_aux_in_loops): Removed.
2145 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2147 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
2148 (dependency_in_loop_p): Same.
2149 (translate_clast): Do not use loop->aux. Initialize
2150 loop->can_be_parallel.
2151 (mark_loops_parallel): Removed.
2152 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
2153 * graphite.c (free_aux_in_new_loops): Removed.
2154 (graphite_finalize): Do not call free_aux_in_new_loops.
2155 (graphite_transform_loops): Do not call mark_loops_parallel.
2157 2009-10-26 Li Feng <nemokingdom@gmail.com>
2159 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
2160 (translate_clast): Pass an extra parameter LEVEL.
2161 Call get_scattering_level.
2162 * graphite-clast-to-gimple.h (get_scattering_level): New.
2164 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2166 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
2167 * cfgloop.h (struct loop): New field single_iv.
2169 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
2170 loop->aux anymore: use loop->single_iv.
2171 (graphite_loop_normal_form): Moved...
2172 (build_graphite_loop_normal_form): Removed.
2173 (gloog): Do not call build_graphite_loop_normal_form.
2174 (free_aux_in_new_loops): Moved...
2175 (mark_loops_parallel): Restructure.
2176 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
2177 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
2178 (scop_canonicalize_loops): New.
2179 (build_poly_scop): Call scop_canonicalize_loops.
2180 * graphite.c (free_aux_in_new_loops): ...here.
2182 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2184 * g++.dg/graphite/graphite.exp: Add the same rules as in
2185 gcc.dg/graphite/graphite.exp.
2187 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2189 * g++.dg/graphite/id-1.C: New.
2191 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2193 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
2195 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
2196 (rewrite_phi_out_of_ssa): Same.
2197 (rewrite_cross_bb_scalar_deps): Same.
2198 (translate_scalar_reduction_to_array): Same.
2200 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2202 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
2205 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2207 * graphite-sese-to-poly.c (dump_alias_graphs): New.
2208 (build_scop_drs): Call dump_alias_graphs.
2210 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2212 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
2213 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2214 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
2215 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2216 * graphite-poly.h (free_lst): New.
2217 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
2218 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
2220 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2222 * graphite-poly.h (struct scop): Add a field saved_schedule.
2223 (SCOP_SAVED_SCHEDULE): New.
2224 (store_lst_schedule): New.
2225 (restore_lst_schedule): New.
2226 (store_scattering): Call store_lst_schedule.
2227 (restore_scattering): Call restore_lst_schedule.
2229 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2231 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
2232 (pdr_add_alias_set): Same.
2233 (build_poly_dr): Same.
2234 (build_alias_set_optimal_p): Same.
2235 (build_base_obj_set_for_drs): Same. Do not store the result of
2238 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2240 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
2241 all_components_are_cliques to 1.
2243 2009-10-20 Li Feng <nemokingdom@gmail.com>
2245 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
2247 (pdr_add_alias_set): Update retrieving alias_set_num.
2248 (build_poly_dr): Update retrieving dr_base_object_set.
2249 (partition_drs_to_sets): Remove.
2250 (build_alias_set_optimal_p): New.
2251 (build_alias_set_for_drs): Rename.
2252 (build_scop_drs): Update.
2253 * graphite-sese-to-poly.h (struct base_alias_pair): New.
2254 (ALIAS_SET_INDEX): Remove.
2255 (BASE_OBJECT_SET_INDEX): Remove.
2257 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2259 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
2261 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2263 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
2264 loop upper bounds for 1-element arrays at end of structures.
2265 * tree-flow.h (array_at_struct_end_p): Declared.
2266 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
2268 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2270 * g++.dg/graphite/pr41305.C: New.
2272 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
2274 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
2275 construction of parameter constraints from loop iteration analysis.
2276 * gcc.dg/graphite/run-id-2.c: New test.
2278 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2280 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
2283 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2285 * graphite-dependences.c (dependence_polyhedron_1): Remove
2286 unused gdim dimensions from the DDR polyhedron.
2288 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2290 * graphite-dependences.c (pddr_transformed_scattering): New.
2291 (dot_original_deps_stmt_1): New.
2292 (dot_transformed_deps_stmt_1): New.
2293 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
2294 dot_transformed_deps_stmt_1.
2295 (dot_original_deps): New.
2296 (dot_transformed_deps): New.
2297 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
2299 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2301 * graphite-dependences.c (reduction_dr_1): Remove wrong
2302 assert: reduction BBs can have multiple reduction writes
2303 to memory. interchange-3.f90 is an example.
2305 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2307 * gfortran.dg/graphite/interchange-3.f90: New.
2309 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2311 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
2313 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2315 * graphite-dependences.c (dependence_polyhedron_1): Add the
2316 context to the dependence polyhedron.
2318 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2320 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
2321 PBB_PDR_DUPLICATES_REMOVED.
2322 (new_poly_bb): Same.
2324 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2326 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
2328 (build_loop_iteration_domains): Extract bounds on parameters
2329 based on the data size.
2330 (build_scop_context): Do not initialize SCOP_CONTEXT;
2331 add new constraints.
2333 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2335 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
2336 * graphite-ppl.h (graphite-ppl.h): Declared.
2338 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2340 * graphite-ppl.c (ppl_print_linear_expr): New.
2341 (debug_ppl_linear_expr): New.
2342 * graphite-ppl.h (ppl_print_linear_expr): Declared.
2343 (debug_ppl_linear_expr): Declared.
2345 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2347 * graphite-interchange.c: Fix comments.
2348 * gcc.dg/graphite/block-1.c: Fix comments.
2350 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2352 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
2353 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
2355 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2357 Reapply the patch from Alexander Monakov that disappeared during
2358 the last merges from trunk.
2360 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
2362 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2363 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2365 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2367 * graphite-interchange.c (memory_stride_in_loop): The depth
2368 argument corresponds to a dynamic time dimension, so use
2369 psct_dynamic_dim to refer to the transformed scattering dimension.
2371 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2373 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
2375 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2377 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
2379 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
2380 the root of the LST.
2381 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
2383 (print_lst): Print the root of LST in a different format.
2384 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
2386 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2388 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
2390 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2392 * doc/passes.texi: Document the Graphite infrastructure.
2394 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2396 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
2397 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
2398 and check the SSA representation.
2400 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
2402 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2404 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
2406 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2408 * gcc.dg/graphite/interchange-11.c: New.
2410 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2412 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
2414 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2416 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2417 Add -fno-loop-strip-mine and -fno-loop-interchange.
2418 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
2419 -fno-loop-strip-mine.
2420 * gfortran.dg/graphite/graphite.exp: Same.
2422 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2424 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2425 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
2426 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
2427 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
2428 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
2429 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
2430 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
2431 DEFAULT_FLAGS_GRAPHITE_SCOP.
2432 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
2433 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
2435 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2437 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
2439 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2440 Sebastian Pop <sebastian.pop@amd.com>
2442 * graphite-interchange.c (build_linearized_memory_access): Pass an
2443 offset as parameter.
2444 (memory_stride_in_loop): Include transform scattering in the
2445 access functions to be able to querry the strides in the
2447 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
2448 not the psct_iterator_dim.
2450 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2452 * graphite-blocking.c (pbb_do_strip_mine): Removed.
2453 (lst_do_strip_mine_loop): New.
2454 (lst_do_strip_mine): New.
2455 (scop_do_strip_mine): Call lst_do_strip_mine.
2456 * graphite-poly.h (lst_add_loop_under_loop): New.
2457 (lst_find_first_pbb): New.
2459 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2461 * graphite-poly.c (loop_to_lst): Fix LST creation.
2463 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2465 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
2466 sizeof(unsigned long) to make it run on 32bit systems.
2468 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2470 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
2473 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2475 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
2477 (write_alias_graph_to_ascii_dot): New.
2478 (write_alias_graph_to_ascii_ecc): Ditto.
2479 (partition_drs_to_sets): Add testing of optimality of current method
2480 which assigns alias numbers according to DFS Comopnent number. used
2481 as heuristic for the upcoming ECC algorithm.
2482 (build_scop_drs): Write to file also with the ecc and dot format.
2484 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2486 * gfortran.dg/graphite/interchange-1.f: XFail.
2488 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2490 * graphite.c (graphite_initialize): Do not handle functions with
2491 more than 100 basic blocks.
2493 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2495 * graphite-blocking.c (pbb_do_strip_mine): Use
2496 PARAM_LOOP_BLOCK_TILE_SIZE.
2498 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2500 * graphite-poly.c (dot_lst_1): New.
2502 * graphite-poly.h (dot_lst): Declared.
2504 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2506 * graphite-dependences.c (dot_deps_stmt_1): New.
2507 (dot_deps_stmt): New.
2508 * graphite-dependences.h (dot_deps_stmt): Declared.
2510 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2512 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
2513 not replace cross BB scalar dependences ending on PHI nodes.
2514 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
2516 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2518 * graphite-poly.c (apply_poly_transforms): Implement the high
2519 level driver for flag_loop_block.
2520 * opts.c (decode_options): Enable flag_loop_block at -O2.
2521 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
2524 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
2526 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2529 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2531 * graphite-poly.h (lst_find_pbb): New.
2532 (find_lst_loop): New.
2534 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2536 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
2537 * graphite-poly.h (struct scop): Remove dep_graph field.
2538 (SCOP_DEP_GRAPH): Removed.
2540 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2542 * graphite-poly.h (copy_lst): Do full copy of LST.
2544 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
2546 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
2547 when the loop stride is zero.
2549 * gcc.dg/graphite/id-16.c: New.
2551 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2553 * graphite-dependences.c (reduction_dr_1): New.
2554 (reduction_dr_p): New.
2555 (graphite_legal_transform_dr): Call reduction_dr_p.
2556 (reduction_ddr): Renamed reduction_ddr_p.
2557 * graphite-poly.h (same_pdr_p): New.
2558 (number_of_write_pdrs): New.
2559 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
2560 (split_reduction_stmt): Do not split reduction statements
2561 when there are no writes to memory.
2562 (translate_scalar_reduction_to_array_for_stmt): Insert the
2563 memory reduction statement just after the scalar reduction statement.
2565 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
2567 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
2568 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
2570 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2572 * graphite-interchange.c (lst_apply_interchange): New.
2573 (lst_interchange_profitable_p): New.
2574 (lst_try_interchange_loops): New.
2575 (lst_try_interchange): New.
2576 (lst_do_interchange): New.
2577 (pbb_do_interchange): Removed.
2578 (scop_do_interchange): Call lst_do_interchange.
2580 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2582 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
2583 SCOP_TRANSFORMED_SCHEDULE.
2588 * graphite-poly.h (lst_p): New.
2591 (LST_LOOP_FATHER): New.
2594 (scop_to_lst): Declared.
2595 (print_lst): Declared.
2596 (debug_lst): Declared.
2597 (new_lst_loop): New.
2598 (new_lst_stmt): New.
2601 (lst_dewey_number): New.
2602 (struct scop): Add original_schedule and transformed_schedule fields.
2603 (SCOP_ORIGINAL_SCHEDULE): New.
2604 (SCOP_TRANSFORMED_SCHEDULE): New.
2605 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
2607 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2609 * graphite-dependences.c (reduction_ddr): New.
2610 (graphite_legal_transform_bb): Call reduction_ddr.
2611 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
2612 Initialize PBB_IS_REDUCTION.
2613 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
2614 (PBB_IS_REDUCTION): New.
2615 (new_poly_bb): Update declaration.
2616 * graphite-scop-detection.h (build_scop_bbs): Removed.
2617 (nb_reductions_in_loop): Removed.
2618 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
2619 parameter for reductions.
2620 (try_generate_gimple_bb): Update call to new_poly_bb.
2621 (build_scop_bbs_1): Same.
2622 (build_scop_bbs): Same.
2623 (gsi_for_phi_node): New.
2624 (scalar_close_phi_node_p): Remove gcc_assert.
2625 (split_reduction_stmt): New.
2626 (is_reduction_operation_p): New.
2627 (phi_contains_arg): New.
2628 (follow_ssa_with_commutative_ops): New.
2629 (detect_commutative_reduction_arg): New.
2630 (detect_commutative_reduction_assign): New.
2631 (follow_inital_value_to_phi): New.
2632 (edge_initial_value_for_loop_phi): New.
2633 (initial_value_for_loop_phi): New.
2634 (detect_commutative_reduction): New.
2635 (translate_scalar_reduction_to_array_for_stmt): New.
2636 (insert_copyout): New.
2637 (insert_copyin): New.
2638 (translate_scalar_reduction_to_array): New.
2639 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
2640 (rewrite_commutative_reductions_out_of_ssa_loop): New.
2641 (rewrite_commutative_reductions_out_of_ssa): New.
2642 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
2643 * sese.h (split_region_for_bb): New.
2645 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
2646 * gcc.dg/graphite/interchange-1.c: Fix format.
2647 * gcc.dg/graphite/interchange-10.c: New.
2649 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2651 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
2654 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2656 * graphite-sese-to-poly.c (scev_analyzable_p): New.
2657 (rewrite_cross_bb_scalar_dependence): New.
2658 (rewrite_cross_bb_scalar_deps): New.
2659 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
2660 Call rewrite_cross_bb_scalar_deps.
2662 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2664 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
2665 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
2668 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2670 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
2671 * graphite-interchange.c (pbb_do_interchange): Same.
2672 * graphite-poly.c (print_scattering_function): Same.
2674 * graphite-poly.h (pbb_loop): New.
2675 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
2677 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
2679 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
2681 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
2683 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
2684 so don't pass a pointer to it.
2685 (build_alias_set_for_drs): Same.
2686 (build_base_obj_set_for_drs): Same.
2687 (build_scop_drs): Same.
2689 2009-09-26 Li Feng <nemokingdom@gmail.com>
2691 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
2692 the alias graph of data references.
2694 2009-09-25 Li Feng <nemokingdom@gmail.com>
2696 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
2697 (build_scop_drs): When debugging, write the alias graph to file,
2698 otherwise, should be disabled.
2700 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2702 * Merge from mainline (151310:151361).
2704 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2706 * Merge from mainline (151171:151310).
2708 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2710 * Merge from mainline (151171:151806).
2712 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2714 * Revert the last commit.
2716 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2718 * Merge from mainline (151171:151819).
2720 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2722 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
2723 (is_simple_operand): Remove call to stmt_simple_memref_p.
2724 (stmt_simple_for_scop_p): Update call to is_simple_operand.
2726 2009-09-17 David Edelsohn <edelsohn@gnu.org>
2728 * gcc.dg/graphite/interchange-mvt.c: New File.
2729 * gcc.dg/graphite/scop-dsyrk.c: New File.
2730 * gcc.dg/graphite/scop-dsyr2k.c: New File.
2731 * gcc.dg/graphite/scop-mvt.c: New File.
2732 * gcc.dg/graphite/scop-sor.c: New File.
2734 2009-09-17 Li Feng <nemokingdom@gmail.com>
2736 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
2737 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
2738 (graphite_carried_dependence_level_k): Ditto.
2739 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
2740 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
2741 (new_poly_dr): Adjust declaration.
2742 * graphite-sese-to-poly.c (free_data_refs_aux): New.
2743 (free_gimple_bb): Added free_data_refs_aux.
2744 (build_poly_dr): Add dr_base_object_set.
2745 (partition_drs_to_sets): New.
2746 (dr_same_base_object_p): New.
2747 (build_alias_set_for_drs): New.
2748 (build_base_object_set_for_drs): New.
2749 (build_scop_drs): Add build_base_obj_set_for_drs.
2750 * graphite-sese-to-poly.h: Added #define for alias set number index and
2751 base object set index.
2752 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
2753 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
2755 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
2757 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2758 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2760 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2762 * graphite-sese-to-poly.c (struct irp_data): Removed.
2763 (idx_record_params): Removed.
2764 (find_params_in_bb): Scan for parameters the access functions; don't
2765 parse the tree representation.
2767 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2769 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
2770 passes at -O1 and below.
2772 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2774 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
2775 tree-scalar-evolution.h, and then tree-data-ref.h.
2776 * graphite-clast-to-gimple.c: Same.
2777 * graphite-dependences.c: Same.
2778 * graphite-interchange.c: Same.
2779 * graphite-poly.c: Same.
2780 * graphite-scop-detection.c: Same.
2781 * graphite-sese-to-poly.c: Same.
2783 * lambda-code.c: Same.
2784 * matrix-reorg.c: Same.
2785 * tree-data-ref.c: Same.
2786 * tree-if-conv.c: Same.
2787 * tree-loop-distribu: Same.: Same.
2788 * tree-loop-linear.c: Same.
2789 * tree-parloops.c: Same.
2790 * tree-predcom.c: Same.
2791 * tree-vect-patterns.c: Same.
2793 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
2795 Partially revert the previous patch, except the following.
2796 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
2797 as parameters the operands of the not expression.
2799 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2801 * tree-scalar-evolution.c (instantiate_scev_assign): New.
2802 Do not call analyze_scalar_evolution on assignments.
2803 (instantiate_scev_phi): Call analyze_scalar_evolution.
2804 (instantiate_scev_name): Call instantiate_scev_assign and
2805 instantiate_scev_phi.
2806 (instantiate_scev_not): Adapted to pass as parameters the operands
2807 of the not expression.
2809 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2811 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
2812 to pass as parameters the operands of the binary expression.
2814 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2816 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
2817 instantiate_scev_not. Handle NEGATE_EXPR.
2818 (instantiate_scev_r): Handle NEGATE_EXPR.
2820 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2822 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
2824 (instantiate_scev_r): Move code in instantiate_scev_2
2825 and instantiate_scev_1.
2827 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2829 * tree-scalar-evolution.c (instantiate_scev_3): New.
2830 (instantiate_scev_1): Move code in instantiate_scev_3.
2832 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2834 * tree-scalar-evolution.c (instantiate_scev_poly): New.
2835 (instantiate_scev_1): Move code in instantiate_scev_poly.
2837 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2839 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
2840 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
2842 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2844 * tree-scalar-evolution.c (instantiate_scev_convert): New.
2845 (instantiate_scev_1): Move code in instantiate_scev_convert.
2847 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2849 * tree-scalar-evolution.c (instantiate_scev_binary): New.
2850 (instantiate_scev_1): Move code in instantiate_scev_binary.
2852 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2854 * tree-scalar-evolution.c (instantiate_scev_name): New.
2855 (instantiate_scev_1): Move code in instantiate_scev_name.
2857 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
2859 * Merge from mainline (150992:151171).
2861 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2863 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
2865 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2867 * graphite-dependences.c (graphite_legal_transform_bb): Call
2868 pbb_remove_duplicate_pdrs.
2869 * graphite-poly.c (can_collapse_pdr): Removed.
2870 (pdr_find_duplicate): Removed.
2871 (can_collapse_pdrs): New.
2872 (pbb_remove_duplicate_pdrs): New.
2873 (new_poly_dr): Do not look for duplicates.
2874 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
2875 (PBB_PDR_DUPLICATES_REMOVED): New.
2876 (pbb_remove_duplicate_pdrs): Declared.
2878 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2880 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
2881 the strides by multiplying by PDR_NB_REFS.
2882 * graphite-poly.c (can_collapse_pdr): New.
2883 (pdr_find_duplicate): New.
2884 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
2885 Initialize PDR_NB_REFS.
2886 * graphite-poly.h (struct poly_dr): Add field nb_refs.
2888 (new_poly_dr): Number of subscripts is a graphite_dim_t.
2890 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2892 Revert one of the previous commits:
2893 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
2894 the computation of symmetric data dependence relations.
2895 (dependency_between_pbbs_p): Same.
2897 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2900 * graphite-poly.c (apply_poly_transforms): Remove legality test before
2903 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2905 * graphite-dependences.c (pddr_original_scattering): Return NULL
2906 for read-read dependence relations.
2907 * graphite-poly.h (enum poly_dr_type): Fix comment.
2910 (pdr_may_write_p): New.
2912 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2914 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
2915 (struct poly_dr): Same.
2916 (new_poly_dr): Same.
2917 * graphite-poly.c (new_poly_dr): Same.
2919 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2920 Sebastian Pop <sebastian.pop@amd.com>
2922 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
2923 pbb_strip_mine_time_depth. Changed the implementation so that
2924 transformation is expressed as a transformation on
2925 time (scatttering) dimensions. Also, ensures that the 2d+1
2926 scheduling format is preserved.
2927 (pbb_strip_mine_profitable_p): Profitability is based on the
2928 iteration number of a given time (scattering) dimension,
2929 and not on a original loop depth dimension.
2930 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
2931 (pbb_do_strip_mine): Call psct_dynamic_dim.
2932 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
2933 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
2934 (pbb_nb_dynamic_scattering_transform): New.
2935 (psct_dynamic_dim): New.
2937 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2939 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
2940 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
2941 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
2942 * graphite-interchange.c (build_linearized_memory_access): Same.
2943 (memory_stride_in_loop): Same.
2945 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2947 * graphite-dependences.c (pddr_original_scattering): New.
2948 (graphite_legal_transform_dr): Call pddr_original_scattering.
2951 * graphite-dependences.h (dot_deps): Declared.
2952 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
2953 (print_pdr): Print PDR_ID.
2954 * graphite-poly.h (struct poly_dr): Add field id.
2957 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
2959 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
2961 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
2962 not delete the original dependence relation.
2964 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2966 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
2967 the computation of symmetric data dependence relations.
2968 (dependency_between_pbbs_p): Same.
2970 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2972 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
2973 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
2974 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
2975 (free_poly_ddr): New.
2976 (pddr_is_empty): New.
2977 (dependence_polyhedron_1): Now returns a poly_ddr_p.
2978 (dependence_polyhedron): Same. Remove useless gcc_assert.
2980 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
2981 (graphite_carried_dependence_level_k): Call pddr_is_empty.
2982 * graphite-dependences.h (enum poly_dependence_kind): New.
2983 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
2984 (PDRP_SOURCE): Renamed PDDR_SOURCE.
2985 (PDRP_SINK): Renamed PDDR_SINK.
2986 (PDRP_DDP): Renamed PDDR_DDP.
2988 (free_poly_ddr): Declared.
2989 * graphite-poly.c (new_scop): Use the new hash function names.
2990 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
2991 into original_pddrs.
2992 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
2994 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2996 * Merge from mainline (150764:150992).
2998 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3000 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
3001 bounds with LT_EXPR to make niter analysis more precise on code
3002 generated by Graphite.
3004 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3006 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
3007 (graphite_legal_transform_bb): Same.
3008 (poly_drs_may_alias_p): Same.
3010 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
3013 * graphite-ppl.c (ppl_max_for_le): Correct the use of
3014 ppl_Pointset_Powerset_C_Polyhedron_maximize.
3016 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3018 * graphite-poly.c (print_pbb): Print PBB index.
3020 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3022 * Merge from mainline (r150672:150764).
3024 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3026 * graphite-interchange.c (ppl_max_for_le): Moved...
3027 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
3028 * graphite-ppl.c (ppl_max_for_le): ... here.
3029 * graphite-ppl.h (ppl_max_for_le): Declared.
3031 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3033 * Merge from mainline (r150372:150672).
3035 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3038 * sese.c (convert_for_phi_arg): New.
3039 (add_guard_exit_phis): Use convert_for_phi_arg.
3041 * gfortran.dg/graphite/id-17.f: New.
3043 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3045 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
3046 unknown subscript upper bounds.
3048 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
3050 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3051 Pranav Garg <pranav.garg2107@gmail.com>
3053 * graphite-interchange.c (gather_access_strides): Removed.
3054 (ppl_max_for_le): New.
3055 (build_linearized_memory_access): New.
3056 (memory_stride_in_loop): New.
3057 (pbb_interchange_profitable_p): Reimplemented.
3058 * graphite-ppl.h (ppl_new_id_map): New.
3059 (ppl_interchange): New.
3061 * gcc.dg/graphite/interchange-6.c: XFAILed.
3063 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3065 * graphite-interchange.c (compute_subscript): Removed.
3066 (compute_array_size_cstr): Removed.
3067 (compute_array_size_poly): Removed.
3068 (compute_array_size): Removed.
3069 (gather_access_strides_poly): Removed.
3070 (gather_access_strides): Empty.
3072 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3074 * graphite-dependences.c (dependence_polyhedron_1): Replace
3075 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
3076 (graphite_legal_transform_dr): Same.
3077 (graphite_carried_dependence_level_k): Same.
3078 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
3079 Initialize PDR_NB_SUBSCRIPTS.
3080 (print_pdr_access_layout): Replace pdr_nb_subscripts with
3082 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
3083 (PDR_NB_SUBSCRIPTS): New.
3084 (pdr_nb_subscripts): Removed.
3085 (pdr_dim): Simplified.
3086 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
3087 with PDR_NB_SUBSCRIPTS.
3089 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3091 * graphite-interchange.c (compute_array_size): Remove use of
3093 * graphite-poly.c (new_poly_dr): Remove argument data_container.
3094 Do not initialize PDR_DATA_CONTAINER.
3095 (print_pdr): Do not print PDR_DATA_CONTAINER.
3096 * graphite-poly.h (struct poly_dr): Remove data_container field.
3097 (PDR_DATA_CONTAINER): Removed.
3098 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
3100 (build_poly_dr): Same.
3102 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3104 * gcc.dg/graphite/interchange-9.c: New.
3106 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3107 Sebastian Pop <sebastian.pop@amd.com>
3109 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
3110 copy of the dependence polyhedron. Free the temporary objects.
3111 (graphite_carried_dependence_level_k): Free unused objects before
3114 * gcc.dg/graphite/interchange-1.c: XFAILed.
3115 * gcc.dg/graphite/interchange-2.c: XFAILed.
3116 * gcc.dg/graphite/interchange-3.c: XFAILed.
3117 * gcc.dg/graphite/interchange-4.c: XFAILed.
3118 * gcc.dg/graphite/interchange-7.c: XFAILed.
3120 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3122 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
3123 Early return without analyzing the data dependences if no
3124 transform has been done. Call restore_scattering if the transform
3126 (graphite-interchange.c): Same.
3127 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
3128 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
3129 (apply_poly_transforms): Do not gcc_assert that
3130 the transform is legal.
3131 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3132 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
3133 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
3134 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3135 * graphite-poly.h (struct poly_scattering): New.
3136 (struct poly_bb): Add original, transformed, and saved fields.
3137 Remove transformed_scattering, original_scattering, nb_local_variables,
3138 and nb_scattering_transform fields.
3139 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
3140 (poly_scattering_new): New.
3141 (poly_scattering_free): New.
3142 (poly_scattering_copy): New.
3143 (store_scattering_pbb): New.
3144 (store_scattering): New.
3145 (restore_scattering_pbb): New.
3146 (restore_scattering): New.
3147 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3148 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
3150 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3152 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
3155 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3157 * Makefile.in (graphite.o): Depends on PREDICT_H.
3158 * graphite.c: Include predict.h.
3159 (graphite_finalize): Call tree_estimate_probability.
3160 * predict.c (predict_loops): Do not call scev_initialize and
3162 (tree_estimate_probability_bb): New.
3163 (tree_estimate_probability): Do not initialize loops: move that
3164 code to the driver. Call tree_estimate_probability_bb.
3165 (tree_estimate_probability_driver): New.
3166 (pass_profile): Use tree_estimate_probability_driver.
3167 * predict.h (tree_estimate_probability): Declared.
3169 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3171 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
3172 * graphite-dependences.c (graphite_legal_transform): Add time to
3173 TV_GRAPHITE_DATA_DEPS.
3174 (dependency_between_pbbs_p): Same.
3175 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
3177 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
3179 * Merge from mainline (r149952:150372).
3181 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3183 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
3184 * graphite-blocking.c: Same.
3185 * graphite-clast-to-gimple.c: Same.
3186 * graphite-dependences.c: Same.
3187 * graphite-poly.c: Same.
3188 * graphite-poly.h: Same.
3189 * graphite-ppl.c: Same.
3190 * graphite-scop-detection.c: Same.
3191 * graphite-sese-to-poly.c: Same.
3194 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3196 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
3197 (remove_simple_copy_phi): New.
3198 (remove_invariant_phi): New.
3199 (simple_copy_phi_p): New.
3200 (reduction_phi_p): New.
3201 (gsi_for_ssa_name_def): New.
3202 (insert_out_of_ssa_copy): New.
3203 (insert_out_of_ssa_copy_on_edge): New.
3204 (create_zero_dim_array): New.
3205 (scalar_close_phi_node_p): New.
3206 (rewrite_close_phi_out_of_ssa): New.
3207 (rewrite_phi_out_of_ssa): New.
3208 (rewrite_reductions_out_of_ssa): New.
3209 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
3211 * gcc.dg/graphite/id-11.c: New.
3212 * gcc.dg/graphite/id-15.c: New.
3213 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
3214 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
3215 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
3216 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
3217 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
3218 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
3219 * gfortran.dg/graphite/id-13.f: New.
3220 * gfortran.dg/graphite/id-5.f: New.
3222 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3224 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
3225 check that nb_reductions_in_loop is zero.
3226 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
3227 reduction phi nodes.
3228 (nb_reductions_in_loop): Removed.
3229 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
3230 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
3231 (bb_contains_non_iv_scalar_phi_nodes): Removed.
3232 (scop_contains_non_iv_scalar_phi_nodes): Removed.
3233 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
3235 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3237 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
3238 statements that have an empty iteration domain.
3239 * gfortran.dg/graphite/id-16.f: New.
3241 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3243 * tree-scalar-evolution.c (instantiate_scev_1): Return
3244 chrec_dont_know when the result is not above instantiate_below.
3245 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
3246 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
3247 the tree has a known scalar evolution.
3248 * gfortran.dg/graphite/id-14.f: New.
3249 * gfortran.dg/graphite/id-15.f: New.
3251 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3253 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
3255 (rename_variables): Keep inserting renames after the ones already
3258 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3260 * graphite-sese-to-poly.c (compare_bb_depths): New.
3261 (graphite_sort_dominated_info): New.
3262 (build_scop_bbs_1): Call graphite_sort_dominated_info.
3263 (build_scop_scattering): Fix comment.
3265 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3267 * graphite.c (graphite_finalize): Call print_loops instead of
3268 dump_function_to_file.
3269 * gcc.dg/graphite/graphite.exp: Fix formatting.
3270 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
3271 loops generated in the graphite output file.
3272 * gcc.dg/graphite/pr35356-2.c: New.
3273 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
3274 * gfortran.dg/graphite/id-12.f: New.
3276 2009-07-24 Li Feng <nemokingdom@gmail.com>
3278 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
3281 2009-07-24 Li Feng <nemokingdom@gmail.com>
3282 Tobias Grosser <grosser@fim.uni-passau.de>
3284 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
3285 alias set number build alias in ACCESSES polyhedron.
3286 (build_alias_set_for_drs): New.
3287 (build_pbb_drs): Added build_alias_set_for_drs.
3288 * graphite-dependences.c (poly_drs_may_alias_p): New.
3289 (graphite_carried_dependence_level_k): Check alias information
3290 before building polyhedron.
3292 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3294 * Makefile.in (lambda-code.o): Fix formatting.
3296 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3298 * Merge from mainline (r149350-149952)
3300 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3302 * graphite-poly.c (apply_poly_transforms): Move strip_mine
3303 before interchange to prepare for loop blocking.
3305 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3307 * graphite-poly.c (apply_poly_transforms): Add checks after every
3309 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
3310 done in apply_poly_transforms.
3312 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3314 * graphite-dependences.c (build_lexicographically_gt_constraint):
3315 Replace RES parameter with *RES.
3316 (dependence_polyhedron_1): Pass an address of the parameter RES
3317 instead of value of RES.
3319 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3321 * graphite.c (graphite_finalize): Fix comment.
3322 (graphite_transform_loops): Reset scev info after code generation
3325 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3327 * graphite.c (graphite_finalize): Call scev_reset.
3329 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3331 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
3332 GBB_CLOOG_IV_TYPES hash table twice.
3333 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
3334 (add_condition_to_domain): Clear GMP values.
3336 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3338 * graphite-dependences.c: Fix formatting.
3339 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
3340 (pbb_number_of_iterations): Free ppl_Linear_Expression.
3341 * graphite-sese-to-poly.c: Fix formatting.
3342 * graphite.c (graphite_transform_loops): Create the hash table
3343 after the early return.
3345 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3347 * gcc.dg/graphite/id-14.c: New.
3348 * gcc.dg/graphite/pr40157.c: New.
3349 * gfortran.dg/graphite/id-11.f: New.
3351 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3353 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
3354 (build_poly_scop): Return false when there are no pbbs within
3355 loops to avoid to pass to cloog scops with no loops.
3357 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3359 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
3360 useless test "i % 2".
3361 (build_pbb_scattering_polyhedrons): Fix formatting.
3362 (build_poly_dr): Same.
3363 * graphite.c (graphite_transform_loops): Restructure.
3365 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
3367 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
3368 reduction_list parameter.
3369 (rewrite_all_phi_nodes_with_iv): Same.
3370 (canonicalize_loop_ivs): Same.
3371 * tree-parloops.c (struct brli): Removed.
3372 (build_reduction_list_info): Removed.
3373 (build_new_reduction): New.
3374 (analyze_reduction_list): Removed.
3375 (gather_scalar_reductions): Find reductions instead of phi
3376 nodes that can't be canonicalized.
3377 (try_create_reduction_list): Remove reduction_list parameter.
3378 (gen_parallel_loop): Same.
3379 (parallelize_loops): Remove analyze_reductions variable,
3380 initialization and free.
3381 Change reduction_list htab initialization to reduction_info
3382 elements instead of ssa names.
3383 Call try_create_reduction_list and gen_parallel_loop without
3384 analyzed_reduction argument.
3385 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
3386 canonicalize_loop_ivs with one less argument.
3387 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
3389 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3391 * graphite-dependences.c (new_poly_dr_pair): New.
3392 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
3393 (new_poly_dr_pair): New.
3394 (eq_poly_dr_pair_p): New.
3395 (hash_poly_dr_pair_p): New.
3396 * graphite-dependences.h (struct poly_dr_pair): New.
3397 (eq_poly_dr_pair_p): Declared.
3398 (hash_poly_dr_pair_p): Declared.
3399 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
3400 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
3401 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
3402 * Makefile.in (graphite-poly.o): Add dependence on
3403 graphite-dependences.h.
3405 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3407 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
3408 polynomials of degree > 1 pass to Graphite.
3409 * tree-chrec.c (scev_is_linear_expression): Call
3410 evolution_function_is_affine_multivariate_p.
3411 * gfortran.dg/graphite/id-10.f90: New.
3413 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3415 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
3416 Instantiate scevs varying in outer loops.
3417 * gfortran.dg/graphite/id-9.f: Correct testcase.
3419 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3421 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
3422 redundant constraint.
3424 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3426 * gcc.dg/graphite/graphite.exp: Fix comments.
3427 * gfortran.dg/graphite/graphite.exp: Trigger actions
3428 based on the file names as in the C testsuite.
3429 * gfortran.dg/graphite/block-1.f90: Fix patterns.
3430 * gfortran.dg/graphite/block-2.f: Same.
3431 * gfortran.dg/graphite/block-3.f90: Same.
3432 * gfortran.dg/graphite/block-4.f90: Same.
3433 * gfortran.dg/graphite/id-1.f90: Same.
3434 * gfortran.dg/graphite/id-2.f90: Same.
3435 * gfortran.dg/graphite/id-3.f90: Same.
3436 * gfortran.dg/graphite/id-4.f90: Same.
3437 * gfortran.dg/graphite/id-6.f: Same.
3438 * gfortran.dg/graphite/id-9.f: Same.
3439 * gfortran.dg/graphite/interchange-1.f: Same.
3440 * gfortran.dg/graphite/interchange-2.f: Same.
3441 * gfortran.dg/graphite/scop-1.f: Same.
3443 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3445 * sese.c (expand_scalar_variables_call): New.
3446 (expand_scalar_variables_ssa_name): Handle calls in expander.
3448 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3450 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
3451 Expect to see the pattern twice.
3452 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
3453 * gcc.dg/graphite/interchange-5.c: Same.
3454 * gcc.dg/graphite/interchange-6.c: Same.
3456 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3458 * gcc.dg/graphite/id-10.c: New.
3459 * gcc.dg/graphite/id-12.c: New.
3460 * gfortran.dg/graphite/id-7.f: New.
3461 * gfortran.dg/graphite/id-8.f: New.
3463 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3465 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
3468 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3470 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
3472 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3474 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
3476 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3478 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
3479 building PDR subscripts.
3481 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3483 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
3484 computation of array sizes.
3486 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3488 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
3490 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
3492 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
3493 build_pairwise_constraint, dr_equality_constraints,
3494 build_pairwise_scheduling_equality,
3495 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3496 build_lexicographically_gt_constraint, dependence_polyhedron,
3497 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
3498 Move from NNC_Polyhedron to C_Polyhedron.
3499 * graphite-interchange.c (compute_array_size_poly,
3500 gather_access_strides): Dito.
3501 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
3502 free_scop, pbb_number_of_iterations): Dito.
3503 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
3504 pbb_dim_iter_domain, struct scop): Dito.
3505 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
3506 new_Cloog_Domain_from_ppl_Polyhedron,
3507 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
3508 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
3509 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
3510 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
3511 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
3512 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
3513 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
3514 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
3515 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
3516 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
3517 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
3518 build_scop_iteration_domain, build_poly_dr): Dito
3520 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3522 * gcc.dg/graphite/graphite.exp: Added a rule to execute
3524 * gcc.dg/graphite/run-id-1.c: New.
3526 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3528 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
3529 positivity constraint on the symbolic number of iterations.
3531 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3533 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
3535 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3536 Tobias Grosser <grosser@fim.uni-passau.de>
3538 * graphite-clast-to-gimple.c (build_scop_context): Removed.
3539 (build_cloog_prog): Directly use SCOP_CONTEXT.
3540 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
3541 (free_scop): Free SCOP_CONTEXT.
3542 (print_scop_context): New.
3543 (print_scop): Call print_scop_context.
3544 (debug_scop_context): New.
3545 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
3546 (struct scop): Added field context.
3547 (SCOP_CONTEXT): New.
3548 * graphite-sese-to-poly.c (add_param_constraints): New.
3549 (build_scop_context): New.
3550 (build_poly_scop): Call build_scop_context.
3552 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3554 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
3555 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
3556 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
3557 * graphite-ppl.h: Include double-int.h and tree.h.
3558 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
3559 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
3560 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
3561 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
3563 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3565 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
3566 POINTER_PLUS_EXPR for pointer types.
3567 (clast_to_gcc_expression): Same.
3569 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3571 * graphite-poly.c (print_scattering_function): Early return when
3572 PBB_TRANSFORMED_SCATTERING is not initialized.
3573 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
3575 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
3577 * tree-parloops.c (analyze_reduction_list): Remove unused variable
3580 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
3582 * tree-parloops.c (analyze_reduction_list): Change return
3584 (try_create_reduction_list): Move the call to
3585 analyze_reduction_list to the beginining.
3586 Call reduction_phi with analyzed_reductions as argument
3587 instead of reduction_list.
3589 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
3591 * Merge from mainline (r148296:149346)
3593 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3595 * graphite-scop-detection.c (graphite_can_represent_init): New.
3596 (graphite_can_represent_scev): Call graphite_can_represent_init:
3597 check that the initial value does not contain multiplications of
3599 (stmt_has_simple_data_refs_p): New.
3600 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
3601 (is_simple_operand): Fix formatting.
3602 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
3604 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3606 * gcc.dg/graphite/id-13.c: New.
3607 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
3608 analyze_scalar_evolution, use scalar_evolution_in_region.
3609 (scan_tree_for_params_right_scev): Add extra assert.
3610 (parameter_index_in_region_1): Split from parameter_index_in_region.
3611 (idx_record_params): Use scalar_evolution_in_region.
3612 (find_params_in_bb): Same.
3613 (find_scop_parameters): Same.
3614 (build_loop_iteration_domains): Same.
3615 (create_linear_expr_from_tree): Same.
3616 * sese.c (scalar_evolution_in_region): New.
3617 * sese.h (scalar_evolution_in_region): Declared.
3618 (defined_in_sese_p): New.
3619 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
3621 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
3624 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3626 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
3627 TREE_DATA_REF_H also implies SCEV_H.
3629 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3631 * graphite-poly.c (print_scop_params): New.
3632 (print_scop): Call print_scop_params.
3633 (debug_scop_params): New.
3634 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
3636 2009-07-07 Li Feng <nemokingdom@gmail.com>
3638 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
3639 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
3640 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
3641 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
3642 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
3643 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
3645 2009-07-07 Li Feng <nemokingdom@gmail.com>
3647 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
3648 for dependency checking part.
3649 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
3650 tests for dependency checking.
3651 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
3652 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
3653 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
3654 flag -fdump-tree-graphite-all for autopar testsuites.
3656 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
3658 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
3659 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
3660 canonicalize_loop_ivs): Moved...
3661 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
3663 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
3665 * tree-parloops.c (try_create_reduction_list): Pass an extra
3666 argument analyzed_reductions. Call analyze_reduction_list.
3667 (gen_parallel_loop): Do not call analyze_reduction_list.
3668 (parallelize_loops): Init and finalize analyzed_reductions.
3670 2009-07-06 Li Feng <nemokingdom@gmail.com>
3672 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
3673 Added flag -fno-loop-strip-mine for autopar testcase.
3675 2009-07-04 Li Feng <nemokingdom@gmail.com>
3677 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
3678 transformed scattering dimension instead of unmatch orignal when
3679 calling dependence_polyhedron.
3681 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3683 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
3685 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3687 * graphite-poly.c (pbb_number_of_iterations): Check for returned
3688 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
3690 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3692 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
3693 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
3694 * graphite-poly.c (pbb_number_of_iterations): New.
3695 * graphite-poly.h (pbb_number_of_iterations): Declared.
3696 (pbb_iterator_dim, pbb_parameter_dim): New.
3698 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
3700 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
3701 last commit on type of lower and upper bound of loops.
3703 2009-06-29 Li Feng <nemokingdom@gmail.com>
3705 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
3706 graphite-dependences.h.
3707 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
3708 (mark_bb_with_pbb): New.
3709 (get_stmtfor_depth): New.
3710 (find_pbb_via_hash): New.
3711 (dependency_in_loop_p): New.
3712 (mark_loops_parallel): New.
3713 (free_aux_in_new_loops): New.
3714 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
3715 bb with it's relevant pbb. Mark newly created loops. Remove mark
3716 innermost loop parallel without checking.
3717 (gloog): Add parameter BB_PBB_MAPPING.
3718 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
3719 (gloog): Change declaration.
3720 (mark_loop_parallel): Make extern.
3721 (free_aux_in_new_loops): Declare.
3722 (bb_pbb_map_hash): New.
3723 (eq_bb_pbb_map): New.
3724 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
3725 auto parallelization when flag_graphite_force_parallel is set.
3726 (graphite_finalize): Added free_aux_in_new_loops.
3727 * tree-parloops.c (parallelize_loops): Only generate parallel code for
3728 the innermost loop that marked parallel. Use
3729 flag_graphite_force_parallel instead of loop->can_be_parallel.
3730 (loop_parallel_p): Move inner most checking out of function.
3732 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3734 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
3735 type of lower and upper bound of loops signed long int.
3737 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3739 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
3740 expression outside the loop.
3742 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3744 * gcc.dg/graphite/interchange-8.c: New.
3746 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3748 * gcc.dg/graphite/interchange-0.c: XFailed.
3749 * gcc.dg/graphite/interchange-5.c: XFailed.
3750 * gcc.dg/graphite/interchange-6.c: XFailed.
3752 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3754 * graphite-interchange.c (compute_array_size_poly): The end of the
3755 recursion should return 1.
3757 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3759 * graphite-interchange.c (compute_array_size_cstr): Allow the
3760 subscript multiplier to be -1.
3761 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
3762 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
3763 data_container. Initializes PDR_DATA_CONTAINER.
3764 (print_pdr_access_layout): New.
3765 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
3766 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
3768 (PDR_DATA_CONTAINER): New.
3769 (new_poly_dr): Update declaration.
3770 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
3771 (build_poly_dr): Call pdr_add_data_dimensions.
3773 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3775 * graphite-poly.h (struct poly_dr): Fix comment.
3776 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
3777 (pdr_add_memory_accesses): New.
3778 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
3780 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3782 * graphite-poly.c (print_pdrs, debug_pdrs): New.
3783 (print_pbb): Add call to print_pdrs.
3784 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
3786 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3787 Li Feng <nemokingdom@gmail.com>
3789 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
3790 (dependency_between_pbbs_p): New.
3791 (lexicographically_gt_p): Assure !empty_p before polyhedron
3792 intersection assign.
3793 (build_lexicographically_gt_constraint): Correct lexicographically
3795 * graphite-dependences.h: New.
3796 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
3798 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3800 * graphite-clast-to-gimple.c (print_clast_stmt): New.
3801 (gloog): Print to dump_file the generated clast.
3802 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
3803 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
3805 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3807 * graphite-poly.c (extend_scattering): Increment
3808 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
3810 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3812 * graphite-interchange.c (compute_array_size_poly): Added exit of
3813 recursion condition. Continue iterating even after the first equality.
3814 (compute_array_size): Same.
3816 2009-06-24 Li Feng <nemokingdom@gmail.com>
3818 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
3819 -fdump-tree-final_cleanup to -fdump-tree-optimized.
3820 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
3821 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
3822 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
3824 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3826 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
3827 only when the use verifies is_gimple_reg.
3829 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3831 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
3832 Allocate scaldims after call to unify_scattering_dimensions.
3834 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3836 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
3838 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3839 Albert Cohen <albert.cohen@inria.fr>
3841 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
3842 variables for the strip mining.
3844 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3845 Pranav Garg <pranav.garg2107@gmail.com>
3847 * Makefile.in (OBJS-common): Added graphite-blocking.o.
3848 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
3849 (graphite-blocking.o): New rule.
3850 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
3851 * graphite-blocking.c: New.
3852 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
3853 flag_loop_strip_mine.
3854 (psct_scattering_dim_for_loop_depth): New.
3855 * graphite-poly.h (scop_do_strip_mine): Declared.
3856 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
3857 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
3858 flag_loop_strip_mine.
3860 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3862 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
3863 a GMP value and a PPL coefficient at each iteration of a loop.
3865 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3867 * graphite-dependences.c (dependence_polyhedron): Do not use
3868 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
3869 pbb_nb_scattering_transform.
3870 (graphite_legal_transform_dr): Same.
3871 * graphite-poly.c (extend_scattering): Same.
3872 (unify_scattering_dimensions): Same.
3873 (print_scattering_function): Same.
3874 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
3875 PBB_NB_LOCAL_VARIABLES.
3876 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
3877 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
3878 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
3879 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
3880 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
3881 (pbb_nb_scattering_transform): New.
3882 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
3883 (psco_scattering_dim): Add assert on parameters.
3884 (psct_scattering_dim): Same.
3885 (psct_scattering_dim_for_loop_depth): Declared.
3886 (psct_local_var_dim): New.
3887 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
3888 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
3889 correct layout, call pbb_nb_local_vars.
3890 (psct_add_local_variable, psct_add_scattering_dimension): New.
3891 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3892 Initialize PBB_NB_SCATTERING_TRANSFORM.
3894 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3896 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
3897 (set_coef): Renamed ppl_set_coef.
3898 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
3900 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3902 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
3903 test a boolean against 1.
3904 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
3905 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
3906 (pbb_do_interchange): Returns true when a transform has been performed.
3907 (scop_do_interchange): Same.
3908 * graphite-poly.c (apply_poly_transforms): Use the return value of
3909 scop_do_interchange.
3910 * graphite-poly.h (scop_do_interchange): Update declaration.
3912 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
3914 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
3916 * sese.c (sese_reset_aux_in_loops): New.
3917 * sese.h (sese_reset_aux_in_loops): New.
3919 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3921 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
3922 multiplier and multiply the constant by the multiplier.
3923 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
3924 (build_poly_dr): Do not use the multiplier to define the subscript.
3926 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3928 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
3929 compiler's data reference. Initialize PDR_CDR.
3930 (print_pdr): Call dump_data_reference.
3931 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
3932 Add compiler_dr field.
3933 (PDR_BB): Renamed PDR_PBB.
3935 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
3936 GCC's data reference representation.
3937 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
3938 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
3940 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3942 * graphite-poly.c (print_scattering_function): Also print the layout.
3943 * graphite-poly.h (pbb_nb_local_vars): New.
3945 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3947 * graphite-poly.c (print_pbb_domain): Also print the layout names.
3949 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3951 * graphite-poly.c (print_pdr, debug_pdr): New.
3952 * graphite-poly.h (print_pdr, debug_pdr): Declared.
3953 (PDR_BASE): Removed.
3955 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3957 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
3960 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3962 * graphite-interchange.c (compute_subscript): Allow also -1 in the
3963 subscript identification column.
3964 (pbb_do_interchange): Print to dump_file that some loops "will be
3965 interchanged". Rely on that chain of characters in the testcases.
3966 * gcc.dg/graphite/interchange-0.c: New.
3967 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
3968 interchange-*.c files and compile them with -floop-interchange.
3970 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
3972 * graphite-interchange.c (interchange_profitable_p): Renamed
3973 pbb_interchange_profitable_p.
3975 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3976 Harsha Jagasia <harsha.jagasia@amd.com>
3977 Pranav Garg <pranav.garg2107@gmail.com>
3979 * graphite-interchange.c (interchange_profitable_p): Make static.
3980 (pbb_interchange_loop_depths, pbb_do_interchange,
3981 scop_do_interchange): New.
3982 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
3983 for flag_loop_interchange.
3984 * graphite-poly.h (scop_do_interchange): Declared.
3985 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
3986 flag_loop_interchange is used.
3988 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3990 * graphite-dependences.c (dependence_polyhedron): Update use of
3991 pbb_nb_scattering_dims.
3992 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
3993 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
3994 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
3995 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
3997 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
3999 * graphite.c: Cleanup foo.
4001 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4003 * Merge from mainline (r143684:148293).
4004 * Disabled libpcp until it gets fixed.
4006 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
4007 Harsha Jagasia <harsha.jagasia@amd.com>
4009 * graphite-interchange.c: New.
4010 * Makefile.in (graphite-interchange.o): New.
4011 * graphite-poly.h (interchange_profitable_p): Declared.
4012 * graphite-ppl.h (value_max): New.
4014 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4016 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
4017 * graphite-poly.h: Fix some comments.
4021 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4024 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
4025 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
4026 (pdr_accessp_nb_params): Renamed pdr_nb_params.
4027 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
4028 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
4029 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
4030 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
4031 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
4032 * graphite-clast-to-gimple.c: Same.
4033 * graphite-dependences.c: Same.
4034 * graphite-poly.c: Same.
4035 * graphite-sese-to-poly.c: Same.
4037 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4039 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
4040 expressions for an IV rename, as returned by clast_to_gcc_expression.
4041 (copy_renames): Rename new_name to expr.
4042 * sese.c (debug_rename_elt): Same.
4045 (sese_adjust_liveout_phis): Call force_gimple_operand before using
4046 the information from the rename map.
4047 (rename_variables_in_stmt): Same.
4048 (add_loop_exit_phis): Rename new_name to expr.
4049 (insert_loop_close_phis): Same.
4050 (add_guard_exit_phis): Same. Call force_gimple_operand.
4051 * sese.h (struct rename_map_elt): Rename new_name to expr.
4052 (new_rename_map_elt): Same.
4054 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4056 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
4057 * sese.c (set_rename): Make it extern.
4058 * sese.h (set_rename): Declared.
4060 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4062 * graphite-poly.c (extend_scattering): Free values.
4063 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
4065 (ppl_print_powerset_matrix): Same.
4066 * graphite-scop-detection.c (free_scops_1): New.
4067 (limit_scops): Call free_scops_1.
4068 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
4069 (build_poly_dr): Free PPL coefficients.
4070 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
4072 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
4074 * graphite-dependences.c: New.
4075 * graphite-data-ref.c: Removed.
4076 * graphite-data-ref.h: Removed.
4077 * Makefile.in (graphite-data-ref.o): Removed.
4078 (graphite-dependences.o): Added.
4079 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
4080 * graphite-poly.c: Same.
4081 Move the data dependence testing to graphite-dependences.c.
4083 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
4085 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
4086 from graphite_cannot_represent_loop. Code refactored.
4087 (scopdet_basic_block_info): Call graphite_can_represent_loop.
4089 2009-05-17 Li Feng <nemokingdom@gmail.com>
4091 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
4092 Cover all the testcases (not only the filtered ones).
4094 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
4096 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
4097 unnecessary check. Update comments. Move check for REAL_TYPE here.
4098 (harmful_stmt_in_bb): Remove checks for conditions. This is already
4099 done in (stmt_simple_for_scop_p).
4101 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
4103 * graphite.c (print_global_statistics): New.
4104 (print_graphite_scop_statistic): New.
4105 (print_graphite_statistics): New.
4106 (graphite_initialize, graphite_transform_loops): Print statistics.
4107 * graphite-scop-detection (build_scops): Print statistics.
4108 (print_graphite_scop_statistics): New.
4109 (print_graphite_statistics): New.
4111 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4113 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
4114 (debug_clast_name_index): Removed.
4115 (debug_clast_name_indexes_1): Removed.
4116 (debug_clast_name_indexes): Removed.
4117 (clast_name_index_elt_info): Removed.
4118 (eq_clast_name_indexes): Removed.
4119 (clast_name_to_index): Removed.
4120 (new_clast_name_index): Removed.
4121 (save_clast_name_index): Removed.
4122 (save_var_name): Moved...
4123 (init_sese_params_index): Removed.
4124 (clast_name_to_gcc): Remove use of name_tree.
4125 (initialize_cloog_names): Same.
4126 (gloog): Do not call init_sese_params_index.
4127 * graphite-sese-to-poly.c (save_var_name): ...here.
4128 (parameter_index_in_region): New.
4129 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
4130 (parameter_index_in_region): Removed.
4131 (is_parameter): Remove use of name_tree.
4132 * sese.h (struct name_tree): Removed.
4133 (struct sese): Remove use of name_tree. New field params_names.
4134 (SESE_PARAMS_NAMES): New.
4135 (SESE_PARAMS): Remove duplicate.
4136 (parameter_index_in_region): Removed.
4137 (sese_nb_params): Remove use of name_tree.
4138 (struct clast_name_index): New.
4139 (new_clast_name_index): New.
4140 (clast_name_to_index): New.
4141 (save_clast_name_index): New.
4142 (debug_clast_name_index): New.
4143 (debug_clast_name_indexes_1): New.
4144 (debug_clast_name_indexes): New.
4145 (clast_name_index_elt_info): New.
4146 (eq_clast_name_indexes): New.
4148 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4150 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
4151 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
4152 (graphite_loop_normal_form): Do not pass region. Do not
4153 initialize SESE_OLDIVS.
4154 (build_graphite_loop_normal_form): Update call to
4155 graphite_loop_normal_form.
4156 * sese.c (debug_oldivs): Removed.
4157 (new_sese): Do not initialize SESE_OLDIVS.
4158 (free_sese): Do not free SESE_OLDIVS.
4159 (oldiv_for_loop): Removed.
4160 * sese.h (struct sese): Remove old_ivs.
4161 (SESE_OLDIVS): Removed.
4162 (oldiv_for_loop): Removed.
4164 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4166 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
4167 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
4168 replaced by a call to newivs_to_depth_to_newiv.
4169 (clast_to_gcc_expression): Pass newivs, remove ivstack.
4170 (clast_to_gcc_expression_red): Same.
4171 (gcc_type_for_clast_expr): Same.
4172 (gcc_type_for_clast_eq): Same.
4173 (graphite_translate_clast_equation): Same.
4174 (graphite_create_guard_cond_expr): Same.
4175 (graphite_create_new_guard): Same.
4176 (graphite_create_new_loop): Same.
4177 (build_iv_mapping): Same.
4178 (translate_clast): Same.
4180 (loop_iv_stack_patch_for_consts): Removed. *
4181 sese.c (iv_stack_entry_is_constant): Removed.
4182 (iv_stack_entry_is_iv): Removed.
4183 (loop_iv_stack_push_iv): Removed.
4184 (loop_iv_stack_insert_constant): Removed.
4185 (loop_iv_stack_pop): Removed.
4186 (loop_iv_stack_get_iv): Removed.
4187 (loop_iv_stack_get_iv_from_name): Removed.
4188 (debug_loop_iv_stack): Removed.
4189 (free_loop_iv_stack): Removed.
4190 (loop_iv_stack_remove_constants): Removed. *
4191 sese.h (iv_stack_entry_kind): Removed.
4192 (iv_stack_entry_data_union): Removed.
4193 (iv_stack_entry_struct): Removed.
4194 (iv_stack_entry_p): Removed.
4195 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
4196 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
4197 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
4198 loop_iv_stack_pop, free_loop_iv_stack): Removed.
4199 (gbb_loop_at_index): Fix indenting.
4200 (gbb_loop_index): Removed.
4202 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4204 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
4205 Call clast_name_to_index.
4207 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4209 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
4210 do not pass params. Get params from SESE_PARAMS.
4211 (clast_to_gcc_expression): Same.
4212 (clast_to_gcc_expression_red): Same.
4213 (gcc_type_for_clast_eq): Same.
4214 (graphite_translate_clast_equation): Same.
4215 (graphite_create_new_loop): Same.
4216 * sese.c (rename_variables_in_stmt): Fix comment.
4218 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4220 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
4222 Call save_clast_name_index.
4223 (translate_clast): Pass newivs_index.
4224 (gloog): Create and free newivs_index.
4226 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4228 * graphite-clast-to-gimple.c (clast_name_index): New structure.
4229 (clast_name_index_p): New type.
4230 (debug_clast_name_index): New.
4231 (debug_clast_name_indexes_1): New.
4232 (debug_clast_name_indexes): New.
4233 (clast_name_index_elt_info): New.
4234 (eq_clast_name_indexes): New.
4235 (clast_name_to_index): New.
4236 (new_clast_name_index): New.
4237 (save_clast_name_index): New.
4238 (init_sese_params_index): New.
4239 (gloog): Call init_sese_params_index.
4240 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
4241 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
4242 (free_sese): Free SESE_PARAMS_INDEX.
4243 * sese.h (struct sese): Add params_index.
4244 (SESE_PARAMS_INDEX): New.
4246 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4248 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
4249 (graphite_create_new_loop): Pass the newivs vector. Push the
4250 newly created IV to newivs.
4251 (translate_clast): Pass the newivs vector.
4252 (gloog): Create and destroy the newivs vector.
4254 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4256 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
4257 (graphite_loop_normal_form): Initialize loop->aux with the unique
4258 IV that has been created.
4260 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
4262 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
4263 scev with parameters in the base part. They where forbidden
4266 2009-05-11 Li Feng <nemokingdom@gmail.com>
4268 * gcc.dg/graphite/graphite.exp: Set different default
4269 compile options by file names.
4270 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
4271 * gcc.dg/graphite/id-{1-9}.c: Ditto.
4272 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
4273 * gcc.dg/graphite/scop-matmult.c: Ditto.
4275 2009-05-08 Li Feng <nemokingdom@gmail.com>
4277 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
4278 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
4279 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
4280 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
4282 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4284 * graphite-scop-detection (build_scops_1): Fix little bug introduced
4287 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4289 * graphite-scop-detection.c (graphite_can_represent_scev): Only
4290 allow integer constant strides.
4291 (graphite_can_represent_expr): Depend on outermost_loop.
4292 (stmt_simple_memref_p, graphite_cannot_represent_loop,
4293 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
4294 build_scops_1): Same.
4295 (scopdet_basic_block_info): Same and insert layered SCoP
4297 (try_generate_gimple_bb): Cleanup.
4298 (build_scops): Enable data references.
4300 * gcc.dg/graphite/id-5.c: New.
4301 * gcc.dg/graphite/id-9.c: New.
4302 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
4303 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
4305 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4307 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
4308 that we have not yet built for this SCoP.
4310 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4312 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
4313 for complex numbers.
4315 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4317 * graphite-ppl.c: Fix build if cloog is not available.
4319 2009-05-04 Li Feng <nemokingdom@gmail.com>
4321 * tree-parloops.c (loop_parallel_p): Remove construction of
4322 NITER and REDUCTION_LIST.
4323 (try_get_loop_niter): New.
4324 (try_create_reduction_list): New.
4325 (parallelize_loops): Bypass the failed checkings in autopar
4326 when can_be_parallel in loop structure is set to true.
4328 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4330 * gcc.dg/graphite/id-6.c: Update testcase.
4331 * gcc.dg/graphite/scop-3.c: Dito.
4333 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4335 * graphite-scop-detection.c (stmt_simple_for_scop_p):
4336 Enable EQ_EXPR and NE_EXPR again.
4338 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4340 * graphite-scop-detection.c (graphite_can_represent_scev):
4341 Add check if scev is affine multivariate.
4342 (harmful_stmt_in_bb): Check if we can represent the conditions.
4343 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
4345 * gcc.dg/graphite/id-7.c: New.
4347 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4349 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
4350 Check all bbs in region, not only the bbs that are represented in
4352 (build_poly_scop): Add newline.
4353 * gcc.dg/graphite/id-8.c: New.
4355 2009-04-30 Li Feng <nemokingdom@gmail.com>
4357 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
4358 when loop initialize.
4359 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
4360 * common.opt: Declare flag_graphite_force_parallel.
4361 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
4363 * graphite-poly.c (apply_poly_transforms): Introduce
4364 flag_graphite_force_parallel.
4365 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
4366 * toplev.c (process_options): ditto and replace a not correctly
4369 2009-04-30 Li Feng <nemokingdom@gmail.com>
4371 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
4372 Change the call of gbb_loop_at_index and/or gbb_loop_index due
4373 to the redefinition.
4374 (compute_cloog_iv_types_1): ditto.
4375 (build_iv_mapping): ditto.
4376 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
4378 (free_gimple_bb): Removed GBB_LOOPS related free part.
4379 (build_bb_loops): Removed.
4380 * sese.h (struct gimple_bb): Removed loops.
4381 (GBB_LOOPS): Removed.
4382 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
4383 (gbb_loop_index): ditto.
4385 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4387 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
4388 allow non constant strides.
4389 * gcc.dg/graphite/scop-20.c: New.
4391 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4393 * graphite-scop-detection.c (dot_all_scops): Fix system call
4394 return value warning.
4397 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4399 * gcc.dg/graphite/id-6.c: Fix pattern.
4400 * gcc.dg/graphite/scop-3.c: Same.
4402 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4404 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
4405 build_pairwise_constraint, dr_equality_constraints,
4406 build_pairwise_scheduling_equality,
4407 build_pairwise_scheduling_inequality, lexicographically_gt_p,
4408 build_lexicographically_gt_constraint, dependence_polyhedron,
4409 graphite_legal_transform_dr, graphite_legal_transform_bb,
4410 graphite_legal_transform): New.
4411 * graphite-poly.h (graphite_legal_transform): Declared.
4412 * graphite-sese-to-poly.c (build_poly_scop): Call to
4413 graphite_legal_transform is disabled for the moment.
4415 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4417 * graphite-poly.h (pbb_nb_scattering_dims): New.
4418 (pbb_nb_scattering): Use it.
4420 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4422 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
4423 Pointset_Powerset version of ppl_insert_dimensions.
4424 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
4426 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4428 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
4430 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4432 * graphite-poly.h: Fix comment.
4434 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4436 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
4438 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4440 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
4443 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4445 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
4446 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
4449 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
4451 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
4452 handle EQ_EXPR and NE_EXPR.
4454 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
4456 * graphite-poly.h (poly_dr): Fix comment.
4458 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4459 Tobias Grosser <grosser@fim.uni-passau.de>
4461 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
4462 with a zero dimension polyhedron.
4463 (find_scop_parameters): Move the call to scop_set_nb_params here.
4464 (build_loop_iteration_domains): Store in loop->aux the iteration
4466 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
4467 by any loop in scop.
4468 (build_poly_scop): Do not call scop_set_nb_params.
4470 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4471 Tobias Grosser <grosser@fim.uni-passau.de>
4473 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
4474 add_condition_to_domain not GT_EXPR.
4476 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4478 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
4479 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
4480 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
4481 upper_bound_assign to calculate unions.
4482 * gcc.dg/graphite/id-6.c: New.
4484 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4486 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
4487 handle abnormal edges.
4489 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4491 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
4492 (free_poly_bb): Also free poly_drs.
4493 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
4494 (poly_dr): Polyhedron to Pointset_Powerset.
4495 (pdr_accessp_nb_subscripts): Same.
4496 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
4499 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4501 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
4502 names into more meaningful names.
4504 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4506 * gfortran.dg/graphite/interchange-1.c: New.
4507 * gfortran.dg/graphite/interchange-2.c: New.
4509 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4511 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
4513 * tree-parloops.c (rewrite_phi_with_iv): New.
4514 (rewrite_all_phi_nodes_with_iv): New.
4515 (canonicalize_loop_ivs): Call them.
4517 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4519 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
4520 graphite_find_data_references_in_stmt.
4521 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
4522 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
4524 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4526 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
4528 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4530 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
4531 instead of bb_in_region.
4532 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
4533 (build_sese_conditions): Use flag_bb_in_sese.
4534 * sese.c (register_bb_in_sese): Removed.
4535 (new_sese): Remove initialization of SESE_REGION_BBS.
4536 (free_sese): Do not free SESE_REGION_BBS.
4537 * sese.h (struct sese): Remove field region_basic_blocks.
4538 (SESE_REGION_BBS): Removed.
4539 (bb_in_sese_p): Implement in function of bb_in_region.
4541 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4543 * graphite-scop-detection.c (limit_scops): Deal only with single exit
4546 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
4548 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
4550 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
4551 (add_condition_to_domain): New.
4552 (add_condition_to_pbb): New.
4553 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
4554 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
4556 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
4558 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
4559 ppl_Pointset_Powerset.
4560 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
4561 * graphite-poly.h (poly_bb): poly_bb.domain Same.
4562 (pbb_nb_loops): Same.
4563 * graphite-sese-to-poly.c (build_loop_iteration_domains,
4564 add_conditions_to_domain): Same.
4565 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
4566 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
4567 ppl_const_Polyhedron_t.
4568 (ppl_print_powerset_matrix): New.
4569 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
4570 ppl_print_powerset_matrix): New.
4571 (ppl_print_polyhedron_matrix): Updated.
4573 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
4575 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
4577 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
4579 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
4580 (print_iteration_domains, debug_iteration_domain,
4581 debug_iteration_domains): New.
4582 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
4583 debug_iteration_domains): Declared.
4584 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
4587 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
4588 Sebastian Pop <sebastian.pop@amd.com>
4590 * graphite-poly.h (print_iteration_domain): New.
4591 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
4592 (build_sese_conditions_1, build_sese_conditions_after,
4593 build_sese_conditions_before): New.
4594 (build_sese_conditions): Rewritten.
4596 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
4597 Tobias Grosser <grosser@fim.uni-passau.de>
4599 Cleanup of code generation liveouts.
4600 * graphite-clast-to-gimple.c (translate_clast): Use a single
4601 rename_map instead of one per translated statement.
4602 Do not use SESE_LIVEOUT_RENAMES.
4603 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
4604 (gloog): Do not use SESE_LIVEOUT_RENAMES.
4605 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
4606 phi node of a reduction: when a loop contains a reduction used outside
4607 the loop, there should be a scalar close phi node on the exit block.
4608 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
4609 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
4610 (free_sese): Do not free them.
4611 (sese_build_liveouts_use): Do not use them.
4612 (sese_build_liveouts_bb): Same.
4613 (sese_build_liveouts): Same.
4614 (sese_insert_phis_for_liveouts): Same.
4615 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
4616 (defined_in_loop_p): New.
4617 (alive_after_loop): New.
4618 (close_phi_not_yet_inserted_p): New.
4619 (struct alep, alep_p): New.
4620 (add_loop_exit_phis): Remove from the rename_map all the names defined
4621 in the code generated loop.
4622 (insert_loop_close_phis): Traverse the rename_map passed to it.
4623 Don't use SESE_LIVEOUT_RENAMES.
4624 (default_liveout_before_guard): Renamed default_before_guard.
4625 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
4626 (graphite_copy_stmts_from_block): Do not directly call set_rename.
4627 (register_sese_liveout_renames): Removed.
4628 (copy_bb_and_scalar_dependences): Do not call it.
4629 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
4631 (SESE_LIVEOUT): Removed.
4632 (SESE_LIVEOUT_RENAMES): Removed.
4633 (SESE_REDUCTION_LIST): Removed.
4634 (sese_build_liveouts): Removed.
4635 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
4636 (insert_loop_close_phis): Pass a htab_t instead of a sese.
4637 (insert_guard_phis): Same.
4638 (rename_map_elt): Declare a VEC of them.
4639 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
4640 trees not pointers to trees.
4642 Rewrite in canonical close SSA form:
4643 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
4644 (limit_scops): Close the scop after the block containing the close phi
4646 (canonicalize_loop_closed_ssa): New.
4647 (canonicalize_loop_closed_ssa_form): New.
4648 (build_scops): Call canonicalize_loop_closed_ssa_form.
4650 * graphite-sese-to-poly.c: Fix typos.
4652 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
4654 * graphite-poly.c (print_scattering_function, print_pbb_domain):
4656 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
4657 (print_pbb): Add conditions.
4659 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
4660 Sebastian Pop <sebastian.pop@amd.com>
4662 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
4663 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
4664 (build_scop_bbs_1): New.
4665 (build_scop_bbs): Rewrite.
4666 * sese.h (bb_in_region): New.
4668 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4670 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
4672 (print_scop): Style.
4673 * graphite-poly.h (poly_bb): Add drs vector.
4674 (PBB_DRS): Add accessor.
4675 * graphite-sese-to-poly.c (build_poly_dr): New.
4676 (build_pbb_drs, build_scop_drs): New.
4677 (build_poly_scop): call build_scop_drs (Disabled at the moment).
4679 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4681 * tree-ssa-loop.c: Include forgotten toplev.h
4683 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4685 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
4686 * gcc.dg/graphite/pr37883.c: Remove -floop-*
4687 * gcc.dg/graphite/pr37928.c: Same
4688 * gcc.dg/graphite/pr38409.c: Same
4689 * gcc.dg/graphite/pr38498.c: Same
4690 * gcc.dg/graphite/pr38559.c: Same
4691 * gcc.dg/graphite/pr39335.c: Same
4692 * gcc.dg/graphite/pr39335_1.c: Same
4693 * gfortran.dg/graphite/block-2.f: Same
4694 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
4697 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
4699 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
4700 build_access_matrix, build_scop_data_accesses): Remove access function
4701 building. (We get a new version soon).
4702 (build_bb_loops, scan_tree_for_params_right_scev): Update.
4703 * sese.h (nb_loops_around_loop_in_sese): Remove.
4704 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
4706 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
4707 Sebastian Pop <sebastian.pop@amd.com>
4709 * graphite-scop-detection.c (struct scopdet_info): Rename last
4711 (scopdet_basic_block_info, build_scops_1): Don't use
4712 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
4714 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
4715 Sebastian Pop <sebastian.pop@amd.com>
4717 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
4718 * sese.c (sese_build_liveouts_use): Renamed from
4719 sese_build_livein_liveouts_use. Remove liveins.
4720 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
4721 Call sese_build_liveouts_use.
4722 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
4723 Call sese_build_liveouts_bb.
4724 (new_sese, free_sese): Remove liveins.
4725 (sese_add_exit_phis_var): Deleted.
4726 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
4728 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
4730 * sese.h (sese): Remove num_ver and livein.
4731 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
4733 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
4735 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
4737 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
4739 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
4740 (build_scop_scattering): Do not use compare_prefix_loops any more.
4741 (nb_common_loops): New.
4743 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4745 * sese.c (get_new_name_from_old_name): Renamed get_rename.
4746 (register_old_and_new_names): Renamed set_rename.
4748 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4750 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
4751 of the decl from the previous commit.
4753 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4755 * graphite-scop-detection.c (dot_scop): New.
4756 * graphite-scop-detection.h (dot_scop): Declared.
4758 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4760 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
4762 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4764 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
4765 condition at the end of the loop.
4766 * graphite.c (graphite_initialize, graphite_finalize): Print to
4767 dump_file the compiled function.
4768 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
4769 of create_empty_loop_on_edge.
4770 (translate_clast): Update the code generation of loops for the new
4772 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
4774 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4776 Reverted the patch from 2009-03-19.
4778 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
4780 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
4782 (print_scop): Style.
4783 * graphite-poly.h (poly_bb): Add drs vector.
4784 (PBB_DRS): Add accessor.
4785 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
4786 (build_access_matrix_with_af, build_access_matrix,
4787 build_scop_data_accesses): Delete.
4788 (build_poly_dr): New.
4789 (build_pbb_drs, build_scop_drs): New.
4790 (build_poly_scop): call build_scop_drs.
4792 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
4794 * graphite-scop-detection.c (dot_all_scops_1): Close the table
4795 once per basic block.
4797 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
4799 * graphite-scop-detection.c (graphite_can_represent_scev): New.
4800 (graphite_can_represent_expr): Renamed from loop_affine_expr
4802 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
4803 (graphite_cannot_represent_loop): Add scop_entry to parameters.
4804 (scopdet_basic_block_info): Actually define entry_block.
4805 (stmt_simple_memref_p): Moved here from ...
4807 * tree-data-ref.c (stmt_simple_memref_p): here.
4808 * tree-data-ref.h (stmt_simple_memref_p): Removed.
4810 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
4812 * gcc.dg/graphite/id-4.c: New.
4814 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
4816 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
4817 (register_old_and_new_names): Update the content of the map.
4818 When there was already a rename_map_elt in the map at that
4820 (copy_bb_and_scalar_dependences): Do rename_variables after
4821 expand_scalar_variables.
4822 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4823 of the map. When there was already a rename_map_elt in the
4824 map at that location, free it.
4825 (translate_clast): Pass the rename_map. Do not initialize and free
4826 a rename_map per stmt_user.
4827 (gloog): Initialize and free one rename_map and pass it to
4830 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
4832 * sese.c (expand_scalar_variables_stmt,
4833 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
4835 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
4836 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
4837 the gimple_stmt_iterator of the statement to be expanded.
4838 * graphite-scop-detection.c (is_simple_operand): Do handle
4841 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4843 * graphite-scop-detection.c (is_simple_operand): Do not handle
4845 * gcc.dg/graphite/id-2.c: New.
4847 * graphite-sese-to-poly.c (build_bb_loops,
4848 add_value_to_dim, scan_tree_for_params_right_scev,
4849 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
4850 find_params_in_bb, build_loop_iteration_domains,
4851 add_conditions_to_domain): Remove subtract.
4853 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4855 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
4856 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
4857 pbb_loop_at_index -> gbb_loop_at_index.
4858 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
4859 (debug_loop_vec): Delete.
4860 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
4861 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
4862 (PBB_LOOPS): Removed.
4863 (PBB_BLACK_BOX): Insert cast.
4864 (pbb_set_black_box): New setter.
4865 (pbb_loop_at_index, pbb_loop_index): Removed.
4866 (scop_set_region, scop_set_nb_params): New.
4867 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
4868 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
4869 (build_poly_scop): Use scop_set_nb_params.
4870 * sese.h (gimple_bb): Add LOOPS.
4871 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
4873 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4875 Revert previous commit.
4877 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
4879 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
4880 (register_old_and_new_names): Update the content of the map.
4881 When there was already a rename_map_elt in the map at that
4883 (copy_bb_and_scalar_dependences): Do rename_variables after
4884 expand_scalar_variables.
4885 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4886 of the map. When there was already a rename_map_elt in the
4887 map at that location, free it.
4888 (translate_clast): Pass the rename_map. Do not initialize and free
4889 a rename_map per stmt_user.
4890 (gloog): Initialize and free one rename_map and pass it to
4893 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4895 Remove forgotten line in revert.
4897 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
4899 Revert previous commit.
4901 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
4903 * sese.c (register_old_and_new_names): Update the content
4904 of the map. When there was already a rename_map_elt in the
4905 map at that location, free it.
4906 (copy_bb_and_scalar_dependences): Do rename_variables after
4907 expand_scalar_variables.
4908 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4909 of the map. When there was already a rename_map_elt in the
4910 map at that location, free it.
4911 (translate_clast): Pass the rename_map. Do not initialize and free
4912 a rename_map per stmt_user.
4913 (gloog): Initialize and free one rename_map and pass it to
4916 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
4918 * graphite-clast-to-gimple.c (translate_clast): context_loop
4921 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
4922 Sebastian Pop <sebastian.pop@amd.com>
4924 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
4925 of the use of ppl_Polyhedron_map_space_dimensions.
4927 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
4928 Sebastian Pop <sebastian.pop@amd.com>
4930 * graphite-poly.c (unify_scattering_dimensions): Fix types.
4931 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
4932 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
4933 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
4934 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
4935 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
4936 pbb_nb_params): New.
4937 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
4938 nb_loops_around_pbb): Adapt return types.
4940 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
4942 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
4943 graphite-clast-to-gimple.o, graphite-data-ref.o,
4944 graphite-scop-detection.o, graphite-poly.o): Add
4947 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
4949 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
4950 graphite-clast-to-gimple.o, graphite-data-ref.o,
4951 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
4953 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
4955 * gcc.dg/graphite/pr37485.c: Remove -floop-block
4956 * gcc.dg/graphite/pr37828.c: Same.
4957 * gcc.dg/graphite/pr37684.c: Same.
4958 * gcc.dg/graphite/block-0.c: Same.
4959 * gcc.dg/graphite/block-1.c: Same.
4960 * gcc.dg/graphite/block-2.c: Same.
4961 * gcc.dg/graphite/block-3.c: Same.
4962 * gcc.dg/graphite/block-4.c: Same.
4963 * gcc.dg/graphite/block-5.c: Same.
4964 * gcc.dg/graphite/block-6.c: Same.
4965 * gfortran.dg/graphite/pr38083.f90: Same.
4966 * gfortran.dg/graphite/block-1.f90: Same.
4967 * gfortran.dg/graphite/block-3.f90: Same.
4968 * gfortran.dg/graphite/pr37852.f90: Same.
4969 * gfortran.dg/graphite/block-4.f90: Same.
4970 * gfortran.dg/graphite/pr37980.f90: Same.
4971 * gfortran.dg/graphite/pr38953.f90: Same.
4972 * gfortran.dg/graphite/pr37857.f90: Same.
4973 * opts.c: Remove -floop-block from -O2.
4974 * graphite-poly.c: Fail if -floop-block -floop-interchange or
4975 -floop-strip-mine are used.
4977 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
4978 Sebastian Pop <sebastian.pop@amd.com>
4980 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
4982 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
4983 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
4984 strip_mine_profitable_p, is_interchange_valid,
4985 graphite_trans_bb_block, graphite_trans_loop_block,
4986 graphite_trans_scop_block): Temporary removed.
4987 (extend_scattering, unify_scattering_dimensions): New.
4988 (print_scattering_function, graphite_read_transforms):
4989 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4990 (graphite_generate_scattering_fns): Removed.
4991 (apply_poly_transforms): Cleanup.
4992 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4993 (schedule_to_scattering): Moved.
4994 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
4995 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
4996 (pbb_nb_scattering): New.
4997 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
4998 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
5000 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
5002 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5003 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
5004 -> PBB_TRANSFORMED_SCATTERING.
5005 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
5006 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
5007 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
5008 (check_poly_representation): Do not return bool.
5009 (graphite_transform_loops): Reformat.
5010 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
5012 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
5014 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
5015 debug_pbb_domain, debug_pbb, debug_scop): New.
5016 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
5017 debug_pbb_domain, debug_pbb, debug_scop): Declared.
5019 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5022 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
5023 when the type precision of the induction variable should be
5024 larger than the type precision of nit.
5025 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
5026 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
5027 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
5029 * gcc.dg/graphite/pr39335_1.c: New.
5030 * gcc.dg/graphite/pr39335.c: New.
5032 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5034 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
5035 SSA_NAMES not struct reduction_info.
5037 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5039 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
5041 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5042 Tobias Grosser <grosser@fim.uni-passau.de>
5044 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
5045 (free_sese): Free SESE_REDUCTION_LIST.
5046 * sese.h (struct sese): Add field reduction_list.
5047 (SESE_REDUCTION_LIST): New.
5048 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
5049 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
5051 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5052 Tobias Grosser <grosser@fim.uni-passau.de>
5054 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
5057 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5058 Tobias Grosser <grosser@fim.uni-passau.de>
5060 * tree-parloops.c (struct brli, build_reduction_list_info,
5061 analyze_reduction_list, gather_scalar_reductions): New.
5062 (loop_parallel_p): Build a reduction list containing only
5063 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
5064 (gen_parallel_loop): Call the analysis analyze_reduction_list.
5065 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
5066 * tree-flow.h (gather_scalar_reductions): Declared.
5068 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
5071 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
5072 number_of_iterations_exit from a gcc_assert.
5074 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
5075 Jan Sjodin <jan.sjodin@amd.com>
5077 * output.h (graphite_out_file, graphite_in_file): Declared.
5078 * toplev.c (graphite_out_file, graphite_in_file): New.
5079 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
5080 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
5081 Don't call schedule_to_scattering.
5082 * common.opt (fgraphite-write, fgraphite-read): New.
5083 * graphite-poly.c: Include output.h.
5084 (print_scattering_function, print_scattering_functions,
5085 debug_scattering_function, debug_scattering_functions,
5086 graphite_write_transforms, graphite_read_transforms,
5087 graphite_generate_scattering_fns): New.
5088 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
5089 Call graphite_generate_scattering_fns, graphite_write_transforms,
5090 graphite_read_transforms.
5091 (new_poly_bb): Initialize PBB_SCATTERING.
5092 (free_poly_bb): Free PBB_SCATTERING.
5093 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
5094 * graphite-poly.h (struct poly_bb): Add field scattering.
5095 (PBB_SCATTERING): New.
5096 (print_scattering_function, print_scattering_functions,
5097 debug_scattering_function, debug_scattering_functions): Declared.
5098 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
5099 GMP values, not integers!
5100 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
5101 ppl_read_polyhedron_matrix): New.
5102 * graphite-ppl.h (ppl_print_polyhedron_matrix,
5103 debug_ppl_polyhedron_matrix,
5104 ppl_read_polyhedron_matrix): Declared.
5105 * Makefile.in (graphite-poly.o): Depends on output.h.
5107 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5108 Tobias Grosser <grosser@fim.uni-passau.de>
5111 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5112 scalar evolutions in the scop_entry->loop_father.
5114 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5115 Tobias Grosser <grosser@fim.uni-passau.de>
5117 * graphite.h (ref_nb_loops): Remove declaration.
5118 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
5119 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
5120 debug_gbb): Moved to sese.h.
5123 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5124 Tobias Grosser <grosser@fim.uni-passau.de>
5126 * graphite-data-ref.[ch]: Disable.
5128 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5129 Tobias Grosser <grosser@fim.uni-passau.de>
5131 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5132 scalar evolutions in the scop_entry->loop_father.
5134 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5136 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
5137 (graphite_cannot_represent_loop_niter): Renamed
5138 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
5139 (limit_scops): build_sese_loop_nests does not return a bool.
5140 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
5141 * sese.c (nb_reductions_in_loop): ... from here.
5142 (graphite_loop_normal_form): ... from here.
5143 (sese_record_loop): Does not fail, so does not return a bool.
5144 (build_sese_loop_nests): Same.
5145 * sese.h (build_sese_loop_nests): Update declaration.
5146 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
5147 (build_graphite_loop_normal_form): New.
5148 (gloog): Call build_graphite_loop_normal_form.
5149 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
5150 build_sese_loop_nests.
5152 * gcc.dg/graphite/id-1.c: New.
5154 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5155 Tobias Grosser <grosser@fim.uni-passau.de>
5157 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
5158 The SCoP detection fix is sufficient.
5160 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5162 PR tree-optimization/39260
5163 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
5164 the basic block contains a condition with a real type.
5165 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
5167 * gcc.dg/graphite/pr39260.c: New.
5169 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5171 * graphite-poly.c: Inlcude params.h.
5172 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
5174 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
5175 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
5177 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5178 Tobias Grosser <grosser@fim.uni-passau.de>
5180 * graphite-scop-detection.c (dot_all_scops_1,
5181 dot_all_scops): Moved here.
5182 * graphite-scop-detection.h (dot_all_scops): Declared here.
5183 * graphite.c (graphite_initialize, graphite_finalize): New.
5184 (graphite_transform_loops): Cleaned up.
5185 * sese.c (debug_oldivs): Moved here.
5186 * graphite-poly.c (graphite_apply_transformations): Renamed
5187 apply_poly_transforms.
5188 (debug_loop_vec): Moved here.
5189 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
5190 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
5191 find_scop_parameters, build_scop_iteration_domain,
5192 add_conditions_to_constraints, build_scop_canonical_schedules,
5193 build_scop_data_accesses): Now static.
5194 (build_poly_scop, check_poly_representation): New.
5196 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5198 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
5199 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
5200 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
5201 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
5202 scan_tree_for_params_right_scev, scan_tree_for_params_int,
5203 scan_tree_for_params, struct irp_data, dx_record_params,
5204 find_params_in_bb, find_scop_parameters, gbb_from_bb,
5205 build_loop_iteration_domains, add_conditions_to_domain,
5206 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
5207 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
5208 build_sese_conditions, add_conditions_to_constraints,
5209 build_scop_iteration_domain, build_access_matrix_with_af,
5210 build_access_matrix,
5211 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
5213 * graphite-sese-to-poly.c: New.
5214 * graphite-sese-to-poly.h: New.
5216 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
5218 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5220 * graphite.c: Split graphite code generation to a new file.
5221 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
5222 max_precision_type, clast_to_gcc_expression_red,
5223 clast_to_gcc_expression, gcc_type_for_clast_expr,
5224 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
5225 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
5226 graphite_create_new_guard, clast_get_body_of_loop,
5227 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
5228 graphite_create_new_loop, build_iv_mapping, copy_renames,
5229 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5230 compute_cloog_iv_types, free_scattering, save_var_name,
5231 initialize_cloog_names, build_scop_context, build_cloog_prog,
5232 set_cloog_options, debug_clast_stmt, scop_to_clast,
5233 print_generated_program, debug_generated_program,
5234 gloog): Moved to graphite-clast-to-gimple.c.
5236 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
5238 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
5239 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
5240 loop_iv_stack_pop, loop_iv_stack_get_iv,
5241 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
5242 free_loop_iv_stack, loop_iv_stack_remove_constants,
5243 debug_rename_elt, debug_rename_map_1, debug_rename_map,
5244 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
5245 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
5246 eq_ivtype_map_elts, sese_add_exit_phis_edge,
5247 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
5248 get_vdef_before_sese, sese_adjust_vphi,
5249 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
5250 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
5251 is_iv, expand_scalar_variables_ssa_name,
5252 expand_scalar_variables_expr, expand_scalar_variables_stmt,
5253 expand_scalar_variables, rename_variables, remove_condition,
5254 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
5255 add_loop_exit_phis, insert_loop_close_phis, struct igp,
5256 default_liveout_before_guard, add_guard_exit_phis,
5257 insert_guard_phis, register_old_and_new_names,
5258 graphite_copy_stmts_from_block, register_sese_liveout_renames,
5259 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
5260 if_region_set_false_region, create_if_region_on_edge,
5261 move_sese_in_condition): Moved to sese.c.
5263 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
5264 if_region_exit, if_region_get_condition_block,
5265 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
5266 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
5267 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
5268 ivtype_map_elt, new_ivtype_map_elt,
5269 recompute_all_dominators): Moved to sese.h.
5271 * graphite-clast-to-gimple.c: New.
5272 * graphite-clast-to-gimple.h: New.
5273 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
5274 * sese.c: Modified as said above.
5277 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5279 * graphite.c: Split scop detection to a new file.
5280 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
5281 move_sd_regions, loop_affine_expr, exclude_component_ref,
5282 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
5283 graphite_cannot_represent_loop_niter, struct scopdet_info,
5284 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
5285 find_single_entry_edge, find_single_exit_edge,
5286 create_single_entry_edge, sd_region_without_exit,
5287 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
5288 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
5289 Moved to graphite-scop-detection.c.
5291 * graphite-scop-detection.c: New.
5292 * graphite-scop-detection.h: New.
5293 * Makefile.in: Add new rule for graphite-scop-detection.o.
5295 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
5296 tree-scalar-evolution.h.
5297 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
5298 build_sese_loop_nests): Moved here from graphite.c.
5299 (param_index): Renamed parameter_index_in_region.
5301 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5302 Sebastian Pop <sebastian.pop@amd.com>
5304 * gcc.dg/graphite/block-0.c: Expected to fail now.
5305 * gcc.dg/graphite/block-1.c: Same.
5306 * gcc.dg/graphite/block-5.c: Same.
5307 * gcc.dg/graphite/block-6.c: Same.
5309 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5310 Sebastian Pop <sebastian.pop@amd.com>
5312 * graphite.h: Separate from graphite_bb_p the polyhedral
5313 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
5314 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
5315 graphite-data-ref.h.
5316 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
5317 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
5318 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
5319 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5320 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
5321 scop_nb_params): Moved to graphite-poly.h.
5322 * graphite-data-ref.c: Same.
5323 * graphite-data-ref.h: New.
5325 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
5326 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
5327 is_interchange_valid, graphite_trans_bb_block,
5328 graphite_trans_loop_block, scop_max_loop_depth,
5329 graphite_trans_scop_block, graphite_apply_transformations,
5330 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
5332 * graphite-poly.h: New.
5333 * graphite-poly.c: New.
5334 * Makefile.in (OBJS-common): Add graphite-poly.o.
5335 (graphite-poly.o): New rule.
5336 * tree-data-ref.h (struct data_reference): Remove unused scop field.
5339 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5340 Tobias Grosser <grosser@fim.uni-passau.de>
5342 * graphite.c: Replace gb -> gbb.
5344 * graphite-data-ref.c: Same.
5346 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5347 Tobias Grosser <grosser@fim.uni-passau.de>
5349 * Makefile.in (OBJS-commmon): Add sese.o.
5351 (graphite.o): Add sese.h.
5352 * graphite.c (bb_in_ss_p, loop_in_sese_p,
5353 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
5354 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
5356 (block_before_scop): Add missing return.
5357 (new_scop, free_scop): Remove SESE data structures.
5358 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
5359 find_scop_parameters, build_loop_iteration_domains,
5360 add_conditions_to_domain, register_scop_liveout_renames,
5361 copy_bb_and_scalar_dependences): Scop -> SESE.
5363 (add_conditions_to_domain): SCoP -> SESE and remove check
5364 (scop_contains_non_iv_scalar_phi_nodes): New.
5365 (build_scop_conditions_1, build_scop_conditions): Remove check for
5366 non iv scalar phi nodes.
5367 (print_scop_statistics): New.
5368 (graphite_transform_loops): Cleanup.
5370 * graphite.h: Move to sese & cleanup.
5374 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5375 Tobias Grosser <grosser@fim.uni-passau.de>
5377 * graphite.c (build_scop_conditions_1): Conditions are only
5378 at the end of a basic block.
5380 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5381 Tobias Grosser <grosser@fim.uni-passau>
5383 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
5385 (GBB_ALPHA): Removed.
5387 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5388 Tobias Grosser <grosser@fim.uni-passau.de>
5390 * graphite-data-ref.c (graphite_test_dependence): Don't use
5391 GBB_DYNAMIC_SCHEDULE.
5392 * graphite.c (new_graphite_bb): Same.
5393 (free_graphite_bb): Same.
5394 (build_scop_dynamic_schedules): Removed.
5395 (graphite_transform_loops): Don't call it.
5396 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
5397 (GBB_DYNAMIC_SCHEDULE): Removed.
5399 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5400 Tobias Grosser <grosser@fim.uni-passau.de>
5402 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
5403 (print_graphite_bb): Same.
5404 (build_cloog_prog): Same.
5406 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5407 Tobias Grosser <grosser@fim.uni-passau.de>
5409 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
5411 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5412 Tobias Grosser <grosser@fim.uni-passau.de>
5414 * graphite.c (build_scop_context): Don't use CloogMatrix.
5415 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
5416 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
5418 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5419 Tobias Grosser <grosser@fim.uni-passau.de>
5421 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
5422 liveout_renames, add_params fields...
5423 (struct sese): ... here.
5424 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
5425 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
5427 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5428 Tobias Grosser <grosser@fim.uni-passau.de>
5430 * graphite.c (print_scop): Do not print the CLooG program.
5431 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
5432 build_cloog_prog, gloog): Don't use SCOP_PROG.
5433 (find_transform): Renamed scop_to_clast.
5434 (print_generated_program, debug_generated_program): New.
5435 (graphite_transform_loops): Adapt to new interface.
5436 * graphite.h (struct scop): Remove program field.
5437 (SCOP_PROG): Removed.
5438 (print_generated_program, debug_generated_program): Declared.
5440 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5442 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
5443 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
5444 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
5445 free_graphite_bb, build_scop_canonical_schedules,
5446 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
5447 schedules are now represented using a ppl_Linear_Expression_t.
5448 * graphite.h (struct graphite_bb): Same.
5449 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
5450 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
5452 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5454 * graphite.c: Free local memory.
5455 * graphite-ppl.c: Same.
5457 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5459 * graphite.c (const_column_index, get_first_matching_sign_row_index,
5460 get_lower_bound_row, get_upper_bound_row, copy_constraint,
5461 swap_constraint_variables, scale_constraint_variable): Removed.
5462 (graphite_trans_bb_strip_mine): Remove pong.
5463 * graphite-ppl.c: Include missing header files.
5464 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
5465 * graphite-ppl.h (ppl_strip_loop): Declared.
5466 * Makefile.in (graphite-ppl.o): Adjust dependences.
5468 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
5470 * graphite.c (build_loop_iteration_domains): Remove ping pong.
5471 (build_scop_iteration_domain): Same.
5473 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5475 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5477 (add_value_to_dim, scan_tree_for_params_right_scev,
5478 scan_tree_for_params_int): New.
5479 * graphite-ppl.c (oppose_constraint): New.
5480 (insert_constraint_into_matrix): Implement missing cases.
5481 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5483 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5485 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
5486 use ppl_move_dimension.
5488 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5490 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
5493 * graphite-ppl.c: Same.
5494 * graphite-ppl.h: Same.
5496 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5498 Revert last 3 commits.
5500 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5502 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5504 (add_value_to_dim, scan_tree_for_params_right_scev,
5505 scan_tree_for_params_int): New.
5506 * graphite-ppl.c (oppose_constraint): New.
5507 (insert_constraint_into_matrix): Implement missing cases.
5508 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5510 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5512 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
5514 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5515 Tobias Grosser <grosser@fim.uni-passau.de>
5517 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
5518 use ppl_move_dimension.
5519 * graphite-ppl.c (ppl_move_dimension): New.
5520 * graphite-ppl.h (ppl_move_dimension): Declared.
5522 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5524 * graphite.c: Do not include cloog/cloog.h.
5525 (print_graphite_bb): Remove ping pong, call PPL print function.
5527 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
5529 * Makefile.in (OBJS-common): Add graphite-ppl.o.
5530 (graphite.o): Add dependence on graphite-ppl.h.
5531 (graphite-ppl.o): New.
5532 (graphite-data-ref.c): Ping pong between PPL data structures
5534 * graphite-ppl.c: New.
5535 * graphite-ppl.h: New.
5536 * graphite.c: Include graphite-ppl.h.
5537 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
5538 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
5539 Ping pong between PPL data structures and matrices.
5540 (new_graphite_bb): Create a PPL constraint system.
5541 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
5542 (build_loop_iteration_domains): Use PPL functions.
5543 * graphite.h: Include graphite-ppl.h. Fix comments.
5544 (graphite_bb): Use a ppl_Constraint_System_t instead of
5545 CloogMatrix for representing the domain.
5546 (scop): Remove static_schedule.
5547 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
5549 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
5551 * graphite.c: Fix some comments.
5553 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
5556 * graphite.c (if_region_set_false_region): After moving a region
5557 in the false branch of a condition, remove the empty dummy
5559 (gloog): Remove wrong fix for PR38953.
5561 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
5563 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
5564 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
5565 register_bb_in_sese, new_sese, free_sese): Moved.
5566 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
5567 outermost_loop_in_scop, build_scop_iteration_domain,
5568 expand_scalar_variables_ssa_name, get_vdef_before_scop,
5569 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
5570 Use loop_in_sese_p instead of loop_in_scop_p.
5571 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
5572 (free_scop): Do not free SCOP_BBS_B.
5573 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
5574 ref_nb_loops): Moved here...
5575 * graphite.h (ref_nb_loops): ... from here.
5576 (struct scop): Remove bbs_b bitmap.
5577 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
5578 * gcc.dg/graphite/scop-19.c: New
5580 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
5582 * graphite.c (scopdet_basic_block_info): Fix bug in scop
5585 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
5587 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
5588 eq_loop_to_cloog_loop): Remove.
5589 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
5590 * graphite.h (struct scop): Remove loop2cloog_loop.
5591 (loop_domain_dim, loop_iteration_vector_dim): Remove.
5593 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
5595 * opts.c (decode_options): Only add graphite options to O2
5596 if we compile with graphite enabled.
5598 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
5600 * Merge from mainline (r143163:143684).
5602 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
5604 * graphite.c (debug_value): Removed.
5605 * graphite.h (debug_value): Removed.
5607 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5609 * passes.c (init_optimization_passes): Do not call pass_copy_prop
5610 after graphite: pass_copy_prop does not maintain a proper loop closed
5611 SSA form. pass_copy_prop should be fixed.
5613 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5615 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
5617 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5619 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
5620 (gloog): Split the exit of the scop when the scop exit is a loop exit.
5621 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
5624 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
5626 * graphite.c (gloog): Return true when code gen succeeded.
5627 (graphite_transform_loops): Do not call cleanup_tree_cfg if
5628 the code of the function did not changed. After cleanup_tree_cfg
5629 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
5632 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
5634 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
5635 gimple_call_lhs is NULL.
5637 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
5638 Tobias Grosser <tobi.grosser@amd.com>
5640 * graphite.c (graphite_trans_scop_block): Do not block single
5643 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
5644 Tobias Grosser <tobi.grosser@amd.com>
5646 * graphite.c (build_scop_canonical_schedules): Start schedules at
5649 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
5650 Tobias Grosser <tobi.grosser@amd.com>
5652 * graphite.c (compare_prefix_loops): New.
5653 (build_scop_canonical_schedules): Rewritten.
5654 (graphite_transform_loops): Move build_scop_canonical_schedules
5655 after build_scop_iteration_domain.
5657 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5658 Tobias Grosser <tobi.grosser@amd.com>
5660 * graphite.c (add_conditions_to_domain): Add the loops to
5661 the dimension of the iteration domain. Do copy the domain
5662 only when it exists.
5663 (build_scop_conditions_1): Do not call add_conditions_to_domain.
5664 (add_conditions_to_constraints): New.
5665 (can_generate_code_stmt, can_generate_code): Removed.
5666 (gloog): Do not call can_generate_code.
5667 (graphite_transform_loops): Call add_conditions_to_constraints
5668 after building the iteration domain.
5670 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5671 Tobias Grosser <tobi.grosser@amd.com>
5672 Jan Sjodin <jan.sjodin@amd.com>
5674 * graphite.c (scan_tree_for_params): On substractions negate
5675 all the coefficients of the term.
5676 (clast_to_gcc_expression_red): New. Handle reduction expressions
5677 of more than two operands.
5678 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
5679 (get_vdef_before_scop): Handle also the case of default definitions.
5681 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5684 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
5685 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
5686 (gloog): Do not call cleanup_tree_cfg.
5687 (graphite_transform_loops): Call cleanup_tree_cfg after all
5688 scops have been code generated.
5690 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
5692 * passes.c (init_optimization_passes): Schedule after
5693 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
5695 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
5697 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
5699 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
5700 Set the type of an expression to the type of its assign statement.
5701 (expand_scalar_variables_expr): Do not pass loop_p.
5702 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
5703 (copy_bb_and_scalar_dependences): Do not pass loop_p.
5704 (translate_clast): Update call to copy_bb_and_scalar_dependences.
5706 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
5708 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
5709 an expression to the gimple_expr_type of its assign statement.
5710 (expand_scalar_variables_expr): Stop recursion on tcc_constant
5713 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
5715 PR tree-optimization/38786
5716 * gcc.dg/graphite/pr38786.c: New.
5717 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
5718 the SSA_NAME case of expand_scalar_variables_expr.
5719 (expand_scalar_variables_expr): Also gather the scalar computation
5720 used to index the memory access.
5721 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
5722 the gimple_stmt_iterator where it inserts new code.
5724 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
5726 * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
5728 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
5730 * opts.c (decode_options): Enable flag_graphite_identity and
5731 flag_loop_block in -O2 and above.
5733 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
5735 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
5736 Fix merge problem: replace with the file from trunk.
5738 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
5740 * Merge from mainline (r141727:143163).
5742 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
5743 Jan Sjodin <jan.sjodin@amd.com>
5745 PR tree-optimization/38559
5746 * gcc.dg/graphite/pr38559.c: New.
5748 * graphite.c (debug_value, copy_constraint,
5749 swap_constraint_variables, scale_constraint_variable, ): New.
5750 (get_lower_bound, get_upper_bound): Removed.
5751 (graphite_trans_bb_strip_mine): Clean up this code that works
5752 only for constant number of iterations. Fully copy upper and
5753 lower bound constraints, not only the constant part of them.
5754 * graphite.h (debug_value): Declared.
5756 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
5758 PR tree-optimization/38492
5759 PR tree-optimization/38498
5760 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
5761 * tree-chrec.h (scev_is_linear_expression): Declared.
5762 * graphite.c (graphite_cannot_represent_loop_niter): New.
5763 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
5764 (graphite_loop_normal_form): Use gcc_assert.
5765 (scan_tree_for_params): Use CASE_CONVERT.
5766 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
5767 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
5768 Use gcc_assert. Discard scops that contain unhandled cases.
5769 (build_scop_conditions): Return a boolean status for unhandled cases.
5770 (strip_mine_profitable_p): Print the loop number, not its depth.
5771 (is_interchange_valid): Pass the depth of the loop nest, don't
5772 recompute it wrongly.
5773 (graphite_trans_bb_block): Same.
5774 (graphite_trans_bb_block): Print tentative of loop blocking.
5775 (graphite_trans_scop_block): Do not print that the loop has been
5777 (graphite_transform_loops): Do not handle scops that contain condition
5780 * gcc.dg/graphite/pr38500.c: Fixed warning as committed
5782 * gcc.dg/graphite/block-0.c: Update test.
5783 * gcc.dg/graphite/block-1.c: Same.
5784 * gcc.dg/graphite/block-2.c: Remove xfail and test for
5786 * gcc.dg/graphite/block-4.c: Remove test for strip mine.
5787 * gcc.dg/graphite/block-3.c: New.
5788 * gcc.dg/graphite/pr38498.c: New.
5790 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
5792 PR tree-optimization/38510
5793 * gcc.dg/graphite/pr38510.c: New.
5794 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
5795 (translate_clast): Call recompute_all_dominators before
5797 (gloog): Call recompute_all_dominators before graphite_verify.
5799 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
5801 PR tree-optimization/38492
5802 * graphite.c (rename_map_elt, debug_rename_elt,
5803 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
5804 rename_map_elt_info, eq_rename_map_elts,
5805 get_new_name_from_old_name, bb_in_sese_p): Moved around.
5806 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
5807 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
5808 (sese_build_livein_liveouts): New.
5809 (new_sese, free_sese): New.
5810 (new_scop): Call new_sese.
5811 (free_scop): Call free_sese.
5812 (rename_variables_from_edge, rename_phis_end_scop): Removed.
5813 (register_old_new_names): Renamed register_old_and_new_names.
5814 (register_scop_liveout_renames, add_loop_exit_phis,
5815 insert_loop_close_phis, struct igp,
5816 default_liveout_before_guard, add_guard_exit_phis,
5817 insert_guard_phis, copy_renames): New.
5818 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
5819 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
5820 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
5821 (scop_adjust_phis_for_liveouts): New.
5822 (gloog): Call scop_adjust_phis_for_liveouts.
5824 * graphite.h (struct sese): Documented. Added fields liveout,
5826 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
5827 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
5828 (struct scop): Added field liveout_renames.
5829 (SCOP_LIVEOUT_RENAMES): New.
5831 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5833 PR tree-optimization/38409
5834 * gcc.dg/graphite/pr38409.c: New.
5835 * graphite.c (nb_reductions_in_loop): Use simple_iv.
5837 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5839 * graphite.c (gcc_type_for_cloog_iv): By default return
5841 (graphite_create_new_loop): Don't fold_convert the already
5842 fold_convert-ed expression.
5844 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
5846 PR tree-optimization/38446
5847 * gcc.dg/graphite/pr38446.c: New.
5848 * graphite.c (register_bb_in_sese): New.
5849 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
5850 looking at the bbs in the region.
5851 * graphite.h (sese): Add region_basic_blocks pointer set to
5852 structure and initialize at the time of defining new scop.
5854 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
5856 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
5857 (find_params_in_bb): Do not free data refs.
5858 (free_graphite_bb): Add FIXME on disabled free_data_refs.
5860 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5862 * gcc.dg/graphite/scop-16.c: Test only scop specific info.
5863 * gcc.dg/graphite/scop-17.c: Same.
5864 * gcc.dg/graphite/block-5.c: New.
5865 * gcc.dg/graphite/block-6.c: New.
5866 * gcc.dg/graphite/pr37485.c: Clean dump file after.
5867 * gcc.dg/graphite/pr37684.c: Same.
5868 * gcc.dg/graphite/block-2.c: Same.
5870 * graphite.c (struct ivtype_map_elt): New.
5871 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
5872 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
5873 gcc_type_for_cloog_iv): New.
5874 (loop_iv_stack_patch_for_consts): Use the type of the induction
5875 variable from the original loop, except for the automatically
5876 generated loops, i.e., in the case of a strip-mined loop, in
5877 which case there is no original loop: in that case just use
5879 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
5880 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
5881 (clast_name_to_gcc): Accept params to be NULL.
5882 (clast_to_gcc_expression): Take an extra parameter for the type.
5883 Convert to that type all the expressions built by this function.
5884 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
5885 (graphite_translate_clast_equation): Compute the type of the
5886 clast_equation before translating its LHS and RHS.
5887 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
5888 (graphite_create_new_loop): Compute the type of the induction
5889 variable before translating the lower and upper bounds and before
5890 creating the induction variable.
5891 (rename_variables_from_edge, rename_phis_end_scop): New.
5892 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
5893 (sese_add_exit_phis_edge): Do not use integer_zero_node.
5894 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5895 compute_cloog_iv_types): New.
5896 (gloog): Call compute_cloog_iv_types before starting the
5897 translation of the clast.
5899 * graphite.h (struct graphite_bb): New field cloog_iv_types.
5900 (GBB_CLOOG_IV_TYPES): New.
5901 (debug_ivtype_map): Declared.
5902 (oldiv_for_loop): New.
5904 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
5907 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
5908 (param_index): Assert if parameter is not know after parameter
5910 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
5911 (find_scop_parameters): Mark, that we have finished parameter
5913 (graphite_transform_loops): Move condition detection before parameter
5915 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
5916 * gfortran.dg/graphite/pr38459.f90: New.
5918 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
5920 * graphite.c (graphite_transform_loops): Always call find_transform ()
5921 in ENABLE_CHECKING. So we test these code paths, even if we do not
5924 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
5926 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
5927 (print_scop): Ditto.
5929 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
5932 Fix gfortran.dg/graphite/id-3.f90.
5933 * graphite.c (scopdet_basic_block_info): Fix bug that found some
5934 regions more than once.
5936 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5938 Fix gfortran.dg/graphite/id-4.f90.
5939 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
5942 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5944 Fix gfortran.dg/graphite/id-1.f90.
5945 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
5946 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
5947 (max_precision_type): New.
5948 (value_clast): Removed.
5949 (clast_to_gcc_expression): Be more careful to types of expressions.
5950 Use max_precision_type and update use of gmp_cst_to_tree.
5951 (graphite_translate_clast_equation): Use max_precision_type.
5952 (graphite_create_guard_cond_expr): Do not use integer_type_node,
5953 use the type of the condition.
5954 (graphite_create_new_loop): Do not use integer_type_node, use the
5955 max_precision_type of lb and ub.
5957 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5959 * graphite.c (build_scops_1): Initialize open_scop.exit
5962 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
5964 * gcc.dg/graphite/pr38084.c: New.
5965 * gfortran.dg/graphite/id-1.f90: New.
5966 * gfortran.dg/graphite/id-2.f90: New.
5967 * gfortran.dg/graphite/id-3.f90: New.
5968 * gfortran.dg/graphite/id-4.f90: New.
5969 * gfortran.dg/graphite/pr37857.f90: New.
5971 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
5972 Jan Sjodin <jan.sjodin@amd.com>
5973 Harsha Jagasia <harsha.jagasia@amd.com>
5985 * gcc.dg/graphite/pr38073.c: New.
5986 * gcc.dg/graphite/pr37928.c: New.
5987 * gcc.dg/graphite/pr37883.c: New.
5988 * gcc.dg/graphite/pr38125.c: New.
5989 * gfortran.dg/graphite/pr38083.f90: New.
5990 * gfortran.dg/graphite/pr37852.f90: New.
5991 * gfortran.dg/graphite/pr37980.f90: New.
5993 * gcc.dg/graphite/scop-18.c: Remove reduction, test for
5994 the number of detected scops. Copy exact same test for loop
5996 * gcc.dg/graphite/block-1.c: Fix the number of expected
5997 loops to be blocked as reductions are not handled.
5998 * gcc.dg/graphite/block-4.c: ...here. New.
6000 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
6001 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
6003 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
6004 * Makefile.in (graphite.o): Depend on value-prof.h.
6005 (graphite.o-warn): Removed -Wno-error.
6006 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
6007 to be a NULL pointer. Call update_stmt. Return the newly created
6008 cannonical induction variable.
6010 * graphite.h (debug_rename_map): Declared. Fix some comments.
6012 * graphite.c: Reimplement the code generation from graphite to gimple.
6013 Include value-prof.h.
6014 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
6015 (get_old_iv_from_ssa_name): Removed.
6016 (graphite_stmt_p): New.
6017 (new_graphite_bb): Test for useful statements before building a
6018 graphite statement for the basic block.
6019 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
6020 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
6022 (recompute_all_dominators, graphite_verify,
6023 nb_reductions_in_loop, graphite_loop_normal_form): New.
6024 (scop_record_loop): Call graphite_loop_normal_form.
6025 (build_scop_loop_nests): Iterate over all the blocks of the
6026 function instead of relying on the incomplete information from
6027 SCOP_BBS. Return the success of the operation.
6028 (find_params_in_bb): Use the data from GBB_DATA_REFS.
6029 (add_bb_domains): Removed.
6030 (build_loop_iteration_domains): Don't call add_bb_domains.
6031 Add the iteration domain only to the basic blocks that have been
6032 translated to graphite.
6033 (build_scop_conditions_1): Add constraints only if the basic
6034 block have been translated to graphite.
6035 (build_scop_data_accesses): Completely disabled until data
6036 dependence is correctly implemented.
6037 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
6038 (remove_all_edges_1, remove_all_edges): Removed.
6039 (get_new_name_from_old_name): New.
6040 (graphite_rename_variables_in_stmt): Renamed
6041 rename_variables_in_stmt. Call get_new_name_from_old_name.
6042 Use replace_exp and update_stmt.
6043 (is_old_iv): Renamed is_iv.
6044 (expand_scalar_variables_stmt): Extra parameter for renaming map.
6045 Use replace_exp and update_stmt.
6046 (expand_scalar_variables_expr): Same. Use the map to get the
6047 new names for the renaming of induction variables and for the
6048 renaming of variables after a basic block has been copied.
6049 (expand_scalar_variables): Same.
6050 (graphite_rename_variables): Renamed rename_variables.
6051 (move_phi_nodes): Removed.
6052 (get_false_edge_from_guard_bb): New.
6053 (build_iv_mapping): Do not insert the induction variable of a
6054 loop in the renaming iv map if the basic block does not belong
6056 (register_old_new_names, graphite_copy_stmts_from_block,
6057 copy_bb_and_scalar_dependences): New.
6058 (translate_clast): Heavily reimplemented: copy basic blocks,
6059 do not move them. Finally, in call cleanup_tree_cfg in gloog.
6060 At each translation step call graphite_verify ensuring the
6061 consistency of the SSA, loops and dominators information.
6062 (collect_virtual_phis, find_vdef_for_var_in_bb,
6063 find_vdef_for_var_1, find_vdef_for_var,
6064 patch_phis_for_virtual_defs): Removed huge hack.
6065 (mark_old_loops, remove_dead_loops, skip_phi_defs,
6066 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
6067 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
6068 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
6069 if_region_get_condition_block, if_region_set_false_region,
6070 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
6071 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
6072 sese_add_exit_phis_edge, sese_add_exit_phis_var,
6073 rewrite_into_sese_closed_ssa): New.
6074 (gloog): Remove dead code. Early return if code cannot be
6075 generated. Call cleanup_tree_cfg once the scop has been code
6077 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
6078 block loops with less than two loops.
6079 (graphite_apply_transformations): Remove the call to
6080 scop_remove_ignoreable_gbbs.
6081 (limit_scops): When build_scop_loop_nests fails, continue on
6082 the next scop. Fix open_scop.entry.
6083 (graphite_transform_loops): Call recompute_all_dominators: force the
6084 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
6085 Call initialize_original_copy_tables and free_original_copy_tables
6086 to be able to copy basic blocks during code generation.
6087 When build_scop_loop_nests fails, continue on next scop.
6088 (value_clast): New union.
6089 (clast_to_gcc_expression): Fix type cast warning.
6091 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
6093 * Merge from mainline (r140838:141727).
6095 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6099 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
6101 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6105 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
6106 exits and conditions.
6107 * gcc.dg/graphite/pr37943.c: New.
6109 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6112 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
6114 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6116 * doc/invoke.texi: Fix spaces.
6118 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
6120 PR tree-optimization/37891
6121 Reverted last commit.
6122 * graphite.c (create_single_entry_edge): Set
6123 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6125 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
6126 Mitul Thakkar <mitul.thakkar@amd.com>
6128 * graphite.c (create_single_entry_edge): Set
6129 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6131 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
6133 * doc/invoke.texi: Add -fgraphite-identity.
6134 * graphite.c (graphite_apply_transformations): Check for
6135 -fgraphite-identity.
6136 * toplev.c (process_options): Add flag_graphite_identity.
6137 * tree-ssa-loop.c: Add flag_graphite_identity.
6139 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6141 Undo changes from 2008-10-02:
6142 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6143 operand type when copying the operand to a variable of different type.
6144 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6145 with the IV name after increment.
6147 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6148 Harsha Jagasia <harsha.jagasia@amd.com>
6150 PR tree-optimization/37828
6151 * gcc.dg/graphite/pr37828.c: New.
6152 * graphite.c (graphite_trans_loop_block): Do not loop block
6153 single nested loops.
6155 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
6156 Sebastian Pop <sebastian.pop@amd.com>
6158 * graphite.c (struct rename_map_elt, new_rename_map_elt,
6159 rename_map_elt_info, eq_rename_map_elts): New.
6160 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
6161 (expand_scalar_variables_expr): Change parameters.
6162 (expand_scalar_variables_stmt): Same.
6163 (expand_scalar_variables): Same.
6164 (graphite_rename_ivs): Rename graphite_rename_variables.
6165 (build_iv_mapping): New.
6166 (translate_clast): Call build_iv_mapping.
6167 * graphite.h (gbb_p): New name.
6169 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
6171 PR tree-optimization/37684
6172 * gcc.dg/graphite/pr37684.c: New.
6173 * graphite.c (exclude_component_ref): New.
6174 (is_simple_operand): Call exclude_component_ref.
6176 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
6177 Harsha Jagasia <harsha.jagasia@amd.com>
6179 PR tree-optimization/37485
6180 * gcc.dg/graphite/block-2.c: New
6181 * graphite.c (gmp_cst_to_tree): Moved.
6182 (iv_stack_entry_is_constant): New.
6183 (iv_stack_entry_is_iv): New.
6184 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
6185 (loop_iv_stack_insert_constant): New.
6186 (loop_iv_stack_pop): Use new datatpype.
6187 (loop_iv_stack_get_iv): Same.
6188 (loop_iv_stack_get_iv_from_name): Same.
6189 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
6190 (loop_iv_stack_patch_for_consts): New.
6191 (loop_iv_stack_remove_constants): New.
6192 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
6193 (translate_clast): Call loop_iv_stack_patch_for_consts and
6194 loop_iv_stack_remove_constants.
6195 (gloog): Use new datatype. Redirect construction edge to end
6196 block to avoid accidental deletion.
6197 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
6199 (union iv_stack_entry_data): New. Data in iv stack entry.
6200 (struct iv_stack_entry): New. Datatype for iv stack entries.
6202 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6204 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6205 operand type when copying the operand to a variable of different type.
6207 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6209 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6210 with the IV name after increment.
6212 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6214 * Merge from mainline (r140164:140838).
6216 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6218 * graphite-data-ref.c: New.
6219 * graphite.c (print_scop): Also dump the dependence graph.
6220 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
6221 (new_scop): Initialize SCOP_DEP_GRAPH.
6222 (build_scop_dynamic_schedules): New.
6223 (build_access_matrix_with_af): Fixed column numbering.
6224 (graphite_transform_loops): Call build_scop_dynamic_schedules.
6225 * graphite.h: Add ifndef/define guards against multiple inclusion.
6226 (struct scop): Add dep_graph field.
6227 (SCOP_DEP_GRAPH): Defined.
6228 (ref_nb_loops): Fixed and moved to other position.
6229 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
6230 (nb_loops_around_loop_in_scop): New.
6231 (graphite_dump_dependence_graph): Declared.
6232 (graphite_build_rdg_all_levels): Declared.
6233 (graphite_test_dependence): Declared.
6234 * Makefile.in (graphite-data-ref.o): New target.
6236 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
6238 * Merge from mainline (139870:140164).
6240 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6242 * Merge from mainline (138275:139870).
6243 * gcc.dg/graphite/scop-matmult.c: XFailed as one of
6244 the commits from trunk broke the niter detection.
6246 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6248 * graphite.c: Add more documentation. Fix formatting.
6249 (debug_loop_vec, debug_oldivs, loop_iv_stack,
6250 loop_iv_stack_debug): Moved...
6251 (schedule_to_scattering): Move before use.
6252 (dot_all_scops): Include in "#if 0" the code for system
6255 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
6256 loop_iv_stack_debug): ...here.
6258 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
6260 * tree-phinodes.c (make_phi_node): Extern.
6261 (add_phi_node_to_bb): New.
6262 (create_phi_node): Call add_phi_node_to_bb.
6263 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
6264 (remove_statement): Handle case where stored phi was updated
6265 and is no longer the same.
6266 * graphite.c (is_parameter): New.
6268 (expand_scalar_variables_expr): New.
6269 (expand_scalar_variables_stmt): New.
6270 (expand_scalar_variables): New.
6271 (move_phi_nodes): Create new phi instead of moving old one.
6272 (translate_clast): Call expand_scalar_variables.
6273 (find_vdef_for_var_in_bb): Also scan regular definitions.
6274 (skip_phi_defs): New.
6275 (collect_scop_exit_phi_args): New.
6276 (patch_scop_exit_phi_args): New.
6277 (gloog): Patch phis after scop.
6278 * tree-flow.h: (add_phi_node_to_bb): Declared.
6279 (make_phi_node): Declared.
6281 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6283 * graphite.c (end_scop): Split the entry of the scop when it
6284 is the header of the loop in which the scop is ending.
6285 (build_scops_1, limit_scops): Update uses of end_scop.
6287 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6289 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
6290 SCOP_ENTRY or SCOP_EXIT.
6292 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6294 * graphite.c (get_construction_edge): Removed.
6295 (gloog): Construction edge is the scop entry edge.
6297 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6299 * graphite.c (can_generate_for_scop): Removed.
6300 (gloog): Do not call it.
6302 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6304 * graphite.c (new_scop): Entry of a scop is an edge.
6305 Initialize SESE region.
6306 (free_scop): Free SESE region.
6307 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
6308 (split_difficult_bb): New, split from end_scop.
6309 (end_scop): Exit of a scop is an edge.
6310 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
6311 not automatically updated and thus is always wrong.
6312 * graphite.h (struct sese): New.
6315 (struct scop): New field for a SESE region. Remove entry, exit.
6316 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
6317 semantics as before. Moved comment around.
6319 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6320 Sebastian Pop <sebastian.pop@amd.com>
6322 * graphite.c (graphite_transform_loops): Always enable gloog
6323 and find_transform when ENABLE_CHECKING.
6325 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6327 * graphite.c (graphite_transform_loops): Move pretty printer
6328 of SCOPs before doing any transform. Remove call to print_scops
6329 and dot_all_scops_1.
6331 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6333 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
6334 (print_graphite_bb): Same.
6336 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6338 * graphite.c (dot_all_scops_1): Cleanup.
6339 (move_scops): Fix comment.
6341 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6343 * graphite.c (build_scop_bbs): Revert commit 139355:
6345 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6346 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6348 * graphite.c (build_scop_bbs): Factor up code.
6350 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6352 * graphite.c (gloog): Update dominator info.
6354 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6356 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
6358 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6360 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
6362 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
6363 (translate_clast): Correct formatting.
6364 * graphite.h (struct num_map): Removed.
6365 (struct graphite_bb): Remove num_map field.
6366 (GBB_INDEX_TO_NUM_MAP): Removed.
6368 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6370 * graphite.c (build_access_matrix_with_af): Fix comments.
6371 (build_scop_data_accesses): Same.
6373 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6375 * graphite.c (build_scop_data_accesses): Don't construct
6376 access matrices. Add a FIXME and an assert condition that
6377 should pass when the access matrices will be needed.
6379 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6381 * tree-data-ref.c (stmt_simple_memref_p): Don't call
6383 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
6384 Moved close by free_graphite_bb.
6385 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
6386 (new_scop): Move close by free_scop.
6387 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
6389 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
6391 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
6392 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
6393 instead of recursive call.
6394 (graphite_translate_clast_equation): New.
6395 (graphite_create_guard_cond_expr): New.
6396 (graphite_create_new_guard): New.
6397 (get_stack_index_from_iv): Removed.
6398 (graphite_rename_ivs_stmt): Use gbb_loop_index.
6399 (get_true_edge_from_guard_bb): New.
6400 (translate_clast): Handle stmt_guard in clast.
6401 (get_construction_edge): Allow construction edge detection for
6402 a scope entry with multiple predecessors if one predecessor is
6403 the immediate dominator of scope entry.
6404 (can_generate_code_stmt): Enable code generation for clast_guard.
6405 (gloog): Use correct context loop. Removed check for post dominators.
6406 * cfgloop.h (create_empty_if_region_on_edge): Declared.
6408 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6410 * graphite.c (remove_dead_loops): Document better which
6413 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6415 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
6417 (graphite.o): Also depends on pointer-set.h.
6419 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6421 * graphite.c (scop_record_loop): Fix compile warning.
6423 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
6424 Sebastian Pop <sebastian.pop@amd.com>
6426 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
6428 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6430 * graphite.c (build_graphite_bb): Initialize bb->aux to
6431 point to the graphite_bb_p.
6432 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
6434 (add_bb_domains): Does not use the scop parameter.
6435 (graphite_transform_loops): Clean bb->aux at the end.
6437 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6438 Sebastian Pop <sebastian.pop@amd.com>
6440 * lib/target-supports.exp
6441 (check_effective_target_fgraphite): New.
6443 * gcc.dg/graphite/graphite.exp: Early exit when
6444 check_effective_target_fgraphite returns false.
6445 Set dg-do-what-default to compile.
6446 (scan-graphite-dump-times): Removed.
6447 * gfortran.dg/graphite/graphite.exp: Same.
6449 * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
6450 Use scan-tree-dump-times instead of scan-graphite-dump-times.
6451 * gcc.dg/graphite/scop-1.c: Same.
6452 * gcc.dg/graphite/scop-2.c: Same.
6453 * gcc.dg/graphite/scop-3.c: Same.
6454 * gcc.dg/graphite/scop-4.c: Same.
6455 * gcc.dg/graphite/scop-5.c: Same.
6456 * gcc.dg/graphite/scop-6.c: Same.
6457 * gcc.dg/graphite/scop-7.c: Same.
6458 * gcc.dg/graphite/scop-8.c: Same.
6459 * gcc.dg/graphite/scop-9.c: Same.
6460 * gcc.dg/graphite/scop-10.c: Same.
6461 * gcc.dg/graphite/scop-11.c: Same.
6462 * gcc.dg/graphite/scop-12.c: Same.
6463 * gcc.dg/graphite/scop-13.c: Same.
6464 * gcc.dg/graphite/scop-matmult.c: Same.
6465 * gcc.dg/graphite/scop-14.c: Same.
6466 * gcc.dg/graphite/scop-15.c: Same.
6467 * gcc.dg/graphite/block-0.c: Same.
6468 * gcc.dg/graphite/scop-16.c: Same.
6469 * gcc.dg/graphite/block-1.c: Same.
6470 * gcc.dg/graphite/scop-17.c: Same.
6471 * gcc.dg/graphite/scop-18.c: Same.
6472 * gfortran.dg/graphite/block-1.f90: Same.
6473 * gfortran.dg/graphite/scop-1.f: Same.
6474 * gfortran.dg/graphite/block-2.f: Same.
6476 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6478 * graphite.c: Fix some XXX comments.
6479 (build_scop_dynamic_schedules): Removed.
6481 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6483 * graphite.h (scop_max_loop_depth): Moved...
6484 * graphite.c (scop_max_loop_depth): ...here.
6485 (remove_all_edges_1): New.
6486 (remove_all_edges): Factored code.
6487 (remove_cond_exprs): Check only the last statement for
6488 a GIMPLE_COND expression.
6490 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6492 * graphite.c (scan_tree_for_params): Early return when the
6493 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
6494 (find_scop_parameters): Factor out code.
6495 (graphite_trans_bb_strip_mine): Remove dead code.
6497 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6499 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
6500 graphite_trans_bb_move_loop): Factor asserts.
6501 (gloog): Perform sanity checks only for ENABLE_CHECKING.
6502 Do not call calculate_dominance_info and estimate_bb_frequencies.
6504 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
6506 * graphite.c (create_loops_mapping, free_loops_mapping,
6507 create_loops_mapping_num, debug_loop_mapping_1,
6508 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
6509 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
6510 graphite_loops_mapping_add_child_num,
6511 graphite_loops_mapping_insert_child,
6512 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
6513 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
6514 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
6515 create_num_from_index, get_num_from_index,
6516 swap_loop_mapped_depth): Removed.
6517 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
6518 (free_scop): Do not call free_loops_mapping.
6519 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
6520 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
6521 get_loop_mapped_depth.
6522 (graphite_trans_bb_move_loop): Do not update the loop mapping.
6523 (graphite_trans_bb_strip_mine): Same.
6524 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
6525 (struct scop): Remove field loops_mapping.
6527 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6528 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6530 * graphite.c (scop_record_loop): Factor out one level of the
6531 condition by early return.
6532 (build_scop_loop_nests): Format following FSF coding style.
6533 (build_scop_dynamic_schedules): Factor out code.
6534 (scopdet_bb_info): Reindent. Default case should not be reachable.
6536 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6537 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6539 * graphite.c (loop_affine_expr): Check for DECL_P or struct
6540 assignments that are not handled as simple operands for now.
6542 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6543 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6545 * graphite.c (build_scop_bbs): Factor up code.
6547 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6548 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6550 * graphite.c (stmt_simple_for_scop_p): Factor code out
6552 (enum gbb_type): New. Group all the GBB_* types under it.
6553 (is_loop_exit): Moved...
6554 (end_scop): Enable BB spliting.
6555 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
6556 * cfgloop.h (is_loop_exit): Declared.
6558 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6560 * doc/invoke.texi: Remove strides from examples containing
6561 DO loops when the strides are equal to 1.
6563 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
6564 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6566 * graphite.c (graphite_trans_scop_block): Or the result with
6567 the result from graphite_trans_loop_block.
6568 * gcc.dg/graphite/block-1.c: New.
6569 * gfortran.dg/graphite/block-1.f90: New.
6570 * gfortran.dg/graphite/block-2.f: New.
6572 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6574 * graphite.c (graphite_transform_loops): Call cloog_initialize
6577 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6579 * tree-data-ref.c) (stmt_simple_memref_p): New.
6580 * tree-data-ref.h (stmt_simple_memref_p): Declared.
6581 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
6582 (is_simple_operand): Call stmt_simple_memref_p.
6584 * gcc.dg/graphite/scop-matmult.c: Updated for not
6585 using pointer arithmetic, as this is optimized by PRE and
6586 makes the code too difficult to analyze.
6588 * gcc.dg/graphite/scop-18.c: Same.
6590 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6592 * gdbinit.in (pgg): New.
6594 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6596 * graphite.c (graphite_trans_loop_block): Fix warning.
6598 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6600 * graphite.c (graphite_trans_loop_block): Fix my merge error.
6602 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6604 * graphite.c (graphite_trans_bb_block): Remove check for
6605 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
6606 Check if loop blocking is profitable for every loop, before applying
6608 (graphite_apply_transformations): Call graphite_trans_bb_block only,
6609 if flag_loop_block is set.
6611 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6613 * graphite.c: Add some more documentation for the loop
6616 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6618 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
6619 * graphite.c: Format on less than 80 columns.
6622 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6624 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
6626 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6628 * doc/invoke.texi (floop-block, floop-strip-mine,
6629 floop-interchange): Update documentation with examples.
6631 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
6633 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
6635 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
6637 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
6639 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
6640 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
6641 * tree-scalar-evolution.c: Revert useless changes.
6642 * tree-phinodes.c: Same.
6645 * tree-vectorizer.h: Same.
6646 * tree-flow.h: Same.
6648 * common.opt (fgraphite): Update documentation.
6650 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
6652 * doc/invoke.texi (-floop-block, -floop-strip-mine,
6653 -floop-interchange): Add more text for explaining what each of these
6655 * tree-into-ssa.c (gimple_vec): Moved to...
6656 * graphite.c: Include gimple.h.
6657 (gimple_vec): Moved to...
6658 (del_loop_to_cloog_loop): Removed.
6659 (loop_affine_expr): Do not call create_data_ref when the
6660 operand is a constant.
6661 (new_scop): Use free instead of del_loop_to_cloog_loop.
6662 * Makefile.in (graphite.o): Depend on GIMPLE_H.
6663 * gimple.h (gimple_vec): ... here.
6665 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6667 * graphite.c (scopdet_bb_info): Only allow loops with known number of
6669 (build_loop_iteration_domains): Fail, if latch executions unknown.
6671 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6673 * graphite.c (add_conditions_to_domain): New.
6674 (build_scop_conditions_1): Call add_conditions_to_domain.
6675 (set_cloog_options): Allow to disable optimizations.
6677 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6679 * graphite.c (find_params_in_bb): Look for parameters in conditions.
6680 Do not use walk_dominator_tree.
6681 (find_scop_parameters): Do not use walk_dominator_tree.
6683 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6685 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
6686 (idx_record_params): Adapt.
6687 * graphite.h (scop_gimple_loop_depth): New.
6689 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6691 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
6692 (scan_tree_for_params): Remove value_init.
6693 (build_scop_context): Remove value_init.
6694 (build_loop_iteration_domains): Remove value_init.
6695 (schedule_to_scattering): Remove value_init.
6696 (graphite_trans_bb_strip_mine): Remove value_init.
6698 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6700 * gcc/graphite.c (limit_scops): New.
6701 (graphite_transform_loops): Add limit SCoPs.
6702 * gcc.dg/graphite/scop-0.c: Update number of SCoPs.
6703 * gcc.dg/graphite/scop-1.c: Update number of SCoPs.
6704 * gcc.dg/graphite/scop-10.c: Update number of SCoPs.
6705 * gcc.dg/graphite/scop-11.c: Update number of SCoPs.
6706 * gcc.dg/graphite/scop-12.c: Update number of SCoPs.
6707 * gcc.dg/graphite/scop-13.c: Update number of SCoPs.
6708 * gcc.dg/graphite/scop-14.c: Update number of SCoPs.
6709 * gcc.dg/graphite/scop-15.c: Update number of SCoPs.
6710 * gcc.dg/graphite/scop-16.c: Update number of SCoPs.
6711 Change loop numbers.
6712 * gcc.dg/graphite/scop-17.c: Update number of SCoPs.
6713 Change loop numbers.
6714 * gcc.dg/graphite/scop-18.c: Update number of SCoPs.
6715 * gcc.dg/graphite/scop-2.c: Update number of SCoPs.
6716 * gcc.dg/graphite/scop-3.c: Update number of SCoPs.
6717 * gcc.dg/graphite/scop-4.c: Update number of SCoPs.
6718 * gcc.dg/graphite/scop-5.c: Update number of SCoPs.
6719 * gcc.dg/graphite/scop-6.c: Update number of SCoPs.
6720 * gcc.dg/graphite/scop-7.c: Update number of SCoPs.
6721 * gcc.dg/graphite/scop-8.c: Update number of SCoPs.
6722 * gcc.dg/graphite/scop-9.c: Update number of SCoPs.
6723 * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
6725 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6727 * graphite.c (graphite_transform_loops): Call always find_transform.
6729 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
6731 * graphite.c (free_loops_mapping): New.
6732 (stmt_simple_for_scop_p): Fix typo.
6733 (stmt_simple_for_scop_p): Fix tuples functions, that
6735 (free_graphite_bb): Fix some memleaks.
6736 (free_scop): Fix some memleaks.
6737 (scopdet_bb_info): Do not forget some tmp SCoPs.
6738 (find_params_in_bb): Fix some memleaks.
6739 (clast_to_gcc_expression): Fix warning.
6741 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
6743 * gcc.dg/graphite/scop-16.c: Fix for 32bit.
6744 * gcc.dg/graphite/scop-17.c: Fix for 32bit.
6746 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
6748 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
6749 Move code ifdef-ed HAVE_cloog...
6750 * graphite.c: Include toplev.h.
6752 * Makefile.in (OBJS-common): Always build graphite.o.
6753 (BACKEND): Remove @GRAPHITE@.
6754 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
6755 (graphite.o): Depend on TOPLEV_H.
6757 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
6759 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
6760 Remove typo left from polylib to ppl conversion.
6761 * graphite.c (graphite_transforms): Use sorry instead of fatal.
6763 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
6765 * toplev.c (process_options): Move the graphite loop optimization
6767 * tree-ssa-loop.c (graphite_transforms): ... here.
6768 When not configured with CLooG, print to dump_file that
6769 Graphite transforms were not performed.
6770 * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
6772 * gcc.dg/graphite/*.c: Updated all testcases to use
6773 scan-graphite-dump-times.
6775 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
6777 * graphite.c (dot_scop, dot_all_scops): Do not call system.
6778 Do not open /tmp/scop.dot and /tmp/allscops.dot.
6780 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
6781 Jan Sjodin <jan.sjodin@amd.com>
6783 * configure: Regenerated.
6784 * omp-low.c (expand_omp_sections): Remove now unused code.
6785 * config.in (HAVE_polylib): Removed.
6786 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
6787 (PPLLIBS, PPLINC): Added.
6788 * graphite.c: Replace unsigned with int wherever possible.
6789 Don't access Cloog's data structures, but use accessor functions.
6790 Clast's stmt->type is now implemented as a vtable: change the
6791 switches of stmt->type into ifs.
6792 (polylib/polylibgmp.h): Don't include.
6793 (initialize_dependence_polyhedron,
6794 initialize_data_dependence_polyhedron, is_empty_polyhedron,
6795 statement_precedes_p, test_dependence, build_rdg_all_levels,
6796 dump_dependence_graph): Removed until this code is cleaned up
6798 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
6799 (POLYLIBINC): Renamed PPLINC.
6801 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
6802 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6803 Jan Sjodin <jan.sjodin@amd.com>
6805 Finish the merge and tuplification of graphite.
6807 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
6808 Jan Sjodin <jan.sjodin@amd.com>
6810 Partial merge from mainline (138072:138275).
6811 * graphite.c still has to be tuplified.
6813 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
6815 * graphite.c (graphite_loops_mapping_max_loop_num): New.
6816 (create_num_from_index): New.
6817 (get_num_from_index): Also pass in the graphite BB.
6818 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
6819 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
6820 (graphite_trans_bb_strip_mine): Call create_num_from_index.
6821 (is_interchange_valid): Return false when failing.
6822 * graphite.h (struct num_map): New.
6823 (struct graphite_bb): New field num_map.
6824 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
6826 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
6828 * graphite.c (dump_gbb_conditions): Print also conditions like
6829 "if (a)". Remove dublicated code and use print_generic_expr ().
6830 (stmt_simple_for_scop_p): Only allow conditions we can handle
6833 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
6835 * graphite.h (struct scop): Removed new_ivs field.
6836 (SCOP_NEWIVS): Deleted.
6837 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
6838 clast_to_gcc_expression, graphite_create_new_loop):
6839 Removed use of new_ivs.
6841 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
6843 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
6844 create_loops_mapping_num, debug_loop_mapping_1): New.
6845 (debug_loop_mapping): Call debug_loop_mapping_1.
6846 (get_loop_mapping_for_num,
6847 graphite_loops_mapping_add_child,
6848 graphite_loops_mapping_add_child_num,
6849 graphite_loops_mapping_insert_child,
6850 graphite_loops_mapping_parent,
6851 split_loop_mapped_depth_for_num,
6852 loop_mapped_depth_split_loop): New.
6853 (increment_loop_mapped_depths): Removed.
6854 (swap_loop_mapped_depth_for_num): Reimplemented.
6855 (new_scop): Call create_loops_mapping.
6856 (scop_record_loop): Call graphite_loops_mapping_insert_child.
6857 (translate_clast): Pass the old loop father in parameter, and pass
6858 it to get_old_iv_from_ssa_name.
6859 (remove_edges_around_useless_blocks, can_generate_code_stmt,
6860 can_generate_code, can_generate_for_scop): New.
6861 (graphite_trans_bb_block): Returns false when it fails to transform.
6862 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
6864 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6866 Reverted all the changes related to the streamization and
6868 These changes are now tracked in the streamization branch.
6870 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6871 Jan Sjodin <jan.sjodin@amd.com>
6873 * graphite.c (gbb_compare): Correctly constify.
6874 (gbb_can_be_ignored): Indent.
6875 (graphite_trans_scop_swap_1and2): Add legality check.
6878 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6880 Remove fallouts from "Reverted the Condate changes".
6881 * tree.h: Remove unused decl.
6882 * gcc.dg/tree-checker: Same.
6883 * timevar.def: Remove counter.
6885 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
6887 * Merge from mainline (135673:138072).
6889 Reverted the MIRO changes (from 2008-04-05) that are now
6890 tracked in the miro branch.
6891 * tree-bounds.c: Removed.
6892 * tree-bounds.h: Removed.
6894 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
6895 are now tracked in the condate branch.
6896 * tree-check.c: Removed.
6897 * tree-match.c: Removed.
6898 * condate.y: Removed.
6900 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6902 * common.opt: New user flag -floop-block, -floop-strip-mine
6903 and -floop-interchange.
6904 * toplev.c (process_options): Enable -fgraphite pass if any one of the
6905 graphite loop optimization flags is turned on.
6906 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
6907 flag_loop_strip_mine and flag_loop_interchange checks before
6909 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
6910 -floop-strip-mine and -floop-interchange.
6911 * gcc.dg/graphite/block-0.c: Add -floop-block and remove
6913 * gcc.dg/graphite/scop-16.c: Ditto.
6914 * gcc.dg/graphite/scop-17.c: Ditto.
6915 * gcc.dg/graphite/scop-18.c: Ditto.
6917 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
6918 Sebastian Pop <sebastian.pop@amd.com>
6920 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
6921 (create_empty_loop_on_edge): More fixes.
6922 * tree-phinodes.c (resize_phi_node): Extern.
6923 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
6924 * cfghooks.c (update_dominator_information): New split from
6926 * tree-vectorizer.c (rename_variables_in_bb): Extern.
6927 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
6928 successor of the function entry block.
6930 * graphite.c: Include pointer-set.h.
6931 (debug_loop_mapping, increment_loop_mapped_depths,
6932 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
6933 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
6934 swap_loop_mapped_depth_for_num, get_num_from_index,
6935 swap_loop_mapped_depth, loop_iv_stack_debug,
6936 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
6937 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
6938 get_old_iv_from_ssa_name): New.
6939 (new_scop): Initialize SCOP_LOOPS_MAPPING.
6940 (free_scop): Free SCOP_LOOPS_MAPPING.
6941 (scop_record_loop): Record old ivs.
6942 (create_var_name): Removed.
6943 (initialize_cloog_names): Allocate double space in case strip mine
6944 applies to all loops once.
6945 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
6946 (clast_to_gcc_expression): Same. Implement more clast to gimple
6948 (graphite_create_new_loop): Pass in ivstack.
6949 (remove_all_edges): Pass in the construction_edge.
6950 (graphite_remove_iv): Removed.
6951 (graphite_rename_ivs, graphite_rename_ivs_stmt,
6952 remove_cond_exprs): Rewritten.
6953 (move_phi_nodes): New.
6954 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
6955 (translate_clast): Pass in ivstack. Rewrite some cases.
6956 (set_cloog_options, debug_clast_stmt): New.
6957 (find_transform): Use set_cloog_options.
6958 (outermost_loop_layer): Removed.
6959 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
6960 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
6961 mark_old_loops, remove_dead_loops): New.
6963 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
6964 (const_column_index, get_first_matching_sign_row_index,
6965 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
6966 get_upper_bound): New.
6967 (graphite_trans_bb_strip_mine): Also update the iv map.
6969 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
6970 (struct name_tree): Add a loop field.
6971 (struct scop): Add a graphite_loops_mapping field.
6972 (SCOP_LOOPS_MAPPING): New.
6973 (debug_clast_stmt): Declare.
6974 * lambda.h (find_induction_var_from_exit_cond): Declare.
6975 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
6976 * cfgloop.h (update_dominators_in_loop): Removed declaration.
6977 (create_empty_loop_on_edge): Updated.
6978 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
6979 rename_variables_in_bb): Declare.
6980 * tree-cfg.c (remove_bb): Extern.
6982 * gcc.dg/graphite/block-0.c: New.
6984 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6985 Sebastian Pop <sebastian.pop@amd.com>
6987 * graphite.c (strip_mine_profitable_p): New.
6988 (graphite_trans_bb_block): Disable strip mining if not profitable.
6990 * gcc.dg/graphite/scop-18.c: New.
6991 * gcc.dg/graphite/scop-17.c: Fixed.
6992 * gcc.dg/graphite/scop-16.c: Fixed.
6994 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
6995 Jan Sjodin <jan.sjodin@amd.com>
6996 Sebastian Pop <sebastian.pop@amd.com>
6998 * graphite.c (is_interchange_valid): New.
6999 (graphite_trans_bb_block): Check loop nest of basic block for legality
7002 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
7003 outer_most_loop, gbb_outer_most_loop_index): New.
7005 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
7006 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
7007 * gcc.dg/graphite/scop-16.c: New.
7008 * gcc.dg/graphite/scop-17.c: New.
7010 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7012 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
7013 (graphite_trans_scop_block): Ignore SCoPs without bbs.
7015 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7017 * graphite.c (new_scop): Initialize SCOP_EXIT.
7018 (scopdet_info): Add.
7019 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
7020 (build_scops_1): Cleanup, bugfixes.
7021 (build_scops): Cleanup.
7023 * gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
7024 * gcc.dg/graphite/scop-15.c: Add SCoP numbers.
7026 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7028 * gfortran.dg/graphite/scop-1.f: Update to reduced test case.
7030 * gfortran.dg/graphite/graphite.exp: Use
7031 DEFAULT_GRAPHITE_FLAGS.
7033 * gcc.dg/graphite/scop-15.c: Update to reduced test case.
7035 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7037 * graphite.c (scan_tree_for_params): Do not assert any more if
7038 MULT_EXPR parameter is negative.
7040 * gfortran.dg/graphite/scop-1.f: New.
7042 * gfortran.dg/graphite/graphite.exp: New.
7044 * gcc.dg/graphite/scop-15.c: New.
7046 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7048 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
7050 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7052 * graphite.c (graphite_trans_bb_swap_loops): Rename from
7053 graphite_swap_loops.
7054 (graphite_trans_bb_move_loop): New.
7055 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
7056 (graphite_trans_bb_block): New.
7057 (graphite_trans_loop_block): New.
7058 (graphite_trans_scop_swap_1and2): Rename from
7059 graphite_trans_swap_1and2.
7060 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
7061 (graphite_trans_scop_block): New.
7062 (graphite_apply_transformations): Rename from
7063 graphite_transformations.
7065 * gcc.dg/graphite/scop-matmult.c: New.
7067 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7069 * graphite.c (gbb_compare): New.
7070 (graphite_sort_gbbs): New.
7071 (gbb_can_be_ignored): New.
7072 (scop_remove_ignoreable_gbbs): New.
7073 (graphite_transformations): Cleanup and add
7074 scop_remove_ignoreable_gbbs.
7075 * lambda.h (lambda_vector_compare): New.
7077 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
7079 * graphite.c (print_graphite_bb): Correct printing of static schedule.
7080 (graphite_swap_loops): int -> unsigned
7081 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
7082 (graphite_transformations): New.
7083 (graphite_transform_loops): Move to graphite_transformations.
7084 * graphite.h (gbb_nb_loops): Return unsigned.
7086 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
7088 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
7089 the domain matrix. This makes scop-0.c work again.
7091 2008-06-20 Richard Guenther <rguenther@suse.de>
7093 * graphite.h: Adjust copyright to GPLv3.
7094 * graphite.c: Likewise.
7095 (stmt_simple_memref_for_scop_p): Split out from ...
7096 (stmt_simple_for_scop_p): ... here. Fix handling of calls
7098 (get_bb_type): Optimize.
7100 (is_bb_addable): Fix memleak, replace is_pred call with
7102 (build_scops): Use current_loops.
7103 (param_index): Fix memleak.
7105 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7107 * graphite.c: Fix formatting.
7109 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7111 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
7112 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
7113 (create_var_name, save_var_name): Newly defined functions.
7114 (initialize_cloog_names): Part of the code factored out to
7116 (clast_to_gcc_expression): Now handles the case of clast_red_sum
7117 in clast_reduction statement.
7118 (graphite_create_new_loop): Now takes a new parameter
7120 (translate_clast): Now also takes the context_loop and bb_exit
7121 parameters. Rewritten the code so that it creates a gimple code
7122 inside the given context.
7123 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
7124 remove_cond_expr, disconnect_cond_expr,
7125 disconnect_virtual_phi_nodes): Newly defined functions.
7126 * graphite.h (struct scop): added old_ivs vector.
7127 SCOP_OLDIVS: New macro.
7129 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
7131 * cfgloopmanip.c: Add missing function comments, fix formatting.
7133 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7135 * cfgloopmanip.c (update_dominators_in_loop): Defined.
7136 (create_empty_loop_on_edge): Defined.
7137 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
7139 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
7140 (update_dominators_in_loop): Declared as extern
7141 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
7143 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
7145 * graphite.c (print_graphite_bb): Allow changing number of loops
7147 (initialize_cloog_names): Allow changing number of loops.
7148 (build_cloog_prog): Simplify.
7149 (find_transform): Enable cloog option --strides.
7150 (graphite_swap_loops): New.
7151 (graphite_strip_mine_loop): New.
7152 (graphite_trans_swap_1and2): New.
7153 (graphite_trans_strip): New.
7154 (graphite_transform_loops): Add graphite_trans_strip.
7155 * graphite.h (scop_max_loop_depth): New.
7157 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7159 * graphite.c (build_scop_iteration_domain): Remove forgotten
7160 line. (Fixes compile)
7162 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7164 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
7165 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
7166 (build_bb_loops): New.
7167 (graphite_transform_loops): Add build_bb_loops.
7168 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
7170 * graphite.h (graphite_bb): Add loops.
7171 (gbb_nb_loops): New.
7172 (gbb_loop_at_index): New.
7173 (gbb_loop_index): New.
7174 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
7175 using nb_params_in_scop.
7177 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7179 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
7180 (build_scop_canonical_schedules): Build minimized schedule.
7181 (schedule_to_scattering): Adapt to minimized schedule.
7182 * graphite.h (graphite_bb): Add/Update descriptions.
7184 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
7185 Tobias Grosser <grosser@fim.uni-passau.de>
7187 * graphite.c (print_graphite_bb): Add condition printing.
7189 (dump_gbb_conditions): New.
7190 (build_scop_conditions_1): New.
7191 (build_scop_conditions): New.
7192 * graphite.h (graphite_bb): Add conditions.
7194 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7196 * graphite.c (print_graphite_bb):
7197 (free_graphite_bb): New.
7198 (free_scop): Free bbs.
7199 (get_bb_type): Free doms.
7200 (build_scop_context): Free context matrix.
7201 (build_loop_iteration_domains): Remove unused code.
7202 (build_cloog_prog): Free scattering function and blocklist.
7203 (find_transform): Free options.
7205 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
7207 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
7208 Remove unnecessery cloog data structures. Make a copy of the domain
7209 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
7210 unnecessary cloog data structures. Fix memory leaks. Remove insert
7211 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
7213 (build_scop_iteration_domain): Remove unnecessary cloog
7214 data structures. Fix memory leaks.
7215 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
7216 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
7218 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7220 * graphite.c (find_scop_params): Remove initialize_cloog_names.
7222 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7224 * graphite.c (end_scop): Style fix.
7225 (schedule_to_scattering): Style and comment fix.
7227 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7228 * graphite.c (print_graphite_bb): Fix definiton of
7229 schedule_to_scattering.
7230 (initialize_cloog_names): Change nb_scattdims to max loop
7232 (schedule_to_scattering): Take parameter for number of scattering
7234 (build_cloog_prog): Only build as much scattering dimensions as
7237 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7239 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
7240 in polyhedron/aermod.f90.
7242 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
7243 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7244 Harsha Jagasia <harsha.jagasia@amd.com>
7246 * graphite.c (is_bb_addable): Fix segfault.
7248 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
7250 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
7251 with multiple exits and conditional handling in edge cases.
7252 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
7254 * gcc.dg/graphite/scop-14.c: New.
7256 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
7257 Adrien Eliche <aeliche@isty.uvsq.fr>
7259 * graphite.c (is_bb_addable): Add more comments and enhance
7260 readablity of the source code. Fix memory leak.
7261 (is_loop_exit): Fix memory leak.
7263 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7265 * graphite.c (first_loop_in_scop): Deleted.
7266 (setup_cloog_loop): Only walk the loop chain for inner loops.
7267 (build_scop_iteration_domain): Execute setup_cloog_loop for
7268 all loops in the first layer.
7270 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7272 * graphite.c (scan_tree_for_params): Change the way params are
7273 added to be indepenent of the number of loops.
7274 (setup_cloog_loop): Revert to short matrix format. Fix parameter
7276 (build_cloog_prog): Revert to short matrix format.
7278 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7279 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7281 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
7284 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7286 * graphite.c (nb_data_refs_in_scop): New.
7287 (graphite_transform_loops): Print more stats: number of
7288 loops, basic blocks and data references per scop.
7290 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7291 Jan Sjodin <jan.sjodin@amd.com>
7293 * graphite.c (loop_affine_expr, idx_record_params,
7294 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
7295 instead of instantiate_parameters.
7297 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7299 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
7300 add support for parameters, add STATIC_SCHEDULE at the right places,
7303 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7305 * graphite.c (build_scop_loop_nests): Only add the loops, that
7306 are contained completely in the SCoP.
7307 (build_cloog_prog): Disable scattering, until schedule_to_scattering
7308 and the domains are fixed.
7309 (build_scop_canonical_schedules): Add support for bbs not contained
7312 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7314 * graphite.h (scop_contains_loop): Update comments to match
7315 the actual behavior.
7316 (scop_contains_loop): New.
7317 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
7319 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7321 * graphite.c (get_bb_type): On function body, i.e. loop_0,
7322 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
7325 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7326 Tobias Grosser <grosser@fim.uni-passau.de>
7328 * graphite.c (graphite_transform_loops): Early return when
7329 there are no loops in the function.
7331 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7332 Jan Sjodin <jan.sjodin@amd.com>
7334 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
7335 offset of the last loop.
7336 (setup_cloog_loop): Copy the entire outer constraint matrix.
7338 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7339 Jan Sjodin <jan.sjodin@amd.com>
7341 * graphite.c (stmt_in_scop_p, function_parameter_p,
7342 invariant_in_scop_p): Removed.
7343 (scan_tree_for_params): Can be used with no constraint
7344 matrix for gathering parameters.
7345 (idx_record_params): Don't use idx_record_param, instead use
7346 scan_tree_for_params.
7347 (find_scop_parameters): Same.
7348 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
7349 Fix the size of loop domains.
7350 (schedule_to_scattering): Exit when the outer loop is not in scop.
7351 (find_transform): Enable build_cloog_prog.
7353 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7354 Jan Sjodin <jan.sjodin@amd.com>
7356 * graphite.c (schedule_to_scattering): Make scattering domains
7357 uniformly of the same size, as required by CLooG 0.14.0 and before.
7359 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7360 Jan Sjodin <jan.sjodin@amd.com>
7362 * graphite.c (schedule_to_scattering): Rewrite, correct the
7363 translation of the scheduling function to scattering.
7364 (build_cloog_prog): Call schedule_to_scattering only once.
7365 * graphite.h (scop_loop_index): Do not fail for loops not
7366 in the scop: return -1.
7368 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
7370 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
7371 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
7372 (setup_cloog_loop): Export GBB_DOMAIN.
7373 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
7374 able to rebuild the original control flow.
7375 * graphite.h (graphite_bb): Add domain field and access macro.
7378 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7380 * graphite.c (debug_gbb): New.
7381 (print_scop, build_graphite_bb): Use SCOP_BBS.
7382 (build_scop_bbs): Reimplemented.
7383 (dfs_bb_in_scop_p): Removed.
7384 (build_scop_loop_nests): Reorder loops inserted in
7385 SCOP_LOOP_NEST: outer loops should come first.
7386 (build_scop_canonical_schedules): Reinitialize at zero
7387 the components of the SCOP_STATIC_SCHEDULE for the loops
7388 that have already been parsed.
7390 * graphite.h (debug_gbb): Declared.
7392 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7393 Jan Sjodin <jan.sjodin@amd.com>
7395 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
7396 (graphite_loop_to_gcc_loop): Removed.
7397 (remove_all_edges): New.
7398 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
7399 (gloog): Remove useless code.
7401 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7403 * graphite.c (get_bb_type): Reworked. We distinguish between
7404 loops with one or multiple exits.
7405 (is_loop_exit): New.
7407 (is_bb_addable): Rework condition handling, now support for case
7408 case statements and loops with multiple exits.
7410 * gcc.dg/graphite/scop-11.c: New.
7411 * gcc.dg/graphite/scop-12.c: New.
7412 * gcc.dg/graphite/scop-13.c: New.
7414 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7416 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
7417 we have too many colors.
7419 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
7421 * doc/invoke.texi (-ftree-loop-fusion): Document.
7422 * tree-pass.h (pass_loop_fusion): Declared.
7423 * tree-loop-fusion.c: New.
7424 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
7425 * tree-data-ref.c (find_data_references_in_loop): Make extern.
7426 * tree-data-ref.h (find_data_references_in_loop): Declared.
7427 * common.opt (ftree-loop-fusion): Declared.
7428 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
7430 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
7432 * graphite.c (build_access_matrix): Fix typo from the merge.
7434 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7436 * Merge from mainline (130800:135673).
7438 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7440 * graphite.c (end_scop): The exit of the scop is not part of the scop.
7441 Update dominators after splitting.
7443 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7445 * graphite.c (is_bb_addable): Return the harmful statement.
7446 Factor up some code.
7447 (end_scop): New. Splits end of scope bbs on a harmful statement.
7448 (build_scops_1): Call end_scop.
7450 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7452 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
7453 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
7454 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
7455 build_scops_1): Removed.
7456 (build_scops_2): Renamed build_scops_1.
7458 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7460 * graphite.c: Fix formatting.
7462 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7464 * graphite.c (get_bb_type): New.
7466 (build_scops_2): New.
7467 (is_bb_addable): New.
7468 (build_scops): Switch the scop detection.
7469 (build_scop_bbs): Add entry bb to scop.
7470 * graphite.h (struct scop): Update comment.
7472 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7474 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
7477 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7479 * gcc.dg/graphite/scop-1.c: Update.
7480 * gcc.dg/graphite/scop-2.c: Update.
7481 * gcc.dg/graphite/scop-4.c: Update.
7482 * gcc.dg/graphite/scop-5.c: Add.
7483 * gcc.dg/graphite/scop-6.c: Add.
7485 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7487 * gcc.dg/graphite/scop-0.c: Add.
7488 * gcc.dg/graphite/scop-7.c: Add.
7489 * gcc.dg/graphite/scop-8.c: Add.
7490 * gcc.dg/graphite/scop-9.c: Add.
7491 * gcc.dg/graphite/scop-10.c: Add.
7493 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7495 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
7496 Check affine expressions depending on the outermost loop
7498 (stmt_simple_for_scop_p): Same.
7499 (harmfule_stmt_in_scop): Same.
7501 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
7503 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
7504 mark entry and exit, that are not part of the SCoP and update HTML
7507 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
7509 * graphite.c (basic_block_simple_for_scop_p): Renamed
7511 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
7512 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
7513 (all_preds_visited_p, all_succs_visited_p,
7514 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
7515 scop_end_loop): New.
7516 (build_scops): Do not use dfs_enumerate_from.
7518 * gcc.dg/graphite/scop-{1,2,4}.c: Updated.
7520 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
7522 * graphite.c: Add comments to functions that are missing a
7524 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
7526 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
7528 * graphite.c (nb_params_in_scop): Moved...
7529 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
7530 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
7531 (clast_to_gcc_expression): Reduce column size to less than 80.
7532 (graphite_create_iv): Return the new name of the IV.
7533 (find_transform): Set options->esp and options->cpp.
7534 (gloog): Comment out the invalidation of the old loop code.
7535 (initialize_dependence_polyhedron): Replace scop_nb_params with
7538 * graphite.h (nb_params_in_scop): ... here.
7539 (scop_nb_params): Removed.
7540 (loop_domain_dim): Return something even when the loop was not
7541 found in the hash table: avoid ICEing on all the graphite.exp
7544 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7546 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
7548 * graphite.c (build_scop_dynamic_schedules): Schedule is built
7549 according to nesting level.
7550 (find_scop_parameters): Call instantiate_parameters.
7551 (scan_tree_for_params): Extend it to handle general affine bounds.
7552 Inner loop bound can depend on outer loop induction variable.
7553 (setup_cloog_loop): tmp variable is allocated on stack. Call
7554 instantiate_parameters with respect to outermost_loop_in_scop.
7555 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
7557 (create_empty_loop): Function loopify should be given edge
7558 probability, instead of edge frequency. Dominance relation from
7559 switch_bb to loop_header.
7560 (clast_to_gcc_expression): Added handling of clast_reduction node.
7561 (gloog): New functionality for removing old loop.
7562 (test_dependence): Factored out from build_rdg_all_levels.
7563 (build_rdg_all_levels): Dependence testing factored out to
7564 test_dependence function.
7566 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
7567 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
7570 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
7572 * graphite.c (free_scop, param_index, initialize_cloog_names,
7573 nb_params_in_scop): Use name_tree map instead of just a tree
7574 for keeping track of the variable name associated to that tree.
7575 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
7576 clast_to_gcc_expression, graphite_create_iv,
7577 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
7578 graphite_stmt_to_gcc_stmt): New.
7579 (gloog): Call these.
7580 * graphite.h (struct name_tree): New.
7581 (struct scop): Use name_tree instead of tree for params.
7582 Store a vector of name_tree for new_ivs.
7584 (scop_nb_params): Use name_tree instead of tree.
7586 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
7587 Sebastian Pop <sebastian.pop@amd.com>
7589 * tree-bounds.c: New.
7590 * tree-bounds.h: New.
7591 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
7592 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
7593 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
7597 * c-cppbuiltin.c: Same.
7601 * tree-outof-ssa.c: Same.
7603 * Makefile.in: Same.
7605 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
7606 Sebastian Pop <sebastian.pop@amd.com>
7608 * tree-loop-distribution.c (remaining_stmts,
7609 upstream_mem_writes): Removed static variables.
7610 (copy_loop_before, create_bb_after_loop,
7611 mark_nodes_having_upstream_mem_writes, free_rdg_components,
7612 rdg_build_components, rdg_build_partitions,
7613 dump_rdg_partitions): Extern.
7614 (generate_loops_for_partition, generate_code_for_partition): Do not
7616 (already_processed_vertex_p, predecessor_has_mem_write,
7617 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
7618 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
7619 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
7620 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
7621 Pass remaining_stmts and upstream_mem_writes as parameters.
7622 (rdg_component): Moved...
7623 (build_rdg_partition_for_component): Do not aggregate components when
7624 flag_streamize_loops is set.
7625 (gen_sequential_loops): New.
7626 (ldist_gen): Call gen_sequential_loops.
7628 * tree-pass.h (pass_loop_streamization): Declared.
7630 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
7631 basic blocks when loops structures exist.
7633 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
7635 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
7637 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
7638 eliminate_local_variables_stmt, eliminate_local_variables,
7639 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
7640 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
7641 of code delimited by two edges in the CFG.
7642 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
7643 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
7644 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
7645 the case of parallelisation of reductions.
7646 (create_loop_fn): Extern.
7647 (create_omp_parallel_region): New.
7649 * tree-data-ref.c (dump_data_dependence_relation): Don't call
7650 dump_data_reference for printing dra and drb.
7651 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
7653 (build_rdg): Don't call free_dependence_relations for the moment, as
7654 we attach dependence relations on each edge of the RDG.
7657 * tree-data-ref.h (rdg_component): ...here.
7658 (struct rdg_edge): New field ddr_p relation.
7659 (RDGE_RELATION): New.
7660 (create_bb_after_loop, copy_loop_before,
7661 mark_nodes_having_upstream_mem_writes, rdg_build_components,
7662 rdg_build_partitions, dump_rdg_partitions,
7663 free_rdg_components): Declared.
7665 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
7666 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
7668 * tree-loop-streamization.c: New.
7670 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
7671 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
7673 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
7675 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
7677 * passes.c: Schedule pass_loop_streamization.
7679 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
7681 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
7684 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
7686 * graphite.c (dot_all_scops): Update formatting.
7687 Bbs can now be part of more than one SCoP.
7689 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
7691 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
7693 (loop_domain_dim): Check for unregistered toplev SCOP loop.
7694 * graphite.h (loop_to_cloog_loop): New.
7696 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7698 * graphite.c (loop_domain_dim, ref_nb_loops,
7699 loop_iteration_vector_dim): New.
7700 (build_access_matrix_with_af, build_access_matrix,
7701 initialize_dependence_polyhedron): Fixed for new matrix layout.
7702 No longer assume that all iteration domains are of the same
7705 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
7707 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
7708 defined in a loop at depth 0 is invariant.
7709 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
7710 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
7711 be called at loop depth 0.
7713 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
7715 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
7716 (down_open_scop): Removed.
7717 (loop_in_scop_p): Redefined.
7718 (scop_affine_expr): New argument: scop.
7719 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
7720 a harmful statement ending a scop.
7721 (basic_block_simple_for_scop_p): New argument: scop.
7722 (get_loop_start): Removed.
7723 (new_scop): Initialize SCOP_LOOPS.
7724 (free_scop): Free SCOP_LOOPS.
7725 (succs_at_same_depth, preds_at_same_depth): New.
7726 (end_scop): Test the validity of a scop.
7727 (add_dominators_to_open_scops): New.
7728 (test_for_scop_bound): Call add_dominators_to_open_scops.
7729 Add cases for opening and closing multiple scops.
7730 (build_scops, build_scop_bbs): Iterate over basic blocks in
7732 (build_graphite_bb): Pass scop directly.
7733 (dfs_bb_in_scop_p): New.
7734 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
7736 (nb_loops_around_gb): Use loop_in_scop_p.
7737 (schedule_to_scattering): Disabled for the moment the code computing
7738 the "textual order for outer loop".
7740 * graphite.h (struct scop): New field loops.
7742 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
7744 * gcc.dg/graphite/scop-{1,...,7}.c: Updated.
7746 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
7747 Sebastian Pop <sebastian.pop@amd.com>
7749 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
7750 * common.opt (fstreamize-loops): New.
7751 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
7752 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
7753 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
7754 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
7756 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7758 * tree-data-ref.c (build_empty_rdg): New.
7759 (build_rdg): Use it.
7760 * tree-data-ref.h (build_empty_rdg): Declared.
7761 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
7762 (find_vertex_for_stmt): Removed.
7763 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
7765 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
7767 * tree-loop-distribution.c (generate_builtin): After cancelling the
7768 loop tree, also delete basic blocks.
7769 (rdg_flag_uses): Stop recursion when a vertex has already been
7772 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7774 * graphite.c (build_scop_alpha): Removed.
7775 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
7776 and dump_dependence_graph to avoid compiler warnings.
7778 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7780 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
7781 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
7782 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
7783 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
7784 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
7785 (initialize_dependence_polyhedron, find_vertex_for_stmt,
7786 initialize_data_dependence_polyhedron, is_empty_polyhedron,
7787 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
7788 dump_dependence_graph): New.
7789 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
7791 (struct scop): New field loop2cloog_loop.
7792 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
7793 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
7795 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7797 * graphite.c (build_graphite_bb): Fix initialization
7798 of the graphite basic block.
7800 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
7802 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
7803 loop domain matrix. Pass in the number of loops contained in the
7805 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
7806 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
7807 loops that are not surrounding the current loop are not represented
7808 in the domain constraint matrix.
7809 (build_scop_iteration_domain): Initial domain constraint matrix
7810 contains only the eq/ineq, cst, and scop parameters columns.
7812 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7814 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
7815 (print_graphite_bb): Print scattering.
7817 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7819 * graphite.c (initialize_cloog_names): Initialize names of
7820 scattering variables.
7822 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7824 * graphite.c (dot_all_scops_1): Disable debug output while
7827 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7829 * graphite.c (find_transform): Change cloog output language to C.
7831 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
7833 * tree-loop-distribution.c (generate_memset_zero,
7834 generate_builtin, generate_code_for_partition,
7835 rdg_flag_all_uses): New.
7836 (rdg_flag_uses): Gather in the same partition the statements defining
7837 the VUSES of the current statement.
7838 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
7839 Gather in the same partition not only the stores to the same memory
7840 access, but also the reads.
7841 (ldist_generate_loops): Renamed ldist_gen.
7843 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
7844 Tobias Grosser <grosser@fmi.uni-passau.de>
7846 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
7847 next pointer, don't use the inner pointer.
7849 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
7851 * graphite.c (dot_all_scops, dot_all_scops_1): New.
7852 (find_transform): Call dot_all_1.
7853 * graphite.h (dot_all_scops): Declared.
7855 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
7857 * tree-loop-distribution.c: Fix apsi.f ICE.
7858 (create_bb_after_loop): New.
7859 (generate_loops_for_partition): Use it.
7860 * gfortran.dg/ldist-1.f90: New.
7862 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
7863 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
7865 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7867 * graphite.c (find_transform): Dump cloog program sent to cloog.
7869 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7871 * graphite.c (initialize_cloog_names): Initialize cloog
7874 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7876 * graphite.c (build_scop_context): Fix typo, for the matrix
7877 format: insert '0 >= 0' instead of '-1 >= 0'.
7879 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
7881 * Fix merge problems.
7883 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
7885 * graphite.c (setup_cloog_loop): Fix typo.
7887 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
7889 * doc/invoke.texi (-ftree-loop-distribution): Documented.
7890 * tree-loop-distribution.c: Reimplemented.
7891 * tree-pass.h (pass_loop_distribution): New.
7892 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
7894 * graphds.h (struct graph): New field indexes.
7895 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7897 * tree-vect-analyze.c: Remove declaration of static functions when not
7899 * tree-vectorizer.c: Same.
7900 (rename_variables_in_loop): Now extern.
7901 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
7902 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
7903 calling redirect_edge_and_branch_force.
7905 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
7907 * tree-data-ref.c: Don't include tree-chrec.h.
7908 (debug_data_dependence_relations): New.
7909 (dump_data_dependence_relation): Call dump_data_reference on data refs
7911 (same_access_functions): Moved...
7912 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
7913 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7914 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
7915 struct rdg_vertex_info, ): New.
7916 (create_rdg_edge_for_ddr): Compute the dependence level before looking
7918 (create_rdg_vertices): Initialize the htab of graph->indexes.
7919 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
7920 (stmts_from_loop): Don't save LABEL_EXPR.
7921 (hash_stmt_vertex_info, eq_stmt_vertex_info,
7922 hash_stmt_vertex_del): New.
7923 (build_rdg): Initialize rdg->indexes.
7924 (free_rdg, stores_from_loop, ref_base_address,
7925 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
7926 have_similar_memory_accesses_1, ref_base_address_1,
7927 remove_similar_memory_refs): New.
7929 * tree-data-ref.h: Include tree-chrec.h.
7930 (debug_data_dependence_relations): Declared.
7931 (same_access_functions): ...here. Now static inline.
7932 (ddr_is_anti_dependent, ddrs_have_anti_deps,
7933 ddr_dependence_level): New.
7934 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
7935 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
7936 RDG_MEM_READS_STMT): New.
7937 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7938 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
7939 rdg_vertex_for_stmt): Declared.
7940 (struct rdg_edge): New field level.
7941 (RDGE_LEVEL, free_rdg): New.
7942 (stores_from_loop, remove_similar_memory_refs,
7943 rdg_defs_used_in_other_loops_p,
7944 have_similar_memory_accesses): Declared.
7945 (rdg_has_similar_memory_accesses): New.
7947 * lambda.h (dependence_level): New.
7948 * common.opt (ftree-loop-distribution): New.
7949 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
7950 (print_loop_ir): Renamed print_loops.
7951 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
7952 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
7953 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
7954 (tree-loop-distribution.o): Added.
7955 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
7956 (mark_virtual_ops_in_bb): New.
7957 (print_loops_bb, debug_loop_num, debug_loop): New.
7958 * passes.c: Scheduled pass_loop_distribution.
7960 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7962 * graphite.c (scan_tree_for_params): Correct the number of columns
7964 (nb_flat_iterator): New.
7965 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
7966 (build_scop_iteration_domain): Correct the number of columns for
7969 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
7971 * Merge from mainline (129697:130800).
7973 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
7975 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
7976 dominated by SCoP's exit.
7977 (graphite_transform_loops): Compute post dominators.
7979 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
7981 * Merge from mainline (127169:129697).
7983 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
7985 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
7986 parameter for the basic block that contains the expression. Use
7987 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
7988 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
7990 * graphite.h (gbb_loop): New.
7991 (GBB_LOOP): Removed.
7993 2007-08-03 Sebastian Pop <sebpop@gmail.com>
7995 * Makefile.in: Fix merge problem.
7997 2007-08-03 Sebastian Pop <sebpop@gmail.com>
7999 * Merge from mainline (125309:127169).
8000 * tree-loop-distribution.c: Disabled.
8002 2007-06-05 Sebastian Pop <sebpop@gmail.com>
8004 * Merge from mainline (r123693:125309).
8006 2007-05-30 Sebastian Pop <sebpop@gmail.com>
8008 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
8010 (correct_modify_p, check_statements, number_of_lvalue_uses,
8011 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
8012 instead of MODIFY_EXPR.
8013 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
8016 2007-05-24 Sebastian Pop <sebpop@gmail.com>
8018 * tree-loop-distribution.c (struct rdg): Replace arrays by
8019 VECs for edges and vertices.
8020 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
8021 (RDGV_NB_PARTITIONS): New.
8022 (PRDG_NBV, PRDG_NBE): Removed.
8023 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
8024 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
8025 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
8027 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
8028 Sebastian Pop <sebpop@gmail.com>
8030 * doc/invoke.texi (-ftree-loop-distribution): Document.
8031 * tree-loop-distribution.c: New file.
8032 * tree-pass.h (pass_loop_distribution): Declared.
8033 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8034 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
8036 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
8037 (DDR_REVERSED_P): New.
8038 * common.opt (-ftree-loop-distribution): New.
8039 * tree-flow.h (distribute_loops): Declared.
8040 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
8041 * passes.c (init_optimization_passes): Schedule loop distribution.
8043 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
8045 * graphite.c (print_graphite_bb): Don't call dump_data_references.
8046 (print_scop): Don't print when scop is NULL.
8047 (build_scop_context, find_transform): Don't output to stderr.
8049 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
8051 * tree-data-ref.c: Don't include graphite.h.
8052 Comment out the code for printing data reference's scop.
8053 (build_access_matrix_with_af): Moved...
8054 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
8055 * graphite.c (build_access_matrix_with_af): ... here. Now static.
8056 (print_graphite_bb): Print basic block's schedule.
8057 (print_scop): Don't print the schedule, call cloog's pretty printer.
8058 (bb_in_scop_p): A basic block is in a scop only if it is both
8059 dominated and postdominated by the scop's entry and exit basic blocks.
8060 (function_parameter_p): New.
8061 (invariant_in_scop_p): Use function_parameter_p.
8062 (new_scop, save_scop): New.
8063 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
8065 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
8066 (loop_in_scop_p): New.
8067 (scop_record_loop): Use loop_in_scop_p.
8068 (build_scop_domain): Renamed build_scop_iteration_domain.
8069 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
8070 nb_params_in_scop, build_scop_context, first_loop_in_scop,
8071 setup_cloog_loop, dot_scop_1, dot_scop): New.
8072 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
8073 (struct scop): Add a pointer to cloog's representation of a program.
8075 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8077 * doc/invoke.texi (-ftree-check-verbose): Renamed
8078 -ftree-checks-verbose.
8079 * common.opt (flag_tree_check_verbose): Renamed
8080 flag_tree_checks_verbose.
8081 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
8083 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8085 * configure: Regenerated.
8086 * config.in: Regenerated.
8087 * tree-ssa-loop.c (graphite_transforms): Execute
8088 graphite_transform_loops only when HAVE_cloog.
8089 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
8090 * graphite.c: Include polylibgmp.h and cloog.h.
8091 (graphite_transform_loops): Removed loops parameter.
8092 * tree-flow.h (graphite_transform_loops): Update declaration.
8093 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
8094 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
8095 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
8096 (OBJS-common): Remove dependence on graphite.o.
8097 (BACKEND): Depend on @GRAPHITE@.
8099 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
8101 * doc/invoke.texi (-ftree-check-verbose): Documented.
8102 * gcc.dg/tree-checker/tree-checks-1.c: New.
8103 * gcc.dg/tree-checker/tree-checks-2.c: New.
8104 * gcc.dg/tree-checker/tree-checks-3.c: New.
8105 * gcc.dg/tree-checker/tree-checks-4.c: New.
8106 * gcc.dg/tree-checker/tree-checks.exp: New.
8107 * gcc.dg/tree-checker/condates.crp: New.
8108 * common.opt (ftree-checks-verbose): New.
8109 * tree-check.c (tree_check_warning): Move extra stderr output
8110 under control of flag_tree_check_verbose.
8112 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
8114 * tree-match.c: Fix comments formatting.
8115 * tree-match.h: Fix comments formatting.
8116 * tree-check.c: Fix comments formatting.
8117 (tree_check_init): Restructure.
8119 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
8121 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
8123 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
8125 * Merge from mainline (r120733:123693).
8127 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
8129 * condate.y: New file.
8130 * tree-match.h (struct patt_info_s): New field sign.
8131 (struct condate_s): New field msg.
8132 (normalize_condate, name_condate, add_condate): New.
8133 (conds[], condate_parse): Made extern.
8134 * tree-check.c (tree_check_warning): First arg changed to cond;
8135 warning reformatted.
8136 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
8138 (tree_check): Process trivial condates.
8139 (read_delimited_string): Removed.
8140 (print_cond): Print name and msg.
8141 (conds[]): Made extern.
8142 (parse_tree_check_file_once): Rewritten to use the parser in
8144 Processing of option --tree_check_string moved to tree_scan().
8145 * Makefile.in: Added condate.y
8147 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
8149 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
8150 Use VECs instead of varrays.
8151 * diagnostic.h (lazy_dump_generic_node): Update declaration.
8152 * Makefile.in (pretty-print.o): Depend on vec.h.
8153 * pretty-print.c: Include tree.h and vec.h.
8154 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
8155 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
8156 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
8157 pp_free_list): Use VECs instead of varrays.
8158 * pretty-print.h: Do not include varray.h.
8159 (struct tree_chunk_s): Declaration moved before its use.
8160 (output_buffer): Rename varray field to chunks.
8161 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
8162 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
8163 save_global_holes): Use VECs instead of varrays.
8164 * tree-match.h: Declare VECs of cfg_node, and hole_p.
8165 * tree-check.c (scan_cfg_stmts, push_node,
8166 print_matching_stmt): Removed.
8167 (tree_check_instance, push_global_holes_if_new, tree_check,
8168 execute_tree_check): Use VECs instead of varrays.
8169 (gate_tree_check): Don't execute the CFG check when basic_block_info
8172 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8174 * Merge from mainline (r115016:120733).
8176 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8178 * Merge from mainline (r117632:117661).
8180 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8182 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
8183 * tree-pass.h (TDF_DEBUG, debug_p): New.
8184 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
8185 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
8186 get_loop_exit_condition, analyze_evolution_in_loop,
8187 analyze_initial_condition, analyze_scalar_evolution,
8188 instantiate_parameters, number_of_latch_executions): Use debug_p.
8189 * tree-chrec.c (chrec_apply): Use debug_p.
8190 * tree-data-ref.c: Include graphite.h.
8191 (dump_data_reference): Print also the access matrix.
8192 (analyze_array, analyze_indirect_ref, init_data_ref,
8193 analyze_offset_expr, address_analysis, object_analysis,
8194 create_data_ref, finalize_ddr_dependent,
8195 non_affine_dependence_relation, analyze_ziv_subscript,
8196 analyze_siv_subscript_cst_affine,
8197 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
8198 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
8199 analyze_miv_subscript, analyze_overlapping_iterations,
8200 build_classic_dist_vector, subscript_dependence_tester,
8201 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
8202 (build_access_matrix_with_af): No longer static.
8203 * tree-data-ref.h (scop_p): ... declaration here.
8204 (data_reference.scop): New field.
8205 (DR_SCOP, DR_ACCESS_MATRIX): New.
8206 (build_access_matrix_with_af, dr_num_subscripts): Declared.
8207 * graphite.c (print_graphite_bb): Call dump_data_references.
8208 (print_scop): Use scop_nb_loops and scop_dim_domain.
8209 (test_for_scop_bound): Use debug_p.
8210 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
8212 (scop_loop_index): Moved...
8213 (scop_record_loop): New.
8214 (build_scop_loop_nests): Use scop_record_loop.
8215 (build_scop_domain): Use scop_dim_domain.
8216 (build_access_matrix): Implemented.
8217 (build_scop_canonical_schedules): Use scop_nb_loops.
8218 (build_graphite_bb): Initialize GBB_SCOP.
8219 * graphite.h (scop_p): Moved...
8220 (graphite_bb.scop): New field.
8221 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
8222 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
8223 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
8224 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
8225 scop_loop_index): New.
8226 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
8228 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
8230 * Merge from mainline (r117661:120450).
8232 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
8234 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
8235 at the first declaration outside the varying loop, instantiate as
8237 * tree-chrec.c (for_each_scev_op): New.
8238 * tree-chrec.h (for_each_scev_op): Declared.
8239 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
8240 * tree-data-ref.c (get_references_in_stmt,
8241 find_data_references_in_stmt): New, from trunk.
8242 (find_data_references_in_loop): Use get_references_in_stmt
8243 and find_data_references_in_loop, modified as in trunk.
8244 (build_access_matrix_with_af): New.
8245 * tree-data-ref.h (data_reference): Add a field access_matrix.
8246 (data_ref_loc): New, as in trunk.
8247 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
8248 invariant_in_scop_p, param_index, scan_tree_for_params,
8249 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
8250 idx_record_param, idx_record_params, build_access_matrix,
8251 build_scop_data_accesses, build_scop_canonical_schedules,
8252 build_graphite_bb, build_scop_bbs, find_params_in_bb,
8253 build_scop_params): New.
8254 * graphite.h (graphite_bb): New.
8255 (scop): Add fields static_schedule, params, loop_nest,
8257 * lambda.h: Declare vecs of lambda_matrix.
8258 * tree-flow.h (print_loop_ir_bb): Declared.
8259 * tree-cfg.c (print_loop_ir_bb): New.
8260 (print_loop): Use print_loop_ir_bb.
8262 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
8264 * Merge from mainline (r115016:117632).
8266 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
8268 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
8269 break due to a warning.
8271 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
8273 * graphite.c (print_scops, debug_scops): New.
8274 (graphite_transform): Renamed graphite_find_transform.
8275 * graphite.h (debug_scops): Declared.
8277 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
8279 * tree-match.c: Reformat following the GNU style.
8280 * tree-match.h: Reformat following the GNU style.
8281 * tree-pattern.h: Removed empty file.
8282 * Makefile.in: Remove references to tree-pattern.h.
8283 * tree-check.c: Reformat following the GNU style.
8284 (execute_tree_check): Move gate condition code to...
8285 (gate_tree_check): ...here. New function.
8286 (pass_check): Use the gate function.
8288 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
8290 * tree-pattern.h: New. Tree pattern matching and checking using
8292 * tree-check.c: New. Tree/CFG checking pass.
8293 * tree-match.c: New. Library for tree pattern matching.
8294 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
8295 * toplev.c, flags.h: Add globals for tree-check pass.
8296 * Makefile.in: Integrate the files in tree-check pass.
8297 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
8298 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
8299 Introduce a "lazy" pretty-print mode.
8300 * tree.c, tree.h: Add tree_name.
8302 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
8304 * doc/invoke.texi (-fgraphite): Correct typo.
8305 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
8306 use of print_loop_ir.
8307 * gcc.dg/graphite/scop-1.c: New.
8308 * gcc.dg/graphite/scop-2.c: New.
8309 * gcc.dg/graphite/graphite.exp: New.
8310 * graphite.c: Include domwalk.h.
8311 (print_scop): Print only the entry and exit blocks.
8312 (debug_scop): No longer static.
8313 (affine_expr): Fix formating. Return also true when the expression is
8315 (stmt_simple_for_scop_p): Fix formating.
8316 (build_scops): Use domwalk.
8317 (get_loop_start, end_scop, test_for_scop_bound): New.
8318 (graphite_transform_loops): Avoid printing on stderr.
8319 * graphite.h (debug_scop): Declared.
8320 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
8321 * Makefile.in (graphite.o): Depend on domwalk.h.
8322 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
8323 declarations for static functions.
8324 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
8325 controlling output verbosity.
8327 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
8328 Plesco Alexandru <shurikx@gmail.com>
8330 * doc/invoke.texi (-fgraphite): Document.
8331 * tree-pass.h (pass_graphite_transforms): Declared.
8332 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
8333 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
8334 (pass_graphite_transforms): Defined.
8335 * tree-data-ref.c (free_data_ref, data_reference): Extern.
8336 * tree-data-ref.h (free_data_ref, data_reference): Declared.
8337 * graphite.c, graphite.h: New.
8338 * common.opt (fgraphite): Declared.
8339 * tree-flow.h (graphite_transform_loops): Declared.
8340 * Makefile.in (OBJS-common): Add graphite.o.
8341 (graphite.o): New rule.
8342 * passes.c (pass_graphite_transforms): Scheduled.