1 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
3 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
4 insert_loop_close_phis.
5 * sese.c (name_defined_in_loop_p): Removed.
6 (expr_defined_in_loop_p): Removed.
7 (alive_after_loop): Removed.
8 (close_phi_not_yet_inserted_p): Removed.
9 (struct alep): Removed.
10 (add_loop_exit_phis): Removed.
11 (insert_loop_close_phis): Removed.
13 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
15 * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped
17 * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same.
19 2010-07-07 Sebastian Pop <sebastian.pop@amd.com>
21 * gfortran.dg/graphite/id-20.f: New.
23 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
25 * graphite-cloog-util.h: Added cloog.h.
26 * graphite-blocking.c: Removed cloog.h.
27 * graphite-dependences.c: Same.
28 * graphite-interchange.c: Same.
29 * graphite-poly.c: Same.
30 * graphite-ppl.c: Same.
31 * graphite-scop-detection.c: Same.
32 * graphite-sese-to-poly.c:
34 Removed graphite-clast-to-gimple.h.
35 (check_poly_representation): Removed (unused).
36 * graphite-sese-to-poly.h
37 (check_poly_representation): Removed (unused).
39 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
42 (OBJS-common): Added graphite-cloog-util.o.
43 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
44 (graphite-cloog-util.o): New.
45 (graphite-ppl.o): Added graphite-cloog-util.h.
46 * graphite-clast-to-gimple.c:
47 Added graphite-cloog-util.h to include statements.
48 * graphite-cloog-util.c: New.
49 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
50 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
51 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
52 (new_C_Polyhedron_from_Cloog_Matrix): Same.
53 (ppl_Constrain_System_number_of_constraints): Same.
54 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
55 (oppose_constraint): Same.
56 (cloog_matrix_to_ppl_constraint): Same.
57 (new_Constraint_System_from_Cloog_Matrix): Same.
58 (insert_constraint_into_matrix): Same. Declared static.
59 * graphite-cloog-util.h: New.
60 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
61 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
62 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
63 (new_C_Polyhedron_from_Cloog_Matrix): Same.
64 (insert_constraint_into_matrix): Same.
66 Added graphite-cloog-util.h to include statements.
67 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
68 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
69 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
70 (new_C_Polyhedron_from_Cloog_Matrix): Same.
71 (insert_constraint_into_matrix): Same.
72 (ppl_Constrain_System_number_of_constraints): Same.
73 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
74 (oppose_constraint): Same.
75 (cloog_matrix_to_ppl_constraint): Same.
76 (new_Constraint_System_from_Cloog_Matrix): Same.
78 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
79 graphite-cloog-util.h.
80 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
81 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
82 (new_C_Polyhedron_from_Cloog_Matrix): Same.
83 (insert_constraint_into_matrix): Removed.
85 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
87 * graphite-clast-to-gimple.c
88 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
89 (precision_for_interval): Same.
90 (gcc_type_for_interval): Same.
91 (compute_type_for_level): Same.
92 * graphite-interchange.c
93 (lst_interchange_profitable_p): Same.
95 (psct_scattering_dim_for_loop_depth): Same.
97 (ppl_max_for_le_pointset): Same.
98 (ppl_min_for_le_pointset): Same.
100 2010-06-25 Vladimir Kargov <kargov@gmail.com>
102 * refined-regions.c (bb_index_compare): New.
103 (get_bbs_in_region): New.
104 (print_bbs_in_region): New.
105 (print_refined_region): Add an argument that allows to print
106 all basic blocks contained in regions.
107 (debug_refined_region): Update call to print_refined_region.
108 * refined-regions.h (print_refined_region): Update declaration.
109 (get_bbs_in_region): Declared.
110 * graphite-scop-detection.c (build_scops_new): Print the refined
111 region tree into the Grahite dump file.
113 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
115 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
116 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
118 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
120 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
121 rewrite_close_phi_out_of_ssa.
123 * gcc.dg/graphite/id-22.c: New.
125 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
127 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
129 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
131 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
133 * sese.c (debug_rename_map): Same.
136 (rename_variables_in_stmt): Same.
137 (expand_scalar_variables_call): Same.
138 (expand_scalar_variables_ssa_name): Same.
139 (expand_scalar_variables_expr): Same.
140 (expand_scalar_variables_stmt): Same.
141 (expand_scalar_variables): Same.
142 (rename_variables): Same.
143 (graphite_copy_stmts_from_block): Same.
144 (copy_bb_and_scalar_dependences): Same.
146 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
148 * graphite-clast-to-gimple.c (copy_renames): Removed.
149 (translate_clast_for): Do not call copy_renames.
150 (translate_clast_guard): Same.
152 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
154 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
155 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
156 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
157 before rewrite_cross_bb_scalar_deps.
159 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
161 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
162 Early return in when flag_associative_math is not set.
164 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
166 * gcc.dg/graphite/run-id-2.c: Call abort.
168 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
170 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
171 of SSA copies on edges except for loop->latch.
173 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
175 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
176 Split out of rewrite_reductions_out_of_ssa.
177 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
179 * graphite.c (graphite_transform_loops): Call it.
181 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
183 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
185 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
187 * passes.c (init_optimization_passes): Add pass_graphite.
188 Schedule a pass_copy_prop before pass_graphite_transforms.
189 * timevar.def (TV_GRAPHITE): Declared.
190 * tree-pass.h (pass_graphite): Declared.
191 * tree-ssa-loop.c (pass_graphite): New.
193 * gcc.dg/graphite/id-20.c: New.
195 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
197 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
198 Remove calls to rename_nb_iterations and rename_sese_parameters.
199 * graphite-clast-to-gimple.h (gloog): Update declaration.
200 * graphite.c (graphite_transform_loops): Update call to gloog.
201 * sese.c (rename_variables_in_expr): Removed.
202 (rename_nb_iterations): Removed.
203 (rename_sese_parameters): Removed.
204 * sese.h (rename_nb_iterations): Removed.
205 (rename_sese_parameters): Removed.
207 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
209 * graphite-clast-to-gimple.c (gloog): Remove call to
210 sese_adjust_liveout_phis.
211 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
212 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
213 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
214 rewrite_phi_out_of_ssa.
215 * sese.c (get_vdef_before_sese): Removed.
216 (sese_adjust_vphi): Removed.
217 (sese_adjust_liveout_phis): Removed.
218 * sese.h (sese_adjust_liveout_phis): Removed.
220 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
222 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
223 argument for the place after which to insert the out of SSA copy.
224 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
225 (rewrite_phi_out_of_ssa): Same.
226 (rewrite_cross_bb_scalar_deps): Same.
227 (insert_copyout): Removed.
228 (insert_copyin): Removed.
229 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
230 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
233 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
235 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
236 (rewrite_reductions_out_of_ssa): Same.
237 (rewrite_commutative_reductions_out_of_ssa): Same.
238 (build_poly_scop): Do not call these functions.
239 * graphite-sese-to-poly.h (build_poly_scop): Declared.
240 (rewrite_reductions_out_of_ssa): Declared.
241 (rewrite_commutative_reductions_out_of_ssa): Declared.
242 * graphite.c (graphite_transform_loops): Call on every scop
243 rewrite_commutative_reductions_out_of_ssa before calling
244 rewrite_reductions_out_of_ssa and build_scop_bbs.
246 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
248 * graphite-dependences.c (dot_deps): Make system call to dotty run
250 (dot_deps_stmt): Same.
251 * graphite-poly.c (dot_lst): Same.
253 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
255 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
256 old_type in parameter.
257 (gcc_type_for_value): Update call to gcc_type_for_interval.
258 (compute_type_for_level_1): Renamed compute_type_for_level.
259 Update call to gcc_type_for_interval.
261 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
263 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
264 the scev analysis when the variable is not used outside the loop
265 in a close phi node: call compute_overall_effect_of_inner_loop.
267 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
269 * graphite-sese-to-poly.c (single_pred_cond): Renamed
270 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
271 (build_sese_conditions_before): Renamed call to single_pred_cond.
272 (build_sese_conditions_after): Same.
274 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
276 * graphite-poly.h: Fix comments and indentation.
277 * graphite-sese-to-poly.c: Same.
278 (build_sese_conditions_before): Compute stmt and gbb only when needed.
279 * tree-chrec.c: Fix comments and indentation.
280 (tree-ssa-loop-niter.c): Same.
282 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de>
284 * refined-regions.c (create_region): Only initialize the region.
285 (find_regions_with_entry): Initialize parent relation and bbmap
287 (build_regions_tree): Set outermost_region to region instead of
289 (calculate_region_tree): Remove unneeded parameters.
291 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de>
293 * graphite-scop-detection.c (is_scop_p): New.
294 (build_scops_new): New. A skeleton for the new scop detection.
295 (build_scops_old): Renamed from build_scops.
296 (build_scops): New version. Call the new and the old scop
299 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de>
300 Antoniu Pop <antoniu.pop@gmail.com>
302 * Makefile.in (OBJS-common): Add refined-regions.o.
303 (refined-regions.o): New.
304 (graphite-scop-detection.o): Use refined-regions.h.
305 * graphite-scop-detection.c: Include refined-regions.h
306 (build_scops): Also build the refined region tree.
307 * refined-regions.c: New. Adds an algorithm to detect refined
309 (print_refined_region): New.
310 (debug_refined_region): New.
311 (refined_region_contains_bb_p): New.
312 (refined_region_contains_region_p): New.
314 (struct find_regions_global_data): New.
316 (typedef struct bb_bb_def): New.
317 (new_bb_bb_def): New.
318 (bb_bb_map_hash): New.
322 (new_bb_reg_def): New.
323 (bb_reg_map_hash): New.
324 (eq_bb_reg_map): New.
325 (find_new_region): New.
326 (insert_new_reg): New.
327 (insert_new_bb): New.
328 (insert_shortcut): New.
329 (get_next_postdom): New.
330 (create_region): New.
331 (find_regions_with_entry): New.
332 (find_regions_adc): New.
334 (get_topmost_parent): New.
335 (build_regions_tree): New.
336 (calculate_region_tree): New.
337 (free_region_tree): New.
338 * refined-regions.h: New.
339 (struct refined_region): New.
340 (calculate_region_tree): New.
341 (free_region_tree): New.
342 (refined_region_contains_bb_p): New.
343 (refined_region_contains_region_p): New.
344 (print_refined_region): New.
345 (debug_refined_region): New.
347 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
349 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
352 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
354 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix
355 type of integer_one_node for fold_build of POINTER_PLUS_EXPR.
357 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
359 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
360 phi_arg_in_outermost_loop.
361 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
362 (remove_invariant_phi): Same.
364 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
366 * graphite-blocking.c
367 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
368 * graphite-clast-to-gimple.c
369 (clast_to_gcc_expression): Same.
370 (precision_for_value): Same.
371 (precision_for_interval): Same.
372 (gcc_type_for_interval): Same.
373 (graphite_create_new_guard): Same.
374 (compute_bounds_for_level): Same.
375 (graphite_create_new_loop_guard): Same.
376 * graphite-interchange.c
377 (build_linearized_memory_access): Same.
378 (pdr_stride_in_loop): Same.
379 (memory_strides_in_loop_1): Same.
380 (memory_strides_in_loop): Same.
381 (extend_scattering): Same.
382 (psct_scattering_dim_for_loop_depth): Same.
383 (pbb_number_of_iterations): Same.
385 (debug_iteration_domains): Same.
387 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
388 (ppl_set_inhomogeneous_gmp): Same.
389 (ppl_strip_loop): Same.
390 (ppl_lexico_compare_linear_expressions): Same.
391 (ppl_read_polyhedron_matrix): Same.
392 (ppl_max_for_le_pointset): Same.
394 (ppl_read_polyhedron_matrix): Same.
395 (tree_int_to_gmp): Same.
396 (gmp_cst_to_tree): Same.
397 (ppl_set_inhomogeneous): Same.
398 (ppl_set_inhomogeneous_tree): Same.
399 (ppl_set_coef): Same.
400 (ppl_set_coef_tree): Same.
401 * graphite-sese-to-poly.c
402 (build_pbb_scattering_polyhedrons): Same.
403 (build_scop_scattering): Same.
404 (scan_tree_for_params_right_scev): Same.
405 (scan_tree_for_params): Same.
406 (find_params_in_bb): Same.
407 (find_scop_parameters): Same.
408 (add_upper_bounds_from_estimated_nit): Same.
409 (build_loop_iteration_domains): Same.
410 (add_condition_to_domain): Same.
411 (pdr_add_memory_accesses): Same.
413 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
415 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
416 CLooG's value_* macros to their respective mpz_* counterparts.
417 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
418 (graphite_create_new_loop_guard): Same.
419 * graphite-interchange.c (build_linearized_memory_access): Same.
420 (pdr_stride_in_loop): Same.
421 (memory_strides_in_loop_1): Same.
422 (1st_interchange_profitable_p): Same.
423 * graphite-poly.c (extend_scattering): Same.
424 (psct_scattering_dim_for_loop_depth): Same.
425 (pbb_number_of_iterations): Same.
426 (pbb_number_of_iterations_at_time): Same.
427 * graphite-poly.h (new_1st_loop): Same.
428 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
429 (oppose_constraint): Same.
430 (insert_constraint_into_matrix): Same.
431 (ppl_set_inhomogeneous_gmp): Same.
432 (ppl_set_coef_gmp): Same.
433 (ppl_strip_loop): Same.
434 (ppl_lexico_compare_linear_expressions): Same.
435 (ppl_max_for_le_pointset): Same.
436 (ppl_min_for_le_pointset): Same.
437 (ppl_build_realtion): Same.
438 * graphite-ppl.h (gmp_cst_to_tree): Same.
439 (ppl_set_inhomogeneous): Same.
440 (ppl_set_inhomogeneous_tree): Same.
441 (ppl_set_coef): Same.
442 (ppl_set_coef_tree): Same.
443 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
444 (build_scop_scattering): Same.
445 (add_value_to_dim): Same.
446 (scan_tree_for_params_right_scev): Same.
447 (scan_tree_for_params_int): Same.
448 (scan_tree_for_params): Same.
449 (find_params_in_bb): Same.
450 (find_scop_parameters): Same.
451 (add_upper_bounds_from_estimated_nit): Same.
452 (build_loop_iteration_domains): Same.
453 (create_linear_expr_from_tree): Same.
454 (add_condition_to_domain): Same.
455 (pdr_add_memory_accesses): Same.
457 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
460 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
461 lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
462 When converting an unsigned type to signed, double its precision.
463 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
464 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
465 (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
467 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
470 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
471 build_nonstandard_integer_type.
472 (gcc_type_for_interval): Same.
474 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
477 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
478 POINTER_PLUS_EXPR for pointer types.
480 * gcc.dg/graphite/id-19.c: New.
482 2010-04-04 Sebastian Pop <sebastian.pop@amd.com>
485 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
486 * graphite-clast-to-gimple.c: Include langhooks.h.
487 (max_signed_precision_type): New.
488 (max_precision_type): Takes two types as arguments.
489 (precision_for_value): New.
490 (precision_for_interval): New.
491 (gcc_type_for_interval): New.
492 (gcc_type_for_value): New.
493 (gcc_type_for_clast_term): New.
494 (gcc_type_for_clast_red): New.
495 (gcc_type_for_clast_bin): New.
496 (gcc_type_for_clast_expr): Split up into several functions.
497 (gcc_type_for_clast_eq): Rewritten.
498 (compute_bounds_for_level): New.
499 (compute_type_for_level_1): New.
500 (compute_type_for_level): New.
501 (gcc_type_for_cloog_iv): Removed.
502 (gcc_type_for_iv_of_clast_loop): Rewritten.
503 (graphite_create_new_loop): Compute the lower and upper bound types
504 with gcc_type_for_clast_expr.
505 (graphite_create_new_loop_guard): Same.
506 (find_cloog_iv_in_expr): Removed.
507 (compute_cloog_iv_types_1): Removed.
508 (compute_cloog_iv_types): Removed.
509 (gloog): Do not call compute_cloog_iv_types.
510 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
512 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
513 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
514 (GBB_CLOOG_IV_TYPES): Removed.
516 * gcc.dg/graphite/run-id-pr42644.c: Call abort.
518 2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
520 Reverted this commit: as at this point the loop closed SSA form
521 is under a canonical form respecting the single argument condition.
522 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
523 close phi nodes may have more than one argument.
525 2010-04-01 Sebastian Pop <sebastian.pop@amd.com>
527 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
528 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
529 (detect_commutative_reduction): Same.
531 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
533 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
534 close phi nodes may have more than one argument.
536 2010-03-30 Richard Guenther <rguenther@suse.de>
537 Zdenek Dvorak <ook@ucw.cz>
538 Sebastian Pop <sebastian.pop@amd.com>
541 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
542 with multiple arguments.
543 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
545 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
547 * graphite-dependences.c (print_pddr): Call print_pdr with an
549 * graphite-poly.c (debug_pdr): Add an extra argument for the
552 (print_pbb_domain): Same.
554 (print_scop_context): Same.
557 (debug_pbb_domain): Same.
561 (debug_scop_context): Same.
564 (print_scop_params): Same.
565 (debug_scop_params): Same.
566 (print_iteration_domain): Same.
567 (print_iteration_domains): Same.
568 (debug_iteration_domain): Same.
569 (debug_iteration_domains): Same.
570 (print_scattering_function): Same.
571 (print_scattering_functions): Same.
572 (debug_scattering_function): Same.
573 (debug_scattering_functions): Same.
574 * graphite-poly.h (debug_pdr): Update declaration.
576 (print_pbb_domain): Same.
578 (print_scop_context): Same.
581 (debug_pbb_domain): Same.
585 (debug_scop_context): Same.
588 (print_scop_params): Same.
589 (debug_scop_params): Same.
590 (print_iteration_domain): Same.
591 (print_iteration_domains): Same.
592 (debug_iteration_domain): Same.
593 (debug_iteration_domains): Same.
594 (print_scattering_function): Same.
595 (print_scattering_functions): Same.
596 (debug_scattering_function): Same.
597 (debug_scattering_functions): Same.
599 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
601 * graphite-poly.c (print_scattering_function_1): New.
602 (print_scattering_function): Call it.
603 (print_scop_params): Remove spaces at the end of lines.
606 * graphite-poly.h (print_cloog): Declared.
607 (debug_cloog): Declared.
609 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
611 * tree-ssa-copy.c: Revert this previous change:
612 (init_copy_prop): Loop closed phi nodes cancontain more than one
614 (execute_copy_prop): Revert the previous change: do not call
615 rewrite_into_loop_closed_ssa.
617 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
618 Richard Guenther <rguenther@suse.de>
621 * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can
622 contain more than one argument.
623 (execute_copy_prop): Revert the previous change: do not call
624 rewrite_into_loop_closed_ssa.
626 * gcc.dg/graphite/id-pr43464.c: Remove compile warning.
627 * gcc.dg/graphite/id-pr43464-1.c: New.
629 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
632 * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa
633 and verify_loop_closed_ssa when copy prop is executed in the LNO.
635 * gcc.dg/graphite/id-pr43464.c: New.
637 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
639 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
641 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
642 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
643 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
644 to switch between adding the IV bump in loop->latch or in loop->header.
646 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
648 * passes.c (init_optimization_passes): Add pass_copy_prop
651 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
653 * graphite-poly.c (print_scattering_function): Pretty print following
656 (print_pbb_domain): Same.
657 (dump_gbb_cases): Same.
658 (dump_gbb_conditions): Same.
661 (print_scop_params): Same.
662 (print_scop_context): Same.
664 (print_pbb_body): New.
665 (lst_indent_to): New.
666 (print_lst): Start new lines with a #.
667 * graphite-poly.h (pbb_bb): New.
668 (pbb_index): Use pbb_bb.
669 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
671 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
673 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
676 * gcc.dg/graphite/id-pr43351.c
678 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
681 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
682 call insert_out_of_ssa_copy for default definitions.
683 * gfortran.dg/graphite/id-pr43354.f: New.
685 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
688 * gfortran.dg/graphite/pr43349.f: New.
690 2010-03-11 Sebastian Pop <sebastian.pop@amd.com>
692 * graphite-clast-to-gimple.c (my_long_long): Defined.
693 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
694 * graphite-sese-to-poly.c (my_long_long): Defined.
695 (scop_ivs_can_be_represented): Use it.
697 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
699 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
700 graphite-max-bbs-per-function, and loop-block-tile-size.
701 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
703 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
705 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
707 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
709 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
710 (add_upper_bounds_from_estimated_nit): New.
711 (build_loop_iteration_domains): Use it.
713 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
715 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
717 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
720 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
721 should be an INTEGER_CST. Also handle CASE_CONVERT.
722 * gcc.dg/graphite/pr43306.c: New.
724 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
726 * graphite.c (graphite_initialize): To bound the number of bbs per
727 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
728 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
729 * doc/invoke.texi: Document it.
731 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
733 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
734 * graphite-sese-to-poly.h (build_poly_scop): Same.
736 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
738 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
739 the number of parameters in the scop. Use as an upper bound
740 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
741 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
742 * doc/invoke.texi: Document it.
744 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
746 * graphite-sese-to-poly.c (add_param_constraints): Use
747 lower_bound_in_type and upper_bound_in_type.
749 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
751 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
752 instead of unsigned_type_node.
754 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
755 Reza Yazdani <reza.yazdani@amd.com>
758 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
759 on pointer type parameters.
761 * gcc.dg/graphite/run-id-4.c: New.
763 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
766 * gcc.dg/graphite/run-id-3.c: New.
768 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
769 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
771 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
772 handle conversions from pointer to integers.
773 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
774 induction variable, to be able to work with code generated by CLooG.
775 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
776 (build_poly_scop): Bail out if we cannot codegen a loop.
778 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
780 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
781 code generation with gloog_error.
783 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
785 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
786 Call fold_convert on all the returned values.
787 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
788 the type of the resulting expression.
790 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
792 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
793 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
794 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
796 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
798 * graphite-dependences.c (map_into_dep_poly): Removed.
799 (dependence_polyhedron_1): Use combine_context_id_scat.
801 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
803 * graphite-poly.h (struct poly_scattering): Add layout documentation.
804 (struct poly_bb): Same.
805 (combine_context_id_scat): New.
807 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
810 * sese.c (name_defined_in_loop_p): Return false for default
813 * gcc.dg/graphite/pr42326.c: New.
815 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
817 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
818 and clean up the logic.
820 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
822 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
825 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
828 * graphite-scop-detection.c (create_single_exit_edge): Move
829 the call to find_single_exit_edge to....
830 (create_sese_edges): ...here. Don't handle multiple edges
831 exiting the function.
832 (build_graphite_scops): Don't handle multiple edges
833 exiting the function.
835 * gcc.dg/graphite/pr43083.c: New.
837 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
840 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
841 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
843 * gfortran.dg/graphite/pr43097.f: New.
845 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
848 * graphite-scop-detection.c (create_single_exit_edge): Move
849 the call to find_single_exit_edge to....
850 (create_sese_edges): ...here. Don't handle multiple edges
851 exiting the function.
852 (build_graphite_scops): Don't handle multiple edges
853 exiting the function.
855 * gcc.dg/graphite/pr43083.c: New.
857 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
860 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
861 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
863 * gfortran.dg/graphite/pr43097.f: New.
865 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
866 Manuel López-Ibáñez <manu@gcc.gnu.org>
869 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
871 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
874 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
876 * g++.dg/graphite/pr43026.C: New.
878 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
880 * Merge from mainline (154736:156693).
882 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
885 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
887 * g++.dg/graphite/pr43026.C: New.
889 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
891 * Merge from mainline (154736:156693).
893 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
896 * gcc.dg/graphite/pr43012.c: New.
898 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
900 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
902 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
904 * g++.dg/graphite/pr42930.C: New.
906 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
908 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
910 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
912 * g++.dg/graphite/pr42930.C: New.
914 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
917 * graphite-scop-detection.c (graphite_can_represent_scev): Call
918 graphite_can_represent_init for MULT_EXPR.
920 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
924 * graphite-sese-to-poly.c (remove_phi): New.
925 (translate_scalar_reduction_to_array): Call remove_phi.
927 * gcc.dg/graphite/pr42530.c: New.
928 * gcc.dg/graphite/pr42914.c: New.
930 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
933 * graphite-scop-detection.c (graphite_can_represent_scev): Call
934 graphite_can_represent_init for MULT_EXPR.
936 2010-02-10 Sebastian Pop <seb@napoca>
940 * graphite-sese-to-poly.c (remove_phi): New.
941 (translate_scalar_reduction_to_array): Call remove_phi.
943 * gcc.dg/graphite/pr42530.c: New.
944 * gcc.dg/graphite/pr42914.c: New.
946 2010-02-10 Sebastian Pop <seb@napoca>
949 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
950 * graphite-clast-to-gimple.h (gloog): Update declaration.
951 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
952 * graphite-poly.h (struct poly_bb): Add missing comments.
953 (struct scop): Add poly_scop_p field.
955 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
956 * graphite.c (graphite_transform_loops): Build the polyhedral
957 representation for each scop before code generation.
958 * sese.c (rename_variables_in_operand): Removed.
959 (rename_variables_in_expr): Return the renamed expression.
960 (rename_sese_parameters): New.
961 * sese.h (rename_sese_parameters): Declared.
963 * gcc.dg/graphite/pr42771.c: New.
965 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
967 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
969 * gcc.dg/graphite/block-1.c: Same.
970 * gcc.dg/graphite/block-3.c: Same.
971 * gcc.dg/graphite/block-4.c: Same.
972 * gcc.dg/graphite/block-5.c: Same.
973 * gcc.dg/graphite/block-6.c: Same.
974 * gcc.dg/graphite/block-7.c: Same.
975 * gcc.dg/graphite/interchange-0.c: Same.
976 * gcc.dg/graphite/interchange-1.c: Same.
977 * gcc.dg/graphite/interchange-10.c: Same.
978 * gcc.dg/graphite/interchange-11.c: Same.
979 * gcc.dg/graphite/interchange-12.c: Same.
980 * gcc.dg/graphite/interchange-2.c: Same.
981 * gcc.dg/graphite/interchange-3.c: Same.
982 * gcc.dg/graphite/interchange-4.c: Same.
983 * gcc.dg/graphite/interchange-5.c: Same.
984 * gcc.dg/graphite/interchange-6.c: Same.
985 * gcc.dg/graphite/interchange-7.c: Same.
986 * gcc.dg/graphite/interchange-8.c: Same.
987 * gcc.dg/graphite/interchange-9.c: Same.
988 * gcc.dg/graphite/interchange-mvt.c: Same.
990 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
992 * gfortran.dg/graphite/id-19.f: New.
993 * gfortran.dg/graphite/pr14741.f90: New.
994 * gfortran.dg/graphite/pr41924.f90: New.
995 * gfortran.dg/graphite/run-id-2.f90: New.
997 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1000 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
1001 to unknown_dependence.
1002 (graphite_legal_transform_dr): Handle the unknown_dependence.
1003 (graphite_carried_dependence_level_k): Same.
1005 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1007 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
1009 * gcc.dg/graphite/block-1.c: Same.
1010 * gcc.dg/graphite/block-3.c: Same.
1011 * gcc.dg/graphite/block-4.c: Same.
1012 * gcc.dg/graphite/block-5.c: Same.
1013 * gcc.dg/graphite/block-6.c: Same.
1014 * gcc.dg/graphite/block-7.c: Same.
1015 * gcc.dg/graphite/interchange-0.c: Same.
1016 * gcc.dg/graphite/interchange-1.c: Same.
1017 * gcc.dg/graphite/interchange-10.c: Same.
1018 * gcc.dg/graphite/interchange-11.c: Same.
1019 * gcc.dg/graphite/interchange-12.c: Same.
1020 * gcc.dg/graphite/interchange-2.c: Same.
1021 * gcc.dg/graphite/interchange-3.c: Same.
1022 * gcc.dg/graphite/interchange-4.c: Same.
1023 * gcc.dg/graphite/interchange-5.c: Same.
1024 * gcc.dg/graphite/interchange-6.c: Same.
1025 * gcc.dg/graphite/interchange-7.c: Same.
1026 * gcc.dg/graphite/interchange-8.c: Same.
1027 * gcc.dg/graphite/interchange-9.c: Same.
1028 * gcc.dg/graphite/interchange-mvt.c: Same.
1030 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1032 * gfortran.dg/graphite/id-19.f: New.
1033 * gfortran.dg/graphite/pr14741.f90: New.
1034 * gfortran.dg/graphite/pr41924.f90: New.
1035 * gfortran.dg/graphite/run-id-2.f90: New.
1037 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1040 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
1041 to unknown_dependence.
1042 (graphite_legal_transform_dr): Handle the unknown_dependence.
1043 (graphite_carried_dependence_level_k): Same.
1045 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1047 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
1049 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
1050 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1053 * graphite-dependences.c (build_lexicographical_constraint): Return
1054 a union of dependence polyhedra.
1055 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
1057 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
1058 * gcc.dg/graphite/block-4.c: Same.
1059 * gcc.dg/graphite/block-7.c: Same.
1060 * gcc.dg/graphite/interchange-12.c: Same.
1061 * gcc.dg/graphite/interchange-mvt.c: Same.
1062 * gfortran.dg/graphite/interchange-1.f: XFAILed.
1063 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
1064 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
1066 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1068 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
1069 the execution check to FAIL. This testcase is miscompiled by Graphite
1070 and the check should be re-enabled.
1071 * gcc.dg/graphite/interchange-mvt.c: Same.
1072 * gcc.dg/graphite/block-0.c: Same.
1073 * gcc.dg/graphite/block-4.c: Same.
1074 * gcc.dg/graphite/block-7.c: Same.
1076 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1078 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
1079 * gcc.dg/graphite/scop-0.c: Fix spaces.
1080 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
1081 * gfortran.dg/graphite/block-2.f: Same.
1082 * gfortran.dg/graphite/block-3.f90: Same.
1083 * gfortran.dg/graphite/block-4.f90: Same.
1084 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
1085 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
1087 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1089 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
1090 PDDR_ORIGINAL_SCATTERING_P.
1091 (pddr_is_empty): Rewritten.
1092 (print_dependence_polyhedron_layout): New.
1095 (build_alias_set_powerset): Moved up.
1096 (poly_drs_may_alias_p): Moved up.
1097 (lexicographically_gt_p): Removed.
1098 (build_lexicographically_gt_constraint): Renamed
1099 build_lexicographical_constraint, reimplemented.
1100 (dependence_polyhedron_1): Simplified parameters.
1101 (dependence_polyhedron): Same. Keep along empty PDDRs
1102 to make efficient use of the cache.
1103 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
1104 (graphite_legal_transform_dr): Rewritten.
1105 (graphite_legal_transform_bb): Pass fewer arguments to
1106 graphite_legal_transform_dr.
1107 (graphite_carried_dependence_level_k): Simplified implementation.
1108 (dot_original_deps_stmt_1): Call dependence_polyhedron.
1109 (dot_transformed_deps_stmt_1): Same.
1110 (dot_original_deps): Same.
1111 (dot_transformed_deps): Same.
1112 * graphite-dependences.h (struct poly_ddr): Added a new field
1113 original_scattering_p.
1114 (PDDR_ORIGINAL_SCATTERING_P): New.
1115 (print_pddr): Declared.
1116 (debug_pddr): Declared.
1117 * graphite-ppl.c: Clarify comment.
1118 * sese.h (print_gimple_bb): Removed unused declaration.
1121 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1123 * g++.dg/graphite/graphite.exp: Rewritten.
1124 * gcc.dg/graphite/graphite.exp: Rewritten.
1125 * gfortran.dg/graphite/graphite.exp: Rewritten.
1126 * gcc.dg/graphite/block-0.c: Added runtime test.
1127 * gcc.dg/graphite/block-1.c: Same.
1128 * gcc.dg/graphite/block-3.c: Same.
1129 * gcc.dg/graphite/block-4.c: Same.
1130 * gcc.dg/graphite/block-5.c: Same.
1131 * gcc.dg/graphite/block-6.c: Same.
1132 * gcc.dg/graphite/block-7.c: Same.
1133 * gcc.dg/graphite/interchange-0.c: Same.
1134 * gcc.dg/graphite/interchange-1.c: Same.
1135 * gcc.dg/graphite/interchange-10.c: Same.
1136 * gcc.dg/graphite/interchange-11.c: Same.
1137 * gcc.dg/graphite/interchange-12.c: Same.
1138 * gcc.dg/graphite/interchange-2.c: Same.
1139 * gcc.dg/graphite/interchange-3.c: Same.
1140 * gcc.dg/graphite/interchange-4.c: Same.
1141 * gcc.dg/graphite/interchange-5.c: Same.
1142 * gcc.dg/graphite/interchange-6.c: Same.
1143 * gcc.dg/graphite/interchange-7.c: Same.
1144 * gcc.dg/graphite/interchange-8.c: Same.
1145 * gcc.dg/graphite/interchange-9.c: Same.
1146 * gcc.dg/graphite/interchange-mvt.c: Same.
1147 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
1149 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1151 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
1154 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1156 * common.opt: Add -fgraphite-cloog-opts.
1157 * graphite-clast-to-gimple.c (set_cloog_options): Same.
1158 * opts.c (decode_options): Same.
1160 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1162 * gcc.dg/graphite/id-17.c: New.
1163 * gcc.dg/graphite/pr41888.c: New.
1164 * gcc.dg/graphite/scop-22.c: New.
1165 * gfortran.dg/graphite/pr40982.f90: New.
1167 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1169 * testsuite/gcc.dg/graphite/id-17.c: New.
1170 * testsuite/gcc.dg/graphite/pr41888.c: New.
1171 * testsuite/gcc.dg/graphite/scop-22.c: New.
1172 * testsuite/gfortran.dg/graphite/pr40982.f90: New.
1174 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1176 * graphite-dependences.c: Clarify comments.
1177 (build_pddr): Add an extra parameter direction.
1178 (graphite_legal_transform_dr): Use build_pddr.
1179 (dot_original_deps_stmt_1): Update use of build_pddr.
1180 (dot_transformed_deps_stmt_1): Same.
1181 (dot_original_deps): Same.
1182 (dot_transformed_deps): Same.
1184 * gcc.dg/graphite/interchange-12.c: New.
1185 * gcc.dg/graphite/block-7.c: New.
1187 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1189 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
1190 (pddr_transformed_scattering): Removed.
1191 (graphite_legal_transform_dr): Use build_pddr.
1192 (dot_original_deps_stmt_1): Same.
1193 (dot_transformed_deps_stmt_1): Same.
1194 (dot_original_deps): Same.
1195 (dot_transformed_deps): Same.
1197 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1199 * graphite-dependences.c (lexicographically_gt_p): Add comments.
1200 (build_lexicographically_gt_constraint): Same.
1201 (dependence_polyhedron_1): Same.
1202 (dependence_polyhedron): Same.
1204 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1206 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
1207 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
1208 (lexicographically_gt_p): Change type of direction to int.
1209 (build_lexicographically_gt_constraint): Same.
1210 (dependence_polyhedron_1): Same.
1211 (dependence_polyhedron): Same.
1212 (pddr_original_scattering): Use integers for direction.
1213 (pddr_transformed_scattering): Same.
1214 (graphite_legal_transform_dr): Same.
1215 (graphite_carried_dependence_level_k): Same.
1217 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1219 * graphite-dependences.c (build_pairwise_constraint): Renamed
1220 ppl_build_relation. Moved...
1221 (dr_equality_constraints): Use ppl_build_relation.
1222 (build_pairwise_scheduling_equality): Same.
1223 (build_pairwise_scheduling_inequality): Same.
1224 * graphite-ppl.c (ppl_build_relation): ...here.
1225 * graphite-ppl.h (ppl_build_relation): Declared.
1227 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
1230 * graphite-clast-to-gimple.c (gloog_error): New static variable.
1231 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
1232 Set gloog_error when such an expression failed to be built.
1233 (translate_clast): Early return when gloog_error is set.
1234 (gloog): Clear gloog_error. When gloog_error is set, call
1235 set_ifsese_condition to enable the original code. Return the status
1236 of the code generation based on gloog_error.
1237 * sese.c (set_ifsese_condition): New.
1238 * sese.h (set_ifsese_condition): Declared.
1240 * g++.dg/graphite/pr42681.C: New.
1242 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
1245 * graphite-clast-to-gimple.c (gloog_error): New static variable.
1246 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
1247 Set gloog_error when such an expression failed to be built.
1248 (translate_clast): Early return when gloog_error is set.
1249 (gloog): Clear gloog_error. When gloog_error is set, call
1250 set_ifsese_condition to enable the original code. Return the status
1251 of the code generation based on gloog_error.
1252 * sese.c (set_ifsese_condition): New.
1253 * sese.h (set_ifsese_condition): Declared.
1255 * testsuite/g++.dg/graphite/pr42681.C: New.
1257 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
1260 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
1261 rename_nb_iterations.
1262 * sese.c (rename_variables_in_operand): New.
1263 (rename_variables_in_expr): New.
1264 (rename_nb_iterations): New.
1265 (sese_adjust_liveout_phis): Update the rename_map.
1266 * sese.h (rename_nb_iterations): Declared.
1267 * tree-scalar-evolution.c (scev_reset_htab): New.
1268 (scev_reset): Call scev_reset_htab.
1269 * tree-scalar-evolution.h (scev_reset_htab): Declared.
1271 * gfortran.dg/graphite/pr42732.f: New.
1273 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
1276 * graphite-clast-to-gimple.c: Fix formatting.
1277 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
1278 (expr_defined_in_loop_p): New.
1279 (add_loop_exit_phis): Also handle full expressions: remove from
1280 the rename_map the expressions defined in the loop that we're closing.
1282 * gfortran.dg/graphite/pr42393-1.f90: New.
1283 * gfortran.dg/graphite/pr42393.f90: Add new flags
1284 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
1285 make this testcase useful in the Graphite branch.
1287 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
1290 * graphite-clast-to-gimple.c: Fix formatting.
1291 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
1292 (expr_defined_in_loop_p): New.
1293 (add_loop_exit_phis): Also handle full expressions: remove from
1294 the rename_map the expressions defined in the loop that we're closing.
1296 * testsuite/gfortran.dg/graphite/pr42393-1.f90: New.
1297 * testsuite/gfortran.dg/graphite/pr42393.f90: Add new flags
1298 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
1299 make this testcase useful in the Graphite branch.
1301 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
1303 * graphite-scop-detection.c (exclude_component_ref): Removed.
1304 (is_simple_operand): Removed.
1305 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
1307 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1310 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
1311 the array indexing of ADDR_EXPRs.
1313 * gcc.dg/graphite/pr42221.c: New.
1315 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1318 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
1319 the array indexing of ADDR_EXPRs.
1321 * testsuite/gcc.dg/graphite/pr42221.c: New.
1323 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1326 * graphite.c (graphite_finalize): Call scev_reset.
1327 (graphite_transform_loops): Do not call scev_reset between the code
1328 generation of scops.
1330 * gcc.dg/graphite/pr42521.c: New.
1332 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1334 * graphite-interchange.c (memory_stride_in_loop): Renamed
1336 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
1337 (memory_strides_in_loop): Memoize the memory strides per loop.
1338 (lst_interchange_profitable_p): Do not initialize to zero the memory
1340 * graphite-poly.h (struct lst): Add a field memory_strides.
1341 (LST_LOOP_MEMORY_STRIDES): New.
1342 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
1343 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
1345 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1347 * graphite-interchange.c (memory_stride_in_loop): Renamed
1349 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
1350 (memory_strides_in_loop): Memoize the memory strides per loop.
1351 (lst_interchange_profitable_p): Do not initialize to zero the memory
1353 * graphite-poly.h (struct lst): Add a field memory_strides.
1354 (LST_LOOP_MEMORY_STRIDES): New.
1355 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
1356 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
1358 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1360 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
1361 memory_strides_in_loop. Gather memory strides on a whole loop.
1362 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
1363 (lst_interchange_profitable_p): Removed.
1364 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
1366 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1368 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1369 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
1370 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
1371 Remove context_loop and level.
1373 2010-01-07 Richard Guenther <rguenther@suse.de>
1375 PR tree-optimization/42641
1376 * sese.c (rename_map_elt_info): Use the SSA name version, do
1379 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
1381 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
1382 blocked" only when both the strip mine and the interchange have
1385 * gcc.dg/graphite/block-2.c: Removed.
1386 * gcc.dg/graphite/block-3.c: Add scan pattern.
1387 * gcc.dg/graphite/block-4.c: Same.
1388 * gcc.dg/graphite/block-5.c: Same.
1389 * gcc.dg/graphite/block-6.c: Same.
1391 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
1393 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
1394 before allocating a new one.
1395 (copy_renames): Check that slot is not NULL.
1396 (mark_bb_with_pbb): Same.
1397 (compute_cloog_iv_types_1): Same.
1398 * graphite-interchange.c (lst_perfect_nestify): Free the before,
1399 nest, and after LSTs.
1400 (lst_try_interchange_loops): Same.
1402 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
1405 * graphite-interchange.c (lst_try_interchange_loops): Do not return
1406 the before, nest, and after LSTs.
1407 (lst_try_interchange): Removed.
1408 (lst_interchange_select_inner): Do not iterate over the LSTs if they
1410 (lst_interchange_select_outer): Apply interchange on the outer loop
1411 until there are no more changes in the inner loops.
1413 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1415 Revert patch fixing PR middle-end/42221.
1417 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1420 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
1423 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
1425 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1428 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
1429 that contain only one statement.
1431 * gfortran.dg/graphite/pr42180.f90: New.
1433 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1436 * gfortran.dg/graphite/pr42393.f90: New.
1438 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1441 * gfortran.dg/graphite/pr42186.f90: New.
1443 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1446 * testsuite/gfortran.dg/graphite/pr42186.f90: New.
1448 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1451 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
1452 Insert the reduction copy in the same block as the phi node.
1453 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
1455 * gcc.dg/graphite/pr42205-1.c: New.
1456 * gcc.dg/graphite/pr42205-2.c: New.
1458 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1461 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
1462 the array indexing of ADDR_EXPRs.
1464 * gcc.dg/graphite/pr42221.c: New.
1466 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1470 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
1471 index. Call lst_interchange_select_inner only once.
1472 (lst_interchange_select_inner): Update use of lst_try_interchange.
1473 (lst_interchange_select_outer): Update.
1475 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
1479 * graphite-interchange.c (lst_try_interchange): Do not increment the
1480 the OUTER index when there is no AFTER kernel. Do not increment the
1481 OUTER index for after processing the AFTER kernel.
1482 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
1483 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
1484 index. Do not pass to lst_interchange_select_inner the OUTER index.
1485 (scop_do_interchange): Update use of lst_interchange_select_outer.
1487 * gfortran.dg/graphite/graphite.exp
1488 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
1489 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
1490 the graphite dump file.
1491 * gfortran.dg/graphite/interchange-2.f: Same.
1492 * gfortran.dg/graphite/pr42334-1.f: New.
1494 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
1498 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
1500 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
1501 (lst_try_interchange): Reimplemented.
1502 (lst_interchange_select_inner): Same.
1503 (lst_do_interchange): Renamed lst_interchange_select_outer.
1505 (scop_do_interchange): Update use of lst_interchange_select_outer.
1507 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
1508 * gcc.dg/graphite/block-0.c: Un-XFAILed.
1509 * gcc.dg/graphite/pr42211.c: New.
1510 * gfortran.dg/graphite/pr42334.f90: New.
1512 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
1515 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
1516 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
1518 * gfortran.dg/graphite/pr42181.f90: New.
1520 2009-12-12 Sebastian Pop <sebpop@gmail.com>
1523 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
1524 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
1525 (detect_commutative_reduction_arg): Simplified.
1526 (detect_commutative_reduction): Early return when the argument of
1527 the close phi is not of an SSA_NAME.
1529 * gcc.dg/graphite/pr42284.c: New.
1531 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
1533 * dbgcnt.def (graphite_scop): New counter.
1534 * graphite.c: Include dbgcnt.h
1535 (graphite_transform_loops): Use new counter to limit transformations.
1537 2009-12-08 Sebastian Pop <sebpop@gmail.com>
1540 * graphite-scop-detection.c (graphite_can_represent_init): Also
1541 handle more complex MULT_EXPRs containing parameters by recursion
1544 * gfortran.dg/graphite/pr42285.f90: New.
1546 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
1548 * g++.dg/graphite/pr42130.C: Fix type.
1550 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
1552 * g++.dg/graphite/pr42130.C: Correct testcase.
1554 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
1556 * Merge from mainline (154493:154734).
1558 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
1560 * Merge from mainline (151362:154491).
1562 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
1564 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
1565 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
1567 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1570 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
1571 translate_clast_for_loop): New.
1572 (translate_clast_for): Add a condition around the loop, to do not
1573 execute loops with zero iterations.
1574 * g++.dg/graphite/pr42130.C: New.
1575 * gcc.dg/graphite/pr35356-2.c: Adapt.
1577 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1579 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
1580 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
1581 Remove context_loop and level.
1583 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1585 * graphite-clast-to-gimple.c (translate_clast_user,
1586 translate_clast_for, translate_clast_guard): Simplify and move common
1587 elements to translate_clast().
1588 (translate_clast): Simplify and get common elements.
1590 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1592 * graphite-clast-to-gimple.c (translate_clast_user,
1593 translate_clast_for, translate_clast_guard): Split out of
1596 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
1598 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
1599 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
1600 debug_clast_name_indexes_1, debug_clast_name_indexes,
1601 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
1602 (clast_name_to_gcc, clast_to_gcc_expression,
1603 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
1604 gcc_type_for_clast_eq, graphite_translate_clast_equation,
1605 graphite_create_guard_cond_expr, graphite_create_new_loop,
1606 translate_clast): Add params_index.
1607 (initialize_cloog_names): Create parameter strings from scratch, do
1608 not reference other strings.
1609 (create_params_index): New.
1610 (gloog): Initialize params_index.
1611 * graphite-scop-detection (free_scops_1): Removed.
1612 (limit_scops): Use normal free_scops.
1613 * graphite-sese-to-poly.c (save_var_names): Removed.
1614 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
1615 and SESE_PARAMS_INDEX.
1616 * sese.c (new_sese, free_sese): Dito.
1617 * sese.h (struct sese): Remove params_index, params_names.
1618 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
1620 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
1622 Revert the following patch from 2009-09-14:
1623 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1624 tree-scalar-evolution.h, and then tree-data-ref.h.
1625 * graphite-clast-to-gimple.c: Same.
1626 * graphite-dependences.c: Same.
1627 * graphite-interchange.c: Same.
1628 * graphite-poly.c: Same.
1629 * graphite-scop-detection.c: Same.
1630 * graphite-sese-to-poly.c: Same.
1632 * lambda-code.c: Same.
1633 * matrix-reorg.c: Same.
1634 * tree-data-ref.c: Same.
1635 * tree-if-conv.c: Same.
1636 * tree-loop-distribu: Same.: Same.
1637 * tree-loop-linear.c: Same.
1638 * tree-parloops.c: Same.
1639 * tree-predcom.c: Same.
1640 * tree-vect-patterns.c: Same.
1642 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
1644 Revert patch from 2009-09-14.
1645 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
1646 passes at -O1 and below.
1648 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1651 * gcc.dg/graphite/pr40281.c: New.
1653 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
1654 evolutions should not variate in inner loops.
1656 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1659 * gfortran.dg/graphite/pr42050.f90: New.
1661 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1663 * graphite-interchange.c (memory_strides_in_loop_depth): New.
1664 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
1666 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1668 * graphite-blocking.c (scop_do_block): New.
1669 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
1670 * graphite-poly.h (scop_do_block): Declared.
1672 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1674 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
1675 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
1676 to transform depth into the time_depth before calling
1677 pbb_number_of_iterations_at_time.
1678 (lst_do_strip_mine): Use a scalar variable instead of recomputing
1681 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1683 Reverted the patch for "scattering permutations" from 2009-10-28.
1685 * graphite-poly.c (print_permutation): New.
1686 (debug_permutation): New.
1687 (new_poly_bb): Initialize PBB_PERMUTATION.
1688 (free_poly_bb): Free PBB_PERMUTATION.
1689 * graphite-poly.h (pbb_permutation_elt_p): Declared.
1690 (struct pbb_permutation_elt): New.
1691 (PBB_PERMUTATION_ELT_STRIDE): New.
1692 (PBB_PERMUTATION_ELT_STRIDED_P): New.
1693 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
1694 (new_pbb_permutation_elt): New.
1695 (pbb_permutation_elt_free): New.
1696 (struct poly_bb): Add field permutation.
1697 (PBB_PERMUTATION): New.
1698 (print_permutation): Declared.
1699 (debug_permutation): Declared.
1701 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1703 * graphite-interchange.c (build_partial_difference): New.
1704 (memory_stride_in_loop): Refactored the computation of
1705 equality constraints into build_partial_difference function.
1706 Added support for debugging stride computations.
1708 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
1710 * graphite-clast-to-gimple.c (gloog): Free if_region,
1711 if_region->true_region, and if_region->region.
1712 * sese.c (if_region_set_false_region): Free if_region->false_region.
1713 (create_if_region_on_edge): Do not use GGC_NEW.
1714 (move_sese_in_condition): Remove useless initialization.
1716 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
1718 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
1719 for the loops created by the loop distribution. Do not modify the
1721 (lst_try_interchange_loops): Same. Use a temporary LST for the
1722 transformed schedule. Call lst_update_scattering before data
1723 dependence analysis.
1724 (lst_try_interchange): Pass an extra parameter INDEX.
1725 (lst_do_interchange_1): New.
1726 (lst_do_interchange): Call lst_do_interchange_1.
1727 (scop_do_interchange): Call lst_update_scattering.
1728 * graphite-poly.c (apply_poly_transforms): Do not call
1729 lst_update_scattering.
1730 * graphite-poly.h (lst_pred): New.
1732 (lst_find_first_pbb): Return NULL when not found.
1734 (lst_insert_in_sequence): Allow LST1 to be NULL.
1736 (lst_substitute_3): New.
1737 * gcc.dg/graphite/interchange-1.c: XFail.
1738 * gcc.dg/graphite/interchange-8.c: XFail.
1739 * gcc.dg/graphite/interchange-11.c: XFail.
1741 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
1743 * graphite-interchange.c (lst_perfectly_nested_p): New.
1744 (lst_perfect_nestify): New.
1745 (lst_try_interchange_loops): Call store_lst_schedule,
1746 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
1747 (scop_do_interchange): Avoid redundant legality test.
1748 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
1749 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
1750 * graphite-poly.h (psct_static_dim): New.
1751 (lst_dewey_number_at_depth): New.
1752 (lst_find_pbb): Restructured.
1753 (lst_find_first_pbb): Restructured.
1754 (lst_find_last_pbb): New.
1755 (lst_contains_p): New.
1756 (lst_contains_pbb): New.
1757 (lst_create_nest): New.
1758 (lst_remove_from_sequence): New.
1759 (pbb_update_scattering): New.
1760 (lst_update_scattering_under): New.
1761 (lst_update_scattering_seq): New.
1762 (lst_update_scattering): New.
1763 (lst_insert_in_sequence): New.
1764 (lst_distribute_lst): New.
1765 (lst_remove_all_before_including_pbb): New.
1766 (lst_remove_all_before_excluding_pbb): New.
1768 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
1770 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
1771 get_loop_exit_edges.
1773 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
1775 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
1777 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1779 * graphite-poly.c (print_permutation): New.
1780 (debug_permutation): New.
1781 (new_poly_bb): Initialize PBB_PERMUTATION.
1782 (free_poly_bb): Free PBB_PERMUTATION.
1783 * graphite-poly.h (pbb_permutation_elt_p): Declared.
1784 (struct pbb_permutation_elt): New.
1785 (PBB_PERMUTATION_ELT_STRIDE): New.
1786 (PBB_PERMUTATION_ELT_STRIDED_P): New.
1787 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
1788 (new_pbb_permutation_elt): New.
1789 (pbb_permutation_elt_free): New.
1790 (struct poly_bb): Add field permutation.
1791 (PBB_PERMUTATION): New.
1792 (print_permutation): Declared.
1793 (debug_permutation): Declared.
1795 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
1797 * graphite-clast-to-gimple.c (gloog): Do not call
1798 sese_reset_aux_in_loops.
1799 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
1800 extra argument for domains. Do not use loop->aux.
1801 (build_scop_iteration_domain): Initialize and free domains, pass it
1802 to build_loop_iteration_domains and extract the information from
1803 domains. Do not use loop->aux.
1804 * sese.c (sese_reset_aux_in_loops): Removed.
1805 * sese.h (sese_reset_aux_in_loops): Removed.
1807 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
1809 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
1810 (dependency_in_loop_p): Same.
1811 (translate_clast): Do not use loop->aux. Initialize
1812 loop->can_be_parallel.
1813 (mark_loops_parallel): Removed.
1814 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
1815 * graphite.c (free_aux_in_new_loops): Removed.
1816 (graphite_finalize): Do not call free_aux_in_new_loops.
1817 (graphite_transform_loops): Do not call mark_loops_parallel.
1819 2009-10-26 Li Feng <nemokingdom@gmail.com>
1821 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
1822 (translate_clast): Pass an extra parameter LEVEL.
1823 Call get_scattering_level.
1824 * graphite-clast-to-gimple.h (get_scattering_level): New.
1826 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1828 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
1829 * cfgloop.h (struct loop): New field single_iv.
1831 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
1832 loop->aux anymore: use loop->single_iv.
1833 (graphite_loop_normal_form): Moved...
1834 (build_graphite_loop_normal_form): Removed.
1835 (gloog): Do not call build_graphite_loop_normal_form.
1836 (free_aux_in_new_loops): Moved...
1837 (mark_loops_parallel): Restructure.
1838 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
1839 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
1840 (scop_canonicalize_loops): New.
1841 (build_poly_scop): Call scop_canonicalize_loops.
1842 * graphite.c (free_aux_in_new_loops): ...here.
1844 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1846 * g++.dg/graphite/graphite.exp: Add the same rules as in
1847 gcc.dg/graphite/graphite.exp.
1849 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1851 * g++.dg/graphite/id-1.C: New.
1853 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1855 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
1857 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
1858 (rewrite_phi_out_of_ssa): Same.
1859 (rewrite_cross_bb_scalar_deps): Same.
1860 (translate_scalar_reduction_to_array): Same.
1862 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1864 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
1867 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1869 * graphite-sese-to-poly.c (dump_alias_graphs): New.
1870 (build_scop_drs): Call dump_alias_graphs.
1872 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1874 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
1875 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1876 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
1877 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1878 * graphite-poly.h (free_lst): New.
1879 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
1880 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
1882 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1884 * graphite-poly.h (struct scop): Add a field saved_schedule.
1885 (SCOP_SAVED_SCHEDULE): New.
1886 (store_lst_schedule): New.
1887 (restore_lst_schedule): New.
1888 (store_scattering): Call store_lst_schedule.
1889 (restore_scattering): Call restore_lst_schedule.
1891 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1893 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
1894 (pdr_add_alias_set): Same.
1895 (build_poly_dr): Same.
1896 (build_alias_set_optimal_p): Same.
1897 (build_base_obj_set_for_drs): Same. Do not store the result of
1900 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1902 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
1903 all_components_are_cliques to 1.
1905 2009-10-20 Li Feng <nemokingdom@gmail.com>
1907 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
1909 (pdr_add_alias_set): Update retrieving alias_set_num.
1910 (build_poly_dr): Update retrieving dr_base_object_set.
1911 (partition_drs_to_sets): Remove.
1912 (build_alias_set_optimal_p): New.
1913 (build_alias_set_for_drs): Rename.
1914 (build_scop_drs): Update.
1915 * graphite-sese-to-poly.h (struct base_alias_pair): New.
1916 (ALIAS_SET_INDEX): Remove.
1917 (BASE_OBJECT_SET_INDEX): Remove.
1919 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1921 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
1923 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1925 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
1926 loop upper bounds for 1-element arrays at end of structures.
1927 * tree-flow.h (array_at_struct_end_p): Declared.
1928 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
1930 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1932 * g++.dg/graphite/pr41305.C: New.
1934 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
1936 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
1937 construction of parameter constraints from loop iteration analysis.
1938 * gcc.dg/graphite/run-id-2.c: New test.
1940 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1942 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
1945 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1947 * graphite-dependences.c (dependence_polyhedron_1): Remove
1948 unused gdim dimensions from the DDR polyhedron.
1950 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1952 * graphite-dependences.c (pddr_transformed_scattering): New.
1953 (dot_original_deps_stmt_1): New.
1954 (dot_transformed_deps_stmt_1): New.
1955 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
1956 dot_transformed_deps_stmt_1.
1957 (dot_original_deps): New.
1958 (dot_transformed_deps): New.
1959 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
1961 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1963 * graphite-dependences.c (reduction_dr_1): Remove wrong
1964 assert: reduction BBs can have multiple reduction writes
1965 to memory. interchange-3.f90 is an example.
1967 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1969 * gfortran.dg/graphite/interchange-3.f90: New.
1971 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1973 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
1975 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1977 * graphite-dependences.c (dependence_polyhedron_1): Add the
1978 context to the dependence polyhedron.
1980 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1982 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
1983 PBB_PDR_DUPLICATES_REMOVED.
1984 (new_poly_bb): Same.
1986 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1988 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
1990 (build_loop_iteration_domains): Extract bounds on parameters
1991 based on the data size.
1992 (build_scop_context): Do not initialize SCOP_CONTEXT;
1993 add new constraints.
1995 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1997 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
1998 * graphite-ppl.h (graphite-ppl.h): Declared.
2000 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2002 * graphite-ppl.c (ppl_print_linear_expr): New.
2003 (debug_ppl_linear_expr): New.
2004 * graphite-ppl.h (ppl_print_linear_expr): Declared.
2005 (debug_ppl_linear_expr): Declared.
2007 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2009 * graphite-interchange.c: Fix comments.
2010 * gcc.dg/graphite/block-1.c: Fix comments.
2012 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2014 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
2015 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
2017 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2019 Reapply the patch from Alexander Monakov that disappeared during
2020 the last merges from trunk.
2022 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
2024 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2025 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2027 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2029 * graphite-interchange.c (memory_stride_in_loop): The depth
2030 argument corresponds to a dynamic time dimension, so use
2031 psct_dynamic_dim to refer to the transformed scattering dimension.
2033 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2035 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
2037 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2039 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
2041 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
2042 the root of the LST.
2043 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
2045 (print_lst): Print the root of LST in a different format.
2046 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
2048 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2050 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
2052 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2054 * doc/passes.texi: Document the Graphite infrastructure.
2056 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2058 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
2059 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
2060 and check the SSA representation.
2062 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
2064 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2066 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
2068 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2070 * gcc.dg/graphite/interchange-11.c: New.
2072 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2074 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
2076 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2078 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2079 Add -fno-loop-strip-mine and -fno-loop-interchange.
2080 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
2081 -fno-loop-strip-mine.
2082 * gfortran.dg/graphite/graphite.exp: Same.
2084 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2086 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2087 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
2088 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
2089 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
2090 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
2091 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
2092 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
2093 DEFAULT_FLAGS_GRAPHITE_SCOP.
2094 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
2095 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
2097 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2099 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
2101 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2102 Sebastian Pop <sebastian.pop@amd.com>
2104 * graphite-interchange.c (build_linearized_memory_access): Pass an
2105 offset as parameter.
2106 (memory_stride_in_loop): Include transform scattering in the
2107 access functions to be able to querry the strides in the
2109 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
2110 not the psct_iterator_dim.
2112 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2114 * graphite-blocking.c (pbb_do_strip_mine): Removed.
2115 (lst_do_strip_mine_loop): New.
2116 (lst_do_strip_mine): New.
2117 (scop_do_strip_mine): Call lst_do_strip_mine.
2118 * graphite-poly.h (lst_add_loop_under_loop): New.
2119 (lst_find_first_pbb): New.
2121 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2123 * graphite-poly.c (loop_to_lst): Fix LST creation.
2125 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2127 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
2128 sizeof(unsigned long) to make it run on 32bit systems.
2130 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2132 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
2135 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2137 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
2139 (write_alias_graph_to_ascii_dot): New.
2140 (write_alias_graph_to_ascii_ecc): Ditto.
2141 (partition_drs_to_sets): Add testing of optimality of current method
2142 which assigns alias numbers according to DFS Comopnent number. used
2143 as heuristic for the upcoming ECC algorithm.
2144 (build_scop_drs): Write to file also with the ecc and dot format.
2146 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2148 * gfortran.dg/graphite/interchange-1.f: XFail.
2150 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2152 * graphite.c (graphite_initialize): Do not handle functions with
2153 more than 100 basic blocks.
2155 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2157 * graphite-blocking.c (pbb_do_strip_mine): Use
2158 PARAM_LOOP_BLOCK_TILE_SIZE.
2160 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2162 * graphite-poly.c (dot_lst_1): New.
2164 * graphite-poly.h (dot_lst): Declared.
2166 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2168 * graphite-dependences.c (dot_deps_stmt_1): New.
2169 (dot_deps_stmt): New.
2170 * graphite-dependences.h (dot_deps_stmt): Declared.
2172 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2174 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
2175 not replace cross BB scalar dependences ending on PHI nodes.
2176 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
2178 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2180 * graphite-poly.c (apply_poly_transforms): Implement the high
2181 level driver for flag_loop_block.
2182 * opts.c (decode_options): Enable flag_loop_block at -O2.
2183 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
2186 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
2188 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2191 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2193 * graphite-poly.h (lst_find_pbb): New.
2194 (find_lst_loop): New.
2196 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2198 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
2199 * graphite-poly.h (struct scop): Remove dep_graph field.
2200 (SCOP_DEP_GRAPH): Removed.
2202 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2204 * graphite-poly.h (copy_lst): Do full copy of LST.
2206 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
2208 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
2209 when the loop stride is zero.
2211 * gcc.dg/graphite/id-16.c: New.
2213 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2215 * graphite-dependences.c (reduction_dr_1): New.
2216 (reduction_dr_p): New.
2217 (graphite_legal_transform_dr): Call reduction_dr_p.
2218 (reduction_ddr): Renamed reduction_ddr_p.
2219 * graphite-poly.h (same_pdr_p): New.
2220 (number_of_write_pdrs): New.
2221 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
2222 (split_reduction_stmt): Do not split reduction statements
2223 when there are no writes to memory.
2224 (translate_scalar_reduction_to_array_for_stmt): Insert the
2225 memory reduction statement just after the scalar reduction statement.
2227 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
2229 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
2230 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
2232 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2234 * graphite-interchange.c (lst_apply_interchange): New.
2235 (lst_interchange_profitable_p): New.
2236 (lst_try_interchange_loops): New.
2237 (lst_try_interchange): New.
2238 (lst_do_interchange): New.
2239 (pbb_do_interchange): Removed.
2240 (scop_do_interchange): Call lst_do_interchange.
2242 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2244 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
2245 SCOP_TRANSFORMED_SCHEDULE.
2250 * graphite-poly.h (lst_p): New.
2253 (LST_LOOP_FATHER): New.
2256 (scop_to_lst): Declared.
2257 (print_lst): Declared.
2258 (debug_lst): Declared.
2259 (new_lst_loop): New.
2260 (new_lst_stmt): New.
2263 (lst_dewey_number): New.
2264 (struct scop): Add original_schedule and transformed_schedule fields.
2265 (SCOP_ORIGINAL_SCHEDULE): New.
2266 (SCOP_TRANSFORMED_SCHEDULE): New.
2267 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
2269 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2271 * graphite-dependences.c (reduction_ddr): New.
2272 (graphite_legal_transform_bb): Call reduction_ddr.
2273 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
2274 Initialize PBB_IS_REDUCTION.
2275 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
2276 (PBB_IS_REDUCTION): New.
2277 (new_poly_bb): Update declaration.
2278 * graphite-scop-detection.h (build_scop_bbs): Removed.
2279 (nb_reductions_in_loop): Removed.
2280 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
2281 parameter for reductions.
2282 (try_generate_gimple_bb): Update call to new_poly_bb.
2283 (build_scop_bbs_1): Same.
2284 (build_scop_bbs): Same.
2285 (gsi_for_phi_node): New.
2286 (scalar_close_phi_node_p): Remove gcc_assert.
2287 (split_reduction_stmt): New.
2288 (is_reduction_operation_p): New.
2289 (phi_contains_arg): New.
2290 (follow_ssa_with_commutative_ops): New.
2291 (detect_commutative_reduction_arg): New.
2292 (detect_commutative_reduction_assign): New.
2293 (follow_inital_value_to_phi): New.
2294 (edge_initial_value_for_loop_phi): New.
2295 (initial_value_for_loop_phi): New.
2296 (detect_commutative_reduction): New.
2297 (translate_scalar_reduction_to_array_for_stmt): New.
2298 (insert_copyout): New.
2299 (insert_copyin): New.
2300 (translate_scalar_reduction_to_array): New.
2301 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
2302 (rewrite_commutative_reductions_out_of_ssa_loop): New.
2303 (rewrite_commutative_reductions_out_of_ssa): New.
2304 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
2305 * sese.h (split_region_for_bb): New.
2307 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
2308 * gcc.dg/graphite/interchange-1.c: Fix format.
2309 * gcc.dg/graphite/interchange-10.c: New.
2311 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2313 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
2316 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2318 * graphite-sese-to-poly.c (scev_analyzable_p): New.
2319 (rewrite_cross_bb_scalar_dependence): New.
2320 (rewrite_cross_bb_scalar_deps): New.
2321 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
2322 Call rewrite_cross_bb_scalar_deps.
2324 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2326 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
2327 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
2330 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2332 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
2333 * graphite-interchange.c (pbb_do_interchange): Same.
2334 * graphite-poly.c (print_scattering_function): Same.
2336 * graphite-poly.h (pbb_loop): New.
2337 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
2339 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
2341 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
2343 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
2345 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
2346 so don't pass a pointer to it.
2347 (build_alias_set_for_drs): Same.
2348 (build_base_obj_set_for_drs): Same.
2349 (build_scop_drs): Same.
2351 2009-09-26 Li Feng <nemokingdom@gmail.com>
2353 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
2354 the alias graph of data references.
2356 2009-09-25 Li Feng <nemokingdom@gmail.com>
2358 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
2359 (build_scop_drs): When debugging, write the alias graph to file,
2360 otherwise, should be disabled.
2362 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2364 * Merge from mainline (151310:151361).
2366 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2368 * Merge from mainline (151171:151310).
2370 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2372 * Merge from mainline (151171:151806).
2374 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2376 * Revert the last commit.
2378 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2380 * Merge from mainline (151171:151819).
2382 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2384 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
2385 (is_simple_operand): Remove call to stmt_simple_memref_p.
2386 (stmt_simple_for_scop_p): Update call to is_simple_operand.
2388 2009-09-17 David Edelsohn <edelsohn@gnu.org>
2390 * gcc.dg/graphite/interchange-mvt.c: New File.
2391 * gcc.dg/graphite/scop-dsyrk.c: New File.
2392 * gcc.dg/graphite/scop-dsyr2k.c: New File.
2393 * gcc.dg/graphite/scop-mvt.c: New File.
2394 * gcc.dg/graphite/scop-sor.c: New File.
2396 2009-09-17 Li Feng <nemokingdom@gmail.com>
2398 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
2399 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
2400 (graphite_carried_dependence_level_k): Ditto.
2401 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
2402 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
2403 (new_poly_dr): Adjust declaration.
2404 * graphite-sese-to-poly.c (free_data_refs_aux): New.
2405 (free_gimple_bb): Added free_data_refs_aux.
2406 (build_poly_dr): Add dr_base_object_set.
2407 (partition_drs_to_sets): New.
2408 (dr_same_base_object_p): New.
2409 (build_alias_set_for_drs): New.
2410 (build_base_object_set_for_drs): New.
2411 (build_scop_drs): Add build_base_obj_set_for_drs.
2412 * graphite-sese-to-poly.h: Added #define for alias set number index and
2413 base object set index.
2414 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
2415 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
2417 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
2419 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2420 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2422 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2424 * graphite-sese-to-poly.c (struct irp_data): Removed.
2425 (idx_record_params): Removed.
2426 (find_params_in_bb): Scan for parameters the access functions; don't
2427 parse the tree representation.
2429 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2431 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
2432 passes at -O1 and below.
2434 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2436 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
2437 tree-scalar-evolution.h, and then tree-data-ref.h.
2438 * graphite-clast-to-gimple.c: Same.
2439 * graphite-dependences.c: Same.
2440 * graphite-interchange.c: Same.
2441 * graphite-poly.c: Same.
2442 * graphite-scop-detection.c: Same.
2443 * graphite-sese-to-poly.c: Same.
2445 * lambda-code.c: Same.
2446 * matrix-reorg.c: Same.
2447 * tree-data-ref.c: Same.
2448 * tree-if-conv.c: Same.
2449 * tree-loop-distribu: Same.: Same.
2450 * tree-loop-linear.c: Same.
2451 * tree-parloops.c: Same.
2452 * tree-predcom.c: Same.
2453 * tree-vect-patterns.c: Same.
2455 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
2457 Partially revert the previous patch, except the following.
2458 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
2459 as parameters the operands of the not expression.
2461 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2463 * tree-scalar-evolution.c (instantiate_scev_assign): New.
2464 Do not call analyze_scalar_evolution on assignments.
2465 (instantiate_scev_phi): Call analyze_scalar_evolution.
2466 (instantiate_scev_name): Call instantiate_scev_assign and
2467 instantiate_scev_phi.
2468 (instantiate_scev_not): Adapted to pass as parameters the operands
2469 of the not expression.
2471 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2473 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
2474 to pass as parameters the operands of the binary expression.
2476 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2478 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
2479 instantiate_scev_not. Handle NEGATE_EXPR.
2480 (instantiate_scev_r): Handle NEGATE_EXPR.
2482 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2484 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
2486 (instantiate_scev_r): Move code in instantiate_scev_2
2487 and instantiate_scev_1.
2489 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2491 * tree-scalar-evolution.c (instantiate_scev_3): New.
2492 (instantiate_scev_1): Move code in instantiate_scev_3.
2494 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2496 * tree-scalar-evolution.c (instantiate_scev_poly): New.
2497 (instantiate_scev_1): Move code in instantiate_scev_poly.
2499 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2501 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
2502 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
2504 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2506 * tree-scalar-evolution.c (instantiate_scev_convert): New.
2507 (instantiate_scev_1): Move code in instantiate_scev_convert.
2509 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2511 * tree-scalar-evolution.c (instantiate_scev_binary): New.
2512 (instantiate_scev_1): Move code in instantiate_scev_binary.
2514 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2516 * tree-scalar-evolution.c (instantiate_scev_name): New.
2517 (instantiate_scev_1): Move code in instantiate_scev_name.
2519 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
2521 * Merge from mainline (150992:151171).
2523 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2525 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
2527 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2529 * graphite-dependences.c (graphite_legal_transform_bb): Call
2530 pbb_remove_duplicate_pdrs.
2531 * graphite-poly.c (can_collapse_pdr): Removed.
2532 (pdr_find_duplicate): Removed.
2533 (can_collapse_pdrs): New.
2534 (pbb_remove_duplicate_pdrs): New.
2535 (new_poly_dr): Do not look for duplicates.
2536 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
2537 (PBB_PDR_DUPLICATES_REMOVED): New.
2538 (pbb_remove_duplicate_pdrs): Declared.
2540 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2542 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
2543 the strides by multiplying by PDR_NB_REFS.
2544 * graphite-poly.c (can_collapse_pdr): New.
2545 (pdr_find_duplicate): New.
2546 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
2547 Initialize PDR_NB_REFS.
2548 * graphite-poly.h (struct poly_dr): Add field nb_refs.
2550 (new_poly_dr): Number of subscripts is a graphite_dim_t.
2552 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2554 Revert one of the previous commits:
2555 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
2556 the computation of symmetric data dependence relations.
2557 (dependency_between_pbbs_p): Same.
2559 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2562 * graphite-poly.c (apply_poly_transforms): Remove legality test before
2565 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2567 * graphite-dependences.c (pddr_original_scattering): Return NULL
2568 for read-read dependence relations.
2569 * graphite-poly.h (enum poly_dr_type): Fix comment.
2572 (pdr_may_write_p): New.
2574 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2576 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
2577 (struct poly_dr): Same.
2578 (new_poly_dr): Same.
2579 * graphite-poly.c (new_poly_dr): Same.
2581 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2582 Sebastian Pop <sebastian.pop@amd.com>
2584 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
2585 pbb_strip_mine_time_depth. Changed the implementation so that
2586 transformation is expressed as a transformation on
2587 time (scatttering) dimensions. Also, ensures that the 2d+1
2588 scheduling format is preserved.
2589 (pbb_strip_mine_profitable_p): Profitability is based on the
2590 iteration number of a given time (scattering) dimension,
2591 and not on a original loop depth dimension.
2592 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
2593 (pbb_do_strip_mine): Call psct_dynamic_dim.
2594 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
2595 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
2596 (pbb_nb_dynamic_scattering_transform): New.
2597 (psct_dynamic_dim): New.
2599 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2601 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
2602 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
2603 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
2604 * graphite-interchange.c (build_linearized_memory_access): Same.
2605 (memory_stride_in_loop): Same.
2607 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2609 * graphite-dependences.c (pddr_original_scattering): New.
2610 (graphite_legal_transform_dr): Call pddr_original_scattering.
2613 * graphite-dependences.h (dot_deps): Declared.
2614 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
2615 (print_pdr): Print PDR_ID.
2616 * graphite-poly.h (struct poly_dr): Add field id.
2619 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
2621 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
2623 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
2624 not delete the original dependence relation.
2626 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2628 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
2629 the computation of symmetric data dependence relations.
2630 (dependency_between_pbbs_p): Same.
2632 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2634 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
2635 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
2636 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
2637 (free_poly_ddr): New.
2638 (pddr_is_empty): New.
2639 (dependence_polyhedron_1): Now returns a poly_ddr_p.
2640 (dependence_polyhedron): Same. Remove useless gcc_assert.
2642 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
2643 (graphite_carried_dependence_level_k): Call pddr_is_empty.
2644 * graphite-dependences.h (enum poly_dependence_kind): New.
2645 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
2646 (PDRP_SOURCE): Renamed PDDR_SOURCE.
2647 (PDRP_SINK): Renamed PDDR_SINK.
2648 (PDRP_DDP): Renamed PDDR_DDP.
2650 (free_poly_ddr): Declared.
2651 * graphite-poly.c (new_scop): Use the new hash function names.
2652 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
2653 into original_pddrs.
2654 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
2656 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2658 * Merge from mainline (150764:150992).
2660 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
2662 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
2663 bounds with LT_EXPR to make niter analysis more precise on code
2664 generated by Graphite.
2666 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
2668 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
2669 (graphite_legal_transform_bb): Same.
2670 (poly_drs_may_alias_p): Same.
2672 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
2675 * graphite-ppl.c (ppl_max_for_le): Correct the use of
2676 ppl_Pointset_Powerset_C_Polyhedron_maximize.
2678 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
2680 * graphite-poly.c (print_pbb): Print PBB index.
2682 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
2684 * Merge from mainline (r150672:150764).
2686 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
2688 * graphite-interchange.c (ppl_max_for_le): Moved...
2689 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
2690 * graphite-ppl.c (ppl_max_for_le): ... here.
2691 * graphite-ppl.h (ppl_max_for_le): Declared.
2693 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
2695 * Merge from mainline (r150372:150672).
2697 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2700 * sese.c (convert_for_phi_arg): New.
2701 (add_guard_exit_phis): Use convert_for_phi_arg.
2703 * gfortran.dg/graphite/id-17.f: New.
2705 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2707 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
2708 unknown subscript upper bounds.
2710 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
2712 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2713 Pranav Garg <pranav.garg2107@gmail.com>
2715 * graphite-interchange.c (gather_access_strides): Removed.
2716 (ppl_max_for_le): New.
2717 (build_linearized_memory_access): New.
2718 (memory_stride_in_loop): New.
2719 (pbb_interchange_profitable_p): Reimplemented.
2720 * graphite-ppl.h (ppl_new_id_map): New.
2721 (ppl_interchange): New.
2723 * gcc.dg/graphite/interchange-6.c: XFAILed.
2725 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2727 * graphite-interchange.c (compute_subscript): Removed.
2728 (compute_array_size_cstr): Removed.
2729 (compute_array_size_poly): Removed.
2730 (compute_array_size): Removed.
2731 (gather_access_strides_poly): Removed.
2732 (gather_access_strides): Empty.
2734 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2736 * graphite-dependences.c (dependence_polyhedron_1): Replace
2737 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
2738 (graphite_legal_transform_dr): Same.
2739 (graphite_carried_dependence_level_k): Same.
2740 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
2741 Initialize PDR_NB_SUBSCRIPTS.
2742 (print_pdr_access_layout): Replace pdr_nb_subscripts with
2744 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
2745 (PDR_NB_SUBSCRIPTS): New.
2746 (pdr_nb_subscripts): Removed.
2747 (pdr_dim): Simplified.
2748 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
2749 with PDR_NB_SUBSCRIPTS.
2751 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2753 * graphite-interchange.c (compute_array_size): Remove use of
2755 * graphite-poly.c (new_poly_dr): Remove argument data_container.
2756 Do not initialize PDR_DATA_CONTAINER.
2757 (print_pdr): Do not print PDR_DATA_CONTAINER.
2758 * graphite-poly.h (struct poly_dr): Remove data_container field.
2759 (PDR_DATA_CONTAINER): Removed.
2760 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
2762 (build_poly_dr): Same.
2764 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2766 * gcc.dg/graphite/interchange-9.c: New.
2768 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2769 Sebastian Pop <sebastian.pop@amd.com>
2771 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
2772 copy of the dependence polyhedron. Free the temporary objects.
2773 (graphite_carried_dependence_level_k): Free unused objects before
2776 * gcc.dg/graphite/interchange-1.c: XFAILed.
2777 * gcc.dg/graphite/interchange-2.c: XFAILed.
2778 * gcc.dg/graphite/interchange-3.c: XFAILed.
2779 * gcc.dg/graphite/interchange-4.c: XFAILed.
2780 * gcc.dg/graphite/interchange-7.c: XFAILed.
2782 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
2784 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
2785 Early return without analyzing the data dependences if no
2786 transform has been done. Call restore_scattering if the transform
2788 (graphite-interchange.c): Same.
2789 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
2790 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
2791 (apply_poly_transforms): Do not gcc_assert that
2792 the transform is legal.
2793 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
2794 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
2795 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
2796 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
2797 * graphite-poly.h (struct poly_scattering): New.
2798 (struct poly_bb): Add original, transformed, and saved fields.
2799 Remove transformed_scattering, original_scattering, nb_local_variables,
2800 and nb_scattering_transform fields.
2801 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
2802 (poly_scattering_new): New.
2803 (poly_scattering_free): New.
2804 (poly_scattering_copy): New.
2805 (store_scattering_pbb): New.
2806 (store_scattering): New.
2807 (restore_scattering_pbb): New.
2808 (restore_scattering): New.
2809 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2810 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
2812 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
2814 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
2817 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
2819 * Makefile.in (graphite.o): Depends on PREDICT_H.
2820 * graphite.c: Include predict.h.
2821 (graphite_finalize): Call tree_estimate_probability.
2822 * predict.c (predict_loops): Do not call scev_initialize and
2824 (tree_estimate_probability_bb): New.
2825 (tree_estimate_probability): Do not initialize loops: move that
2826 code to the driver. Call tree_estimate_probability_bb.
2827 (tree_estimate_probability_driver): New.
2828 (pass_profile): Use tree_estimate_probability_driver.
2829 * predict.h (tree_estimate_probability): Declared.
2831 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
2833 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
2834 * graphite-dependences.c (graphite_legal_transform): Add time to
2835 TV_GRAPHITE_DATA_DEPS.
2836 (dependency_between_pbbs_p): Same.
2837 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
2839 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
2841 * Merge from mainline (r149952:150372).
2843 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2845 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
2846 * graphite-blocking.c: Same.
2847 * graphite-clast-to-gimple.c: Same.
2848 * graphite-dependences.c: Same.
2849 * graphite-poly.c: Same.
2850 * graphite-poly.h: Same.
2851 * graphite-ppl.c: Same.
2852 * graphite-scop-detection.c: Same.
2853 * graphite-sese-to-poly.c: Same.
2856 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2858 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
2859 (remove_simple_copy_phi): New.
2860 (remove_invariant_phi): New.
2861 (simple_copy_phi_p): New.
2862 (reduction_phi_p): New.
2863 (gsi_for_ssa_name_def): New.
2864 (insert_out_of_ssa_copy): New.
2865 (insert_out_of_ssa_copy_on_edge): New.
2866 (create_zero_dim_array): New.
2867 (scalar_close_phi_node_p): New.
2868 (rewrite_close_phi_out_of_ssa): New.
2869 (rewrite_phi_out_of_ssa): New.
2870 (rewrite_reductions_out_of_ssa): New.
2871 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
2873 * gcc.dg/graphite/id-11.c: New.
2874 * gcc.dg/graphite/id-15.c: New.
2875 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
2876 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
2877 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
2878 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
2879 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
2880 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
2881 * gfortran.dg/graphite/id-13.f: New.
2882 * gfortran.dg/graphite/id-5.f: New.
2884 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2886 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
2887 check that nb_reductions_in_loop is zero.
2888 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
2889 reduction phi nodes.
2890 (nb_reductions_in_loop): Removed.
2891 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
2892 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
2893 (bb_contains_non_iv_scalar_phi_nodes): Removed.
2894 (scop_contains_non_iv_scalar_phi_nodes): Removed.
2895 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
2897 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2899 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
2900 statements that have an empty iteration domain.
2901 * gfortran.dg/graphite/id-16.f: New.
2903 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2905 * tree-scalar-evolution.c (instantiate_scev_1): Return
2906 chrec_dont_know when the result is not above instantiate_below.
2907 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
2908 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
2909 the tree has a known scalar evolution.
2910 * gfortran.dg/graphite/id-14.f: New.
2911 * gfortran.dg/graphite/id-15.f: New.
2913 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2915 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
2917 (rename_variables): Keep inserting renames after the ones already
2920 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2922 * graphite-sese-to-poly.c (compare_bb_depths): New.
2923 (graphite_sort_dominated_info): New.
2924 (build_scop_bbs_1): Call graphite_sort_dominated_info.
2925 (build_scop_scattering): Fix comment.
2927 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2929 * graphite.c (graphite_finalize): Call print_loops instead of
2930 dump_function_to_file.
2931 * gcc.dg/graphite/graphite.exp: Fix formatting.
2932 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
2933 loops generated in the graphite output file.
2934 * gcc.dg/graphite/pr35356-2.c: New.
2935 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
2936 * gfortran.dg/graphite/id-12.f: New.
2938 2009-07-24 Li Feng <nemokingdom@gmail.com>
2940 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
2943 2009-07-24 Li Feng <nemokingdom@gmail.com>
2944 Tobias Grosser <grosser@fim.uni-passau.de>
2946 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
2947 alias set number build alias in ACCESSES polyhedron.
2948 (build_alias_set_for_drs): New.
2949 (build_pbb_drs): Added build_alias_set_for_drs.
2950 * graphite-dependences.c (poly_drs_may_alias_p): New.
2951 (graphite_carried_dependence_level_k): Check alias information
2952 before building polyhedron.
2954 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2956 * Makefile.in (lambda-code.o): Fix formatting.
2958 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2960 * Merge from mainline (r149350-149952)
2962 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
2964 * graphite-poly.c (apply_poly_transforms): Move strip_mine
2965 before interchange to prepare for loop blocking.
2967 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
2969 * graphite-poly.c (apply_poly_transforms): Add checks after every
2971 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
2972 done in apply_poly_transforms.
2974 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2976 * graphite-dependences.c (build_lexicographically_gt_constraint):
2977 Replace RES parameter with *RES.
2978 (dependence_polyhedron_1): Pass an address of the parameter RES
2979 instead of value of RES.
2981 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2983 * graphite.c (graphite_finalize): Fix comment.
2984 (graphite_transform_loops): Reset scev info after code generation
2987 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2989 * graphite.c (graphite_finalize): Call scev_reset.
2991 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2993 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
2994 GBB_CLOOG_IV_TYPES hash table twice.
2995 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
2996 (add_condition_to_domain): Clear GMP values.
2998 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3000 * graphite-dependences.c: Fix formatting.
3001 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
3002 (pbb_number_of_iterations): Free ppl_Linear_Expression.
3003 * graphite-sese-to-poly.c: Fix formatting.
3004 * graphite.c (graphite_transform_loops): Create the hash table
3005 after the early return.
3007 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3009 * gcc.dg/graphite/id-14.c: New.
3010 * gcc.dg/graphite/pr40157.c: New.
3011 * gfortran.dg/graphite/id-11.f: New.
3013 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3015 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
3016 (build_poly_scop): Return false when there are no pbbs within
3017 loops to avoid to pass to cloog scops with no loops.
3019 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3021 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
3022 useless test "i % 2".
3023 (build_pbb_scattering_polyhedrons): Fix formatting.
3024 (build_poly_dr): Same.
3025 * graphite.c (graphite_transform_loops): Restructure.
3027 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
3029 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
3030 reduction_list parameter.
3031 (rewrite_all_phi_nodes_with_iv): Same.
3032 (canonicalize_loop_ivs): Same.
3033 * tree-parloops.c (struct brli): Removed.
3034 (build_reduction_list_info): Removed.
3035 (build_new_reduction): New.
3036 (analyze_reduction_list): Removed.
3037 (gather_scalar_reductions): Find reductions instead of phi
3038 nodes that can't be canonicalized.
3039 (try_create_reduction_list): Remove reduction_list parameter.
3040 (gen_parallel_loop): Same.
3041 (parallelize_loops): Remove analyze_reductions variable,
3042 initialization and free.
3043 Change reduction_list htab initialization to reduction_info
3044 elements instead of ssa names.
3045 Call try_create_reduction_list and gen_parallel_loop without
3046 analyzed_reduction argument.
3047 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
3048 canonicalize_loop_ivs with one less argument.
3049 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
3051 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3053 * graphite-dependences.c (new_poly_dr_pair): New.
3054 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
3055 (new_poly_dr_pair): New.
3056 (eq_poly_dr_pair_p): New.
3057 (hash_poly_dr_pair_p): New.
3058 * graphite-dependences.h (struct poly_dr_pair): New.
3059 (eq_poly_dr_pair_p): Declared.
3060 (hash_poly_dr_pair_p): Declared.
3061 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
3062 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
3063 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
3064 * Makefile.in (graphite-poly.o): Add dependence on
3065 graphite-dependences.h.
3067 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3069 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
3070 polynomials of degree > 1 pass to Graphite.
3071 * tree-chrec.c (scev_is_linear_expression): Call
3072 evolution_function_is_affine_multivariate_p.
3073 * gfortran.dg/graphite/id-10.f90: New.
3075 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3077 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
3078 Instantiate scevs varying in outer loops.
3079 * gfortran.dg/graphite/id-9.f: Correct testcase.
3081 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3083 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
3084 redundant constraint.
3086 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3088 * gcc.dg/graphite/graphite.exp: Fix comments.
3089 * gfortran.dg/graphite/graphite.exp: Trigger actions
3090 based on the file names as in the C testsuite.
3091 * gfortran.dg/graphite/block-1.f90: Fix patterns.
3092 * gfortran.dg/graphite/block-2.f: Same.
3093 * gfortran.dg/graphite/block-3.f90: Same.
3094 * gfortran.dg/graphite/block-4.f90: Same.
3095 * gfortran.dg/graphite/id-1.f90: Same.
3096 * gfortran.dg/graphite/id-2.f90: Same.
3097 * gfortran.dg/graphite/id-3.f90: Same.
3098 * gfortran.dg/graphite/id-4.f90: Same.
3099 * gfortran.dg/graphite/id-6.f: Same.
3100 * gfortran.dg/graphite/id-9.f: Same.
3101 * gfortran.dg/graphite/interchange-1.f: Same.
3102 * gfortran.dg/graphite/interchange-2.f: Same.
3103 * gfortran.dg/graphite/scop-1.f: Same.
3105 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3107 * sese.c (expand_scalar_variables_call): New.
3108 (expand_scalar_variables_ssa_name): Handle calls in expander.
3110 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3112 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
3113 Expect to see the pattern twice.
3114 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
3115 * gcc.dg/graphite/interchange-5.c: Same.
3116 * gcc.dg/graphite/interchange-6.c: Same.
3118 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3120 * gcc.dg/graphite/id-10.c: New.
3121 * gcc.dg/graphite/id-12.c: New.
3122 * gfortran.dg/graphite/id-7.f: New.
3123 * gfortran.dg/graphite/id-8.f: New.
3125 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3127 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
3130 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3132 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
3134 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3136 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
3138 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3140 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
3141 building PDR subscripts.
3143 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3145 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
3146 computation of array sizes.
3148 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3150 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
3152 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
3154 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
3155 build_pairwise_constraint, dr_equality_constraints,
3156 build_pairwise_scheduling_equality,
3157 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3158 build_lexicographically_gt_constraint, dependence_polyhedron,
3159 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
3160 Move from NNC_Polyhedron to C_Polyhedron.
3161 * graphite-interchange.c (compute_array_size_poly,
3162 gather_access_strides): Dito.
3163 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
3164 free_scop, pbb_number_of_iterations): Dito.
3165 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
3166 pbb_dim_iter_domain, struct scop): Dito.
3167 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
3168 new_Cloog_Domain_from_ppl_Polyhedron,
3169 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
3170 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
3171 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
3172 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
3173 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
3174 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
3175 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
3176 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
3177 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
3178 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
3179 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
3180 build_scop_iteration_domain, build_poly_dr): Dito
3182 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3184 * gcc.dg/graphite/graphite.exp: Added a rule to execute
3186 * gcc.dg/graphite/run-id-1.c: New.
3188 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3190 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
3191 positivity constraint on the symbolic number of iterations.
3193 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3195 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
3197 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3198 Tobias Grosser <grosser@fim.uni-passau.de>
3200 * graphite-clast-to-gimple.c (build_scop_context): Removed.
3201 (build_cloog_prog): Directly use SCOP_CONTEXT.
3202 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
3203 (free_scop): Free SCOP_CONTEXT.
3204 (print_scop_context): New.
3205 (print_scop): Call print_scop_context.
3206 (debug_scop_context): New.
3207 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
3208 (struct scop): Added field context.
3209 (SCOP_CONTEXT): New.
3210 * graphite-sese-to-poly.c (add_param_constraints): New.
3211 (build_scop_context): New.
3212 (build_poly_scop): Call build_scop_context.
3214 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3216 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
3217 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
3218 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
3219 * graphite-ppl.h: Include double-int.h and tree.h.
3220 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
3221 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
3222 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
3223 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
3225 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3227 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
3228 POINTER_PLUS_EXPR for pointer types.
3229 (clast_to_gcc_expression): Same.
3231 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3233 * graphite-poly.c (print_scattering_function): Early return when
3234 PBB_TRANSFORMED_SCATTERING is not initialized.
3235 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
3237 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
3239 * tree-parloops.c (analyze_reduction_list): Remove unused variable
3242 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
3244 * tree-parloops.c (analyze_reduction_list): Change return
3246 (try_create_reduction_list): Move the call to
3247 analyze_reduction_list to the beginining.
3248 Call reduction_phi with analyzed_reductions as argument
3249 instead of reduction_list.
3251 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
3253 * Merge from mainline (r148296:149346)
3255 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3257 * graphite-scop-detection.c (graphite_can_represent_init): New.
3258 (graphite_can_represent_scev): Call graphite_can_represent_init:
3259 check that the initial value does not contain multiplications of
3261 (stmt_has_simple_data_refs_p): New.
3262 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
3263 (is_simple_operand): Fix formatting.
3264 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
3266 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3268 * gcc.dg/graphite/id-13.c: New.
3269 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
3270 analyze_scalar_evolution, use scalar_evolution_in_region.
3271 (scan_tree_for_params_right_scev): Add extra assert.
3272 (parameter_index_in_region_1): Split from parameter_index_in_region.
3273 (idx_record_params): Use scalar_evolution_in_region.
3274 (find_params_in_bb): Same.
3275 (find_scop_parameters): Same.
3276 (build_loop_iteration_domains): Same.
3277 (create_linear_expr_from_tree): Same.
3278 * sese.c (scalar_evolution_in_region): New.
3279 * sese.h (scalar_evolution_in_region): Declared.
3280 (defined_in_sese_p): New.
3281 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
3283 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
3286 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3288 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
3289 TREE_DATA_REF_H also implies SCEV_H.
3291 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3293 * graphite-poly.c (print_scop_params): New.
3294 (print_scop): Call print_scop_params.
3295 (debug_scop_params): New.
3296 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
3298 2009-07-07 Li Feng <nemokingdom@gmail.com>
3300 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
3301 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
3302 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
3303 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
3304 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
3305 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
3307 2009-07-07 Li Feng <nemokingdom@gmail.com>
3309 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
3310 for dependency checking part.
3311 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
3312 tests for dependency checking.
3313 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
3314 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
3315 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
3316 flag -fdump-tree-graphite-all for autopar testsuites.
3318 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
3320 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
3321 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
3322 canonicalize_loop_ivs): Moved...
3323 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
3325 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
3327 * tree-parloops.c (try_create_reduction_list): Pass an extra
3328 argument analyzed_reductions. Call analyze_reduction_list.
3329 (gen_parallel_loop): Do not call analyze_reduction_list.
3330 (parallelize_loops): Init and finalize analyzed_reductions.
3332 2009-07-06 Li Feng <nemokingdom@gmail.com>
3334 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
3335 Added flag -fno-loop-strip-mine for autopar testcase.
3337 2009-07-04 Li Feng <nemokingdom@gmail.com>
3339 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
3340 transformed scattering dimension instead of unmatch orignal when
3341 calling dependence_polyhedron.
3343 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3345 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
3347 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3349 * graphite-poly.c (pbb_number_of_iterations): Check for returned
3350 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
3352 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3354 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
3355 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
3356 * graphite-poly.c (pbb_number_of_iterations): New.
3357 * graphite-poly.h (pbb_number_of_iterations): Declared.
3358 (pbb_iterator_dim, pbb_parameter_dim): New.
3360 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
3362 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
3363 last commit on type of lower and upper bound of loops.
3365 2009-06-29 Li Feng <nemokingdom@gmail.com>
3367 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
3368 graphite-dependences.h.
3369 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
3370 (mark_bb_with_pbb): New.
3371 (get_stmtfor_depth): New.
3372 (find_pbb_via_hash): New.
3373 (dependency_in_loop_p): New.
3374 (mark_loops_parallel): New.
3375 (free_aux_in_new_loops): New.
3376 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
3377 bb with it's relevant pbb. Mark newly created loops. Remove mark
3378 innermost loop parallel without checking.
3379 (gloog): Add parameter BB_PBB_MAPPING.
3380 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
3381 (gloog): Change declaration.
3382 (mark_loop_parallel): Make extern.
3383 (free_aux_in_new_loops): Declare.
3384 (bb_pbb_map_hash): New.
3385 (eq_bb_pbb_map): New.
3386 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
3387 auto parallelization when flag_graphite_force_parallel is set.
3388 (graphite_finalize): Added free_aux_in_new_loops.
3389 * tree-parloops.c (parallelize_loops): Only generate parallel code for
3390 the innermost loop that marked parallel. Use
3391 flag_graphite_force_parallel instead of loop->can_be_parallel.
3392 (loop_parallel_p): Move inner most checking out of function.
3394 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3396 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
3397 type of lower and upper bound of loops signed long int.
3399 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3401 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
3402 expression outside the loop.
3404 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3406 * gcc.dg/graphite/interchange-8.c: New.
3408 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3410 * gcc.dg/graphite/interchange-0.c: XFailed.
3411 * gcc.dg/graphite/interchange-5.c: XFailed.
3412 * gcc.dg/graphite/interchange-6.c: XFailed.
3414 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3416 * graphite-interchange.c (compute_array_size_poly): The end of the
3417 recursion should return 1.
3419 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3421 * graphite-interchange.c (compute_array_size_cstr): Allow the
3422 subscript multiplier to be -1.
3423 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
3424 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
3425 data_container. Initializes PDR_DATA_CONTAINER.
3426 (print_pdr_access_layout): New.
3427 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
3428 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
3430 (PDR_DATA_CONTAINER): New.
3431 (new_poly_dr): Update declaration.
3432 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
3433 (build_poly_dr): Call pdr_add_data_dimensions.
3435 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3437 * graphite-poly.h (struct poly_dr): Fix comment.
3438 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
3439 (pdr_add_memory_accesses): New.
3440 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
3442 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3444 * graphite-poly.c (print_pdrs, debug_pdrs): New.
3445 (print_pbb): Add call to print_pdrs.
3446 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
3448 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3449 Li Feng <nemokingdom@gmail.com>
3451 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
3452 (dependency_between_pbbs_p): New.
3453 (lexicographically_gt_p): Assure !empty_p before polyhedron
3454 intersection assign.
3455 (build_lexicographically_gt_constraint): Correct lexicographically
3457 * graphite-dependences.h: New.
3458 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
3460 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3462 * graphite-clast-to-gimple.c (print_clast_stmt): New.
3463 (gloog): Print to dump_file the generated clast.
3464 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
3465 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
3467 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3469 * graphite-poly.c (extend_scattering): Increment
3470 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
3472 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3474 * graphite-interchange.c (compute_array_size_poly): Added exit of
3475 recursion condition. Continue iterating even after the first equality.
3476 (compute_array_size): Same.
3478 2009-06-24 Li Feng <nemokingdom@gmail.com>
3480 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
3481 -fdump-tree-final_cleanup to -fdump-tree-optimized.
3482 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
3483 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
3484 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
3486 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3488 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
3489 only when the use verifies is_gimple_reg.
3491 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3493 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
3494 Allocate scaldims after call to unify_scattering_dimensions.
3496 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3498 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
3500 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3501 Albert Cohen <albert.cohen@inria.fr>
3503 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
3504 variables for the strip mining.
3506 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3507 Pranav Garg <pranav.garg2107@gmail.com>
3509 * Makefile.in (OBJS-common): Added graphite-blocking.o.
3510 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
3511 (graphite-blocking.o): New rule.
3512 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
3513 * graphite-blocking.c: New.
3514 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
3515 flag_loop_strip_mine.
3516 (psct_scattering_dim_for_loop_depth): New.
3517 * graphite-poly.h (scop_do_strip_mine): Declared.
3518 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
3519 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
3520 flag_loop_strip_mine.
3522 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3524 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
3525 a GMP value and a PPL coefficient at each iteration of a loop.
3527 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3529 * graphite-dependences.c (dependence_polyhedron): Do not use
3530 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
3531 pbb_nb_scattering_transform.
3532 (graphite_legal_transform_dr): Same.
3533 * graphite-poly.c (extend_scattering): Same.
3534 (unify_scattering_dimensions): Same.
3535 (print_scattering_function): Same.
3536 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
3537 PBB_NB_LOCAL_VARIABLES.
3538 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
3539 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
3540 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
3541 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
3542 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
3543 (pbb_nb_scattering_transform): New.
3544 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
3545 (psco_scattering_dim): Add assert on parameters.
3546 (psct_scattering_dim): Same.
3547 (psct_scattering_dim_for_loop_depth): Declared.
3548 (psct_local_var_dim): New.
3549 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
3550 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
3551 correct layout, call pbb_nb_local_vars.
3552 (psct_add_local_variable, psct_add_scattering_dimension): New.
3553 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3554 Initialize PBB_NB_SCATTERING_TRANSFORM.
3556 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3558 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
3559 (set_coef): Renamed ppl_set_coef.
3560 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
3562 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3564 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
3565 test a boolean against 1.
3566 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
3567 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
3568 (pbb_do_interchange): Returns true when a transform has been performed.
3569 (scop_do_interchange): Same.
3570 * graphite-poly.c (apply_poly_transforms): Use the return value of
3571 scop_do_interchange.
3572 * graphite-poly.h (scop_do_interchange): Update declaration.
3574 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
3576 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
3578 * sese.c (sese_reset_aux_in_loops): New.
3579 * sese.h (sese_reset_aux_in_loops): New.
3581 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3583 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
3584 multiplier and multiply the constant by the multiplier.
3585 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
3586 (build_poly_dr): Do not use the multiplier to define the subscript.
3588 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3590 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
3591 compiler's data reference. Initialize PDR_CDR.
3592 (print_pdr): Call dump_data_reference.
3593 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
3594 Add compiler_dr field.
3595 (PDR_BB): Renamed PDR_PBB.
3597 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
3598 GCC's data reference representation.
3599 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
3600 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
3602 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3604 * graphite-poly.c (print_scattering_function): Also print the layout.
3605 * graphite-poly.h (pbb_nb_local_vars): New.
3607 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3609 * graphite-poly.c (print_pbb_domain): Also print the layout names.
3611 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3613 * graphite-poly.c (print_pdr, debug_pdr): New.
3614 * graphite-poly.h (print_pdr, debug_pdr): Declared.
3615 (PDR_BASE): Removed.
3617 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3619 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
3622 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3624 * graphite-interchange.c (compute_subscript): Allow also -1 in the
3625 subscript identification column.
3626 (pbb_do_interchange): Print to dump_file that some loops "will be
3627 interchanged". Rely on that chain of characters in the testcases.
3628 * gcc.dg/graphite/interchange-0.c: New.
3629 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
3630 interchange-*.c files and compile them with -floop-interchange.
3632 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
3634 * graphite-interchange.c (interchange_profitable_p): Renamed
3635 pbb_interchange_profitable_p.
3637 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3638 Harsha Jagasia <harsha.jagasia@amd.com>
3639 Pranav Garg <pranav.garg2107@gmail.com>
3641 * graphite-interchange.c (interchange_profitable_p): Make static.
3642 (pbb_interchange_loop_depths, pbb_do_interchange,
3643 scop_do_interchange): New.
3644 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
3645 for flag_loop_interchange.
3646 * graphite-poly.h (scop_do_interchange): Declared.
3647 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
3648 flag_loop_interchange is used.
3650 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3652 * graphite-dependences.c (dependence_polyhedron): Update use of
3653 pbb_nb_scattering_dims.
3654 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
3655 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
3656 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
3657 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
3659 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
3661 * graphite.c: Cleanup foo.
3663 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
3665 * Merge from mainline (r143684:148293).
3666 * Disabled libpcp until it gets fixed.
3668 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
3669 Harsha Jagasia <harsha.jagasia@amd.com>
3671 * graphite-interchange.c: New.
3672 * Makefile.in (graphite-interchange.o): New.
3673 * graphite-poly.h (interchange_profitable_p): Declared.
3674 * graphite-ppl.h (value_max): New.
3676 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
3678 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
3679 * graphite-poly.h: Fix some comments.
3683 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
3686 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
3687 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
3688 (pdr_accessp_nb_params): Renamed pdr_nb_params.
3689 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
3690 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
3691 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
3692 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
3693 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
3694 * graphite-clast-to-gimple.c: Same.
3695 * graphite-dependences.c: Same.
3696 * graphite-poly.c: Same.
3697 * graphite-sese-to-poly.c: Same.
3699 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
3701 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
3702 expressions for an IV rename, as returned by clast_to_gcc_expression.
3703 (copy_renames): Rename new_name to expr.
3704 * sese.c (debug_rename_elt): Same.
3707 (sese_adjust_liveout_phis): Call force_gimple_operand before using
3708 the information from the rename map.
3709 (rename_variables_in_stmt): Same.
3710 (add_loop_exit_phis): Rename new_name to expr.
3711 (insert_loop_close_phis): Same.
3712 (add_guard_exit_phis): Same. Call force_gimple_operand.
3713 * sese.h (struct rename_map_elt): Rename new_name to expr.
3714 (new_rename_map_elt): Same.
3716 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
3718 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
3719 * sese.c (set_rename): Make it extern.
3720 * sese.h (set_rename): Declared.
3722 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
3724 * graphite-poly.c (extend_scattering): Free values.
3725 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
3727 (ppl_print_powerset_matrix): Same.
3728 * graphite-scop-detection.c (free_scops_1): New.
3729 (limit_scops): Call free_scops_1.
3730 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
3731 (build_poly_dr): Free PPL coefficients.
3732 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
3734 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
3736 * graphite-dependences.c: New.
3737 * graphite-data-ref.c: Removed.
3738 * graphite-data-ref.h: Removed.
3739 * Makefile.in (graphite-data-ref.o): Removed.
3740 (graphite-dependences.o): Added.
3741 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
3742 * graphite-poly.c: Same.
3743 Move the data dependence testing to graphite-dependences.c.
3745 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
3747 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
3748 from graphite_cannot_represent_loop. Code refactored.
3749 (scopdet_basic_block_info): Call graphite_can_represent_loop.
3751 2009-05-17 Li Feng <nemokingdom@gmail.com>
3753 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
3754 Cover all the testcases (not only the filtered ones).
3756 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
3758 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
3759 unnecessary check. Update comments. Move check for REAL_TYPE here.
3760 (harmful_stmt_in_bb): Remove checks for conditions. This is already
3761 done in (stmt_simple_for_scop_p).
3763 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
3765 * graphite.c (print_global_statistics): New.
3766 (print_graphite_scop_statistic): New.
3767 (print_graphite_statistics): New.
3768 (graphite_initialize, graphite_transform_loops): Print statistics.
3769 * graphite-scop-detection (build_scops): Print statistics.
3770 (print_graphite_scop_statistics): New.
3771 (print_graphite_statistics): New.
3773 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3775 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
3776 (debug_clast_name_index): Removed.
3777 (debug_clast_name_indexes_1): Removed.
3778 (debug_clast_name_indexes): Removed.
3779 (clast_name_index_elt_info): Removed.
3780 (eq_clast_name_indexes): Removed.
3781 (clast_name_to_index): Removed.
3782 (new_clast_name_index): Removed.
3783 (save_clast_name_index): Removed.
3784 (save_var_name): Moved...
3785 (init_sese_params_index): Removed.
3786 (clast_name_to_gcc): Remove use of name_tree.
3787 (initialize_cloog_names): Same.
3788 (gloog): Do not call init_sese_params_index.
3789 * graphite-sese-to-poly.c (save_var_name): ...here.
3790 (parameter_index_in_region): New.
3791 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
3792 (parameter_index_in_region): Removed.
3793 (is_parameter): Remove use of name_tree.
3794 * sese.h (struct name_tree): Removed.
3795 (struct sese): Remove use of name_tree. New field params_names.
3796 (SESE_PARAMS_NAMES): New.
3797 (SESE_PARAMS): Remove duplicate.
3798 (parameter_index_in_region): Removed.
3799 (sese_nb_params): Remove use of name_tree.
3800 (struct clast_name_index): New.
3801 (new_clast_name_index): New.
3802 (clast_name_to_index): New.
3803 (save_clast_name_index): New.
3804 (debug_clast_name_index): New.
3805 (debug_clast_name_indexes_1): New.
3806 (debug_clast_name_indexes): New.
3807 (clast_name_index_elt_info): New.
3808 (eq_clast_name_indexes): New.
3810 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3812 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
3813 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
3814 (graphite_loop_normal_form): Do not pass region. Do not
3815 initialize SESE_OLDIVS.
3816 (build_graphite_loop_normal_form): Update call to
3817 graphite_loop_normal_form.
3818 * sese.c (debug_oldivs): Removed.
3819 (new_sese): Do not initialize SESE_OLDIVS.
3820 (free_sese): Do not free SESE_OLDIVS.
3821 (oldiv_for_loop): Removed.
3822 * sese.h (struct sese): Remove old_ivs.
3823 (SESE_OLDIVS): Removed.
3824 (oldiv_for_loop): Removed.
3826 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3828 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
3829 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
3830 replaced by a call to newivs_to_depth_to_newiv.
3831 (clast_to_gcc_expression): Pass newivs, remove ivstack.
3832 (clast_to_gcc_expression_red): Same.
3833 (gcc_type_for_clast_expr): Same.
3834 (gcc_type_for_clast_eq): Same.
3835 (graphite_translate_clast_equation): Same.
3836 (graphite_create_guard_cond_expr): Same.
3837 (graphite_create_new_guard): Same.
3838 (graphite_create_new_loop): Same.
3839 (build_iv_mapping): Same.
3840 (translate_clast): Same.
3842 (loop_iv_stack_patch_for_consts): Removed. *
3843 sese.c (iv_stack_entry_is_constant): Removed.
3844 (iv_stack_entry_is_iv): Removed.
3845 (loop_iv_stack_push_iv): Removed.
3846 (loop_iv_stack_insert_constant): Removed.
3847 (loop_iv_stack_pop): Removed.
3848 (loop_iv_stack_get_iv): Removed.
3849 (loop_iv_stack_get_iv_from_name): Removed.
3850 (debug_loop_iv_stack): Removed.
3851 (free_loop_iv_stack): Removed.
3852 (loop_iv_stack_remove_constants): Removed. *
3853 sese.h (iv_stack_entry_kind): Removed.
3854 (iv_stack_entry_data_union): Removed.
3855 (iv_stack_entry_struct): Removed.
3856 (iv_stack_entry_p): Removed.
3857 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
3858 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
3859 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
3860 loop_iv_stack_pop, free_loop_iv_stack): Removed.
3861 (gbb_loop_at_index): Fix indenting.
3862 (gbb_loop_index): Removed.
3864 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3866 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
3867 Call clast_name_to_index.
3869 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3871 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
3872 do not pass params. Get params from SESE_PARAMS.
3873 (clast_to_gcc_expression): Same.
3874 (clast_to_gcc_expression_red): Same.
3875 (gcc_type_for_clast_eq): Same.
3876 (graphite_translate_clast_equation): Same.
3877 (graphite_create_new_loop): Same.
3878 * sese.c (rename_variables_in_stmt): Fix comment.
3880 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3882 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
3884 Call save_clast_name_index.
3885 (translate_clast): Pass newivs_index.
3886 (gloog): Create and free newivs_index.
3888 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3890 * graphite-clast-to-gimple.c (clast_name_index): New structure.
3891 (clast_name_index_p): New type.
3892 (debug_clast_name_index): New.
3893 (debug_clast_name_indexes_1): New.
3894 (debug_clast_name_indexes): New.
3895 (clast_name_index_elt_info): New.
3896 (eq_clast_name_indexes): New.
3897 (clast_name_to_index): New.
3898 (new_clast_name_index): New.
3899 (save_clast_name_index): New.
3900 (init_sese_params_index): New.
3901 (gloog): Call init_sese_params_index.
3902 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
3903 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
3904 (free_sese): Free SESE_PARAMS_INDEX.
3905 * sese.h (struct sese): Add params_index.
3906 (SESE_PARAMS_INDEX): New.
3908 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3910 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
3911 (graphite_create_new_loop): Pass the newivs vector. Push the
3912 newly created IV to newivs.
3913 (translate_clast): Pass the newivs vector.
3914 (gloog): Create and destroy the newivs vector.
3916 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3918 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
3919 (graphite_loop_normal_form): Initialize loop->aux with the unique
3920 IV that has been created.
3922 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
3924 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
3925 scev with parameters in the base part. They where forbidden
3928 2009-05-11 Li Feng <nemokingdom@gmail.com>
3930 * gcc.dg/graphite/graphite.exp: Set different default
3931 compile options by file names.
3932 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
3933 * gcc.dg/graphite/id-{1-9}.c: Ditto.
3934 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
3935 * gcc.dg/graphite/scop-matmult.c: Ditto.
3937 2009-05-08 Li Feng <nemokingdom@gmail.com>
3939 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
3940 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
3941 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
3942 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
3944 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
3946 * graphite-scop-detection (build_scops_1): Fix little bug introduced
3949 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
3951 * graphite-scop-detection.c (graphite_can_represent_scev): Only
3952 allow integer constant strides.
3953 (graphite_can_represent_expr): Depend on outermost_loop.
3954 (stmt_simple_memref_p, graphite_cannot_represent_loop,
3955 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
3956 build_scops_1): Same.
3957 (scopdet_basic_block_info): Same and insert layered SCoP
3959 (try_generate_gimple_bb): Cleanup.
3960 (build_scops): Enable data references.
3962 * gcc.dg/graphite/id-5.c: New.
3963 * gcc.dg/graphite/id-9.c: New.
3964 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
3965 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
3967 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3969 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
3970 that we have not yet built for this SCoP.
3972 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3974 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
3975 for complex numbers.
3977 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3979 * graphite-ppl.c: Fix build if cloog is not available.
3981 2009-05-04 Li Feng <nemokingdom@gmail.com>
3983 * tree-parloops.c (loop_parallel_p): Remove construction of
3984 NITER and REDUCTION_LIST.
3985 (try_get_loop_niter): New.
3986 (try_create_reduction_list): New.
3987 (parallelize_loops): Bypass the failed checkings in autopar
3988 when can_be_parallel in loop structure is set to true.
3990 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
3992 * gcc.dg/graphite/id-6.c: Update testcase.
3993 * gcc.dg/graphite/scop-3.c: Dito.
3995 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
3997 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3998 Enable EQ_EXPR and NE_EXPR again.
4000 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4002 * graphite-scop-detection.c (graphite_can_represent_scev):
4003 Add check if scev is affine multivariate.
4004 (harmful_stmt_in_bb): Check if we can represent the conditions.
4005 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
4007 * gcc.dg/graphite/id-7.c: New.
4009 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4011 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
4012 Check all bbs in region, not only the bbs that are represented in
4014 (build_poly_scop): Add newline.
4015 * gcc.dg/graphite/id-8.c: New.
4017 2009-04-30 Li Feng <nemokingdom@gmail.com>
4019 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
4020 when loop initialize.
4021 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
4022 * common.opt: Declare flag_graphite_force_parallel.
4023 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
4025 * graphite-poly.c (apply_poly_transforms): Introduce
4026 flag_graphite_force_parallel.
4027 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
4028 * toplev.c (process_options): ditto and replace a not correctly
4031 2009-04-30 Li Feng <nemokingdom@gmail.com>
4033 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
4034 Change the call of gbb_loop_at_index and/or gbb_loop_index due
4035 to the redefinition.
4036 (compute_cloog_iv_types_1): ditto.
4037 (build_iv_mapping): ditto.
4038 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
4040 (free_gimple_bb): Removed GBB_LOOPS related free part.
4041 (build_bb_loops): Removed.
4042 * sese.h (struct gimple_bb): Removed loops.
4043 (GBB_LOOPS): Removed.
4044 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
4045 (gbb_loop_index): ditto.
4047 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4049 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
4050 allow non constant strides.
4051 * gcc.dg/graphite/scop-20.c: New.
4053 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4055 * graphite-scop-detection.c (dot_all_scops): Fix system call
4056 return value warning.
4059 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4061 * gcc.dg/graphite/id-6.c: Fix pattern.
4062 * gcc.dg/graphite/scop-3.c: Same.
4064 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4066 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
4067 build_pairwise_constraint, dr_equality_constraints,
4068 build_pairwise_scheduling_equality,
4069 build_pairwise_scheduling_inequality, lexicographically_gt_p,
4070 build_lexicographically_gt_constraint, dependence_polyhedron,
4071 graphite_legal_transform_dr, graphite_legal_transform_bb,
4072 graphite_legal_transform): New.
4073 * graphite-poly.h (graphite_legal_transform): Declared.
4074 * graphite-sese-to-poly.c (build_poly_scop): Call to
4075 graphite_legal_transform is disabled for the moment.
4077 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4079 * graphite-poly.h (pbb_nb_scattering_dims): New.
4080 (pbb_nb_scattering): Use it.
4082 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4084 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
4085 Pointset_Powerset version of ppl_insert_dimensions.
4086 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
4088 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4090 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
4092 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4094 * graphite-poly.h: Fix comment.
4096 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4098 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
4100 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4102 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
4105 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4107 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
4108 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
4111 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
4113 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
4114 handle EQ_EXPR and NE_EXPR.
4116 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
4118 * graphite-poly.h (poly_dr): Fix comment.
4120 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4121 Tobias Grosser <grosser@fim.uni-passau.de>
4123 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
4124 with a zero dimension polyhedron.
4125 (find_scop_parameters): Move the call to scop_set_nb_params here.
4126 (build_loop_iteration_domains): Store in loop->aux the iteration
4128 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
4129 by any loop in scop.
4130 (build_poly_scop): Do not call scop_set_nb_params.
4132 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4133 Tobias Grosser <grosser@fim.uni-passau.de>
4135 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
4136 add_condition_to_domain not GT_EXPR.
4138 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4140 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
4141 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
4142 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
4143 upper_bound_assign to calculate unions.
4144 * gcc.dg/graphite/id-6.c: New.
4146 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4148 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
4149 handle abnormal edges.
4151 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4153 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
4154 (free_poly_bb): Also free poly_drs.
4155 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
4156 (poly_dr): Polyhedron to Pointset_Powerset.
4157 (pdr_accessp_nb_subscripts): Same.
4158 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
4161 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4163 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
4164 names into more meaningful names.
4166 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4168 * gfortran.dg/graphite/interchange-1.c: New.
4169 * gfortran.dg/graphite/interchange-2.c: New.
4171 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4173 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
4175 * tree-parloops.c (rewrite_phi_with_iv): New.
4176 (rewrite_all_phi_nodes_with_iv): New.
4177 (canonicalize_loop_ivs): Call them.
4179 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4181 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
4182 graphite_find_data_references_in_stmt.
4183 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
4184 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
4186 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4188 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
4190 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4192 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
4193 instead of bb_in_region.
4194 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
4195 (build_sese_conditions): Use flag_bb_in_sese.
4196 * sese.c (register_bb_in_sese): Removed.
4197 (new_sese): Remove initialization of SESE_REGION_BBS.
4198 (free_sese): Do not free SESE_REGION_BBS.
4199 * sese.h (struct sese): Remove field region_basic_blocks.
4200 (SESE_REGION_BBS): Removed.
4201 (bb_in_sese_p): Implement in function of bb_in_region.
4203 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4205 * graphite-scop-detection.c (limit_scops): Deal only with single exit
4208 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
4210 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
4212 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
4213 (add_condition_to_domain): New.
4214 (add_condition_to_pbb): New.
4215 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
4216 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
4218 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
4220 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
4221 ppl_Pointset_Powerset.
4222 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
4223 * graphite-poly.h (poly_bb): poly_bb.domain Same.
4224 (pbb_nb_loops): Same.
4225 * graphite-sese-to-poly.c (build_loop_iteration_domains,
4226 add_conditions_to_domain): Same.
4227 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
4228 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
4229 ppl_const_Polyhedron_t.
4230 (ppl_print_powerset_matrix): New.
4231 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
4232 ppl_print_powerset_matrix): New.
4233 (ppl_print_polyhedron_matrix): Updated.
4235 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
4237 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
4239 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
4241 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
4242 (print_iteration_domains, debug_iteration_domain,
4243 debug_iteration_domains): New.
4244 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
4245 debug_iteration_domains): Declared.
4246 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
4249 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
4250 Sebastian Pop <sebastian.pop@amd.com>
4252 * graphite-poly.h (print_iteration_domain): New.
4253 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
4254 (build_sese_conditions_1, build_sese_conditions_after,
4255 build_sese_conditions_before): New.
4256 (build_sese_conditions): Rewritten.
4258 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
4259 Tobias Grosser <grosser@fim.uni-passau.de>
4261 Cleanup of code generation liveouts.
4262 * graphite-clast-to-gimple.c (translate_clast): Use a single
4263 rename_map instead of one per translated statement.
4264 Do not use SESE_LIVEOUT_RENAMES.
4265 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
4266 (gloog): Do not use SESE_LIVEOUT_RENAMES.
4267 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
4268 phi node of a reduction: when a loop contains a reduction used outside
4269 the loop, there should be a scalar close phi node on the exit block.
4270 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
4271 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
4272 (free_sese): Do not free them.
4273 (sese_build_liveouts_use): Do not use them.
4274 (sese_build_liveouts_bb): Same.
4275 (sese_build_liveouts): Same.
4276 (sese_insert_phis_for_liveouts): Same.
4277 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
4278 (defined_in_loop_p): New.
4279 (alive_after_loop): New.
4280 (close_phi_not_yet_inserted_p): New.
4281 (struct alep, alep_p): New.
4282 (add_loop_exit_phis): Remove from the rename_map all the names defined
4283 in the code generated loop.
4284 (insert_loop_close_phis): Traverse the rename_map passed to it.
4285 Don't use SESE_LIVEOUT_RENAMES.
4286 (default_liveout_before_guard): Renamed default_before_guard.
4287 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
4288 (graphite_copy_stmts_from_block): Do not directly call set_rename.
4289 (register_sese_liveout_renames): Removed.
4290 (copy_bb_and_scalar_dependences): Do not call it.
4291 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
4293 (SESE_LIVEOUT): Removed.
4294 (SESE_LIVEOUT_RENAMES): Removed.
4295 (SESE_REDUCTION_LIST): Removed.
4296 (sese_build_liveouts): Removed.
4297 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
4298 (insert_loop_close_phis): Pass a htab_t instead of a sese.
4299 (insert_guard_phis): Same.
4300 (rename_map_elt): Declare a VEC of them.
4301 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
4302 trees not pointers to trees.
4304 Rewrite in canonical close SSA form:
4305 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
4306 (limit_scops): Close the scop after the block containing the close phi
4308 (canonicalize_loop_closed_ssa): New.
4309 (canonicalize_loop_closed_ssa_form): New.
4310 (build_scops): Call canonicalize_loop_closed_ssa_form.
4312 * graphite-sese-to-poly.c: Fix typos.
4314 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
4316 * graphite-poly.c (print_scattering_function, print_pbb_domain):
4318 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
4319 (print_pbb): Add conditions.
4321 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
4322 Sebastian Pop <sebastian.pop@amd.com>
4324 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
4325 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
4326 (build_scop_bbs_1): New.
4327 (build_scop_bbs): Rewrite.
4328 * sese.h (bb_in_region): New.
4330 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4332 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
4334 (print_scop): Style.
4335 * graphite-poly.h (poly_bb): Add drs vector.
4336 (PBB_DRS): Add accessor.
4337 * graphite-sese-to-poly.c (build_poly_dr): New.
4338 (build_pbb_drs, build_scop_drs): New.
4339 (build_poly_scop): call build_scop_drs (Disabled at the moment).
4341 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4343 * tree-ssa-loop.c: Include forgotten toplev.h
4345 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4347 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
4348 * gcc.dg/graphite/pr37883.c: Remove -floop-*
4349 * gcc.dg/graphite/pr37928.c: Same
4350 * gcc.dg/graphite/pr38409.c: Same
4351 * gcc.dg/graphite/pr38498.c: Same
4352 * gcc.dg/graphite/pr38559.c: Same
4353 * gcc.dg/graphite/pr39335.c: Same
4354 * gcc.dg/graphite/pr39335_1.c: Same
4355 * gfortran.dg/graphite/block-2.f: Same
4356 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
4359 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
4361 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
4362 build_access_matrix, build_scop_data_accesses): Remove access function
4363 building. (We get a new version soon).
4364 (build_bb_loops, scan_tree_for_params_right_scev): Update.
4365 * sese.h (nb_loops_around_loop_in_sese): Remove.
4366 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
4368 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
4369 Sebastian Pop <sebastian.pop@amd.com>
4371 * graphite-scop-detection.c (struct scopdet_info): Rename last
4373 (scopdet_basic_block_info, build_scops_1): Don't use
4374 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
4376 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
4377 Sebastian Pop <sebastian.pop@amd.com>
4379 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
4380 * sese.c (sese_build_liveouts_use): Renamed from
4381 sese_build_livein_liveouts_use. Remove liveins.
4382 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
4383 Call sese_build_liveouts_use.
4384 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
4385 Call sese_build_liveouts_bb.
4386 (new_sese, free_sese): Remove liveins.
4387 (sese_add_exit_phis_var): Deleted.
4388 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
4390 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
4392 * sese.h (sese): Remove num_ver and livein.
4393 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
4395 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
4397 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
4399 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
4401 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
4402 (build_scop_scattering): Do not use compare_prefix_loops any more.
4403 (nb_common_loops): New.
4405 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4407 * sese.c (get_new_name_from_old_name): Renamed get_rename.
4408 (register_old_and_new_names): Renamed set_rename.
4410 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4412 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
4413 of the decl from the previous commit.
4415 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4417 * graphite-scop-detection.c (dot_scop): New.
4418 * graphite-scop-detection.h (dot_scop): Declared.
4420 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4422 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
4424 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4426 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
4427 condition at the end of the loop.
4428 * graphite.c (graphite_initialize, graphite_finalize): Print to
4429 dump_file the compiled function.
4430 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
4431 of create_empty_loop_on_edge.
4432 (translate_clast): Update the code generation of loops for the new
4434 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
4436 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4438 Reverted the patch from 2009-03-19.
4440 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
4442 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
4444 (print_scop): Style.
4445 * graphite-poly.h (poly_bb): Add drs vector.
4446 (PBB_DRS): Add accessor.
4447 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
4448 (build_access_matrix_with_af, build_access_matrix,
4449 build_scop_data_accesses): Delete.
4450 (build_poly_dr): New.
4451 (build_pbb_drs, build_scop_drs): New.
4452 (build_poly_scop): call build_scop_drs.
4454 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
4456 * graphite-scop-detection.c (dot_all_scops_1): Close the table
4457 once per basic block.
4459 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
4461 * graphite-scop-detection.c (graphite_can_represent_scev): New.
4462 (graphite_can_represent_expr): Renamed from loop_affine_expr
4464 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
4465 (graphite_cannot_represent_loop): Add scop_entry to parameters.
4466 (scopdet_basic_block_info): Actually define entry_block.
4467 (stmt_simple_memref_p): Moved here from ...
4469 * tree-data-ref.c (stmt_simple_memref_p): here.
4470 * tree-data-ref.h (stmt_simple_memref_p): Removed.
4472 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
4474 * gcc.dg/graphite/id-4.c: New.
4476 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
4478 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
4479 (register_old_and_new_names): Update the content of the map.
4480 When there was already a rename_map_elt in the map at that
4482 (copy_bb_and_scalar_dependences): Do rename_variables after
4483 expand_scalar_variables.
4484 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4485 of the map. When there was already a rename_map_elt in the
4486 map at that location, free it.
4487 (translate_clast): Pass the rename_map. Do not initialize and free
4488 a rename_map per stmt_user.
4489 (gloog): Initialize and free one rename_map and pass it to
4492 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
4494 * sese.c (expand_scalar_variables_stmt,
4495 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
4497 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
4498 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
4499 the gimple_stmt_iterator of the statement to be expanded.
4500 * graphite-scop-detection.c (is_simple_operand): Do handle
4503 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4505 * graphite-scop-detection.c (is_simple_operand): Do not handle
4507 * gcc.dg/graphite/id-2.c: New.
4509 * graphite-sese-to-poly.c (build_bb_loops,
4510 add_value_to_dim, scan_tree_for_params_right_scev,
4511 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
4512 find_params_in_bb, build_loop_iteration_domains,
4513 add_conditions_to_domain): Remove subtract.
4515 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4517 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
4518 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
4519 pbb_loop_at_index -> gbb_loop_at_index.
4520 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
4521 (debug_loop_vec): Delete.
4522 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
4523 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
4524 (PBB_LOOPS): Removed.
4525 (PBB_BLACK_BOX): Insert cast.
4526 (pbb_set_black_box): New setter.
4527 (pbb_loop_at_index, pbb_loop_index): Removed.
4528 (scop_set_region, scop_set_nb_params): New.
4529 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
4530 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
4531 (build_poly_scop): Use scop_set_nb_params.
4532 * sese.h (gimple_bb): Add LOOPS.
4533 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
4535 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4537 Revert previous commit.
4539 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
4541 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
4542 (register_old_and_new_names): Update the content of the map.
4543 When there was already a rename_map_elt in the map at that
4545 (copy_bb_and_scalar_dependences): Do rename_variables after
4546 expand_scalar_variables.
4547 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4548 of the map. When there was already a rename_map_elt in the
4549 map at that location, free it.
4550 (translate_clast): Pass the rename_map. Do not initialize and free
4551 a rename_map per stmt_user.
4552 (gloog): Initialize and free one rename_map and pass it to
4555 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4557 Remove forgotten line in revert.
4559 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
4561 Revert previous commit.
4563 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
4565 * sese.c (register_old_and_new_names): Update the content
4566 of the map. When there was already a rename_map_elt in the
4567 map at that location, free it.
4568 (copy_bb_and_scalar_dependences): Do rename_variables after
4569 expand_scalar_variables.
4570 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4571 of the map. When there was already a rename_map_elt in the
4572 map at that location, free it.
4573 (translate_clast): Pass the rename_map. Do not initialize and free
4574 a rename_map per stmt_user.
4575 (gloog): Initialize and free one rename_map and pass it to
4578 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
4580 * graphite-clast-to-gimple.c (translate_clast): context_loop
4583 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
4584 Sebastian Pop <sebastian.pop@amd.com>
4586 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
4587 of the use of ppl_Polyhedron_map_space_dimensions.
4589 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
4590 Sebastian Pop <sebastian.pop@amd.com>
4592 * graphite-poly.c (unify_scattering_dimensions): Fix types.
4593 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
4594 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
4595 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
4596 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
4597 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
4598 pbb_nb_params): New.
4599 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
4600 nb_loops_around_pbb): Adapt return types.
4602 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
4604 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
4605 graphite-clast-to-gimple.o, graphite-data-ref.o,
4606 graphite-scop-detection.o, graphite-poly.o): Add
4609 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
4611 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
4612 graphite-clast-to-gimple.o, graphite-data-ref.o,
4613 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
4615 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
4617 * gcc.dg/graphite/pr37485.c: Remove -floop-block
4618 * gcc.dg/graphite/pr37828.c: Same.
4619 * gcc.dg/graphite/pr37684.c: Same.
4620 * gcc.dg/graphite/block-0.c: Same.
4621 * gcc.dg/graphite/block-1.c: Same.
4622 * gcc.dg/graphite/block-2.c: Same.
4623 * gcc.dg/graphite/block-3.c: Same.
4624 * gcc.dg/graphite/block-4.c: Same.
4625 * gcc.dg/graphite/block-5.c: Same.
4626 * gcc.dg/graphite/block-6.c: Same.
4627 * gfortran.dg/graphite/pr38083.f90: Same.
4628 * gfortran.dg/graphite/block-1.f90: Same.
4629 * gfortran.dg/graphite/block-3.f90: Same.
4630 * gfortran.dg/graphite/pr37852.f90: Same.
4631 * gfortran.dg/graphite/block-4.f90: Same.
4632 * gfortran.dg/graphite/pr37980.f90: Same.
4633 * gfortran.dg/graphite/pr38953.f90: Same.
4634 * gfortran.dg/graphite/pr37857.f90: Same.
4635 * opts.c: Remove -floop-block from -O2.
4636 * graphite-poly.c: Fail if -floop-block -floop-interchange or
4637 -floop-strip-mine are used.
4639 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
4640 Sebastian Pop <sebastian.pop@amd.com>
4642 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
4644 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
4645 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
4646 strip_mine_profitable_p, is_interchange_valid,
4647 graphite_trans_bb_block, graphite_trans_loop_block,
4648 graphite_trans_scop_block): Temporary removed.
4649 (extend_scattering, unify_scattering_dimensions): New.
4650 (print_scattering_function, graphite_read_transforms):
4651 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4652 (graphite_generate_scattering_fns): Removed.
4653 (apply_poly_transforms): Cleanup.
4654 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4655 (schedule_to_scattering): Moved.
4656 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
4657 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
4658 (pbb_nb_scattering): New.
4659 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
4660 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
4662 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
4664 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4665 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
4666 -> PBB_TRANSFORMED_SCATTERING.
4667 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
4668 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
4669 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
4670 (check_poly_representation): Do not return bool.
4671 (graphite_transform_loops): Reformat.
4672 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
4674 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
4676 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
4677 debug_pbb_domain, debug_pbb, debug_scop): New.
4678 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
4679 debug_pbb_domain, debug_pbb, debug_scop): Declared.
4681 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
4684 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
4685 when the type precision of the induction variable should be
4686 larger than the type precision of nit.
4687 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
4688 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
4689 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
4691 * gcc.dg/graphite/pr39335_1.c: New.
4692 * gcc.dg/graphite/pr39335.c: New.
4694 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
4696 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
4697 SSA_NAMES not struct reduction_info.
4699 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
4701 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
4703 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
4704 Tobias Grosser <grosser@fim.uni-passau.de>
4706 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
4707 (free_sese): Free SESE_REDUCTION_LIST.
4708 * sese.h (struct sese): Add field reduction_list.
4709 (SESE_REDUCTION_LIST): New.
4710 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
4711 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
4713 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
4714 Tobias Grosser <grosser@fim.uni-passau.de>
4716 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
4719 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
4720 Tobias Grosser <grosser@fim.uni-passau.de>
4722 * tree-parloops.c (struct brli, build_reduction_list_info,
4723 analyze_reduction_list, gather_scalar_reductions): New.
4724 (loop_parallel_p): Build a reduction list containing only
4725 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
4726 (gen_parallel_loop): Call the analysis analyze_reduction_list.
4727 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
4728 * tree-flow.h (gather_scalar_reductions): Declared.
4730 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
4733 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
4734 number_of_iterations_exit from a gcc_assert.
4736 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
4737 Jan Sjodin <jan.sjodin@amd.com>
4739 * output.h (graphite_out_file, graphite_in_file): Declared.
4740 * toplev.c (graphite_out_file, graphite_in_file): New.
4741 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
4742 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
4743 Don't call schedule_to_scattering.
4744 * common.opt (fgraphite-write, fgraphite-read): New.
4745 * graphite-poly.c: Include output.h.
4746 (print_scattering_function, print_scattering_functions,
4747 debug_scattering_function, debug_scattering_functions,
4748 graphite_write_transforms, graphite_read_transforms,
4749 graphite_generate_scattering_fns): New.
4750 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
4751 Call graphite_generate_scattering_fns, graphite_write_transforms,
4752 graphite_read_transforms.
4753 (new_poly_bb): Initialize PBB_SCATTERING.
4754 (free_poly_bb): Free PBB_SCATTERING.
4755 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
4756 * graphite-poly.h (struct poly_bb): Add field scattering.
4757 (PBB_SCATTERING): New.
4758 (print_scattering_function, print_scattering_functions,
4759 debug_scattering_function, debug_scattering_functions): Declared.
4760 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
4761 GMP values, not integers!
4762 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
4763 ppl_read_polyhedron_matrix): New.
4764 * graphite-ppl.h (ppl_print_polyhedron_matrix,
4765 debug_ppl_polyhedron_matrix,
4766 ppl_read_polyhedron_matrix): Declared.
4767 * Makefile.in (graphite-poly.o): Depends on output.h.
4769 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4770 Tobias Grosser <grosser@fim.uni-passau.de>
4773 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
4774 scalar evolutions in the scop_entry->loop_father.
4776 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4777 Tobias Grosser <grosser@fim.uni-passau.de>
4779 * graphite.h (ref_nb_loops): Remove declaration.
4780 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
4781 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
4782 debug_gbb): Moved to sese.h.
4785 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4786 Tobias Grosser <grosser@fim.uni-passau.de>
4788 * graphite-data-ref.[ch]: Disable.
4790 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4791 Tobias Grosser <grosser@fim.uni-passau.de>
4793 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
4794 scalar evolutions in the scop_entry->loop_father.
4796 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4798 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
4799 (graphite_cannot_represent_loop_niter): Renamed
4800 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
4801 (limit_scops): build_sese_loop_nests does not return a bool.
4802 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
4803 * sese.c (nb_reductions_in_loop): ... from here.
4804 (graphite_loop_normal_form): ... from here.
4805 (sese_record_loop): Does not fail, so does not return a bool.
4806 (build_sese_loop_nests): Same.
4807 * sese.h (build_sese_loop_nests): Update declaration.
4808 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
4809 (build_graphite_loop_normal_form): New.
4810 (gloog): Call build_graphite_loop_normal_form.
4811 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
4812 build_sese_loop_nests.
4814 * gcc.dg/graphite/id-1.c: New.
4816 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4817 Tobias Grosser <grosser@fim.uni-passau.de>
4819 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
4820 The SCoP detection fix is sufficient.
4822 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
4824 PR tree-optimization/39260
4825 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
4826 the basic block contains a condition with a real type.
4827 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
4829 * gcc.dg/graphite/pr39260.c: New.
4831 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
4833 * graphite-poly.c: Inlcude params.h.
4834 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
4836 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
4837 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
4839 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
4840 Tobias Grosser <grosser@fim.uni-passau.de>
4842 * graphite-scop-detection.c (dot_all_scops_1,
4843 dot_all_scops): Moved here.
4844 * graphite-scop-detection.h (dot_all_scops): Declared here.
4845 * graphite.c (graphite_initialize, graphite_finalize): New.
4846 (graphite_transform_loops): Cleaned up.
4847 * sese.c (debug_oldivs): Moved here.
4848 * graphite-poly.c (graphite_apply_transformations): Renamed
4849 apply_poly_transforms.
4850 (debug_loop_vec): Moved here.
4851 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
4852 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
4853 find_scop_parameters, build_scop_iteration_domain,
4854 add_conditions_to_constraints, build_scop_canonical_schedules,
4855 build_scop_data_accesses): Now static.
4856 (build_poly_scop, check_poly_representation): New.
4858 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
4860 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
4861 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
4862 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
4863 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
4864 scan_tree_for_params_right_scev, scan_tree_for_params_int,
4865 scan_tree_for_params, struct irp_data, dx_record_params,
4866 find_params_in_bb, find_scop_parameters, gbb_from_bb,
4867 build_loop_iteration_domains, add_conditions_to_domain,
4868 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
4869 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
4870 build_sese_conditions, add_conditions_to_constraints,
4871 build_scop_iteration_domain, build_access_matrix_with_af,
4872 build_access_matrix,
4873 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
4875 * graphite-sese-to-poly.c: New.
4876 * graphite-sese-to-poly.h: New.
4878 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
4880 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
4882 * graphite.c: Split graphite code generation to a new file.
4883 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
4884 max_precision_type, clast_to_gcc_expression_red,
4885 clast_to_gcc_expression, gcc_type_for_clast_expr,
4886 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
4887 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
4888 graphite_create_new_guard, clast_get_body_of_loop,
4889 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
4890 graphite_create_new_loop, build_iv_mapping, copy_renames,
4891 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
4892 compute_cloog_iv_types, free_scattering, save_var_name,
4893 initialize_cloog_names, build_scop_context, build_cloog_prog,
4894 set_cloog_options, debug_clast_stmt, scop_to_clast,
4895 print_generated_program, debug_generated_program,
4896 gloog): Moved to graphite-clast-to-gimple.c.
4898 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
4900 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
4901 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
4902 loop_iv_stack_pop, loop_iv_stack_get_iv,
4903 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
4904 free_loop_iv_stack, loop_iv_stack_remove_constants,
4905 debug_rename_elt, debug_rename_map_1, debug_rename_map,
4906 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
4907 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
4908 eq_ivtype_map_elts, sese_add_exit_phis_edge,
4909 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
4910 get_vdef_before_sese, sese_adjust_vphi,
4911 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
4912 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
4913 is_iv, expand_scalar_variables_ssa_name,
4914 expand_scalar_variables_expr, expand_scalar_variables_stmt,
4915 expand_scalar_variables, rename_variables, remove_condition,
4916 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
4917 add_loop_exit_phis, insert_loop_close_phis, struct igp,
4918 default_liveout_before_guard, add_guard_exit_phis,
4919 insert_guard_phis, register_old_and_new_names,
4920 graphite_copy_stmts_from_block, register_sese_liveout_renames,
4921 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
4922 if_region_set_false_region, create_if_region_on_edge,
4923 move_sese_in_condition): Moved to sese.c.
4925 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
4926 if_region_exit, if_region_get_condition_block,
4927 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
4928 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
4929 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
4930 ivtype_map_elt, new_ivtype_map_elt,
4931 recompute_all_dominators): Moved to sese.h.
4933 * graphite-clast-to-gimple.c: New.
4934 * graphite-clast-to-gimple.h: New.
4935 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
4936 * sese.c: Modified as said above.
4939 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
4941 * graphite.c: Split scop detection to a new file.
4942 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
4943 move_sd_regions, loop_affine_expr, exclude_component_ref,
4944 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
4945 graphite_cannot_represent_loop_niter, struct scopdet_info,
4946 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
4947 find_single_entry_edge, find_single_exit_edge,
4948 create_single_entry_edge, sd_region_without_exit,
4949 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
4950 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
4951 Moved to graphite-scop-detection.c.
4953 * graphite-scop-detection.c: New.
4954 * graphite-scop-detection.h: New.
4955 * Makefile.in: Add new rule for graphite-scop-detection.o.
4957 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
4958 tree-scalar-evolution.h.
4959 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
4960 build_sese_loop_nests): Moved here from graphite.c.
4961 (param_index): Renamed parameter_index_in_region.
4963 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
4964 Sebastian Pop <sebastian.pop@amd.com>
4966 * gcc.dg/graphite/block-0.c: Expected to fail now.
4967 * gcc.dg/graphite/block-1.c: Same.
4968 * gcc.dg/graphite/block-5.c: Same.
4969 * gcc.dg/graphite/block-6.c: Same.
4971 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
4972 Sebastian Pop <sebastian.pop@amd.com>
4974 * graphite.h: Separate from graphite_bb_p the polyhedral
4975 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
4976 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
4977 graphite-data-ref.h.
4978 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
4979 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
4980 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
4981 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
4982 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
4983 scop_nb_params): Moved to graphite-poly.h.
4984 * graphite-data-ref.c: Same.
4985 * graphite-data-ref.h: New.
4987 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
4988 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
4989 is_interchange_valid, graphite_trans_bb_block,
4990 graphite_trans_loop_block, scop_max_loop_depth,
4991 graphite_trans_scop_block, graphite_apply_transformations,
4992 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
4994 * graphite-poly.h: New.
4995 * graphite-poly.c: New.
4996 * Makefile.in (OBJS-common): Add graphite-poly.o.
4997 (graphite-poly.o): New rule.
4998 * tree-data-ref.h (struct data_reference): Remove unused scop field.
5001 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5002 Tobias Grosser <grosser@fim.uni-passau.de>
5004 * graphite.c: Replace gb -> gbb.
5006 * graphite-data-ref.c: Same.
5008 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5009 Tobias Grosser <grosser@fim.uni-passau.de>
5011 * Makefile.in (OBJS-commmon): Add sese.o.
5013 (graphite.o): Add sese.h.
5014 * graphite.c (bb_in_ss_p, loop_in_sese_p,
5015 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
5016 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
5018 (block_before_scop): Add missing return.
5019 (new_scop, free_scop): Remove SESE data structures.
5020 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
5021 find_scop_parameters, build_loop_iteration_domains,
5022 add_conditions_to_domain, register_scop_liveout_renames,
5023 copy_bb_and_scalar_dependences): Scop -> SESE.
5025 (add_conditions_to_domain): SCoP -> SESE and remove check
5026 (scop_contains_non_iv_scalar_phi_nodes): New.
5027 (build_scop_conditions_1, build_scop_conditions): Remove check for
5028 non iv scalar phi nodes.
5029 (print_scop_statistics): New.
5030 (graphite_transform_loops): Cleanup.
5032 * graphite.h: Move to sese & cleanup.
5036 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5037 Tobias Grosser <grosser@fim.uni-passau.de>
5039 * graphite.c (build_scop_conditions_1): Conditions are only
5040 at the end of a basic block.
5042 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5043 Tobias Grosser <grosser@fim.uni-passau>
5045 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
5047 (GBB_ALPHA): Removed.
5049 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5050 Tobias Grosser <grosser@fim.uni-passau.de>
5052 * graphite-data-ref.c (graphite_test_dependence): Don't use
5053 GBB_DYNAMIC_SCHEDULE.
5054 * graphite.c (new_graphite_bb): Same.
5055 (free_graphite_bb): Same.
5056 (build_scop_dynamic_schedules): Removed.
5057 (graphite_transform_loops): Don't call it.
5058 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
5059 (GBB_DYNAMIC_SCHEDULE): Removed.
5061 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5062 Tobias Grosser <grosser@fim.uni-passau.de>
5064 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
5065 (print_graphite_bb): Same.
5066 (build_cloog_prog): Same.
5068 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5069 Tobias Grosser <grosser@fim.uni-passau.de>
5071 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
5073 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5074 Tobias Grosser <grosser@fim.uni-passau.de>
5076 * graphite.c (build_scop_context): Don't use CloogMatrix.
5077 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
5078 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
5080 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5081 Tobias Grosser <grosser@fim.uni-passau.de>
5083 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
5084 liveout_renames, add_params fields...
5085 (struct sese): ... here.
5086 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
5087 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
5089 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5090 Tobias Grosser <grosser@fim.uni-passau.de>
5092 * graphite.c (print_scop): Do not print the CLooG program.
5093 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
5094 build_cloog_prog, gloog): Don't use SCOP_PROG.
5095 (find_transform): Renamed scop_to_clast.
5096 (print_generated_program, debug_generated_program): New.
5097 (graphite_transform_loops): Adapt to new interface.
5098 * graphite.h (struct scop): Remove program field.
5099 (SCOP_PROG): Removed.
5100 (print_generated_program, debug_generated_program): Declared.
5102 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5104 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
5105 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
5106 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
5107 free_graphite_bb, build_scop_canonical_schedules,
5108 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
5109 schedules are now represented using a ppl_Linear_Expression_t.
5110 * graphite.h (struct graphite_bb): Same.
5111 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
5112 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
5114 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5116 * graphite.c: Free local memory.
5117 * graphite-ppl.c: Same.
5119 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5121 * graphite.c (const_column_index, get_first_matching_sign_row_index,
5122 get_lower_bound_row, get_upper_bound_row, copy_constraint,
5123 swap_constraint_variables, scale_constraint_variable): Removed.
5124 (graphite_trans_bb_strip_mine): Remove pong.
5125 * graphite-ppl.c: Include missing header files.
5126 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
5127 * graphite-ppl.h (ppl_strip_loop): Declared.
5128 * Makefile.in (graphite-ppl.o): Adjust dependences.
5130 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
5132 * graphite.c (build_loop_iteration_domains): Remove ping pong.
5133 (build_scop_iteration_domain): Same.
5135 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5137 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5139 (add_value_to_dim, scan_tree_for_params_right_scev,
5140 scan_tree_for_params_int): New.
5141 * graphite-ppl.c (oppose_constraint): New.
5142 (insert_constraint_into_matrix): Implement missing cases.
5143 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5145 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5147 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
5148 use ppl_move_dimension.
5150 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5152 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
5155 * graphite-ppl.c: Same.
5156 * graphite-ppl.h: Same.
5158 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5160 Revert last 3 commits.
5162 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5164 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5166 (add_value_to_dim, scan_tree_for_params_right_scev,
5167 scan_tree_for_params_int): New.
5168 * graphite-ppl.c (oppose_constraint): New.
5169 (insert_constraint_into_matrix): Implement missing cases.
5170 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5172 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5174 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
5176 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5177 Tobias Grosser <grosser@fim.uni-passau.de>
5179 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
5180 use ppl_move_dimension.
5181 * graphite-ppl.c (ppl_move_dimension): New.
5182 * graphite-ppl.h (ppl_move_dimension): Declared.
5184 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5186 * graphite.c: Do not include cloog/cloog.h.
5187 (print_graphite_bb): Remove ping pong, call PPL print function.
5189 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
5191 * Makefile.in (OBJS-common): Add graphite-ppl.o.
5192 (graphite.o): Add dependence on graphite-ppl.h.
5193 (graphite-ppl.o): New.
5194 (graphite-data-ref.c): Ping pong between PPL data structures
5196 * graphite-ppl.c: New.
5197 * graphite-ppl.h: New.
5198 * graphite.c: Include graphite-ppl.h.
5199 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
5200 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
5201 Ping pong between PPL data structures and matrices.
5202 (new_graphite_bb): Create a PPL constraint system.
5203 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
5204 (build_loop_iteration_domains): Use PPL functions.
5205 * graphite.h: Include graphite-ppl.h. Fix comments.
5206 (graphite_bb): Use a ppl_Constraint_System_t instead of
5207 CloogMatrix for representing the domain.
5208 (scop): Remove static_schedule.
5209 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
5211 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
5213 * graphite.c: Fix some comments.
5215 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
5218 * graphite.c (if_region_set_false_region): After moving a region
5219 in the false branch of a condition, remove the empty dummy
5221 (gloog): Remove wrong fix for PR38953.
5223 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
5225 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
5226 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
5227 register_bb_in_sese, new_sese, free_sese): Moved.
5228 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
5229 outermost_loop_in_scop, build_scop_iteration_domain,
5230 expand_scalar_variables_ssa_name, get_vdef_before_scop,
5231 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
5232 Use loop_in_sese_p instead of loop_in_scop_p.
5233 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
5234 (free_scop): Do not free SCOP_BBS_B.
5235 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
5236 ref_nb_loops): Moved here...
5237 * graphite.h (ref_nb_loops): ... from here.
5238 (struct scop): Remove bbs_b bitmap.
5239 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
5240 * gcc.dg/graphite/scop-19.c: New
5242 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
5244 * graphite.c (scopdet_basic_block_info): Fix bug in scop
5247 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
5249 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
5250 eq_loop_to_cloog_loop): Remove.
5251 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
5252 * graphite.h (struct scop): Remove loop2cloog_loop.
5253 (loop_domain_dim, loop_iteration_vector_dim): Remove.
5255 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
5257 * opts.c (decode_options): Only add graphite options to O2
5258 if we compile with graphite enabled.
5260 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
5262 * Merge from mainline (r143163:143684).
5264 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
5266 * graphite.c (debug_value): Removed.
5267 * graphite.h (debug_value): Removed.
5269 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5271 * passes.c (init_optimization_passes): Do not call pass_copy_prop
5272 after graphite: pass_copy_prop does not maintain a proper loop closed
5273 SSA form. pass_copy_prop should be fixed.
5275 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5277 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
5279 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5281 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
5282 (gloog): Split the exit of the scop when the scop exit is a loop exit.
5283 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
5286 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
5288 * graphite.c (gloog): Return true when code gen succeeded.
5289 (graphite_transform_loops): Do not call cleanup_tree_cfg if
5290 the code of the function did not changed. After cleanup_tree_cfg
5291 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
5294 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
5296 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
5297 gimple_call_lhs is NULL.
5299 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
5300 Tobias Grosser <tobi.grosser@amd.com>
5302 * graphite.c (graphite_trans_scop_block): Do not block single
5305 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
5306 Tobias Grosser <tobi.grosser@amd.com>
5308 * graphite.c (build_scop_canonical_schedules): Start schedules at
5311 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
5312 Tobias Grosser <tobi.grosser@amd.com>
5314 * graphite.c (compare_prefix_loops): New.
5315 (build_scop_canonical_schedules): Rewritten.
5316 (graphite_transform_loops): Move build_scop_canonical_schedules
5317 after build_scop_iteration_domain.
5319 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5320 Tobias Grosser <tobi.grosser@amd.com>
5322 * graphite.c (add_conditions_to_domain): Add the loops to
5323 the dimension of the iteration domain. Do copy the domain
5324 only when it exists.
5325 (build_scop_conditions_1): Do not call add_conditions_to_domain.
5326 (add_conditions_to_constraints): New.
5327 (can_generate_code_stmt, can_generate_code): Removed.
5328 (gloog): Do not call can_generate_code.
5329 (graphite_transform_loops): Call add_conditions_to_constraints
5330 after building the iteration domain.
5332 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5333 Tobias Grosser <tobi.grosser@amd.com>
5334 Jan Sjodin <jan.sjodin@amd.com>
5336 * graphite.c (scan_tree_for_params): On substractions negate
5337 all the coefficients of the term.
5338 (clast_to_gcc_expression_red): New. Handle reduction expressions
5339 of more than two operands.
5340 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
5341 (get_vdef_before_scop): Handle also the case of default definitions.
5343 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5346 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
5347 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
5348 (gloog): Do not call cleanup_tree_cfg.
5349 (graphite_transform_loops): Call cleanup_tree_cfg after all
5350 scops have been code generated.
5352 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
5354 * passes.c (init_optimization_passes): Schedule after
5355 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
5357 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
5359 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
5361 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
5362 Set the type of an expression to the type of its assign statement.
5363 (expand_scalar_variables_expr): Do not pass loop_p.
5364 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
5365 (copy_bb_and_scalar_dependences): Do not pass loop_p.
5366 (translate_clast): Update call to copy_bb_and_scalar_dependences.
5368 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
5370 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
5371 an expression to the gimple_expr_type of its assign statement.
5372 (expand_scalar_variables_expr): Stop recursion on tcc_constant
5375 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
5377 PR tree-optimization/38786
5378 * gcc.dg/graphite/pr38786.c: New.
5379 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
5380 the SSA_NAME case of expand_scalar_variables_expr.
5381 (expand_scalar_variables_expr): Also gather the scalar computation
5382 used to index the memory access.
5383 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
5384 the gimple_stmt_iterator where it inserts new code.
5386 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
5388 * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
5390 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
5392 * opts.c (decode_options): Enable flag_graphite_identity and
5393 flag_loop_block in -O2 and above.
5395 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
5397 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
5398 Fix merge problem: replace with the file from trunk.
5400 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
5402 * Merge from mainline (r141727:143163).
5404 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
5405 Jan Sjodin <jan.sjodin@amd.com>
5407 PR tree-optimization/38559
5408 * gcc.dg/graphite/pr38559.c: New.
5410 * graphite.c (debug_value, copy_constraint,
5411 swap_constraint_variables, scale_constraint_variable, ): New.
5412 (get_lower_bound, get_upper_bound): Removed.
5413 (graphite_trans_bb_strip_mine): Clean up this code that works
5414 only for constant number of iterations. Fully copy upper and
5415 lower bound constraints, not only the constant part of them.
5416 * graphite.h (debug_value): Declared.
5418 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
5420 PR tree-optimization/38492
5421 PR tree-optimization/38498
5422 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
5423 * tree-chrec.h (scev_is_linear_expression): Declared.
5424 * graphite.c (graphite_cannot_represent_loop_niter): New.
5425 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
5426 (graphite_loop_normal_form): Use gcc_assert.
5427 (scan_tree_for_params): Use CASE_CONVERT.
5428 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
5429 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
5430 Use gcc_assert. Discard scops that contain unhandled cases.
5431 (build_scop_conditions): Return a boolean status for unhandled cases.
5432 (strip_mine_profitable_p): Print the loop number, not its depth.
5433 (is_interchange_valid): Pass the depth of the loop nest, don't
5434 recompute it wrongly.
5435 (graphite_trans_bb_block): Same.
5436 (graphite_trans_bb_block): Print tentative of loop blocking.
5437 (graphite_trans_scop_block): Do not print that the loop has been
5439 (graphite_transform_loops): Do not handle scops that contain condition
5442 * gcc.dg/graphite/pr38500.c: Fixed warning as committed
5444 * gcc.dg/graphite/block-0.c: Update test.
5445 * gcc.dg/graphite/block-1.c: Same.
5446 * gcc.dg/graphite/block-2.c: Remove xfail and test for
5448 * gcc.dg/graphite/block-4.c: Remove test for strip mine.
5449 * gcc.dg/graphite/block-3.c: New.
5450 * gcc.dg/graphite/pr38498.c: New.
5452 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
5454 PR tree-optimization/38510
5455 * gcc.dg/graphite/pr38510.c: New.
5456 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
5457 (translate_clast): Call recompute_all_dominators before
5459 (gloog): Call recompute_all_dominators before graphite_verify.
5461 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
5463 PR tree-optimization/38492
5464 * graphite.c (rename_map_elt, debug_rename_elt,
5465 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
5466 rename_map_elt_info, eq_rename_map_elts,
5467 get_new_name_from_old_name, bb_in_sese_p): Moved around.
5468 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
5469 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
5470 (sese_build_livein_liveouts): New.
5471 (new_sese, free_sese): New.
5472 (new_scop): Call new_sese.
5473 (free_scop): Call free_sese.
5474 (rename_variables_from_edge, rename_phis_end_scop): Removed.
5475 (register_old_new_names): Renamed register_old_and_new_names.
5476 (register_scop_liveout_renames, add_loop_exit_phis,
5477 insert_loop_close_phis, struct igp,
5478 default_liveout_before_guard, add_guard_exit_phis,
5479 insert_guard_phis, copy_renames): New.
5480 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
5481 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
5482 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
5483 (scop_adjust_phis_for_liveouts): New.
5484 (gloog): Call scop_adjust_phis_for_liveouts.
5486 * graphite.h (struct sese): Documented. Added fields liveout,
5488 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
5489 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
5490 (struct scop): Added field liveout_renames.
5491 (SCOP_LIVEOUT_RENAMES): New.
5493 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5495 PR tree-optimization/38409
5496 * gcc.dg/graphite/pr38409.c: New.
5497 * graphite.c (nb_reductions_in_loop): Use simple_iv.
5499 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5501 * graphite.c (gcc_type_for_cloog_iv): By default return
5503 (graphite_create_new_loop): Don't fold_convert the already
5504 fold_convert-ed expression.
5506 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
5508 PR tree-optimization/38446
5509 * gcc.dg/graphite/pr38446.c: New.
5510 * graphite.c (register_bb_in_sese): New.
5511 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
5512 looking at the bbs in the region.
5513 * graphite.h (sese): Add region_basic_blocks pointer set to
5514 structure and initialize at the time of defining new scop.
5516 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
5518 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
5519 (find_params_in_bb): Do not free data refs.
5520 (free_graphite_bb): Add FIXME on disabled free_data_refs.
5522 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5524 * gcc.dg/graphite/scop-16.c: Test only scop specific info.
5525 * gcc.dg/graphite/scop-17.c: Same.
5526 * gcc.dg/graphite/block-5.c: New.
5527 * gcc.dg/graphite/block-6.c: New.
5528 * gcc.dg/graphite/pr37485.c: Clean dump file after.
5529 * gcc.dg/graphite/pr37684.c: Same.
5530 * gcc.dg/graphite/block-2.c: Same.
5532 * graphite.c (struct ivtype_map_elt): New.
5533 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
5534 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
5535 gcc_type_for_cloog_iv): New.
5536 (loop_iv_stack_patch_for_consts): Use the type of the induction
5537 variable from the original loop, except for the automatically
5538 generated loops, i.e., in the case of a strip-mined loop, in
5539 which case there is no original loop: in that case just use
5541 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
5542 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
5543 (clast_name_to_gcc): Accept params to be NULL.
5544 (clast_to_gcc_expression): Take an extra parameter for the type.
5545 Convert to that type all the expressions built by this function.
5546 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
5547 (graphite_translate_clast_equation): Compute the type of the
5548 clast_equation before translating its LHS and RHS.
5549 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
5550 (graphite_create_new_loop): Compute the type of the induction
5551 variable before translating the lower and upper bounds and before
5552 creating the induction variable.
5553 (rename_variables_from_edge, rename_phis_end_scop): New.
5554 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
5555 (sese_add_exit_phis_edge): Do not use integer_zero_node.
5556 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5557 compute_cloog_iv_types): New.
5558 (gloog): Call compute_cloog_iv_types before starting the
5559 translation of the clast.
5561 * graphite.h (struct graphite_bb): New field cloog_iv_types.
5562 (GBB_CLOOG_IV_TYPES): New.
5563 (debug_ivtype_map): Declared.
5564 (oldiv_for_loop): New.
5566 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
5569 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
5570 (param_index): Assert if parameter is not know after parameter
5572 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
5573 (find_scop_parameters): Mark, that we have finished parameter
5575 (graphite_transform_loops): Move condition detection before parameter
5577 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
5578 * gfortran.dg/graphite/pr38459.f90: New.
5580 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
5582 * graphite.c (graphite_transform_loops): Always call find_transform ()
5583 in ENABLE_CHECKING. So we test these code paths, even if we do not
5586 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
5588 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
5589 (print_scop): Ditto.
5591 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
5594 Fix gfortran.dg/graphite/id-3.f90.
5595 * graphite.c (scopdet_basic_block_info): Fix bug that found some
5596 regions more than once.
5598 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5600 Fix gfortran.dg/graphite/id-4.f90.
5601 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
5604 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5606 Fix gfortran.dg/graphite/id-1.f90.
5607 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
5608 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
5609 (max_precision_type): New.
5610 (value_clast): Removed.
5611 (clast_to_gcc_expression): Be more careful to types of expressions.
5612 Use max_precision_type and update use of gmp_cst_to_tree.
5613 (graphite_translate_clast_equation): Use max_precision_type.
5614 (graphite_create_guard_cond_expr): Do not use integer_type_node,
5615 use the type of the condition.
5616 (graphite_create_new_loop): Do not use integer_type_node, use the
5617 max_precision_type of lb and ub.
5619 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5621 * graphite.c (build_scops_1): Initialize open_scop.exit
5624 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
5626 * gcc.dg/graphite/pr38084.c: New.
5627 * gfortran.dg/graphite/id-1.f90: New.
5628 * gfortran.dg/graphite/id-2.f90: New.
5629 * gfortran.dg/graphite/id-3.f90: New.
5630 * gfortran.dg/graphite/id-4.f90: New.
5631 * gfortran.dg/graphite/pr37857.f90: New.
5633 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
5634 Jan Sjodin <jan.sjodin@amd.com>
5635 Harsha Jagasia <harsha.jagasia@amd.com>
5647 * gcc.dg/graphite/pr38073.c: New.
5648 * gcc.dg/graphite/pr37928.c: New.
5649 * gcc.dg/graphite/pr37883.c: New.
5650 * gcc.dg/graphite/pr38125.c: New.
5651 * gfortran.dg/graphite/pr38083.f90: New.
5652 * gfortran.dg/graphite/pr37852.f90: New.
5653 * gfortran.dg/graphite/pr37980.f90: New.
5655 * gcc.dg/graphite/scop-18.c: Remove reduction, test for
5656 the number of detected scops. Copy exact same test for loop
5658 * gcc.dg/graphite/block-1.c: Fix the number of expected
5659 loops to be blocked as reductions are not handled.
5660 * gcc.dg/graphite/block-4.c: ...here. New.
5662 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
5663 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
5665 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
5666 * Makefile.in (graphite.o): Depend on value-prof.h.
5667 (graphite.o-warn): Removed -Wno-error.
5668 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
5669 to be a NULL pointer. Call update_stmt. Return the newly created
5670 cannonical induction variable.
5672 * graphite.h (debug_rename_map): Declared. Fix some comments.
5674 * graphite.c: Reimplement the code generation from graphite to gimple.
5675 Include value-prof.h.
5676 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
5677 (get_old_iv_from_ssa_name): Removed.
5678 (graphite_stmt_p): New.
5679 (new_graphite_bb): Test for useful statements before building a
5680 graphite statement for the basic block.
5681 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
5682 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
5684 (recompute_all_dominators, graphite_verify,
5685 nb_reductions_in_loop, graphite_loop_normal_form): New.
5686 (scop_record_loop): Call graphite_loop_normal_form.
5687 (build_scop_loop_nests): Iterate over all the blocks of the
5688 function instead of relying on the incomplete information from
5689 SCOP_BBS. Return the success of the operation.
5690 (find_params_in_bb): Use the data from GBB_DATA_REFS.
5691 (add_bb_domains): Removed.
5692 (build_loop_iteration_domains): Don't call add_bb_domains.
5693 Add the iteration domain only to the basic blocks that have been
5694 translated to graphite.
5695 (build_scop_conditions_1): Add constraints only if the basic
5696 block have been translated to graphite.
5697 (build_scop_data_accesses): Completely disabled until data
5698 dependence is correctly implemented.
5699 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
5700 (remove_all_edges_1, remove_all_edges): Removed.
5701 (get_new_name_from_old_name): New.
5702 (graphite_rename_variables_in_stmt): Renamed
5703 rename_variables_in_stmt. Call get_new_name_from_old_name.
5704 Use replace_exp and update_stmt.
5705 (is_old_iv): Renamed is_iv.
5706 (expand_scalar_variables_stmt): Extra parameter for renaming map.
5707 Use replace_exp and update_stmt.
5708 (expand_scalar_variables_expr): Same. Use the map to get the
5709 new names for the renaming of induction variables and for the
5710 renaming of variables after a basic block has been copied.
5711 (expand_scalar_variables): Same.
5712 (graphite_rename_variables): Renamed rename_variables.
5713 (move_phi_nodes): Removed.
5714 (get_false_edge_from_guard_bb): New.
5715 (build_iv_mapping): Do not insert the induction variable of a
5716 loop in the renaming iv map if the basic block does not belong
5718 (register_old_new_names, graphite_copy_stmts_from_block,
5719 copy_bb_and_scalar_dependences): New.
5720 (translate_clast): Heavily reimplemented: copy basic blocks,
5721 do not move them. Finally, in call cleanup_tree_cfg in gloog.
5722 At each translation step call graphite_verify ensuring the
5723 consistency of the SSA, loops and dominators information.
5724 (collect_virtual_phis, find_vdef_for_var_in_bb,
5725 find_vdef_for_var_1, find_vdef_for_var,
5726 patch_phis_for_virtual_defs): Removed huge hack.
5727 (mark_old_loops, remove_dead_loops, skip_phi_defs,
5728 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
5729 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
5730 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
5731 if_region_get_condition_block, if_region_set_false_region,
5732 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
5733 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
5734 sese_add_exit_phis_edge, sese_add_exit_phis_var,
5735 rewrite_into_sese_closed_ssa): New.
5736 (gloog): Remove dead code. Early return if code cannot be
5737 generated. Call cleanup_tree_cfg once the scop has been code
5739 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
5740 block loops with less than two loops.
5741 (graphite_apply_transformations): Remove the call to
5742 scop_remove_ignoreable_gbbs.
5743 (limit_scops): When build_scop_loop_nests fails, continue on
5744 the next scop. Fix open_scop.entry.
5745 (graphite_transform_loops): Call recompute_all_dominators: force the
5746 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
5747 Call initialize_original_copy_tables and free_original_copy_tables
5748 to be able to copy basic blocks during code generation.
5749 When build_scop_loop_nests fails, continue on next scop.
5750 (value_clast): New union.
5751 (clast_to_gcc_expression): Fix type cast warning.
5753 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
5755 * Merge from mainline (r140838:141727).
5757 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
5761 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
5763 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
5767 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
5768 exits and conditions.
5769 * gcc.dg/graphite/pr37943.c: New.
5771 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
5774 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
5776 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
5778 * doc/invoke.texi: Fix spaces.
5780 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
5782 PR tree-optimization/37891
5783 Reverted last commit.
5784 * graphite.c (create_single_entry_edge): Set
5785 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
5787 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
5788 Mitul Thakkar <mitul.thakkar@amd.com>
5790 * graphite.c (create_single_entry_edge): Set
5791 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
5793 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
5795 * doc/invoke.texi: Add -fgraphite-identity.
5796 * graphite.c (graphite_apply_transformations): Check for
5797 -fgraphite-identity.
5798 * toplev.c (process_options): Add flag_graphite_identity.
5799 * tree-ssa-loop.c: Add flag_graphite_identity.
5801 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
5803 Undo changes from 2008-10-02:
5804 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
5805 operand type when copying the operand to a variable of different type.
5806 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
5807 with the IV name after increment.
5809 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
5810 Harsha Jagasia <harsha.jagasia@amd.com>
5812 PR tree-optimization/37828
5813 * gcc.dg/graphite/pr37828.c: New.
5814 * graphite.c (graphite_trans_loop_block): Do not loop block
5815 single nested loops.
5817 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
5818 Sebastian Pop <sebastian.pop@amd.com>
5820 * graphite.c (struct rename_map_elt, new_rename_map_elt,
5821 rename_map_elt_info, eq_rename_map_elts): New.
5822 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
5823 (expand_scalar_variables_expr): Change parameters.
5824 (expand_scalar_variables_stmt): Same.
5825 (expand_scalar_variables): Same.
5826 (graphite_rename_ivs): Rename graphite_rename_variables.
5827 (build_iv_mapping): New.
5828 (translate_clast): Call build_iv_mapping.
5829 * graphite.h (gbb_p): New name.
5831 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
5833 PR tree-optimization/37684
5834 * gcc.dg/graphite/pr37684.c: New.
5835 * graphite.c (exclude_component_ref): New.
5836 (is_simple_operand): Call exclude_component_ref.
5838 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
5839 Harsha Jagasia <harsha.jagasia@amd.com>
5841 PR tree-optimization/37485
5842 * gcc.dg/graphite/block-2.c: New
5843 * graphite.c (gmp_cst_to_tree): Moved.
5844 (iv_stack_entry_is_constant): New.
5845 (iv_stack_entry_is_iv): New.
5846 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
5847 (loop_iv_stack_insert_constant): New.
5848 (loop_iv_stack_pop): Use new datatpype.
5849 (loop_iv_stack_get_iv): Same.
5850 (loop_iv_stack_get_iv_from_name): Same.
5851 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
5852 (loop_iv_stack_patch_for_consts): New.
5853 (loop_iv_stack_remove_constants): New.
5854 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
5855 (translate_clast): Call loop_iv_stack_patch_for_consts and
5856 loop_iv_stack_remove_constants.
5857 (gloog): Use new datatype. Redirect construction edge to end
5858 block to avoid accidental deletion.
5859 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
5861 (union iv_stack_entry_data): New. Data in iv stack entry.
5862 (struct iv_stack_entry): New. Datatype for iv stack entries.
5864 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
5866 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
5867 operand type when copying the operand to a variable of different type.
5869 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
5871 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
5872 with the IV name after increment.
5874 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
5876 * Merge from mainline (r140164:140838).
5878 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5880 * graphite-data-ref.c: New.
5881 * graphite.c (print_scop): Also dump the dependence graph.
5882 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
5883 (new_scop): Initialize SCOP_DEP_GRAPH.
5884 (build_scop_dynamic_schedules): New.
5885 (build_access_matrix_with_af): Fixed column numbering.
5886 (graphite_transform_loops): Call build_scop_dynamic_schedules.
5887 * graphite.h: Add ifndef/define guards against multiple inclusion.
5888 (struct scop): Add dep_graph field.
5889 (SCOP_DEP_GRAPH): Defined.
5890 (ref_nb_loops): Fixed and moved to other position.
5891 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
5892 (nb_loops_around_loop_in_scop): New.
5893 (graphite_dump_dependence_graph): Declared.
5894 (graphite_build_rdg_all_levels): Declared.
5895 (graphite_test_dependence): Declared.
5896 * Makefile.in (graphite-data-ref.o): New target.
5898 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
5900 * Merge from mainline (139870:140164).
5902 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
5904 * Merge from mainline (138275:139870).
5905 * gcc.dg/graphite/scop-matmult.c: XFailed as one of
5906 the commits from trunk broke the niter detection.
5908 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
5910 * graphite.c: Add more documentation. Fix formatting.
5911 (debug_loop_vec, debug_oldivs, loop_iv_stack,
5912 loop_iv_stack_debug): Moved...
5913 (schedule_to_scattering): Move before use.
5914 (dot_all_scops): Include in "#if 0" the code for system
5917 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
5918 loop_iv_stack_debug): ...here.
5920 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
5922 * tree-phinodes.c (make_phi_node): Extern.
5923 (add_phi_node_to_bb): New.
5924 (create_phi_node): Call add_phi_node_to_bb.
5925 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
5926 (remove_statement): Handle case where stored phi was updated
5927 and is no longer the same.
5928 * graphite.c (is_parameter): New.
5930 (expand_scalar_variables_expr): New.
5931 (expand_scalar_variables_stmt): New.
5932 (expand_scalar_variables): New.
5933 (move_phi_nodes): Create new phi instead of moving old one.
5934 (translate_clast): Call expand_scalar_variables.
5935 (find_vdef_for_var_in_bb): Also scan regular definitions.
5936 (skip_phi_defs): New.
5937 (collect_scop_exit_phi_args): New.
5938 (patch_scop_exit_phi_args): New.
5939 (gloog): Patch phis after scop.
5940 * tree-flow.h: (add_phi_node_to_bb): Declared.
5941 (make_phi_node): Declared.
5943 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
5945 * graphite.c (end_scop): Split the entry of the scop when it
5946 is the header of the loop in which the scop is ending.
5947 (build_scops_1, limit_scops): Update uses of end_scop.
5949 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
5951 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
5952 SCOP_ENTRY or SCOP_EXIT.
5954 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5956 * graphite.c (get_construction_edge): Removed.
5957 (gloog): Construction edge is the scop entry edge.
5959 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5961 * graphite.c (can_generate_for_scop): Removed.
5962 (gloog): Do not call it.
5964 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5966 * graphite.c (new_scop): Entry of a scop is an edge.
5967 Initialize SESE region.
5968 (free_scop): Free SESE region.
5969 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
5970 (split_difficult_bb): New, split from end_scop.
5971 (end_scop): Exit of a scop is an edge.
5972 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
5973 not automatically updated and thus is always wrong.
5974 * graphite.h (struct sese): New.
5977 (struct scop): New field for a SESE region. Remove entry, exit.
5978 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
5979 semantics as before. Moved comment around.
5981 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
5982 Sebastian Pop <sebastian.pop@amd.com>
5984 * graphite.c (graphite_transform_loops): Always enable gloog
5985 and find_transform when ENABLE_CHECKING.
5987 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5989 * graphite.c (graphite_transform_loops): Move pretty printer
5990 of SCOPs before doing any transform. Remove call to print_scops
5991 and dot_all_scops_1.
5993 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5995 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
5996 (print_graphite_bb): Same.
5998 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6000 * graphite.c (dot_all_scops_1): Cleanup.
6001 (move_scops): Fix comment.
6003 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6005 * graphite.c (build_scop_bbs): Revert commit 139355:
6007 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6008 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6010 * graphite.c (build_scop_bbs): Factor up code.
6012 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6014 * graphite.c (gloog): Update dominator info.
6016 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6018 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
6020 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6022 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
6024 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
6025 (translate_clast): Correct formatting.
6026 * graphite.h (struct num_map): Removed.
6027 (struct graphite_bb): Remove num_map field.
6028 (GBB_INDEX_TO_NUM_MAP): Removed.
6030 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6032 * graphite.c (build_access_matrix_with_af): Fix comments.
6033 (build_scop_data_accesses): Same.
6035 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6037 * graphite.c (build_scop_data_accesses): Don't construct
6038 access matrices. Add a FIXME and an assert condition that
6039 should pass when the access matrices will be needed.
6041 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6043 * tree-data-ref.c (stmt_simple_memref_p): Don't call
6045 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
6046 Moved close by free_graphite_bb.
6047 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
6048 (new_scop): Move close by free_scop.
6049 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
6051 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
6053 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
6054 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
6055 instead of recursive call.
6056 (graphite_translate_clast_equation): New.
6057 (graphite_create_guard_cond_expr): New.
6058 (graphite_create_new_guard): New.
6059 (get_stack_index_from_iv): Removed.
6060 (graphite_rename_ivs_stmt): Use gbb_loop_index.
6061 (get_true_edge_from_guard_bb): New.
6062 (translate_clast): Handle stmt_guard in clast.
6063 (get_construction_edge): Allow construction edge detection for
6064 a scope entry with multiple predecessors if one predecessor is
6065 the immediate dominator of scope entry.
6066 (can_generate_code_stmt): Enable code generation for clast_guard.
6067 (gloog): Use correct context loop. Removed check for post dominators.
6068 * cfgloop.h (create_empty_if_region_on_edge): Declared.
6070 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6072 * graphite.c (remove_dead_loops): Document better which
6075 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6077 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
6079 (graphite.o): Also depends on pointer-set.h.
6081 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6083 * graphite.c (scop_record_loop): Fix compile warning.
6085 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
6086 Sebastian Pop <sebastian.pop@amd.com>
6088 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
6090 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6092 * graphite.c (build_graphite_bb): Initialize bb->aux to
6093 point to the graphite_bb_p.
6094 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
6096 (add_bb_domains): Does not use the scop parameter.
6097 (graphite_transform_loops): Clean bb->aux at the end.
6099 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6100 Sebastian Pop <sebastian.pop@amd.com>
6102 * lib/target-supports.exp
6103 (check_effective_target_fgraphite): New.
6105 * gcc.dg/graphite/graphite.exp: Early exit when
6106 check_effective_target_fgraphite returns false.
6107 Set dg-do-what-default to compile.
6108 (scan-graphite-dump-times): Removed.
6109 * gfortran.dg/graphite/graphite.exp: Same.
6111 * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
6112 Use scan-tree-dump-times instead of scan-graphite-dump-times.
6113 * gcc.dg/graphite/scop-1.c: Same.
6114 * gcc.dg/graphite/scop-2.c: Same.
6115 * gcc.dg/graphite/scop-3.c: Same.
6116 * gcc.dg/graphite/scop-4.c: Same.
6117 * gcc.dg/graphite/scop-5.c: Same.
6118 * gcc.dg/graphite/scop-6.c: Same.
6119 * gcc.dg/graphite/scop-7.c: Same.
6120 * gcc.dg/graphite/scop-8.c: Same.
6121 * gcc.dg/graphite/scop-9.c: Same.
6122 * gcc.dg/graphite/scop-10.c: Same.
6123 * gcc.dg/graphite/scop-11.c: Same.
6124 * gcc.dg/graphite/scop-12.c: Same.
6125 * gcc.dg/graphite/scop-13.c: Same.
6126 * gcc.dg/graphite/scop-matmult.c: Same.
6127 * gcc.dg/graphite/scop-14.c: Same.
6128 * gcc.dg/graphite/scop-15.c: Same.
6129 * gcc.dg/graphite/block-0.c: Same.
6130 * gcc.dg/graphite/scop-16.c: Same.
6131 * gcc.dg/graphite/block-1.c: Same.
6132 * gcc.dg/graphite/scop-17.c: Same.
6133 * gcc.dg/graphite/scop-18.c: Same.
6134 * gfortran.dg/graphite/block-1.f90: Same.
6135 * gfortran.dg/graphite/scop-1.f: Same.
6136 * gfortran.dg/graphite/block-2.f: Same.
6138 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6140 * graphite.c: Fix some XXX comments.
6141 (build_scop_dynamic_schedules): Removed.
6143 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6145 * graphite.h (scop_max_loop_depth): Moved...
6146 * graphite.c (scop_max_loop_depth): ...here.
6147 (remove_all_edges_1): New.
6148 (remove_all_edges): Factored code.
6149 (remove_cond_exprs): Check only the last statement for
6150 a GIMPLE_COND expression.
6152 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6154 * graphite.c (scan_tree_for_params): Early return when the
6155 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
6156 (find_scop_parameters): Factor out code.
6157 (graphite_trans_bb_strip_mine): Remove dead code.
6159 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6161 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
6162 graphite_trans_bb_move_loop): Factor asserts.
6163 (gloog): Perform sanity checks only for ENABLE_CHECKING.
6164 Do not call calculate_dominance_info and estimate_bb_frequencies.
6166 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
6168 * graphite.c (create_loops_mapping, free_loops_mapping,
6169 create_loops_mapping_num, debug_loop_mapping_1,
6170 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
6171 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
6172 graphite_loops_mapping_add_child_num,
6173 graphite_loops_mapping_insert_child,
6174 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
6175 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
6176 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
6177 create_num_from_index, get_num_from_index,
6178 swap_loop_mapped_depth): Removed.
6179 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
6180 (free_scop): Do not call free_loops_mapping.
6181 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
6182 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
6183 get_loop_mapped_depth.
6184 (graphite_trans_bb_move_loop): Do not update the loop mapping.
6185 (graphite_trans_bb_strip_mine): Same.
6186 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
6187 (struct scop): Remove field loops_mapping.
6189 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6190 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6192 * graphite.c (scop_record_loop): Factor out one level of the
6193 condition by early return.
6194 (build_scop_loop_nests): Format following FSF coding style.
6195 (build_scop_dynamic_schedules): Factor out code.
6196 (scopdet_bb_info): Reindent. Default case should not be reachable.
6198 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6199 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6201 * graphite.c (loop_affine_expr): Check for DECL_P or struct
6202 assignments that are not handled as simple operands for now.
6204 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6205 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6207 * graphite.c (build_scop_bbs): Factor up code.
6209 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6210 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6212 * graphite.c (stmt_simple_for_scop_p): Factor code out
6214 (enum gbb_type): New. Group all the GBB_* types under it.
6215 (is_loop_exit): Moved...
6216 (end_scop): Enable BB spliting.
6217 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
6218 * cfgloop.h (is_loop_exit): Declared.
6220 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6222 * doc/invoke.texi: Remove strides from examples containing
6223 DO loops when the strides are equal to 1.
6225 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
6226 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6228 * graphite.c (graphite_trans_scop_block): Or the result with
6229 the result from graphite_trans_loop_block.
6230 * gcc.dg/graphite/block-1.c: New.
6231 * gfortran.dg/graphite/block-1.f90: New.
6232 * gfortran.dg/graphite/block-2.f: New.
6234 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6236 * graphite.c (graphite_transform_loops): Call cloog_initialize
6239 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6241 * tree-data-ref.c) (stmt_simple_memref_p): New.
6242 * tree-data-ref.h (stmt_simple_memref_p): Declared.
6243 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
6244 (is_simple_operand): Call stmt_simple_memref_p.
6246 * gcc.dg/graphite/scop-matmult.c: Updated for not
6247 using pointer arithmetic, as this is optimized by PRE and
6248 makes the code too difficult to analyze.
6250 * gcc.dg/graphite/scop-18.c: Same.
6252 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6254 * gdbinit.in (pgg): New.
6256 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6258 * graphite.c (graphite_trans_loop_block): Fix warning.
6260 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6262 * graphite.c (graphite_trans_loop_block): Fix my merge error.
6264 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6266 * graphite.c (graphite_trans_bb_block): Remove check for
6267 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
6268 Check if loop blocking is profitable for every loop, before applying
6270 (graphite_apply_transformations): Call graphite_trans_bb_block only,
6271 if flag_loop_block is set.
6273 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6275 * graphite.c: Add some more documentation for the loop
6278 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6280 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
6281 * graphite.c: Format on less than 80 columns.
6284 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6286 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
6288 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6290 * doc/invoke.texi (floop-block, floop-strip-mine,
6291 floop-interchange): Update documentation with examples.
6293 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
6295 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
6297 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
6299 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
6301 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
6302 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
6303 * tree-scalar-evolution.c: Revert useless changes.
6304 * tree-phinodes.c: Same.
6307 * tree-vectorizer.h: Same.
6308 * tree-flow.h: Same.
6310 * common.opt (fgraphite): Update documentation.
6312 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
6314 * doc/invoke.texi (-floop-block, -floop-strip-mine,
6315 -floop-interchange): Add more text for explaining what each of these
6317 * tree-into-ssa.c (gimple_vec): Moved to...
6318 * graphite.c: Include gimple.h.
6319 (gimple_vec): Moved to...
6320 (del_loop_to_cloog_loop): Removed.
6321 (loop_affine_expr): Do not call create_data_ref when the
6322 operand is a constant.
6323 (new_scop): Use free instead of del_loop_to_cloog_loop.
6324 * Makefile.in (graphite.o): Depend on GIMPLE_H.
6325 * gimple.h (gimple_vec): ... here.
6327 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6329 * graphite.c (scopdet_bb_info): Only allow loops with known number of
6331 (build_loop_iteration_domains): Fail, if latch executions unknown.
6333 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6335 * graphite.c (add_conditions_to_domain): New.
6336 (build_scop_conditions_1): Call add_conditions_to_domain.
6337 (set_cloog_options): Allow to disable optimizations.
6339 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6341 * graphite.c (find_params_in_bb): Look for parameters in conditions.
6342 Do not use walk_dominator_tree.
6343 (find_scop_parameters): Do not use walk_dominator_tree.
6345 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6347 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
6348 (idx_record_params): Adapt.
6349 * graphite.h (scop_gimple_loop_depth): New.
6351 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6353 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
6354 (scan_tree_for_params): Remove value_init.
6355 (build_scop_context): Remove value_init.
6356 (build_loop_iteration_domains): Remove value_init.
6357 (schedule_to_scattering): Remove value_init.
6358 (graphite_trans_bb_strip_mine): Remove value_init.
6360 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6362 * gcc/graphite.c (limit_scops): New.
6363 (graphite_transform_loops): Add limit SCoPs.
6364 * gcc.dg/graphite/scop-0.c: Update number of SCoPs.
6365 * gcc.dg/graphite/scop-1.c: Update number of SCoPs.
6366 * gcc.dg/graphite/scop-10.c: Update number of SCoPs.
6367 * gcc.dg/graphite/scop-11.c: Update number of SCoPs.
6368 * gcc.dg/graphite/scop-12.c: Update number of SCoPs.
6369 * gcc.dg/graphite/scop-13.c: Update number of SCoPs.
6370 * gcc.dg/graphite/scop-14.c: Update number of SCoPs.
6371 * gcc.dg/graphite/scop-15.c: Update number of SCoPs.
6372 * gcc.dg/graphite/scop-16.c: Update number of SCoPs.
6373 Change loop numbers.
6374 * gcc.dg/graphite/scop-17.c: Update number of SCoPs.
6375 Change loop numbers.
6376 * gcc.dg/graphite/scop-18.c: Update number of SCoPs.
6377 * gcc.dg/graphite/scop-2.c: Update number of SCoPs.
6378 * gcc.dg/graphite/scop-3.c: Update number of SCoPs.
6379 * gcc.dg/graphite/scop-4.c: Update number of SCoPs.
6380 * gcc.dg/graphite/scop-5.c: Update number of SCoPs.
6381 * gcc.dg/graphite/scop-6.c: Update number of SCoPs.
6382 * gcc.dg/graphite/scop-7.c: Update number of SCoPs.
6383 * gcc.dg/graphite/scop-8.c: Update number of SCoPs.
6384 * gcc.dg/graphite/scop-9.c: Update number of SCoPs.
6385 * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
6387 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6389 * graphite.c (graphite_transform_loops): Call always find_transform.
6391 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
6393 * graphite.c (free_loops_mapping): New.
6394 (stmt_simple_for_scop_p): Fix typo.
6395 (stmt_simple_for_scop_p): Fix tuples functions, that
6397 (free_graphite_bb): Fix some memleaks.
6398 (free_scop): Fix some memleaks.
6399 (scopdet_bb_info): Do not forget some tmp SCoPs.
6400 (find_params_in_bb): Fix some memleaks.
6401 (clast_to_gcc_expression): Fix warning.
6403 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
6405 * gcc.dg/graphite/scop-16.c: Fix for 32bit.
6406 * gcc.dg/graphite/scop-17.c: Fix for 32bit.
6408 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
6410 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
6411 Move code ifdef-ed HAVE_cloog...
6412 * graphite.c: Include toplev.h.
6414 * Makefile.in (OBJS-common): Always build graphite.o.
6415 (BACKEND): Remove @GRAPHITE@.
6416 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
6417 (graphite.o): Depend on TOPLEV_H.
6419 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
6421 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
6422 Remove typo left from polylib to ppl conversion.
6423 * graphite.c (graphite_transforms): Use sorry instead of fatal.
6425 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
6427 * toplev.c (process_options): Move the graphite loop optimization
6429 * tree-ssa-loop.c (graphite_transforms): ... here.
6430 When not configured with CLooG, print to dump_file that
6431 Graphite transforms were not performed.
6432 * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
6434 * gcc.dg/graphite/*.c: Updated all testcases to use
6435 scan-graphite-dump-times.
6437 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
6439 * graphite.c (dot_scop, dot_all_scops): Do not call system.
6440 Do not open /tmp/scop.dot and /tmp/allscops.dot.
6442 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
6443 Jan Sjodin <jan.sjodin@amd.com>
6445 * configure: Regenerated.
6446 * omp-low.c (expand_omp_sections): Remove now unused code.
6447 * config.in (HAVE_polylib): Removed.
6448 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
6449 (PPLLIBS, PPLINC): Added.
6450 * graphite.c: Replace unsigned with int wherever possible.
6451 Don't access Cloog's data structures, but use accessor functions.
6452 Clast's stmt->type is now implemented as a vtable: change the
6453 switches of stmt->type into ifs.
6454 (polylib/polylibgmp.h): Don't include.
6455 (initialize_dependence_polyhedron,
6456 initialize_data_dependence_polyhedron, is_empty_polyhedron,
6457 statement_precedes_p, test_dependence, build_rdg_all_levels,
6458 dump_dependence_graph): Removed until this code is cleaned up
6460 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
6461 (POLYLIBINC): Renamed PPLINC.
6463 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
6464 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6465 Jan Sjodin <jan.sjodin@amd.com>
6467 Finish the merge and tuplification of graphite.
6469 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
6470 Jan Sjodin <jan.sjodin@amd.com>
6472 Partial merge from mainline (138072:138275).
6473 * graphite.c still has to be tuplified.
6475 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
6477 * graphite.c (graphite_loops_mapping_max_loop_num): New.
6478 (create_num_from_index): New.
6479 (get_num_from_index): Also pass in the graphite BB.
6480 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
6481 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
6482 (graphite_trans_bb_strip_mine): Call create_num_from_index.
6483 (is_interchange_valid): Return false when failing.
6484 * graphite.h (struct num_map): New.
6485 (struct graphite_bb): New field num_map.
6486 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
6488 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
6490 * graphite.c (dump_gbb_conditions): Print also conditions like
6491 "if (a)". Remove dublicated code and use print_generic_expr ().
6492 (stmt_simple_for_scop_p): Only allow conditions we can handle
6495 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
6497 * graphite.h (struct scop): Removed new_ivs field.
6498 (SCOP_NEWIVS): Deleted.
6499 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
6500 clast_to_gcc_expression, graphite_create_new_loop):
6501 Removed use of new_ivs.
6503 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
6505 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
6506 create_loops_mapping_num, debug_loop_mapping_1): New.
6507 (debug_loop_mapping): Call debug_loop_mapping_1.
6508 (get_loop_mapping_for_num,
6509 graphite_loops_mapping_add_child,
6510 graphite_loops_mapping_add_child_num,
6511 graphite_loops_mapping_insert_child,
6512 graphite_loops_mapping_parent,
6513 split_loop_mapped_depth_for_num,
6514 loop_mapped_depth_split_loop): New.
6515 (increment_loop_mapped_depths): Removed.
6516 (swap_loop_mapped_depth_for_num): Reimplemented.
6517 (new_scop): Call create_loops_mapping.
6518 (scop_record_loop): Call graphite_loops_mapping_insert_child.
6519 (translate_clast): Pass the old loop father in parameter, and pass
6520 it to get_old_iv_from_ssa_name.
6521 (remove_edges_around_useless_blocks, can_generate_code_stmt,
6522 can_generate_code, can_generate_for_scop): New.
6523 (graphite_trans_bb_block): Returns false when it fails to transform.
6524 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
6526 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6528 Reverted all the changes related to the streamization and
6530 These changes are now tracked in the streamization branch.
6532 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6533 Jan Sjodin <jan.sjodin@amd.com>
6535 * graphite.c (gbb_compare): Correctly constify.
6536 (gbb_can_be_ignored): Indent.
6537 (graphite_trans_scop_swap_1and2): Add legality check.
6540 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6542 Remove fallouts from "Reverted the Condate changes".
6543 * tree.h: Remove unused decl.
6544 * gcc.dg/tree-checker: Same.
6545 * timevar.def: Remove counter.
6547 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
6549 * Merge from mainline (135673:138072).
6551 Reverted the MIRO changes (from 2008-04-05) that are now
6552 tracked in the miro branch.
6553 * tree-bounds.c: Removed.
6554 * tree-bounds.h: Removed.
6556 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
6557 are now tracked in the condate branch.
6558 * tree-check.c: Removed.
6559 * tree-match.c: Removed.
6560 * condate.y: Removed.
6562 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6564 * common.opt: New user flag -floop-block, -floop-strip-mine
6565 and -floop-interchange.
6566 * toplev.c (process_options): Enable -fgraphite pass if any one of the
6567 graphite loop optimization flags is turned on.
6568 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
6569 flag_loop_strip_mine and flag_loop_interchange checks before
6571 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
6572 -floop-strip-mine and -floop-interchange.
6573 * gcc.dg/graphite/block-0.c: Add -floop-block and remove
6575 * gcc.dg/graphite/scop-16.c: Ditto.
6576 * gcc.dg/graphite/scop-17.c: Ditto.
6577 * gcc.dg/graphite/scop-18.c: Ditto.
6579 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
6580 Sebastian Pop <sebastian.pop@amd.com>
6582 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
6583 (create_empty_loop_on_edge): More fixes.
6584 * tree-phinodes.c (resize_phi_node): Extern.
6585 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
6586 * cfghooks.c (update_dominator_information): New split from
6588 * tree-vectorizer.c (rename_variables_in_bb): Extern.
6589 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
6590 successor of the function entry block.
6592 * graphite.c: Include pointer-set.h.
6593 (debug_loop_mapping, increment_loop_mapped_depths,
6594 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
6595 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
6596 swap_loop_mapped_depth_for_num, get_num_from_index,
6597 swap_loop_mapped_depth, loop_iv_stack_debug,
6598 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
6599 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
6600 get_old_iv_from_ssa_name): New.
6601 (new_scop): Initialize SCOP_LOOPS_MAPPING.
6602 (free_scop): Free SCOP_LOOPS_MAPPING.
6603 (scop_record_loop): Record old ivs.
6604 (create_var_name): Removed.
6605 (initialize_cloog_names): Allocate double space in case strip mine
6606 applies to all loops once.
6607 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
6608 (clast_to_gcc_expression): Same. Implement more clast to gimple
6610 (graphite_create_new_loop): Pass in ivstack.
6611 (remove_all_edges): Pass in the construction_edge.
6612 (graphite_remove_iv): Removed.
6613 (graphite_rename_ivs, graphite_rename_ivs_stmt,
6614 remove_cond_exprs): Rewritten.
6615 (move_phi_nodes): New.
6616 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
6617 (translate_clast): Pass in ivstack. Rewrite some cases.
6618 (set_cloog_options, debug_clast_stmt): New.
6619 (find_transform): Use set_cloog_options.
6620 (outermost_loop_layer): Removed.
6621 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
6622 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
6623 mark_old_loops, remove_dead_loops): New.
6625 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
6626 (const_column_index, get_first_matching_sign_row_index,
6627 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
6628 get_upper_bound): New.
6629 (graphite_trans_bb_strip_mine): Also update the iv map.
6631 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
6632 (struct name_tree): Add a loop field.
6633 (struct scop): Add a graphite_loops_mapping field.
6634 (SCOP_LOOPS_MAPPING): New.
6635 (debug_clast_stmt): Declare.
6636 * lambda.h (find_induction_var_from_exit_cond): Declare.
6637 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
6638 * cfgloop.h (update_dominators_in_loop): Removed declaration.
6639 (create_empty_loop_on_edge): Updated.
6640 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
6641 rename_variables_in_bb): Declare.
6642 * tree-cfg.c (remove_bb): Extern.
6644 * gcc.dg/graphite/block-0.c: New.
6646 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6647 Sebastian Pop <sebastian.pop@amd.com>
6649 * graphite.c (strip_mine_profitable_p): New.
6650 (graphite_trans_bb_block): Disable strip mining if not profitable.
6652 * gcc.dg/graphite/scop-18.c: New.
6653 * gcc.dg/graphite/scop-17.c: Fixed.
6654 * gcc.dg/graphite/scop-16.c: Fixed.
6656 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
6657 Jan Sjodin <jan.sjodin@amd.com>
6658 Sebastian Pop <sebastian.pop@amd.com>
6660 * graphite.c (is_interchange_valid): New.
6661 (graphite_trans_bb_block): Check loop nest of basic block for legality
6664 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
6665 outer_most_loop, gbb_outer_most_loop_index): New.
6667 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
6668 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
6669 * gcc.dg/graphite/scop-16.c: New.
6670 * gcc.dg/graphite/scop-17.c: New.
6672 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
6674 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
6675 (graphite_trans_scop_block): Ignore SCoPs without bbs.
6677 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
6679 * graphite.c (new_scop): Initialize SCOP_EXIT.
6680 (scopdet_info): Add.
6681 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
6682 (build_scops_1): Cleanup, bugfixes.
6683 (build_scops): Cleanup.
6685 * gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
6686 * gcc.dg/graphite/scop-15.c: Add SCoP numbers.
6688 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
6690 * gfortran.dg/graphite/scop-1.f: Update to reduced test case.
6692 * gfortran.dg/graphite/graphite.exp: Use
6693 DEFAULT_GRAPHITE_FLAGS.
6695 * gcc.dg/graphite/scop-15.c: Update to reduced test case.
6697 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
6699 * graphite.c (scan_tree_for_params): Do not assert any more if
6700 MULT_EXPR parameter is negative.
6702 * gfortran.dg/graphite/scop-1.f: New.
6704 * gfortran.dg/graphite/graphite.exp: New.
6706 * gcc.dg/graphite/scop-15.c: New.
6708 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
6710 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
6712 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
6714 * graphite.c (graphite_trans_bb_swap_loops): Rename from
6715 graphite_swap_loops.
6716 (graphite_trans_bb_move_loop): New.
6717 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
6718 (graphite_trans_bb_block): New.
6719 (graphite_trans_loop_block): New.
6720 (graphite_trans_scop_swap_1and2): Rename from
6721 graphite_trans_swap_1and2.
6722 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
6723 (graphite_trans_scop_block): New.
6724 (graphite_apply_transformations): Rename from
6725 graphite_transformations.
6727 * gcc.dg/graphite/scop-matmult.c: New.
6729 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
6731 * graphite.c (gbb_compare): New.
6732 (graphite_sort_gbbs): New.
6733 (gbb_can_be_ignored): New.
6734 (scop_remove_ignoreable_gbbs): New.
6735 (graphite_transformations): Cleanup and add
6736 scop_remove_ignoreable_gbbs.
6737 * lambda.h (lambda_vector_compare): New.
6739 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
6741 * graphite.c (print_graphite_bb): Correct printing of static schedule.
6742 (graphite_swap_loops): int -> unsigned
6743 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
6744 (graphite_transformations): New.
6745 (graphite_transform_loops): Move to graphite_transformations.
6746 * graphite.h (gbb_nb_loops): Return unsigned.
6748 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
6750 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
6751 the domain matrix. This makes scop-0.c work again.
6753 2008-06-20 Richard Guenther <rguenther@suse.de>
6755 * graphite.h: Adjust copyright to GPLv3.
6756 * graphite.c: Likewise.
6757 (stmt_simple_memref_for_scop_p): Split out from ...
6758 (stmt_simple_for_scop_p): ... here. Fix handling of calls
6760 (get_bb_type): Optimize.
6762 (is_bb_addable): Fix memleak, replace is_pred call with
6764 (build_scops): Use current_loops.
6765 (param_index): Fix memleak.
6767 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6769 * graphite.c: Fix formatting.
6771 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6773 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
6774 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
6775 (create_var_name, save_var_name): Newly defined functions.
6776 (initialize_cloog_names): Part of the code factored out to
6778 (clast_to_gcc_expression): Now handles the case of clast_red_sum
6779 in clast_reduction statement.
6780 (graphite_create_new_loop): Now takes a new parameter
6782 (translate_clast): Now also takes the context_loop and bb_exit
6783 parameters. Rewritten the code so that it creates a gimple code
6784 inside the given context.
6785 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
6786 remove_cond_expr, disconnect_cond_expr,
6787 disconnect_virtual_phi_nodes): Newly defined functions.
6788 * graphite.h (struct scop): added old_ivs vector.
6789 SCOP_OLDIVS: New macro.
6791 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
6793 * cfgloopmanip.c: Add missing function comments, fix formatting.
6795 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6797 * cfgloopmanip.c (update_dominators_in_loop): Defined.
6798 (create_empty_loop_on_edge): Defined.
6799 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
6801 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
6802 (update_dominators_in_loop): Declared as extern
6803 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
6805 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
6807 * graphite.c (print_graphite_bb): Allow changing number of loops
6809 (initialize_cloog_names): Allow changing number of loops.
6810 (build_cloog_prog): Simplify.
6811 (find_transform): Enable cloog option --strides.
6812 (graphite_swap_loops): New.
6813 (graphite_strip_mine_loop): New.
6814 (graphite_trans_swap_1and2): New.
6815 (graphite_trans_strip): New.
6816 (graphite_transform_loops): Add graphite_trans_strip.
6817 * graphite.h (scop_max_loop_depth): New.
6819 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
6821 * graphite.c (build_scop_iteration_domain): Remove forgotten
6822 line. (Fixes compile)
6824 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
6826 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
6827 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
6828 (build_bb_loops): New.
6829 (graphite_transform_loops): Add build_bb_loops.
6830 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
6832 * graphite.h (graphite_bb): Add loops.
6833 (gbb_nb_loops): New.
6834 (gbb_loop_at_index): New.
6835 (gbb_loop_index): New.
6836 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
6837 using nb_params_in_scop.
6839 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
6841 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
6842 (build_scop_canonical_schedules): Build minimized schedule.
6843 (schedule_to_scattering): Adapt to minimized schedule.
6844 * graphite.h (graphite_bb): Add/Update descriptions.
6846 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
6847 Tobias Grosser <grosser@fim.uni-passau.de>
6849 * graphite.c (print_graphite_bb): Add condition printing.
6851 (dump_gbb_conditions): New.
6852 (build_scop_conditions_1): New.
6853 (build_scop_conditions): New.
6854 * graphite.h (graphite_bb): Add conditions.
6856 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
6858 * graphite.c (print_graphite_bb):
6859 (free_graphite_bb): New.
6860 (free_scop): Free bbs.
6861 (get_bb_type): Free doms.
6862 (build_scop_context): Free context matrix.
6863 (build_loop_iteration_domains): Remove unused code.
6864 (build_cloog_prog): Free scattering function and blocklist.
6865 (find_transform): Free options.
6867 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
6869 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
6870 Remove unnecessery cloog data structures. Make a copy of the domain
6871 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
6872 unnecessary cloog data structures. Fix memory leaks. Remove insert
6873 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
6875 (build_scop_iteration_domain): Remove unnecessary cloog
6876 data structures. Fix memory leaks.
6877 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
6878 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
6880 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
6882 * graphite.c (find_scop_params): Remove initialize_cloog_names.
6884 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
6886 * graphite.c (end_scop): Style fix.
6887 (schedule_to_scattering): Style and comment fix.
6889 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
6890 * graphite.c (print_graphite_bb): Fix definiton of
6891 schedule_to_scattering.
6892 (initialize_cloog_names): Change nb_scattdims to max loop
6894 (schedule_to_scattering): Take parameter for number of scattering
6896 (build_cloog_prog): Only build as much scattering dimensions as
6899 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
6901 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
6902 in polyhedron/aermod.f90.
6904 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
6905 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
6906 Harsha Jagasia <harsha.jagasia@amd.com>
6908 * graphite.c (is_bb_addable): Fix segfault.
6910 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
6912 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
6913 with multiple exits and conditional handling in edge cases.
6914 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
6916 * gcc.dg/graphite/scop-14.c: New.
6918 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
6919 Adrien Eliche <aeliche@isty.uvsq.fr>
6921 * graphite.c (is_bb_addable): Add more comments and enhance
6922 readablity of the source code. Fix memory leak.
6923 (is_loop_exit): Fix memory leak.
6925 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
6927 * graphite.c (first_loop_in_scop): Deleted.
6928 (setup_cloog_loop): Only walk the loop chain for inner loops.
6929 (build_scop_iteration_domain): Execute setup_cloog_loop for
6930 all loops in the first layer.
6932 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
6934 * graphite.c (scan_tree_for_params): Change the way params are
6935 added to be indepenent of the number of loops.
6936 (setup_cloog_loop): Revert to short matrix format. Fix parameter
6938 (build_cloog_prog): Revert to short matrix format.
6940 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
6941 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
6943 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
6946 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
6948 * graphite.c (nb_data_refs_in_scop): New.
6949 (graphite_transform_loops): Print more stats: number of
6950 loops, basic blocks and data references per scop.
6952 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
6953 Jan Sjodin <jan.sjodin@amd.com>
6955 * graphite.c (loop_affine_expr, idx_record_params,
6956 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
6957 instead of instantiate_parameters.
6959 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
6961 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
6962 add support for parameters, add STATIC_SCHEDULE at the right places,
6965 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
6967 * graphite.c (build_scop_loop_nests): Only add the loops, that
6968 are contained completely in the SCoP.
6969 (build_cloog_prog): Disable scattering, until schedule_to_scattering
6970 and the domains are fixed.
6971 (build_scop_canonical_schedules): Add support for bbs not contained
6974 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
6976 * graphite.h (scop_contains_loop): Update comments to match
6977 the actual behavior.
6978 (scop_contains_loop): New.
6979 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
6981 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
6983 * graphite.c (get_bb_type): On function body, i.e. loop_0,
6984 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
6987 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
6988 Tobias Grosser <grosser@fim.uni-passau.de>
6990 * graphite.c (graphite_transform_loops): Early return when
6991 there are no loops in the function.
6993 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
6994 Jan Sjodin <jan.sjodin@amd.com>
6996 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
6997 offset of the last loop.
6998 (setup_cloog_loop): Copy the entire outer constraint matrix.
7000 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7001 Jan Sjodin <jan.sjodin@amd.com>
7003 * graphite.c (stmt_in_scop_p, function_parameter_p,
7004 invariant_in_scop_p): Removed.
7005 (scan_tree_for_params): Can be used with no constraint
7006 matrix for gathering parameters.
7007 (idx_record_params): Don't use idx_record_param, instead use
7008 scan_tree_for_params.
7009 (find_scop_parameters): Same.
7010 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
7011 Fix the size of loop domains.
7012 (schedule_to_scattering): Exit when the outer loop is not in scop.
7013 (find_transform): Enable build_cloog_prog.
7015 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7016 Jan Sjodin <jan.sjodin@amd.com>
7018 * graphite.c (schedule_to_scattering): Make scattering domains
7019 uniformly of the same size, as required by CLooG 0.14.0 and before.
7021 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7022 Jan Sjodin <jan.sjodin@amd.com>
7024 * graphite.c (schedule_to_scattering): Rewrite, correct the
7025 translation of the scheduling function to scattering.
7026 (build_cloog_prog): Call schedule_to_scattering only once.
7027 * graphite.h (scop_loop_index): Do not fail for loops not
7028 in the scop: return -1.
7030 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
7032 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
7033 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
7034 (setup_cloog_loop): Export GBB_DOMAIN.
7035 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
7036 able to rebuild the original control flow.
7037 * graphite.h (graphite_bb): Add domain field and access macro.
7040 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7042 * graphite.c (debug_gbb): New.
7043 (print_scop, build_graphite_bb): Use SCOP_BBS.
7044 (build_scop_bbs): Reimplemented.
7045 (dfs_bb_in_scop_p): Removed.
7046 (build_scop_loop_nests): Reorder loops inserted in
7047 SCOP_LOOP_NEST: outer loops should come first.
7048 (build_scop_canonical_schedules): Reinitialize at zero
7049 the components of the SCOP_STATIC_SCHEDULE for the loops
7050 that have already been parsed.
7052 * graphite.h (debug_gbb): Declared.
7054 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7055 Jan Sjodin <jan.sjodin@amd.com>
7057 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
7058 (graphite_loop_to_gcc_loop): Removed.
7059 (remove_all_edges): New.
7060 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
7061 (gloog): Remove useless code.
7063 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7065 * graphite.c (get_bb_type): Reworked. We distinguish between
7066 loops with one or multiple exits.
7067 (is_loop_exit): New.
7069 (is_bb_addable): Rework condition handling, now support for case
7070 case statements and loops with multiple exits.
7072 * gcc.dg/graphite/scop-11.c: New.
7073 * gcc.dg/graphite/scop-12.c: New.
7074 * gcc.dg/graphite/scop-13.c: New.
7076 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7078 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
7079 we have too many colors.
7081 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
7083 * doc/invoke.texi (-ftree-loop-fusion): Document.
7084 * tree-pass.h (pass_loop_fusion): Declared.
7085 * tree-loop-fusion.c: New.
7086 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
7087 * tree-data-ref.c (find_data_references_in_loop): Make extern.
7088 * tree-data-ref.h (find_data_references_in_loop): Declared.
7089 * common.opt (ftree-loop-fusion): Declared.
7090 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
7092 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
7094 * graphite.c (build_access_matrix): Fix typo from the merge.
7096 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7098 * Merge from mainline (130800:135673).
7100 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7102 * graphite.c (end_scop): The exit of the scop is not part of the scop.
7103 Update dominators after splitting.
7105 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7107 * graphite.c (is_bb_addable): Return the harmful statement.
7108 Factor up some code.
7109 (end_scop): New. Splits end of scope bbs on a harmful statement.
7110 (build_scops_1): Call end_scop.
7112 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7114 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
7115 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
7116 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
7117 build_scops_1): Removed.
7118 (build_scops_2): Renamed build_scops_1.
7120 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7122 * graphite.c: Fix formatting.
7124 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7126 * graphite.c (get_bb_type): New.
7128 (build_scops_2): New.
7129 (is_bb_addable): New.
7130 (build_scops): Switch the scop detection.
7131 (build_scop_bbs): Add entry bb to scop.
7132 * graphite.h (struct scop): Update comment.
7134 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7136 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
7139 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7141 * gcc.dg/graphite/scop-1.c: Update.
7142 * gcc.dg/graphite/scop-2.c: Update.
7143 * gcc.dg/graphite/scop-4.c: Update.
7144 * gcc.dg/graphite/scop-5.c: Add.
7145 * gcc.dg/graphite/scop-6.c: Add.
7147 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7149 * gcc.dg/graphite/scop-0.c: Add.
7150 * gcc.dg/graphite/scop-7.c: Add.
7151 * gcc.dg/graphite/scop-8.c: Add.
7152 * gcc.dg/graphite/scop-9.c: Add.
7153 * gcc.dg/graphite/scop-10.c: Add.
7155 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7157 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
7158 Check affine expressions depending on the outermost loop
7160 (stmt_simple_for_scop_p): Same.
7161 (harmfule_stmt_in_scop): Same.
7163 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
7165 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
7166 mark entry and exit, that are not part of the SCoP and update HTML
7169 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
7171 * graphite.c (basic_block_simple_for_scop_p): Renamed
7173 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
7174 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
7175 (all_preds_visited_p, all_succs_visited_p,
7176 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
7177 scop_end_loop): New.
7178 (build_scops): Do not use dfs_enumerate_from.
7180 * gcc.dg/graphite/scop-{1,2,4}.c: Updated.
7182 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
7184 * graphite.c: Add comments to functions that are missing a
7186 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
7188 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
7190 * graphite.c (nb_params_in_scop): Moved...
7191 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
7192 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
7193 (clast_to_gcc_expression): Reduce column size to less than 80.
7194 (graphite_create_iv): Return the new name of the IV.
7195 (find_transform): Set options->esp and options->cpp.
7196 (gloog): Comment out the invalidation of the old loop code.
7197 (initialize_dependence_polyhedron): Replace scop_nb_params with
7200 * graphite.h (nb_params_in_scop): ... here.
7201 (scop_nb_params): Removed.
7202 (loop_domain_dim): Return something even when the loop was not
7203 found in the hash table: avoid ICEing on all the graphite.exp
7206 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7208 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
7210 * graphite.c (build_scop_dynamic_schedules): Schedule is built
7211 according to nesting level.
7212 (find_scop_parameters): Call instantiate_parameters.
7213 (scan_tree_for_params): Extend it to handle general affine bounds.
7214 Inner loop bound can depend on outer loop induction variable.
7215 (setup_cloog_loop): tmp variable is allocated on stack. Call
7216 instantiate_parameters with respect to outermost_loop_in_scop.
7217 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
7219 (create_empty_loop): Function loopify should be given edge
7220 probability, instead of edge frequency. Dominance relation from
7221 switch_bb to loop_header.
7222 (clast_to_gcc_expression): Added handling of clast_reduction node.
7223 (gloog): New functionality for removing old loop.
7224 (test_dependence): Factored out from build_rdg_all_levels.
7225 (build_rdg_all_levels): Dependence testing factored out to
7226 test_dependence function.
7228 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
7229 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
7232 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
7234 * graphite.c (free_scop, param_index, initialize_cloog_names,
7235 nb_params_in_scop): Use name_tree map instead of just a tree
7236 for keeping track of the variable name associated to that tree.
7237 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
7238 clast_to_gcc_expression, graphite_create_iv,
7239 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
7240 graphite_stmt_to_gcc_stmt): New.
7241 (gloog): Call these.
7242 * graphite.h (struct name_tree): New.
7243 (struct scop): Use name_tree instead of tree for params.
7244 Store a vector of name_tree for new_ivs.
7246 (scop_nb_params): Use name_tree instead of tree.
7248 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
7249 Sebastian Pop <sebastian.pop@amd.com>
7251 * tree-bounds.c: New.
7252 * tree-bounds.h: New.
7253 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
7254 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
7255 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
7259 * c-cppbuiltin.c: Same.
7263 * tree-outof-ssa.c: Same.
7265 * Makefile.in: Same.
7267 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
7268 Sebastian Pop <sebastian.pop@amd.com>
7270 * tree-loop-distribution.c (remaining_stmts,
7271 upstream_mem_writes): Removed static variables.
7272 (copy_loop_before, create_bb_after_loop,
7273 mark_nodes_having_upstream_mem_writes, free_rdg_components,
7274 rdg_build_components, rdg_build_partitions,
7275 dump_rdg_partitions): Extern.
7276 (generate_loops_for_partition, generate_code_for_partition): Do not
7278 (already_processed_vertex_p, predecessor_has_mem_write,
7279 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
7280 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
7281 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
7282 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
7283 Pass remaining_stmts and upstream_mem_writes as parameters.
7284 (rdg_component): Moved...
7285 (build_rdg_partition_for_component): Do not aggregate components when
7286 flag_streamize_loops is set.
7287 (gen_sequential_loops): New.
7288 (ldist_gen): Call gen_sequential_loops.
7290 * tree-pass.h (pass_loop_streamization): Declared.
7292 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
7293 basic blocks when loops structures exist.
7295 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
7297 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
7299 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
7300 eliminate_local_variables_stmt, eliminate_local_variables,
7301 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
7302 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
7303 of code delimited by two edges in the CFG.
7304 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
7305 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
7306 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
7307 the case of parallelisation of reductions.
7308 (create_loop_fn): Extern.
7309 (create_omp_parallel_region): New.
7311 * tree-data-ref.c (dump_data_dependence_relation): Don't call
7312 dump_data_reference for printing dra and drb.
7313 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
7315 (build_rdg): Don't call free_dependence_relations for the moment, as
7316 we attach dependence relations on each edge of the RDG.
7319 * tree-data-ref.h (rdg_component): ...here.
7320 (struct rdg_edge): New field ddr_p relation.
7321 (RDGE_RELATION): New.
7322 (create_bb_after_loop, copy_loop_before,
7323 mark_nodes_having_upstream_mem_writes, rdg_build_components,
7324 rdg_build_partitions, dump_rdg_partitions,
7325 free_rdg_components): Declared.
7327 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
7328 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
7330 * tree-loop-streamization.c: New.
7332 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
7333 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
7335 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
7337 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
7339 * passes.c: Schedule pass_loop_streamization.
7341 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
7343 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
7346 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
7348 * graphite.c (dot_all_scops): Update formatting.
7349 Bbs can now be part of more than one SCoP.
7351 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
7353 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
7355 (loop_domain_dim): Check for unregistered toplev SCOP loop.
7356 * graphite.h (loop_to_cloog_loop): New.
7358 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7360 * graphite.c (loop_domain_dim, ref_nb_loops,
7361 loop_iteration_vector_dim): New.
7362 (build_access_matrix_with_af, build_access_matrix,
7363 initialize_dependence_polyhedron): Fixed for new matrix layout.
7364 No longer assume that all iteration domains are of the same
7367 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
7369 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
7370 defined in a loop at depth 0 is invariant.
7371 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
7372 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
7373 be called at loop depth 0.
7375 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
7377 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
7378 (down_open_scop): Removed.
7379 (loop_in_scop_p): Redefined.
7380 (scop_affine_expr): New argument: scop.
7381 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
7382 a harmful statement ending a scop.
7383 (basic_block_simple_for_scop_p): New argument: scop.
7384 (get_loop_start): Removed.
7385 (new_scop): Initialize SCOP_LOOPS.
7386 (free_scop): Free SCOP_LOOPS.
7387 (succs_at_same_depth, preds_at_same_depth): New.
7388 (end_scop): Test the validity of a scop.
7389 (add_dominators_to_open_scops): New.
7390 (test_for_scop_bound): Call add_dominators_to_open_scops.
7391 Add cases for opening and closing multiple scops.
7392 (build_scops, build_scop_bbs): Iterate over basic blocks in
7394 (build_graphite_bb): Pass scop directly.
7395 (dfs_bb_in_scop_p): New.
7396 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
7398 (nb_loops_around_gb): Use loop_in_scop_p.
7399 (schedule_to_scattering): Disabled for the moment the code computing
7400 the "textual order for outer loop".
7402 * graphite.h (struct scop): New field loops.
7404 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
7406 * gcc.dg/graphite/scop-{1,...,7}.c: Updated.
7408 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
7409 Sebastian Pop <sebastian.pop@amd.com>
7411 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
7412 * common.opt (fstreamize-loops): New.
7413 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
7414 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
7415 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
7416 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
7418 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7420 * tree-data-ref.c (build_empty_rdg): New.
7421 (build_rdg): Use it.
7422 * tree-data-ref.h (build_empty_rdg): Declared.
7423 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
7424 (find_vertex_for_stmt): Removed.
7425 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
7427 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
7429 * tree-loop-distribution.c (generate_builtin): After cancelling the
7430 loop tree, also delete basic blocks.
7431 (rdg_flag_uses): Stop recursion when a vertex has already been
7434 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7436 * graphite.c (build_scop_alpha): Removed.
7437 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
7438 and dump_dependence_graph to avoid compiler warnings.
7440 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7442 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
7443 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
7444 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
7445 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
7446 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
7447 (initialize_dependence_polyhedron, find_vertex_for_stmt,
7448 initialize_data_dependence_polyhedron, is_empty_polyhedron,
7449 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
7450 dump_dependence_graph): New.
7451 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
7453 (struct scop): New field loop2cloog_loop.
7454 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
7455 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
7457 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7459 * graphite.c (build_graphite_bb): Fix initialization
7460 of the graphite basic block.
7462 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
7464 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
7465 loop domain matrix. Pass in the number of loops contained in the
7467 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
7468 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
7469 loops that are not surrounding the current loop are not represented
7470 in the domain constraint matrix.
7471 (build_scop_iteration_domain): Initial domain constraint matrix
7472 contains only the eq/ineq, cst, and scop parameters columns.
7474 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7476 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
7477 (print_graphite_bb): Print scattering.
7479 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7481 * graphite.c (initialize_cloog_names): Initialize names of
7482 scattering variables.
7484 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7486 * graphite.c (dot_all_scops_1): Disable debug output while
7489 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7491 * graphite.c (find_transform): Change cloog output language to C.
7493 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
7495 * tree-loop-distribution.c (generate_memset_zero,
7496 generate_builtin, generate_code_for_partition,
7497 rdg_flag_all_uses): New.
7498 (rdg_flag_uses): Gather in the same partition the statements defining
7499 the VUSES of the current statement.
7500 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
7501 Gather in the same partition not only the stores to the same memory
7502 access, but also the reads.
7503 (ldist_generate_loops): Renamed ldist_gen.
7505 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
7506 Tobias Grosser <grosser@fmi.uni-passau.de>
7508 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
7509 next pointer, don't use the inner pointer.
7511 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
7513 * graphite.c (dot_all_scops, dot_all_scops_1): New.
7514 (find_transform): Call dot_all_1.
7515 * graphite.h (dot_all_scops): Declared.
7517 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
7519 * tree-loop-distribution.c: Fix apsi.f ICE.
7520 (create_bb_after_loop): New.
7521 (generate_loops_for_partition): Use it.
7522 * gfortran.dg/ldist-1.f90: New.
7524 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
7525 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
7527 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7529 * graphite.c (find_transform): Dump cloog program sent to cloog.
7531 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7533 * graphite.c (initialize_cloog_names): Initialize cloog
7536 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7538 * graphite.c (build_scop_context): Fix typo, for the matrix
7539 format: insert '0 >= 0' instead of '-1 >= 0'.
7541 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
7543 * Fix merge problems.
7545 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
7547 * graphite.c (setup_cloog_loop): Fix typo.
7549 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
7551 * doc/invoke.texi (-ftree-loop-distribution): Documented.
7552 * tree-loop-distribution.c: Reimplemented.
7553 * tree-pass.h (pass_loop_distribution): New.
7554 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
7556 * graphds.h (struct graph): New field indexes.
7557 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7559 * tree-vect-analyze.c: Remove declaration of static functions when not
7561 * tree-vectorizer.c: Same.
7562 (rename_variables_in_loop): Now extern.
7563 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
7564 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
7565 calling redirect_edge_and_branch_force.
7567 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
7569 * tree-data-ref.c: Don't include tree-chrec.h.
7570 (debug_data_dependence_relations): New.
7571 (dump_data_dependence_relation): Call dump_data_reference on data refs
7573 (same_access_functions): Moved...
7574 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
7575 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7576 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
7577 struct rdg_vertex_info, ): New.
7578 (create_rdg_edge_for_ddr): Compute the dependence level before looking
7580 (create_rdg_vertices): Initialize the htab of graph->indexes.
7581 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
7582 (stmts_from_loop): Don't save LABEL_EXPR.
7583 (hash_stmt_vertex_info, eq_stmt_vertex_info,
7584 hash_stmt_vertex_del): New.
7585 (build_rdg): Initialize rdg->indexes.
7586 (free_rdg, stores_from_loop, ref_base_address,
7587 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
7588 have_similar_memory_accesses_1, ref_base_address_1,
7589 remove_similar_memory_refs): New.
7591 * tree-data-ref.h: Include tree-chrec.h.
7592 (debug_data_dependence_relations): Declared.
7593 (same_access_functions): ...here. Now static inline.
7594 (ddr_is_anti_dependent, ddrs_have_anti_deps,
7595 ddr_dependence_level): New.
7596 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
7597 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
7598 RDG_MEM_READS_STMT): New.
7599 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7600 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
7601 rdg_vertex_for_stmt): Declared.
7602 (struct rdg_edge): New field level.
7603 (RDGE_LEVEL, free_rdg): New.
7604 (stores_from_loop, remove_similar_memory_refs,
7605 rdg_defs_used_in_other_loops_p,
7606 have_similar_memory_accesses): Declared.
7607 (rdg_has_similar_memory_accesses): New.
7609 * lambda.h (dependence_level): New.
7610 * common.opt (ftree-loop-distribution): New.
7611 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
7612 (print_loop_ir): Renamed print_loops.
7613 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
7614 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
7615 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
7616 (tree-loop-distribution.o): Added.
7617 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
7618 (mark_virtual_ops_in_bb): New.
7619 (print_loops_bb, debug_loop_num, debug_loop): New.
7620 * passes.c: Scheduled pass_loop_distribution.
7622 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7624 * graphite.c (scan_tree_for_params): Correct the number of columns
7626 (nb_flat_iterator): New.
7627 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
7628 (build_scop_iteration_domain): Correct the number of columns for
7631 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
7633 * Merge from mainline (129697:130800).
7635 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
7637 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
7638 dominated by SCoP's exit.
7639 (graphite_transform_loops): Compute post dominators.
7641 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
7643 * Merge from mainline (127169:129697).
7645 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
7647 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
7648 parameter for the basic block that contains the expression. Use
7649 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
7650 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
7652 * graphite.h (gbb_loop): New.
7653 (GBB_LOOP): Removed.
7655 2007-08-03 Sebastian Pop <sebpop@gmail.com>
7657 * Makefile.in: Fix merge problem.
7659 2007-08-03 Sebastian Pop <sebpop@gmail.com>
7661 * Merge from mainline (125309:127169).
7662 * tree-loop-distribution.c: Disabled.
7664 2007-06-05 Sebastian Pop <sebpop@gmail.com>
7666 * Merge from mainline (r123693:125309).
7668 2007-05-30 Sebastian Pop <sebpop@gmail.com>
7670 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
7672 (correct_modify_p, check_statements, number_of_lvalue_uses,
7673 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
7674 instead of MODIFY_EXPR.
7675 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
7678 2007-05-24 Sebastian Pop <sebpop@gmail.com>
7680 * tree-loop-distribution.c (struct rdg): Replace arrays by
7681 VECs for edges and vertices.
7682 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
7683 (RDGV_NB_PARTITIONS): New.
7684 (PRDG_NBV, PRDG_NBE): Removed.
7685 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
7686 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
7687 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
7689 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
7690 Sebastian Pop <sebpop@gmail.com>
7692 * doc/invoke.texi (-ftree-loop-distribution): Document.
7693 * tree-loop-distribution.c: New file.
7694 * tree-pass.h (pass_loop_distribution): Declared.
7695 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7696 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
7698 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
7699 (DDR_REVERSED_P): New.
7700 * common.opt (-ftree-loop-distribution): New.
7701 * tree-flow.h (distribute_loops): Declared.
7702 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
7703 * passes.c (init_optimization_passes): Schedule loop distribution.
7705 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
7707 * graphite.c (print_graphite_bb): Don't call dump_data_references.
7708 (print_scop): Don't print when scop is NULL.
7709 (build_scop_context, find_transform): Don't output to stderr.
7711 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
7713 * tree-data-ref.c: Don't include graphite.h.
7714 Comment out the code for printing data reference's scop.
7715 (build_access_matrix_with_af): Moved...
7716 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
7717 * graphite.c (build_access_matrix_with_af): ... here. Now static.
7718 (print_graphite_bb): Print basic block's schedule.
7719 (print_scop): Don't print the schedule, call cloog's pretty printer.
7720 (bb_in_scop_p): A basic block is in a scop only if it is both
7721 dominated and postdominated by the scop's entry and exit basic blocks.
7722 (function_parameter_p): New.
7723 (invariant_in_scop_p): Use function_parameter_p.
7724 (new_scop, save_scop): New.
7725 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
7727 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
7728 (loop_in_scop_p): New.
7729 (scop_record_loop): Use loop_in_scop_p.
7730 (build_scop_domain): Renamed build_scop_iteration_domain.
7731 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
7732 nb_params_in_scop, build_scop_context, first_loop_in_scop,
7733 setup_cloog_loop, dot_scop_1, dot_scop): New.
7734 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
7735 (struct scop): Add a pointer to cloog's representation of a program.
7737 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
7739 * doc/invoke.texi (-ftree-check-verbose): Renamed
7740 -ftree-checks-verbose.
7741 * common.opt (flag_tree_check_verbose): Renamed
7742 flag_tree_checks_verbose.
7743 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
7745 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
7747 * configure: Regenerated.
7748 * config.in: Regenerated.
7749 * tree-ssa-loop.c (graphite_transforms): Execute
7750 graphite_transform_loops only when HAVE_cloog.
7751 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
7752 * graphite.c: Include polylibgmp.h and cloog.h.
7753 (graphite_transform_loops): Removed loops parameter.
7754 * tree-flow.h (graphite_transform_loops): Update declaration.
7755 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
7756 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
7757 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
7758 (OBJS-common): Remove dependence on graphite.o.
7759 (BACKEND): Depend on @GRAPHITE@.
7761 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
7763 * doc/invoke.texi (-ftree-check-verbose): Documented.
7764 * gcc.dg/tree-checker/tree-checks-1.c: New.
7765 * gcc.dg/tree-checker/tree-checks-2.c: New.
7766 * gcc.dg/tree-checker/tree-checks-3.c: New.
7767 * gcc.dg/tree-checker/tree-checks-4.c: New.
7768 * gcc.dg/tree-checker/tree-checks.exp: New.
7769 * gcc.dg/tree-checker/condates.crp: New.
7770 * common.opt (ftree-checks-verbose): New.
7771 * tree-check.c (tree_check_warning): Move extra stderr output
7772 under control of flag_tree_check_verbose.
7774 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
7776 * tree-match.c: Fix comments formatting.
7777 * tree-match.h: Fix comments formatting.
7778 * tree-check.c: Fix comments formatting.
7779 (tree_check_init): Restructure.
7781 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
7783 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
7785 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
7787 * Merge from mainline (r120733:123693).
7789 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
7791 * condate.y: New file.
7792 * tree-match.h (struct patt_info_s): New field sign.
7793 (struct condate_s): New field msg.
7794 (normalize_condate, name_condate, add_condate): New.
7795 (conds[], condate_parse): Made extern.
7796 * tree-check.c (tree_check_warning): First arg changed to cond;
7797 warning reformatted.
7798 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
7800 (tree_check): Process trivial condates.
7801 (read_delimited_string): Removed.
7802 (print_cond): Print name and msg.
7803 (conds[]): Made extern.
7804 (parse_tree_check_file_once): Rewritten to use the parser in
7806 Processing of option --tree_check_string moved to tree_scan().
7807 * Makefile.in: Added condate.y
7809 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
7811 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
7812 Use VECs instead of varrays.
7813 * diagnostic.h (lazy_dump_generic_node): Update declaration.
7814 * Makefile.in (pretty-print.o): Depend on vec.h.
7815 * pretty-print.c: Include tree.h and vec.h.
7816 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
7817 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
7818 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
7819 pp_free_list): Use VECs instead of varrays.
7820 * pretty-print.h: Do not include varray.h.
7821 (struct tree_chunk_s): Declaration moved before its use.
7822 (output_buffer): Rename varray field to chunks.
7823 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
7824 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
7825 save_global_holes): Use VECs instead of varrays.
7826 * tree-match.h: Declare VECs of cfg_node, and hole_p.
7827 * tree-check.c (scan_cfg_stmts, push_node,
7828 print_matching_stmt): Removed.
7829 (tree_check_instance, push_global_holes_if_new, tree_check,
7830 execute_tree_check): Use VECs instead of varrays.
7831 (gate_tree_check): Don't execute the CFG check when basic_block_info
7834 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
7836 * Merge from mainline (r115016:120733).
7838 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
7840 * Merge from mainline (r117632:117661).
7842 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
7844 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
7845 * tree-pass.h (TDF_DEBUG, debug_p): New.
7846 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
7847 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
7848 get_loop_exit_condition, analyze_evolution_in_loop,
7849 analyze_initial_condition, analyze_scalar_evolution,
7850 instantiate_parameters, number_of_latch_executions): Use debug_p.
7851 * tree-chrec.c (chrec_apply): Use debug_p.
7852 * tree-data-ref.c: Include graphite.h.
7853 (dump_data_reference): Print also the access matrix.
7854 (analyze_array, analyze_indirect_ref, init_data_ref,
7855 analyze_offset_expr, address_analysis, object_analysis,
7856 create_data_ref, finalize_ddr_dependent,
7857 non_affine_dependence_relation, analyze_ziv_subscript,
7858 analyze_siv_subscript_cst_affine,
7859 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
7860 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
7861 analyze_miv_subscript, analyze_overlapping_iterations,
7862 build_classic_dist_vector, subscript_dependence_tester,
7863 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
7864 (build_access_matrix_with_af): No longer static.
7865 * tree-data-ref.h (scop_p): ... declaration here.
7866 (data_reference.scop): New field.
7867 (DR_SCOP, DR_ACCESS_MATRIX): New.
7868 (build_access_matrix_with_af, dr_num_subscripts): Declared.
7869 * graphite.c (print_graphite_bb): Call dump_data_references.
7870 (print_scop): Use scop_nb_loops and scop_dim_domain.
7871 (test_for_scop_bound): Use debug_p.
7872 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
7874 (scop_loop_index): Moved...
7875 (scop_record_loop): New.
7876 (build_scop_loop_nests): Use scop_record_loop.
7877 (build_scop_domain): Use scop_dim_domain.
7878 (build_access_matrix): Implemented.
7879 (build_scop_canonical_schedules): Use scop_nb_loops.
7880 (build_graphite_bb): Initialize GBB_SCOP.
7881 * graphite.h (scop_p): Moved...
7882 (graphite_bb.scop): New field.
7883 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
7884 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
7885 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
7886 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
7887 scop_loop_index): New.
7888 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
7890 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
7892 * Merge from mainline (r117661:120450).
7894 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
7896 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
7897 at the first declaration outside the varying loop, instantiate as
7899 * tree-chrec.c (for_each_scev_op): New.
7900 * tree-chrec.h (for_each_scev_op): Declared.
7901 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
7902 * tree-data-ref.c (get_references_in_stmt,
7903 find_data_references_in_stmt): New, from trunk.
7904 (find_data_references_in_loop): Use get_references_in_stmt
7905 and find_data_references_in_loop, modified as in trunk.
7906 (build_access_matrix_with_af): New.
7907 * tree-data-ref.h (data_reference): Add a field access_matrix.
7908 (data_ref_loc): New, as in trunk.
7909 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
7910 invariant_in_scop_p, param_index, scan_tree_for_params,
7911 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
7912 idx_record_param, idx_record_params, build_access_matrix,
7913 build_scop_data_accesses, build_scop_canonical_schedules,
7914 build_graphite_bb, build_scop_bbs, find_params_in_bb,
7915 build_scop_params): New.
7916 * graphite.h (graphite_bb): New.
7917 (scop): Add fields static_schedule, params, loop_nest,
7919 * lambda.h: Declare vecs of lambda_matrix.
7920 * tree-flow.h (print_loop_ir_bb): Declared.
7921 * tree-cfg.c (print_loop_ir_bb): New.
7922 (print_loop): Use print_loop_ir_bb.
7924 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
7926 * Merge from mainline (r115016:117632).
7928 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
7930 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
7931 break due to a warning.
7933 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
7935 * graphite.c (print_scops, debug_scops): New.
7936 (graphite_transform): Renamed graphite_find_transform.
7937 * graphite.h (debug_scops): Declared.
7939 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
7941 * tree-match.c: Reformat following the GNU style.
7942 * tree-match.h: Reformat following the GNU style.
7943 * tree-pattern.h: Removed empty file.
7944 * Makefile.in: Remove references to tree-pattern.h.
7945 * tree-check.c: Reformat following the GNU style.
7946 (execute_tree_check): Move gate condition code to...
7947 (gate_tree_check): ...here. New function.
7948 (pass_check): Use the gate function.
7950 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
7952 * tree-pattern.h: New. Tree pattern matching and checking using
7954 * tree-check.c: New. Tree/CFG checking pass.
7955 * tree-match.c: New. Library for tree pattern matching.
7956 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
7957 * toplev.c, flags.h: Add globals for tree-check pass.
7958 * Makefile.in: Integrate the files in tree-check pass.
7959 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
7960 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
7961 Introduce a "lazy" pretty-print mode.
7962 * tree.c, tree.h: Add tree_name.
7964 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
7966 * doc/invoke.texi (-fgraphite): Correct typo.
7967 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
7968 use of print_loop_ir.
7969 * gcc.dg/graphite/scop-1.c: New.
7970 * gcc.dg/graphite/scop-2.c: New.
7971 * gcc.dg/graphite/graphite.exp: New.
7972 * graphite.c: Include domwalk.h.
7973 (print_scop): Print only the entry and exit blocks.
7974 (debug_scop): No longer static.
7975 (affine_expr): Fix formating. Return also true when the expression is
7977 (stmt_simple_for_scop_p): Fix formating.
7978 (build_scops): Use domwalk.
7979 (get_loop_start, end_scop, test_for_scop_bound): New.
7980 (graphite_transform_loops): Avoid printing on stderr.
7981 * graphite.h (debug_scop): Declared.
7982 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
7983 * Makefile.in (graphite.o): Depend on domwalk.h.
7984 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
7985 declarations for static functions.
7986 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
7987 controlling output verbosity.
7989 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
7990 Plesco Alexandru <shurikx@gmail.com>
7992 * doc/invoke.texi (-fgraphite): Document.
7993 * tree-pass.h (pass_graphite_transforms): Declared.
7994 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
7995 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
7996 (pass_graphite_transforms): Defined.
7997 * tree-data-ref.c (free_data_ref, data_reference): Extern.
7998 * tree-data-ref.h (free_data_ref, data_reference): Declared.
7999 * graphite.c, graphite.h: New.
8000 * common.opt (fgraphite): Declared.
8001 * tree-flow.h (graphite_transform_loops): Declared.
8002 * Makefile.in (OBJS-common): Add graphite.o.
8003 (graphite.o): New rule.
8004 * passes.c (pass_graphite_transforms): Scheduled.