1 2010-01-07 Richard Guenther <rguenther@suse.de>
3 PR tree-optimization/42641
4 * sese.c (rename_map_elt_info): Use the SSA name version, do
7 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
9 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
10 blocked" only when both the strip mine and the interchange have
13 * testsuite/gcc.dg/graphite/block-2.c: Removed.
14 * testsuite/gcc.dg/graphite/block-3.c: Add scan pattern.
15 * testsuite/gcc.dg/graphite/block-4.c: Same.
16 * testsuite/gcc.dg/graphite/block-5.c: Same.
17 * testsuite/gcc.dg/graphite/block-6.c: Same.
19 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
21 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
22 before allocating a new one.
23 (copy_renames): Check that slot is not NULL.
24 (mark_bb_with_pbb): Same.
25 (compute_cloog_iv_types_1): Same.
26 * graphite-interchange.c (lst_perfect_nestify): Free the before,
28 (lst_try_interchange_loops): Same.
30 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
33 * graphite-interchange.c (lst_try_interchange_loops): Do not return
34 the before, nest, and after LSTs.
35 (lst_try_interchange): Removed.
36 (lst_interchange_select_inner): Do not iterate over the LSTs if they
38 (lst_interchange_select_outer): Apply interchange on the outer loop
39 until there are no more changes in the inner loops.
41 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
43 Revert patch fixing PR middle-end/42221.
45 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
48 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
51 * testsuite/gfortran.dg/graphite/pr42180.f90: Add compile flags.
53 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
56 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
57 that contain only one statement.
59 * testsuite/gfortran.dg/graphite/pr42180.f90: New.
61 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
64 * testsuite/gfortran.dg/graphite/pr42393.f90: New.
66 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
69 * testsuite/gfortran.dg/graphite/pr42186.f90: New.
71 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
74 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
75 Insert the reduction copy in the same block as the phi node.
76 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
78 * testsuite/gcc.dg/graphite/pr42205-1.c: New.
79 * testsuite/gcc.dg/graphite/pr42205-2.c: New.
81 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
84 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
85 the array indexing of ADDR_EXPRs.
87 * testsuite/gcc.dg/graphite/pr42221.c: New.
89 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
93 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
94 index. Call lst_interchange_select_inner only once.
95 (lst_interchange_select_inner): Update use of lst_try_interchange.
96 (lst_interchange_select_outer): Update.
98 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
102 * graphite-interchange.c (lst_try_interchange): Do not increment the
103 the OUTER index when there is no AFTER kernel. Do not increment the
104 OUTER index for after processing the AFTER kernel.
105 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
106 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
107 index. Do not pass to lst_interchange_select_inner the OUTER index.
108 (scop_do_interchange): Update use of lst_interchange_select_outer.
110 * testsuite/gfortran.dg/graphite/graphite.exp
111 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
112 * testsuite/gfortran.dg/graphite/interchange-1.f: Add comment. Clean
113 the graphite dump file.
114 * testsuite/gfortran.dg/graphite/interchange-2.f: Same.
115 * testsuite/gfortran.dg/graphite/pr42334-1.f: New.
117 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
121 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
123 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
124 (lst_try_interchange): Reimplemented.
125 (lst_interchange_select_inner): Same.
126 (lst_do_interchange): Renamed lst_interchange_select_outer.
128 (scop_do_interchange): Update use of lst_interchange_select_outer.
130 * testsuite/g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
131 * testsuite/gcc.dg/graphite/block-0.c: Un-XFAILed.
132 * testsuite/gcc.dg/graphite/pr42211.c: New.
133 * testsuite/gfortran.dg/graphite/pr42334.f90: New.
135 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
138 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
139 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
141 * testsuite/gfortran.dg/graphite/pr42181.f90: New.
143 2009-12-12 Sebastian Pop <sebpop@gmail.com>
146 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
147 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
148 (detect_commutative_reduction_arg): Simplified.
149 (detect_commutative_reduction): Early return when the argument of
150 the close phi is not of an SSA_NAME.
152 * testsuite/gcc.dg/graphite/pr42284.c: New.
154 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
156 * dbgcnt.def (graphite_scop): New counter.
157 * graphite.c: Include dbgcnt.h
158 (graphite_transform_loops): Use new counter to limit transformations.
160 2009-12-08 Sebastian Pop <sebpop@gmail.com>
163 * graphite-scop-detection.c (graphite_can_represent_init): Also
164 handle more complex MULT_EXPRs containing parameters by recursion
167 * testsuite/gfortran.dg/graphite/pr42285.f90: New.
169 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
171 * testsuite/g++.dg/graphite/pr42130.C: Fix type.
173 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
175 * testsuite/g++.dg/graphite/pr42130.C: Correct testcase.
177 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
179 * Merge from mainline (154493:154734).
181 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
183 * Merge from mainline (151362:154491).
185 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
187 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
188 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
190 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
193 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
194 translate_clast_for_loop): New.
195 (translate_clast_for): Add a condition around the loop, to do not
196 execute loops with zero iterations.
197 * testsuite/g++.dg/graphite/pr42130.C: New.
198 * testsuite/gcc.dg/graphite/pr35356-2.c: Adapt.
200 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
202 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
203 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
204 Remove context_loop and level.
206 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
208 * graphite-clast-to-gimple.c (translate_clast_user,
209 translate_clast_for, translate_clast_guard): Simplify and move common
210 elements to translate_clast().
211 (translate_clast): Simplify and get common elements.
213 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
215 * graphite-clast-to-gimple.c (translate_clast_user,
216 translate_clast_for, translate_clast_guard): Split out of
219 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
221 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
222 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
223 debug_clast_name_indexes_1, debug_clast_name_indexes,
224 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
225 (clast_name_to_gcc, clast_to_gcc_expression,
226 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
227 gcc_type_for_clast_eq, graphite_translate_clast_equation,
228 graphite_create_guard_cond_expr, graphite_create_new_loop,
229 translate_clast): Add params_index.
230 (initialize_cloog_names): Create parameter strings from scratch, do
231 not reference other strings.
232 (create_params_index): New.
233 (gloog): Initialize params_index.
234 * graphite-scop-detection (free_scops_1): Removed.
235 (limit_scops): Use normal free_scops.
236 * graphite-sese-to-poly.c (save_var_names): Removed.
237 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
238 and SESE_PARAMS_INDEX.
239 * sese.c (new_sese, free_sese): Dito.
240 * sese.h (struct sese): Remove params_index, params_names.
241 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
243 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
245 Revert the following patch from 2009-09-14:
246 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
247 tree-scalar-evolution.h, and then tree-data-ref.h.
248 * graphite-clast-to-gimple.c: Same.
249 * graphite-dependences.c: Same.
250 * graphite-interchange.c: Same.
251 * graphite-poly.c: Same.
252 * graphite-scop-detection.c: Same.
253 * graphite-sese-to-poly.c: Same.
255 * lambda-code.c: Same.
256 * matrix-reorg.c: Same.
257 * tree-data-ref.c: Same.
258 * tree-if-conv.c: Same.
259 * tree-loop-distribu: Same.: Same.
260 * tree-loop-linear.c: Same.
261 * tree-parloops.c: Same.
262 * tree-predcom.c: Same.
263 * tree-vect-patterns.c: Same.
265 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
267 Revert patch from 2009-09-14.
268 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
269 passes at -O1 and below.
271 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
274 * testsuite/gcc.dg/graphite/pr40281.c: New.
276 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
277 evolutions should not variate in inner loops.
279 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
282 * testsuite/gfortran.dg/graphite/pr42050.f90: New.
284 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
286 * graphite-interchange.c (memory_strides_in_loop_depth): New.
287 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
289 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
291 * graphite-blocking.c (scop_do_block): New.
292 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
293 * graphite-poly.h (scop_do_block): Declared.
295 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
297 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
298 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
299 to transform depth into the time_depth before calling
300 pbb_number_of_iterations_at_time.
301 (lst_do_strip_mine): Use a scalar variable instead of recomputing
304 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
306 Reverted the patch for "scattering permutations" from 2009-10-28.
308 * graphite-poly.c (print_permutation): New.
309 (debug_permutation): New.
310 (new_poly_bb): Initialize PBB_PERMUTATION.
311 (free_poly_bb): Free PBB_PERMUTATION.
312 * graphite-poly.h (pbb_permutation_elt_p): Declared.
313 (struct pbb_permutation_elt): New.
314 (PBB_PERMUTATION_ELT_STRIDE): New.
315 (PBB_PERMUTATION_ELT_STRIDED_P): New.
316 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
317 (new_pbb_permutation_elt): New.
318 (pbb_permutation_elt_free): New.
319 (struct poly_bb): Add field permutation.
320 (PBB_PERMUTATION): New.
321 (print_permutation): Declared.
322 (debug_permutation): Declared.
324 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
326 * graphite-interchange.c (build_partial_difference): New.
327 (memory_stride_in_loop): Refactored the computation of
328 equality constraints into build_partial_difference function.
329 Added support for debugging stride computations.
331 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
333 * graphite-clast-to-gimple.c (gloog): Free if_region,
334 if_region->true_region, and if_region->region.
335 * sese.c (if_region_set_false_region): Free if_region->false_region.
336 (create_if_region_on_edge): Do not use GGC_NEW.
337 (move_sese_in_condition): Remove useless initialization.
339 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
341 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
342 for the loops created by the loop distribution. Do not modify the
344 (lst_try_interchange_loops): Same. Use a temporary LST for the
345 transformed schedule. Call lst_update_scattering before data
347 (lst_try_interchange): Pass an extra parameter INDEX.
348 (lst_do_interchange_1): New.
349 (lst_do_interchange): Call lst_do_interchange_1.
350 (scop_do_interchange): Call lst_update_scattering.
351 * graphite-poly.c (apply_poly_transforms): Do not call
352 lst_update_scattering.
353 * graphite-poly.h (lst_pred): New.
355 (lst_find_first_pbb): Return NULL when not found.
357 (lst_insert_in_sequence): Allow LST1 to be NULL.
359 (lst_substitute_3): New.
360 * gcc.dg/graphite/interchange-1.c: XFail.
361 * gcc.dg/graphite/interchange-8.c: XFail.
362 * gcc.dg/graphite/interchange-11.c: XFail.
364 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
366 * graphite-interchange.c (lst_perfectly_nested_p): New.
367 (lst_perfect_nestify): New.
368 (lst_try_interchange_loops): Call store_lst_schedule,
369 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
370 (scop_do_interchange): Avoid redundant legality test.
371 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
372 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
373 * graphite-poly.h (psct_static_dim): New.
374 (lst_dewey_number_at_depth): New.
375 (lst_find_pbb): Restructured.
376 (lst_find_first_pbb): Restructured.
377 (lst_find_last_pbb): New.
378 (lst_contains_p): New.
379 (lst_contains_pbb): New.
380 (lst_create_nest): New.
381 (lst_remove_from_sequence): New.
382 (pbb_update_scattering): New.
383 (lst_update_scattering_under): New.
384 (lst_update_scattering_seq): New.
385 (lst_update_scattering): New.
386 (lst_insert_in_sequence): New.
387 (lst_distribute_lst): New.
388 (lst_remove_all_before_including_pbb): New.
389 (lst_remove_all_before_excluding_pbb): New.
391 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
393 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
396 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
398 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
400 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
402 * graphite-poly.c (print_permutation): New.
403 (debug_permutation): New.
404 (new_poly_bb): Initialize PBB_PERMUTATION.
405 (free_poly_bb): Free PBB_PERMUTATION.
406 * graphite-poly.h (pbb_permutation_elt_p): Declared.
407 (struct pbb_permutation_elt): New.
408 (PBB_PERMUTATION_ELT_STRIDE): New.
409 (PBB_PERMUTATION_ELT_STRIDED_P): New.
410 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
411 (new_pbb_permutation_elt): New.
412 (pbb_permutation_elt_free): New.
413 (struct poly_bb): Add field permutation.
414 (PBB_PERMUTATION): New.
415 (print_permutation): Declared.
416 (debug_permutation): Declared.
418 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
420 * graphite-clast-to-gimple.c (gloog): Do not call
421 sese_reset_aux_in_loops.
422 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
423 extra argument for domains. Do not use loop->aux.
424 (build_scop_iteration_domain): Initialize and free domains, pass it
425 to build_loop_iteration_domains and extract the information from
426 domains. Do not use loop->aux.
427 * sese.c (sese_reset_aux_in_loops): Removed.
428 * sese.h (sese_reset_aux_in_loops): Removed.
430 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
432 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
433 (dependency_in_loop_p): Same.
434 (translate_clast): Do not use loop->aux. Initialize
435 loop->can_be_parallel.
436 (mark_loops_parallel): Removed.
437 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
438 * graphite.c (free_aux_in_new_loops): Removed.
439 (graphite_finalize): Do not call free_aux_in_new_loops.
440 (graphite_transform_loops): Do not call mark_loops_parallel.
442 2009-10-26 Li Feng <nemokingdom@gmail.com>
444 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
445 (translate_clast): Pass an extra parameter LEVEL.
446 Call get_scattering_level.
447 * graphite-clast-to-gimple.h (get_scattering_level): New.
449 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
451 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
452 * cfgloop.h (struct loop): New field single_iv.
454 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
455 loop->aux anymore: use loop->single_iv.
456 (graphite_loop_normal_form): Moved...
457 (build_graphite_loop_normal_form): Removed.
458 (gloog): Do not call build_graphite_loop_normal_form.
459 (free_aux_in_new_loops): Moved...
460 (mark_loops_parallel): Restructure.
461 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
462 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
463 (scop_canonicalize_loops): New.
464 (build_poly_scop): Call scop_canonicalize_loops.
465 * graphite.c (free_aux_in_new_loops): ...here.
467 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
469 * g++.dg/graphite/graphite.exp: Add the same rules as in
470 gcc.dg/graphite/graphite.exp.
472 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
474 * g++.dg/graphite/id-1.C: New.
476 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
478 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
480 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
481 (rewrite_phi_out_of_ssa): Same.
482 (rewrite_cross_bb_scalar_deps): Same.
483 (translate_scalar_reduction_to_array): Same.
485 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
487 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
490 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
492 * graphite-sese-to-poly.c (dump_alias_graphs): New.
493 (build_scop_drs): Call dump_alias_graphs.
495 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
497 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
498 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
499 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
500 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
501 * graphite-poly.h (free_lst): New.
502 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
503 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
505 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
507 * graphite-poly.h (struct scop): Add a field saved_schedule.
508 (SCOP_SAVED_SCHEDULE): New.
509 (store_lst_schedule): New.
510 (restore_lst_schedule): New.
511 (store_scattering): Call store_lst_schedule.
512 (restore_scattering): Call restore_lst_schedule.
514 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
516 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
517 (pdr_add_alias_set): Same.
518 (build_poly_dr): Same.
519 (build_alias_set_optimal_p): Same.
520 (build_base_obj_set_for_drs): Same. Do not store the result of
523 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
525 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
526 all_components_are_cliques to 1.
528 2009-10-20 Li Feng <nemokingdom@gmail.com>
530 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
532 (pdr_add_alias_set): Update retrieving alias_set_num.
533 (build_poly_dr): Update retrieving dr_base_object_set.
534 (partition_drs_to_sets): Remove.
535 (build_alias_set_optimal_p): New.
536 (build_alias_set_for_drs): Rename.
537 (build_scop_drs): Update.
538 * graphite-sese-to-poly.h (struct base_alias_pair): New.
539 (ALIAS_SET_INDEX): Remove.
540 (BASE_OBJECT_SET_INDEX): Remove.
542 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
544 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
546 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
548 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
549 loop upper bounds for 1-element arrays at end of structures.
550 * tree-flow.h (array_at_struct_end_p): Declared.
551 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
553 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
555 * g++.dg/graphite/pr41305.C: New.
557 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
559 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
560 construction of parameter constraints from loop iteration analysis.
561 * gcc.dg/graphite/run-id-2.c: New test.
563 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
565 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
568 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
570 * graphite-dependences.c (dependence_polyhedron_1): Remove
571 unused gdim dimensions from the DDR polyhedron.
573 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
575 * graphite-dependences.c (pddr_transformed_scattering): New.
576 (dot_original_deps_stmt_1): New.
577 (dot_transformed_deps_stmt_1): New.
578 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
579 dot_transformed_deps_stmt_1.
580 (dot_original_deps): New.
581 (dot_transformed_deps): New.
582 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
584 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
586 * graphite-dependences.c (reduction_dr_1): Remove wrong
587 assert: reduction BBs can have multiple reduction writes
588 to memory. interchange-3.f90 is an example.
590 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
592 * gfortran.dg/graphite/interchange-3.f90: New.
594 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
596 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
598 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
600 * graphite-dependences.c (dependence_polyhedron_1): Add the
601 context to the dependence polyhedron.
603 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
605 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
606 PBB_PDR_DUPLICATES_REMOVED.
609 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
611 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
613 (build_loop_iteration_domains): Extract bounds on parameters
614 based on the data size.
615 (build_scop_context): Do not initialize SCOP_CONTEXT;
618 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
620 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
621 * graphite-ppl.h (graphite-ppl.h): Declared.
623 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
625 * graphite-ppl.c (ppl_print_linear_expr): New.
626 (debug_ppl_linear_expr): New.
627 * graphite-ppl.h (ppl_print_linear_expr): Declared.
628 (debug_ppl_linear_expr): Declared.
630 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
632 * graphite-interchange.c: Fix comments.
633 * gcc.dg/graphite/block-1.c: Fix comments.
635 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
637 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
638 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
640 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
642 Reapply the patch from Alexander Monakov that disappeared during
643 the last merges from trunk.
645 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
647 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
648 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
650 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
652 * graphite-interchange.c (memory_stride_in_loop): The depth
653 argument corresponds to a dynamic time dimension, so use
654 psct_dynamic_dim to refer to the transformed scattering dimension.
656 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
658 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
660 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
662 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
664 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
666 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
668 (print_lst): Print the root of LST in a different format.
669 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
671 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
673 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
675 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
677 * doc/passes.texi: Document the Graphite infrastructure.
679 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
681 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
682 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
683 and check the SSA representation.
685 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
687 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
689 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
691 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
693 * gcc.dg/graphite/interchange-11.c: New.
695 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
697 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
699 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
701 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
702 Add -fno-loop-strip-mine and -fno-loop-interchange.
703 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
704 -fno-loop-strip-mine.
705 * gfortran.dg/graphite/graphite.exp: Same.
707 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
709 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
710 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
711 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
712 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
713 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
714 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
715 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
716 DEFAULT_FLAGS_GRAPHITE_SCOP.
717 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
718 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
720 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
722 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
724 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
725 Sebastian Pop <sebastian.pop@amd.com>
727 * graphite-interchange.c (build_linearized_memory_access): Pass an
729 (memory_stride_in_loop): Include transform scattering in the
730 access functions to be able to querry the strides in the
732 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
733 not the psct_iterator_dim.
735 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
737 * graphite-blocking.c (pbb_do_strip_mine): Removed.
738 (lst_do_strip_mine_loop): New.
739 (lst_do_strip_mine): New.
740 (scop_do_strip_mine): Call lst_do_strip_mine.
741 * graphite-poly.h (lst_add_loop_under_loop): New.
742 (lst_find_first_pbb): New.
744 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
746 * graphite-poly.c (loop_to_lst): Fix LST creation.
748 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
750 * testsuite/gcc.dg/graphite/id-15.c: (8 * 8) replaced with
751 sizeof(unsigned long) to make it run on 32bit systems.
753 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
755 * testsuite/gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
758 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
760 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
762 (write_alias_graph_to_ascii_dot): New.
763 (write_alias_graph_to_ascii_ecc): Ditto.
764 (partition_drs_to_sets): Add testing of optimality of current method
765 which assigns alias numbers according to DFS Comopnent number. used
766 as heuristic for the upcoming ECC algorithm.
767 (build_scop_drs): Write to file also with the ecc and dot format.
769 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
771 * gfortran.dg/graphite/interchange-1.f: XFail.
773 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
775 * graphite.c (graphite_initialize): Do not handle functions with
776 more than 100 basic blocks.
778 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
780 * graphite-blocking.c (pbb_do_strip_mine): Use
781 PARAM_LOOP_BLOCK_TILE_SIZE.
783 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
785 * graphite-poly.c (dot_lst_1): New.
787 * graphite-poly.h (dot_lst): Declared.
789 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
791 * graphite-dependences.c (dot_deps_stmt_1): New.
792 (dot_deps_stmt): New.
793 * graphite-dependences.h (dot_deps_stmt): Declared.
795 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
797 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
798 not replace cross BB scalar dependences ending on PHI nodes.
799 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
801 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
803 * graphite-poly.c (apply_poly_transforms): Implement the high
804 level driver for flag_loop_block.
805 * opts.c (decode_options): Enable flag_loop_block at -O2.
806 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
809 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
811 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
814 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
816 * graphite-poly.h (lst_find_pbb): New.
817 (find_lst_loop): New.
819 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
821 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
822 * graphite-poly.h (struct scop): Remove dep_graph field.
823 (SCOP_DEP_GRAPH): Removed.
825 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
827 * graphite-poly.h (copy_lst): Do full copy of LST.
829 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
831 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
832 when the loop stride is zero.
834 * gcc.dg/graphite/id-16.c: New.
836 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
838 * graphite-dependences.c (reduction_dr_1): New.
839 (reduction_dr_p): New.
840 (graphite_legal_transform_dr): Call reduction_dr_p.
841 (reduction_ddr): Renamed reduction_ddr_p.
842 * graphite-poly.h (same_pdr_p): New.
843 (number_of_write_pdrs): New.
844 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
845 (split_reduction_stmt): Do not split reduction statements
846 when there are no writes to memory.
847 (translate_scalar_reduction_to_array_for_stmt): Insert the
848 memory reduction statement just after the scalar reduction statement.
850 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
852 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
853 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
855 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
857 * graphite-interchange.c (lst_apply_interchange): New.
858 (lst_interchange_profitable_p): New.
859 (lst_try_interchange_loops): New.
860 (lst_try_interchange): New.
861 (lst_do_interchange): New.
862 (pbb_do_interchange): Removed.
863 (scop_do_interchange): Call lst_do_interchange.
865 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
867 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
868 SCOP_TRANSFORMED_SCHEDULE.
873 * graphite-poly.h (lst_p): New.
876 (LST_LOOP_FATHER): New.
879 (scop_to_lst): Declared.
880 (print_lst): Declared.
881 (debug_lst): Declared.
886 (lst_dewey_number): New.
887 (struct scop): Add original_schedule and transformed_schedule fields.
888 (SCOP_ORIGINAL_SCHEDULE): New.
889 (SCOP_TRANSFORMED_SCHEDULE): New.
890 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
892 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
894 * graphite-dependences.c (reduction_ddr): New.
895 (graphite_legal_transform_bb): Call reduction_ddr.
896 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
897 Initialize PBB_IS_REDUCTION.
898 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
899 (PBB_IS_REDUCTION): New.
900 (new_poly_bb): Update declaration.
901 * graphite-scop-detection.h (build_scop_bbs): Removed.
902 (nb_reductions_in_loop): Removed.
903 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
904 parameter for reductions.
905 (try_generate_gimple_bb): Update call to new_poly_bb.
906 (build_scop_bbs_1): Same.
907 (build_scop_bbs): Same.
908 (gsi_for_phi_node): New.
909 (scalar_close_phi_node_p): Remove gcc_assert.
910 (split_reduction_stmt): New.
911 (is_reduction_operation_p): New.
912 (phi_contains_arg): New.
913 (follow_ssa_with_commutative_ops): New.
914 (detect_commutative_reduction_arg): New.
915 (detect_commutative_reduction_assign): New.
916 (follow_inital_value_to_phi): New.
917 (edge_initial_value_for_loop_phi): New.
918 (initial_value_for_loop_phi): New.
919 (detect_commutative_reduction): New.
920 (translate_scalar_reduction_to_array_for_stmt): New.
921 (insert_copyout): New.
922 (insert_copyin): New.
923 (translate_scalar_reduction_to_array): New.
924 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
925 (rewrite_commutative_reductions_out_of_ssa_loop): New.
926 (rewrite_commutative_reductions_out_of_ssa): New.
927 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
928 * sese.h (split_region_for_bb): New.
930 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
931 * gcc.dg/graphite/interchange-1.c: Fix format.
932 * gcc.dg/graphite/interchange-10.c: New.
934 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
936 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
939 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
941 * graphite-sese-to-poly.c (scev_analyzable_p): New.
942 (rewrite_cross_bb_scalar_dependence): New.
943 (rewrite_cross_bb_scalar_deps): New.
944 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
945 Call rewrite_cross_bb_scalar_deps.
947 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
949 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
950 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
953 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
955 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
956 * graphite-interchange.c (pbb_do_interchange): Same.
957 * graphite-poly.c (print_scattering_function): Same.
959 * graphite-poly.h (pbb_loop): New.
960 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
962 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
964 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
966 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
968 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
969 so don't pass a pointer to it.
970 (build_alias_set_for_drs): Same.
971 (build_base_obj_set_for_drs): Same.
972 (build_scop_drs): Same.
974 2009-09-26 Li Feng <nemokingdom@gmail.com>
976 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
977 the alias graph of data references.
979 2009-09-25 Li Feng <nemokingdom@gmail.com>
981 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
982 (build_scop_drs): When debugging, write the alias graph to file,
983 otherwise, should be disabled.
985 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
987 * Merge from mainline (151310:151361).
989 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
991 * Merge from mainline (151171:151310).
993 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
995 * Merge from mainline (151171:151806).
997 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
999 * Revert the last commit.
1001 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1003 * Merge from mainline (151171:151819).
1005 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1007 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
1008 (is_simple_operand): Remove call to stmt_simple_memref_p.
1009 (stmt_simple_for_scop_p): Update call to is_simple_operand.
1011 2009-09-17 David Edelsohn <edelsohn@gnu.org>
1013 * testsuite/gcc.dg/graphite/interchange-mvt.c: New File.
1014 * testsuite/gcc.dg/graphite/scop-dsyrk.c: New File.
1015 * testsuite/gcc.dg/graphite/scop-dsyr2k.c: New File.
1016 * testsuite/gcc.dg/graphite/scop-mvt.c: New File.
1017 * testsuite/gcc.dg/graphite/scop-sor.c: New File.
1019 2009-09-17 Li Feng <nemokingdom@gmail.com>
1021 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
1022 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
1023 (graphite_carried_dependence_level_k): Ditto.
1024 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
1025 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
1026 (new_poly_dr): Adjust declaration.
1027 * graphite-sese-to-poly.c (free_data_refs_aux): New.
1028 (free_gimple_bb): Added free_data_refs_aux.
1029 (build_poly_dr): Add dr_base_object_set.
1030 (partition_drs_to_sets): New.
1031 (dr_same_base_object_p): New.
1032 (build_alias_set_for_drs): New.
1033 (build_base_object_set_for_drs): New.
1034 (build_scop_drs): Add build_base_obj_set_for_drs.
1035 * graphite-sese-to-poly.h: Added #define for alias set number index and
1036 base object set index.
1037 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
1038 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
1040 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
1042 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1043 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1045 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1047 * graphite-sese-to-poly.c (struct irp_data): Removed.
1048 (idx_record_params): Removed.
1049 (find_params_in_bb): Scan for parameters the access functions; don't
1050 parse the tree representation.
1052 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1054 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
1055 passes at -O1 and below.
1057 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1059 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1060 tree-scalar-evolution.h, and then tree-data-ref.h.
1061 * graphite-clast-to-gimple.c: Same.
1062 * graphite-dependences.c: Same.
1063 * graphite-interchange.c: Same.
1064 * graphite-poly.c: Same.
1065 * graphite-scop-detection.c: Same.
1066 * graphite-sese-to-poly.c: Same.
1068 * lambda-code.c: Same.
1069 * matrix-reorg.c: Same.
1070 * tree-data-ref.c: Same.
1071 * tree-if-conv.c: Same.
1072 * tree-loop-distribu: Same.: Same.
1073 * tree-loop-linear.c: Same.
1074 * tree-parloops.c: Same.
1075 * tree-predcom.c: Same.
1076 * tree-vect-patterns.c: Same.
1078 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
1080 Partially revert the previous patch, except the following.
1081 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
1082 as parameters the operands of the not expression.
1084 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1086 * tree-scalar-evolution.c (instantiate_scev_assign): New.
1087 Do not call analyze_scalar_evolution on assignments.
1088 (instantiate_scev_phi): Call analyze_scalar_evolution.
1089 (instantiate_scev_name): Call instantiate_scev_assign and
1090 instantiate_scev_phi.
1091 (instantiate_scev_not): Adapted to pass as parameters the operands
1092 of the not expression.
1094 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1096 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
1097 to pass as parameters the operands of the binary expression.
1099 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1101 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
1102 instantiate_scev_not. Handle NEGATE_EXPR.
1103 (instantiate_scev_r): Handle NEGATE_EXPR.
1105 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1107 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
1109 (instantiate_scev_r): Move code in instantiate_scev_2
1110 and instantiate_scev_1.
1112 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1114 * tree-scalar-evolution.c (instantiate_scev_3): New.
1115 (instantiate_scev_1): Move code in instantiate_scev_3.
1117 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1119 * tree-scalar-evolution.c (instantiate_scev_poly): New.
1120 (instantiate_scev_1): Move code in instantiate_scev_poly.
1122 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1124 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
1125 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
1127 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1129 * tree-scalar-evolution.c (instantiate_scev_convert): New.
1130 (instantiate_scev_1): Move code in instantiate_scev_convert.
1132 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1134 * tree-scalar-evolution.c (instantiate_scev_binary): New.
1135 (instantiate_scev_1): Move code in instantiate_scev_binary.
1137 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1139 * tree-scalar-evolution.c (instantiate_scev_name): New.
1140 (instantiate_scev_1): Move code in instantiate_scev_name.
1142 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1144 * Merge from mainline (150992:151171).
1146 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1148 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
1150 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1152 * graphite-dependences.c (graphite_legal_transform_bb): Call
1153 pbb_remove_duplicate_pdrs.
1154 * graphite-poly.c (can_collapse_pdr): Removed.
1155 (pdr_find_duplicate): Removed.
1156 (can_collapse_pdrs): New.
1157 (pbb_remove_duplicate_pdrs): New.
1158 (new_poly_dr): Do not look for duplicates.
1159 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
1160 (PBB_PDR_DUPLICATES_REMOVED): New.
1161 (pbb_remove_duplicate_pdrs): Declared.
1163 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1165 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
1166 the strides by multiplying by PDR_NB_REFS.
1167 * graphite-poly.c (can_collapse_pdr): New.
1168 (pdr_find_duplicate): New.
1169 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
1170 Initialize PDR_NB_REFS.
1171 * graphite-poly.h (struct poly_dr): Add field nb_refs.
1173 (new_poly_dr): Number of subscripts is a graphite_dim_t.
1175 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1177 Revert one of the previous commits:
1178 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1179 the computation of symmetric data dependence relations.
1180 (dependency_between_pbbs_p): Same.
1182 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1185 * graphite-poly.c (apply_poly_transforms): Remove legality test before
1188 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1190 * graphite-dependences.c (pddr_original_scattering): Return NULL
1191 for read-read dependence relations.
1192 * graphite-poly.h (enum poly_dr_type): Fix comment.
1195 (pdr_may_write_p): New.
1197 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1199 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
1200 (struct poly_dr): Same.
1201 (new_poly_dr): Same.
1202 * graphite-poly.c (new_poly_dr): Same.
1204 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1205 Sebastian Pop <sebastian.pop@amd.com>
1207 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
1208 pbb_strip_mine_time_depth. Changed the implementation so that
1209 transformation is expressed as a transformation on
1210 time (scatttering) dimensions. Also, ensures that the 2d+1
1211 scheduling format is preserved.
1212 (pbb_strip_mine_profitable_p): Profitability is based on the
1213 iteration number of a given time (scattering) dimension,
1214 and not on a original loop depth dimension.
1215 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
1216 (pbb_do_strip_mine): Call psct_dynamic_dim.
1217 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
1218 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
1219 (pbb_nb_dynamic_scattering_transform): New.
1220 (psct_dynamic_dim): New.
1222 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1224 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1225 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1226 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
1227 * graphite-interchange.c (build_linearized_memory_access): Same.
1228 (memory_stride_in_loop): Same.
1230 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1232 * graphite-dependences.c (pddr_original_scattering): New.
1233 (graphite_legal_transform_dr): Call pddr_original_scattering.
1236 * graphite-dependences.h (dot_deps): Declared.
1237 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
1238 (print_pdr): Print PDR_ID.
1239 * graphite-poly.h (struct poly_dr): Add field id.
1242 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
1244 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
1246 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
1247 not delete the original dependence relation.
1249 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1251 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1252 the computation of symmetric data dependence relations.
1253 (dependency_between_pbbs_p): Same.
1255 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1257 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
1258 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
1259 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
1260 (free_poly_ddr): New.
1261 (pddr_is_empty): New.
1262 (dependence_polyhedron_1): Now returns a poly_ddr_p.
1263 (dependence_polyhedron): Same. Remove useless gcc_assert.
1265 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
1266 (graphite_carried_dependence_level_k): Call pddr_is_empty.
1267 * graphite-dependences.h (enum poly_dependence_kind): New.
1268 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
1269 (PDRP_SOURCE): Renamed PDDR_SOURCE.
1270 (PDRP_SINK): Renamed PDDR_SINK.
1271 (PDRP_DDP): Renamed PDDR_DDP.
1273 (free_poly_ddr): Declared.
1274 * graphite-poly.c (new_scop): Use the new hash function names.
1275 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
1276 into original_pddrs.
1277 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
1279 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1281 * Merge from mainline (150764:150992).
1283 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1285 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
1286 bounds with LT_EXPR to make niter analysis more precise on code
1287 generated by Graphite.
1289 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1291 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
1292 (graphite_legal_transform_bb): Same.
1293 (poly_drs_may_alias_p): Same.
1295 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
1298 * graphite-ppl.c (ppl_max_for_le): Correct the use of
1299 ppl_Pointset_Powerset_C_Polyhedron_maximize.
1301 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1303 * graphite-poly.c (print_pbb): Print PBB index.
1305 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1307 * Merge from mainline (r150672:150764).
1309 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1311 * graphite-interchange.c (ppl_max_for_le): Moved...
1312 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
1313 * graphite-ppl.c (ppl_max_for_le): ... here.
1314 * graphite-ppl.h (ppl_max_for_le): Declared.
1316 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
1318 * Merge from mainline (r150372:150672).
1320 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1323 * sese.c (convert_for_phi_arg): New.
1324 (add_guard_exit_phis): Use convert_for_phi_arg.
1326 * testsuite/gfortran.dg/graphite/id-17.f: New.
1328 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1330 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
1331 unknown subscript upper bounds.
1333 * testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL.
1335 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1336 Pranav Garg <pranav.garg2107@gmail.com>
1338 * graphite-interchange.c (gather_access_strides): Removed.
1339 (ppl_max_for_le): New.
1340 (build_linearized_memory_access): New.
1341 (memory_stride_in_loop): New.
1342 (pbb_interchange_profitable_p): Reimplemented.
1343 * graphite-ppl.h (ppl_new_id_map): New.
1344 (ppl_interchange): New.
1346 * testsuite/gcc.dg/graphite/interchange-6.c: XFAILed.
1348 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1350 * graphite-interchange.c (compute_subscript): Removed.
1351 (compute_array_size_cstr): Removed.
1352 (compute_array_size_poly): Removed.
1353 (compute_array_size): Removed.
1354 (gather_access_strides_poly): Removed.
1355 (gather_access_strides): Empty.
1357 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1359 * graphite-dependences.c (dependence_polyhedron_1): Replace
1360 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
1361 (graphite_legal_transform_dr): Same.
1362 (graphite_carried_dependence_level_k): Same.
1363 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
1364 Initialize PDR_NB_SUBSCRIPTS.
1365 (print_pdr_access_layout): Replace pdr_nb_subscripts with
1367 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
1368 (PDR_NB_SUBSCRIPTS): New.
1369 (pdr_nb_subscripts): Removed.
1370 (pdr_dim): Simplified.
1371 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
1372 with PDR_NB_SUBSCRIPTS.
1374 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1376 * graphite-interchange.c (compute_array_size): Remove use of
1378 * graphite-poly.c (new_poly_dr): Remove argument data_container.
1379 Do not initialize PDR_DATA_CONTAINER.
1380 (print_pdr): Do not print PDR_DATA_CONTAINER.
1381 * graphite-poly.h (struct poly_dr): Remove data_container field.
1382 (PDR_DATA_CONTAINER): Removed.
1383 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
1385 (build_poly_dr): Same.
1387 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1389 * testsuite/gcc.dg/graphite/interchange-9.c: New.
1391 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1392 Sebastian Pop <sebastian.pop@amd.com>
1394 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
1395 copy of the dependence polyhedron. Free the temporary objects.
1396 (graphite_carried_dependence_level_k): Free unused objects before
1399 * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
1400 * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
1401 * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
1402 * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
1403 * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
1405 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1407 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
1408 Early return without analyzing the data dependences if no
1409 transform has been done. Call restore_scattering if the transform
1411 (graphite-interchange.c): Same.
1412 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
1413 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
1414 (apply_poly_transforms): Do not gcc_assert that
1415 the transform is legal.
1416 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1417 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
1418 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
1419 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1420 * graphite-poly.h (struct poly_scattering): New.
1421 (struct poly_bb): Add original, transformed, and saved fields.
1422 Remove transformed_scattering, original_scattering, nb_local_variables,
1423 and nb_scattering_transform fields.
1424 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
1425 (poly_scattering_new): New.
1426 (poly_scattering_free): New.
1427 (poly_scattering_copy): New.
1428 (store_scattering_pbb): New.
1429 (store_scattering): New.
1430 (restore_scattering_pbb): New.
1431 (restore_scattering): New.
1432 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1433 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
1435 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1437 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
1440 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1442 * Makefile.in (graphite.o): Depends on PREDICT_H.
1443 * graphite.c: Include predict.h.
1444 (graphite_finalize): Call tree_estimate_probability.
1445 * predict.c (predict_loops): Do not call scev_initialize and
1447 (tree_estimate_probability_bb): New.
1448 (tree_estimate_probability): Do not initialize loops: move that
1449 code to the driver. Call tree_estimate_probability_bb.
1450 (tree_estimate_probability_driver): New.
1451 (pass_profile): Use tree_estimate_probability_driver.
1452 * predict.h (tree_estimate_probability): Declared.
1454 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1456 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
1457 * graphite-dependences.c (graphite_legal_transform): Add time to
1458 TV_GRAPHITE_DATA_DEPS.
1459 (dependency_between_pbbs_p): Same.
1460 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
1462 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
1464 * Merge from mainline (r149952:150372).
1466 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1468 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
1469 * graphite-blocking.c: Same.
1470 * graphite-clast-to-gimple.c: Same.
1471 * graphite-dependences.c: Same.
1472 * graphite-poly.c: Same.
1473 * graphite-poly.h: Same.
1474 * graphite-ppl.c: Same.
1475 * graphite-scop-detection.c: Same.
1476 * graphite-sese-to-poly.c: Same.
1479 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1481 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
1482 (remove_simple_copy_phi): New.
1483 (remove_invariant_phi): New.
1484 (simple_copy_phi_p): New.
1485 (reduction_phi_p): New.
1486 (gsi_for_ssa_name_def): New.
1487 (insert_out_of_ssa_copy): New.
1488 (insert_out_of_ssa_copy_on_edge): New.
1489 (create_zero_dim_array): New.
1490 (scalar_close_phi_node_p): New.
1491 (rewrite_close_phi_out_of_ssa): New.
1492 (rewrite_phi_out_of_ssa): New.
1493 (rewrite_reductions_out_of_ssa): New.
1494 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
1496 * testsuite/gcc.dg/graphite/id-11.c: New.
1497 * testsuite/gcc.dg/graphite/id-15.c: New.
1498 * testsuite/gcc.dg/graphite/interchange-1.c: Un-XFAIL.
1499 * testsuite/gcc.dg/graphite/interchange-2.c: Un-XFAIL.
1500 * testsuite/gcc.dg/graphite/interchange-3.c: Un-XFAIL.
1501 * testsuite/gcc.dg/graphite/interchange-4.c: Un-XFAIL.
1502 * testsuite/gcc.dg/graphite/interchange-7.c: Un-XFAIL.
1503 * testsuite/gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
1504 * testsuite/gfortran.dg/graphite/id-13.f: New.
1505 * testsuite/gfortran.dg/graphite/id-5.f: New.
1507 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1509 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
1510 check that nb_reductions_in_loop is zero.
1511 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
1512 reduction phi nodes.
1513 (nb_reductions_in_loop): Removed.
1514 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
1515 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
1516 (bb_contains_non_iv_scalar_phi_nodes): Removed.
1517 (scop_contains_non_iv_scalar_phi_nodes): Removed.
1518 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
1520 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1522 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
1523 statements that have an empty iteration domain.
1524 * testsuite/gfortran.dg/graphite/id-16.f: New.
1526 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1528 * tree-scalar-evolution.c (instantiate_scev_1): Return
1529 chrec_dont_know when the result is not above instantiate_below.
1530 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
1531 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
1532 the tree has a known scalar evolution.
1533 * testsuite/gfortran.dg/graphite/id-14.f: New.
1534 * testsuite/gfortran.dg/graphite/id-15.f: New.
1536 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1538 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
1540 (rename_variables): Keep inserting renames after the ones already
1543 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1545 * graphite-sese-to-poly.c (compare_bb_depths): New.
1546 (graphite_sort_dominated_info): New.
1547 (build_scop_bbs_1): Call graphite_sort_dominated_info.
1548 (build_scop_scattering): Fix comment.
1550 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1552 * graphite.c (graphite_finalize): Call print_loops instead of
1553 dump_function_to_file.
1554 * testsuite/gcc.dg/graphite/graphite.exp: Fix formatting.
1555 * testsuite/gcc.dg/graphite/pr35356-1.c: New. Look for the number of
1556 loops generated in the graphite output file.
1557 * testsuite/gcc.dg/graphite/pr35356-2.c: New.
1558 * testsuite/gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
1559 * testsuite/gfortran.dg/graphite/id-12.f: New.
1561 2009-07-24 Li Feng <nemokingdom@gmail.com>
1563 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
1566 2009-07-24 Li Feng <nemokingdom@gmail.com>
1567 Tobias Grosser <grosser@fim.uni-passau.de>
1569 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
1570 alias set number build alias in ACCESSES polyhedron.
1571 (build_alias_set_for_drs): New.
1572 (build_pbb_drs): Added build_alias_set_for_drs.
1573 * graphite-dependences.c (poly_drs_may_alias_p): New.
1574 (graphite_carried_dependence_level_k): Check alias information
1575 before building polyhedron.
1577 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
1579 * Makefile.in (lambda-code.o): Fix formatting.
1581 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
1583 * Merge from mainline (r149350-149952)
1585 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
1587 * graphite-poly.c (apply_poly_transforms): Move strip_mine
1588 before interchange to prepare for loop blocking.
1590 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
1592 * graphite-poly.c (apply_poly_transforms): Add checks after every
1594 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
1595 done in apply_poly_transforms.
1597 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1599 * graphite-dependences.c (build_lexicographically_gt_constraint):
1600 Replace RES parameter with *RES.
1601 (dependence_polyhedron_1): Pass an address of the parameter RES
1602 instead of value of RES.
1604 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1606 * graphite.c (graphite_finalize): Fix comment.
1607 (graphite_transform_loops): Reset scev info after code generation
1610 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1612 * graphite.c (graphite_finalize): Call scev_reset.
1614 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1616 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
1617 GBB_CLOOG_IV_TYPES hash table twice.
1618 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
1619 (add_condition_to_domain): Clear GMP values.
1621 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1623 * graphite-dependences.c: Fix formatting.
1624 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
1625 (pbb_number_of_iterations): Free ppl_Linear_Expression.
1626 * graphite-sese-to-poly.c: Fix formatting.
1627 * graphite.c (graphite_transform_loops): Create the hash table
1628 after the early return.
1630 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1632 * testsuite/gcc.dg/graphite/id-14.c: New.
1633 * testsuite/gcc.dg/graphite/pr40157.c: New.
1634 * testsuite/gfortran.dg/graphite/id-11.f: New.
1636 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1638 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
1639 (build_poly_scop): Return false when there are no pbbs within
1640 loops to avoid to pass to cloog scops with no loops.
1642 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1644 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
1645 useless test "i % 2".
1646 (build_pbb_scattering_polyhedrons): Fix formatting.
1647 (build_poly_dr): Same.
1648 * graphite.c (graphite_transform_loops): Restructure.
1650 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
1652 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
1653 reduction_list parameter.
1654 (rewrite_all_phi_nodes_with_iv): Same.
1655 (canonicalize_loop_ivs): Same.
1656 * tree-parloops.c (struct brli): Removed.
1657 (build_reduction_list_info): Removed.
1658 (build_new_reduction): New.
1659 (analyze_reduction_list): Removed.
1660 (gather_scalar_reductions): Find reductions instead of phi
1661 nodes that can't be canonicalized.
1662 (try_create_reduction_list): Remove reduction_list parameter.
1663 (gen_parallel_loop): Same.
1664 (parallelize_loops): Remove analyze_reductions variable,
1665 initialization and free.
1666 Change reduction_list htab initialization to reduction_info
1667 elements instead of ssa names.
1668 Call try_create_reduction_list and gen_parallel_loop without
1669 analyzed_reduction argument.
1670 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
1671 canonicalize_loop_ivs with one less argument.
1672 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
1674 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1676 * graphite-dependences.c (new_poly_dr_pair): New.
1677 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
1678 (new_poly_dr_pair): New.
1679 (eq_poly_dr_pair_p): New.
1680 (hash_poly_dr_pair_p): New.
1681 * graphite-dependences.h (struct poly_dr_pair): New.
1682 (eq_poly_dr_pair_p): Declared.
1683 (hash_poly_dr_pair_p): Declared.
1684 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
1685 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
1686 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
1687 * Makefile.in (graphite-poly.o): Add dependence on
1688 graphite-dependences.h.
1690 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
1692 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
1693 polynomials of degree > 1 pass to Graphite.
1694 * tree-chrec.c (scev_is_linear_expression): Call
1695 evolution_function_is_affine_multivariate_p.
1696 * testsuite/gfortran.dg/graphite/id-10.f90: New.
1698 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
1700 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
1701 Instantiate scevs varying in outer loops.
1702 * testsuite/gfortran.dg/graphite/id-9.f: Correct testcase.
1704 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
1706 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
1707 redundant constraint.
1709 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
1711 * testsuite/gcc.dg/graphite/graphite.exp: Fix comments.
1712 * testsuite/gfortran.dg/graphite/graphite.exp: Trigger actions
1713 based on the file names as in the C testsuite.
1714 * testsuite/gfortran.dg/graphite/block-1.f90: Fix patterns.
1715 * testsuite/gfortran.dg/graphite/block-2.f: Same.
1716 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
1717 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
1718 * testsuite/gfortran.dg/graphite/id-1.f90: Same.
1719 * testsuite/gfortran.dg/graphite/id-2.f90: Same.
1720 * testsuite/gfortran.dg/graphite/id-3.f90: Same.
1721 * testsuite/gfortran.dg/graphite/id-4.f90: Same.
1722 * testsuite/gfortran.dg/graphite/id-6.f: Same.
1723 * testsuite/gfortran.dg/graphite/id-9.f: Same.
1724 * testsuite/gfortran.dg/graphite/interchange-1.f: Same.
1725 * testsuite/gfortran.dg/graphite/interchange-2.f: Same.
1726 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
1728 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
1730 * sese.c (expand_scalar_variables_call): New.
1731 (expand_scalar_variables_ssa_name): Handle calls in expander.
1733 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
1735 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
1736 Expect to see the pattern twice.
1737 * testsuite/gcc.dg/graphite/interchange-0.c: Un-XFAIL.
1738 * testsuite/gcc.dg/graphite/interchange-5.c: Same.
1739 * testsuite/gcc.dg/graphite/interchange-6.c: Same.
1741 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
1743 * testsuite/gcc.dg/graphite/id-10.c: New.
1744 * testsuite/gcc.dg/graphite/id-12.c: New.
1745 * testsuite/gfortran.dg/graphite/id-7.f: New.
1746 * testsuite/gfortran.dg/graphite/id-8.f: New.
1748 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
1750 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
1753 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
1755 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
1757 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
1759 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
1761 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
1763 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
1764 building PDR subscripts.
1766 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
1768 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
1769 computation of array sizes.
1771 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
1773 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
1775 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
1777 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
1778 build_pairwise_constraint, dr_equality_constraints,
1779 build_pairwise_scheduling_equality,
1780 build_pairwise_scheduling_inequality, lexicographically_gt_p,
1781 build_lexicographically_gt_constraint, dependence_polyhedron,
1782 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
1783 Move from NNC_Polyhedron to C_Polyhedron.
1784 * graphite-interchange.c (compute_array_size_poly,
1785 gather_access_strides): Dito.
1786 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
1787 free_scop, pbb_number_of_iterations): Dito.
1788 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
1789 pbb_dim_iter_domain, struct scop): Dito.
1790 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
1791 new_Cloog_Domain_from_ppl_Polyhedron,
1792 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
1793 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
1794 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
1795 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
1796 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
1797 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
1798 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
1799 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
1800 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
1801 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
1802 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
1803 build_scop_iteration_domain, build_poly_dr): Dito
1805 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1807 * testsuite/gcc.dg/graphite/graphite.exp: Added a rule to execute
1809 * testsuite/gcc.dg/graphite/run-id-1.c: New.
1811 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1813 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
1814 positivity constraint on the symbolic number of iterations.
1816 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1818 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
1820 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1821 Tobias Grosser <grosser@fim.uni-passau.de>
1823 * graphite-clast-to-gimple.c (build_scop_context): Removed.
1824 (build_cloog_prog): Directly use SCOP_CONTEXT.
1825 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
1826 (free_scop): Free SCOP_CONTEXT.
1827 (print_scop_context): New.
1828 (print_scop): Call print_scop_context.
1829 (debug_scop_context): New.
1830 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
1831 (struct scop): Added field context.
1832 (SCOP_CONTEXT): New.
1833 * graphite-sese-to-poly.c (add_param_constraints): New.
1834 (build_scop_context): New.
1835 (build_poly_scop): Call build_scop_context.
1837 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1839 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
1840 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
1841 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
1842 * graphite-ppl.h: Include double-int.h and tree.h.
1843 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
1844 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
1845 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
1846 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
1848 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1850 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
1851 POINTER_PLUS_EXPR for pointer types.
1852 (clast_to_gcc_expression): Same.
1854 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1856 * graphite-poly.c (print_scattering_function): Early return when
1857 PBB_TRANSFORMED_SCATTERING is not initialized.
1858 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
1860 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
1862 * tree-parloops.c (analyze_reduction_list): Remove unused variable
1865 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
1867 * tree-parloops.c (analyze_reduction_list): Change return
1869 (try_create_reduction_list): Move the call to
1870 analyze_reduction_list to the beginining.
1871 Call reduction_phi with analyzed_reductions as argument
1872 instead of reduction_list.
1874 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
1876 * Merge from mainline (r148296:149346)
1878 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
1880 * graphite-scop-detection.c (graphite_can_represent_init): New.
1881 (graphite_can_represent_scev): Call graphite_can_represent_init:
1882 check that the initial value does not contain multiplications of
1884 (stmt_has_simple_data_refs_p): New.
1885 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
1886 (is_simple_operand): Fix formatting.
1887 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
1889 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
1891 * testsuite/gcc.dg/graphite/id-13.c: New.
1892 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
1893 analyze_scalar_evolution, use scalar_evolution_in_region.
1894 (scan_tree_for_params_right_scev): Add extra assert.
1895 (parameter_index_in_region_1): Split from parameter_index_in_region.
1896 (idx_record_params): Use scalar_evolution_in_region.
1897 (find_params_in_bb): Same.
1898 (find_scop_parameters): Same.
1899 (build_loop_iteration_domains): Same.
1900 (create_linear_expr_from_tree): Same.
1901 * sese.c (scalar_evolution_in_region): New.
1902 * sese.h (scalar_evolution_in_region): Declared.
1903 (defined_in_sese_p): New.
1904 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
1906 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
1909 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
1911 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
1912 TREE_DATA_REF_H also implies SCEV_H.
1914 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
1916 * graphite-poly.c (print_scop_params): New.
1917 (print_scop): Call print_scop_params.
1918 (debug_scop_params): New.
1919 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
1921 2009-07-07 Li Feng <nemokingdom@gmail.com>
1923 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
1924 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
1925 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
1926 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
1927 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
1928 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
1930 2009-07-07 Li Feng <nemokingdom@gmail.com>
1932 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
1933 for dependency checking part.
1934 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
1935 tests for dependency checking.
1936 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
1937 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
1938 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
1939 flag -fdump-tree-graphite-all for autopar testsuites.
1941 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
1943 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
1944 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
1945 canonicalize_loop_ivs): Moved...
1946 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
1948 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
1950 * tree-parloops.c (try_create_reduction_list): Pass an extra
1951 argument analyzed_reductions. Call analyze_reduction_list.
1952 (gen_parallel_loop): Do not call analyze_reduction_list.
1953 (parallelize_loops): Init and finalize analyzed_reductions.
1955 2009-07-06 Li Feng <nemokingdom@gmail.com>
1957 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
1958 Added flag -fno-loop-strip-mine for autopar testcase.
1960 2009-07-04 Li Feng <nemokingdom@gmail.com>
1962 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
1963 transformed scattering dimension instead of unmatch orignal when
1964 calling dependence_polyhedron.
1966 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
1968 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
1970 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
1972 * graphite-poly.c (pbb_number_of_iterations): Check for returned
1973 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
1975 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
1977 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
1978 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
1979 * graphite-poly.c (pbb_number_of_iterations): New.
1980 * graphite-poly.h (pbb_number_of_iterations): Declared.
1981 (pbb_iterator_dim, pbb_parameter_dim): New.
1983 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
1985 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
1986 last commit on type of lower and upper bound of loops.
1988 2009-06-29 Li Feng <nemokingdom@gmail.com>
1990 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
1991 graphite-dependences.h.
1992 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
1993 (mark_bb_with_pbb): New.
1994 (get_stmtfor_depth): New.
1995 (find_pbb_via_hash): New.
1996 (dependency_in_loop_p): New.
1997 (mark_loops_parallel): New.
1998 (free_aux_in_new_loops): New.
1999 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
2000 bb with it's relevant pbb. Mark newly created loops. Remove mark
2001 innermost loop parallel without checking.
2002 (gloog): Add parameter BB_PBB_MAPPING.
2003 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
2004 (gloog): Change declaration.
2005 (mark_loop_parallel): Make extern.
2006 (free_aux_in_new_loops): Declare.
2007 (bb_pbb_map_hash): New.
2008 (eq_bb_pbb_map): New.
2009 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
2010 auto parallelization when flag_graphite_force_parallel is set.
2011 (graphite_finalize): Added free_aux_in_new_loops.
2012 * tree-parloops.c (parallelize_loops): Only generate parallel code for
2013 the innermost loop that marked parallel. Use
2014 flag_graphite_force_parallel instead of loop->can_be_parallel.
2015 (loop_parallel_p): Move inner most checking out of function.
2017 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2019 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
2020 type of lower and upper bound of loops signed long int.
2022 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2024 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
2025 expression outside the loop.
2027 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2029 * gcc.dg/graphite/interchange-8.c: New.
2031 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2033 * gcc.dg/graphite/interchange-0.c: XFailed.
2034 * gcc.dg/graphite/interchange-5.c: XFailed.
2035 * gcc.dg/graphite/interchange-6.c: XFailed.
2037 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2039 * graphite-interchange.c (compute_array_size_poly): The end of the
2040 recursion should return 1.
2042 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2044 * graphite-interchange.c (compute_array_size_cstr): Allow the
2045 subscript multiplier to be -1.
2046 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
2047 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
2048 data_container. Initializes PDR_DATA_CONTAINER.
2049 (print_pdr_access_layout): New.
2050 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
2051 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
2053 (PDR_DATA_CONTAINER): New.
2054 (new_poly_dr): Update declaration.
2055 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
2056 (build_poly_dr): Call pdr_add_data_dimensions.
2058 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2060 * graphite-poly.h (struct poly_dr): Fix comment.
2061 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
2062 (pdr_add_memory_accesses): New.
2063 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
2065 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2067 * graphite-poly.c (print_pdrs, debug_pdrs): New.
2068 (print_pbb): Add call to print_pdrs.
2069 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
2071 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2072 Li Feng <nemokingdom@gmail.com>
2074 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
2075 (dependency_between_pbbs_p): New.
2076 (lexicographically_gt_p): Assure !empty_p before polyhedron
2077 intersection assign.
2078 (build_lexicographically_gt_constraint): Correct lexicographically
2080 * graphite-dependences.h: New.
2081 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
2083 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2085 * graphite-clast-to-gimple.c (print_clast_stmt): New.
2086 (gloog): Print to dump_file the generated clast.
2087 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
2088 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
2090 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2092 * graphite-poly.c (extend_scattering): Increment
2093 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
2095 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2097 * graphite-interchange.c (compute_array_size_poly): Added exit of
2098 recursion condition. Continue iterating even after the first equality.
2099 (compute_array_size): Same.
2101 2009-06-24 Li Feng <nemokingdom@gmail.com>
2103 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
2104 -fdump-tree-final_cleanup to -fdump-tree-optimized.
2105 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2106 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2107 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
2109 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2111 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
2112 only when the use verifies is_gimple_reg.
2114 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2116 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
2117 Allocate scaldims after call to unify_scattering_dimensions.
2119 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2121 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
2123 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2124 Albert Cohen <albert.cohen@inria.fr>
2126 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
2127 variables for the strip mining.
2129 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2130 Pranav Garg <pranav.garg2107@gmail.com>
2132 * Makefile.in (OBJS-common): Added graphite-blocking.o.
2133 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
2134 (graphite-blocking.o): New rule.
2135 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
2136 * graphite-blocking.c: New.
2137 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
2138 flag_loop_strip_mine.
2139 (psct_scattering_dim_for_loop_depth): New.
2140 * graphite-poly.h (scop_do_strip_mine): Declared.
2141 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
2142 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
2143 flag_loop_strip_mine.
2145 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2147 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
2148 a GMP value and a PPL coefficient at each iteration of a loop.
2150 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2152 * graphite-dependences.c (dependence_polyhedron): Do not use
2153 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
2154 pbb_nb_scattering_transform.
2155 (graphite_legal_transform_dr): Same.
2156 * graphite-poly.c (extend_scattering): Same.
2157 (unify_scattering_dimensions): Same.
2158 (print_scattering_function): Same.
2159 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
2160 PBB_NB_LOCAL_VARIABLES.
2161 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
2162 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
2163 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
2164 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
2165 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
2166 (pbb_nb_scattering_transform): New.
2167 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
2168 (psco_scattering_dim): Add assert on parameters.
2169 (psct_scattering_dim): Same.
2170 (psct_scattering_dim_for_loop_depth): Declared.
2171 (psct_local_var_dim): New.
2172 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
2173 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
2174 correct layout, call pbb_nb_local_vars.
2175 (psct_add_local_variable, psct_add_scattering_dimension): New.
2176 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2177 Initialize PBB_NB_SCATTERING_TRANSFORM.
2179 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2181 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
2182 (set_coef): Renamed ppl_set_coef.
2183 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
2185 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2187 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
2188 test a boolean against 1.
2189 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
2190 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
2191 (pbb_do_interchange): Returns true when a transform has been performed.
2192 (scop_do_interchange): Same.
2193 * graphite-poly.c (apply_poly_transforms): Use the return value of
2194 scop_do_interchange.
2195 * graphite-poly.h (scop_do_interchange): Update declaration.
2197 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
2199 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
2201 * sese.c (sese_reset_aux_in_loops): New.
2202 * sese.h (sese_reset_aux_in_loops): New.
2204 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2206 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
2207 multiplier and multiply the constant by the multiplier.
2208 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
2209 (build_poly_dr): Do not use the multiplier to define the subscript.
2211 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2213 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
2214 compiler's data reference. Initialize PDR_CDR.
2215 (print_pdr): Call dump_data_reference.
2216 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
2217 Add compiler_dr field.
2218 (PDR_BB): Renamed PDR_PBB.
2220 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
2221 GCC's data reference representation.
2222 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
2223 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
2225 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2227 * graphite-poly.c (print_scattering_function): Also print the layout.
2228 * graphite-poly.h (pbb_nb_local_vars): New.
2230 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2232 * graphite-poly.c (print_pbb_domain): Also print the layout names.
2234 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2236 * graphite-poly.c (print_pdr, debug_pdr): New.
2237 * graphite-poly.h (print_pdr, debug_pdr): Declared.
2238 (PDR_BASE): Removed.
2240 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2242 * gcc/testsuite/gcc.dg/graphite/interchange-{1..7}.c: New avatars of
2245 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2247 * graphite-interchange.c (compute_subscript): Allow also -1 in the
2248 subscript identification column.
2249 (pbb_do_interchange): Print to dump_file that some loops "will be
2250 interchanged". Rely on that chain of characters in the testcases.
2251 * gcc.dg/graphite/interchange-0.c: New.
2252 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
2253 interchange-*.c files and compile them with -floop-interchange.
2255 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
2257 * graphite-interchange.c (interchange_profitable_p): Renamed
2258 pbb_interchange_profitable_p.
2260 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2261 Harsha Jagasia <harsha.jagasia@amd.com>
2262 Pranav Garg <pranav.garg2107@gmail.com>
2264 * graphite-interchange.c (interchange_profitable_p): Make static.
2265 (pbb_interchange_loop_depths, pbb_do_interchange,
2266 scop_do_interchange): New.
2267 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
2268 for flag_loop_interchange.
2269 * graphite-poly.h (scop_do_interchange): Declared.
2270 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
2271 flag_loop_interchange is used.
2273 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2275 * graphite-dependences.c (dependence_polyhedron): Update use of
2276 pbb_nb_scattering_dims.
2277 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
2278 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
2279 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
2280 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
2282 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2284 * graphite.c: Cleanup foo.
2286 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2288 * Merge from mainline (r143684:148293).
2289 * Disabled libpcp until it gets fixed.
2291 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
2292 Harsha Jagasia <harsha.jagasia@amd.com>
2294 * graphite-interchange.c: New.
2295 * Makefile.in (graphite-interchange.o): New.
2296 * graphite-poly.h (interchange_profitable_p): Declared.
2297 * graphite-ppl.h (value_max): New.
2299 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2301 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
2302 * graphite-poly.h: Fix some comments.
2306 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2309 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
2310 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
2311 (pdr_accessp_nb_params): Renamed pdr_nb_params.
2312 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
2313 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
2314 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
2315 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
2316 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
2317 * graphite-clast-to-gimple.c: Same.
2318 * graphite-dependences.c: Same.
2319 * graphite-poly.c: Same.
2320 * graphite-sese-to-poly.c: Same.
2322 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2324 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
2325 expressions for an IV rename, as returned by clast_to_gcc_expression.
2326 (copy_renames): Rename new_name to expr.
2327 * sese.c (debug_rename_elt): Same.
2330 (sese_adjust_liveout_phis): Call force_gimple_operand before using
2331 the information from the rename map.
2332 (rename_variables_in_stmt): Same.
2333 (add_loop_exit_phis): Rename new_name to expr.
2334 (insert_loop_close_phis): Same.
2335 (add_guard_exit_phis): Same. Call force_gimple_operand.
2336 * sese.h (struct rename_map_elt): Rename new_name to expr.
2337 (new_rename_map_elt): Same.
2339 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2341 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
2342 * sese.c (set_rename): Make it extern.
2343 * sese.h (set_rename): Declared.
2345 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2347 * graphite-poly.c (extend_scattering): Free values.
2348 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
2350 (ppl_print_powerset_matrix): Same.
2351 * graphite-scop-detection.c (free_scops_1): New.
2352 (limit_scops): Call free_scops_1.
2353 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
2354 (build_poly_dr): Free PPL coefficients.
2355 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
2357 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
2359 * graphite-dependences.c: New.
2360 * graphite-data-ref.c: Removed.
2361 * graphite-data-ref.h: Removed.
2362 * Makefile.in (graphite-data-ref.o): Removed.
2363 (graphite-dependences.o): Added.
2364 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
2365 * graphite-poly.c: Same.
2366 Move the data dependence testing to graphite-dependences.c.
2368 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
2370 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
2371 from graphite_cannot_represent_loop. Code refactored.
2372 (scopdet_basic_block_info): Call graphite_can_represent_loop.
2374 2009-05-17 Li Feng <nemokingdom@gmail.com>
2376 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2377 Cover all the testcases (not only the filtered ones).
2379 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
2381 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
2382 unnecessary check. Update comments. Move check for REAL_TYPE here.
2383 (harmful_stmt_in_bb): Remove checks for conditions. This is already
2384 done in (stmt_simple_for_scop_p).
2386 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
2388 * graphite.c (print_global_statistics): New.
2389 (print_graphite_scop_statistic): New.
2390 (print_graphite_statistics): New.
2391 (graphite_initialize, graphite_transform_loops): Print statistics.
2392 * graphite-scop-detection (build_scops): Print statistics.
2393 (print_graphite_scop_statistics): New.
2394 (print_graphite_statistics): New.
2396 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2398 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
2399 (debug_clast_name_index): Removed.
2400 (debug_clast_name_indexes_1): Removed.
2401 (debug_clast_name_indexes): Removed.
2402 (clast_name_index_elt_info): Removed.
2403 (eq_clast_name_indexes): Removed.
2404 (clast_name_to_index): Removed.
2405 (new_clast_name_index): Removed.
2406 (save_clast_name_index): Removed.
2407 (save_var_name): Moved...
2408 (init_sese_params_index): Removed.
2409 (clast_name_to_gcc): Remove use of name_tree.
2410 (initialize_cloog_names): Same.
2411 (gloog): Do not call init_sese_params_index.
2412 * graphite-sese-to-poly.c (save_var_name): ...here.
2413 (parameter_index_in_region): New.
2414 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
2415 (parameter_index_in_region): Removed.
2416 (is_parameter): Remove use of name_tree.
2417 * sese.h (struct name_tree): Removed.
2418 (struct sese): Remove use of name_tree. New field params_names.
2419 (SESE_PARAMS_NAMES): New.
2420 (SESE_PARAMS): Remove duplicate.
2421 (parameter_index_in_region): Removed.
2422 (sese_nb_params): Remove use of name_tree.
2423 (struct clast_name_index): New.
2424 (new_clast_name_index): New.
2425 (clast_name_to_index): New.
2426 (save_clast_name_index): New.
2427 (debug_clast_name_index): New.
2428 (debug_clast_name_indexes_1): New.
2429 (debug_clast_name_indexes): New.
2430 (clast_name_index_elt_info): New.
2431 (eq_clast_name_indexes): New.
2433 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2435 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
2436 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
2437 (graphite_loop_normal_form): Do not pass region. Do not
2438 initialize SESE_OLDIVS.
2439 (build_graphite_loop_normal_form): Update call to
2440 graphite_loop_normal_form.
2441 * sese.c (debug_oldivs): Removed.
2442 (new_sese): Do not initialize SESE_OLDIVS.
2443 (free_sese): Do not free SESE_OLDIVS.
2444 (oldiv_for_loop): Removed.
2445 * sese.h (struct sese): Remove old_ivs.
2446 (SESE_OLDIVS): Removed.
2447 (oldiv_for_loop): Removed.
2449 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2451 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
2452 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
2453 replaced by a call to newivs_to_depth_to_newiv.
2454 (clast_to_gcc_expression): Pass newivs, remove ivstack.
2455 (clast_to_gcc_expression_red): Same.
2456 (gcc_type_for_clast_expr): Same.
2457 (gcc_type_for_clast_eq): Same.
2458 (graphite_translate_clast_equation): Same.
2459 (graphite_create_guard_cond_expr): Same.
2460 (graphite_create_new_guard): Same.
2461 (graphite_create_new_loop): Same.
2462 (build_iv_mapping): Same.
2463 (translate_clast): Same.
2465 (loop_iv_stack_patch_for_consts): Removed. *
2466 sese.c (iv_stack_entry_is_constant): Removed.
2467 (iv_stack_entry_is_iv): Removed.
2468 (loop_iv_stack_push_iv): Removed.
2469 (loop_iv_stack_insert_constant): Removed.
2470 (loop_iv_stack_pop): Removed.
2471 (loop_iv_stack_get_iv): Removed.
2472 (loop_iv_stack_get_iv_from_name): Removed.
2473 (debug_loop_iv_stack): Removed.
2474 (free_loop_iv_stack): Removed.
2475 (loop_iv_stack_remove_constants): Removed. *
2476 sese.h (iv_stack_entry_kind): Removed.
2477 (iv_stack_entry_data_union): Removed.
2478 (iv_stack_entry_struct): Removed.
2479 (iv_stack_entry_p): Removed.
2480 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
2481 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
2482 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
2483 loop_iv_stack_pop, free_loop_iv_stack): Removed.
2484 (gbb_loop_at_index): Fix indenting.
2485 (gbb_loop_index): Removed.
2487 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2489 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
2490 Call clast_name_to_index.
2492 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2494 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
2495 do not pass params. Get params from SESE_PARAMS.
2496 (clast_to_gcc_expression): Same.
2497 (clast_to_gcc_expression_red): Same.
2498 (gcc_type_for_clast_eq): Same.
2499 (graphite_translate_clast_equation): Same.
2500 (graphite_create_new_loop): Same.
2501 * sese.c (rename_variables_in_stmt): Fix comment.
2503 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2505 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
2507 Call save_clast_name_index.
2508 (translate_clast): Pass newivs_index.
2509 (gloog): Create and free newivs_index.
2511 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2513 * graphite-clast-to-gimple.c (clast_name_index): New structure.
2514 (clast_name_index_p): New type.
2515 (debug_clast_name_index): New.
2516 (debug_clast_name_indexes_1): New.
2517 (debug_clast_name_indexes): New.
2518 (clast_name_index_elt_info): New.
2519 (eq_clast_name_indexes): New.
2520 (clast_name_to_index): New.
2521 (new_clast_name_index): New.
2522 (save_clast_name_index): New.
2523 (init_sese_params_index): New.
2524 (gloog): Call init_sese_params_index.
2525 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
2526 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
2527 (free_sese): Free SESE_PARAMS_INDEX.
2528 * sese.h (struct sese): Add params_index.
2529 (SESE_PARAMS_INDEX): New.
2531 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2533 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
2534 (graphite_create_new_loop): Pass the newivs vector. Push the
2535 newly created IV to newivs.
2536 (translate_clast): Pass the newivs vector.
2537 (gloog): Create and destroy the newivs vector.
2539 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2541 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
2542 (graphite_loop_normal_form): Initialize loop->aux with the unique
2543 IV that has been created.
2545 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
2547 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
2548 scev with parameters in the base part. They where forbidden
2551 2009-05-11 Li Feng <nemokingdom@gmail.com>
2553 * testsuite/gcc.dg/graphite/graphite.exp: Set different default
2554 compile options by file names.
2555 * testsuite/gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
2556 * testsuite/gcc.dg/graphite/id-{1-9}.c: Ditto.
2557 * testsuite/gcc.dg/graphite/scop-{0-20}.c: Ditto.
2558 * testsuite/gcc.dg/graphite/scop-matmult.c: Ditto.
2560 2009-05-08 Li Feng <nemokingdom@gmail.com>
2562 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
2563 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
2564 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
2565 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
2567 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
2569 * graphite-scop-detection (build_scops_1): Fix little bug introduced
2572 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
2574 * graphite-scop-detection.c (graphite_can_represent_scev): Only
2575 allow integer constant strides.
2576 (graphite_can_represent_expr): Depend on outermost_loop.
2577 (stmt_simple_memref_p, graphite_cannot_represent_loop,
2578 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
2579 build_scops_1): Same.
2580 (scopdet_basic_block_info): Same and insert layered SCoP
2582 (try_generate_gimple_bb): Cleanup.
2583 (build_scops): Enable data references.
2585 * testsuite/gcc.dg/graphite/id-5.c: New.
2586 * testsuite/gcc.dg/graphite/id-9.c: New.
2587 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
2588 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
2590 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
2592 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
2593 that we have not yet built for this SCoP.
2595 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
2597 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
2598 for complex numbers.
2600 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
2602 * graphite-ppl.c: Fix build if cloog is not available.
2604 2009-05-04 Li Feng <nemokingdom@gmail.com>
2606 * tree-parloops.c (loop_parallel_p): Remove construction of
2607 NITER and REDUCTION_LIST.
2608 (try_get_loop_niter): New.
2609 (try_create_reduction_list): New.
2610 (parallelize_loops): Bypass the failed checkings in autopar
2611 when can_be_parallel in loop structure is set to true.
2613 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
2615 * testsuite/gcc.dg/graphite/id-6.c: Update testcase.
2616 * testsuite/gcc.dg/graphite/scop-3.c: Dito.
2618 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
2620 * graphite-scop-detection.c (stmt_simple_for_scop_p):
2621 Enable EQ_EXPR and NE_EXPR again.
2623 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
2625 * graphite-scop-detection.c (graphite_can_represent_scev):
2626 Add check if scev is affine multivariate.
2627 (harmful_stmt_in_bb): Check if we can represent the conditions.
2628 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
2630 * testsuite/gcc.dg/graphite/id-7.c: New.
2632 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
2634 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
2635 Check all bbs in region, not only the bbs that are represented in
2637 (build_poly_scop): Add newline.
2638 * testsuite/gcc.dg/graphite/id-8.c: New.
2640 2009-04-30 Li Feng <nemokingdom@gmail.com>
2642 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
2643 when loop initialize.
2644 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
2645 * common.opt: Declare flag_graphite_force_parallel.
2646 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
2648 * graphite-poly.c (apply_poly_transforms): Introduce
2649 flag_graphite_force_parallel.
2650 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
2651 * toplev.c (process_options): ditto and replace a not correctly
2654 2009-04-30 Li Feng <nemokingdom@gmail.com>
2656 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
2657 Change the call of gbb_loop_at_index and/or gbb_loop_index due
2658 to the redefinition.
2659 (compute_cloog_iv_types_1): ditto.
2660 (build_iv_mapping): ditto.
2661 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
2663 (free_gimple_bb): Removed GBB_LOOPS related free part.
2664 (build_bb_loops): Removed.
2665 * sese.h (struct gimple_bb): Removed loops.
2666 (GBB_LOOPS): Removed.
2667 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
2668 (gbb_loop_index): ditto.
2670 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
2672 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
2673 allow non constant strides.
2674 * testsuite/gcc.dg/graphite/scop-20.c: New.
2676 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2678 * graphite-scop-detection.c (dot_all_scops): Fix system call
2679 return value warning.
2682 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2684 * testsuite/gcc.dg/graphite/id-6.c: Fix pattern.
2685 * testsuite/gcc.dg/graphite/scop-3.c: Same.
2687 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2689 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
2690 build_pairwise_constraint, dr_equality_constraints,
2691 build_pairwise_scheduling_equality,
2692 build_pairwise_scheduling_inequality, lexicographically_gt_p,
2693 build_lexicographically_gt_constraint, dependence_polyhedron,
2694 graphite_legal_transform_dr, graphite_legal_transform_bb,
2695 graphite_legal_transform): New.
2696 * graphite-poly.h (graphite_legal_transform): Declared.
2697 * graphite-sese-to-poly.c (build_poly_scop): Call to
2698 graphite_legal_transform is disabled for the moment.
2700 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2702 * graphite-poly.h (pbb_nb_scattering_dims): New.
2703 (pbb_nb_scattering): Use it.
2705 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2707 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
2708 Pointset_Powerset version of ppl_insert_dimensions.
2709 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
2711 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2713 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
2715 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2717 * graphite-poly.h: Fix comment.
2719 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2721 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
2723 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
2725 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
2728 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
2730 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
2731 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
2734 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
2736 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
2737 handle EQ_EXPR and NE_EXPR.
2739 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
2741 * graphite-poly.h (poly_dr): Fix comment.
2743 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
2744 Tobias Grosser <grosser@fim.uni-passau.de>
2746 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
2747 with a zero dimension polyhedron.
2748 (find_scop_parameters): Move the call to scop_set_nb_params here.
2749 (build_loop_iteration_domains): Store in loop->aux the iteration
2751 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
2752 by any loop in scop.
2753 (build_poly_scop): Do not call scop_set_nb_params.
2755 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
2756 Tobias Grosser <grosser@fim.uni-passau.de>
2758 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
2759 add_condition_to_domain not GT_EXPR.
2761 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
2763 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
2764 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
2765 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
2766 upper_bound_assign to calculate unions.
2767 * testsuite/gcc.dg/graphite/id-6.c: New.
2769 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
2771 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
2772 handle abnormal edges.
2774 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
2776 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
2777 (free_poly_bb): Also free poly_drs.
2778 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
2779 (poly_dr): Polyhedron to Pointset_Powerset.
2780 (pdr_accessp_nb_subscripts): Same.
2781 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
2784 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2786 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
2787 names into more meaningful names.
2789 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2791 * testsuite/gfortran.dg/graphite/interchange-1.c: New.
2792 * testsuite/gfortran.dg/graphite/interchange-2.c: New.
2794 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2796 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
2798 * tree-parloops.c (rewrite_phi_with_iv): New.
2799 (rewrite_all_phi_nodes_with_iv): New.
2800 (canonicalize_loop_ivs): Call them.
2802 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2804 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
2805 graphite_find_data_references_in_stmt.
2806 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
2807 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
2809 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2811 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
2813 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2815 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
2816 instead of bb_in_region.
2817 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
2818 (build_sese_conditions): Use flag_bb_in_sese.
2819 * sese.c (register_bb_in_sese): Removed.
2820 (new_sese): Remove initialization of SESE_REGION_BBS.
2821 (free_sese): Do not free SESE_REGION_BBS.
2822 * sese.h (struct sese): Remove field region_basic_blocks.
2823 (SESE_REGION_BBS): Removed.
2824 (bb_in_sese_p): Implement in function of bb_in_region.
2826 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2828 * graphite-scop-detection.c (limit_scops): Deal only with single exit
2831 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
2833 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
2835 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
2836 (add_condition_to_domain): New.
2837 (add_condition_to_pbb): New.
2838 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
2839 * testsuite/gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
2841 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
2843 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
2844 ppl_Pointset_Powerset.
2845 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
2846 * graphite-poly.h (poly_bb): poly_bb.domain Same.
2847 (pbb_nb_loops): Same.
2848 * graphite-sese-to-poly.c (build_loop_iteration_domains,
2849 add_conditions_to_domain): Same.
2850 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
2851 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
2852 ppl_const_Polyhedron_t.
2853 (ppl_print_powerset_matrix): New.
2854 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
2855 ppl_print_powerset_matrix): New.
2856 (ppl_print_polyhedron_matrix): Updated.
2858 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
2860 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
2862 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
2864 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
2865 (print_iteration_domains, debug_iteration_domain,
2866 debug_iteration_domains): New.
2867 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
2868 debug_iteration_domains): Declared.
2869 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
2872 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
2873 Sebastian Pop <sebastian.pop@amd.com>
2875 * graphite-poly.h (print_iteration_domain): New.
2876 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
2877 (build_sese_conditions_1, build_sese_conditions_after,
2878 build_sese_conditions_before): New.
2879 (build_sese_conditions): Rewritten.
2881 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
2882 Tobias Grosser <grosser@fim.uni-passau.de>
2884 Cleanup of code generation liveouts.
2885 * graphite-clast-to-gimple.c (translate_clast): Use a single
2886 rename_map instead of one per translated statement.
2887 Do not use SESE_LIVEOUT_RENAMES.
2888 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
2889 (gloog): Do not use SESE_LIVEOUT_RENAMES.
2890 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
2891 phi node of a reduction: when a loop contains a reduction used outside
2892 the loop, there should be a scalar close phi node on the exit block.
2893 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
2894 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
2895 (free_sese): Do not free them.
2896 (sese_build_liveouts_use): Do not use them.
2897 (sese_build_liveouts_bb): Same.
2898 (sese_build_liveouts): Same.
2899 (sese_insert_phis_for_liveouts): Same.
2900 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
2901 (defined_in_loop_p): New.
2902 (alive_after_loop): New.
2903 (close_phi_not_yet_inserted_p): New.
2904 (struct alep, alep_p): New.
2905 (add_loop_exit_phis): Remove from the rename_map all the names defined
2906 in the code generated loop.
2907 (insert_loop_close_phis): Traverse the rename_map passed to it.
2908 Don't use SESE_LIVEOUT_RENAMES.
2909 (default_liveout_before_guard): Renamed default_before_guard.
2910 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
2911 (graphite_copy_stmts_from_block): Do not directly call set_rename.
2912 (register_sese_liveout_renames): Removed.
2913 (copy_bb_and_scalar_dependences): Do not call it.
2914 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
2916 (SESE_LIVEOUT): Removed.
2917 (SESE_LIVEOUT_RENAMES): Removed.
2918 (SESE_REDUCTION_LIST): Removed.
2919 (sese_build_liveouts): Removed.
2920 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
2921 (insert_loop_close_phis): Pass a htab_t instead of a sese.
2922 (insert_guard_phis): Same.
2923 (rename_map_elt): Declare a VEC of them.
2924 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
2925 trees not pointers to trees.
2927 Rewrite in canonical close SSA form:
2928 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
2929 (limit_scops): Close the scop after the block containing the close phi
2931 (canonicalize_loop_closed_ssa): New.
2932 (canonicalize_loop_closed_ssa_form): New.
2933 (build_scops): Call canonicalize_loop_closed_ssa_form.
2935 * graphite-sese-to-poly.c: Fix typos.
2937 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
2939 * graphite-poly.c (print_scattering_function, print_pbb_domain):
2941 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
2942 (print_pbb): Add conditions.
2944 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
2945 Sebastian Pop <sebastian.pop@amd.com>
2947 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
2948 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
2949 (build_scop_bbs_1): New.
2950 (build_scop_bbs): Rewrite.
2951 * sese.h (bb_in_region): New.
2953 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
2955 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
2957 (print_scop): Style.
2958 * graphite-poly.h (poly_bb): Add drs vector.
2959 (PBB_DRS): Add accessor.
2960 * graphite-sese-to-poly.c (build_poly_dr): New.
2961 (build_pbb_drs, build_scop_drs): New.
2962 (build_poly_scop): call build_scop_drs (Disabled at the moment).
2964 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
2966 * tree-ssa-loop.c: Include forgotten toplev.h
2968 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
2970 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
2971 * testsuite/gcc.dg/graphite/pr37883.c: Remove -floop-*
2972 * testsuite/gcc.dg/graphite/pr37928.c: Same
2973 * testsuite/gcc.dg/graphite/pr38409.c: Same
2974 * testsuite/gcc.dg/graphite/pr38498.c: Same
2975 * testsuite/gcc.dg/graphite/pr38559.c: Same
2976 * testsuite/gcc.dg/graphite/pr39335.c: Same
2977 * testsuite/gcc.dg/graphite/pr39335_1.c: Same
2978 * testsuite/gfortran.dg/graphite/block-2.f: Same
2979 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
2982 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
2984 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
2985 build_access_matrix, build_scop_data_accesses): Remove access function
2986 building. (We get a new version soon).
2987 (build_bb_loops, scan_tree_for_params_right_scev): Update.
2988 * sese.h (nb_loops_around_loop_in_sese): Remove.
2989 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
2991 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
2992 Sebastian Pop <sebastian.pop@amd.com>
2994 * graphite-scop-detection.c (struct scopdet_info): Rename last
2996 (scopdet_basic_block_info, build_scops_1): Don't use
2997 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
2999 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
3000 Sebastian Pop <sebastian.pop@amd.com>
3002 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
3003 * sese.c (sese_build_liveouts_use): Renamed from
3004 sese_build_livein_liveouts_use. Remove liveins.
3005 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
3006 Call sese_build_liveouts_use.
3007 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
3008 Call sese_build_liveouts_bb.
3009 (new_sese, free_sese): Remove liveins.
3010 (sese_add_exit_phis_var): Deleted.
3011 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
3013 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
3015 * sese.h (sese): Remove num_ver and livein.
3016 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
3018 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
3020 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
3022 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
3024 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
3025 (build_scop_scattering): Do not use compare_prefix_loops any more.
3026 (nb_common_loops): New.
3028 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3030 * sese.c (get_new_name_from_old_name): Renamed get_rename.
3031 (register_old_and_new_names): Renamed set_rename.
3033 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3035 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
3036 of the decl from the previous commit.
3038 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3040 * graphite-scop-detection.c (dot_scop): New.
3041 * graphite-scop-detection.h (dot_scop): Declared.
3043 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3045 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
3047 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3049 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
3050 condition at the end of the loop.
3051 * graphite.c (graphite_initialize, graphite_finalize): Print to
3052 dump_file the compiled function.
3053 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
3054 of create_empty_loop_on_edge.
3055 (translate_clast): Update the code generation of loops for the new
3057 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
3059 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3061 Reverted the patch from 2009-03-19.
3063 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
3065 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3067 (print_scop): Style.
3068 * graphite-poly.h (poly_bb): Add drs vector.
3069 (PBB_DRS): Add accessor.
3070 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
3071 (build_access_matrix_with_af, build_access_matrix,
3072 build_scop_data_accesses): Delete.
3073 (build_poly_dr): New.
3074 (build_pbb_drs, build_scop_drs): New.
3075 (build_poly_scop): call build_scop_drs.
3077 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
3079 * graphite-scop-detection.c (dot_all_scops_1): Close the table
3080 once per basic block.
3082 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
3084 * graphite-scop-detection.c (graphite_can_represent_scev): New.
3085 (graphite_can_represent_expr): Renamed from loop_affine_expr
3087 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
3088 (graphite_cannot_represent_loop): Add scop_entry to parameters.
3089 (scopdet_basic_block_info): Actually define entry_block.
3090 (stmt_simple_memref_p): Moved here from ...
3092 * tree-data-ref.c (stmt_simple_memref_p): here.
3093 * tree-data-ref.h (stmt_simple_memref_p): Removed.
3095 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
3097 * testsuite/gcc.dg/graphite/id-4.c: New.
3099 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
3101 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
3102 (register_old_and_new_names): Update the content of the map.
3103 When there was already a rename_map_elt in the map at that
3105 (copy_bb_and_scalar_dependences): Do rename_variables after
3106 expand_scalar_variables.
3107 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3108 of the map. When there was already a rename_map_elt in the
3109 map at that location, free it.
3110 (translate_clast): Pass the rename_map. Do not initialize and free
3111 a rename_map per stmt_user.
3112 (gloog): Initialize and free one rename_map and pass it to
3115 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
3117 * sese.c (expand_scalar_variables_stmt,
3118 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
3120 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
3121 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
3122 the gimple_stmt_iterator of the statement to be expanded.
3123 * graphite-scop-detection.c (is_simple_operand): Do handle
3126 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3128 * graphite-scop-detection.c (is_simple_operand): Do not handle
3130 * testsuite/gcc.dg/graphite/id-2.c: New.
3132 * graphite-sese-to-poly.c (build_bb_loops,
3133 add_value_to_dim, scan_tree_for_params_right_scev,
3134 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
3135 find_params_in_bb, build_loop_iteration_domains,
3136 add_conditions_to_domain): Remove subtract.
3138 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3140 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
3141 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
3142 pbb_loop_at_index -> gbb_loop_at_index.
3143 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
3144 (debug_loop_vec): Delete.
3145 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
3146 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
3147 (PBB_LOOPS): Removed.
3148 (PBB_BLACK_BOX): Insert cast.
3149 (pbb_set_black_box): New setter.
3150 (pbb_loop_at_index, pbb_loop_index): Removed.
3151 (scop_set_region, scop_set_nb_params): New.
3152 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
3153 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
3154 (build_poly_scop): Use scop_set_nb_params.
3155 * sese.h (gimple_bb): Add LOOPS.
3156 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
3158 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3160 Revert previous commit.
3162 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
3164 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
3165 (register_old_and_new_names): Update the content of the map.
3166 When there was already a rename_map_elt in the map at that
3168 (copy_bb_and_scalar_dependences): Do rename_variables after
3169 expand_scalar_variables.
3170 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3171 of the map. When there was already a rename_map_elt in the
3172 map at that location, free it.
3173 (translate_clast): Pass the rename_map. Do not initialize and free
3174 a rename_map per stmt_user.
3175 (gloog): Initialize and free one rename_map and pass it to
3178 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3180 Remove forgotten line in revert.
3182 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
3184 Revert previous commit.
3186 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
3188 * sese.c (register_old_and_new_names): Update the content
3189 of the map. When there was already a rename_map_elt in the
3190 map at that location, free it.
3191 (copy_bb_and_scalar_dependences): Do rename_variables after
3192 expand_scalar_variables.
3193 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3194 of the map. When there was already a rename_map_elt in the
3195 map at that location, free it.
3196 (translate_clast): Pass the rename_map. Do not initialize and free
3197 a rename_map per stmt_user.
3198 (gloog): Initialize and free one rename_map and pass it to
3201 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
3203 * graphite-clast-to-gimple.c (translate_clast): context_loop
3206 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
3207 Sebastian Pop <sebastian.pop@amd.com>
3209 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
3210 of the use of ppl_Polyhedron_map_space_dimensions.
3212 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
3213 Sebastian Pop <sebastian.pop@amd.com>
3215 * graphite-poly.c (unify_scattering_dimensions): Fix types.
3216 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
3217 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
3218 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
3219 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
3220 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
3221 pbb_nb_params): New.
3222 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
3223 nb_loops_around_pbb): Adapt return types.
3225 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
3227 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
3228 graphite-clast-to-gimple.o, graphite-data-ref.o,
3229 graphite-scop-detection.o, graphite-poly.o): Add
3232 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
3234 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
3235 graphite-clast-to-gimple.o, graphite-data-ref.o,
3236 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
3238 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
3240 * testsuite/gcc.dg/graphite/pr37485.c: Remove -floop-block
3241 * testsuite/gcc.dg/graphite/pr37828.c: Same.
3242 * testsuite/gcc.dg/graphite/pr37684.c: Same.
3243 * testsuite/gcc.dg/graphite/block-0.c: Same.
3244 * testsuite/gcc.dg/graphite/block-1.c: Same.
3245 * testsuite/gcc.dg/graphite/block-2.c: Same.
3246 * testsuite/gcc.dg/graphite/block-3.c: Same.
3247 * testsuite/gcc.dg/graphite/block-4.c: Same.
3248 * testsuite/gcc.dg/graphite/block-5.c: Same.
3249 * testsuite/gcc.dg/graphite/block-6.c: Same.
3250 * testsuite/gfortran.dg/graphite/pr38083.f90: Same.
3251 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
3252 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
3253 * testsuite/gfortran.dg/graphite/pr37852.f90: Same.
3254 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
3255 * testsuite/gfortran.dg/graphite/pr37980.f90: Same.
3256 * testsuite/gfortran.dg/graphite/pr38953.f90: Same.
3257 * testsuite/gfortran.dg/graphite/pr37857.f90: Same.
3258 * opts.c: Remove -floop-block from -O2.
3259 * graphite-poly.c: Fail if -floop-block -floop-interchange or
3260 -floop-strip-mine are used.
3262 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
3263 Sebastian Pop <sebastian.pop@amd.com>
3265 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
3267 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
3268 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
3269 strip_mine_profitable_p, is_interchange_valid,
3270 graphite_trans_bb_block, graphite_trans_loop_block,
3271 graphite_trans_scop_block): Temporary removed.
3272 (extend_scattering, unify_scattering_dimensions): New.
3273 (print_scattering_function, graphite_read_transforms):
3274 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3275 (graphite_generate_scattering_fns): Removed.
3276 (apply_poly_transforms): Cleanup.
3277 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3278 (schedule_to_scattering): Moved.
3279 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
3280 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
3281 (pbb_nb_scattering): New.
3282 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
3283 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
3285 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
3287 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3288 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
3289 -> PBB_TRANSFORMED_SCATTERING.
3290 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
3291 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
3292 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
3293 (check_poly_representation): Do not return bool.
3294 (graphite_transform_loops): Reformat.
3295 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
3297 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
3299 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
3300 debug_pbb_domain, debug_pbb, debug_scop): New.
3301 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
3302 debug_pbb_domain, debug_pbb, debug_scop): Declared.
3304 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3307 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
3308 when the type precision of the induction variable should be
3309 larger than the type precision of nit.
3310 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
3311 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
3312 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
3314 * testsuite/gcc.dg/graphite/pr39335_1.c: New.
3315 * testsuite/gcc.dg/graphite/pr39335.c: New.
3317 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3319 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
3320 SSA_NAMES not struct reduction_info.
3322 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3324 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
3326 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3327 Tobias Grosser <grosser@fim.uni-passau.de>
3329 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
3330 (free_sese): Free SESE_REDUCTION_LIST.
3331 * sese.h (struct sese): Add field reduction_list.
3332 (SESE_REDUCTION_LIST): New.
3333 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
3334 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
3336 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3337 Tobias Grosser <grosser@fim.uni-passau.de>
3339 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
3342 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3343 Tobias Grosser <grosser@fim.uni-passau.de>
3345 * tree-parloops.c (struct brli, build_reduction_list_info,
3346 analyze_reduction_list, gather_scalar_reductions): New.
3347 (loop_parallel_p): Build a reduction list containing only
3348 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
3349 (gen_parallel_loop): Call the analysis analyze_reduction_list.
3350 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
3351 * tree-flow.h (gather_scalar_reductions): Declared.
3353 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
3356 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
3357 number_of_iterations_exit from a gcc_assert.
3359 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
3360 Jan Sjodin <jan.sjodin@amd.com>
3362 * output.h (graphite_out_file, graphite_in_file): Declared.
3363 * toplev.c (graphite_out_file, graphite_in_file): New.
3364 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
3365 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
3366 Don't call schedule_to_scattering.
3367 * common.opt (fgraphite-write, fgraphite-read): New.
3368 * graphite-poly.c: Include output.h.
3369 (print_scattering_function, print_scattering_functions,
3370 debug_scattering_function, debug_scattering_functions,
3371 graphite_write_transforms, graphite_read_transforms,
3372 graphite_generate_scattering_fns): New.
3373 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
3374 Call graphite_generate_scattering_fns, graphite_write_transforms,
3375 graphite_read_transforms.
3376 (new_poly_bb): Initialize PBB_SCATTERING.
3377 (free_poly_bb): Free PBB_SCATTERING.
3378 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
3379 * graphite-poly.h (struct poly_bb): Add field scattering.
3380 (PBB_SCATTERING): New.
3381 (print_scattering_function, print_scattering_functions,
3382 debug_scattering_function, debug_scattering_functions): Declared.
3383 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
3384 GMP values, not integers!
3385 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
3386 ppl_read_polyhedron_matrix): New.
3387 * graphite-ppl.h (ppl_print_polyhedron_matrix,
3388 debug_ppl_polyhedron_matrix,
3389 ppl_read_polyhedron_matrix): Declared.
3390 * Makefile.in (graphite-poly.o): Depends on output.h.
3392 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3393 Tobias Grosser <grosser@fim.uni-passau.de>
3396 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
3397 scalar evolutions in the scop_entry->loop_father.
3399 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3400 Tobias Grosser <grosser@fim.uni-passau.de>
3402 * graphite.h (ref_nb_loops): Remove declaration.
3403 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
3404 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
3405 debug_gbb): Moved to sese.h.
3408 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3409 Tobias Grosser <grosser@fim.uni-passau.de>
3411 * graphite-data-ref.[ch]: Disable.
3413 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3414 Tobias Grosser <grosser@fim.uni-passau.de>
3416 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
3417 scalar evolutions in the scop_entry->loop_father.
3419 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3421 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
3422 (graphite_cannot_represent_loop_niter): Renamed
3423 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
3424 (limit_scops): build_sese_loop_nests does not return a bool.
3425 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
3426 * sese.c (nb_reductions_in_loop): ... from here.
3427 (graphite_loop_normal_form): ... from here.
3428 (sese_record_loop): Does not fail, so does not return a bool.
3429 (build_sese_loop_nests): Same.
3430 * sese.h (build_sese_loop_nests): Update declaration.
3431 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
3432 (build_graphite_loop_normal_form): New.
3433 (gloog): Call build_graphite_loop_normal_form.
3434 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
3435 build_sese_loop_nests.
3437 * testsuite/gcc.dg/graphite/id-1.c: New.
3439 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3440 Tobias Grosser <grosser@fim.uni-passau.de>
3442 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
3443 The SCoP detection fix is sufficient.
3445 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
3447 PR tree-optimization/39260
3448 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
3449 the basic block contains a condition with a real type.
3450 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
3452 * gcc.dg/graphite/pr39260.c: New.
3454 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
3456 * graphite-poly.c: Inlcude params.h.
3457 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
3459 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
3460 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
3462 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3463 Tobias Grosser <grosser@fim.uni-passau.de>
3465 * graphite-scop-detection.c (dot_all_scops_1,
3466 dot_all_scops): Moved here.
3467 * graphite-scop-detection.h (dot_all_scops): Declared here.
3468 * graphite.c (graphite_initialize, graphite_finalize): New.
3469 (graphite_transform_loops): Cleaned up.
3470 * sese.c (debug_oldivs): Moved here.
3471 * graphite-poly.c (graphite_apply_transformations): Renamed
3472 apply_poly_transforms.
3473 (debug_loop_vec): Moved here.
3474 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
3475 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
3476 find_scop_parameters, build_scop_iteration_domain,
3477 add_conditions_to_constraints, build_scop_canonical_schedules,
3478 build_scop_data_accesses): Now static.
3479 (build_poly_scop, check_poly_representation): New.
3481 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3483 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
3484 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
3485 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
3486 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
3487 scan_tree_for_params_right_scev, scan_tree_for_params_int,
3488 scan_tree_for_params, struct irp_data, dx_record_params,
3489 find_params_in_bb, find_scop_parameters, gbb_from_bb,
3490 build_loop_iteration_domains, add_conditions_to_domain,
3491 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
3492 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
3493 build_sese_conditions, add_conditions_to_constraints,
3494 build_scop_iteration_domain, build_access_matrix_with_af,
3495 build_access_matrix,
3496 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
3498 * graphite-sese-to-poly.c: New.
3499 * graphite-sese-to-poly.h: New.
3501 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
3503 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3505 * graphite.c: Split graphite code generation to a new file.
3506 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
3507 max_precision_type, clast_to_gcc_expression_red,
3508 clast_to_gcc_expression, gcc_type_for_clast_expr,
3509 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
3510 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
3511 graphite_create_new_guard, clast_get_body_of_loop,
3512 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
3513 graphite_create_new_loop, build_iv_mapping, copy_renames,
3514 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
3515 compute_cloog_iv_types, free_scattering, save_var_name,
3516 initialize_cloog_names, build_scop_context, build_cloog_prog,
3517 set_cloog_options, debug_clast_stmt, scop_to_clast,
3518 print_generated_program, debug_generated_program,
3519 gloog): Moved to graphite-clast-to-gimple.c.
3521 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
3523 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
3524 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
3525 loop_iv_stack_pop, loop_iv_stack_get_iv,
3526 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
3527 free_loop_iv_stack, loop_iv_stack_remove_constants,
3528 debug_rename_elt, debug_rename_map_1, debug_rename_map,
3529 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
3530 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
3531 eq_ivtype_map_elts, sese_add_exit_phis_edge,
3532 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
3533 get_vdef_before_sese, sese_adjust_vphi,
3534 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
3535 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
3536 is_iv, expand_scalar_variables_ssa_name,
3537 expand_scalar_variables_expr, expand_scalar_variables_stmt,
3538 expand_scalar_variables, rename_variables, remove_condition,
3539 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
3540 add_loop_exit_phis, insert_loop_close_phis, struct igp,
3541 default_liveout_before_guard, add_guard_exit_phis,
3542 insert_guard_phis, register_old_and_new_names,
3543 graphite_copy_stmts_from_block, register_sese_liveout_renames,
3544 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
3545 if_region_set_false_region, create_if_region_on_edge,
3546 move_sese_in_condition): Moved to sese.c.
3548 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
3549 if_region_exit, if_region_get_condition_block,
3550 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
3551 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
3552 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
3553 ivtype_map_elt, new_ivtype_map_elt,
3554 recompute_all_dominators): Moved to sese.h.
3556 * graphite-clast-to-gimple.c: New.
3557 * graphite-clast-to-gimple.h: New.
3558 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
3559 * sese.c: Modified as said above.
3562 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3564 * graphite.c: Split scop detection to a new file.
3565 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
3566 move_sd_regions, loop_affine_expr, exclude_component_ref,
3567 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
3568 graphite_cannot_represent_loop_niter, struct scopdet_info,
3569 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
3570 find_single_entry_edge, find_single_exit_edge,
3571 create_single_entry_edge, sd_region_without_exit,
3572 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
3573 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
3574 Moved to graphite-scop-detection.c.
3576 * graphite-scop-detection.c: New.
3577 * graphite-scop-detection.h: New.
3578 * Makefile.in: Add new rule for graphite-scop-detection.o.
3580 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
3581 tree-scalar-evolution.h.
3582 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
3583 build_sese_loop_nests): Moved here from graphite.c.
3584 (param_index): Renamed parameter_index_in_region.
3586 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
3587 Sebastian Pop <sebastian.pop@amd.com>
3589 * gcc.dg/graphite/block-0.c: Expected to fail now.
3590 * gcc.dg/graphite/block-1.c: Same.
3591 * gcc.dg/graphite/block-5.c: Same.
3592 * gcc.dg/graphite/block-6.c: Same.
3594 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
3595 Sebastian Pop <sebastian.pop@amd.com>
3597 * graphite.h: Separate from graphite_bb_p the polyhedral
3598 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
3599 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
3600 graphite-data-ref.h.
3601 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
3602 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
3603 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
3604 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
3605 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
3606 scop_nb_params): Moved to graphite-poly.h.
3607 * graphite-data-ref.c: Same.
3608 * graphite-data-ref.h: New.
3610 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
3611 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
3612 is_interchange_valid, graphite_trans_bb_block,
3613 graphite_trans_loop_block, scop_max_loop_depth,
3614 graphite_trans_scop_block, graphite_apply_transformations,
3615 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
3617 * graphite-poly.h: New.
3618 * graphite-poly.c: New.
3619 * Makefile.in (OBJS-common): Add graphite-poly.o.
3620 (graphite-poly.o): New rule.
3621 * tree-data-ref.h (struct data_reference): Remove unused scop field.
3624 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
3625 Tobias Grosser <grosser@fim.uni-passau.de>
3627 * graphite.c: Replace gb -> gbb.
3629 * graphite-data-ref.c: Same.
3631 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
3632 Tobias Grosser <grosser@fim.uni-passau.de>
3634 * Makefile.in (OBJS-commmon): Add sese.o.
3636 (graphite.o): Add sese.h.
3637 * graphite.c (bb_in_ss_p, loop_in_sese_p,
3638 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
3639 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
3641 (block_before_scop): Add missing return.
3642 (new_scop, free_scop): Remove SESE data structures.
3643 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
3644 find_scop_parameters, build_loop_iteration_domains,
3645 add_conditions_to_domain, register_scop_liveout_renames,
3646 copy_bb_and_scalar_dependences): Scop -> SESE.
3648 (add_conditions_to_domain): SCoP -> SESE and remove check
3649 (scop_contains_non_iv_scalar_phi_nodes): New.
3650 (build_scop_conditions_1, build_scop_conditions): Remove check for
3651 non iv scalar phi nodes.
3652 (print_scop_statistics): New.
3653 (graphite_transform_loops): Cleanup.
3655 * graphite.h: Move to sese & cleanup.
3659 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3660 Tobias Grosser <grosser@fim.uni-passau.de>
3662 * graphite.c (build_scop_conditions_1): Conditions are only
3663 at the end of a basic block.
3665 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3666 Tobias Grosser <grosser@fim.uni-passau>
3668 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
3670 (GBB_ALPHA): Removed.
3672 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3673 Tobias Grosser <grosser@fim.uni-passau.de>
3675 * graphite-data-ref.c (graphite_test_dependence): Don't use
3676 GBB_DYNAMIC_SCHEDULE.
3677 * graphite.c (new_graphite_bb): Same.
3678 (free_graphite_bb): Same.
3679 (build_scop_dynamic_schedules): Removed.
3680 (graphite_transform_loops): Don't call it.
3681 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
3682 (GBB_DYNAMIC_SCHEDULE): Removed.
3684 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3685 Tobias Grosser <grosser@fim.uni-passau.de>
3687 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
3688 (print_graphite_bb): Same.
3689 (build_cloog_prog): Same.
3691 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3692 Tobias Grosser <grosser@fim.uni-passau.de>
3694 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
3696 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3697 Tobias Grosser <grosser@fim.uni-passau.de>
3699 * graphite.c (build_scop_context): Don't use CloogMatrix.
3700 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
3701 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
3703 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3704 Tobias Grosser <grosser@fim.uni-passau.de>
3706 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
3707 liveout_renames, add_params fields...
3708 (struct sese): ... here.
3709 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
3710 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
3712 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3713 Tobias Grosser <grosser@fim.uni-passau.de>
3715 * graphite.c (print_scop): Do not print the CLooG program.
3716 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
3717 build_cloog_prog, gloog): Don't use SCOP_PROG.
3718 (find_transform): Renamed scop_to_clast.
3719 (print_generated_program, debug_generated_program): New.
3720 (graphite_transform_loops): Adapt to new interface.
3721 * graphite.h (struct scop): Remove program field.
3722 (SCOP_PROG): Removed.
3723 (print_generated_program, debug_generated_program): Declared.
3725 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3727 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
3728 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
3729 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
3730 free_graphite_bb, build_scop_canonical_schedules,
3731 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
3732 schedules are now represented using a ppl_Linear_Expression_t.
3733 * graphite.h (struct graphite_bb): Same.
3734 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
3735 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
3737 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
3739 * graphite.c: Free local memory.
3740 * graphite-ppl.c: Same.
3742 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
3744 * graphite.c (const_column_index, get_first_matching_sign_row_index,
3745 get_lower_bound_row, get_upper_bound_row, copy_constraint,
3746 swap_constraint_variables, scale_constraint_variable): Removed.
3747 (graphite_trans_bb_strip_mine): Remove pong.
3748 * graphite-ppl.c: Include missing header files.
3749 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
3750 * graphite-ppl.h (ppl_strip_loop): Declared.
3751 * Makefile.in (graphite-ppl.o): Adjust dependences.
3753 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
3755 * graphite.c (build_loop_iteration_domains): Remove ping pong.
3756 (build_scop_iteration_domain): Same.
3758 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
3760 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
3762 (add_value_to_dim, scan_tree_for_params_right_scev,
3763 scan_tree_for_params_int): New.
3764 * graphite-ppl.c (oppose_constraint): New.
3765 (insert_constraint_into_matrix): Implement missing cases.
3766 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
3768 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
3770 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
3771 use ppl_move_dimension.
3773 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
3775 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
3778 * graphite-ppl.c: Same.
3779 * graphite-ppl.h: Same.
3781 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
3783 Revert last 3 commits.
3785 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
3787 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
3789 (add_value_to_dim, scan_tree_for_params_right_scev,
3790 scan_tree_for_params_int): New.
3791 * graphite-ppl.c (oppose_constraint): New.
3792 (insert_constraint_into_matrix): Implement missing cases.
3793 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
3795 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
3797 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
3799 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
3800 Tobias Grosser <grosser@fim.uni-passau.de>
3802 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
3803 use ppl_move_dimension.
3804 * graphite-ppl.c (ppl_move_dimension): New.
3805 * graphite-ppl.h (ppl_move_dimension): Declared.
3807 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
3809 * graphite.c: Do not include cloog/cloog.h.
3810 (print_graphite_bb): Remove ping pong, call PPL print function.
3812 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
3814 * Makefile.in (OBJS-common): Add graphite-ppl.o.
3815 (graphite.o): Add dependence on graphite-ppl.h.
3816 (graphite-ppl.o): New.
3817 (graphite-data-ref.c): Ping pong between PPL data structures
3819 * graphite-ppl.c: New.
3820 * graphite-ppl.h: New.
3821 * graphite.c: Include graphite-ppl.h.
3822 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
3823 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
3824 Ping pong between PPL data structures and matrices.
3825 (new_graphite_bb): Create a PPL constraint system.
3826 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
3827 (build_loop_iteration_domains): Use PPL functions.
3828 * graphite.h: Include graphite-ppl.h. Fix comments.
3829 (graphite_bb): Use a ppl_Constraint_System_t instead of
3830 CloogMatrix for representing the domain.
3831 (scop): Remove static_schedule.
3832 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
3834 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
3836 * graphite.c: Fix some comments.
3838 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
3841 * graphite.c (if_region_set_false_region): After moving a region
3842 in the false branch of a condition, remove the empty dummy
3844 (gloog): Remove wrong fix for PR38953.
3846 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
3848 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
3849 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
3850 register_bb_in_sese, new_sese, free_sese): Moved.
3851 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
3852 outermost_loop_in_scop, build_scop_iteration_domain,
3853 expand_scalar_variables_ssa_name, get_vdef_before_scop,
3854 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
3855 Use loop_in_sese_p instead of loop_in_scop_p.
3856 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
3857 (free_scop): Do not free SCOP_BBS_B.
3858 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
3859 ref_nb_loops): Moved here...
3860 * graphite.h (ref_nb_loops): ... from here.
3861 (struct scop): Remove bbs_b bitmap.
3862 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
3863 * testsuite/gcc.dg/graphite/scop-19.c: New
3865 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
3867 * graphite.c (scopdet_basic_block_info): Fix bug in scop
3870 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
3872 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
3873 eq_loop_to_cloog_loop): Remove.
3874 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
3875 * graphite.h (struct scop): Remove loop2cloog_loop.
3876 (loop_domain_dim, loop_iteration_vector_dim): Remove.
3878 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
3880 * opts.c (decode_options): Only add graphite options to O2
3881 if we compile with graphite enabled.
3883 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
3885 * Merge from mainline (r143163:143684).
3887 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
3889 * graphite.c (debug_value): Removed.
3890 * graphite.h (debug_value): Removed.
3892 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
3894 * passes.c (init_optimization_passes): Do not call pass_copy_prop
3895 after graphite: pass_copy_prop does not maintain a proper loop closed
3896 SSA form. pass_copy_prop should be fixed.
3898 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
3900 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
3902 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
3904 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
3905 (gloog): Split the exit of the scop when the scop exit is a loop exit.
3906 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
3909 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
3911 * graphite.c (gloog): Return true when code gen succeeded.
3912 (graphite_transform_loops): Do not call cleanup_tree_cfg if
3913 the code of the function did not changed. After cleanup_tree_cfg
3914 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
3917 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
3919 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
3920 gimple_call_lhs is NULL.
3922 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
3923 Tobias Grosser <tobi.grosser@amd.com>
3925 * graphite.c (graphite_trans_scop_block): Do not block single
3928 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
3929 Tobias Grosser <tobi.grosser@amd.com>
3931 * graphite.c (build_scop_canonical_schedules): Start schedules at
3934 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
3935 Tobias Grosser <tobi.grosser@amd.com>
3937 * graphite.c (compare_prefix_loops): New.
3938 (build_scop_canonical_schedules): Rewritten.
3939 (graphite_transform_loops): Move build_scop_canonical_schedules
3940 after build_scop_iteration_domain.
3942 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
3943 Tobias Grosser <tobi.grosser@amd.com>
3945 * graphite.c (add_conditions_to_domain): Add the loops to
3946 the dimension of the iteration domain. Do copy the domain
3947 only when it exists.
3948 (build_scop_conditions_1): Do not call add_conditions_to_domain.
3949 (add_conditions_to_constraints): New.
3950 (can_generate_code_stmt, can_generate_code): Removed.
3951 (gloog): Do not call can_generate_code.
3952 (graphite_transform_loops): Call add_conditions_to_constraints
3953 after building the iteration domain.
3955 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
3956 Tobias Grosser <tobi.grosser@amd.com>
3957 Jan Sjodin <jan.sjodin@amd.com>
3959 * graphite.c (scan_tree_for_params): On substractions negate
3960 all the coefficients of the term.
3961 (clast_to_gcc_expression_red): New. Handle reduction expressions
3962 of more than two operands.
3963 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
3964 (get_vdef_before_scop): Handle also the case of default definitions.
3966 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
3969 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
3970 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
3971 (gloog): Do not call cleanup_tree_cfg.
3972 (graphite_transform_loops): Call cleanup_tree_cfg after all
3973 scops have been code generated.
3975 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
3977 * passes.c (init_optimization_passes): Schedule after
3978 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
3980 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
3982 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
3984 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
3985 Set the type of an expression to the type of its assign statement.
3986 (expand_scalar_variables_expr): Do not pass loop_p.
3987 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
3988 (copy_bb_and_scalar_dependences): Do not pass loop_p.
3989 (translate_clast): Update call to copy_bb_and_scalar_dependences.
3991 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
3993 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
3994 an expression to the gimple_expr_type of its assign statement.
3995 (expand_scalar_variables_expr): Stop recursion on tcc_constant
3998 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
4000 PR tree-optimization/38786
4001 * testsuite/gcc.dg/graphite/pr38786.c: New.
4002 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
4003 the SSA_NAME case of expand_scalar_variables_expr.
4004 (expand_scalar_variables_expr): Also gather the scalar computation
4005 used to index the memory access.
4006 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
4007 the gimple_stmt_iterator where it inserts new code.
4009 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
4011 * testsuite/gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
4013 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
4015 * opts.c (decode_options): Enable flag_graphite_identity and
4016 flag_loop_block in -O2 and above.
4018 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
4020 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
4021 Fix merge problem: replace with the file from trunk.
4023 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
4025 * Merge from mainline (r141727:143163).
4027 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
4028 Jan Sjodin <jan.sjodin@amd.com>
4030 PR tree-optimization/38559
4031 * testsuite/gcc.dg/graphite/pr38559.c: New.
4033 * graphite.c (debug_value, copy_constraint,
4034 swap_constraint_variables, scale_constraint_variable, ): New.
4035 (get_lower_bound, get_upper_bound): Removed.
4036 (graphite_trans_bb_strip_mine): Clean up this code that works
4037 only for constant number of iterations. Fully copy upper and
4038 lower bound constraints, not only the constant part of them.
4039 * graphite.h (debug_value): Declared.
4041 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
4043 PR tree-optimization/38492
4044 PR tree-optimization/38498
4045 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
4046 * tree-chrec.h (scev_is_linear_expression): Declared.
4047 * graphite.c (graphite_cannot_represent_loop_niter): New.
4048 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
4049 (graphite_loop_normal_form): Use gcc_assert.
4050 (scan_tree_for_params): Use CASE_CONVERT.
4051 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
4052 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
4053 Use gcc_assert. Discard scops that contain unhandled cases.
4054 (build_scop_conditions): Return a boolean status for unhandled cases.
4055 (strip_mine_profitable_p): Print the loop number, not its depth.
4056 (is_interchange_valid): Pass the depth of the loop nest, don't
4057 recompute it wrongly.
4058 (graphite_trans_bb_block): Same.
4059 (graphite_trans_bb_block): Print tentative of loop blocking.
4060 (graphite_trans_scop_block): Do not print that the loop has been
4062 (graphite_transform_loops): Do not handle scops that contain condition
4065 * testsuite/gcc.dg/graphite/pr38500.c: Fixed warning as committed
4067 * testsuite/gcc.dg/graphite/block-0.c: Update test.
4068 * testsuite/gcc.dg/graphite/block-1.c: Same.
4069 * testsuite/gcc.dg/graphite/block-2.c: Remove xfail and test for
4071 * testsuite/gcc.dg/graphite/block-4.c: Remove test for strip mine.
4072 * testsuite/gcc.dg/graphite/block-3.c: New.
4073 * testsuite/gcc.dg/graphite/pr38498.c: New.
4075 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
4077 PR tree-optimization/38510
4078 * gcc.dg/graphite/pr38510.c: New.
4079 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
4080 (translate_clast): Call recompute_all_dominators before
4082 (gloog): Call recompute_all_dominators before graphite_verify.
4084 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
4086 PR tree-optimization/38492
4087 * graphite.c (rename_map_elt, debug_rename_elt,
4088 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
4089 rename_map_elt_info, eq_rename_map_elts,
4090 get_new_name_from_old_name, bb_in_sese_p): Moved around.
4091 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
4092 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
4093 (sese_build_livein_liveouts): New.
4094 (new_sese, free_sese): New.
4095 (new_scop): Call new_sese.
4096 (free_scop): Call free_sese.
4097 (rename_variables_from_edge, rename_phis_end_scop): Removed.
4098 (register_old_new_names): Renamed register_old_and_new_names.
4099 (register_scop_liveout_renames, add_loop_exit_phis,
4100 insert_loop_close_phis, struct igp,
4101 default_liveout_before_guard, add_guard_exit_phis,
4102 insert_guard_phis, copy_renames): New.
4103 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
4104 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
4105 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
4106 (scop_adjust_phis_for_liveouts): New.
4107 (gloog): Call scop_adjust_phis_for_liveouts.
4109 * graphite.h (struct sese): Documented. Added fields liveout,
4111 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
4112 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
4113 (struct scop): Added field liveout_renames.
4114 (SCOP_LIVEOUT_RENAMES): New.
4116 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
4118 PR tree-optimization/38409
4119 * gcc.dg/graphite/pr38409.c: New.
4120 * graphite.c (nb_reductions_in_loop): Use simple_iv.
4122 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
4124 * graphite.c (gcc_type_for_cloog_iv): By default return
4126 (graphite_create_new_loop): Don't fold_convert the already
4127 fold_convert-ed expression.
4129 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
4131 PR tree-optimization/38446
4132 * gcc.dg/graphite/pr38446.c: New.
4133 * graphite.c (register_bb_in_sese): New.
4134 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
4135 looking at the bbs in the region.
4136 * graphite.h (sese): Add region_basic_blocks pointer set to
4137 structure and initialize at the time of defining new scop.
4139 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
4141 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
4142 (find_params_in_bb): Do not free data refs.
4143 (free_graphite_bb): Add FIXME on disabled free_data_refs.
4145 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
4147 * testsuite/gcc.dg/graphite/scop-16.c: Test only scop specific info.
4148 * testsuite/gcc.dg/graphite/scop-17.c: Same.
4149 * testsuite/gcc.dg/graphite/block-5.c: New.
4150 * testsuite/gcc.dg/graphite/block-6.c: New.
4151 * testsuite/gcc.dg/graphite/pr37485.c: Clean dump file after.
4152 * testsuite/gcc.dg/graphite/pr37684.c: Same.
4153 * testsuite/gcc.dg/graphite/block-2.c: Same.
4155 * graphite.c (struct ivtype_map_elt): New.
4156 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
4157 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
4158 gcc_type_for_cloog_iv): New.
4159 (loop_iv_stack_patch_for_consts): Use the type of the induction
4160 variable from the original loop, except for the automatically
4161 generated loops, i.e., in the case of a strip-mined loop, in
4162 which case there is no original loop: in that case just use
4164 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
4165 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
4166 (clast_name_to_gcc): Accept params to be NULL.
4167 (clast_to_gcc_expression): Take an extra parameter for the type.
4168 Convert to that type all the expressions built by this function.
4169 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
4170 (graphite_translate_clast_equation): Compute the type of the
4171 clast_equation before translating its LHS and RHS.
4172 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
4173 (graphite_create_new_loop): Compute the type of the induction
4174 variable before translating the lower and upper bounds and before
4175 creating the induction variable.
4176 (rename_variables_from_edge, rename_phis_end_scop): New.
4177 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
4178 (sese_add_exit_phis_edge): Do not use integer_zero_node.
4179 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
4180 compute_cloog_iv_types): New.
4181 (gloog): Call compute_cloog_iv_types before starting the
4182 translation of the clast.
4184 * graphite.h (struct graphite_bb): New field cloog_iv_types.
4185 (GBB_CLOOG_IV_TYPES): New.
4186 (debug_ivtype_map): Declared.
4187 (oldiv_for_loop): New.
4189 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
4192 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
4193 (param_index): Assert if parameter is not know after parameter
4195 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
4196 (find_scop_parameters): Mark, that we have finished parameter
4198 (graphite_transform_loops): Move condition detection before parameter
4200 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
4201 * testsuite/gfortran.dg/graphite/pr38459.f90: New.
4203 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
4205 * graphite.c (graphite_transform_loops): Always call find_transform ()
4206 in ENABLE_CHECKING. So we test these code paths, even if we do not
4209 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
4211 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
4212 (print_scop): Ditto.
4214 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
4217 Fix testsuite/gfortran.dg/graphite/id-3.f90.
4218 * graphite.c (scopdet_basic_block_info): Fix bug that found some
4219 regions more than once.
4221 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
4223 Fix testsuite/gfortran.dg/graphite/id-4.f90.
4224 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
4227 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
4229 Fix testsuite/gfortran.dg/graphite/id-1.f90.
4230 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
4231 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
4232 (max_precision_type): New.
4233 (value_clast): Removed.
4234 (clast_to_gcc_expression): Be more careful to types of expressions.
4235 Use max_precision_type and update use of gmp_cst_to_tree.
4236 (graphite_translate_clast_equation): Use max_precision_type.
4237 (graphite_create_guard_cond_expr): Do not use integer_type_node,
4238 use the type of the condition.
4239 (graphite_create_new_loop): Do not use integer_type_node, use the
4240 max_precision_type of lb and ub.
4242 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
4244 * graphite.c (build_scops_1): Initialize open_scop.exit
4247 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
4249 * testsuite/gcc.dg/graphite/pr38084.c: New.
4250 * testsuite/gfortran.dg/graphite/id-1.f90: New.
4251 * testsuite/gfortran.dg/graphite/id-2.f90: New.
4252 * testsuite/gfortran.dg/graphite/id-3.f90: New.
4253 * testsuite/gfortran.dg/graphite/id-4.f90: New.
4254 * testsuite/gfortran.dg/graphite/pr37857.f90: New.
4256 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
4257 Jan Sjodin <jan.sjodin@amd.com>
4258 Harsha Jagasia <harsha.jagasia@amd.com>
4270 * testsuite/gcc.dg/graphite/pr38073.c: New.
4271 * testsuite/gcc.dg/graphite/pr37928.c: New.
4272 * testsuite/gcc.dg/graphite/pr37883.c: New.
4273 * testsuite/gcc.dg/graphite/pr38125.c: New.
4274 * testsuite/gfortran.dg/graphite/pr38083.f90: New.
4275 * testsuite/gfortran.dg/graphite/pr37852.f90: New.
4276 * testsuite/gfortran.dg/graphite/pr37980.f90: New.
4278 * testsuite/gcc.dg/graphite/scop-18.c: Remove reduction, test for
4279 the number of detected scops. Copy exact same test for loop
4281 * testsuite/gcc.dg/graphite/block-1.c: Fix the number of expected
4282 loops to be blocked as reductions are not handled.
4283 * testsuite/gcc.dg/graphite/block-4.c: ...here. New.
4285 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
4286 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
4288 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
4289 * Makefile.in (graphite.o): Depend on value-prof.h.
4290 (graphite.o-warn): Removed -Wno-error.
4291 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
4292 to be a NULL pointer. Call update_stmt. Return the newly created
4293 cannonical induction variable.
4295 * graphite.h (debug_rename_map): Declared. Fix some comments.
4297 * graphite.c: Reimplement the code generation from graphite to gimple.
4298 Include value-prof.h.
4299 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
4300 (get_old_iv_from_ssa_name): Removed.
4301 (graphite_stmt_p): New.
4302 (new_graphite_bb): Test for useful statements before building a
4303 graphite statement for the basic block.
4304 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
4305 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
4307 (recompute_all_dominators, graphite_verify,
4308 nb_reductions_in_loop, graphite_loop_normal_form): New.
4309 (scop_record_loop): Call graphite_loop_normal_form.
4310 (build_scop_loop_nests): Iterate over all the blocks of the
4311 function instead of relying on the incomplete information from
4312 SCOP_BBS. Return the success of the operation.
4313 (find_params_in_bb): Use the data from GBB_DATA_REFS.
4314 (add_bb_domains): Removed.
4315 (build_loop_iteration_domains): Don't call add_bb_domains.
4316 Add the iteration domain only to the basic blocks that have been
4317 translated to graphite.
4318 (build_scop_conditions_1): Add constraints only if the basic
4319 block have been translated to graphite.
4320 (build_scop_data_accesses): Completely disabled until data
4321 dependence is correctly implemented.
4322 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
4323 (remove_all_edges_1, remove_all_edges): Removed.
4324 (get_new_name_from_old_name): New.
4325 (graphite_rename_variables_in_stmt): Renamed
4326 rename_variables_in_stmt. Call get_new_name_from_old_name.
4327 Use replace_exp and update_stmt.
4328 (is_old_iv): Renamed is_iv.
4329 (expand_scalar_variables_stmt): Extra parameter for renaming map.
4330 Use replace_exp and update_stmt.
4331 (expand_scalar_variables_expr): Same. Use the map to get the
4332 new names for the renaming of induction variables and for the
4333 renaming of variables after a basic block has been copied.
4334 (expand_scalar_variables): Same.
4335 (graphite_rename_variables): Renamed rename_variables.
4336 (move_phi_nodes): Removed.
4337 (get_false_edge_from_guard_bb): New.
4338 (build_iv_mapping): Do not insert the induction variable of a
4339 loop in the renaming iv map if the basic block does not belong
4341 (register_old_new_names, graphite_copy_stmts_from_block,
4342 copy_bb_and_scalar_dependences): New.
4343 (translate_clast): Heavily reimplemented: copy basic blocks,
4344 do not move them. Finally, in call cleanup_tree_cfg in gloog.
4345 At each translation step call graphite_verify ensuring the
4346 consistency of the SSA, loops and dominators information.
4347 (collect_virtual_phis, find_vdef_for_var_in_bb,
4348 find_vdef_for_var_1, find_vdef_for_var,
4349 patch_phis_for_virtual_defs): Removed huge hack.
4350 (mark_old_loops, remove_dead_loops, skip_phi_defs,
4351 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
4352 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
4353 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
4354 if_region_get_condition_block, if_region_set_false_region,
4355 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
4356 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
4357 sese_add_exit_phis_edge, sese_add_exit_phis_var,
4358 rewrite_into_sese_closed_ssa): New.
4359 (gloog): Remove dead code. Early return if code cannot be
4360 generated. Call cleanup_tree_cfg once the scop has been code
4362 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
4363 block loops with less than two loops.
4364 (graphite_apply_transformations): Remove the call to
4365 scop_remove_ignoreable_gbbs.
4366 (limit_scops): When build_scop_loop_nests fails, continue on
4367 the next scop. Fix open_scop.entry.
4368 (graphite_transform_loops): Call recompute_all_dominators: force the
4369 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
4370 Call initialize_original_copy_tables and free_original_copy_tables
4371 to be able to copy basic blocks during code generation.
4372 When build_scop_loop_nests fails, continue on next scop.
4373 (value_clast): New union.
4374 (clast_to_gcc_expression): Fix type cast warning.
4376 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
4378 * Merge from mainline (r140838:141727).
4380 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
4384 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
4386 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
4390 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
4391 exits and conditions.
4392 * testsuite/gcc.dg/graphite/pr37943.c: New.
4394 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
4397 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
4399 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
4401 * doc/invoke.texi: Fix spaces.
4403 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
4405 PR tree-optimization/37891
4406 Reverted last commit.
4407 * graphite.c (create_single_entry_edge): Set
4408 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
4410 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
4411 Mitul Thakkar <mitul.thakkar@amd.com>
4413 * graphite.c (create_single_entry_edge): Set
4414 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
4416 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
4418 * doc/invoke.texi: Add -fgraphite-identity.
4419 * graphite.c (graphite_apply_transformations): Check for
4420 -fgraphite-identity.
4421 * toplev.c (process_options): Add flag_graphite_identity.
4422 * tree-ssa-loop.c: Add flag_graphite_identity.
4424 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
4426 Undo changes from 2008-10-02:
4427 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
4428 operand type when copying the operand to a variable of different type.
4429 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
4430 with the IV name after increment.
4432 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
4433 Harsha Jagasia <harsha.jagasia@amd.com>
4435 PR tree-optimization/37828
4436 * testsuite/gcc.dg/graphite/pr37828.c: New.
4437 * graphite.c (graphite_trans_loop_block): Do not loop block
4438 single nested loops.
4440 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
4441 Sebastian Pop <sebastian.pop@amd.com>
4443 * graphite.c (struct rename_map_elt, new_rename_map_elt,
4444 rename_map_elt_info, eq_rename_map_elts): New.
4445 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
4446 (expand_scalar_variables_expr): Change parameters.
4447 (expand_scalar_variables_stmt): Same.
4448 (expand_scalar_variables): Same.
4449 (graphite_rename_ivs): Rename graphite_rename_variables.
4450 (build_iv_mapping): New.
4451 (translate_clast): Call build_iv_mapping.
4452 * graphite.h (gbb_p): New name.
4454 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
4456 PR tree-optimization/37684
4457 * gcc.dg/graphite/pr37684.c: New.
4458 * graphite.c (exclude_component_ref): New.
4459 (is_simple_operand): Call exclude_component_ref.
4461 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
4462 Harsha Jagasia <harsha.jagasia@amd.com>
4464 PR tree-optimization/37485
4465 * gcc.dg/graphite/block-2.c: New
4466 * graphite.c (gmp_cst_to_tree): Moved.
4467 (iv_stack_entry_is_constant): New.
4468 (iv_stack_entry_is_iv): New.
4469 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
4470 (loop_iv_stack_insert_constant): New.
4471 (loop_iv_stack_pop): Use new datatpype.
4472 (loop_iv_stack_get_iv): Same.
4473 (loop_iv_stack_get_iv_from_name): Same.
4474 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
4475 (loop_iv_stack_patch_for_consts): New.
4476 (loop_iv_stack_remove_constants): New.
4477 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
4478 (translate_clast): Call loop_iv_stack_patch_for_consts and
4479 loop_iv_stack_remove_constants.
4480 (gloog): Use new datatype. Redirect construction edge to end
4481 block to avoid accidental deletion.
4482 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
4484 (union iv_stack_entry_data): New. Data in iv stack entry.
4485 (struct iv_stack_entry): New. Datatype for iv stack entries.
4487 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
4489 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
4490 operand type when copying the operand to a variable of different type.
4492 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
4494 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
4495 with the IV name after increment.
4497 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
4499 * Merge from mainline (r140164:140838).
4501 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4503 * graphite-data-ref.c: New.
4504 * graphite.c (print_scop): Also dump the dependence graph.
4505 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
4506 (new_scop): Initialize SCOP_DEP_GRAPH.
4507 (build_scop_dynamic_schedules): New.
4508 (build_access_matrix_with_af): Fixed column numbering.
4509 (graphite_transform_loops): Call build_scop_dynamic_schedules.
4510 * graphite.h: Add ifndef/define guards against multiple inclusion.
4511 (struct scop): Add dep_graph field.
4512 (SCOP_DEP_GRAPH): Defined.
4513 (ref_nb_loops): Fixed and moved to other position.
4514 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
4515 (nb_loops_around_loop_in_scop): New.
4516 (graphite_dump_dependence_graph): Declared.
4517 (graphite_build_rdg_all_levels): Declared.
4518 (graphite_test_dependence): Declared.
4519 * Makefile.in (graphite-data-ref.o): New target.
4521 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
4523 * Merge from mainline (139870:140164).
4525 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
4527 * Merge from mainline (138275:139870).
4528 * testsuite/gcc.dg/graphite/scop-matmult.c: XFailed as one of
4529 the commits from trunk broke the niter detection.
4531 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
4533 * graphite.c: Add more documentation. Fix formatting.
4534 (debug_loop_vec, debug_oldivs, loop_iv_stack,
4535 loop_iv_stack_debug): Moved...
4536 (schedule_to_scattering): Move before use.
4537 (dot_all_scops): Include in "#if 0" the code for system
4540 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
4541 loop_iv_stack_debug): ...here.
4543 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
4545 * tree-phinodes.c (make_phi_node): Extern.
4546 (add_phi_node_to_bb): New.
4547 (create_phi_node): Call add_phi_node_to_bb.
4548 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
4549 (remove_statement): Handle case where stored phi was updated
4550 and is no longer the same.
4551 * graphite.c (is_parameter): New.
4553 (expand_scalar_variables_expr): New.
4554 (expand_scalar_variables_stmt): New.
4555 (expand_scalar_variables): New.
4556 (move_phi_nodes): Create new phi instead of moving old one.
4557 (translate_clast): Call expand_scalar_variables.
4558 (find_vdef_for_var_in_bb): Also scan regular definitions.
4559 (skip_phi_defs): New.
4560 (collect_scop_exit_phi_args): New.
4561 (patch_scop_exit_phi_args): New.
4562 (gloog): Patch phis after scop.
4563 * tree-flow.h: (add_phi_node_to_bb): Declared.
4564 (make_phi_node): Declared.
4566 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
4568 * graphite.c (end_scop): Split the entry of the scop when it
4569 is the header of the loop in which the scop is ending.
4570 (build_scops_1, limit_scops): Update uses of end_scop.
4572 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
4574 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
4575 SCOP_ENTRY or SCOP_EXIT.
4577 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4579 * graphite.c (get_construction_edge): Removed.
4580 (gloog): Construction edge is the scop entry edge.
4582 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4584 * graphite.c (can_generate_for_scop): Removed.
4585 (gloog): Do not call it.
4587 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4589 * graphite.c (new_scop): Entry of a scop is an edge.
4590 Initialize SESE region.
4591 (free_scop): Free SESE region.
4592 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
4593 (split_difficult_bb): New, split from end_scop.
4594 (end_scop): Exit of a scop is an edge.
4595 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
4596 not automatically updated and thus is always wrong.
4597 * graphite.h (struct sese): New.
4600 (struct scop): New field for a SESE region. Remove entry, exit.
4601 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
4602 semantics as before. Moved comment around.
4604 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
4605 Sebastian Pop <sebastian.pop@amd.com>
4607 * graphite.c (graphite_transform_loops): Always enable gloog
4608 and find_transform when ENABLE_CHECKING.
4610 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4612 * graphite.c (graphite_transform_loops): Move pretty printer
4613 of SCOPs before doing any transform. Remove call to print_scops
4614 and dot_all_scops_1.
4616 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4618 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
4619 (print_graphite_bb): Same.
4621 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4623 * graphite.c (dot_all_scops_1): Cleanup.
4624 (move_scops): Fix comment.
4626 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4628 * graphite.c (build_scop_bbs): Revert commit 139355:
4630 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4631 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4633 * graphite.c (build_scop_bbs): Factor up code.
4635 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
4637 * graphite.c (gloog): Update dominator info.
4639 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
4641 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
4643 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
4645 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
4647 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
4648 (translate_clast): Correct formatting.
4649 * graphite.h (struct num_map): Removed.
4650 (struct graphite_bb): Remove num_map field.
4651 (GBB_INDEX_TO_NUM_MAP): Removed.
4653 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
4655 * graphite.c (build_access_matrix_with_af): Fix comments.
4656 (build_scop_data_accesses): Same.
4658 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
4660 * graphite.c (build_scop_data_accesses): Don't construct
4661 access matrices. Add a FIXME and an assert condition that
4662 should pass when the access matrices will be needed.
4664 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
4666 * tree-data-ref.c (stmt_simple_memref_p): Don't call
4668 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
4669 Moved close by free_graphite_bb.
4670 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
4671 (new_scop): Move close by free_scop.
4672 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
4674 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
4676 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
4677 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
4678 instead of recursive call.
4679 (graphite_translate_clast_equation): New.
4680 (graphite_create_guard_cond_expr): New.
4681 (graphite_create_new_guard): New.
4682 (get_stack_index_from_iv): Removed.
4683 (graphite_rename_ivs_stmt): Use gbb_loop_index.
4684 (get_true_edge_from_guard_bb): New.
4685 (translate_clast): Handle stmt_guard in clast.
4686 (get_construction_edge): Allow construction edge detection for
4687 a scope entry with multiple predecessors if one predecessor is
4688 the immediate dominator of scope entry.
4689 (can_generate_code_stmt): Enable code generation for clast_guard.
4690 (gloog): Use correct context loop. Removed check for post dominators.
4691 * cfgloop.h (create_empty_if_region_on_edge): Declared.
4693 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
4695 * graphite.c (remove_dead_loops): Document better which
4698 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
4700 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
4702 (graphite.o): Also depends on pointer-set.h.
4704 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
4706 * graphite.c (scop_record_loop): Fix compile warning.
4708 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
4709 Sebastian Pop <sebastian.pop@amd.com>
4711 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
4713 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
4715 * graphite.c (build_graphite_bb): Initialize bb->aux to
4716 point to the graphite_bb_p.
4717 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
4719 (add_bb_domains): Does not use the scop parameter.
4720 (graphite_transform_loops): Clean bb->aux at the end.
4722 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4723 Sebastian Pop <sebastian.pop@amd.com>
4725 * testsuite/lib/target-supports.exp
4726 (check_effective_target_fgraphite): New.
4728 * testsuite/gcc.dg/graphite/graphite.exp: Early exit when
4729 check_effective_target_fgraphite returns false.
4730 Set dg-do-what-default to compile.
4731 (scan-graphite-dump-times): Removed.
4732 * testsuite/gfortran.dg/graphite/graphite.exp: Same.
4734 * testsuite/gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
4735 Use scan-tree-dump-times instead of scan-graphite-dump-times.
4736 * testsuite/gcc.dg/graphite/scop-1.c: Same.
4737 * testsuite/gcc.dg/graphite/scop-2.c: Same.
4738 * testsuite/gcc.dg/graphite/scop-3.c: Same.
4739 * testsuite/gcc.dg/graphite/scop-4.c: Same.
4740 * testsuite/gcc.dg/graphite/scop-5.c: Same.
4741 * testsuite/gcc.dg/graphite/scop-6.c: Same.
4742 * testsuite/gcc.dg/graphite/scop-7.c: Same.
4743 * testsuite/gcc.dg/graphite/scop-8.c: Same.
4744 * testsuite/gcc.dg/graphite/scop-9.c: Same.
4745 * testsuite/gcc.dg/graphite/scop-10.c: Same.
4746 * testsuite/gcc.dg/graphite/scop-11.c: Same.
4747 * testsuite/gcc.dg/graphite/scop-12.c: Same.
4748 * testsuite/gcc.dg/graphite/scop-13.c: Same.
4749 * testsuite/gcc.dg/graphite/scop-matmult.c: Same.
4750 * testsuite/gcc.dg/graphite/scop-14.c: Same.
4751 * testsuite/gcc.dg/graphite/scop-15.c: Same.
4752 * testsuite/gcc.dg/graphite/block-0.c: Same.
4753 * testsuite/gcc.dg/graphite/scop-16.c: Same.
4754 * testsuite/gcc.dg/graphite/block-1.c: Same.
4755 * testsuite/gcc.dg/graphite/scop-17.c: Same.
4756 * testsuite/gcc.dg/graphite/scop-18.c: Same.
4757 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
4758 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
4759 * testsuite/gfortran.dg/graphite/block-2.f: Same.
4761 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4763 * graphite.c: Fix some XXX comments.
4764 (build_scop_dynamic_schedules): Removed.
4766 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4768 * graphite.h (scop_max_loop_depth): Moved...
4769 * graphite.c (scop_max_loop_depth): ...here.
4770 (remove_all_edges_1): New.
4771 (remove_all_edges): Factored code.
4772 (remove_cond_exprs): Check only the last statement for
4773 a GIMPLE_COND expression.
4775 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4777 * graphite.c (scan_tree_for_params): Early return when the
4778 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
4779 (find_scop_parameters): Factor out code.
4780 (graphite_trans_bb_strip_mine): Remove dead code.
4782 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4784 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
4785 graphite_trans_bb_move_loop): Factor asserts.
4786 (gloog): Perform sanity checks only for ENABLE_CHECKING.
4787 Do not call calculate_dominance_info and estimate_bb_frequencies.
4789 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
4791 * graphite.c (create_loops_mapping, free_loops_mapping,
4792 create_loops_mapping_num, debug_loop_mapping_1,
4793 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
4794 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
4795 graphite_loops_mapping_add_child_num,
4796 graphite_loops_mapping_insert_child,
4797 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
4798 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
4799 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
4800 create_num_from_index, get_num_from_index,
4801 swap_loop_mapped_depth): Removed.
4802 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
4803 (free_scop): Do not call free_loops_mapping.
4804 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
4805 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
4806 get_loop_mapped_depth.
4807 (graphite_trans_bb_move_loop): Do not update the loop mapping.
4808 (graphite_trans_bb_strip_mine): Same.
4809 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
4810 (struct scop): Remove field loops_mapping.
4812 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4813 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4815 * graphite.c (scop_record_loop): Factor out one level of the
4816 condition by early return.
4817 (build_scop_loop_nests): Format following FSF coding style.
4818 (build_scop_dynamic_schedules): Factor out code.
4819 (scopdet_bb_info): Reindent. Default case should not be reachable.
4821 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4822 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4824 * graphite.c (loop_affine_expr): Check for DECL_P or struct
4825 assignments that are not handled as simple operands for now.
4827 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4828 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4830 * graphite.c (build_scop_bbs): Factor up code.
4832 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4833 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4835 * graphite.c (stmt_simple_for_scop_p): Factor code out
4837 (enum gbb_type): New. Group all the GBB_* types under it.
4838 (is_loop_exit): Moved...
4839 (end_scop): Enable BB spliting.
4840 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
4841 * cfgloop.h (is_loop_exit): Declared.
4843 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4845 * doc/invoke.texi: Remove strides from examples containing
4846 DO loops when the strides are equal to 1.
4848 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
4849 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4851 * graphite.c (graphite_trans_scop_block): Or the result with
4852 the result from graphite_trans_loop_block.
4853 * testsuite/gcc.dg/graphite/block-1.c: New.
4854 * testsuite/gfortran.dg/graphite/block-1.f90: New.
4855 * testsuite/gfortran.dg/graphite/block-2.f: New.
4857 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4859 * graphite.c (graphite_transform_loops): Call cloog_initialize
4862 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4864 * tree-data-ref.c) (stmt_simple_memref_p): New.
4865 * tree-data-ref.h (stmt_simple_memref_p): Declared.
4866 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
4867 (is_simple_operand): Call stmt_simple_memref_p.
4869 * testsuite/gcc.dg/graphite/scop-matmult.c: Updated for not
4870 using pointer arithmetic, as this is optimized by PRE and
4871 makes the code too difficult to analyze.
4873 * testsuite/gcc.dg/graphite/scop-18.c: Same.
4875 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4877 * gdbinit.in (pgg): New.
4879 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
4881 * graphite.c (graphite_trans_loop_block): Fix warning.
4883 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
4885 * graphite.c (graphite_trans_loop_block): Fix my merge error.
4887 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
4889 * graphite.c (graphite_trans_bb_block): Remove check for
4890 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
4891 Check if loop blocking is profitable for every loop, before applying
4893 (graphite_apply_transformations): Call graphite_trans_bb_block only,
4894 if flag_loop_block is set.
4896 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
4898 * graphite.c: Add some more documentation for the loop
4901 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
4903 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
4904 * graphite.c: Format on less than 80 columns.
4907 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
4909 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
4911 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
4913 * doc/invoke.texi (floop-block, floop-strip-mine,
4914 floop-interchange): Update documentation with examples.
4916 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
4918 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
4920 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
4922 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
4924 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
4925 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
4926 * tree-scalar-evolution.c: Revert useless changes.
4927 * tree-phinodes.c: Same.
4930 * tree-vectorizer.h: Same.
4931 * tree-flow.h: Same.
4933 * common.opt (fgraphite): Update documentation.
4935 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
4937 * doc/invoke.texi (-floop-block, -floop-strip-mine,
4938 -floop-interchange): Add more text for explaining what each of these
4940 * tree-into-ssa.c (gimple_vec): Moved to...
4941 * graphite.c: Include gimple.h.
4942 (gimple_vec): Moved to...
4943 (del_loop_to_cloog_loop): Removed.
4944 (loop_affine_expr): Do not call create_data_ref when the
4945 operand is a constant.
4946 (new_scop): Use free instead of del_loop_to_cloog_loop.
4947 * Makefile.in (graphite.o): Depend on GIMPLE_H.
4948 * gimple.h (gimple_vec): ... here.
4950 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
4952 * graphite.c (scopdet_bb_info): Only allow loops with known number of
4954 (build_loop_iteration_domains): Fail, if latch executions unknown.
4956 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
4958 * graphite.c (add_conditions_to_domain): New.
4959 (build_scop_conditions_1): Call add_conditions_to_domain.
4960 (set_cloog_options): Allow to disable optimizations.
4962 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
4964 * graphite.c (find_params_in_bb): Look for parameters in conditions.
4965 Do not use walk_dominator_tree.
4966 (find_scop_parameters): Do not use walk_dominator_tree.
4968 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
4970 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
4971 (idx_record_params): Adapt.
4972 * graphite.h (scop_gimple_loop_depth): New.
4974 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
4976 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
4977 (scan_tree_for_params): Remove value_init.
4978 (build_scop_context): Remove value_init.
4979 (build_loop_iteration_domains): Remove value_init.
4980 (schedule_to_scattering): Remove value_init.
4981 (graphite_trans_bb_strip_mine): Remove value_init.
4983 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
4985 * gcc/graphite.c (limit_scops): New.
4986 (graphite_transform_loops): Add limit SCoPs.
4987 * gcc/testsuite/gcc.dg/graphite/scop-0.c: Update number of SCoPs.
4988 * gcc/testsuite/gcc.dg/graphite/scop-1.c: Update number of SCoPs.
4989 * gcc/testsuite/gcc.dg/graphite/scop-10.c: Update number of SCoPs.
4990 * gcc/testsuite/gcc.dg/graphite/scop-11.c: Update number of SCoPs.
4991 * gcc/testsuite/gcc.dg/graphite/scop-12.c: Update number of SCoPs.
4992 * gcc/testsuite/gcc.dg/graphite/scop-13.c: Update number of SCoPs.
4993 * gcc/testsuite/gcc.dg/graphite/scop-14.c: Update number of SCoPs.
4994 * gcc/testsuite/gcc.dg/graphite/scop-15.c: Update number of SCoPs.
4995 * gcc/testsuite/gcc.dg/graphite/scop-16.c: Update number of SCoPs.
4996 Change loop numbers.
4997 * gcc/testsuite/gcc.dg/graphite/scop-17.c: Update number of SCoPs.
4998 Change loop numbers.
4999 * gcc/testsuite/gcc.dg/graphite/scop-18.c: Update number of SCoPs.
5000 * gcc/testsuite/gcc.dg/graphite/scop-2.c: Update number of SCoPs.
5001 * gcc/testsuite/gcc.dg/graphite/scop-3.c: Update number of SCoPs.
5002 * gcc/testsuite/gcc.dg/graphite/scop-4.c: Update number of SCoPs.
5003 * gcc/testsuite/gcc.dg/graphite/scop-5.c: Update number of SCoPs.
5004 * gcc/testsuite/gcc.dg/graphite/scop-6.c: Update number of SCoPs.
5005 * gcc/testsuite/gcc.dg/graphite/scop-7.c: Update number of SCoPs.
5006 * gcc/testsuite/gcc.dg/graphite/scop-8.c: Update number of SCoPs.
5007 * gcc/testsuite/gcc.dg/graphite/scop-9.c: Update number of SCoPs.
5008 * gcc/testsuite/gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
5010 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5012 * graphite.c (graphite_transform_loops): Call always find_transform.
5014 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
5016 * graphite.c (free_loops_mapping): New.
5017 (stmt_simple_for_scop_p): Fix typo.
5018 (stmt_simple_for_scop_p): Fix tuples functions, that
5020 (free_graphite_bb): Fix some memleaks.
5021 (free_scop): Fix some memleaks.
5022 (scopdet_bb_info): Do not forget some tmp SCoPs.
5023 (find_params_in_bb): Fix some memleaks.
5024 (clast_to_gcc_expression): Fix warning.
5026 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
5028 * testsuite/gcc.dg/graphite/scop-16.c: Fix for 32bit.
5029 * testsuite/gcc.dg/graphite/scop-17.c: Fix for 32bit.
5031 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
5033 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
5034 Move code ifdef-ed HAVE_cloog...
5035 * graphite.c: Include toplev.h.
5037 * Makefile.in (OBJS-common): Always build graphite.o.
5038 (BACKEND): Remove @GRAPHITE@.
5039 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
5040 (graphite.o): Depend on TOPLEV_H.
5042 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
5044 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
5045 Remove typo left from polylib to ppl conversion.
5046 * graphite.c (graphite_transforms): Use sorry instead of fatal.
5048 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
5050 * toplev.c (process_options): Move the graphite loop optimization
5052 * tree-ssa-loop.c (graphite_transforms): ... here.
5053 When not configured with CLooG, print to dump_file that
5054 Graphite transforms were not performed.
5055 * testsuite/gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
5057 * testsuite/gcc.dg/graphite/*.c: Updated all testcases to use
5058 scan-graphite-dump-times.
5060 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
5062 * graphite.c (dot_scop, dot_all_scops): Do not call system.
5063 Do not open /tmp/scop.dot and /tmp/allscops.dot.
5065 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
5066 Jan Sjodin <jan.sjodin@amd.com>
5068 * configure: Regenerated.
5069 * omp-low.c (expand_omp_sections): Remove now unused code.
5070 * config.in (HAVE_polylib): Removed.
5071 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
5072 (PPLLIBS, PPLINC): Added.
5073 * graphite.c: Replace unsigned with int wherever possible.
5074 Don't access Cloog's data structures, but use accessor functions.
5075 Clast's stmt->type is now implemented as a vtable: change the
5076 switches of stmt->type into ifs.
5077 (polylib/polylibgmp.h): Don't include.
5078 (initialize_dependence_polyhedron,
5079 initialize_data_dependence_polyhedron, is_empty_polyhedron,
5080 statement_precedes_p, test_dependence, build_rdg_all_levels,
5081 dump_dependence_graph): Removed until this code is cleaned up
5083 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
5084 (POLYLIBINC): Renamed PPLINC.
5086 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
5087 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5088 Jan Sjodin <jan.sjodin@amd.com>
5090 Finish the merge and tuplification of graphite.
5092 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
5093 Jan Sjodin <jan.sjodin@amd.com>
5095 Partial merge from mainline (138072:138275).
5096 * graphite.c still has to be tuplified.
5098 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
5100 * graphite.c (graphite_loops_mapping_max_loop_num): New.
5101 (create_num_from_index): New.
5102 (get_num_from_index): Also pass in the graphite BB.
5103 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
5104 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
5105 (graphite_trans_bb_strip_mine): Call create_num_from_index.
5106 (is_interchange_valid): Return false when failing.
5107 * graphite.h (struct num_map): New.
5108 (struct graphite_bb): New field num_map.
5109 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
5111 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
5113 * graphite.c (dump_gbb_conditions): Print also conditions like
5114 "if (a)". Remove dublicated code and use print_generic_expr ().
5115 (stmt_simple_for_scop_p): Only allow conditions we can handle
5118 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
5120 * graphite.h (struct scop): Removed new_ivs field.
5121 (SCOP_NEWIVS): Deleted.
5122 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
5123 clast_to_gcc_expression, graphite_create_new_loop):
5124 Removed use of new_ivs.
5126 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
5128 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
5129 create_loops_mapping_num, debug_loop_mapping_1): New.
5130 (debug_loop_mapping): Call debug_loop_mapping_1.
5131 (get_loop_mapping_for_num,
5132 graphite_loops_mapping_add_child,
5133 graphite_loops_mapping_add_child_num,
5134 graphite_loops_mapping_insert_child,
5135 graphite_loops_mapping_parent,
5136 split_loop_mapped_depth_for_num,
5137 loop_mapped_depth_split_loop): New.
5138 (increment_loop_mapped_depths): Removed.
5139 (swap_loop_mapped_depth_for_num): Reimplemented.
5140 (new_scop): Call create_loops_mapping.
5141 (scop_record_loop): Call graphite_loops_mapping_insert_child.
5142 (translate_clast): Pass the old loop father in parameter, and pass
5143 it to get_old_iv_from_ssa_name.
5144 (remove_edges_around_useless_blocks, can_generate_code_stmt,
5145 can_generate_code, can_generate_for_scop): New.
5146 (graphite_trans_bb_block): Returns false when it fails to transform.
5147 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
5149 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
5151 Reverted all the changes related to the streamization and
5153 These changes are now tracked in the streamization branch.
5155 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
5156 Jan Sjodin <jan.sjodin@amd.com>
5158 * graphite.c (gbb_compare): Correctly constify.
5159 (gbb_can_be_ignored): Indent.
5160 (graphite_trans_scop_swap_1and2): Add legality check.
5163 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
5165 Remove fallouts from "Reverted the Condate changes".
5166 * tree.h: Remove unused decl.
5167 * testsuite/gcc.dg/tree-checker: Same.
5168 * timevar.def: Remove counter.
5170 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
5172 * Merge from mainline (135673:138072).
5174 Reverted the MIRO changes (from 2008-04-05) that are now
5175 tracked in the miro branch.
5176 * tree-bounds.c: Removed.
5177 * tree-bounds.h: Removed.
5179 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
5180 are now tracked in the condate branch.
5181 * tree-check.c: Removed.
5182 * tree-match.c: Removed.
5183 * condate.y: Removed.
5185 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5187 * common.opt: New user flag -floop-block, -floop-strip-mine
5188 and -floop-interchange.
5189 * toplev.c (process_options): Enable -fgraphite pass if any one of the
5190 graphite loop optimization flags is turned on.
5191 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
5192 flag_loop_strip_mine and flag_loop_interchange checks before
5194 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
5195 -floop-strip-mine and -floop-interchange.
5196 * testsuite/gcc.dg/graphite/block-0.c: Add -floop-block and remove
5198 * testsuite/gcc.dg/graphite/scop-16.c: Ditto.
5199 * testsuite/gcc.dg/graphite/scop-17.c: Ditto.
5200 * testsuite/gcc.dg/graphite/scop-18.c: Ditto.
5202 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
5203 Sebastian Pop <sebastian.pop@amd.com>
5205 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
5206 (create_empty_loop_on_edge): More fixes.
5207 * tree-phinodes.c (resize_phi_node): Extern.
5208 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
5209 * cfghooks.c (update_dominator_information): New split from
5211 * tree-vectorizer.c (rename_variables_in_bb): Extern.
5212 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
5213 successor of the function entry block.
5215 * graphite.c: Include pointer-set.h.
5216 (debug_loop_mapping, increment_loop_mapped_depths,
5217 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
5218 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
5219 swap_loop_mapped_depth_for_num, get_num_from_index,
5220 swap_loop_mapped_depth, loop_iv_stack_debug,
5221 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
5222 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
5223 get_old_iv_from_ssa_name): New.
5224 (new_scop): Initialize SCOP_LOOPS_MAPPING.
5225 (free_scop): Free SCOP_LOOPS_MAPPING.
5226 (scop_record_loop): Record old ivs.
5227 (create_var_name): Removed.
5228 (initialize_cloog_names): Allocate double space in case strip mine
5229 applies to all loops once.
5230 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
5231 (clast_to_gcc_expression): Same. Implement more clast to gimple
5233 (graphite_create_new_loop): Pass in ivstack.
5234 (remove_all_edges): Pass in the construction_edge.
5235 (graphite_remove_iv): Removed.
5236 (graphite_rename_ivs, graphite_rename_ivs_stmt,
5237 remove_cond_exprs): Rewritten.
5238 (move_phi_nodes): New.
5239 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
5240 (translate_clast): Pass in ivstack. Rewrite some cases.
5241 (set_cloog_options, debug_clast_stmt): New.
5242 (find_transform): Use set_cloog_options.
5243 (outermost_loop_layer): Removed.
5244 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
5245 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
5246 mark_old_loops, remove_dead_loops): New.
5248 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
5249 (const_column_index, get_first_matching_sign_row_index,
5250 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
5251 get_upper_bound): New.
5252 (graphite_trans_bb_strip_mine): Also update the iv map.
5254 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
5255 (struct name_tree): Add a loop field.
5256 (struct scop): Add a graphite_loops_mapping field.
5257 (SCOP_LOOPS_MAPPING): New.
5258 (debug_clast_stmt): Declare.
5259 * lambda.h (find_induction_var_from_exit_cond): Declare.
5260 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
5261 * cfgloop.h (update_dominators_in_loop): Removed declaration.
5262 (create_empty_loop_on_edge): Updated.
5263 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
5264 rename_variables_in_bb): Declare.
5265 * tree-cfg.c (remove_bb): Extern.
5267 * testsuite/gcc.dg/graphite/block-0.c: New.
5269 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5270 Sebastian Pop <sebastian.pop@amd.com>
5272 * graphite.c (strip_mine_profitable_p): New.
5273 (graphite_trans_bb_block): Disable strip mining if not profitable.
5275 * testsuite/gcc.dg/graphite/scop-18.c: New.
5276 * testsuite/gcc.dg/graphite/scop-17.c: Fixed.
5277 * testsuite/gcc.dg/graphite/scop-16.c: Fixed.
5279 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
5280 Jan Sjodin <jan.sjodin@amd.com>
5281 Sebastian Pop <sebastian.pop@amd.com>
5283 * graphite.c (is_interchange_valid): New.
5284 (graphite_trans_bb_block): Check loop nest of basic block for legality
5287 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
5288 outer_most_loop, gbb_outer_most_loop_index): New.
5290 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
5291 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
5292 * testsuite/gcc.dg/graphite/scop-16.c: New.
5293 * testsuite/gcc.dg/graphite/scop-17.c: New.
5295 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
5297 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
5298 (graphite_trans_scop_block): Ignore SCoPs without bbs.
5300 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
5302 * graphite.c (new_scop): Initialize SCOP_EXIT.
5303 (scopdet_info): Add.
5304 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
5305 (build_scops_1): Cleanup, bugfixes.
5306 (build_scops): Cleanup.
5308 * testsuite/gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
5309 * testsuite/gcc.dg/graphite/scop-15.c: Add SCoP numbers.
5311 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
5313 * testsuite/gfortran.dg/graphite/scop-1.f: Update to reduced test case.
5315 * testsuite/gfortran.dg/graphite/graphite.exp: Use
5316 DEFAULT_GRAPHITE_FLAGS.
5318 * testsuite/gcc.dg/graphite/scop-15.c: Update to reduced test case.
5320 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
5322 * graphite.c (scan_tree_for_params): Do not assert any more if
5323 MULT_EXPR parameter is negative.
5325 * testsuite/gfortran.dg/graphite/scop-1.f: New.
5327 * testsuite/gfortran.dg/graphite/graphite.exp: New.
5329 * testsuite/gcc.dg/graphite/scop-15.c: New.
5331 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
5333 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
5335 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
5337 * graphite.c (graphite_trans_bb_swap_loops): Rename from
5338 graphite_swap_loops.
5339 (graphite_trans_bb_move_loop): New.
5340 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
5341 (graphite_trans_bb_block): New.
5342 (graphite_trans_loop_block): New.
5343 (graphite_trans_scop_swap_1and2): Rename from
5344 graphite_trans_swap_1and2.
5345 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
5346 (graphite_trans_scop_block): New.
5347 (graphite_apply_transformations): Rename from
5348 graphite_transformations.
5350 * testsuite/gcc.dg/graphite/scop-matmult.c: New.
5352 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
5354 * graphite.c (gbb_compare): New.
5355 (graphite_sort_gbbs): New.
5356 (gbb_can_be_ignored): New.
5357 (scop_remove_ignoreable_gbbs): New.
5358 (graphite_transformations): Cleanup and add
5359 scop_remove_ignoreable_gbbs.
5360 * lambda.h (lambda_vector_compare): New.
5362 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
5364 * graphite.c (print_graphite_bb): Correct printing of static schedule.
5365 (graphite_swap_loops): int -> unsigned
5366 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
5367 (graphite_transformations): New.
5368 (graphite_transform_loops): Move to graphite_transformations.
5369 * graphite.h (gbb_nb_loops): Return unsigned.
5371 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
5373 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
5374 the domain matrix. This makes scop-0.c work again.
5376 2008-06-20 Richard Guenther <rguenther@suse.de>
5378 * graphite.h: Adjust copyright to GPLv3.
5379 * graphite.c: Likewise.
5380 (stmt_simple_memref_for_scop_p): Split out from ...
5381 (stmt_simple_for_scop_p): ... here. Fix handling of calls
5383 (get_bb_type): Optimize.
5385 (is_bb_addable): Fix memleak, replace is_pred call with
5387 (build_scops): Use current_loops.
5388 (param_index): Fix memleak.
5390 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5392 * graphite.c: Fix formatting.
5394 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5396 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
5397 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
5398 (create_var_name, save_var_name): Newly defined functions.
5399 (initialize_cloog_names): Part of the code factored out to
5401 (clast_to_gcc_expression): Now handles the case of clast_red_sum
5402 in clast_reduction statement.
5403 (graphite_create_new_loop): Now takes a new parameter
5405 (translate_clast): Now also takes the context_loop and bb_exit
5406 parameters. Rewritten the code so that it creates a gimple code
5407 inside the given context.
5408 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
5409 remove_cond_expr, disconnect_cond_expr,
5410 disconnect_virtual_phi_nodes): Newly defined functions.
5411 * graphite.h (struct scop): added old_ivs vector.
5412 SCOP_OLDIVS: New macro.
5414 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
5416 * cfgloopmanip.c: Add missing function comments, fix formatting.
5418 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5420 * cfgloopmanip.c (update_dominators_in_loop): Defined.
5421 (create_empty_loop_on_edge): Defined.
5422 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
5424 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
5425 (update_dominators_in_loop): Declared as extern
5426 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
5428 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
5430 * graphite.c (print_graphite_bb): Allow changing number of loops
5432 (initialize_cloog_names): Allow changing number of loops.
5433 (build_cloog_prog): Simplify.
5434 (find_transform): Enable cloog option --strides.
5435 (graphite_swap_loops): New.
5436 (graphite_strip_mine_loop): New.
5437 (graphite_trans_swap_1and2): New.
5438 (graphite_trans_strip): New.
5439 (graphite_transform_loops): Add graphite_trans_strip.
5440 * graphite.h (scop_max_loop_depth): New.
5442 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
5444 * graphite.c (build_scop_iteration_domain): Remove forgotten
5445 line. (Fixes compile)
5447 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
5449 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
5450 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
5451 (build_bb_loops): New.
5452 (graphite_transform_loops): Add build_bb_loops.
5453 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
5455 * graphite.h (graphite_bb): Add loops.
5456 (gbb_nb_loops): New.
5457 (gbb_loop_at_index): New.
5458 (gbb_loop_index): New.
5459 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
5460 using nb_params_in_scop.
5462 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
5464 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
5465 (build_scop_canonical_schedules): Build minimized schedule.
5466 (schedule_to_scattering): Adapt to minimized schedule.
5467 * graphite.h (graphite_bb): Add/Update descriptions.
5469 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
5470 Tobias Grosser <grosser@fim.uni-passau.de>
5472 * graphite.c (print_graphite_bb): Add condition printing.
5474 (dump_gbb_conditions): New.
5475 (build_scop_conditions_1): New.
5476 (build_scop_conditions): New.
5477 * graphite.h (graphite_bb): Add conditions.
5479 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
5481 * graphite.c (print_graphite_bb):
5482 (free_graphite_bb): New.
5483 (free_scop): Free bbs.
5484 (get_bb_type): Free doms.
5485 (build_scop_context): Free context matrix.
5486 (build_loop_iteration_domains): Remove unused code.
5487 (build_cloog_prog): Free scattering function and blocklist.
5488 (find_transform): Free options.
5490 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
5492 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
5493 Remove unnecessery cloog data structures. Make a copy of the domain
5494 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
5495 unnecessary cloog data structures. Fix memory leaks. Remove insert
5496 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
5498 (build_scop_iteration_domain): Remove unnecessary cloog
5499 data structures. Fix memory leaks.
5500 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
5501 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
5503 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
5505 * graphite.c (find_scop_params): Remove initialize_cloog_names.
5507 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
5509 * graphite.c (end_scop): Style fix.
5510 (schedule_to_scattering): Style and comment fix.
5512 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
5513 * graphite.c (print_graphite_bb): Fix definiton of
5514 schedule_to_scattering.
5515 (initialize_cloog_names): Change nb_scattdims to max loop
5517 (schedule_to_scattering): Take parameter for number of scattering
5519 (build_cloog_prog): Only build as much scattering dimensions as
5522 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
5524 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
5525 in polyhedron/aermod.f90.
5527 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
5528 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
5529 Harsha Jagasia <harsha.jagasia@amd.com>
5531 * graphite.c (is_bb_addable): Fix segfault.
5533 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
5535 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
5536 with multiple exits and conditional handling in edge cases.
5537 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
5539 * testsuite/gcc.dg/graphite/scop-14.c: New.
5541 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
5542 Adrien Eliche <aeliche@isty.uvsq.fr>
5544 * graphite.c (is_bb_addable): Add more comments and enhance
5545 readablity of the source code. Fix memory leak.
5546 (is_loop_exit): Fix memory leak.
5548 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
5550 * graphite.c (first_loop_in_scop): Deleted.
5551 (setup_cloog_loop): Only walk the loop chain for inner loops.
5552 (build_scop_iteration_domain): Execute setup_cloog_loop for
5553 all loops in the first layer.
5555 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
5557 * graphite.c (scan_tree_for_params): Change the way params are
5558 added to be indepenent of the number of loops.
5559 (setup_cloog_loop): Revert to short matrix format. Fix parameter
5561 (build_cloog_prog): Revert to short matrix format.
5563 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
5564 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
5566 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
5569 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
5571 * graphite.c (nb_data_refs_in_scop): New.
5572 (graphite_transform_loops): Print more stats: number of
5573 loops, basic blocks and data references per scop.
5575 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
5576 Jan Sjodin <jan.sjodin@amd.com>
5578 * graphite.c (loop_affine_expr, idx_record_params,
5579 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
5580 instead of instantiate_parameters.
5582 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
5584 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
5585 add support for parameters, add STATIC_SCHEDULE at the right places,
5588 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
5590 * graphite.c (build_scop_loop_nests): Only add the loops, that
5591 are contained completely in the SCoP.
5592 (build_cloog_prog): Disable scattering, until schedule_to_scattering
5593 and the domains are fixed.
5594 (build_scop_canonical_schedules): Add support for bbs not contained
5597 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
5599 * graphite.h (scop_contains_loop): Update comments to match
5600 the actual behavior.
5601 (scop_contains_loop): New.
5602 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
5604 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
5606 * graphite.c (get_bb_type): On function body, i.e. loop_0,
5607 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
5610 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
5611 Tobias Grosser <grosser@fim.uni-passau.de>
5613 * graphite.c (graphite_transform_loops): Early return when
5614 there are no loops in the function.
5616 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
5617 Jan Sjodin <jan.sjodin@amd.com>
5619 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
5620 offset of the last loop.
5621 (setup_cloog_loop): Copy the entire outer constraint matrix.
5623 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
5624 Jan Sjodin <jan.sjodin@amd.com>
5626 * graphite.c (stmt_in_scop_p, function_parameter_p,
5627 invariant_in_scop_p): Removed.
5628 (scan_tree_for_params): Can be used with no constraint
5629 matrix for gathering parameters.
5630 (idx_record_params): Don't use idx_record_param, instead use
5631 scan_tree_for_params.
5632 (find_scop_parameters): Same.
5633 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
5634 Fix the size of loop domains.
5635 (schedule_to_scattering): Exit when the outer loop is not in scop.
5636 (find_transform): Enable build_cloog_prog.
5638 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
5639 Jan Sjodin <jan.sjodin@amd.com>
5641 * graphite.c (schedule_to_scattering): Make scattering domains
5642 uniformly of the same size, as required by CLooG 0.14.0 and before.
5644 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
5645 Jan Sjodin <jan.sjodin@amd.com>
5647 * graphite.c (schedule_to_scattering): Rewrite, correct the
5648 translation of the scheduling function to scattering.
5649 (build_cloog_prog): Call schedule_to_scattering only once.
5650 * graphite.h (scop_loop_index): Do not fail for loops not
5651 in the scop: return -1.
5653 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
5655 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
5656 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
5657 (setup_cloog_loop): Export GBB_DOMAIN.
5658 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
5659 able to rebuild the original control flow.
5660 * graphite.h (graphite_bb): Add domain field and access macro.
5663 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
5665 * graphite.c (debug_gbb): New.
5666 (print_scop, build_graphite_bb): Use SCOP_BBS.
5667 (build_scop_bbs): Reimplemented.
5668 (dfs_bb_in_scop_p): Removed.
5669 (build_scop_loop_nests): Reorder loops inserted in
5670 SCOP_LOOP_NEST: outer loops should come first.
5671 (build_scop_canonical_schedules): Reinitialize at zero
5672 the components of the SCOP_STATIC_SCHEDULE for the loops
5673 that have already been parsed.
5675 * graphite.h (debug_gbb): Declared.
5677 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
5678 Jan Sjodin <jan.sjodin@amd.com>
5680 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
5681 (graphite_loop_to_gcc_loop): Removed.
5682 (remove_all_edges): New.
5683 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
5684 (gloog): Remove useless code.
5686 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
5688 * graphite.c (get_bb_type): Reworked. We distinguish between
5689 loops with one or multiple exits.
5690 (is_loop_exit): New.
5692 (is_bb_addable): Rework condition handling, now support for case
5693 case statements and loops with multiple exits.
5695 * testsuite/gcc.dg/graphite/scop-11.c: New.
5696 * testsuite/gcc.dg/graphite/scop-12.c: New.
5697 * testsuite/gcc.dg/graphite/scop-13.c: New.
5699 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
5701 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
5702 we have too many colors.
5704 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
5706 * doc/invoke.texi (-ftree-loop-fusion): Document.
5707 * tree-pass.h (pass_loop_fusion): Declared.
5708 * tree-loop-fusion.c: New.
5709 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
5710 * tree-data-ref.c (find_data_references_in_loop): Make extern.
5711 * tree-data-ref.h (find_data_references_in_loop): Declared.
5712 * common.opt (ftree-loop-fusion): Declared.
5713 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
5715 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
5717 * graphite.c (build_access_matrix): Fix typo from the merge.
5719 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
5721 * Merge from mainline (130800:135673).
5723 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
5725 * graphite.c (end_scop): The exit of the scop is not part of the scop.
5726 Update dominators after splitting.
5728 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
5730 * graphite.c (is_bb_addable): Return the harmful statement.
5731 Factor up some code.
5732 (end_scop): New. Splits end of scope bbs on a harmful statement.
5733 (build_scops_1): Call end_scop.
5735 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
5737 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
5738 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
5739 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
5740 build_scops_1): Removed.
5741 (build_scops_2): Renamed build_scops_1.
5743 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
5745 * graphite.c: Fix formatting.
5747 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
5749 * graphite.c (get_bb_type): New.
5751 (build_scops_2): New.
5752 (is_bb_addable): New.
5753 (build_scops): Switch the scop detection.
5754 (build_scop_bbs): Add entry bb to scop.
5755 * graphite.h (struct scop): Update comment.
5757 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
5759 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
5762 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
5764 * testsuite/gcc.dg/graphite/scop-1.c: Update.
5765 * testsuite/gcc.dg/graphite/scop-2.c: Update.
5766 * testsuite/gcc.dg/graphite/scop-4.c: Update.
5767 * testsuite/gcc.dg/graphite/scop-5.c: Add.
5768 * testsuite/gcc.dg/graphite/scop-6.c: Add.
5770 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
5772 * testsuite/gcc.dg/graphite/scop-0.c: Add.
5773 * testsuite/gcc.dg/graphite/scop-7.c: Add.
5774 * testsuite/gcc.dg/graphite/scop-8.c: Add.
5775 * testsuite/gcc.dg/graphite/scop-9.c: Add.
5776 * testsuite/gcc.dg/graphite/scop-10.c: Add.
5778 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
5780 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
5781 Check affine expressions depending on the outermost loop
5783 (stmt_simple_for_scop_p): Same.
5784 (harmfule_stmt_in_scop): Same.
5786 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
5788 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
5789 mark entry and exit, that are not part of the SCoP and update HTML
5792 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
5794 * graphite.c (basic_block_simple_for_scop_p): Renamed
5796 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
5797 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
5798 (all_preds_visited_p, all_succs_visited_p,
5799 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
5800 scop_end_loop): New.
5801 (build_scops): Do not use dfs_enumerate_from.
5803 * testsuite/gcc.dg/graphite/scop-{1,2,4}.c: Updated.
5805 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
5807 * graphite.c: Add comments to functions that are missing a
5809 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
5811 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
5813 * graphite.c (nb_params_in_scop): Moved...
5814 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
5815 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
5816 (clast_to_gcc_expression): Reduce column size to less than 80.
5817 (graphite_create_iv): Return the new name of the IV.
5818 (find_transform): Set options->esp and options->cpp.
5819 (gloog): Comment out the invalidation of the old loop code.
5820 (initialize_dependence_polyhedron): Replace scop_nb_params with
5823 * graphite.h (nb_params_in_scop): ... here.
5824 (scop_nb_params): Removed.
5825 (loop_domain_dim): Return something even when the loop was not
5826 found in the hash table: avoid ICEing on all the graphite.exp
5829 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5831 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
5833 * graphite.c (build_scop_dynamic_schedules): Schedule is built
5834 according to nesting level.
5835 (find_scop_parameters): Call instantiate_parameters.
5836 (scan_tree_for_params): Extend it to handle general affine bounds.
5837 Inner loop bound can depend on outer loop induction variable.
5838 (setup_cloog_loop): tmp variable is allocated on stack. Call
5839 instantiate_parameters with respect to outermost_loop_in_scop.
5840 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
5842 (create_empty_loop): Function loopify should be given edge
5843 probability, instead of edge frequency. Dominance relation from
5844 switch_bb to loop_header.
5845 (clast_to_gcc_expression): Added handling of clast_reduction node.
5846 (gloog): New functionality for removing old loop.
5847 (test_dependence): Factored out from build_rdg_all_levels.
5848 (build_rdg_all_levels): Dependence testing factored out to
5849 test_dependence function.
5851 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
5852 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
5855 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
5857 * graphite.c (free_scop, param_index, initialize_cloog_names,
5858 nb_params_in_scop): Use name_tree map instead of just a tree
5859 for keeping track of the variable name associated to that tree.
5860 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
5861 clast_to_gcc_expression, graphite_create_iv,
5862 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
5863 graphite_stmt_to_gcc_stmt): New.
5864 (gloog): Call these.
5865 * graphite.h (struct name_tree): New.
5866 (struct scop): Use name_tree instead of tree for params.
5867 Store a vector of name_tree for new_ivs.
5869 (scop_nb_params): Use name_tree instead of tree.
5871 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
5872 Sebastian Pop <sebastian.pop@amd.com>
5874 * tree-bounds.c: New.
5875 * tree-bounds.h: New.
5876 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
5877 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
5878 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
5882 * c-cppbuiltin.c: Same.
5886 * tree-outof-ssa.c: Same.
5888 * Makefile.in: Same.
5890 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
5891 Sebastian Pop <sebastian.pop@amd.com>
5893 * tree-loop-distribution.c (remaining_stmts,
5894 upstream_mem_writes): Removed static variables.
5895 (copy_loop_before, create_bb_after_loop,
5896 mark_nodes_having_upstream_mem_writes, free_rdg_components,
5897 rdg_build_components, rdg_build_partitions,
5898 dump_rdg_partitions): Extern.
5899 (generate_loops_for_partition, generate_code_for_partition): Do not
5901 (already_processed_vertex_p, predecessor_has_mem_write,
5902 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
5903 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
5904 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
5905 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
5906 Pass remaining_stmts and upstream_mem_writes as parameters.
5907 (rdg_component): Moved...
5908 (build_rdg_partition_for_component): Do not aggregate components when
5909 flag_streamize_loops is set.
5910 (gen_sequential_loops): New.
5911 (ldist_gen): Call gen_sequential_loops.
5913 * tree-pass.h (pass_loop_streamization): Declared.
5915 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
5916 basic blocks when loops structures exist.
5918 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
5920 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
5922 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
5923 eliminate_local_variables_stmt, eliminate_local_variables,
5924 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
5925 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
5926 of code delimited by two edges in the CFG.
5927 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
5928 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
5929 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
5930 the case of parallelisation of reductions.
5931 (create_loop_fn): Extern.
5932 (create_omp_parallel_region): New.
5934 * tree-data-ref.c (dump_data_dependence_relation): Don't call
5935 dump_data_reference for printing dra and drb.
5936 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
5938 (build_rdg): Don't call free_dependence_relations for the moment, as
5939 we attach dependence relations on each edge of the RDG.
5942 * tree-data-ref.h (rdg_component): ...here.
5943 (struct rdg_edge): New field ddr_p relation.
5944 (RDGE_RELATION): New.
5945 (create_bb_after_loop, copy_loop_before,
5946 mark_nodes_having_upstream_mem_writes, rdg_build_components,
5947 rdg_build_partitions, dump_rdg_partitions,
5948 free_rdg_components): Declared.
5950 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
5951 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
5953 * tree-loop-streamization.c: New.
5955 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
5956 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
5958 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
5960 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
5962 * passes.c: Schedule pass_loop_streamization.
5964 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
5966 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
5969 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
5971 * graphite.c (dot_all_scops): Update formatting.
5972 Bbs can now be part of more than one SCoP.
5974 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
5976 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
5978 (loop_domain_dim): Check for unregistered toplev SCOP loop.
5979 * graphite.h (loop_to_cloog_loop): New.
5981 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5983 * graphite.c (loop_domain_dim, ref_nb_loops,
5984 loop_iteration_vector_dim): New.
5985 (build_access_matrix_with_af, build_access_matrix,
5986 initialize_dependence_polyhedron): Fixed for new matrix layout.
5987 No longer assume that all iteration domains are of the same
5990 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
5992 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
5993 defined in a loop at depth 0 is invariant.
5994 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
5995 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
5996 be called at loop depth 0.
5998 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
6000 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
6001 (down_open_scop): Removed.
6002 (loop_in_scop_p): Redefined.
6003 (scop_affine_expr): New argument: scop.
6004 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
6005 a harmful statement ending a scop.
6006 (basic_block_simple_for_scop_p): New argument: scop.
6007 (get_loop_start): Removed.
6008 (new_scop): Initialize SCOP_LOOPS.
6009 (free_scop): Free SCOP_LOOPS.
6010 (succs_at_same_depth, preds_at_same_depth): New.
6011 (end_scop): Test the validity of a scop.
6012 (add_dominators_to_open_scops): New.
6013 (test_for_scop_bound): Call add_dominators_to_open_scops.
6014 Add cases for opening and closing multiple scops.
6015 (build_scops, build_scop_bbs): Iterate over basic blocks in
6017 (build_graphite_bb): Pass scop directly.
6018 (dfs_bb_in_scop_p): New.
6019 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
6021 (nb_loops_around_gb): Use loop_in_scop_p.
6022 (schedule_to_scattering): Disabled for the moment the code computing
6023 the "textual order for outer loop".
6025 * graphite.h (struct scop): New field loops.
6027 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
6029 * testsuite/gcc.dg/graphite/scop-{1,...,7}.c: Updated.
6031 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
6032 Sebastian Pop <sebastian.pop@amd.com>
6034 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
6035 * common.opt (fstreamize-loops): New.
6036 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
6037 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
6038 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
6039 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
6041 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6043 * tree-data-ref.c (build_empty_rdg): New.
6044 (build_rdg): Use it.
6045 * tree-data-ref.h (build_empty_rdg): Declared.
6046 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
6047 (find_vertex_for_stmt): Removed.
6048 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
6050 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
6052 * tree-loop-distribution.c (generate_builtin): After cancelling the
6053 loop tree, also delete basic blocks.
6054 (rdg_flag_uses): Stop recursion when a vertex has already been
6057 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6059 * graphite.c (build_scop_alpha): Removed.
6060 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
6061 and dump_dependence_graph to avoid compiler warnings.
6063 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6065 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
6066 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
6067 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
6068 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
6069 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
6070 (initialize_dependence_polyhedron, find_vertex_for_stmt,
6071 initialize_data_dependence_polyhedron, is_empty_polyhedron,
6072 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
6073 dump_dependence_graph): New.
6074 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
6076 (struct scop): New field loop2cloog_loop.
6077 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
6078 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
6080 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6082 * graphite.c (build_graphite_bb): Fix initialization
6083 of the graphite basic block.
6085 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
6087 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
6088 loop domain matrix. Pass in the number of loops contained in the
6090 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
6091 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
6092 loops that are not surrounding the current loop are not represented
6093 in the domain constraint matrix.
6094 (build_scop_iteration_domain): Initial domain constraint matrix
6095 contains only the eq/ineq, cst, and scop parameters columns.
6097 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
6099 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
6100 (print_graphite_bb): Print scattering.
6102 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
6104 * graphite.c (initialize_cloog_names): Initialize names of
6105 scattering variables.
6107 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
6109 * graphite.c (dot_all_scops_1): Disable debug output while
6112 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
6114 * graphite.c (find_transform): Change cloog output language to C.
6116 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
6118 * tree-loop-distribution.c (generate_memset_zero,
6119 generate_builtin, generate_code_for_partition,
6120 rdg_flag_all_uses): New.
6121 (rdg_flag_uses): Gather in the same partition the statements defining
6122 the VUSES of the current statement.
6123 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
6124 Gather in the same partition not only the stores to the same memory
6125 access, but also the reads.
6126 (ldist_generate_loops): Renamed ldist_gen.
6128 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
6129 Tobias Grosser <grosser@fmi.uni-passau.de>
6131 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
6132 next pointer, don't use the inner pointer.
6134 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
6136 * graphite.c (dot_all_scops, dot_all_scops_1): New.
6137 (find_transform): Call dot_all_1.
6138 * graphite.h (dot_all_scops): Declared.
6140 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
6142 * tree-loop-distribution.c: Fix apsi.f ICE.
6143 (create_bb_after_loop): New.
6144 (generate_loops_for_partition): Use it.
6145 * testsuite/gfortran.dg/ldist-1.f90: New.
6147 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
6148 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
6150 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
6152 * graphite.c (find_transform): Dump cloog program sent to cloog.
6154 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
6156 * graphite.c (initialize_cloog_names): Initialize cloog
6159 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
6161 * graphite.c (build_scop_context): Fix typo, for the matrix
6162 format: insert '0 >= 0' instead of '-1 >= 0'.
6164 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
6166 * Fix merge problems.
6168 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
6170 * graphite.c (setup_cloog_loop): Fix typo.
6172 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
6174 * doc/invoke.texi (-ftree-loop-distribution): Documented.
6175 * tree-loop-distribution.c: Reimplemented.
6176 * tree-pass.h (pass_loop_distribution): New.
6177 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
6179 * graphds.h (struct graph): New field indexes.
6180 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
6182 * tree-vect-analyze.c: Remove declaration of static functions when not
6184 * tree-vectorizer.c: Same.
6185 (rename_variables_in_loop): Now extern.
6186 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
6187 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
6188 calling redirect_edge_and_branch_force.
6190 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
6192 * tree-data-ref.c: Don't include tree-chrec.h.
6193 (debug_data_dependence_relations): New.
6194 (dump_data_dependence_relation): Call dump_data_reference on data refs
6196 (same_access_functions): Moved...
6197 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
6198 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6199 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
6200 struct rdg_vertex_info, ): New.
6201 (create_rdg_edge_for_ddr): Compute the dependence level before looking
6203 (create_rdg_vertices): Initialize the htab of graph->indexes.
6204 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
6205 (stmts_from_loop): Don't save LABEL_EXPR.
6206 (hash_stmt_vertex_info, eq_stmt_vertex_info,
6207 hash_stmt_vertex_del): New.
6208 (build_rdg): Initialize rdg->indexes.
6209 (free_rdg, stores_from_loop, ref_base_address,
6210 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
6211 have_similar_memory_accesses_1, ref_base_address_1,
6212 remove_similar_memory_refs): New.
6214 * tree-data-ref.h: Include tree-chrec.h.
6215 (debug_data_dependence_relations): Declared.
6216 (same_access_functions): ...here. Now static inline.
6217 (ddr_is_anti_dependent, ddrs_have_anti_deps,
6218 ddr_dependence_level): New.
6219 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
6220 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
6221 RDG_MEM_READS_STMT): New.
6222 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6223 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
6224 rdg_vertex_for_stmt): Declared.
6225 (struct rdg_edge): New field level.
6226 (RDGE_LEVEL, free_rdg): New.
6227 (stores_from_loop, remove_similar_memory_refs,
6228 rdg_defs_used_in_other_loops_p,
6229 have_similar_memory_accesses): Declared.
6230 (rdg_has_similar_memory_accesses): New.
6232 * lambda.h (dependence_level): New.
6233 * common.opt (ftree-loop-distribution): New.
6234 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
6235 (print_loop_ir): Renamed print_loops.
6236 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
6237 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
6238 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
6239 (tree-loop-distribution.o): Added.
6240 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
6241 (mark_virtual_ops_in_bb): New.
6242 (print_loops_bb, debug_loop_num, debug_loop): New.
6243 * passes.c: Scheduled pass_loop_distribution.
6245 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6247 * graphite.c (scan_tree_for_params): Correct the number of columns
6249 (nb_flat_iterator): New.
6250 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
6251 (build_scop_iteration_domain): Correct the number of columns for
6254 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
6256 * Merge from mainline (129697:130800).
6258 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
6260 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
6261 dominated by SCoP's exit.
6262 (graphite_transform_loops): Compute post dominators.
6264 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
6266 * Merge from mainline (127169:129697).
6268 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
6270 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
6271 parameter for the basic block that contains the expression. Use
6272 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
6273 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
6275 * graphite.h (gbb_loop): New.
6276 (GBB_LOOP): Removed.
6278 2007-08-03 Sebastian Pop <sebpop@gmail.com>
6280 * Makefile.in: Fix merge problem.
6282 2007-08-03 Sebastian Pop <sebpop@gmail.com>
6284 * Merge from mainline (125309:127169).
6285 * tree-loop-distribution.c: Disabled.
6287 2007-06-05 Sebastian Pop <sebpop@gmail.com>
6289 * Merge from mainline (r123693:125309).
6291 2007-05-30 Sebastian Pop <sebpop@gmail.com>
6293 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
6295 (correct_modify_p, check_statements, number_of_lvalue_uses,
6296 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
6297 instead of MODIFY_EXPR.
6298 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
6301 2007-05-24 Sebastian Pop <sebpop@gmail.com>
6303 * tree-loop-distribution.c (struct rdg): Replace arrays by
6304 VECs for edges and vertices.
6305 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
6306 (RDGV_NB_PARTITIONS): New.
6307 (PRDG_NBV, PRDG_NBE): Removed.
6308 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
6309 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
6310 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
6312 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
6313 Sebastian Pop <sebpop@gmail.com>
6315 * doc/invoke.texi (-ftree-loop-distribution): Document.
6316 * tree-loop-distribution.c: New file.
6317 * tree-pass.h (pass_loop_distribution): Declared.
6318 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
6319 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
6321 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
6322 (DDR_REVERSED_P): New.
6323 * common.opt (-ftree-loop-distribution): New.
6324 * tree-flow.h (distribute_loops): Declared.
6325 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
6326 * passes.c (init_optimization_passes): Schedule loop distribution.
6328 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
6330 * graphite.c (print_graphite_bb): Don't call dump_data_references.
6331 (print_scop): Don't print when scop is NULL.
6332 (build_scop_context, find_transform): Don't output to stderr.
6334 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
6336 * tree-data-ref.c: Don't include graphite.h.
6337 Comment out the code for printing data reference's scop.
6338 (build_access_matrix_with_af): Moved...
6339 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
6340 * graphite.c (build_access_matrix_with_af): ... here. Now static.
6341 (print_graphite_bb): Print basic block's schedule.
6342 (print_scop): Don't print the schedule, call cloog's pretty printer.
6343 (bb_in_scop_p): A basic block is in a scop only if it is both
6344 dominated and postdominated by the scop's entry and exit basic blocks.
6345 (function_parameter_p): New.
6346 (invariant_in_scop_p): Use function_parameter_p.
6347 (new_scop, save_scop): New.
6348 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
6350 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
6351 (loop_in_scop_p): New.
6352 (scop_record_loop): Use loop_in_scop_p.
6353 (build_scop_domain): Renamed build_scop_iteration_domain.
6354 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
6355 nb_params_in_scop, build_scop_context, first_loop_in_scop,
6356 setup_cloog_loop, dot_scop_1, dot_scop): New.
6357 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
6358 (struct scop): Add a pointer to cloog's representation of a program.
6360 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
6362 * doc/invoke.texi (-ftree-check-verbose): Renamed
6363 -ftree-checks-verbose.
6364 * common.opt (flag_tree_check_verbose): Renamed
6365 flag_tree_checks_verbose.
6366 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
6368 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
6370 * configure: Regenerated.
6371 * config.in: Regenerated.
6372 * tree-ssa-loop.c (graphite_transforms): Execute
6373 graphite_transform_loops only when HAVE_cloog.
6374 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
6375 * graphite.c: Include polylibgmp.h and cloog.h.
6376 (graphite_transform_loops): Removed loops parameter.
6377 * tree-flow.h (graphite_transform_loops): Update declaration.
6378 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
6379 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
6380 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
6381 (OBJS-common): Remove dependence on graphite.o.
6382 (BACKEND): Depend on @GRAPHITE@.
6384 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
6386 * doc/invoke.texi (-ftree-check-verbose): Documented.
6387 * testsuite/gcc.dg/tree-checker/tree-checks-1.c: New.
6388 * testsuite/gcc.dg/tree-checker/tree-checks-2.c: New.
6389 * testsuite/gcc.dg/tree-checker/tree-checks-3.c: New.
6390 * testsuite/gcc.dg/tree-checker/tree-checks-4.c: New.
6391 * testsuite/gcc.dg/tree-checker/tree-checks.exp: New.
6392 * testsuite/gcc.dg/tree-checker/condates.crp: New.
6393 * common.opt (ftree-checks-verbose): New.
6394 * tree-check.c (tree_check_warning): Move extra stderr output
6395 under control of flag_tree_check_verbose.
6397 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
6399 * tree-match.c: Fix comments formatting.
6400 * tree-match.h: Fix comments formatting.
6401 * tree-check.c: Fix comments formatting.
6402 (tree_check_init): Restructure.
6404 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
6406 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
6408 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
6410 * Merge from mainline (r120733:123693).
6412 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
6414 * condate.y: New file.
6415 * tree-match.h (struct patt_info_s): New field sign.
6416 (struct condate_s): New field msg.
6417 (normalize_condate, name_condate, add_condate): New.
6418 (conds[], condate_parse): Made extern.
6419 * tree-check.c (tree_check_warning): First arg changed to cond;
6420 warning reformatted.
6421 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
6423 (tree_check): Process trivial condates.
6424 (read_delimited_string): Removed.
6425 (print_cond): Print name and msg.
6426 (conds[]): Made extern.
6427 (parse_tree_check_file_once): Rewritten to use the parser in
6429 Processing of option --tree_check_string moved to tree_scan().
6430 * Makefile.in: Added condate.y
6432 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
6434 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
6435 Use VECs instead of varrays.
6436 * diagnostic.h (lazy_dump_generic_node): Update declaration.
6437 * Makefile.in (pretty-print.o): Depend on vec.h.
6438 * pretty-print.c: Include tree.h and vec.h.
6439 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
6440 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
6441 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
6442 pp_free_list): Use VECs instead of varrays.
6443 * pretty-print.h: Do not include varray.h.
6444 (struct tree_chunk_s): Declaration moved before its use.
6445 (output_buffer): Rename varray field to chunks.
6446 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
6447 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
6448 save_global_holes): Use VECs instead of varrays.
6449 * tree-match.h: Declare VECs of cfg_node, and hole_p.
6450 * tree-check.c (scan_cfg_stmts, push_node,
6451 print_matching_stmt): Removed.
6452 (tree_check_instance, push_global_holes_if_new, tree_check,
6453 execute_tree_check): Use VECs instead of varrays.
6454 (gate_tree_check): Don't execute the CFG check when basic_block_info
6457 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
6459 * Merge from mainline (r115016:120733).
6461 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
6463 * Merge from mainline (r117632:117661).
6465 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
6467 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
6468 * tree-pass.h (TDF_DEBUG, debug_p): New.
6469 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
6470 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
6471 get_loop_exit_condition, analyze_evolution_in_loop,
6472 analyze_initial_condition, analyze_scalar_evolution,
6473 instantiate_parameters, number_of_latch_executions): Use debug_p.
6474 * tree-chrec.c (chrec_apply): Use debug_p.
6475 * tree-data-ref.c: Include graphite.h.
6476 (dump_data_reference): Print also the access matrix.
6477 (analyze_array, analyze_indirect_ref, init_data_ref,
6478 analyze_offset_expr, address_analysis, object_analysis,
6479 create_data_ref, finalize_ddr_dependent,
6480 non_affine_dependence_relation, analyze_ziv_subscript,
6481 analyze_siv_subscript_cst_affine,
6482 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
6483 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
6484 analyze_miv_subscript, analyze_overlapping_iterations,
6485 build_classic_dist_vector, subscript_dependence_tester,
6486 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
6487 (build_access_matrix_with_af): No longer static.
6488 * tree-data-ref.h (scop_p): ... declaration here.
6489 (data_reference.scop): New field.
6490 (DR_SCOP, DR_ACCESS_MATRIX): New.
6491 (build_access_matrix_with_af, dr_num_subscripts): Declared.
6492 * graphite.c (print_graphite_bb): Call dump_data_references.
6493 (print_scop): Use scop_nb_loops and scop_dim_domain.
6494 (test_for_scop_bound): Use debug_p.
6495 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
6497 (scop_loop_index): Moved...
6498 (scop_record_loop): New.
6499 (build_scop_loop_nests): Use scop_record_loop.
6500 (build_scop_domain): Use scop_dim_domain.
6501 (build_access_matrix): Implemented.
6502 (build_scop_canonical_schedules): Use scop_nb_loops.
6503 (build_graphite_bb): Initialize GBB_SCOP.
6504 * graphite.h (scop_p): Moved...
6505 (graphite_bb.scop): New field.
6506 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
6507 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
6508 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
6509 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
6510 scop_loop_index): New.
6511 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
6513 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
6515 * Merge from mainline (r117661:120450).
6517 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
6519 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
6520 at the first declaration outside the varying loop, instantiate as
6522 * tree-chrec.c (for_each_scev_op): New.
6523 * tree-chrec.h (for_each_scev_op): Declared.
6524 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
6525 * tree-data-ref.c (get_references_in_stmt,
6526 find_data_references_in_stmt): New, from trunk.
6527 (find_data_references_in_loop): Use get_references_in_stmt
6528 and find_data_references_in_loop, modified as in trunk.
6529 (build_access_matrix_with_af): New.
6530 * tree-data-ref.h (data_reference): Add a field access_matrix.
6531 (data_ref_loc): New, as in trunk.
6532 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
6533 invariant_in_scop_p, param_index, scan_tree_for_params,
6534 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
6535 idx_record_param, idx_record_params, build_access_matrix,
6536 build_scop_data_accesses, build_scop_canonical_schedules,
6537 build_graphite_bb, build_scop_bbs, find_params_in_bb,
6538 build_scop_params): New.
6539 * graphite.h (graphite_bb): New.
6540 (scop): Add fields static_schedule, params, loop_nest,
6542 * lambda.h: Declare vecs of lambda_matrix.
6543 * tree-flow.h (print_loop_ir_bb): Declared.
6544 * tree-cfg.c (print_loop_ir_bb): New.
6545 (print_loop): Use print_loop_ir_bb.
6547 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
6549 * Merge from mainline (r115016:117632).
6551 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
6553 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
6554 break due to a warning.
6556 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
6558 * graphite.c (print_scops, debug_scops): New.
6559 (graphite_transform): Renamed graphite_find_transform.
6560 * graphite.h (debug_scops): Declared.
6562 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
6564 * tree-match.c: Reformat following the GNU style.
6565 * tree-match.h: Reformat following the GNU style.
6566 * tree-pattern.h: Removed empty file.
6567 * Makefile.in: Remove references to tree-pattern.h.
6568 * tree-check.c: Reformat following the GNU style.
6569 (execute_tree_check): Move gate condition code to...
6570 (gate_tree_check): ...here. New function.
6571 (pass_check): Use the gate function.
6573 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
6575 * tree-pattern.h: New. Tree pattern matching and checking using
6577 * tree-check.c: New. Tree/CFG checking pass.
6578 * tree-match.c: New. Library for tree pattern matching.
6579 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
6580 * toplev.c, flags.h: Add globals for tree-check pass.
6581 * Makefile.in: Integrate the files in tree-check pass.
6582 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
6583 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
6584 Introduce a "lazy" pretty-print mode.
6585 * tree.c, tree.h: Add tree_name.
6587 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
6589 * doc/invoke.texi (-fgraphite): Correct typo.
6590 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
6591 use of print_loop_ir.
6592 * testsuite/gcc.dg/graphite/scop-1.c: New.
6593 * testsuite/gcc.dg/graphite/scop-2.c: New.
6594 * testsuite/gcc.dg/graphite/graphite.exp: New.
6595 * graphite.c: Include domwalk.h.
6596 (print_scop): Print only the entry and exit blocks.
6597 (debug_scop): No longer static.
6598 (affine_expr): Fix formating. Return also true when the expression is
6600 (stmt_simple_for_scop_p): Fix formating.
6601 (build_scops): Use domwalk.
6602 (get_loop_start, end_scop, test_for_scop_bound): New.
6603 (graphite_transform_loops): Avoid printing on stderr.
6604 * graphite.h (debug_scop): Declared.
6605 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
6606 * Makefile.in (graphite.o): Depend on domwalk.h.
6607 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
6608 declarations for static functions.
6609 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
6610 controlling output verbosity.
6612 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
6613 Plesco Alexandru <shurikx@gmail.com>
6615 * doc/invoke.texi (-fgraphite): Document.
6616 * tree-pass.h (pass_graphite_transforms): Declared.
6617 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
6618 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
6619 (pass_graphite_transforms): Defined.
6620 * tree-data-ref.c (free_data_ref, data_reference): Extern.
6621 * tree-data-ref.h (free_data_ref, data_reference): Declared.
6622 * graphite.c, graphite.h: New.
6623 * common.opt (fgraphite): Declared.
6624 * tree-flow.h (graphite_transform_loops): Declared.
6625 * Makefile.in (OBJS-common): Add graphite.o.
6626 (graphite.o): New rule.
6627 * passes.c (pass_graphite_transforms): Scheduled.