1 2009-09-25 Li Feng <nemokingdom@gmail.com>
3 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
4 (build_scop_drs): When debugging, write the alias graph to file,
5 otherwise, should be disabled.
7 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
9 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
10 (is_simple_operand): Remove call to stmt_simple_memref_p.
11 (stmt_simple_for_scop_p): Update call to is_simple_operand.
13 2009-09-17 David Edelsohn <edelsohn@gnu.org>
15 * testsuite/gcc.dg/graphite/interchange-mvt.c: New File.
16 * testsuite/gcc.dg/graphite/scop-dsyrk.c: New File.
17 * testsuite/gcc.dg/graphite/scop-dsyr2k.c: New File.
18 * testsuite/gcc.dg/graphite/scop-mvt.c: New File.
19 * testsuite/gcc.dg/graphite/scop-sor.c: New File.
21 2009-09-17 Li Feng <nemokingdom@gmail.com>
24 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
25 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
26 (graphite_carried_dependence_level_k): Ditto.
27 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
28 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
29 (new_poly_dr): Adjust declaration.
30 * graphite-sese-to-poly.c (free_data_refs_aux): New.
31 (free_gimple_bb): Added free_data_refs_aux.
32 (build_poly_dr): Add dr_base_object_set.
33 (partition_drs_to_sets): New.
34 (dr_same_base_object_p): New.
35 (build_alias_set_for_drs): New.
36 (build_base_object_set_for_drs): New.
37 (build_scop_drs): Add build_base_obj_set_for_drs.
38 * graphite-sese-to-poly.h: Added #define for alias set number index and
39 base object set index.
40 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
41 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
43 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
45 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
46 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
48 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
50 * graphite-sese-to-poly.c (struct irp_data): Removed.
51 (idx_record_params): Removed.
52 (find_params_in_bb): Scan for parameters the access functions; don't
53 parse the tree representation.
55 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
57 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
58 passes at -O1 and below.
60 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
62 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
63 tree-scalar-evolution.h, and then tree-data-ref.h.
64 * graphite-clast-to-gimple.c: Same.
65 * graphite-dependences.c: Same.
66 * graphite-interchange.c: Same.
67 * graphite-poly.c: Same.
68 * graphite-scop-detection.c: Same.
69 * graphite-sese-to-poly.c: Same.
71 * lambda-code.c: Same.
72 * matrix-reorg.c: Same.
73 * tree-data-ref.c: Same.
74 * tree-if-conv.c: Same.
75 * tree-loop-distribu: Same.: Same.
76 * tree-loop-linear.c: Same.
77 * tree-parloops.c: Same.
78 * tree-predcom.c: Same.
79 * tree-vect-patterns.c: Same.
81 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
83 Partially revert the previous patch, except the following.
84 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
85 as parameters the operands of the not expression.
87 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
89 * tree-scalar-evolution.c (instantiate_scev_assign): New.
90 Do not call analyze_scalar_evolution on assignments.
91 (instantiate_scev_phi): Call analyze_scalar_evolution.
92 (instantiate_scev_name): Call instantiate_scev_assign and
94 (instantiate_scev_not): Adapted to pass as parameters the operands
95 of the not expression.
97 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
99 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
100 to pass as parameters the operands of the binary expression.
102 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
104 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
105 instantiate_scev_not. Handle NEGATE_EXPR.
106 (instantiate_scev_r): Handle NEGATE_EXPR.
108 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
110 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
112 (instantiate_scev_r): Move code in instantiate_scev_2
113 and instantiate_scev_1.
115 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
117 * tree-scalar-evolution.c (instantiate_scev_3): New.
118 (instantiate_scev_1): Move code in instantiate_scev_3.
120 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
122 * tree-scalar-evolution.c (instantiate_scev_poly): New.
123 (instantiate_scev_1): Move code in instantiate_scev_poly.
125 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
127 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
128 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
130 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
132 * tree-scalar-evolution.c (instantiate_scev_convert): New.
133 (instantiate_scev_1): Move code in instantiate_scev_convert.
135 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
137 * tree-scalar-evolution.c (instantiate_scev_binary): New.
138 (instantiate_scev_1): Move code in instantiate_scev_binary.
140 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
142 * tree-scalar-evolution.c (instantiate_scev_name): New.
143 (instantiate_scev_1): Move code in instantiate_scev_name.
145 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
147 * Merge from mainline (150992:151171).
149 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
151 * graphite-dependences.c (graphite_legal_transform_bb): Call
152 pbb_remove_duplicate_pdrs.
153 * graphite-poly.c (can_collapse_pdr): Removed.
154 (pdr_find_duplicate): Removed.
155 (can_collapse_pdrs): New.
156 (pbb_remove_duplicate_pdrs): New.
157 (new_poly_dr): Do not look for duplicates.
158 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
159 (PBB_PDR_DUPLICATES_REMOVED): New.
160 (pbb_remove_duplicate_pdrs): Declared.
162 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
164 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
165 the strides by multiplying by PDR_NB_REFS.
166 * graphite-poly.c (can_collapse_pdr): New.
167 (pdr_find_duplicate): New.
168 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
169 Initialize PDR_NB_REFS.
170 * graphite-poly.h (struct poly_dr): Add field nb_refs.
172 (new_poly_dr): Number of subscripts is a graphite_dim_t.
174 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
176 Revert one of the previous commits:
177 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
178 the computation of symmetric data dependence relations.
179 (dependency_between_pbbs_p): Same.
181 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
184 * graphite-poly.c (apply_poly_transforms): Remove legality test before
187 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
189 * graphite-dependences.c (pddr_original_scattering): Return NULL
190 for read-read dependence relations.
191 * graphite-poly.h (enum poly_dr_type): Fix comment.
194 (pdr_may_write_p): New.
196 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
198 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
199 (struct poly_dr): Same.
201 * graphite-poly.c (new_poly_dr): Same.
203 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
204 Sebastian Pop <sebastian.pop@amd.com>
206 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
207 pbb_strip_mine_time_depth. Changed the implementation so that
208 transformation is expressed as a transformation on
209 time (scatttering) dimensions. Also, ensures that the 2d+1
210 scheduling format is preserved.
211 (pbb_strip_mine_profitable_p): Profitability is based on the
212 iteration number of a given time (scattering) dimension,
213 and not on a original loop depth dimension.
214 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
215 (pbb_do_strip_mine): Call psct_dynamic_dim.
216 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
217 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
218 (pbb_nb_dynamic_scattering_transform): New.
219 (psct_dynamic_dim): New.
221 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
223 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
224 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
225 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
226 * graphite-interchange.c (build_linearized_memory_access): Same.
227 (memory_stride_in_loop): Same.
229 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
231 * graphite-dependences.c (pddr_original_scattering): New.
232 (graphite_legal_transform_dr): Call pddr_original_scattering.
235 * graphite-dependences.h (dot_deps): Declared.
236 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
237 (print_pdr): Print PDR_ID.
238 * graphite-poly.h (struct poly_dr): Add field id.
241 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
243 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
245 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
246 not delete the original dependence relation.
248 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
250 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
251 the computation of symmetric data dependence relations.
252 (dependency_between_pbbs_p): Same.
254 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
256 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
257 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
258 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
259 (free_poly_ddr): New.
260 (pddr_is_empty): New.
261 (dependence_polyhedron_1): Now returns a poly_ddr_p.
262 (dependence_polyhedron): Same. Remove useless gcc_assert.
264 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
265 (graphite_carried_dependence_level_k): Call pddr_is_empty.
266 * graphite-dependences.h (enum poly_dependence_kind): New.
267 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
268 (PDRP_SOURCE): Renamed PDDR_SOURCE.
269 (PDRP_SINK): Renamed PDDR_SINK.
270 (PDRP_DDP): Renamed PDDR_DDP.
272 (free_poly_ddr): Declared.
273 * graphite-poly.c (new_scop): Use the new hash function names.
274 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
276 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
278 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
280 * Merge from mainline (150764:150992).
282 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
284 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
285 bounds with LT_EXPR to make niter analysis more precise on code
286 generated by Graphite.
288 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
290 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
291 (graphite_legal_transform_bb): Same.
292 (poly_drs_may_alias_p): Same.
294 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
297 * graphite-ppl.c (ppl_max_for_le): Correct the use of
298 ppl_Pointset_Powerset_C_Polyhedron_maximize.
300 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
302 * graphite-poly.c (print_pbb): Print PBB index.
304 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
306 * Merge from mainline (r150672:150764).
308 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
310 * graphite-interchange.c (ppl_max_for_le): Moved...
311 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
312 * graphite-ppl.c (ppl_max_for_le): ... here.
313 * graphite-ppl.h (ppl_max_for_le): Declared.
315 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
317 * Merge from mainline (r150372:150672).
319 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
322 * sese.c (convert_for_phi_arg): New.
323 (add_guard_exit_phis): Use convert_for_phi_arg.
325 * testsuite/gfortran.dg/graphite/id-17.f: New.
327 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
329 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
330 unknown subscript upper bounds.
332 * testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL.
334 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
335 Pranav Garg <pranav.garg2107@gmail.com>
337 * graphite-interchange.c (gather_access_strides): Removed.
338 (ppl_max_for_le): New.
339 (build_linearized_memory_access): New.
340 (memory_stride_in_loop): New.
341 (pbb_interchange_profitable_p): Reimplemented.
342 * graphite-ppl.h (ppl_new_id_map): New.
343 (ppl_interchange): New.
345 * testsuite/gcc.dg/graphite/interchange-6.c: XFAILed.
347 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
349 * graphite-interchange.c (compute_subscript): Removed.
350 (compute_array_size_cstr): Removed.
351 (compute_array_size_poly): Removed.
352 (compute_array_size): Removed.
353 (gather_access_strides_poly): Removed.
354 (gather_access_strides): Empty.
356 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
358 * graphite-dependences.c (dependence_polyhedron_1): Replace
359 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
360 (graphite_legal_transform_dr): Same.
361 (graphite_carried_dependence_level_k): Same.
362 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
363 Initialize PDR_NB_SUBSCRIPTS.
364 (print_pdr_access_layout): Replace pdr_nb_subscripts with
366 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
367 (PDR_NB_SUBSCRIPTS): New.
368 (pdr_nb_subscripts): Removed.
369 (pdr_dim): Simplified.
370 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
371 with PDR_NB_SUBSCRIPTS.
373 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
375 * graphite-interchange.c (compute_array_size): Remove use of
377 * graphite-poly.c (new_poly_dr): Remove argument data_container.
378 Do not initialize PDR_DATA_CONTAINER.
379 (print_pdr): Do not print PDR_DATA_CONTAINER.
380 * graphite-poly.h (struct poly_dr): Remove data_container field.
381 (PDR_DATA_CONTAINER): Removed.
382 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
384 (build_poly_dr): Same.
386 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
388 * testsuite/gcc.dg/graphite/interchange-9.c: New.
390 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
391 Sebastian Pop <sebastian.pop@amd.com>
393 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
394 copy of the dependence polyhedron. Free the temporary objects.
395 (graphite_carried_dependence_level_k): Free unused objects before
398 * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
399 * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
400 * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
401 * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
402 * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
404 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
406 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
407 Early return without analyzing the data dependences if no
408 transform has been done. Call restore_scattering if the transform
410 (graphite-interchange.c): Same.
411 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
412 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
413 (apply_poly_transforms): Do not gcc_assert that
414 the transform is legal.
415 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
416 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
417 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
418 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
419 * graphite-poly.h (struct poly_scattering): New.
420 (struct poly_bb): Add original, transformed, and saved fields.
421 Remove transformed_scattering, original_scattering, nb_local_variables,
422 and nb_scattering_transform fields.
423 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
424 (poly_scattering_new): New.
425 (poly_scattering_free): New.
426 (poly_scattering_copy): New.
427 (store_scattering_pbb): New.
428 (store_scattering): New.
429 (restore_scattering_pbb): New.
430 (restore_scattering): New.
431 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
432 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
434 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
436 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
439 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
441 * Makefile.in (graphite.o): Depends on PREDICT_H.
442 * graphite.c: Include predict.h.
443 (graphite_finalize): Call tree_estimate_probability.
444 * predict.c (predict_loops): Do not call scev_initialize and
446 (tree_estimate_probability_bb): New.
447 (tree_estimate_probability): Do not initialize loops: move that
448 code to the driver. Call tree_estimate_probability_bb.
449 (tree_estimate_probability_driver): New.
450 (pass_profile): Use tree_estimate_probability_driver.
451 * predict.h (tree_estimate_probability): Declared.
453 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
455 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
456 * graphite-dependences.c (graphite_legal_transform): Add time to
457 TV_GRAPHITE_DATA_DEPS.
458 (dependency_between_pbbs_p): Same.
459 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
461 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
463 * Merge from mainline (r149952:150372).
465 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
467 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
468 * graphite-blocking.c: Same.
469 * graphite-clast-to-gimple.c: Same.
470 * graphite-dependences.c: Same.
471 * graphite-poly.c: Same.
472 * graphite-poly.h: Same.
473 * graphite-ppl.c: Same.
474 * graphite-scop-detection.c: Same.
475 * graphite-sese-to-poly.c: Same.
478 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
480 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
481 (remove_simple_copy_phi): New.
482 (remove_invariant_phi): New.
483 (simple_copy_phi_p): New.
484 (reduction_phi_p): New.
485 (gsi_for_ssa_name_def): New.
486 (insert_out_of_ssa_copy): New.
487 (insert_out_of_ssa_copy_on_edge): New.
488 (create_zero_dim_array): New.
489 (scalar_close_phi_node_p): New.
490 (rewrite_close_phi_out_of_ssa): New.
491 (rewrite_phi_out_of_ssa): New.
492 (rewrite_reductions_out_of_ssa): New.
493 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
495 * testsuite/gcc.dg/graphite/id-11.c: New.
496 * testsuite/gcc.dg/graphite/id-15.c: New.
497 * testsuite/gcc.dg/graphite/interchange-1.c: Un-XFAIL.
498 * testsuite/gcc.dg/graphite/interchange-2.c: Un-XFAIL.
499 * testsuite/gcc.dg/graphite/interchange-3.c: Un-XFAIL.
500 * testsuite/gcc.dg/graphite/interchange-4.c: Un-XFAIL.
501 * testsuite/gcc.dg/graphite/interchange-7.c: Un-XFAIL.
502 * testsuite/gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
503 * testsuite/gfortran.dg/graphite/id-13.f: New.
504 * testsuite/gfortran.dg/graphite/id-5.f: New.
506 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
508 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
509 check that nb_reductions_in_loop is zero.
510 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
512 (nb_reductions_in_loop): Removed.
513 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
514 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
515 (bb_contains_non_iv_scalar_phi_nodes): Removed.
516 (scop_contains_non_iv_scalar_phi_nodes): Removed.
517 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
519 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
521 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
522 statements that have an empty iteration domain.
523 * testsuite/gfortran.dg/graphite/id-16.f: New.
525 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
527 * tree-scalar-evolution.c (instantiate_scev_1): Return
528 chrec_dont_know when the result is not above instantiate_below.
529 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
530 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
531 the tree has a known scalar evolution.
532 * testsuite/gfortran.dg/graphite/id-14.f: New.
533 * testsuite/gfortran.dg/graphite/id-15.f: New.
535 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
537 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
539 (rename_variables): Keep inserting renames after the ones already
542 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
544 * graphite-sese-to-poly.c (compare_bb_depths): New.
545 (graphite_sort_dominated_info): New.
546 (build_scop_bbs_1): Call graphite_sort_dominated_info.
547 (build_scop_scattering): Fix comment.
549 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
551 * graphite.c (graphite_finalize): Call print_loops instead of
552 dump_function_to_file.
553 * testsuite/gcc.dg/graphite/graphite.exp: Fix formatting.
554 * testsuite/gcc.dg/graphite/pr35356-1.c: New. Look for the number of
555 loops generated in the graphite output file.
556 * testsuite/gcc.dg/graphite/pr35356-2.c: New.
557 * testsuite/gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
558 * testsuite/gfortran.dg/graphite/id-12.f: New.
560 2009-07-24 Li Feng <nemokingdom@gmail.com>
562 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
565 2009-07-24 Li Feng <nemokingdom@gmail.com>
566 Tobias Grosser <grosser@fim.uni-passau.de>
568 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
569 alias set number build alias in ACCESSES polyhedron.
570 (build_alias_set_for_drs): New.
571 (build_pbb_drs): Added build_alias_set_for_drs.
572 * graphite-dependences.c (poly_drs_may_alias_p): New.
573 (graphite_carried_dependence_level_k): Check alias information
574 before building polyhedron.
576 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
578 * Makefile.in (lambda-code.o): Fix formatting.
580 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
582 * Merge from mainline (r149350-149952)
584 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
586 * graphite-poly.c (apply_poly_transforms): Move strip_mine
587 before interchange to prepare for loop blocking.
589 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
591 * graphite-poly.c (apply_poly_transforms): Add checks after every
593 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
594 done in apply_poly_transforms.
596 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
598 * graphite-dependences.c (build_lexicographically_gt_constraint):
599 Replace RES parameter with *RES.
600 (dependence_polyhedron_1): Pass an address of the parameter RES
601 instead of value of RES.
603 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
605 * graphite.c (graphite_finalize): Fix comment.
606 (graphite_transform_loops): Reset scev info after code generation
609 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
611 * graphite.c (graphite_finalize): Call scev_reset.
613 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
615 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
616 GBB_CLOOG_IV_TYPES hash table twice.
617 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
618 (add_condition_to_domain): Clear GMP values.
620 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
622 * graphite-dependences.c: Fix formatting.
623 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
624 (pbb_number_of_iterations): Free ppl_Linear_Expression.
625 * graphite-sese-to-poly.c: Fix formatting.
626 * graphite.c (graphite_transform_loops): Create the hash table
627 after the early return.
629 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
631 * testsuite/gcc.dg/graphite/id-14.c: New.
632 * testsuite/gcc.dg/graphite/pr40157.c: New.
633 * testsuite/gfortran.dg/graphite/id-11.f: New.
635 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
637 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
638 (build_poly_scop): Return false when there are no pbbs within
639 loops to avoid to pass to cloog scops with no loops.
641 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
643 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
644 useless test "i % 2".
645 (build_pbb_scattering_polyhedrons): Fix formatting.
646 (build_poly_dr): Same.
647 * graphite.c (graphite_transform_loops): Restructure.
649 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
651 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
652 reduction_list parameter.
653 (rewrite_all_phi_nodes_with_iv): Same.
654 (canonicalize_loop_ivs): Same.
655 * tree-parloops.c (struct brli): Removed.
656 (build_reduction_list_info): Removed.
657 (build_new_reduction): New.
658 (analyze_reduction_list): Removed.
659 (gather_scalar_reductions): Find reductions instead of phi
660 nodes that can't be canonicalized.
661 (try_create_reduction_list): Remove reduction_list parameter.
662 (gen_parallel_loop): Same.
663 (parallelize_loops): Remove analyze_reductions variable,
664 initialization and free.
665 Change reduction_list htab initialization to reduction_info
666 elements instead of ssa names.
667 Call try_create_reduction_list and gen_parallel_loop without
668 analyzed_reduction argument.
669 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
670 canonicalize_loop_ivs with one less argument.
671 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
673 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
675 * graphite-dependences.c (new_poly_dr_pair): New.
676 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
677 (new_poly_dr_pair): New.
678 (eq_poly_dr_pair_p): New.
679 (hash_poly_dr_pair_p): New.
680 * graphite-dependences.h (struct poly_dr_pair): New.
681 (eq_poly_dr_pair_p): Declared.
682 (hash_poly_dr_pair_p): Declared.
683 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
684 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
685 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
686 * Makefile.in (graphite-poly.o): Add dependence on
687 graphite-dependences.h.
689 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
691 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
692 polynomials of degree > 1 pass to Graphite.
693 * tree-chrec.c (scev_is_linear_expression): Call
694 evolution_function_is_affine_multivariate_p.
695 * testsuite/gfortran.dg/graphite/id-10.f90: New.
697 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
699 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
700 Instantiate scevs varying in outer loops.
701 * testsuite/gfortran.dg/graphite/id-9.f: Correct testcase.
703 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
705 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
706 redundant constraint.
708 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
710 * testsuite/gcc.dg/graphite/graphite.exp: Fix comments.
711 * testsuite/gfortran.dg/graphite/graphite.exp: Trigger actions
712 based on the file names as in the C testsuite.
713 * testsuite/gfortran.dg/graphite/block-1.f90: Fix patterns.
714 * testsuite/gfortran.dg/graphite/block-2.f: Same.
715 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
716 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
717 * testsuite/gfortran.dg/graphite/id-1.f90: Same.
718 * testsuite/gfortran.dg/graphite/id-2.f90: Same.
719 * testsuite/gfortran.dg/graphite/id-3.f90: Same.
720 * testsuite/gfortran.dg/graphite/id-4.f90: Same.
721 * testsuite/gfortran.dg/graphite/id-6.f: Same.
722 * testsuite/gfortran.dg/graphite/id-9.f: Same.
723 * testsuite/gfortran.dg/graphite/interchange-1.f: Same.
724 * testsuite/gfortran.dg/graphite/interchange-2.f: Same.
725 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
727 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
729 * sese.c (expand_scalar_variables_call): New.
730 (expand_scalar_variables_ssa_name): Handle calls in expander.
732 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
734 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
735 Expect to see the pattern twice.
736 * testsuite/gcc.dg/graphite/interchange-0.c: Un-XFAIL.
737 * testsuite/gcc.dg/graphite/interchange-5.c: Same.
738 * testsuite/gcc.dg/graphite/interchange-6.c: Same.
740 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
742 * testsuite/gcc.dg/graphite/id-10.c: New.
743 * testsuite/gcc.dg/graphite/id-12.c: New.
744 * testsuite/gfortran.dg/graphite/id-7.f: New.
745 * testsuite/gfortran.dg/graphite/id-8.f: New.
747 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
749 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
752 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
754 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
756 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
758 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
760 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
762 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
763 building PDR subscripts.
765 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
767 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
768 computation of array sizes.
770 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
772 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
774 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
776 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
777 build_pairwise_constraint, dr_equality_constraints,
778 build_pairwise_scheduling_equality,
779 build_pairwise_scheduling_inequality, lexicographically_gt_p,
780 build_lexicographically_gt_constraint, dependence_polyhedron,
781 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
782 Move from NNC_Polyhedron to C_Polyhedron.
783 * graphite-interchange.c (compute_array_size_poly,
784 gather_access_strides): Dito.
785 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
786 free_scop, pbb_number_of_iterations): Dito.
787 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
788 pbb_dim_iter_domain, struct scop): Dito.
789 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
790 new_Cloog_Domain_from_ppl_Polyhedron,
791 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
792 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
793 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
794 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
795 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
796 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
797 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
798 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
799 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
800 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
801 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
802 build_scop_iteration_domain, build_poly_dr): Dito
804 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
806 * testsuite/gcc.dg/graphite/graphite.exp: Added a rule to execute
808 * testsuite/gcc.dg/graphite/run-id-1.c: New.
810 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
812 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
813 positivity constraint on the symbolic number of iterations.
815 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
817 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
819 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
820 Tobias Grosser <grosser@fim.uni-passau.de>
822 * graphite-clast-to-gimple.c (build_scop_context): Removed.
823 (build_cloog_prog): Directly use SCOP_CONTEXT.
824 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
825 (free_scop): Free SCOP_CONTEXT.
826 (print_scop_context): New.
827 (print_scop): Call print_scop_context.
828 (debug_scop_context): New.
829 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
830 (struct scop): Added field context.
832 * graphite-sese-to-poly.c (add_param_constraints): New.
833 (build_scop_context): New.
834 (build_poly_scop): Call build_scop_context.
836 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
838 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
839 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
840 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
841 * graphite-ppl.h: Include double-int.h and tree.h.
842 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
843 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
844 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
845 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
847 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
849 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
850 POINTER_PLUS_EXPR for pointer types.
851 (clast_to_gcc_expression): Same.
853 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
855 * graphite-poly.c (print_scattering_function): Early return when
856 PBB_TRANSFORMED_SCATTERING is not initialized.
857 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
859 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
861 * tree-parloops.c (analyze_reduction_list): Remove unused variable
864 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
866 * tree-parloops.c (analyze_reduction_list): Change return
868 (try_create_reduction_list): Move the call to
869 analyze_reduction_list to the beginining.
870 Call reduction_phi with analyzed_reductions as argument
871 instead of reduction_list.
873 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
875 * Merge from mainline (r148296:149346)
877 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
879 * graphite-scop-detection.c (graphite_can_represent_init): New.
880 (graphite_can_represent_scev): Call graphite_can_represent_init:
881 check that the initial value does not contain multiplications of
883 (stmt_has_simple_data_refs_p): New.
884 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
885 (is_simple_operand): Fix formatting.
886 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
888 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
890 * testsuite/gcc.dg/graphite/id-13.c: New.
891 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
892 analyze_scalar_evolution, use scalar_evolution_in_region.
893 (scan_tree_for_params_right_scev): Add extra assert.
894 (parameter_index_in_region_1): Split from parameter_index_in_region.
895 (idx_record_params): Use scalar_evolution_in_region.
896 (find_params_in_bb): Same.
897 (find_scop_parameters): Same.
898 (build_loop_iteration_domains): Same.
899 (create_linear_expr_from_tree): Same.
900 * sese.c (scalar_evolution_in_region): New.
901 * sese.h (scalar_evolution_in_region): Declared.
902 (defined_in_sese_p): New.
903 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
905 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
908 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
910 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
911 TREE_DATA_REF_H also implies SCEV_H.
913 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
915 * graphite-poly.c (print_scop_params): New.
916 (print_scop): Call print_scop_params.
917 (debug_scop_params): New.
918 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
920 2009-07-07 Li Feng <nemokingdom@gmail.com>
922 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
923 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
924 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
925 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
926 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
927 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
929 2009-07-07 Li Feng <nemokingdom@gmail.com>
931 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
932 for dependency checking part.
933 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
934 tests for dependency checking.
935 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
936 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
937 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
938 flag -fdump-tree-graphite-all for autopar testsuites.
940 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
942 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
943 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
944 canonicalize_loop_ivs): Moved...
945 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
947 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
949 * tree-parloops.c (try_create_reduction_list): Pass an extra
950 argument analyzed_reductions. Call analyze_reduction_list.
951 (gen_parallel_loop): Do not call analyze_reduction_list.
952 (parallelize_loops): Init and finalize analyzed_reductions.
954 2009-07-06 Li Feng <nemokingdom@gmail.com>
956 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
957 Added flag -fno-loop-strip-mine for autopar testcase.
959 2009-07-04 Li Feng <nemokingdom@gmail.com>
961 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
962 transformed scattering dimension instead of unmatch orignal when
963 calling dependence_polyhedron.
965 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
967 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
969 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
971 * graphite-poly.c (pbb_number_of_iterations): Check for returned
972 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
974 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
976 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
977 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
978 * graphite-poly.c (pbb_number_of_iterations): New.
979 * graphite-poly.h (pbb_number_of_iterations): Declared.
980 (pbb_iterator_dim, pbb_parameter_dim): New.
982 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
984 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
985 last commit on type of lower and upper bound of loops.
987 2009-06-29 Li Feng <nemokingdom@gmail.com>
989 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
990 graphite-dependences.h.
991 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
992 (mark_bb_with_pbb): New.
993 (get_stmtfor_depth): New.
994 (find_pbb_via_hash): New.
995 (dependency_in_loop_p): New.
996 (mark_loops_parallel): New.
997 (free_aux_in_new_loops): New.
998 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
999 bb with it's relevant pbb. Mark newly created loops. Remove mark
1000 innermost loop parallel without checking.
1001 (gloog): Add parameter BB_PBB_MAPPING.
1002 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
1003 (gloog): Change declaration.
1004 (mark_loop_parallel): Make extern.
1005 (free_aux_in_new_loops): Declare.
1006 (bb_pbb_map_hash): New.
1007 (eq_bb_pbb_map): New.
1008 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
1009 auto parallelization when flag_graphite_force_parallel is set.
1010 (graphite_finalize): Added free_aux_in_new_loops.
1011 * tree-parloops.c (parallelize_loops): Only generate parallel code for
1012 the innermost loop that marked parallel. Use
1013 flag_graphite_force_parallel instead of loop->can_be_parallel.
1014 (loop_parallel_p): Move inner most checking out of function.
1016 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
1018 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
1019 type of lower and upper bound of loops signed long int.
1021 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
1023 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
1024 expression outside the loop.
1026 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
1028 * gcc.dg/graphite/interchange-8.c: New.
1030 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
1032 * gcc.dg/graphite/interchange-0.c: XFailed.
1033 * gcc.dg/graphite/interchange-5.c: XFailed.
1034 * gcc.dg/graphite/interchange-6.c: XFailed.
1036 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
1038 * graphite-interchange.c (compute_array_size_poly): The end of the
1039 recursion should return 1.
1041 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
1043 * graphite-interchange.c (compute_array_size_cstr): Allow the
1044 subscript multiplier to be -1.
1045 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
1046 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
1047 data_container. Initializes PDR_DATA_CONTAINER.
1048 (print_pdr_access_layout): New.
1049 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
1050 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
1052 (PDR_DATA_CONTAINER): New.
1053 (new_poly_dr): Update declaration.
1054 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
1055 (build_poly_dr): Call pdr_add_data_dimensions.
1057 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
1059 * graphite-poly.h (struct poly_dr): Fix comment.
1060 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
1061 (pdr_add_memory_accesses): New.
1062 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
1064 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
1066 * graphite-poly.c (print_pdrs, debug_pdrs): New.
1067 (print_pbb): Add call to print_pdrs.
1068 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
1070 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1071 Li Feng <nemokingdom@gmail.com>
1073 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
1074 (dependency_between_pbbs_p): New.
1075 (lexicographically_gt_p): Assure !empty_p before polyhedron
1076 intersection assign.
1077 (build_lexicographically_gt_constraint): Correct lexicographically
1079 * graphite-dependences.h: New.
1080 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
1082 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
1084 * graphite-clast-to-gimple.c (print_clast_stmt): New.
1085 (gloog): Print to dump_file the generated clast.
1086 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
1087 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
1089 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
1091 * graphite-poly.c (extend_scattering): Increment
1092 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
1094 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
1096 * graphite-interchange.c (compute_array_size_poly): Added exit of
1097 recursion condition. Continue iterating even after the first equality.
1098 (compute_array_size): Same.
1100 2009-06-24 Li Feng <nemokingdom@gmail.com>
1102 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
1103 -fdump-tree-final_cleanup to -fdump-tree-optimized.
1104 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
1105 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
1106 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
1108 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1110 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
1111 only when the use verifies is_gimple_reg.
1113 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1115 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
1116 Allocate scaldims after call to unify_scattering_dimensions.
1118 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1120 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
1122 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1123 Albert Cohen <albert.cohen@inria.fr>
1125 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
1126 variables for the strip mining.
1128 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1129 Pranav Garg <pranav.garg2107@gmail.com>
1131 * Makefile.in (OBJS-common): Added graphite-blocking.o.
1132 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
1133 (graphite-blocking.o): New rule.
1134 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
1135 * graphite-blocking.c: New.
1136 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
1137 flag_loop_strip_mine.
1138 (psct_scattering_dim_for_loop_depth): New.
1139 * graphite-poly.h (scop_do_strip_mine): Declared.
1140 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
1141 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
1142 flag_loop_strip_mine.
1144 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1146 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
1147 a GMP value and a PPL coefficient at each iteration of a loop.
1149 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1151 * graphite-dependences.c (dependence_polyhedron): Do not use
1152 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
1153 pbb_nb_scattering_transform.
1154 (graphite_legal_transform_dr): Same.
1155 * graphite-poly.c (extend_scattering): Same.
1156 (unify_scattering_dimensions): Same.
1157 (print_scattering_function): Same.
1158 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
1159 PBB_NB_LOCAL_VARIABLES.
1160 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
1161 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
1162 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
1163 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
1164 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
1165 (pbb_nb_scattering_transform): New.
1166 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
1167 (psco_scattering_dim): Add assert on parameters.
1168 (psct_scattering_dim): Same.
1169 (psct_scattering_dim_for_loop_depth): Declared.
1170 (psct_local_var_dim): New.
1171 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
1172 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
1173 correct layout, call pbb_nb_local_vars.
1174 (psct_add_local_variable, psct_add_scattering_dimension): New.
1175 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1176 Initialize PBB_NB_SCATTERING_TRANSFORM.
1178 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1180 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
1181 (set_coef): Renamed ppl_set_coef.
1182 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
1184 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1186 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
1187 test a boolean against 1.
1188 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
1189 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
1190 (pbb_do_interchange): Returns true when a transform has been performed.
1191 (scop_do_interchange): Same.
1192 * graphite-poly.c (apply_poly_transforms): Use the return value of
1193 scop_do_interchange.
1194 * graphite-poly.h (scop_do_interchange): Update declaration.
1196 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
1198 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
1200 * sese.c (sese_reset_aux_in_loops): New.
1201 * sese.h (sese_reset_aux_in_loops): New.
1203 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
1205 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
1206 multiplier and multiply the constant by the multiplier.
1207 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
1208 (build_poly_dr): Do not use the multiplier to define the subscript.
1210 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
1212 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
1213 compiler's data reference. Initialize PDR_CDR.
1214 (print_pdr): Call dump_data_reference.
1215 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
1216 Add compiler_dr field.
1217 (PDR_BB): Renamed PDR_PBB.
1219 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
1220 GCC's data reference representation.
1221 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
1222 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
1224 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
1226 * graphite-poly.c (print_scattering_function): Also print the layout.
1227 * graphite-poly.h (pbb_nb_local_vars): New.
1229 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
1231 * graphite-poly.c (print_pbb_domain): Also print the layout names.
1233 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
1235 * graphite-poly.c (print_pdr, debug_pdr): New.
1236 * graphite-poly.h (print_pdr, debug_pdr): Declared.
1237 (PDR_BASE): Removed.
1239 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
1241 * gcc/testsuite/gcc.dg/graphite/interchange-{1..7}.c: New avatars of
1244 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
1246 * graphite-interchange.c (compute_subscript): Allow also -1 in the
1247 subscript identification column.
1248 (pbb_do_interchange): Print to dump_file that some loops "will be
1249 interchanged". Rely on that chain of characters in the testcases.
1250 * gcc.dg/graphite/interchange-0.c: New.
1251 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
1252 interchange-*.c files and compile them with -floop-interchange.
1254 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
1256 * graphite-interchange.c (interchange_profitable_p): Renamed
1257 pbb_interchange_profitable_p.
1259 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
1260 Harsha Jagasia <harsha.jagasia@amd.com>
1261 Pranav Garg <pranav.garg2107@gmail.com>
1263 * graphite-interchange.c (interchange_profitable_p): Make static.
1264 (pbb_interchange_loop_depths, pbb_do_interchange,
1265 scop_do_interchange): New.
1266 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
1267 for flag_loop_interchange.
1268 * graphite-poly.h (scop_do_interchange): Declared.
1269 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
1270 flag_loop_interchange is used.
1272 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
1274 * graphite-dependences.c (dependence_polyhedron): Update use of
1275 pbb_nb_scattering_dims.
1276 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
1277 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
1278 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
1279 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
1281 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
1283 * graphite.c: Cleanup foo.
1285 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
1287 * Merge from mainline (r143684:148293).
1288 * Disabled libpcp until it gets fixed.
1290 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
1291 Harsha Jagasia <harsha.jagasia@amd.com>
1293 * graphite-interchange.c: New.
1294 * Makefile.in (graphite-interchange.o): New.
1295 * graphite-poly.h (interchange_profitable_p): Declared.
1296 * graphite-ppl.h (value_max): New.
1298 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
1300 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
1301 * graphite-poly.h: Fix some comments.
1305 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
1308 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
1309 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
1310 (pdr_accessp_nb_params): Renamed pdr_nb_params.
1311 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
1312 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
1313 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
1314 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
1315 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
1316 * graphite-clast-to-gimple.c: Same.
1317 * graphite-dependences.c: Same.
1318 * graphite-poly.c: Same.
1319 * graphite-sese-to-poly.c: Same.
1321 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
1323 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
1324 expressions for an IV rename, as returned by clast_to_gcc_expression.
1325 (copy_renames): Rename new_name to expr.
1326 * sese.c (debug_rename_elt): Same.
1329 (sese_adjust_liveout_phis): Call force_gimple_operand before using
1330 the information from the rename map.
1331 (rename_variables_in_stmt): Same.
1332 (add_loop_exit_phis): Rename new_name to expr.
1333 (insert_loop_close_phis): Same.
1334 (add_guard_exit_phis): Same. Call force_gimple_operand.
1335 * sese.h (struct rename_map_elt): Rename new_name to expr.
1336 (new_rename_map_elt): Same.
1338 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
1340 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
1341 * sese.c (set_rename): Make it extern.
1342 * sese.h (set_rename): Declared.
1344 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
1346 * graphite-poly.c (extend_scattering): Free values.
1347 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
1349 (ppl_print_powerset_matrix): Same.
1350 * graphite-scop-detection.c (free_scops_1): New.
1351 (limit_scops): Call free_scops_1.
1352 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
1353 (build_poly_dr): Free PPL coefficients.
1354 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
1356 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
1358 * graphite-dependences.c: New.
1359 * graphite-data-ref.c: Removed.
1360 * graphite-data-ref.h: Removed.
1361 * Makefile.in (graphite-data-ref.o): Removed.
1362 (graphite-dependences.o): Added.
1363 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
1364 * graphite-poly.c: Same.
1365 Move the data dependence testing to graphite-dependences.c.
1367 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
1369 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
1370 from graphite_cannot_represent_loop. Code refactored.
1371 (scopdet_basic_block_info): Call graphite_can_represent_loop.
1373 2009-05-17 Li Feng <nemokingdom@gmail.com>
1375 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
1376 Cover all the testcases (not only the filtered ones).
1378 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
1380 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
1381 unnecessary check. Update comments. Move check for REAL_TYPE here.
1382 (harmful_stmt_in_bb): Remove checks for conditions. This is already
1383 done in (stmt_simple_for_scop_p).
1385 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
1387 * graphite.c (print_global_statistics): New.
1388 (print_graphite_scop_statistic): New.
1389 (print_graphite_statistics): New.
1390 (graphite_initialize, graphite_transform_loops): Print statistics.
1391 * graphite-scop-detection (build_scops): Print statistics.
1392 (print_graphite_scop_statistics): New.
1393 (print_graphite_statistics): New.
1395 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1397 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
1398 (debug_clast_name_index): Removed.
1399 (debug_clast_name_indexes_1): Removed.
1400 (debug_clast_name_indexes): Removed.
1401 (clast_name_index_elt_info): Removed.
1402 (eq_clast_name_indexes): Removed.
1403 (clast_name_to_index): Removed.
1404 (new_clast_name_index): Removed.
1405 (save_clast_name_index): Removed.
1406 (save_var_name): Moved...
1407 (init_sese_params_index): Removed.
1408 (clast_name_to_gcc): Remove use of name_tree.
1409 (initialize_cloog_names): Same.
1410 (gloog): Do not call init_sese_params_index.
1411 * graphite-sese-to-poly.c (save_var_name): ...here.
1412 (parameter_index_in_region): New.
1413 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
1414 (parameter_index_in_region): Removed.
1415 (is_parameter): Remove use of name_tree.
1416 * sese.h (struct name_tree): Removed.
1417 (struct sese): Remove use of name_tree. New field params_names.
1418 (SESE_PARAMS_NAMES): New.
1419 (SESE_PARAMS): Remove duplicate.
1420 (parameter_index_in_region): Removed.
1421 (sese_nb_params): Remove use of name_tree.
1422 (struct clast_name_index): New.
1423 (new_clast_name_index): New.
1424 (clast_name_to_index): New.
1425 (save_clast_name_index): New.
1426 (debug_clast_name_index): New.
1427 (debug_clast_name_indexes_1): New.
1428 (debug_clast_name_indexes): New.
1429 (clast_name_index_elt_info): New.
1430 (eq_clast_name_indexes): New.
1432 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1434 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
1435 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
1436 (graphite_loop_normal_form): Do not pass region. Do not
1437 initialize SESE_OLDIVS.
1438 (build_graphite_loop_normal_form): Update call to
1439 graphite_loop_normal_form.
1440 * sese.c (debug_oldivs): Removed.
1441 (new_sese): Do not initialize SESE_OLDIVS.
1442 (free_sese): Do not free SESE_OLDIVS.
1443 (oldiv_for_loop): Removed.
1444 * sese.h (struct sese): Remove old_ivs.
1445 (SESE_OLDIVS): Removed.
1446 (oldiv_for_loop): Removed.
1448 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1450 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
1451 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
1452 replaced by a call to newivs_to_depth_to_newiv.
1453 (clast_to_gcc_expression): Pass newivs, remove ivstack.
1454 (clast_to_gcc_expression_red): Same.
1455 (gcc_type_for_clast_expr): Same.
1456 (gcc_type_for_clast_eq): Same.
1457 (graphite_translate_clast_equation): Same.
1458 (graphite_create_guard_cond_expr): Same.
1459 (graphite_create_new_guard): Same.
1460 (graphite_create_new_loop): Same.
1461 (build_iv_mapping): Same.
1462 (translate_clast): Same.
1464 (loop_iv_stack_patch_for_consts): Removed. *
1465 sese.c (iv_stack_entry_is_constant): Removed.
1466 (iv_stack_entry_is_iv): Removed.
1467 (loop_iv_stack_push_iv): Removed.
1468 (loop_iv_stack_insert_constant): Removed.
1469 (loop_iv_stack_pop): Removed.
1470 (loop_iv_stack_get_iv): Removed.
1471 (loop_iv_stack_get_iv_from_name): Removed.
1472 (debug_loop_iv_stack): Removed.
1473 (free_loop_iv_stack): Removed.
1474 (loop_iv_stack_remove_constants): Removed. *
1475 sese.h (iv_stack_entry_kind): Removed.
1476 (iv_stack_entry_data_union): Removed.
1477 (iv_stack_entry_struct): Removed.
1478 (iv_stack_entry_p): Removed.
1479 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
1480 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
1481 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
1482 loop_iv_stack_pop, free_loop_iv_stack): Removed.
1483 (gbb_loop_at_index): Fix indenting.
1484 (gbb_loop_index): Removed.
1486 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1488 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
1489 Call clast_name_to_index.
1491 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1493 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
1494 do not pass params. Get params from SESE_PARAMS.
1495 (clast_to_gcc_expression): Same.
1496 (clast_to_gcc_expression_red): Same.
1497 (gcc_type_for_clast_eq): Same.
1498 (graphite_translate_clast_equation): Same.
1499 (graphite_create_new_loop): Same.
1500 * sese.c (rename_variables_in_stmt): Fix comment.
1502 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1504 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
1506 Call save_clast_name_index.
1507 (translate_clast): Pass newivs_index.
1508 (gloog): Create and free newivs_index.
1510 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1512 * graphite-clast-to-gimple.c (clast_name_index): New structure.
1513 (clast_name_index_p): New type.
1514 (debug_clast_name_index): New.
1515 (debug_clast_name_indexes_1): New.
1516 (debug_clast_name_indexes): New.
1517 (clast_name_index_elt_info): New.
1518 (eq_clast_name_indexes): New.
1519 (clast_name_to_index): New.
1520 (new_clast_name_index): New.
1521 (save_clast_name_index): New.
1522 (init_sese_params_index): New.
1523 (gloog): Call init_sese_params_index.
1524 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
1525 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
1526 (free_sese): Free SESE_PARAMS_INDEX.
1527 * sese.h (struct sese): Add params_index.
1528 (SESE_PARAMS_INDEX): New.
1530 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1532 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
1533 (graphite_create_new_loop): Pass the newivs vector. Push the
1534 newly created IV to newivs.
1535 (translate_clast): Pass the newivs vector.
1536 (gloog): Create and destroy the newivs vector.
1538 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1540 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
1541 (graphite_loop_normal_form): Initialize loop->aux with the unique
1542 IV that has been created.
1544 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
1546 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
1547 scev with parameters in the base part. They where forbidden
1550 2009-05-11 Li Feng <nemokingdom@gmail.com>
1552 * testsuite/gcc.dg/graphite/graphite.exp: Set different default
1553 compile options by file names.
1554 * testsuite/gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
1555 * testsuite/gcc.dg/graphite/id-{1-9}.c: Ditto.
1556 * testsuite/gcc.dg/graphite/scop-{0-20}.c: Ditto.
1557 * testsuite/gcc.dg/graphite/scop-matmult.c: Ditto.
1559 2009-05-08 Li Feng <nemokingdom@gmail.com>
1561 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
1562 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
1563 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
1564 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
1566 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
1568 * graphite-scop-detection (build_scops_1): Fix little bug introduced
1571 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
1573 * graphite-scop-detection.c (graphite_can_represent_scev): Only
1574 allow integer constant strides.
1575 (graphite_can_represent_expr): Depend on outermost_loop.
1576 (stmt_simple_memref_p, graphite_cannot_represent_loop,
1577 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
1578 build_scops_1): Same.
1579 (scopdet_basic_block_info): Same and insert layered SCoP
1581 (try_generate_gimple_bb): Cleanup.
1582 (build_scops): Enable data references.
1584 * testsuite/gcc.dg/graphite/id-5.c: New.
1585 * testsuite/gcc.dg/graphite/id-9.c: New.
1586 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
1587 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
1589 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1591 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
1592 that we have not yet built for this SCoP.
1594 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1596 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
1597 for complex numbers.
1599 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1601 * graphite-ppl.c: Fix build if cloog is not available.
1603 2009-05-04 Li Feng <nemokingdom@gmail.com>
1605 * tree-parloops.c (loop_parallel_p): Remove construction of
1606 NITER and REDUCTION_LIST.
1607 (try_get_loop_niter): New.
1608 (try_create_reduction_list): New.
1609 (parallelize_loops): Bypass the failed checkings in autopar
1610 when can_be_parallel in loop structure is set to true.
1612 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
1614 * testsuite/gcc.dg/graphite/id-6.c: Update testcase.
1615 * testsuite/gcc.dg/graphite/scop-3.c: Dito.
1617 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
1619 * graphite-scop-detection.c (stmt_simple_for_scop_p):
1620 Enable EQ_EXPR and NE_EXPR again.
1622 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
1624 * graphite-scop-detection.c (graphite_can_represent_scev):
1625 Add check if scev is affine multivariate.
1626 (harmful_stmt_in_bb): Check if we can represent the conditions.
1627 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
1629 * testsuite/gcc.dg/graphite/id-7.c: New.
1631 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
1633 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
1634 Check all bbs in region, not only the bbs that are represented in
1636 (build_poly_scop): Add newline.
1637 * testsuite/gcc.dg/graphite/id-8.c: New.
1639 2009-04-30 Li Feng <nemokingdom@gmail.com>
1641 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
1642 when loop initialize.
1643 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
1644 * common.opt: Declare flag_graphite_force_parallel.
1645 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
1647 * graphite-poly.c (apply_poly_transforms): Introduce
1648 flag_graphite_force_parallel.
1649 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
1650 * toplev.c (process_options): ditto and replace a not correctly
1653 2009-04-30 Li Feng <nemokingdom@gmail.com>
1655 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
1656 Change the call of gbb_loop_at_index and/or gbb_loop_index due
1657 to the redefinition.
1658 (compute_cloog_iv_types_1): ditto.
1659 (build_iv_mapping): ditto.
1660 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
1662 (free_gimple_bb): Removed GBB_LOOPS related free part.
1663 (build_bb_loops): Removed.
1664 * sese.h (struct gimple_bb): Removed loops.
1665 (GBB_LOOPS): Removed.
1666 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
1667 (gbb_loop_index): ditto.
1669 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1671 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
1672 allow non constant strides.
1673 * testsuite/gcc.dg/graphite/scop-20.c: New.
1675 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1677 * graphite-scop-detection.c (dot_all_scops): Fix system call
1678 return value warning.
1681 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1683 * testsuite/gcc.dg/graphite/id-6.c: Fix pattern.
1684 * testsuite/gcc.dg/graphite/scop-3.c: Same.
1686 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1688 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
1689 build_pairwise_constraint, dr_equality_constraints,
1690 build_pairwise_scheduling_equality,
1691 build_pairwise_scheduling_inequality, lexicographically_gt_p,
1692 build_lexicographically_gt_constraint, dependence_polyhedron,
1693 graphite_legal_transform_dr, graphite_legal_transform_bb,
1694 graphite_legal_transform): New.
1695 * graphite-poly.h (graphite_legal_transform): Declared.
1696 * graphite-sese-to-poly.c (build_poly_scop): Call to
1697 graphite_legal_transform is disabled for the moment.
1699 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1701 * graphite-poly.h (pbb_nb_scattering_dims): New.
1702 (pbb_nb_scattering): Use it.
1704 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1706 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
1707 Pointset_Powerset version of ppl_insert_dimensions.
1708 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
1710 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1712 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
1714 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1716 * graphite-poly.h: Fix comment.
1718 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1720 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
1722 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1724 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
1727 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1729 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
1730 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
1733 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
1735 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
1736 handle EQ_EXPR and NE_EXPR.
1738 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
1740 * graphite-poly.h (poly_dr): Fix comment.
1742 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
1743 Tobias Grosser <grosser@fim.uni-passau.de>
1745 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
1746 with a zero dimension polyhedron.
1747 (find_scop_parameters): Move the call to scop_set_nb_params here.
1748 (build_loop_iteration_domains): Store in loop->aux the iteration
1750 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
1751 by any loop in scop.
1752 (build_poly_scop): Do not call scop_set_nb_params.
1754 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
1755 Tobias Grosser <grosser@fim.uni-passau.de>
1757 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
1758 add_condition_to_domain not GT_EXPR.
1760 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1762 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
1763 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
1764 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
1765 upper_bound_assign to calculate unions.
1766 * testsuite/gcc.dg/graphite/id-6.c: New.
1768 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1770 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
1771 handle abnormal edges.
1773 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1775 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
1776 (free_poly_bb): Also free poly_drs.
1777 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
1778 (poly_dr): Polyhedron to Pointset_Powerset.
1779 (pdr_accessp_nb_subscripts): Same.
1780 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
1783 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1785 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
1786 names into more meaningful names.
1788 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1790 * testsuite/gfortran.dg/graphite/interchange-1.c: New.
1791 * testsuite/gfortran.dg/graphite/interchange-2.c: New.
1793 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1795 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
1797 * tree-parloops.c (rewrite_phi_with_iv): New.
1798 (rewrite_all_phi_nodes_with_iv): New.
1799 (canonicalize_loop_ivs): Call them.
1801 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1803 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
1804 graphite_find_data_references_in_stmt.
1805 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
1806 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
1808 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1810 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
1812 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1814 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
1815 instead of bb_in_region.
1816 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
1817 (build_sese_conditions): Use flag_bb_in_sese.
1818 * sese.c (register_bb_in_sese): Removed.
1819 (new_sese): Remove initialization of SESE_REGION_BBS.
1820 (free_sese): Do not free SESE_REGION_BBS.
1821 * sese.h (struct sese): Remove field region_basic_blocks.
1822 (SESE_REGION_BBS): Removed.
1823 (bb_in_sese_p): Implement in function of bb_in_region.
1825 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1827 * graphite-scop-detection.c (limit_scops): Deal only with single exit
1830 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
1832 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
1834 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
1835 (add_condition_to_domain): New.
1836 (add_condition_to_pbb): New.
1837 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
1838 * testsuite/gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
1840 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
1842 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
1843 ppl_Pointset_Powerset.
1844 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
1845 * graphite-poly.h (poly_bb): poly_bb.domain Same.
1846 (pbb_nb_loops): Same.
1847 * graphite-sese-to-poly.c (build_loop_iteration_domains,
1848 add_conditions_to_domain): Same.
1849 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
1850 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
1851 ppl_const_Polyhedron_t.
1852 (ppl_print_powerset_matrix): New.
1853 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
1854 ppl_print_powerset_matrix): New.
1855 (ppl_print_polyhedron_matrix): Updated.
1857 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
1859 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
1861 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
1863 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
1864 (print_iteration_domains, debug_iteration_domain,
1865 debug_iteration_domains): New.
1866 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
1867 debug_iteration_domains): Declared.
1868 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
1871 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
1872 Sebastian Pop <sebastian.pop@amd.com>
1874 * graphite-poly.h (print_iteration_domain): New.
1875 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
1876 (build_sese_conditions_1, build_sese_conditions_after,
1877 build_sese_conditions_before): New.
1878 (build_sese_conditions): Rewritten.
1880 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
1881 Tobias Grosser <grosser@fim.uni-passau.de>
1883 Cleanup of code generation liveouts.
1884 * graphite-clast-to-gimple.c (translate_clast): Use a single
1885 rename_map instead of one per translated statement.
1886 Do not use SESE_LIVEOUT_RENAMES.
1887 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
1888 (gloog): Do not use SESE_LIVEOUT_RENAMES.
1889 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
1890 phi node of a reduction: when a loop contains a reduction used outside
1891 the loop, there should be a scalar close phi node on the exit block.
1892 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
1893 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
1894 (free_sese): Do not free them.
1895 (sese_build_liveouts_use): Do not use them.
1896 (sese_build_liveouts_bb): Same.
1897 (sese_build_liveouts): Same.
1898 (sese_insert_phis_for_liveouts): Same.
1899 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
1900 (defined_in_loop_p): New.
1901 (alive_after_loop): New.
1902 (close_phi_not_yet_inserted_p): New.
1903 (struct alep, alep_p): New.
1904 (add_loop_exit_phis): Remove from the rename_map all the names defined
1905 in the code generated loop.
1906 (insert_loop_close_phis): Traverse the rename_map passed to it.
1907 Don't use SESE_LIVEOUT_RENAMES.
1908 (default_liveout_before_guard): Renamed default_before_guard.
1909 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
1910 (graphite_copy_stmts_from_block): Do not directly call set_rename.
1911 (register_sese_liveout_renames): Removed.
1912 (copy_bb_and_scalar_dependences): Do not call it.
1913 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
1915 (SESE_LIVEOUT): Removed.
1916 (SESE_LIVEOUT_RENAMES): Removed.
1917 (SESE_REDUCTION_LIST): Removed.
1918 (sese_build_liveouts): Removed.
1919 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
1920 (insert_loop_close_phis): Pass a htab_t instead of a sese.
1921 (insert_guard_phis): Same.
1922 (rename_map_elt): Declare a VEC of them.
1923 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
1924 trees not pointers to trees.
1926 Rewrite in canonical close SSA form:
1927 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
1928 (limit_scops): Close the scop after the block containing the close phi
1930 (canonicalize_loop_closed_ssa): New.
1931 (canonicalize_loop_closed_ssa_form): New.
1932 (build_scops): Call canonicalize_loop_closed_ssa_form.
1934 * graphite-sese-to-poly.c: Fix typos.
1936 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
1938 * graphite-poly.c (print_scattering_function, print_pbb_domain):
1940 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
1941 (print_pbb): Add conditions.
1943 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
1944 Sebastian Pop <sebastian.pop@amd.com>
1946 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
1947 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
1948 (build_scop_bbs_1): New.
1949 (build_scop_bbs): Rewrite.
1950 * sese.h (bb_in_region): New.
1952 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1954 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
1956 (print_scop): Style.
1957 * graphite-poly.h (poly_bb): Add drs vector.
1958 (PBB_DRS): Add accessor.
1959 * graphite-sese-to-poly.c (build_poly_dr): New.
1960 (build_pbb_drs, build_scop_drs): New.
1961 (build_poly_scop): call build_scop_drs (Disabled at the moment).
1963 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1965 * tree-ssa-loop.c: Include forgotten toplev.h
1967 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1969 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
1970 * testsuite/gcc.dg/graphite/pr37883.c: Remove -floop-*
1971 * testsuite/gcc.dg/graphite/pr37928.c: Same
1972 * testsuite/gcc.dg/graphite/pr38409.c: Same
1973 * testsuite/gcc.dg/graphite/pr38498.c: Same
1974 * testsuite/gcc.dg/graphite/pr38559.c: Same
1975 * testsuite/gcc.dg/graphite/pr39335.c: Same
1976 * testsuite/gcc.dg/graphite/pr39335_1.c: Same
1977 * testsuite/gfortran.dg/graphite/block-2.f: Same
1978 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
1981 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
1983 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
1984 build_access_matrix, build_scop_data_accesses): Remove access function
1985 building. (We get a new version soon).
1986 (build_bb_loops, scan_tree_for_params_right_scev): Update.
1987 * sese.h (nb_loops_around_loop_in_sese): Remove.
1988 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
1990 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
1991 Sebastian Pop <sebastian.pop@amd.com>
1993 * graphite-scop-detection.c (struct scopdet_info): Rename last
1995 (scopdet_basic_block_info, build_scops_1): Don't use
1996 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
1998 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
1999 Sebastian Pop <sebastian.pop@amd.com>
2001 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
2002 * sese.c (sese_build_liveouts_use): Renamed from
2003 sese_build_livein_liveouts_use. Remove liveins.
2004 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
2005 Call sese_build_liveouts_use.
2006 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
2007 Call sese_build_liveouts_bb.
2008 (new_sese, free_sese): Remove liveins.
2009 (sese_add_exit_phis_var): Deleted.
2010 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
2012 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
2014 * sese.h (sese): Remove num_ver and livein.
2015 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
2017 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
2019 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
2021 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
2023 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
2024 (build_scop_scattering): Do not use compare_prefix_loops any more.
2025 (nb_common_loops): New.
2027 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
2029 * sese.c (get_new_name_from_old_name): Renamed get_rename.
2030 (register_old_and_new_names): Renamed set_rename.
2032 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
2034 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
2035 of the decl from the previous commit.
2037 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
2039 * graphite-scop-detection.c (dot_scop): New.
2040 * graphite-scop-detection.h (dot_scop): Declared.
2042 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
2044 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
2046 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
2048 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
2049 condition at the end of the loop.
2050 * graphite.c (graphite_initialize, graphite_finalize): Print to
2051 dump_file the compiled function.
2052 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
2053 of create_empty_loop_on_edge.
2054 (translate_clast): Update the code generation of loops for the new
2056 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
2058 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
2060 Reverted the patch from 2009-03-19.
2062 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
2064 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
2066 (print_scop): Style.
2067 * graphite-poly.h (poly_bb): Add drs vector.
2068 (PBB_DRS): Add accessor.
2069 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
2070 (build_access_matrix_with_af, build_access_matrix,
2071 build_scop_data_accesses): Delete.
2072 (build_poly_dr): New.
2073 (build_pbb_drs, build_scop_drs): New.
2074 (build_poly_scop): call build_scop_drs.
2076 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
2078 * graphite-scop-detection.c (dot_all_scops_1): Close the table
2079 once per basic block.
2081 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
2083 * graphite-scop-detection.c (graphite_can_represent_scev): New.
2084 (graphite_can_represent_expr): Renamed from loop_affine_expr
2086 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
2087 (graphite_cannot_represent_loop): Add scop_entry to parameters.
2088 (scopdet_basic_block_info): Actually define entry_block.
2089 (stmt_simple_memref_p): Moved here from ...
2091 * tree-data-ref.c (stmt_simple_memref_p): here.
2092 * tree-data-ref.h (stmt_simple_memref_p): Removed.
2094 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
2096 * testsuite/gcc.dg/graphite/id-4.c: New.
2098 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
2100 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
2101 (register_old_and_new_names): Update the content of the map.
2102 When there was already a rename_map_elt in the map at that
2104 (copy_bb_and_scalar_dependences): Do rename_variables after
2105 expand_scalar_variables.
2106 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
2107 of the map. When there was already a rename_map_elt in the
2108 map at that location, free it.
2109 (translate_clast): Pass the rename_map. Do not initialize and free
2110 a rename_map per stmt_user.
2111 (gloog): Initialize and free one rename_map and pass it to
2114 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
2116 * sese.c (expand_scalar_variables_stmt,
2117 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
2119 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
2120 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
2121 the gimple_stmt_iterator of the statement to be expanded.
2122 * graphite-scop-detection.c (is_simple_operand): Do handle
2125 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
2127 * graphite-scop-detection.c (is_simple_operand): Do not handle
2129 * testsuite/gcc.dg/graphite/id-2.c: New.
2131 * graphite-sese-to-poly.c (build_bb_loops,
2132 add_value_to_dim, scan_tree_for_params_right_scev,
2133 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
2134 find_params_in_bb, build_loop_iteration_domains,
2135 add_conditions_to_domain): Remove subtract.
2137 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
2139 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
2140 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
2141 pbb_loop_at_index -> gbb_loop_at_index.
2142 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
2143 (debug_loop_vec): Delete.
2144 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
2145 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
2146 (PBB_LOOPS): Removed.
2147 (PBB_BLACK_BOX): Insert cast.
2148 (pbb_set_black_box): New setter.
2149 (pbb_loop_at_index, pbb_loop_index): Removed.
2150 (scop_set_region, scop_set_nb_params): New.
2151 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
2152 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
2153 (build_poly_scop): Use scop_set_nb_params.
2154 * sese.h (gimple_bb): Add LOOPS.
2155 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
2157 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
2159 Revert previous commit.
2161 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
2163 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
2164 (register_old_and_new_names): Update the content of the map.
2165 When there was already a rename_map_elt in the map at that
2167 (copy_bb_and_scalar_dependences): Do rename_variables after
2168 expand_scalar_variables.
2169 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
2170 of the map. When there was already a rename_map_elt in the
2171 map at that location, free it.
2172 (translate_clast): Pass the rename_map. Do not initialize and free
2173 a rename_map per stmt_user.
2174 (gloog): Initialize and free one rename_map and pass it to
2177 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
2179 Remove forgotten line in revert.
2181 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
2183 Revert previous commit.
2185 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
2187 * sese.c (register_old_and_new_names): Update the content
2188 of the map. When there was already a rename_map_elt in the
2189 map at that location, free it.
2190 (copy_bb_and_scalar_dependences): Do rename_variables after
2191 expand_scalar_variables.
2192 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
2193 of the map. When there was already a rename_map_elt in the
2194 map at that location, free it.
2195 (translate_clast): Pass the rename_map. Do not initialize and free
2196 a rename_map per stmt_user.
2197 (gloog): Initialize and free one rename_map and pass it to
2200 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
2202 * graphite-clast-to-gimple.c (translate_clast): context_loop
2205 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
2206 Sebastian Pop <sebastian.pop@amd.com>
2208 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
2209 of the use of ppl_Polyhedron_map_space_dimensions.
2211 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
2212 Sebastian Pop <sebastian.pop@amd.com>
2214 * graphite-poly.c (unify_scattering_dimensions): Fix types.
2215 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
2216 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
2217 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
2218 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
2219 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
2220 pbb_nb_params): New.
2221 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
2222 nb_loops_around_pbb): Adapt return types.
2224 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
2226 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
2227 graphite-clast-to-gimple.o, graphite-data-ref.o,
2228 graphite-scop-detection.o, graphite-poly.o): Add
2231 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
2233 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
2234 graphite-clast-to-gimple.o, graphite-data-ref.o,
2235 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
2237 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
2239 * testsuite/gcc.dg/graphite/pr37485.c: Remove -floop-block
2240 * testsuite/gcc.dg/graphite/pr37828.c: Same.
2241 * testsuite/gcc.dg/graphite/pr37684.c: Same.
2242 * testsuite/gcc.dg/graphite/block-0.c: Same.
2243 * testsuite/gcc.dg/graphite/block-1.c: Same.
2244 * testsuite/gcc.dg/graphite/block-2.c: Same.
2245 * testsuite/gcc.dg/graphite/block-3.c: Same.
2246 * testsuite/gcc.dg/graphite/block-4.c: Same.
2247 * testsuite/gcc.dg/graphite/block-5.c: Same.
2248 * testsuite/gcc.dg/graphite/block-6.c: Same.
2249 * testsuite/gfortran.dg/graphite/pr38083.f90: Same.
2250 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
2251 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
2252 * testsuite/gfortran.dg/graphite/pr37852.f90: Same.
2253 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
2254 * testsuite/gfortran.dg/graphite/pr37980.f90: Same.
2255 * testsuite/gfortran.dg/graphite/pr38953.f90: Same.
2256 * testsuite/gfortran.dg/graphite/pr37857.f90: Same.
2257 * opts.c: Remove -floop-block from -O2.
2258 * graphite-poly.c: Fail if -floop-block -floop-interchange or
2259 -floop-strip-mine are used.
2261 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
2262 Sebastian Pop <sebastian.pop@amd.com>
2264 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
2266 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
2267 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
2268 strip_mine_profitable_p, is_interchange_valid,
2269 graphite_trans_bb_block, graphite_trans_loop_block,
2270 graphite_trans_scop_block): Temporary removed.
2271 (extend_scattering, unify_scattering_dimensions): New.
2272 (print_scattering_function, graphite_read_transforms):
2273 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
2274 (graphite_generate_scattering_fns): Removed.
2275 (apply_poly_transforms): Cleanup.
2276 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
2277 (schedule_to_scattering): Moved.
2278 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
2279 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
2280 (pbb_nb_scattering): New.
2281 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
2282 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
2284 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
2286 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
2287 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
2288 -> PBB_TRANSFORMED_SCATTERING.
2289 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
2290 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
2291 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
2292 (check_poly_representation): Do not return bool.
2293 (graphite_transform_loops): Reformat.
2294 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
2296 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
2298 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
2299 debug_pbb_domain, debug_pbb, debug_scop): New.
2300 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
2301 debug_pbb_domain, debug_pbb, debug_scop): Declared.
2303 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
2306 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
2307 when the type precision of the induction variable should be
2308 larger than the type precision of nit.
2309 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
2310 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
2311 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
2313 * testsuite/gcc.dg/graphite/pr39335_1.c: New.
2314 * testsuite/gcc.dg/graphite/pr39335.c: New.
2316 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
2318 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
2319 SSA_NAMES not struct reduction_info.
2321 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
2323 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
2325 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
2326 Tobias Grosser <grosser@fim.uni-passau.de>
2328 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
2329 (free_sese): Free SESE_REDUCTION_LIST.
2330 * sese.h (struct sese): Add field reduction_list.
2331 (SESE_REDUCTION_LIST): New.
2332 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
2333 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
2335 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
2336 Tobias Grosser <grosser@fim.uni-passau.de>
2338 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
2341 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
2342 Tobias Grosser <grosser@fim.uni-passau.de>
2344 * tree-parloops.c (struct brli, build_reduction_list_info,
2345 analyze_reduction_list, gather_scalar_reductions): New.
2346 (loop_parallel_p): Build a reduction list containing only
2347 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
2348 (gen_parallel_loop): Call the analysis analyze_reduction_list.
2349 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
2350 * tree-flow.h (gather_scalar_reductions): Declared.
2352 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
2355 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
2356 number_of_iterations_exit from a gcc_assert.
2358 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
2359 Jan Sjodin <jan.sjodin@amd.com>
2361 * output.h (graphite_out_file, graphite_in_file): Declared.
2362 * toplev.c (graphite_out_file, graphite_in_file): New.
2363 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
2364 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
2365 Don't call schedule_to_scattering.
2366 * common.opt (fgraphite-write, fgraphite-read): New.
2367 * graphite-poly.c: Include output.h.
2368 (print_scattering_function, print_scattering_functions,
2369 debug_scattering_function, debug_scattering_functions,
2370 graphite_write_transforms, graphite_read_transforms,
2371 graphite_generate_scattering_fns): New.
2372 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
2373 Call graphite_generate_scattering_fns, graphite_write_transforms,
2374 graphite_read_transforms.
2375 (new_poly_bb): Initialize PBB_SCATTERING.
2376 (free_poly_bb): Free PBB_SCATTERING.
2377 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
2378 * graphite-poly.h (struct poly_bb): Add field scattering.
2379 (PBB_SCATTERING): New.
2380 (print_scattering_function, print_scattering_functions,
2381 debug_scattering_function, debug_scattering_functions): Declared.
2382 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
2383 GMP values, not integers!
2384 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
2385 ppl_read_polyhedron_matrix): New.
2386 * graphite-ppl.h (ppl_print_polyhedron_matrix,
2387 debug_ppl_polyhedron_matrix,
2388 ppl_read_polyhedron_matrix): Declared.
2389 * Makefile.in (graphite-poly.o): Depends on output.h.
2391 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2392 Tobias Grosser <grosser@fim.uni-passau.de>
2395 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
2396 scalar evolutions in the scop_entry->loop_father.
2398 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2399 Tobias Grosser <grosser@fim.uni-passau.de>
2401 * graphite.h (ref_nb_loops): Remove declaration.
2402 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
2403 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
2404 debug_gbb): Moved to sese.h.
2407 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2408 Tobias Grosser <grosser@fim.uni-passau.de>
2410 * graphite-data-ref.[ch]: Disable.
2412 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2413 Tobias Grosser <grosser@fim.uni-passau.de>
2415 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
2416 scalar evolutions in the scop_entry->loop_father.
2418 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2420 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
2421 (graphite_cannot_represent_loop_niter): Renamed
2422 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
2423 (limit_scops): build_sese_loop_nests does not return a bool.
2424 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
2425 * sese.c (nb_reductions_in_loop): ... from here.
2426 (graphite_loop_normal_form): ... from here.
2427 (sese_record_loop): Does not fail, so does not return a bool.
2428 (build_sese_loop_nests): Same.
2429 * sese.h (build_sese_loop_nests): Update declaration.
2430 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
2431 (build_graphite_loop_normal_form): New.
2432 (gloog): Call build_graphite_loop_normal_form.
2433 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
2434 build_sese_loop_nests.
2436 * testsuite/gcc.dg/graphite/id-1.c: New.
2438 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2439 Tobias Grosser <grosser@fim.uni-passau.de>
2441 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
2442 The SCoP detection fix is sufficient.
2444 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
2446 PR tree-optimization/39260
2447 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
2448 the basic block contains a condition with a real type.
2449 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
2451 * gcc.dg/graphite/pr39260.c: New.
2453 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
2455 * graphite-poly.c: Inlcude params.h.
2456 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
2458 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
2459 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
2461 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2462 Tobias Grosser <grosser@fim.uni-passau.de>
2464 * graphite-scop-detection.c (dot_all_scops_1,
2465 dot_all_scops): Moved here.
2466 * graphite-scop-detection.h (dot_all_scops): Declared here.
2467 * graphite.c (graphite_initialize, graphite_finalize): New.
2468 (graphite_transform_loops): Cleaned up.
2469 * sese.c (debug_oldivs): Moved here.
2470 * graphite-poly.c (graphite_apply_transformations): Renamed
2471 apply_poly_transforms.
2472 (debug_loop_vec): Moved here.
2473 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
2474 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
2475 find_scop_parameters, build_scop_iteration_domain,
2476 add_conditions_to_constraints, build_scop_canonical_schedules,
2477 build_scop_data_accesses): Now static.
2478 (build_poly_scop, check_poly_representation): New.
2480 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2482 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
2483 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
2484 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
2485 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
2486 scan_tree_for_params_right_scev, scan_tree_for_params_int,
2487 scan_tree_for_params, struct irp_data, dx_record_params,
2488 find_params_in_bb, find_scop_parameters, gbb_from_bb,
2489 build_loop_iteration_domains, add_conditions_to_domain,
2490 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
2491 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
2492 build_sese_conditions, add_conditions_to_constraints,
2493 build_scop_iteration_domain, build_access_matrix_with_af,
2494 build_access_matrix,
2495 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
2497 * graphite-sese-to-poly.c: New.
2498 * graphite-sese-to-poly.h: New.
2500 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
2502 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2504 * graphite.c: Split graphite code generation to a new file.
2505 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
2506 max_precision_type, clast_to_gcc_expression_red,
2507 clast_to_gcc_expression, gcc_type_for_clast_expr,
2508 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
2509 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
2510 graphite_create_new_guard, clast_get_body_of_loop,
2511 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
2512 graphite_create_new_loop, build_iv_mapping, copy_renames,
2513 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
2514 compute_cloog_iv_types, free_scattering, save_var_name,
2515 initialize_cloog_names, build_scop_context, build_cloog_prog,
2516 set_cloog_options, debug_clast_stmt, scop_to_clast,
2517 print_generated_program, debug_generated_program,
2518 gloog): Moved to graphite-clast-to-gimple.c.
2520 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
2522 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
2523 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
2524 loop_iv_stack_pop, loop_iv_stack_get_iv,
2525 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
2526 free_loop_iv_stack, loop_iv_stack_remove_constants,
2527 debug_rename_elt, debug_rename_map_1, debug_rename_map,
2528 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
2529 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
2530 eq_ivtype_map_elts, sese_add_exit_phis_edge,
2531 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
2532 get_vdef_before_sese, sese_adjust_vphi,
2533 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
2534 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
2535 is_iv, expand_scalar_variables_ssa_name,
2536 expand_scalar_variables_expr, expand_scalar_variables_stmt,
2537 expand_scalar_variables, rename_variables, remove_condition,
2538 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
2539 add_loop_exit_phis, insert_loop_close_phis, struct igp,
2540 default_liveout_before_guard, add_guard_exit_phis,
2541 insert_guard_phis, register_old_and_new_names,
2542 graphite_copy_stmts_from_block, register_sese_liveout_renames,
2543 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
2544 if_region_set_false_region, create_if_region_on_edge,
2545 move_sese_in_condition): Moved to sese.c.
2547 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
2548 if_region_exit, if_region_get_condition_block,
2549 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
2550 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
2551 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
2552 ivtype_map_elt, new_ivtype_map_elt,
2553 recompute_all_dominators): Moved to sese.h.
2555 * graphite-clast-to-gimple.c: New.
2556 * graphite-clast-to-gimple.h: New.
2557 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
2558 * sese.c: Modified as said above.
2561 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2563 * graphite.c: Split scop detection to a new file.
2564 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
2565 move_sd_regions, loop_affine_expr, exclude_component_ref,
2566 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
2567 graphite_cannot_represent_loop_niter, struct scopdet_info,
2568 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
2569 find_single_entry_edge, find_single_exit_edge,
2570 create_single_entry_edge, sd_region_without_exit,
2571 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
2572 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
2573 Moved to graphite-scop-detection.c.
2575 * graphite-scop-detection.c: New.
2576 * graphite-scop-detection.h: New.
2577 * Makefile.in: Add new rule for graphite-scop-detection.o.
2579 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
2580 tree-scalar-evolution.h.
2581 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
2582 build_sese_loop_nests): Moved here from graphite.c.
2583 (param_index): Renamed parameter_index_in_region.
2585 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
2586 Sebastian Pop <sebastian.pop@amd.com>
2588 * gcc.dg/graphite/block-0.c: Expected to fail now.
2589 * gcc.dg/graphite/block-1.c: Same.
2590 * gcc.dg/graphite/block-5.c: Same.
2591 * gcc.dg/graphite/block-6.c: Same.
2593 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
2594 Sebastian Pop <sebastian.pop@amd.com>
2596 * graphite.h: Separate from graphite_bb_p the polyhedral
2597 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
2598 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
2599 graphite-data-ref.h.
2600 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
2601 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
2602 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
2603 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
2604 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
2605 scop_nb_params): Moved to graphite-poly.h.
2606 * graphite-data-ref.c: Same.
2607 * graphite-data-ref.h: New.
2609 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
2610 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
2611 is_interchange_valid, graphite_trans_bb_block,
2612 graphite_trans_loop_block, scop_max_loop_depth,
2613 graphite_trans_scop_block, graphite_apply_transformations,
2614 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
2616 * graphite-poly.h: New.
2617 * graphite-poly.c: New.
2618 * Makefile.in (OBJS-common): Add graphite-poly.o.
2619 (graphite-poly.o): New rule.
2620 * tree-data-ref.h (struct data_reference): Remove unused scop field.
2623 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
2624 Tobias Grosser <grosser@fim.uni-passau.de>
2626 * graphite.c: Replace gb -> gbb.
2628 * graphite-data-ref.c: Same.
2630 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
2631 Tobias Grosser <grosser@fim.uni-passau.de>
2633 * Makefile.in (OBJS-commmon): Add sese.o.
2635 (graphite.o): Add sese.h.
2636 * graphite.c (bb_in_ss_p, loop_in_sese_p,
2637 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
2638 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
2640 (block_before_scop): Add missing return.
2641 (new_scop, free_scop): Remove SESE data structures.
2642 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
2643 find_scop_parameters, build_loop_iteration_domains,
2644 add_conditions_to_domain, register_scop_liveout_renames,
2645 copy_bb_and_scalar_dependences): Scop -> SESE.
2647 (add_conditions_to_domain): SCoP -> SESE and remove check
2648 (scop_contains_non_iv_scalar_phi_nodes): New.
2649 (build_scop_conditions_1, build_scop_conditions): Remove check for
2650 non iv scalar phi nodes.
2651 (print_scop_statistics): New.
2652 (graphite_transform_loops): Cleanup.
2654 * graphite.h: Move to sese & cleanup.
2658 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2659 Tobias Grosser <grosser@fim.uni-passau.de>
2661 * graphite.c (build_scop_conditions_1): Conditions are only
2662 at the end of a basic block.
2664 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2665 Tobias Grosser <grosser@fim.uni-passau>
2667 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
2669 (GBB_ALPHA): Removed.
2671 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2672 Tobias Grosser <grosser@fim.uni-passau.de>
2674 * graphite-data-ref.c (graphite_test_dependence): Don't use
2675 GBB_DYNAMIC_SCHEDULE.
2676 * graphite.c (new_graphite_bb): Same.
2677 (free_graphite_bb): Same.
2678 (build_scop_dynamic_schedules): Removed.
2679 (graphite_transform_loops): Don't call it.
2680 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
2681 (GBB_DYNAMIC_SCHEDULE): Removed.
2683 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2684 Tobias Grosser <grosser@fim.uni-passau.de>
2686 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
2687 (print_graphite_bb): Same.
2688 (build_cloog_prog): Same.
2690 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2691 Tobias Grosser <grosser@fim.uni-passau.de>
2693 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
2695 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2696 Tobias Grosser <grosser@fim.uni-passau.de>
2698 * graphite.c (build_scop_context): Don't use CloogMatrix.
2699 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
2700 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
2702 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2703 Tobias Grosser <grosser@fim.uni-passau.de>
2705 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
2706 liveout_renames, add_params fields...
2707 (struct sese): ... here.
2708 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
2709 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
2711 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2712 Tobias Grosser <grosser@fim.uni-passau.de>
2714 * graphite.c (print_scop): Do not print the CLooG program.
2715 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
2716 build_cloog_prog, gloog): Don't use SCOP_PROG.
2717 (find_transform): Renamed scop_to_clast.
2718 (print_generated_program, debug_generated_program): New.
2719 (graphite_transform_loops): Adapt to new interface.
2720 * graphite.h (struct scop): Remove program field.
2721 (SCOP_PROG): Removed.
2722 (print_generated_program, debug_generated_program): Declared.
2724 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2726 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
2727 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
2728 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
2729 free_graphite_bb, build_scop_canonical_schedules,
2730 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
2731 schedules are now represented using a ppl_Linear_Expression_t.
2732 * graphite.h (struct graphite_bb): Same.
2733 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
2734 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
2736 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
2738 * graphite.c: Free local memory.
2739 * graphite-ppl.c: Same.
2741 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
2743 * graphite.c (const_column_index, get_first_matching_sign_row_index,
2744 get_lower_bound_row, get_upper_bound_row, copy_constraint,
2745 swap_constraint_variables, scale_constraint_variable): Removed.
2746 (graphite_trans_bb_strip_mine): Remove pong.
2747 * graphite-ppl.c: Include missing header files.
2748 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
2749 * graphite-ppl.h (ppl_strip_loop): Declared.
2750 * Makefile.in (graphite-ppl.o): Adjust dependences.
2752 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
2754 * graphite.c (build_loop_iteration_domains): Remove ping pong.
2755 (build_scop_iteration_domain): Same.
2757 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
2759 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
2761 (add_value_to_dim, scan_tree_for_params_right_scev,
2762 scan_tree_for_params_int): New.
2763 * graphite-ppl.c (oppose_constraint): New.
2764 (insert_constraint_into_matrix): Implement missing cases.
2765 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
2767 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
2769 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
2770 use ppl_move_dimension.
2772 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
2774 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
2777 * graphite-ppl.c: Same.
2778 * graphite-ppl.h: Same.
2780 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
2782 Revert last 3 commits.
2784 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2786 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
2788 (add_value_to_dim, scan_tree_for_params_right_scev,
2789 scan_tree_for_params_int): New.
2790 * graphite-ppl.c (oppose_constraint): New.
2791 (insert_constraint_into_matrix): Implement missing cases.
2792 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
2794 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2796 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
2798 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2799 Tobias Grosser <grosser@fim.uni-passau.de>
2801 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
2802 use ppl_move_dimension.
2803 * graphite-ppl.c (ppl_move_dimension): New.
2804 * graphite-ppl.h (ppl_move_dimension): Declared.
2806 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2808 * graphite.c: Do not include cloog/cloog.h.
2809 (print_graphite_bb): Remove ping pong, call PPL print function.
2811 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
2813 * Makefile.in (OBJS-common): Add graphite-ppl.o.
2814 (graphite.o): Add dependence on graphite-ppl.h.
2815 (graphite-ppl.o): New.
2816 (graphite-data-ref.c): Ping pong between PPL data structures
2818 * graphite-ppl.c: New.
2819 * graphite-ppl.h: New.
2820 * graphite.c: Include graphite-ppl.h.
2821 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
2822 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
2823 Ping pong between PPL data structures and matrices.
2824 (new_graphite_bb): Create a PPL constraint system.
2825 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
2826 (build_loop_iteration_domains): Use PPL functions.
2827 * graphite.h: Include graphite-ppl.h. Fix comments.
2828 (graphite_bb): Use a ppl_Constraint_System_t instead of
2829 CloogMatrix for representing the domain.
2830 (scop): Remove static_schedule.
2831 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
2833 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
2835 * graphite.c: Fix some comments.
2837 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
2840 * graphite.c (if_region_set_false_region): After moving a region
2841 in the false branch of a condition, remove the empty dummy
2843 (gloog): Remove wrong fix for PR38953.
2845 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
2847 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
2848 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
2849 register_bb_in_sese, new_sese, free_sese): Moved.
2850 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
2851 outermost_loop_in_scop, build_scop_iteration_domain,
2852 expand_scalar_variables_ssa_name, get_vdef_before_scop,
2853 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
2854 Use loop_in_sese_p instead of loop_in_scop_p.
2855 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
2856 (free_scop): Do not free SCOP_BBS_B.
2857 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
2858 ref_nb_loops): Moved here...
2859 * graphite.h (ref_nb_loops): ... from here.
2860 (struct scop): Remove bbs_b bitmap.
2861 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
2862 * testsuite/gcc.dg/graphite/scop-19.c: New
2864 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
2866 * graphite.c (scopdet_basic_block_info): Fix bug in scop
2869 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
2871 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
2872 eq_loop_to_cloog_loop): Remove.
2873 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
2874 * graphite.h (struct scop): Remove loop2cloog_loop.
2875 (loop_domain_dim, loop_iteration_vector_dim): Remove.
2877 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
2879 * opts.c (decode_options): Only add graphite options to O2
2880 if we compile with graphite enabled.
2882 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
2884 * Merge from mainline (r143163:143684).
2886 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
2888 * graphite.c (debug_value): Removed.
2889 * graphite.h (debug_value): Removed.
2891 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2893 * passes.c (init_optimization_passes): Do not call pass_copy_prop
2894 after graphite: pass_copy_prop does not maintain a proper loop closed
2895 SSA form. pass_copy_prop should be fixed.
2897 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2899 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
2901 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2903 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
2904 (gloog): Split the exit of the scop when the scop exit is a loop exit.
2905 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
2908 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
2910 * graphite.c (gloog): Return true when code gen succeeded.
2911 (graphite_transform_loops): Do not call cleanup_tree_cfg if
2912 the code of the function did not changed. After cleanup_tree_cfg
2913 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
2916 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
2918 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
2919 gimple_call_lhs is NULL.
2921 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
2922 Tobias Grosser <tobi.grosser@amd.com>
2924 * graphite.c (graphite_trans_scop_block): Do not block single
2927 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
2928 Tobias Grosser <tobi.grosser@amd.com>
2930 * graphite.c (build_scop_canonical_schedules): Start schedules at
2933 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
2934 Tobias Grosser <tobi.grosser@amd.com>
2936 * graphite.c (compare_prefix_loops): New.
2937 (build_scop_canonical_schedules): Rewritten.
2938 (graphite_transform_loops): Move build_scop_canonical_schedules
2939 after build_scop_iteration_domain.
2941 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2942 Tobias Grosser <tobi.grosser@amd.com>
2944 * graphite.c (add_conditions_to_domain): Add the loops to
2945 the dimension of the iteration domain. Do copy the domain
2946 only when it exists.
2947 (build_scop_conditions_1): Do not call add_conditions_to_domain.
2948 (add_conditions_to_constraints): New.
2949 (can_generate_code_stmt, can_generate_code): Removed.
2950 (gloog): Do not call can_generate_code.
2951 (graphite_transform_loops): Call add_conditions_to_constraints
2952 after building the iteration domain.
2954 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2955 Tobias Grosser <tobi.grosser@amd.com>
2956 Jan Sjodin <jan.sjodin@amd.com>
2958 * graphite.c (scan_tree_for_params): On substractions negate
2959 all the coefficients of the term.
2960 (clast_to_gcc_expression_red): New. Handle reduction expressions
2961 of more than two operands.
2962 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
2963 (get_vdef_before_scop): Handle also the case of default definitions.
2965 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2968 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
2969 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
2970 (gloog): Do not call cleanup_tree_cfg.
2971 (graphite_transform_loops): Call cleanup_tree_cfg after all
2972 scops have been code generated.
2974 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
2976 * passes.c (init_optimization_passes): Schedule after
2977 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
2979 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
2981 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
2983 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
2984 Set the type of an expression to the type of its assign statement.
2985 (expand_scalar_variables_expr): Do not pass loop_p.
2986 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
2987 (copy_bb_and_scalar_dependences): Do not pass loop_p.
2988 (translate_clast): Update call to copy_bb_and_scalar_dependences.
2990 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
2992 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
2993 an expression to the gimple_expr_type of its assign statement.
2994 (expand_scalar_variables_expr): Stop recursion on tcc_constant
2997 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
2999 PR tree-optimization/38786
3000 * testsuite/gcc.dg/graphite/pr38786.c: New.
3001 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
3002 the SSA_NAME case of expand_scalar_variables_expr.
3003 (expand_scalar_variables_expr): Also gather the scalar computation
3004 used to index the memory access.
3005 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
3006 the gimple_stmt_iterator where it inserts new code.
3008 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
3010 * testsuite/gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
3012 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
3014 * opts.c (decode_options): Enable flag_graphite_identity and
3015 flag_loop_block in -O2 and above.
3017 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
3019 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
3020 Fix merge problem: replace with the file from trunk.
3022 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
3024 * Merge from mainline (r141727:143163).
3026 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
3027 Jan Sjodin <jan.sjodin@amd.com>
3029 PR tree-optimization/38559
3030 * testsuite/gcc.dg/graphite/pr38559.c: New.
3032 * graphite.c (debug_value, copy_constraint,
3033 swap_constraint_variables, scale_constraint_variable, ): New.
3034 (get_lower_bound, get_upper_bound): Removed.
3035 (graphite_trans_bb_strip_mine): Clean up this code that works
3036 only for constant number of iterations. Fully copy upper and
3037 lower bound constraints, not only the constant part of them.
3038 * graphite.h (debug_value): Declared.
3040 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
3042 PR tree-optimization/38492
3043 PR tree-optimization/38498
3044 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
3045 * tree-chrec.h (scev_is_linear_expression): Declared.
3046 * graphite.c (graphite_cannot_represent_loop_niter): New.
3047 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
3048 (graphite_loop_normal_form): Use gcc_assert.
3049 (scan_tree_for_params): Use CASE_CONVERT.
3050 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
3051 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
3052 Use gcc_assert. Discard scops that contain unhandled cases.
3053 (build_scop_conditions): Return a boolean status for unhandled cases.
3054 (strip_mine_profitable_p): Print the loop number, not its depth.
3055 (is_interchange_valid): Pass the depth of the loop nest, don't
3056 recompute it wrongly.
3057 (graphite_trans_bb_block): Same.
3058 (graphite_trans_bb_block): Print tentative of loop blocking.
3059 (graphite_trans_scop_block): Do not print that the loop has been
3061 (graphite_transform_loops): Do not handle scops that contain condition
3064 * testsuite/gcc.dg/graphite/pr38500.c: Fixed warning as committed
3066 * testsuite/gcc.dg/graphite/block-0.c: Update test.
3067 * testsuite/gcc.dg/graphite/block-1.c: Same.
3068 * testsuite/gcc.dg/graphite/block-2.c: Remove xfail and test for
3070 * testsuite/gcc.dg/graphite/block-4.c: Remove test for strip mine.
3071 * testsuite/gcc.dg/graphite/block-3.c: New.
3072 * testsuite/gcc.dg/graphite/pr38498.c: New.
3074 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
3076 PR tree-optimization/38510
3077 * gcc.dg/graphite/pr38510.c: New.
3078 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
3079 (translate_clast): Call recompute_all_dominators before
3081 (gloog): Call recompute_all_dominators before graphite_verify.
3083 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
3085 PR tree-optimization/38492
3086 * graphite.c (rename_map_elt, debug_rename_elt,
3087 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
3088 rename_map_elt_info, eq_rename_map_elts,
3089 get_new_name_from_old_name, bb_in_sese_p): Moved around.
3090 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
3091 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
3092 (sese_build_livein_liveouts): New.
3093 (new_sese, free_sese): New.
3094 (new_scop): Call new_sese.
3095 (free_scop): Call free_sese.
3096 (rename_variables_from_edge, rename_phis_end_scop): Removed.
3097 (register_old_new_names): Renamed register_old_and_new_names.
3098 (register_scop_liveout_renames, add_loop_exit_phis,
3099 insert_loop_close_phis, struct igp,
3100 default_liveout_before_guard, add_guard_exit_phis,
3101 insert_guard_phis, copy_renames): New.
3102 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
3103 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
3104 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
3105 (scop_adjust_phis_for_liveouts): New.
3106 (gloog): Call scop_adjust_phis_for_liveouts.
3108 * graphite.h (struct sese): Documented. Added fields liveout,
3110 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
3111 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
3112 (struct scop): Added field liveout_renames.
3113 (SCOP_LIVEOUT_RENAMES): New.
3115 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
3117 PR tree-optimization/38409
3118 * gcc.dg/graphite/pr38409.c: New.
3119 * graphite.c (nb_reductions_in_loop): Use simple_iv.
3121 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
3123 * graphite.c (gcc_type_for_cloog_iv): By default return
3125 (graphite_create_new_loop): Don't fold_convert the already
3126 fold_convert-ed expression.
3128 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
3130 PR tree-optimization/38446
3131 * gcc.dg/graphite/pr38446.c: New.
3132 * graphite.c (register_bb_in_sese): New.
3133 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
3134 looking at the bbs in the region.
3135 * graphite.h (sese): Add region_basic_blocks pointer set to
3136 structure and initialize at the time of defining new scop.
3138 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
3140 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
3141 (find_params_in_bb): Do not free data refs.
3142 (free_graphite_bb): Add FIXME on disabled free_data_refs.
3144 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
3146 * testsuite/gcc.dg/graphite/scop-16.c: Test only scop specific info.
3147 * testsuite/gcc.dg/graphite/scop-17.c: Same.
3148 * testsuite/gcc.dg/graphite/block-5.c: New.
3149 * testsuite/gcc.dg/graphite/block-6.c: New.
3150 * testsuite/gcc.dg/graphite/pr37485.c: Clean dump file after.
3151 * testsuite/gcc.dg/graphite/pr37684.c: Same.
3152 * testsuite/gcc.dg/graphite/block-2.c: Same.
3154 * graphite.c (struct ivtype_map_elt): New.
3155 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
3156 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
3157 gcc_type_for_cloog_iv): New.
3158 (loop_iv_stack_patch_for_consts): Use the type of the induction
3159 variable from the original loop, except for the automatically
3160 generated loops, i.e., in the case of a strip-mined loop, in
3161 which case there is no original loop: in that case just use
3163 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
3164 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
3165 (clast_name_to_gcc): Accept params to be NULL.
3166 (clast_to_gcc_expression): Take an extra parameter for the type.
3167 Convert to that type all the expressions built by this function.
3168 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
3169 (graphite_translate_clast_equation): Compute the type of the
3170 clast_equation before translating its LHS and RHS.
3171 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
3172 (graphite_create_new_loop): Compute the type of the induction
3173 variable before translating the lower and upper bounds and before
3174 creating the induction variable.
3175 (rename_variables_from_edge, rename_phis_end_scop): New.
3176 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
3177 (sese_add_exit_phis_edge): Do not use integer_zero_node.
3178 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
3179 compute_cloog_iv_types): New.
3180 (gloog): Call compute_cloog_iv_types before starting the
3181 translation of the clast.
3183 * graphite.h (struct graphite_bb): New field cloog_iv_types.
3184 (GBB_CLOOG_IV_TYPES): New.
3185 (debug_ivtype_map): Declared.
3186 (oldiv_for_loop): New.
3188 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
3191 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
3192 (param_index): Assert if parameter is not know after parameter
3194 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
3195 (find_scop_parameters): Mark, that we have finished parameter
3197 (graphite_transform_loops): Move condition detection before parameter
3199 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
3200 * testsuite/gfortran.dg/graphite/pr38459.f90: New.
3202 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
3204 * graphite.c (graphite_transform_loops): Always call find_transform ()
3205 in ENABLE_CHECKING. So we test these code paths, even if we do not
3208 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
3210 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
3211 (print_scop): Ditto.
3213 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
3216 Fix testsuite/gfortran.dg/graphite/id-3.f90.
3217 * graphite.c (scopdet_basic_block_info): Fix bug that found some
3218 regions more than once.
3220 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
3222 Fix testsuite/gfortran.dg/graphite/id-4.f90.
3223 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
3226 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
3228 Fix testsuite/gfortran.dg/graphite/id-1.f90.
3229 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
3230 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
3231 (max_precision_type): New.
3232 (value_clast): Removed.
3233 (clast_to_gcc_expression): Be more careful to types of expressions.
3234 Use max_precision_type and update use of gmp_cst_to_tree.
3235 (graphite_translate_clast_equation): Use max_precision_type.
3236 (graphite_create_guard_cond_expr): Do not use integer_type_node,
3237 use the type of the condition.
3238 (graphite_create_new_loop): Do not use integer_type_node, use the
3239 max_precision_type of lb and ub.
3241 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
3243 * graphite.c (build_scops_1): Initialize open_scop.exit
3246 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
3248 * testsuite/gcc.dg/graphite/pr38084.c: New.
3249 * testsuite/gfortran.dg/graphite/id-1.f90: New.
3250 * testsuite/gfortran.dg/graphite/id-2.f90: New.
3251 * testsuite/gfortran.dg/graphite/id-3.f90: New.
3252 * testsuite/gfortran.dg/graphite/id-4.f90: New.
3253 * testsuite/gfortran.dg/graphite/pr37857.f90: New.
3255 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
3256 Jan Sjodin <jan.sjodin@amd.com>
3257 Harsha Jagasia <harsha.jagasia@amd.com>
3269 * testsuite/gcc.dg/graphite/pr38073.c: New.
3270 * testsuite/gcc.dg/graphite/pr37928.c: New.
3271 * testsuite/gcc.dg/graphite/pr37883.c: New.
3272 * testsuite/gcc.dg/graphite/pr38125.c: New.
3273 * testsuite/gfortran.dg/graphite/pr38083.f90: New.
3274 * testsuite/gfortran.dg/graphite/pr37852.f90: New.
3275 * testsuite/gfortran.dg/graphite/pr37980.f90: New.
3277 * testsuite/gcc.dg/graphite/scop-18.c: Remove reduction, test for
3278 the number of detected scops. Copy exact same test for loop
3280 * testsuite/gcc.dg/graphite/block-1.c: Fix the number of expected
3281 loops to be blocked as reductions are not handled.
3282 * testsuite/gcc.dg/graphite/block-4.c: ...here. New.
3284 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
3285 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
3287 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
3288 * Makefile.in (graphite.o): Depend on value-prof.h.
3289 (graphite.o-warn): Removed -Wno-error.
3290 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
3291 to be a NULL pointer. Call update_stmt. Return the newly created
3292 cannonical induction variable.
3294 * graphite.h (debug_rename_map): Declared. Fix some comments.
3296 * graphite.c: Reimplement the code generation from graphite to gimple.
3297 Include value-prof.h.
3298 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
3299 (get_old_iv_from_ssa_name): Removed.
3300 (graphite_stmt_p): New.
3301 (new_graphite_bb): Test for useful statements before building a
3302 graphite statement for the basic block.
3303 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
3304 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
3306 (recompute_all_dominators, graphite_verify,
3307 nb_reductions_in_loop, graphite_loop_normal_form): New.
3308 (scop_record_loop): Call graphite_loop_normal_form.
3309 (build_scop_loop_nests): Iterate over all the blocks of the
3310 function instead of relying on the incomplete information from
3311 SCOP_BBS. Return the success of the operation.
3312 (find_params_in_bb): Use the data from GBB_DATA_REFS.
3313 (add_bb_domains): Removed.
3314 (build_loop_iteration_domains): Don't call add_bb_domains.
3315 Add the iteration domain only to the basic blocks that have been
3316 translated to graphite.
3317 (build_scop_conditions_1): Add constraints only if the basic
3318 block have been translated to graphite.
3319 (build_scop_data_accesses): Completely disabled until data
3320 dependence is correctly implemented.
3321 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
3322 (remove_all_edges_1, remove_all_edges): Removed.
3323 (get_new_name_from_old_name): New.
3324 (graphite_rename_variables_in_stmt): Renamed
3325 rename_variables_in_stmt. Call get_new_name_from_old_name.
3326 Use replace_exp and update_stmt.
3327 (is_old_iv): Renamed is_iv.
3328 (expand_scalar_variables_stmt): Extra parameter for renaming map.
3329 Use replace_exp and update_stmt.
3330 (expand_scalar_variables_expr): Same. Use the map to get the
3331 new names for the renaming of induction variables and for the
3332 renaming of variables after a basic block has been copied.
3333 (expand_scalar_variables): Same.
3334 (graphite_rename_variables): Renamed rename_variables.
3335 (move_phi_nodes): Removed.
3336 (get_false_edge_from_guard_bb): New.
3337 (build_iv_mapping): Do not insert the induction variable of a
3338 loop in the renaming iv map if the basic block does not belong
3340 (register_old_new_names, graphite_copy_stmts_from_block,
3341 copy_bb_and_scalar_dependences): New.
3342 (translate_clast): Heavily reimplemented: copy basic blocks,
3343 do not move them. Finally, in call cleanup_tree_cfg in gloog.
3344 At each translation step call graphite_verify ensuring the
3345 consistency of the SSA, loops and dominators information.
3346 (collect_virtual_phis, find_vdef_for_var_in_bb,
3347 find_vdef_for_var_1, find_vdef_for_var,
3348 patch_phis_for_virtual_defs): Removed huge hack.
3349 (mark_old_loops, remove_dead_loops, skip_phi_defs,
3350 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
3351 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
3352 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
3353 if_region_get_condition_block, if_region_set_false_region,
3354 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
3355 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
3356 sese_add_exit_phis_edge, sese_add_exit_phis_var,
3357 rewrite_into_sese_closed_ssa): New.
3358 (gloog): Remove dead code. Early return if code cannot be
3359 generated. Call cleanup_tree_cfg once the scop has been code
3361 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
3362 block loops with less than two loops.
3363 (graphite_apply_transformations): Remove the call to
3364 scop_remove_ignoreable_gbbs.
3365 (limit_scops): When build_scop_loop_nests fails, continue on
3366 the next scop. Fix open_scop.entry.
3367 (graphite_transform_loops): Call recompute_all_dominators: force the
3368 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
3369 Call initialize_original_copy_tables and free_original_copy_tables
3370 to be able to copy basic blocks during code generation.
3371 When build_scop_loop_nests fails, continue on next scop.
3372 (value_clast): New union.
3373 (clast_to_gcc_expression): Fix type cast warning.
3375 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
3377 * Merge from mainline (r140838:141727).
3379 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
3383 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
3385 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
3389 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
3390 exits and conditions.
3391 * testsuite/gcc.dg/graphite/pr37943.c: New.
3393 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
3396 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
3398 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
3400 * doc/invoke.texi: Fix spaces.
3402 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
3404 PR tree-optimization/37891
3405 Reverted last commit.
3406 * graphite.c (create_single_entry_edge): Set
3407 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
3409 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
3410 Mitul Thakkar <mitul.thakkar@amd.com>
3412 * graphite.c (create_single_entry_edge): Set
3413 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
3415 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
3417 * doc/invoke.texi: Add -fgraphite-identity.
3418 * graphite.c (graphite_apply_transformations): Check for
3419 -fgraphite-identity.
3420 * toplev.c (process_options): Add flag_graphite_identity.
3421 * tree-ssa-loop.c: Add flag_graphite_identity.
3423 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
3425 Undo changes from 2008-10-02:
3426 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
3427 operand type when copying the operand to a variable of different type.
3428 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
3429 with the IV name after increment.
3431 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
3432 Harsha Jagasia <harsha.jagasia@amd.com>
3434 PR tree-optimization/37828
3435 * testsuite/gcc.dg/graphite/pr37828.c: New.
3436 * graphite.c (graphite_trans_loop_block): Do not loop block
3437 single nested loops.
3439 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
3440 Sebastian Pop <sebastian.pop@amd.com>
3442 * graphite.c (struct rename_map_elt, new_rename_map_elt,
3443 rename_map_elt_info, eq_rename_map_elts): New.
3444 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
3445 (expand_scalar_variables_expr): Change parameters.
3446 (expand_scalar_variables_stmt): Same.
3447 (expand_scalar_variables): Same.
3448 (graphite_rename_ivs): Rename graphite_rename_variables.
3449 (build_iv_mapping): New.
3450 (translate_clast): Call build_iv_mapping.
3451 * graphite.h (gbb_p): New name.
3453 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
3455 PR tree-optimization/37684
3456 * gcc.dg/graphite/pr37684.c: New.
3457 * graphite.c (exclude_component_ref): New.
3458 (is_simple_operand): Call exclude_component_ref.
3460 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
3461 Harsha Jagasia <harsha.jagasia@amd.com>
3463 PR tree-optimization/37485
3464 * gcc.dg/graphite/block-2.c: New
3465 * graphite.c (gmp_cst_to_tree): Moved.
3466 (iv_stack_entry_is_constant): New.
3467 (iv_stack_entry_is_iv): New.
3468 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
3469 (loop_iv_stack_insert_constant): New.
3470 (loop_iv_stack_pop): Use new datatpype.
3471 (loop_iv_stack_get_iv): Same.
3472 (loop_iv_stack_get_iv_from_name): Same.
3473 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
3474 (loop_iv_stack_patch_for_consts): New.
3475 (loop_iv_stack_remove_constants): New.
3476 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
3477 (translate_clast): Call loop_iv_stack_patch_for_consts and
3478 loop_iv_stack_remove_constants.
3479 (gloog): Use new datatype. Redirect construction edge to end
3480 block to avoid accidental deletion.
3481 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
3483 (union iv_stack_entry_data): New. Data in iv stack entry.
3484 (struct iv_stack_entry): New. Datatype for iv stack entries.
3486 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3488 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
3489 operand type when copying the operand to a variable of different type.
3491 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3493 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
3494 with the IV name after increment.
3496 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3498 * Merge from mainline (r140164:140838).
3500 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
3502 * graphite-data-ref.c: New.
3503 * graphite.c (print_scop): Also dump the dependence graph.
3504 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
3505 (new_scop): Initialize SCOP_DEP_GRAPH.
3506 (build_scop_dynamic_schedules): New.
3507 (build_access_matrix_with_af): Fixed column numbering.
3508 (graphite_transform_loops): Call build_scop_dynamic_schedules.
3509 * graphite.h: Add ifndef/define guards against multiple inclusion.
3510 (struct scop): Add dep_graph field.
3511 (SCOP_DEP_GRAPH): Defined.
3512 (ref_nb_loops): Fixed and moved to other position.
3513 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
3514 (nb_loops_around_loop_in_scop): New.
3515 (graphite_dump_dependence_graph): Declared.
3516 (graphite_build_rdg_all_levels): Declared.
3517 (graphite_test_dependence): Declared.
3518 * Makefile.in (graphite-data-ref.o): New target.
3520 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
3522 * Merge from mainline (139870:140164).
3524 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
3526 * Merge from mainline (138275:139870).
3527 * testsuite/gcc.dg/graphite/scop-matmult.c: XFailed as one of
3528 the commits from trunk broke the niter detection.
3530 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
3532 * graphite.c: Add more documentation. Fix formatting.
3533 (debug_loop_vec, debug_oldivs, loop_iv_stack,
3534 loop_iv_stack_debug): Moved...
3535 (schedule_to_scattering): Move before use.
3536 (dot_all_scops): Include in "#if 0" the code for system
3539 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
3540 loop_iv_stack_debug): ...here.
3542 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
3544 * tree-phinodes.c (make_phi_node): Extern.
3545 (add_phi_node_to_bb): New.
3546 (create_phi_node): Call add_phi_node_to_bb.
3547 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
3548 (remove_statement): Handle case where stored phi was updated
3549 and is no longer the same.
3550 * graphite.c (is_parameter): New.
3552 (expand_scalar_variables_expr): New.
3553 (expand_scalar_variables_stmt): New.
3554 (expand_scalar_variables): New.
3555 (move_phi_nodes): Create new phi instead of moving old one.
3556 (translate_clast): Call expand_scalar_variables.
3557 (find_vdef_for_var_in_bb): Also scan regular definitions.
3558 (skip_phi_defs): New.
3559 (collect_scop_exit_phi_args): New.
3560 (patch_scop_exit_phi_args): New.
3561 (gloog): Patch phis after scop.
3562 * tree-flow.h: (add_phi_node_to_bb): Declared.
3563 (make_phi_node): Declared.
3565 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
3567 * graphite.c (end_scop): Split the entry of the scop when it
3568 is the header of the loop in which the scop is ending.
3569 (build_scops_1, limit_scops): Update uses of end_scop.
3571 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
3573 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
3574 SCOP_ENTRY or SCOP_EXIT.
3576 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3578 * graphite.c (get_construction_edge): Removed.
3579 (gloog): Construction edge is the scop entry edge.
3581 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3583 * graphite.c (can_generate_for_scop): Removed.
3584 (gloog): Do not call it.
3586 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3588 * graphite.c (new_scop): Entry of a scop is an edge.
3589 Initialize SESE region.
3590 (free_scop): Free SESE region.
3591 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
3592 (split_difficult_bb): New, split from end_scop.
3593 (end_scop): Exit of a scop is an edge.
3594 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
3595 not automatically updated and thus is always wrong.
3596 * graphite.h (struct sese): New.
3599 (struct scop): New field for a SESE region. Remove entry, exit.
3600 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
3601 semantics as before. Moved comment around.
3603 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3604 Sebastian Pop <sebastian.pop@amd.com>
3606 * graphite.c (graphite_transform_loops): Always enable gloog
3607 and find_transform when ENABLE_CHECKING.
3609 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3611 * graphite.c (graphite_transform_loops): Move pretty printer
3612 of SCOPs before doing any transform. Remove call to print_scops
3613 and dot_all_scops_1.
3615 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3617 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
3618 (print_graphite_bb): Same.
3620 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3622 * graphite.c (dot_all_scops_1): Cleanup.
3623 (move_scops): Fix comment.
3625 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3627 * graphite.c (build_scop_bbs): Revert commit 139355:
3629 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3630 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3632 * graphite.c (build_scop_bbs): Factor up code.
3634 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3636 * graphite.c (gloog): Update dominator info.
3638 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3640 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
3642 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3644 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
3646 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
3647 (translate_clast): Correct formatting.
3648 * graphite.h (struct num_map): Removed.
3649 (struct graphite_bb): Remove num_map field.
3650 (GBB_INDEX_TO_NUM_MAP): Removed.
3652 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3654 * graphite.c (build_access_matrix_with_af): Fix comments.
3655 (build_scop_data_accesses): Same.
3657 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3659 * graphite.c (build_scop_data_accesses): Don't construct
3660 access matrices. Add a FIXME and an assert condition that
3661 should pass when the access matrices will be needed.
3663 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3665 * tree-data-ref.c (stmt_simple_memref_p): Don't call
3667 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
3668 Moved close by free_graphite_bb.
3669 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
3670 (new_scop): Move close by free_scop.
3671 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
3673 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
3675 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
3676 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
3677 instead of recursive call.
3678 (graphite_translate_clast_equation): New.
3679 (graphite_create_guard_cond_expr): New.
3680 (graphite_create_new_guard): New.
3681 (get_stack_index_from_iv): Removed.
3682 (graphite_rename_ivs_stmt): Use gbb_loop_index.
3683 (get_true_edge_from_guard_bb): New.
3684 (translate_clast): Handle stmt_guard in clast.
3685 (get_construction_edge): Allow construction edge detection for
3686 a scope entry with multiple predecessors if one predecessor is
3687 the immediate dominator of scope entry.
3688 (can_generate_code_stmt): Enable code generation for clast_guard.
3689 (gloog): Use correct context loop. Removed check for post dominators.
3690 * cfgloop.h (create_empty_if_region_on_edge): Declared.
3692 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3694 * graphite.c (remove_dead_loops): Document better which
3697 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3699 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
3701 (graphite.o): Also depends on pointer-set.h.
3703 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3705 * graphite.c (scop_record_loop): Fix compile warning.
3707 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
3708 Sebastian Pop <sebastian.pop@amd.com>
3710 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
3712 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3714 * graphite.c (build_graphite_bb): Initialize bb->aux to
3715 point to the graphite_bb_p.
3716 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
3718 (add_bb_domains): Does not use the scop parameter.
3719 (graphite_transform_loops): Clean bb->aux at the end.
3721 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3722 Sebastian Pop <sebastian.pop@amd.com>
3724 * testsuite/lib/target-supports.exp
3725 (check_effective_target_fgraphite): New.
3727 * testsuite/gcc.dg/graphite/graphite.exp: Early exit when
3728 check_effective_target_fgraphite returns false.
3729 Set dg-do-what-default to compile.
3730 (scan-graphite-dump-times): Removed.
3731 * testsuite/gfortran.dg/graphite/graphite.exp: Same.
3733 * testsuite/gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
3734 Use scan-tree-dump-times instead of scan-graphite-dump-times.
3735 * testsuite/gcc.dg/graphite/scop-1.c: Same.
3736 * testsuite/gcc.dg/graphite/scop-2.c: Same.
3737 * testsuite/gcc.dg/graphite/scop-3.c: Same.
3738 * testsuite/gcc.dg/graphite/scop-4.c: Same.
3739 * testsuite/gcc.dg/graphite/scop-5.c: Same.
3740 * testsuite/gcc.dg/graphite/scop-6.c: Same.
3741 * testsuite/gcc.dg/graphite/scop-7.c: Same.
3742 * testsuite/gcc.dg/graphite/scop-8.c: Same.
3743 * testsuite/gcc.dg/graphite/scop-9.c: Same.
3744 * testsuite/gcc.dg/graphite/scop-10.c: Same.
3745 * testsuite/gcc.dg/graphite/scop-11.c: Same.
3746 * testsuite/gcc.dg/graphite/scop-12.c: Same.
3747 * testsuite/gcc.dg/graphite/scop-13.c: Same.
3748 * testsuite/gcc.dg/graphite/scop-matmult.c: Same.
3749 * testsuite/gcc.dg/graphite/scop-14.c: Same.
3750 * testsuite/gcc.dg/graphite/scop-15.c: Same.
3751 * testsuite/gcc.dg/graphite/block-0.c: Same.
3752 * testsuite/gcc.dg/graphite/scop-16.c: Same.
3753 * testsuite/gcc.dg/graphite/block-1.c: Same.
3754 * testsuite/gcc.dg/graphite/scop-17.c: Same.
3755 * testsuite/gcc.dg/graphite/scop-18.c: Same.
3756 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
3757 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
3758 * testsuite/gfortran.dg/graphite/block-2.f: Same.
3760 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3762 * graphite.c: Fix some XXX comments.
3763 (build_scop_dynamic_schedules): Removed.
3765 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3767 * graphite.h (scop_max_loop_depth): Moved...
3768 * graphite.c (scop_max_loop_depth): ...here.
3769 (remove_all_edges_1): New.
3770 (remove_all_edges): Factored code.
3771 (remove_cond_exprs): Check only the last statement for
3772 a GIMPLE_COND expression.
3774 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3776 * graphite.c (scan_tree_for_params): Early return when the
3777 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
3778 (find_scop_parameters): Factor out code.
3779 (graphite_trans_bb_strip_mine): Remove dead code.
3781 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3783 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
3784 graphite_trans_bb_move_loop): Factor asserts.
3785 (gloog): Perform sanity checks only for ENABLE_CHECKING.
3786 Do not call calculate_dominance_info and estimate_bb_frequencies.
3788 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
3790 * graphite.c (create_loops_mapping, free_loops_mapping,
3791 create_loops_mapping_num, debug_loop_mapping_1,
3792 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
3793 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
3794 graphite_loops_mapping_add_child_num,
3795 graphite_loops_mapping_insert_child,
3796 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
3797 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
3798 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
3799 create_num_from_index, get_num_from_index,
3800 swap_loop_mapped_depth): Removed.
3801 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
3802 (free_scop): Do not call free_loops_mapping.
3803 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
3804 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
3805 get_loop_mapped_depth.
3806 (graphite_trans_bb_move_loop): Do not update the loop mapping.
3807 (graphite_trans_bb_strip_mine): Same.
3808 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
3809 (struct scop): Remove field loops_mapping.
3811 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3812 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3814 * graphite.c (scop_record_loop): Factor out one level of the
3815 condition by early return.
3816 (build_scop_loop_nests): Format following FSF coding style.
3817 (build_scop_dynamic_schedules): Factor out code.
3818 (scopdet_bb_info): Reindent. Default case should not be reachable.
3820 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3821 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3823 * graphite.c (loop_affine_expr): Check for DECL_P or struct
3824 assignments that are not handled as simple operands for now.
3826 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3827 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3829 * graphite.c (build_scop_bbs): Factor up code.
3831 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3832 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3834 * graphite.c (stmt_simple_for_scop_p): Factor code out
3836 (enum gbb_type): New. Group all the GBB_* types under it.
3837 (is_loop_exit): Moved...
3838 (end_scop): Enable BB spliting.
3839 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
3840 * cfgloop.h (is_loop_exit): Declared.
3842 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3844 * doc/invoke.texi: Remove strides from examples containing
3845 DO loops when the strides are equal to 1.
3847 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
3848 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3850 * graphite.c (graphite_trans_scop_block): Or the result with
3851 the result from graphite_trans_loop_block.
3852 * testsuite/gcc.dg/graphite/block-1.c: New.
3853 * testsuite/gfortran.dg/graphite/block-1.f90: New.
3854 * testsuite/gfortran.dg/graphite/block-2.f: New.
3856 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3858 * graphite.c (graphite_transform_loops): Call cloog_initialize
3861 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3863 * tree-data-ref.c) (stmt_simple_memref_p): New.
3864 * tree-data-ref.h (stmt_simple_memref_p): Declared.
3865 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
3866 (is_simple_operand): Call stmt_simple_memref_p.
3868 * testsuite/gcc.dg/graphite/scop-matmult.c: Updated for not
3869 using pointer arithmetic, as this is optimized by PRE and
3870 makes the code too difficult to analyze.
3872 * testsuite/gcc.dg/graphite/scop-18.c: Same.
3874 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3876 * gdbinit.in (pgg): New.
3878 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3880 * graphite.c (graphite_trans_loop_block): Fix warning.
3882 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3884 * graphite.c (graphite_trans_loop_block): Fix my merge error.
3886 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3888 * graphite.c (graphite_trans_bb_block): Remove check for
3889 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
3890 Check if loop blocking is profitable for every loop, before applying
3892 (graphite_apply_transformations): Call graphite_trans_bb_block only,
3893 if flag_loop_block is set.
3895 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3897 * graphite.c: Add some more documentation for the loop
3900 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3902 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
3903 * graphite.c: Format on less than 80 columns.
3906 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3908 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
3910 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3912 * doc/invoke.texi (floop-block, floop-strip-mine,
3913 floop-interchange): Update documentation with examples.
3915 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
3917 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
3919 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
3921 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
3923 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
3924 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
3925 * tree-scalar-evolution.c: Revert useless changes.
3926 * tree-phinodes.c: Same.
3929 * tree-vectorizer.h: Same.
3930 * tree-flow.h: Same.
3932 * common.opt (fgraphite): Update documentation.
3934 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
3936 * doc/invoke.texi (-floop-block, -floop-strip-mine,
3937 -floop-interchange): Add more text for explaining what each of these
3939 * tree-into-ssa.c (gimple_vec): Moved to...
3940 * graphite.c: Include gimple.h.
3941 (gimple_vec): Moved to...
3942 (del_loop_to_cloog_loop): Removed.
3943 (loop_affine_expr): Do not call create_data_ref when the
3944 operand is a constant.
3945 (new_scop): Use free instead of del_loop_to_cloog_loop.
3946 * Makefile.in (graphite.o): Depend on GIMPLE_H.
3947 * gimple.h (gimple_vec): ... here.
3949 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3951 * graphite.c (scopdet_bb_info): Only allow loops with known number of
3953 (build_loop_iteration_domains): Fail, if latch executions unknown.
3955 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3957 * graphite.c (add_conditions_to_domain): New.
3958 (build_scop_conditions_1): Call add_conditions_to_domain.
3959 (set_cloog_options): Allow to disable optimizations.
3961 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3963 * graphite.c (find_params_in_bb): Look for parameters in conditions.
3964 Do not use walk_dominator_tree.
3965 (find_scop_parameters): Do not use walk_dominator_tree.
3967 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3969 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
3970 (idx_record_params): Adapt.
3971 * graphite.h (scop_gimple_loop_depth): New.
3973 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3975 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
3976 (scan_tree_for_params): Remove value_init.
3977 (build_scop_context): Remove value_init.
3978 (build_loop_iteration_domains): Remove value_init.
3979 (schedule_to_scattering): Remove value_init.
3980 (graphite_trans_bb_strip_mine): Remove value_init.
3982 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3984 * gcc/graphite.c (limit_scops): New.
3985 (graphite_transform_loops): Add limit SCoPs.
3986 * gcc/testsuite/gcc.dg/graphite/scop-0.c: Update number of SCoPs.
3987 * gcc/testsuite/gcc.dg/graphite/scop-1.c: Update number of SCoPs.
3988 * gcc/testsuite/gcc.dg/graphite/scop-10.c: Update number of SCoPs.
3989 * gcc/testsuite/gcc.dg/graphite/scop-11.c: Update number of SCoPs.
3990 * gcc/testsuite/gcc.dg/graphite/scop-12.c: Update number of SCoPs.
3991 * gcc/testsuite/gcc.dg/graphite/scop-13.c: Update number of SCoPs.
3992 * gcc/testsuite/gcc.dg/graphite/scop-14.c: Update number of SCoPs.
3993 * gcc/testsuite/gcc.dg/graphite/scop-15.c: Update number of SCoPs.
3994 * gcc/testsuite/gcc.dg/graphite/scop-16.c: Update number of SCoPs.
3995 Change loop numbers.
3996 * gcc/testsuite/gcc.dg/graphite/scop-17.c: Update number of SCoPs.
3997 Change loop numbers.
3998 * gcc/testsuite/gcc.dg/graphite/scop-18.c: Update number of SCoPs.
3999 * gcc/testsuite/gcc.dg/graphite/scop-2.c: Update number of SCoPs.
4000 * gcc/testsuite/gcc.dg/graphite/scop-3.c: Update number of SCoPs.
4001 * gcc/testsuite/gcc.dg/graphite/scop-4.c: Update number of SCoPs.
4002 * gcc/testsuite/gcc.dg/graphite/scop-5.c: Update number of SCoPs.
4003 * gcc/testsuite/gcc.dg/graphite/scop-6.c: Update number of SCoPs.
4004 * gcc/testsuite/gcc.dg/graphite/scop-7.c: Update number of SCoPs.
4005 * gcc/testsuite/gcc.dg/graphite/scop-8.c: Update number of SCoPs.
4006 * gcc/testsuite/gcc.dg/graphite/scop-9.c: Update number of SCoPs.
4007 * gcc/testsuite/gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
4009 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
4011 * graphite.c (graphite_transform_loops): Call always find_transform.
4013 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
4015 * graphite.c (free_loops_mapping): New.
4016 (stmt_simple_for_scop_p): Fix typo.
4017 (stmt_simple_for_scop_p): Fix tuples functions, that
4019 (free_graphite_bb): Fix some memleaks.
4020 (free_scop): Fix some memleaks.
4021 (scopdet_bb_info): Do not forget some tmp SCoPs.
4022 (find_params_in_bb): Fix some memleaks.
4023 (clast_to_gcc_expression): Fix warning.
4025 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
4027 * testsuite/gcc.dg/graphite/scop-16.c: Fix for 32bit.
4028 * testsuite/gcc.dg/graphite/scop-17.c: Fix for 32bit.
4030 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
4032 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
4033 Move code ifdef-ed HAVE_cloog...
4034 * graphite.c: Include toplev.h.
4036 * Makefile.in (OBJS-common): Always build graphite.o.
4037 (BACKEND): Remove @GRAPHITE@.
4038 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
4039 (graphite.o): Depend on TOPLEV_H.
4041 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
4043 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
4044 Remove typo left from polylib to ppl conversion.
4045 * graphite.c (graphite_transforms): Use sorry instead of fatal.
4047 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
4049 * toplev.c (process_options): Move the graphite loop optimization
4051 * tree-ssa-loop.c (graphite_transforms): ... here.
4052 When not configured with CLooG, print to dump_file that
4053 Graphite transforms were not performed.
4054 * testsuite/gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
4056 * testsuite/gcc.dg/graphite/*.c: Updated all testcases to use
4057 scan-graphite-dump-times.
4059 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
4061 * graphite.c (dot_scop, dot_all_scops): Do not call system.
4062 Do not open /tmp/scop.dot and /tmp/allscops.dot.
4064 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
4065 Jan Sjodin <jan.sjodin@amd.com>
4067 * configure: Regenerated.
4068 * omp-low.c (expand_omp_sections): Remove now unused code.
4069 * config.in (HAVE_polylib): Removed.
4070 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
4071 (PPLLIBS, PPLINC): Added.
4072 * graphite.c: Replace unsigned with int wherever possible.
4073 Don't access Cloog's data structures, but use accessor functions.
4074 Clast's stmt->type is now implemented as a vtable: change the
4075 switches of stmt->type into ifs.
4076 (polylib/polylibgmp.h): Don't include.
4077 (initialize_dependence_polyhedron,
4078 initialize_data_dependence_polyhedron, is_empty_polyhedron,
4079 statement_precedes_p, test_dependence, build_rdg_all_levels,
4080 dump_dependence_graph): Removed until this code is cleaned up
4082 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
4083 (POLYLIBINC): Renamed PPLINC.
4085 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
4086 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4087 Jan Sjodin <jan.sjodin@amd.com>
4089 Finish the merge and tuplification of graphite.
4091 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
4092 Jan Sjodin <jan.sjodin@amd.com>
4094 Partial merge from mainline (138072:138275).
4095 * graphite.c still has to be tuplified.
4097 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
4099 * graphite.c (graphite_loops_mapping_max_loop_num): New.
4100 (create_num_from_index): New.
4101 (get_num_from_index): Also pass in the graphite BB.
4102 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
4103 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
4104 (graphite_trans_bb_strip_mine): Call create_num_from_index.
4105 (is_interchange_valid): Return false when failing.
4106 * graphite.h (struct num_map): New.
4107 (struct graphite_bb): New field num_map.
4108 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
4110 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
4112 * graphite.c (dump_gbb_conditions): Print also conditions like
4113 "if (a)". Remove dublicated code and use print_generic_expr ().
4114 (stmt_simple_for_scop_p): Only allow conditions we can handle
4117 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
4119 * graphite.h (struct scop): Removed new_ivs field.
4120 (SCOP_NEWIVS): Deleted.
4121 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
4122 clast_to_gcc_expression, graphite_create_new_loop):
4123 Removed use of new_ivs.
4125 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
4127 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
4128 create_loops_mapping_num, debug_loop_mapping_1): New.
4129 (debug_loop_mapping): Call debug_loop_mapping_1.
4130 (get_loop_mapping_for_num,
4131 graphite_loops_mapping_add_child,
4132 graphite_loops_mapping_add_child_num,
4133 graphite_loops_mapping_insert_child,
4134 graphite_loops_mapping_parent,
4135 split_loop_mapped_depth_for_num,
4136 loop_mapped_depth_split_loop): New.
4137 (increment_loop_mapped_depths): Removed.
4138 (swap_loop_mapped_depth_for_num): Reimplemented.
4139 (new_scop): Call create_loops_mapping.
4140 (scop_record_loop): Call graphite_loops_mapping_insert_child.
4141 (translate_clast): Pass the old loop father in parameter, and pass
4142 it to get_old_iv_from_ssa_name.
4143 (remove_edges_around_useless_blocks, can_generate_code_stmt,
4144 can_generate_code, can_generate_for_scop): New.
4145 (graphite_trans_bb_block): Returns false when it fails to transform.
4146 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
4148 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
4150 Reverted all the changes related to the streamization and
4152 These changes are now tracked in the streamization branch.
4154 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
4155 Jan Sjodin <jan.sjodin@amd.com>
4157 * graphite.c (gbb_compare): Correctly constify.
4158 (gbb_can_be_ignored): Indent.
4159 (graphite_trans_scop_swap_1and2): Add legality check.
4162 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
4164 Remove fallouts from "Reverted the Condate changes".
4165 * tree.h: Remove unused decl.
4166 * testsuite/gcc.dg/tree-checker: Same.
4167 * timevar.def: Remove counter.
4169 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
4171 * Merge from mainline (135673:138072).
4173 Reverted the MIRO changes (from 2008-04-05) that are now
4174 tracked in the miro branch.
4175 * tree-bounds.c: Removed.
4176 * tree-bounds.h: Removed.
4178 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
4179 are now tracked in the condate branch.
4180 * tree-check.c: Removed.
4181 * tree-match.c: Removed.
4182 * condate.y: Removed.
4184 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4186 * common.opt: New user flag -floop-block, -floop-strip-mine
4187 and -floop-interchange.
4188 * toplev.c (process_options): Enable -fgraphite pass if any one of the
4189 graphite loop optimization flags is turned on.
4190 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
4191 flag_loop_strip_mine and flag_loop_interchange checks before
4193 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
4194 -floop-strip-mine and -floop-interchange.
4195 * testsuite/gcc.dg/graphite/block-0.c: Add -floop-block and remove
4197 * testsuite/gcc.dg/graphite/scop-16.c: Ditto.
4198 * testsuite/gcc.dg/graphite/scop-17.c: Ditto.
4199 * testsuite/gcc.dg/graphite/scop-18.c: Ditto.
4201 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
4202 Sebastian Pop <sebastian.pop@amd.com>
4204 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
4205 (create_empty_loop_on_edge): More fixes.
4206 * tree-phinodes.c (resize_phi_node): Extern.
4207 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
4208 * cfghooks.c (update_dominator_information): New split from
4210 * tree-vectorizer.c (rename_variables_in_bb): Extern.
4211 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
4212 successor of the function entry block.
4214 * graphite.c: Include pointer-set.h.
4215 (debug_loop_mapping, increment_loop_mapped_depths,
4216 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
4217 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
4218 swap_loop_mapped_depth_for_num, get_num_from_index,
4219 swap_loop_mapped_depth, loop_iv_stack_debug,
4220 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
4221 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
4222 get_old_iv_from_ssa_name): New.
4223 (new_scop): Initialize SCOP_LOOPS_MAPPING.
4224 (free_scop): Free SCOP_LOOPS_MAPPING.
4225 (scop_record_loop): Record old ivs.
4226 (create_var_name): Removed.
4227 (initialize_cloog_names): Allocate double space in case strip mine
4228 applies to all loops once.
4229 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
4230 (clast_to_gcc_expression): Same. Implement more clast to gimple
4232 (graphite_create_new_loop): Pass in ivstack.
4233 (remove_all_edges): Pass in the construction_edge.
4234 (graphite_remove_iv): Removed.
4235 (graphite_rename_ivs, graphite_rename_ivs_stmt,
4236 remove_cond_exprs): Rewritten.
4237 (move_phi_nodes): New.
4238 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
4239 (translate_clast): Pass in ivstack. Rewrite some cases.
4240 (set_cloog_options, debug_clast_stmt): New.
4241 (find_transform): Use set_cloog_options.
4242 (outermost_loop_layer): Removed.
4243 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
4244 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
4245 mark_old_loops, remove_dead_loops): New.
4247 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
4248 (const_column_index, get_first_matching_sign_row_index,
4249 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
4250 get_upper_bound): New.
4251 (graphite_trans_bb_strip_mine): Also update the iv map.
4253 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
4254 (struct name_tree): Add a loop field.
4255 (struct scop): Add a graphite_loops_mapping field.
4256 (SCOP_LOOPS_MAPPING): New.
4257 (debug_clast_stmt): Declare.
4258 * lambda.h (find_induction_var_from_exit_cond): Declare.
4259 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
4260 * cfgloop.h (update_dominators_in_loop): Removed declaration.
4261 (create_empty_loop_on_edge): Updated.
4262 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
4263 rename_variables_in_bb): Declare.
4264 * tree-cfg.c (remove_bb): Extern.
4266 * testsuite/gcc.dg/graphite/block-0.c: New.
4268 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4269 Sebastian Pop <sebastian.pop@amd.com>
4271 * graphite.c (strip_mine_profitable_p): New.
4272 (graphite_trans_bb_block): Disable strip mining if not profitable.
4274 * testsuite/gcc.dg/graphite/scop-18.c: New.
4275 * testsuite/gcc.dg/graphite/scop-17.c: Fixed.
4276 * testsuite/gcc.dg/graphite/scop-16.c: Fixed.
4278 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
4279 Jan Sjodin <jan.sjodin@amd.com>
4280 Sebastian Pop <sebastian.pop@amd.com>
4282 * graphite.c (is_interchange_valid): New.
4283 (graphite_trans_bb_block): Check loop nest of basic block for legality
4286 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
4287 outer_most_loop, gbb_outer_most_loop_index): New.
4289 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
4290 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
4291 * testsuite/gcc.dg/graphite/scop-16.c: New.
4292 * testsuite/gcc.dg/graphite/scop-17.c: New.
4294 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
4296 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
4297 (graphite_trans_scop_block): Ignore SCoPs without bbs.
4299 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
4301 * graphite.c (new_scop): Initialize SCOP_EXIT.
4302 (scopdet_info): Add.
4303 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
4304 (build_scops_1): Cleanup, bugfixes.
4305 (build_scops): Cleanup.
4307 * testsuite/gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
4308 * testsuite/gcc.dg/graphite/scop-15.c: Add SCoP numbers.
4310 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
4312 * testsuite/gfortran.dg/graphite/scop-1.f: Update to reduced test case.
4314 * testsuite/gfortran.dg/graphite/graphite.exp: Use
4315 DEFAULT_GRAPHITE_FLAGS.
4317 * testsuite/gcc.dg/graphite/scop-15.c: Update to reduced test case.
4319 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
4321 * graphite.c (scan_tree_for_params): Do not assert any more if
4322 MULT_EXPR parameter is negative.
4324 * testsuite/gfortran.dg/graphite/scop-1.f: New.
4326 * testsuite/gfortran.dg/graphite/graphite.exp: New.
4328 * testsuite/gcc.dg/graphite/scop-15.c: New.
4330 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
4332 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
4334 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
4336 * graphite.c (graphite_trans_bb_swap_loops): Rename from
4337 graphite_swap_loops.
4338 (graphite_trans_bb_move_loop): New.
4339 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
4340 (graphite_trans_bb_block): New.
4341 (graphite_trans_loop_block): New.
4342 (graphite_trans_scop_swap_1and2): Rename from
4343 graphite_trans_swap_1and2.
4344 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
4345 (graphite_trans_scop_block): New.
4346 (graphite_apply_transformations): Rename from
4347 graphite_transformations.
4349 * testsuite/gcc.dg/graphite/scop-matmult.c: New.
4351 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
4353 * graphite.c (gbb_compare): New.
4354 (graphite_sort_gbbs): New.
4355 (gbb_can_be_ignored): New.
4356 (scop_remove_ignoreable_gbbs): New.
4357 (graphite_transformations): Cleanup and add
4358 scop_remove_ignoreable_gbbs.
4359 * lambda.h (lambda_vector_compare): New.
4361 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
4363 * graphite.c (print_graphite_bb): Correct printing of static schedule.
4364 (graphite_swap_loops): int -> unsigned
4365 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
4366 (graphite_transformations): New.
4367 (graphite_transform_loops): Move to graphite_transformations.
4368 * graphite.h (gbb_nb_loops): Return unsigned.
4370 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
4372 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
4373 the domain matrix. This makes scop-0.c work again.
4375 2008-06-20 Richard Guenther <rguenther@suse.de>
4377 * graphite.h: Adjust copyright to GPLv3.
4378 * graphite.c: Likewise.
4379 (stmt_simple_memref_for_scop_p): Split out from ...
4380 (stmt_simple_for_scop_p): ... here. Fix handling of calls
4382 (get_bb_type): Optimize.
4384 (is_bb_addable): Fix memleak, replace is_pred call with
4386 (build_scops): Use current_loops.
4387 (param_index): Fix memleak.
4389 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4391 * graphite.c: Fix formatting.
4393 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4395 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
4396 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
4397 (create_var_name, save_var_name): Newly defined functions.
4398 (initialize_cloog_names): Part of the code factored out to
4400 (clast_to_gcc_expression): Now handles the case of clast_red_sum
4401 in clast_reduction statement.
4402 (graphite_create_new_loop): Now takes a new parameter
4404 (translate_clast): Now also takes the context_loop and bb_exit
4405 parameters. Rewritten the code so that it creates a gimple code
4406 inside the given context.
4407 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
4408 remove_cond_expr, disconnect_cond_expr,
4409 disconnect_virtual_phi_nodes): Newly defined functions.
4410 * graphite.h (struct scop): added old_ivs vector.
4411 SCOP_OLDIVS: New macro.
4413 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
4415 * cfgloopmanip.c: Add missing function comments, fix formatting.
4417 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4419 * cfgloopmanip.c (update_dominators_in_loop): Defined.
4420 (create_empty_loop_on_edge): Defined.
4421 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
4423 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
4424 (update_dominators_in_loop): Declared as extern
4425 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
4427 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
4429 * graphite.c (print_graphite_bb): Allow changing number of loops
4431 (initialize_cloog_names): Allow changing number of loops.
4432 (build_cloog_prog): Simplify.
4433 (find_transform): Enable cloog option --strides.
4434 (graphite_swap_loops): New.
4435 (graphite_strip_mine_loop): New.
4436 (graphite_trans_swap_1and2): New.
4437 (graphite_trans_strip): New.
4438 (graphite_transform_loops): Add graphite_trans_strip.
4439 * graphite.h (scop_max_loop_depth): New.
4441 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
4443 * graphite.c (build_scop_iteration_domain): Remove forgotten
4444 line. (Fixes compile)
4446 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
4448 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
4449 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
4450 (build_bb_loops): New.
4451 (graphite_transform_loops): Add build_bb_loops.
4452 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
4454 * graphite.h (graphite_bb): Add loops.
4455 (gbb_nb_loops): New.
4456 (gbb_loop_at_index): New.
4457 (gbb_loop_index): New.
4458 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
4459 using nb_params_in_scop.
4461 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
4463 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
4464 (build_scop_canonical_schedules): Build minimized schedule.
4465 (schedule_to_scattering): Adapt to minimized schedule.
4466 * graphite.h (graphite_bb): Add/Update descriptions.
4468 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
4469 Tobias Grosser <grosser@fim.uni-passau.de>
4471 * graphite.c (print_graphite_bb): Add condition printing.
4473 (dump_gbb_conditions): New.
4474 (build_scop_conditions_1): New.
4475 (build_scop_conditions): New.
4476 * graphite.h (graphite_bb): Add conditions.
4478 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
4480 * graphite.c (print_graphite_bb):
4481 (free_graphite_bb): New.
4482 (free_scop): Free bbs.
4483 (get_bb_type): Free doms.
4484 (build_scop_context): Free context matrix.
4485 (build_loop_iteration_domains): Remove unused code.
4486 (build_cloog_prog): Free scattering function and blocklist.
4487 (find_transform): Free options.
4489 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
4491 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
4492 Remove unnecessery cloog data structures. Make a copy of the domain
4493 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
4494 unnecessary cloog data structures. Fix memory leaks. Remove insert
4495 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
4497 (build_scop_iteration_domain): Remove unnecessary cloog
4498 data structures. Fix memory leaks.
4499 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
4500 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
4502 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4504 * graphite.c (find_scop_params): Remove initialize_cloog_names.
4506 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4508 * graphite.c (end_scop): Style fix.
4509 (schedule_to_scattering): Style and comment fix.
4511 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4512 * graphite.c (print_graphite_bb): Fix definiton of
4513 schedule_to_scattering.
4514 (initialize_cloog_names): Change nb_scattdims to max loop
4516 (schedule_to_scattering): Take parameter for number of scattering
4518 (build_cloog_prog): Only build as much scattering dimensions as
4521 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4523 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
4524 in polyhedron/aermod.f90.
4526 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
4527 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
4528 Harsha Jagasia <harsha.jagasia@amd.com>
4530 * graphite.c (is_bb_addable): Fix segfault.
4532 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
4534 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
4535 with multiple exits and conditional handling in edge cases.
4536 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
4538 * testsuite/gcc.dg/graphite/scop-14.c: New.
4540 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
4541 Adrien Eliche <aeliche@isty.uvsq.fr>
4543 * graphite.c (is_bb_addable): Add more comments and enhance
4544 readablity of the source code. Fix memory leak.
4545 (is_loop_exit): Fix memory leak.
4547 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
4549 * graphite.c (first_loop_in_scop): Deleted.
4550 (setup_cloog_loop): Only walk the loop chain for inner loops.
4551 (build_scop_iteration_domain): Execute setup_cloog_loop for
4552 all loops in the first layer.
4554 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
4556 * graphite.c (scan_tree_for_params): Change the way params are
4557 added to be indepenent of the number of loops.
4558 (setup_cloog_loop): Revert to short matrix format. Fix parameter
4560 (build_cloog_prog): Revert to short matrix format.
4562 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
4563 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
4565 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
4568 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
4570 * graphite.c (nb_data_refs_in_scop): New.
4571 (graphite_transform_loops): Print more stats: number of
4572 loops, basic blocks and data references per scop.
4574 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4575 Jan Sjodin <jan.sjodin@amd.com>
4577 * graphite.c (loop_affine_expr, idx_record_params,
4578 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
4579 instead of instantiate_parameters.
4581 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4583 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
4584 add support for parameters, add STATIC_SCHEDULE at the right places,
4587 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4589 * graphite.c (build_scop_loop_nests): Only add the loops, that
4590 are contained completely in the SCoP.
4591 (build_cloog_prog): Disable scattering, until schedule_to_scattering
4592 and the domains are fixed.
4593 (build_scop_canonical_schedules): Add support for bbs not contained
4596 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4598 * graphite.h (scop_contains_loop): Update comments to match
4599 the actual behavior.
4600 (scop_contains_loop): New.
4601 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
4603 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4605 * graphite.c (get_bb_type): On function body, i.e. loop_0,
4606 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
4609 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4610 Tobias Grosser <grosser@fim.uni-passau.de>
4612 * graphite.c (graphite_transform_loops): Early return when
4613 there are no loops in the function.
4615 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4616 Jan Sjodin <jan.sjodin@amd.com>
4618 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
4619 offset of the last loop.
4620 (setup_cloog_loop): Copy the entire outer constraint matrix.
4622 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4623 Jan Sjodin <jan.sjodin@amd.com>
4625 * graphite.c (stmt_in_scop_p, function_parameter_p,
4626 invariant_in_scop_p): Removed.
4627 (scan_tree_for_params): Can be used with no constraint
4628 matrix for gathering parameters.
4629 (idx_record_params): Don't use idx_record_param, instead use
4630 scan_tree_for_params.
4631 (find_scop_parameters): Same.
4632 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
4633 Fix the size of loop domains.
4634 (schedule_to_scattering): Exit when the outer loop is not in scop.
4635 (find_transform): Enable build_cloog_prog.
4637 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4638 Jan Sjodin <jan.sjodin@amd.com>
4640 * graphite.c (schedule_to_scattering): Make scattering domains
4641 uniformly of the same size, as required by CLooG 0.14.0 and before.
4643 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4644 Jan Sjodin <jan.sjodin@amd.com>
4646 * graphite.c (schedule_to_scattering): Rewrite, correct the
4647 translation of the scheduling function to scattering.
4648 (build_cloog_prog): Call schedule_to_scattering only once.
4649 * graphite.h (scop_loop_index): Do not fail for loops not
4650 in the scop: return -1.
4652 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
4654 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
4655 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
4656 (setup_cloog_loop): Export GBB_DOMAIN.
4657 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
4658 able to rebuild the original control flow.
4659 * graphite.h (graphite_bb): Add domain field and access macro.
4662 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
4664 * graphite.c (debug_gbb): New.
4665 (print_scop, build_graphite_bb): Use SCOP_BBS.
4666 (build_scop_bbs): Reimplemented.
4667 (dfs_bb_in_scop_p): Removed.
4668 (build_scop_loop_nests): Reorder loops inserted in
4669 SCOP_LOOP_NEST: outer loops should come first.
4670 (build_scop_canonical_schedules): Reinitialize at zero
4671 the components of the SCOP_STATIC_SCHEDULE for the loops
4672 that have already been parsed.
4674 * graphite.h (debug_gbb): Declared.
4676 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
4677 Jan Sjodin <jan.sjodin@amd.com>
4679 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
4680 (graphite_loop_to_gcc_loop): Removed.
4681 (remove_all_edges): New.
4682 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
4683 (gloog): Remove useless code.
4685 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
4687 * graphite.c (get_bb_type): Reworked. We distinguish between
4688 loops with one or multiple exits.
4689 (is_loop_exit): New.
4691 (is_bb_addable): Rework condition handling, now support for case
4692 case statements and loops with multiple exits.
4694 * testsuite/gcc.dg/graphite/scop-11.c: New.
4695 * testsuite/gcc.dg/graphite/scop-12.c: New.
4696 * testsuite/gcc.dg/graphite/scop-13.c: New.
4698 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
4700 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
4701 we have too many colors.
4703 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
4705 * doc/invoke.texi (-ftree-loop-fusion): Document.
4706 * tree-pass.h (pass_loop_fusion): Declared.
4707 * tree-loop-fusion.c: New.
4708 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
4709 * tree-data-ref.c (find_data_references_in_loop): Make extern.
4710 * tree-data-ref.h (find_data_references_in_loop): Declared.
4711 * common.opt (ftree-loop-fusion): Declared.
4712 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
4714 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
4716 * graphite.c (build_access_matrix): Fix typo from the merge.
4718 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
4720 * Merge from mainline (130800:135673).
4722 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4724 * graphite.c (end_scop): The exit of the scop is not part of the scop.
4725 Update dominators after splitting.
4727 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4729 * graphite.c (is_bb_addable): Return the harmful statement.
4730 Factor up some code.
4731 (end_scop): New. Splits end of scope bbs on a harmful statement.
4732 (build_scops_1): Call end_scop.
4734 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4736 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
4737 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
4738 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
4739 build_scops_1): Removed.
4740 (build_scops_2): Renamed build_scops_1.
4742 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
4744 * graphite.c: Fix formatting.
4746 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4748 * graphite.c (get_bb_type): New.
4750 (build_scops_2): New.
4751 (is_bb_addable): New.
4752 (build_scops): Switch the scop detection.
4753 (build_scop_bbs): Add entry bb to scop.
4754 * graphite.h (struct scop): Update comment.
4756 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4758 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
4761 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4763 * testsuite/gcc.dg/graphite/scop-1.c: Update.
4764 * testsuite/gcc.dg/graphite/scop-2.c: Update.
4765 * testsuite/gcc.dg/graphite/scop-4.c: Update.
4766 * testsuite/gcc.dg/graphite/scop-5.c: Add.
4767 * testsuite/gcc.dg/graphite/scop-6.c: Add.
4769 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
4771 * testsuite/gcc.dg/graphite/scop-0.c: Add.
4772 * testsuite/gcc.dg/graphite/scop-7.c: Add.
4773 * testsuite/gcc.dg/graphite/scop-8.c: Add.
4774 * testsuite/gcc.dg/graphite/scop-9.c: Add.
4775 * testsuite/gcc.dg/graphite/scop-10.c: Add.
4777 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4779 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
4780 Check affine expressions depending on the outermost loop
4782 (stmt_simple_for_scop_p): Same.
4783 (harmfule_stmt_in_scop): Same.
4785 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
4787 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
4788 mark entry and exit, that are not part of the SCoP and update HTML
4791 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
4793 * graphite.c (basic_block_simple_for_scop_p): Renamed
4795 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
4796 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
4797 (all_preds_visited_p, all_succs_visited_p,
4798 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
4799 scop_end_loop): New.
4800 (build_scops): Do not use dfs_enumerate_from.
4802 * testsuite/gcc.dg/graphite/scop-{1,2,4}.c: Updated.
4804 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
4806 * graphite.c: Add comments to functions that are missing a
4808 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
4810 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
4812 * graphite.c (nb_params_in_scop): Moved...
4813 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
4814 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
4815 (clast_to_gcc_expression): Reduce column size to less than 80.
4816 (graphite_create_iv): Return the new name of the IV.
4817 (find_transform): Set options->esp and options->cpp.
4818 (gloog): Comment out the invalidation of the old loop code.
4819 (initialize_dependence_polyhedron): Replace scop_nb_params with
4822 * graphite.h (nb_params_in_scop): ... here.
4823 (scop_nb_params): Removed.
4824 (loop_domain_dim): Return something even when the loop was not
4825 found in the hash table: avoid ICEing on all the graphite.exp
4828 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4830 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
4832 * graphite.c (build_scop_dynamic_schedules): Schedule is built
4833 according to nesting level.
4834 (find_scop_parameters): Call instantiate_parameters.
4835 (scan_tree_for_params): Extend it to handle general affine bounds.
4836 Inner loop bound can depend on outer loop induction variable.
4837 (setup_cloog_loop): tmp variable is allocated on stack. Call
4838 instantiate_parameters with respect to outermost_loop_in_scop.
4839 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
4841 (create_empty_loop): Function loopify should be given edge
4842 probability, instead of edge frequency. Dominance relation from
4843 switch_bb to loop_header.
4844 (clast_to_gcc_expression): Added handling of clast_reduction node.
4845 (gloog): New functionality for removing old loop.
4846 (test_dependence): Factored out from build_rdg_all_levels.
4847 (build_rdg_all_levels): Dependence testing factored out to
4848 test_dependence function.
4850 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
4851 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
4854 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
4856 * graphite.c (free_scop, param_index, initialize_cloog_names,
4857 nb_params_in_scop): Use name_tree map instead of just a tree
4858 for keeping track of the variable name associated to that tree.
4859 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
4860 clast_to_gcc_expression, graphite_create_iv,
4861 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
4862 graphite_stmt_to_gcc_stmt): New.
4863 (gloog): Call these.
4864 * graphite.h (struct name_tree): New.
4865 (struct scop): Use name_tree instead of tree for params.
4866 Store a vector of name_tree for new_ivs.
4868 (scop_nb_params): Use name_tree instead of tree.
4870 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
4871 Sebastian Pop <sebastian.pop@amd.com>
4873 * tree-bounds.c: New.
4874 * tree-bounds.h: New.
4875 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
4876 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
4877 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
4881 * c-cppbuiltin.c: Same.
4885 * tree-outof-ssa.c: Same.
4887 * Makefile.in: Same.
4889 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
4890 Sebastian Pop <sebastian.pop@amd.com>
4892 * tree-loop-distribution.c (remaining_stmts,
4893 upstream_mem_writes): Removed static variables.
4894 (copy_loop_before, create_bb_after_loop,
4895 mark_nodes_having_upstream_mem_writes, free_rdg_components,
4896 rdg_build_components, rdg_build_partitions,
4897 dump_rdg_partitions): Extern.
4898 (generate_loops_for_partition, generate_code_for_partition): Do not
4900 (already_processed_vertex_p, predecessor_has_mem_write,
4901 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
4902 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
4903 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
4904 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
4905 Pass remaining_stmts and upstream_mem_writes as parameters.
4906 (rdg_component): Moved...
4907 (build_rdg_partition_for_component): Do not aggregate components when
4908 flag_streamize_loops is set.
4909 (gen_sequential_loops): New.
4910 (ldist_gen): Call gen_sequential_loops.
4912 * tree-pass.h (pass_loop_streamization): Declared.
4914 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
4915 basic blocks when loops structures exist.
4917 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
4919 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
4921 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
4922 eliminate_local_variables_stmt, eliminate_local_variables,
4923 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
4924 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
4925 of code delimited by two edges in the CFG.
4926 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
4927 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
4928 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
4929 the case of parallelisation of reductions.
4930 (create_loop_fn): Extern.
4931 (create_omp_parallel_region): New.
4933 * tree-data-ref.c (dump_data_dependence_relation): Don't call
4934 dump_data_reference for printing dra and drb.
4935 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
4937 (build_rdg): Don't call free_dependence_relations for the moment, as
4938 we attach dependence relations on each edge of the RDG.
4941 * tree-data-ref.h (rdg_component): ...here.
4942 (struct rdg_edge): New field ddr_p relation.
4943 (RDGE_RELATION): New.
4944 (create_bb_after_loop, copy_loop_before,
4945 mark_nodes_having_upstream_mem_writes, rdg_build_components,
4946 rdg_build_partitions, dump_rdg_partitions,
4947 free_rdg_components): Declared.
4949 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
4950 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
4952 * tree-loop-streamization.c: New.
4954 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
4955 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
4957 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
4959 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
4961 * passes.c: Schedule pass_loop_streamization.
4963 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
4965 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
4968 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
4970 * graphite.c (dot_all_scops): Update formatting.
4971 Bbs can now be part of more than one SCoP.
4973 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
4975 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
4977 (loop_domain_dim): Check for unregistered toplev SCOP loop.
4978 * graphite.h (loop_to_cloog_loop): New.
4980 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4982 * graphite.c (loop_domain_dim, ref_nb_loops,
4983 loop_iteration_vector_dim): New.
4984 (build_access_matrix_with_af, build_access_matrix,
4985 initialize_dependence_polyhedron): Fixed for new matrix layout.
4986 No longer assume that all iteration domains are of the same
4989 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
4991 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
4992 defined in a loop at depth 0 is invariant.
4993 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
4994 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
4995 be called at loop depth 0.
4997 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
4999 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
5000 (down_open_scop): Removed.
5001 (loop_in_scop_p): Redefined.
5002 (scop_affine_expr): New argument: scop.
5003 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
5004 a harmful statement ending a scop.
5005 (basic_block_simple_for_scop_p): New argument: scop.
5006 (get_loop_start): Removed.
5007 (new_scop): Initialize SCOP_LOOPS.
5008 (free_scop): Free SCOP_LOOPS.
5009 (succs_at_same_depth, preds_at_same_depth): New.
5010 (end_scop): Test the validity of a scop.
5011 (add_dominators_to_open_scops): New.
5012 (test_for_scop_bound): Call add_dominators_to_open_scops.
5013 Add cases for opening and closing multiple scops.
5014 (build_scops, build_scop_bbs): Iterate over basic blocks in
5016 (build_graphite_bb): Pass scop directly.
5017 (dfs_bb_in_scop_p): New.
5018 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
5020 (nb_loops_around_gb): Use loop_in_scop_p.
5021 (schedule_to_scattering): Disabled for the moment the code computing
5022 the "textual order for outer loop".
5024 * graphite.h (struct scop): New field loops.
5026 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
5028 * testsuite/gcc.dg/graphite/scop-{1,...,7}.c: Updated.
5030 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
5031 Sebastian Pop <sebastian.pop@amd.com>
5033 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
5034 * common.opt (fstreamize-loops): New.
5035 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
5036 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
5037 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
5038 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
5040 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5042 * tree-data-ref.c (build_empty_rdg): New.
5043 (build_rdg): Use it.
5044 * tree-data-ref.h (build_empty_rdg): Declared.
5045 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
5046 (find_vertex_for_stmt): Removed.
5047 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
5049 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
5051 * tree-loop-distribution.c (generate_builtin): After cancelling the
5052 loop tree, also delete basic blocks.
5053 (rdg_flag_uses): Stop recursion when a vertex has already been
5056 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5058 * graphite.c (build_scop_alpha): Removed.
5059 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
5060 and dump_dependence_graph to avoid compiler warnings.
5062 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5064 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
5065 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
5066 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
5067 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
5068 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
5069 (initialize_dependence_polyhedron, find_vertex_for_stmt,
5070 initialize_data_dependence_polyhedron, is_empty_polyhedron,
5071 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
5072 dump_dependence_graph): New.
5073 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
5075 (struct scop): New field loop2cloog_loop.
5076 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
5077 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
5079 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5081 * graphite.c (build_graphite_bb): Fix initialization
5082 of the graphite basic block.
5084 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
5086 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
5087 loop domain matrix. Pass in the number of loops contained in the
5089 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
5090 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
5091 loops that are not surrounding the current loop are not represented
5092 in the domain constraint matrix.
5093 (build_scop_iteration_domain): Initial domain constraint matrix
5094 contains only the eq/ineq, cst, and scop parameters columns.
5096 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
5098 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
5099 (print_graphite_bb): Print scattering.
5101 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
5103 * graphite.c (initialize_cloog_names): Initialize names of
5104 scattering variables.
5106 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
5108 * graphite.c (dot_all_scops_1): Disable debug output while
5111 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
5113 * graphite.c (find_transform): Change cloog output language to C.
5115 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
5117 * tree-loop-distribution.c (generate_memset_zero,
5118 generate_builtin, generate_code_for_partition,
5119 rdg_flag_all_uses): New.
5120 (rdg_flag_uses): Gather in the same partition the statements defining
5121 the VUSES of the current statement.
5122 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
5123 Gather in the same partition not only the stores to the same memory
5124 access, but also the reads.
5125 (ldist_generate_loops): Renamed ldist_gen.
5127 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
5128 Tobias Grosser <grosser@fmi.uni-passau.de>
5130 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
5131 next pointer, don't use the inner pointer.
5133 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
5135 * graphite.c (dot_all_scops, dot_all_scops_1): New.
5136 (find_transform): Call dot_all_1.
5137 * graphite.h (dot_all_scops): Declared.
5139 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
5141 * tree-loop-distribution.c: Fix apsi.f ICE.
5142 (create_bb_after_loop): New.
5143 (generate_loops_for_partition): Use it.
5144 * testsuite/gfortran.dg/ldist-1.f90: New.
5146 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
5147 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
5149 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
5151 * graphite.c (find_transform): Dump cloog program sent to cloog.
5153 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
5155 * graphite.c (initialize_cloog_names): Initialize cloog
5158 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
5160 * graphite.c (build_scop_context): Fix typo, for the matrix
5161 format: insert '0 >= 0' instead of '-1 >= 0'.
5163 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
5165 * Fix merge problems.
5167 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
5169 * graphite.c (setup_cloog_loop): Fix typo.
5171 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
5173 * doc/invoke.texi (-ftree-loop-distribution): Documented.
5174 * tree-loop-distribution.c: Reimplemented.
5175 * tree-pass.h (pass_loop_distribution): New.
5176 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
5178 * graphds.h (struct graph): New field indexes.
5179 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
5181 * tree-vect-analyze.c: Remove declaration of static functions when not
5183 * tree-vectorizer.c: Same.
5184 (rename_variables_in_loop): Now extern.
5185 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
5186 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
5187 calling redirect_edge_and_branch_force.
5189 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
5191 * tree-data-ref.c: Don't include tree-chrec.h.
5192 (debug_data_dependence_relations): New.
5193 (dump_data_dependence_relation): Call dump_data_reference on data refs
5195 (same_access_functions): Moved...
5196 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
5197 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
5198 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
5199 struct rdg_vertex_info, ): New.
5200 (create_rdg_edge_for_ddr): Compute the dependence level before looking
5202 (create_rdg_vertices): Initialize the htab of graph->indexes.
5203 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
5204 (stmts_from_loop): Don't save LABEL_EXPR.
5205 (hash_stmt_vertex_info, eq_stmt_vertex_info,
5206 hash_stmt_vertex_del): New.
5207 (build_rdg): Initialize rdg->indexes.
5208 (free_rdg, stores_from_loop, ref_base_address,
5209 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
5210 have_similar_memory_accesses_1, ref_base_address_1,
5211 remove_similar_memory_refs): New.
5213 * tree-data-ref.h: Include tree-chrec.h.
5214 (debug_data_dependence_relations): Declared.
5215 (same_access_functions): ...here. Now static inline.
5216 (ddr_is_anti_dependent, ddrs_have_anti_deps,
5217 ddr_dependence_level): New.
5218 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
5219 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
5220 RDG_MEM_READS_STMT): New.
5221 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
5222 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
5223 rdg_vertex_for_stmt): Declared.
5224 (struct rdg_edge): New field level.
5225 (RDGE_LEVEL, free_rdg): New.
5226 (stores_from_loop, remove_similar_memory_refs,
5227 rdg_defs_used_in_other_loops_p,
5228 have_similar_memory_accesses): Declared.
5229 (rdg_has_similar_memory_accesses): New.
5231 * lambda.h (dependence_level): New.
5232 * common.opt (ftree-loop-distribution): New.
5233 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
5234 (print_loop_ir): Renamed print_loops.
5235 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
5236 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
5237 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
5238 (tree-loop-distribution.o): Added.
5239 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
5240 (mark_virtual_ops_in_bb): New.
5241 (print_loops_bb, debug_loop_num, debug_loop): New.
5242 * passes.c: Scheduled pass_loop_distribution.
5244 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5246 * graphite.c (scan_tree_for_params): Correct the number of columns
5248 (nb_flat_iterator): New.
5249 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
5250 (build_scop_iteration_domain): Correct the number of columns for
5253 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
5255 * Merge from mainline (129697:130800).
5257 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
5259 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
5260 dominated by SCoP's exit.
5261 (graphite_transform_loops): Compute post dominators.
5263 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
5265 * Merge from mainline (127169:129697).
5267 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
5269 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
5270 parameter for the basic block that contains the expression. Use
5271 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
5272 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
5274 * graphite.h (gbb_loop): New.
5275 (GBB_LOOP): Removed.
5277 2007-08-03 Sebastian Pop <sebpop@gmail.com>
5279 * Makefile.in: Fix merge problem.
5281 2007-08-03 Sebastian Pop <sebpop@gmail.com>
5283 * Merge from mainline (125309:127169).
5284 * tree-loop-distribution.c: Disabled.
5286 2007-06-05 Sebastian Pop <sebpop@gmail.com>
5288 * Merge from mainline (r123693:125309).
5290 2007-05-30 Sebastian Pop <sebpop@gmail.com>
5292 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
5294 (correct_modify_p, check_statements, number_of_lvalue_uses,
5295 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
5296 instead of MODIFY_EXPR.
5297 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
5300 2007-05-24 Sebastian Pop <sebpop@gmail.com>
5302 * tree-loop-distribution.c (struct rdg): Replace arrays by
5303 VECs for edges and vertices.
5304 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
5305 (RDGV_NB_PARTITIONS): New.
5306 (PRDG_NBV, PRDG_NBE): Removed.
5307 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
5308 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
5309 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
5311 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
5312 Sebastian Pop <sebpop@gmail.com>
5314 * doc/invoke.texi (-ftree-loop-distribution): Document.
5315 * tree-loop-distribution.c: New file.
5316 * tree-pass.h (pass_loop_distribution): Declared.
5317 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
5318 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
5320 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
5321 (DDR_REVERSED_P): New.
5322 * common.opt (-ftree-loop-distribution): New.
5323 * tree-flow.h (distribute_loops): Declared.
5324 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
5325 * passes.c (init_optimization_passes): Schedule loop distribution.
5327 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
5329 * graphite.c (print_graphite_bb): Don't call dump_data_references.
5330 (print_scop): Don't print when scop is NULL.
5331 (build_scop_context, find_transform): Don't output to stderr.
5333 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
5335 * tree-data-ref.c: Don't include graphite.h.
5336 Comment out the code for printing data reference's scop.
5337 (build_access_matrix_with_af): Moved...
5338 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
5339 * graphite.c (build_access_matrix_with_af): ... here. Now static.
5340 (print_graphite_bb): Print basic block's schedule.
5341 (print_scop): Don't print the schedule, call cloog's pretty printer.
5342 (bb_in_scop_p): A basic block is in a scop only if it is both
5343 dominated and postdominated by the scop's entry and exit basic blocks.
5344 (function_parameter_p): New.
5345 (invariant_in_scop_p): Use function_parameter_p.
5346 (new_scop, save_scop): New.
5347 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
5349 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
5350 (loop_in_scop_p): New.
5351 (scop_record_loop): Use loop_in_scop_p.
5352 (build_scop_domain): Renamed build_scop_iteration_domain.
5353 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
5354 nb_params_in_scop, build_scop_context, first_loop_in_scop,
5355 setup_cloog_loop, dot_scop_1, dot_scop): New.
5356 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
5357 (struct scop): Add a pointer to cloog's representation of a program.
5359 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
5361 * doc/invoke.texi (-ftree-check-verbose): Renamed
5362 -ftree-checks-verbose.
5363 * common.opt (flag_tree_check_verbose): Renamed
5364 flag_tree_checks_verbose.
5365 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
5367 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
5369 * configure: Regenerated.
5370 * config.in: Regenerated.
5371 * tree-ssa-loop.c (graphite_transforms): Execute
5372 graphite_transform_loops only when HAVE_cloog.
5373 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
5374 * graphite.c: Include polylibgmp.h and cloog.h.
5375 (graphite_transform_loops): Removed loops parameter.
5376 * tree-flow.h (graphite_transform_loops): Update declaration.
5377 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
5378 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
5379 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
5380 (OBJS-common): Remove dependence on graphite.o.
5381 (BACKEND): Depend on @GRAPHITE@.
5383 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
5385 * doc/invoke.texi (-ftree-check-verbose): Documented.
5386 * testsuite/gcc.dg/tree-checker/tree-checks-1.c: New.
5387 * testsuite/gcc.dg/tree-checker/tree-checks-2.c: New.
5388 * testsuite/gcc.dg/tree-checker/tree-checks-3.c: New.
5389 * testsuite/gcc.dg/tree-checker/tree-checks-4.c: New.
5390 * testsuite/gcc.dg/tree-checker/tree-checks.exp: New.
5391 * testsuite/gcc.dg/tree-checker/condates.crp: New.
5392 * common.opt (ftree-checks-verbose): New.
5393 * tree-check.c (tree_check_warning): Move extra stderr output
5394 under control of flag_tree_check_verbose.
5396 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
5398 * tree-match.c: Fix comments formatting.
5399 * tree-match.h: Fix comments formatting.
5400 * tree-check.c: Fix comments formatting.
5401 (tree_check_init): Restructure.
5403 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
5405 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
5407 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
5409 * Merge from mainline (r120733:123693).
5411 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
5413 * condate.y: New file.
5414 * tree-match.h (struct patt_info_s): New field sign.
5415 (struct condate_s): New field msg.
5416 (normalize_condate, name_condate, add_condate): New.
5417 (conds[], condate_parse): Made extern.
5418 * tree-check.c (tree_check_warning): First arg changed to cond;
5419 warning reformatted.
5420 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
5422 (tree_check): Process trivial condates.
5423 (read_delimited_string): Removed.
5424 (print_cond): Print name and msg.
5425 (conds[]): Made extern.
5426 (parse_tree_check_file_once): Rewritten to use the parser in
5428 Processing of option --tree_check_string moved to tree_scan().
5429 * Makefile.in: Added condate.y
5431 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
5433 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
5434 Use VECs instead of varrays.
5435 * diagnostic.h (lazy_dump_generic_node): Update declaration.
5436 * Makefile.in (pretty-print.o): Depend on vec.h.
5437 * pretty-print.c: Include tree.h and vec.h.
5438 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
5439 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
5440 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
5441 pp_free_list): Use VECs instead of varrays.
5442 * pretty-print.h: Do not include varray.h.
5443 (struct tree_chunk_s): Declaration moved before its use.
5444 (output_buffer): Rename varray field to chunks.
5445 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
5446 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
5447 save_global_holes): Use VECs instead of varrays.
5448 * tree-match.h: Declare VECs of cfg_node, and hole_p.
5449 * tree-check.c (scan_cfg_stmts, push_node,
5450 print_matching_stmt): Removed.
5451 (tree_check_instance, push_global_holes_if_new, tree_check,
5452 execute_tree_check): Use VECs instead of varrays.
5453 (gate_tree_check): Don't execute the CFG check when basic_block_info
5456 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5458 * Merge from mainline (r115016:120733).
5460 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5462 * Merge from mainline (r117632:117661).
5464 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5466 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
5467 * tree-pass.h (TDF_DEBUG, debug_p): New.
5468 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
5469 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
5470 get_loop_exit_condition, analyze_evolution_in_loop,
5471 analyze_initial_condition, analyze_scalar_evolution,
5472 instantiate_parameters, number_of_latch_executions): Use debug_p.
5473 * tree-chrec.c (chrec_apply): Use debug_p.
5474 * tree-data-ref.c: Include graphite.h.
5475 (dump_data_reference): Print also the access matrix.
5476 (analyze_array, analyze_indirect_ref, init_data_ref,
5477 analyze_offset_expr, address_analysis, object_analysis,
5478 create_data_ref, finalize_ddr_dependent,
5479 non_affine_dependence_relation, analyze_ziv_subscript,
5480 analyze_siv_subscript_cst_affine,
5481 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
5482 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
5483 analyze_miv_subscript, analyze_overlapping_iterations,
5484 build_classic_dist_vector, subscript_dependence_tester,
5485 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
5486 (build_access_matrix_with_af): No longer static.
5487 * tree-data-ref.h (scop_p): ... declaration here.
5488 (data_reference.scop): New field.
5489 (DR_SCOP, DR_ACCESS_MATRIX): New.
5490 (build_access_matrix_with_af, dr_num_subscripts): Declared.
5491 * graphite.c (print_graphite_bb): Call dump_data_references.
5492 (print_scop): Use scop_nb_loops and scop_dim_domain.
5493 (test_for_scop_bound): Use debug_p.
5494 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
5496 (scop_loop_index): Moved...
5497 (scop_record_loop): New.
5498 (build_scop_loop_nests): Use scop_record_loop.
5499 (build_scop_domain): Use scop_dim_domain.
5500 (build_access_matrix): Implemented.
5501 (build_scop_canonical_schedules): Use scop_nb_loops.
5502 (build_graphite_bb): Initialize GBB_SCOP.
5503 * graphite.h (scop_p): Moved...
5504 (graphite_bb.scop): New field.
5505 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
5506 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
5507 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
5508 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
5509 scop_loop_index): New.
5510 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
5512 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
5514 * Merge from mainline (r117661:120450).
5516 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
5518 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
5519 at the first declaration outside the varying loop, instantiate as
5521 * tree-chrec.c (for_each_scev_op): New.
5522 * tree-chrec.h (for_each_scev_op): Declared.
5523 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
5524 * tree-data-ref.c (get_references_in_stmt,
5525 find_data_references_in_stmt): New, from trunk.
5526 (find_data_references_in_loop): Use get_references_in_stmt
5527 and find_data_references_in_loop, modified as in trunk.
5528 (build_access_matrix_with_af): New.
5529 * tree-data-ref.h (data_reference): Add a field access_matrix.
5530 (data_ref_loc): New, as in trunk.
5531 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
5532 invariant_in_scop_p, param_index, scan_tree_for_params,
5533 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
5534 idx_record_param, idx_record_params, build_access_matrix,
5535 build_scop_data_accesses, build_scop_canonical_schedules,
5536 build_graphite_bb, build_scop_bbs, find_params_in_bb,
5537 build_scop_params): New.
5538 * graphite.h (graphite_bb): New.
5539 (scop): Add fields static_schedule, params, loop_nest,
5541 * lambda.h: Declare vecs of lambda_matrix.
5542 * tree-flow.h (print_loop_ir_bb): Declared.
5543 * tree-cfg.c (print_loop_ir_bb): New.
5544 (print_loop): Use print_loop_ir_bb.
5546 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
5548 * Merge from mainline (r115016:117632).
5550 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
5552 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
5553 break due to a warning.
5555 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
5557 * graphite.c (print_scops, debug_scops): New.
5558 (graphite_transform): Renamed graphite_find_transform.
5559 * graphite.h (debug_scops): Declared.
5561 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
5563 * tree-match.c: Reformat following the GNU style.
5564 * tree-match.h: Reformat following the GNU style.
5565 * tree-pattern.h: Removed empty file.
5566 * Makefile.in: Remove references to tree-pattern.h.
5567 * tree-check.c: Reformat following the GNU style.
5568 (execute_tree_check): Move gate condition code to...
5569 (gate_tree_check): ...here. New function.
5570 (pass_check): Use the gate function.
5572 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
5574 * tree-pattern.h: New. Tree pattern matching and checking using
5576 * tree-check.c: New. Tree/CFG checking pass.
5577 * tree-match.c: New. Library for tree pattern matching.
5578 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
5579 * toplev.c, flags.h: Add globals for tree-check pass.
5580 * Makefile.in: Integrate the files in tree-check pass.
5581 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
5582 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
5583 Introduce a "lazy" pretty-print mode.
5584 * tree.c, tree.h: Add tree_name.
5586 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
5588 * doc/invoke.texi (-fgraphite): Correct typo.
5589 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
5590 use of print_loop_ir.
5591 * testsuite/gcc.dg/graphite/scop-1.c: New.
5592 * testsuite/gcc.dg/graphite/scop-2.c: New.
5593 * testsuite/gcc.dg/graphite/graphite.exp: New.
5594 * graphite.c: Include domwalk.h.
5595 (print_scop): Print only the entry and exit blocks.
5596 (debug_scop): No longer static.
5597 (affine_expr): Fix formating. Return also true when the expression is
5599 (stmt_simple_for_scop_p): Fix formating.
5600 (build_scops): Use domwalk.
5601 (get_loop_start, end_scop, test_for_scop_bound): New.
5602 (graphite_transform_loops): Avoid printing on stderr.
5603 * graphite.h (debug_scop): Declared.
5604 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
5605 * Makefile.in (graphite.o): Depend on domwalk.h.
5606 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
5607 declarations for static functions.
5608 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
5609 controlling output verbosity.
5611 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
5612 Plesco Alexandru <shurikx@gmail.com>
5614 * doc/invoke.texi (-fgraphite): Document.
5615 * tree-pass.h (pass_graphite_transforms): Declared.
5616 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
5617 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
5618 (pass_graphite_transforms): Defined.
5619 * tree-data-ref.c (free_data_ref, data_reference): Extern.
5620 * tree-data-ref.h (free_data_ref, data_reference): Declared.
5621 * graphite.c, graphite.h: New.
5622 * common.opt (fgraphite): Declared.
5623 * tree-flow.h (graphite_transform_loops): Declared.
5624 * Makefile.in (OBJS-common): Add graphite.o.
5625 (graphite.o): New rule.
5626 * passes.c (pass_graphite_transforms): Scheduled.