1 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
5 (instantiate_scev_r): Move code in instantiate_scev_2
6 and instantiate_scev_1.
8 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
10 * tree-scalar-evolution.c (instantiate_scev_3): New.
11 (instantiate_scev_1): Move code in instantiate_scev_3.
13 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
15 * tree-scalar-evolution.c (instantiate_scev_poly): New.
16 (instantiate_scev_1): Move code in instantiate_scev_poly.
18 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
20 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
21 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
23 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
25 * tree-scalar-evolution.c (instantiate_scev_convert): New.
26 (instantiate_scev_1): Move code in instantiate_scev_convert.
28 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
30 * tree-scalar-evolution.c (instantiate_scev_binary): New.
31 (instantiate_scev_1): Move code in instantiate_scev_binary.
33 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
35 * tree-scalar-evolution.c (instantiate_scev_name): New.
36 (instantiate_scev_1): Move code in instantiate_scev_name.
38 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
40 * Merge from mainline (150992:151171).
42 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
44 * graphite-dependences.c (graphite_legal_transform_bb): Call
45 pbb_remove_duplicate_pdrs.
46 * graphite-poly.c (can_collapse_pdr): Removed.
47 (pdr_find_duplicate): Removed.
48 (can_collapse_pdrs): New.
49 (pbb_remove_duplicate_pdrs): New.
50 (new_poly_dr): Do not look for duplicates.
51 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
52 (PBB_PDR_DUPLICATES_REMOVED): New.
53 (pbb_remove_duplicate_pdrs): Declared.
55 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
57 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
58 the strides by multiplying by PDR_NB_REFS.
59 * graphite-poly.c (can_collapse_pdr): New.
60 (pdr_find_duplicate): New.
61 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
62 Initialize PDR_NB_REFS.
63 * graphite-poly.h (struct poly_dr): Add field nb_refs.
65 (new_poly_dr): Number of subscripts is a graphite_dim_t.
67 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
69 Revert one of the previous commits:
70 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
71 the computation of symmetric data dependence relations.
72 (dependency_between_pbbs_p): Same.
74 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
77 * graphite-poly.c (apply_poly_transforms): Remove legality test before
80 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
82 * graphite-dependences.c (pddr_original_scattering): Return NULL
83 for read-read dependence relations.
84 * graphite-poly.h (enum poly_dr_type): Fix comment.
87 (pdr_may_write_p): New.
89 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
91 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
92 (struct poly_dr): Same.
94 * graphite-poly.c (new_poly_dr): Same.
96 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
97 Sebastian Pop <sebastian.pop@amd.com>
99 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
100 pbb_strip_mine_time_depth. Changed the implementation so that
101 transformation is expressed as a transformation on
102 time (scatttering) dimensions. Also, ensures that the 2d+1
103 scheduling format is preserved.
104 (pbb_strip_mine_profitable_p): Profitability is based on the
105 iteration number of a given time (scattering) dimension,
106 and not on a original loop depth dimension.
107 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
108 (pbb_do_strip_mine): Call psct_dynamic_dim.
109 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
110 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
111 (pbb_nb_dynamic_scattering_transform): New.
112 (psct_dynamic_dim): New.
114 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
116 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
117 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
118 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
119 * graphite-interchange.c (build_linearized_memory_access): Same.
120 (memory_stride_in_loop): Same.
122 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
124 * graphite-dependences.c (pddr_original_scattering): New.
125 (graphite_legal_transform_dr): Call pddr_original_scattering.
128 * graphite-dependences.h (dot_deps): Declared.
129 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
130 (print_pdr): Print PDR_ID.
131 * graphite-poly.h (struct poly_dr): Add field id.
134 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
136 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
138 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
139 not delete the original dependence relation.
141 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
143 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
144 the computation of symmetric data dependence relations.
145 (dependency_between_pbbs_p): Same.
147 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
149 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
150 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
151 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
152 (free_poly_ddr): New.
153 (pddr_is_empty): New.
154 (dependence_polyhedron_1): Now returns a poly_ddr_p.
155 (dependence_polyhedron): Same. Remove useless gcc_assert.
157 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
158 (graphite_carried_dependence_level_k): Call pddr_is_empty.
159 * graphite-dependences.h (enum poly_dependence_kind): New.
160 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
161 (PDRP_SOURCE): Renamed PDDR_SOURCE.
162 (PDRP_SINK): Renamed PDDR_SINK.
163 (PDRP_DDP): Renamed PDDR_DDP.
165 (free_poly_ddr): Declared.
166 * graphite-poly.c (new_scop): Use the new hash function names.
167 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
169 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
171 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
173 * Merge from mainline (150764:150992).
175 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
177 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
178 bounds with LT_EXPR to make niter analysis more precise on code
179 generated by Graphite.
181 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
183 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
184 (graphite_legal_transform_bb): Same.
185 (poly_drs_may_alias_p): Same.
187 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
190 * graphite-ppl.c (ppl_max_for_le): Correct the use of
191 ppl_Pointset_Powerset_C_Polyhedron_maximize.
193 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
195 * graphite-poly.c (print_pbb): Print PBB index.
197 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
199 * Merge from mainline (r150672:150764).
201 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
203 * graphite-interchange.c (ppl_max_for_le): Moved...
204 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
205 * graphite-ppl.c (ppl_max_for_le): ... here.
206 * graphite-ppl.h (ppl_max_for_le): Declared.
208 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
210 * Merge from mainline (r150372:150672).
212 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
215 * sese.c (convert_for_phi_arg): New.
216 (add_guard_exit_phis): Use convert_for_phi_arg.
218 * testsuite/gfortran.dg/graphite/id-17.f: New.
220 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
222 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
223 unknown subscript upper bounds.
225 * testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL.
227 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
228 Pranav Garg <pranav.garg2107@gmail.com>
230 * graphite-interchange.c (gather_access_strides): Removed.
231 (ppl_max_for_le): New.
232 (build_linearized_memory_access): New.
233 (memory_stride_in_loop): New.
234 (pbb_interchange_profitable_p): Reimplemented.
235 * graphite-ppl.h (ppl_new_id_map): New.
236 (ppl_interchange): New.
238 * testsuite/gcc.dg/graphite/interchange-6.c: XFAILed.
240 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
242 * graphite-interchange.c (compute_subscript): Removed.
243 (compute_array_size_cstr): Removed.
244 (compute_array_size_poly): Removed.
245 (compute_array_size): Removed.
246 (gather_access_strides_poly): Removed.
247 (gather_access_strides): Empty.
249 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
251 * graphite-dependences.c (dependence_polyhedron_1): Replace
252 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
253 (graphite_legal_transform_dr): Same.
254 (graphite_carried_dependence_level_k): Same.
255 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
256 Initialize PDR_NB_SUBSCRIPTS.
257 (print_pdr_access_layout): Replace pdr_nb_subscripts with
259 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
260 (PDR_NB_SUBSCRIPTS): New.
261 (pdr_nb_subscripts): Removed.
262 (pdr_dim): Simplified.
263 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
264 with PDR_NB_SUBSCRIPTS.
266 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
268 * graphite-interchange.c (compute_array_size): Remove use of
270 * graphite-poly.c (new_poly_dr): Remove argument data_container.
271 Do not initialize PDR_DATA_CONTAINER.
272 (print_pdr): Do not print PDR_DATA_CONTAINER.
273 * graphite-poly.h (struct poly_dr): Remove data_container field.
274 (PDR_DATA_CONTAINER): Removed.
275 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
277 (build_poly_dr): Same.
279 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
281 * testsuite/gcc.dg/graphite/interchange-9.c: New.
283 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
284 Sebastian Pop <sebastian.pop@amd.com>
286 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
287 copy of the dependence polyhedron. Free the temporary objects.
288 (graphite_carried_dependence_level_k): Free unused objects before
291 * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
292 * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
293 * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
294 * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
295 * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
297 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
299 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
300 Early return without analyzing the data dependences if no
301 transform has been done. Call restore_scattering if the transform
303 (graphite-interchange.c): Same.
304 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
305 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
306 (apply_poly_transforms): Do not gcc_assert that
307 the transform is legal.
308 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
309 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
310 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
311 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
312 * graphite-poly.h (struct poly_scattering): New.
313 (struct poly_bb): Add original, transformed, and saved fields.
314 Remove transformed_scattering, original_scattering, nb_local_variables,
315 and nb_scattering_transform fields.
316 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
317 (poly_scattering_new): New.
318 (poly_scattering_free): New.
319 (poly_scattering_copy): New.
320 (store_scattering_pbb): New.
321 (store_scattering): New.
322 (restore_scattering_pbb): New.
323 (restore_scattering): New.
324 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
325 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
327 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
329 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
332 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
334 * Makefile.in (graphite.o): Depends on PREDICT_H.
335 * graphite.c: Include predict.h.
336 (graphite_finalize): Call tree_estimate_probability.
337 * predict.c (predict_loops): Do not call scev_initialize and
339 (tree_estimate_probability_bb): New.
340 (tree_estimate_probability): Do not initialize loops: move that
341 code to the driver. Call tree_estimate_probability_bb.
342 (tree_estimate_probability_driver): New.
343 (pass_profile): Use tree_estimate_probability_driver.
344 * predict.h (tree_estimate_probability): Declared.
346 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
348 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
349 * graphite-dependences.c (graphite_legal_transform): Add time to
350 TV_GRAPHITE_DATA_DEPS.
351 (dependency_between_pbbs_p): Same.
352 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
354 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
356 * Merge from mainline (r149952:150372).
358 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
360 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
361 * graphite-blocking.c: Same.
362 * graphite-clast-to-gimple.c: Same.
363 * graphite-dependences.c: Same.
364 * graphite-poly.c: Same.
365 * graphite-poly.h: Same.
366 * graphite-ppl.c: Same.
367 * graphite-scop-detection.c: Same.
368 * graphite-sese-to-poly.c: Same.
371 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
373 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
374 (remove_simple_copy_phi): New.
375 (remove_invariant_phi): New.
376 (simple_copy_phi_p): New.
377 (reduction_phi_p): New.
378 (gsi_for_ssa_name_def): New.
379 (insert_out_of_ssa_copy): New.
380 (insert_out_of_ssa_copy_on_edge): New.
381 (create_zero_dim_array): New.
382 (scalar_close_phi_node_p): New.
383 (rewrite_close_phi_out_of_ssa): New.
384 (rewrite_phi_out_of_ssa): New.
385 (rewrite_reductions_out_of_ssa): New.
386 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
388 * testsuite/gcc.dg/graphite/id-11.c: New.
389 * testsuite/gcc.dg/graphite/id-15.c: New.
390 * testsuite/gcc.dg/graphite/interchange-1.c: Un-XFAIL.
391 * testsuite/gcc.dg/graphite/interchange-2.c: Un-XFAIL.
392 * testsuite/gcc.dg/graphite/interchange-3.c: Un-XFAIL.
393 * testsuite/gcc.dg/graphite/interchange-4.c: Un-XFAIL.
394 * testsuite/gcc.dg/graphite/interchange-7.c: Un-XFAIL.
395 * testsuite/gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
396 * testsuite/gfortran.dg/graphite/id-13.f: New.
397 * testsuite/gfortran.dg/graphite/id-5.f: New.
399 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
401 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
402 check that nb_reductions_in_loop is zero.
403 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
405 (nb_reductions_in_loop): Removed.
406 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
407 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
408 (bb_contains_non_iv_scalar_phi_nodes): Removed.
409 (scop_contains_non_iv_scalar_phi_nodes): Removed.
410 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
412 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
414 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
415 statements that have an empty iteration domain.
416 * testsuite/gfortran.dg/graphite/id-16.f: New.
418 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
420 * tree-scalar-evolution.c (instantiate_scev_1): Return
421 chrec_dont_know when the result is not above instantiate_below.
422 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
423 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
424 the tree has a known scalar evolution.
425 * testsuite/gfortran.dg/graphite/id-14.f: New.
426 * testsuite/gfortran.dg/graphite/id-15.f: New.
428 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
430 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
432 (rename_variables): Keep inserting renames after the ones already
435 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
437 * graphite-sese-to-poly.c (compare_bb_depths): New.
438 (graphite_sort_dominated_info): New.
439 (build_scop_bbs_1): Call graphite_sort_dominated_info.
440 (build_scop_scattering): Fix comment.
442 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
444 * graphite.c (graphite_finalize): Call print_loops instead of
445 dump_function_to_file.
446 * testsuite/gcc.dg/graphite/graphite.exp: Fix formatting.
447 * testsuite/gcc.dg/graphite/pr35356-1.c: New. Look for the number of
448 loops generated in the graphite output file.
449 * testsuite/gcc.dg/graphite/pr35356-2.c: New.
450 * testsuite/gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
451 * testsuite/gfortran.dg/graphite/id-12.f: New.
453 2009-07-24 Li Feng <nemokingdom@gmail.com>
455 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
458 2009-07-24 Li Feng <nemokingdom@gmail.com>
459 Tobias Grosser <grosser@fim.uni-passau.de>
461 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
462 alias set number build alias in ACCESSES polyhedron.
463 (build_alias_set_for_drs): New.
464 (build_pbb_drs): Added build_alias_set_for_drs.
465 * graphite-dependences.c (poly_drs_may_alias_p): New.
466 (graphite_carried_dependence_level_k): Check alias information
467 before building polyhedron.
469 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
471 * Makefile.in (lambda-code.o): Fix formatting.
473 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
475 * Merge from mainline (r149350-149952)
477 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
479 * graphite-poly.c (apply_poly_transforms): Move strip_mine
480 before interchange to prepare for loop blocking.
482 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
484 * graphite-poly.c (apply_poly_transforms): Add checks after every
486 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
487 done in apply_poly_transforms.
489 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
491 * graphite-dependences.c (build_lexicographically_gt_constraint):
492 Replace RES parameter with *RES.
493 (dependence_polyhedron_1): Pass an address of the parameter RES
494 instead of value of RES.
496 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
498 * graphite.c (graphite_finalize): Fix comment.
499 (graphite_transform_loops): Reset scev info after code generation
502 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
504 * graphite.c (graphite_finalize): Call scev_reset.
506 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
508 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
509 GBB_CLOOG_IV_TYPES hash table twice.
510 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
511 (add_condition_to_domain): Clear GMP values.
513 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
515 * graphite-dependences.c: Fix formatting.
516 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
517 (pbb_number_of_iterations): Free ppl_Linear_Expression.
518 * graphite-sese-to-poly.c: Fix formatting.
519 * graphite.c (graphite_transform_loops): Create the hash table
520 after the early return.
522 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
524 * testsuite/gcc.dg/graphite/id-14.c: New.
525 * testsuite/gcc.dg/graphite/pr40157.c: New.
526 * testsuite/gfortran.dg/graphite/id-11.f: New.
528 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
530 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
531 (build_poly_scop): Return false when there are no pbbs within
532 loops to avoid to pass to cloog scops with no loops.
534 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
536 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
537 useless test "i % 2".
538 (build_pbb_scattering_polyhedrons): Fix formatting.
539 (build_poly_dr): Same.
540 * graphite.c (graphite_transform_loops): Restructure.
542 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
544 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
545 reduction_list parameter.
546 (rewrite_all_phi_nodes_with_iv): Same.
547 (canonicalize_loop_ivs): Same.
548 * tree-parloops.c (struct brli): Removed.
549 (build_reduction_list_info): Removed.
550 (build_new_reduction): New.
551 (analyze_reduction_list): Removed.
552 (gather_scalar_reductions): Find reductions instead of phi
553 nodes that can't be canonicalized.
554 (try_create_reduction_list): Remove reduction_list parameter.
555 (gen_parallel_loop): Same.
556 (parallelize_loops): Remove analyze_reductions variable,
557 initialization and free.
558 Change reduction_list htab initialization to reduction_info
559 elements instead of ssa names.
560 Call try_create_reduction_list and gen_parallel_loop without
561 analyzed_reduction argument.
562 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
563 canonicalize_loop_ivs with one less argument.
564 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
566 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
568 * graphite-dependences.c (new_poly_dr_pair): New.
569 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
570 (new_poly_dr_pair): New.
571 (eq_poly_dr_pair_p): New.
572 (hash_poly_dr_pair_p): New.
573 * graphite-dependences.h (struct poly_dr_pair): New.
574 (eq_poly_dr_pair_p): Declared.
575 (hash_poly_dr_pair_p): Declared.
576 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
577 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
578 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
579 * Makefile.in (graphite-poly.o): Add dependence on
580 graphite-dependences.h.
582 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
584 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
585 polynomials of degree > 1 pass to Graphite.
586 * tree-chrec.c (scev_is_linear_expression): Call
587 evolution_function_is_affine_multivariate_p.
588 * testsuite/gfortran.dg/graphite/id-10.f90: New.
590 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
592 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
593 Instantiate scevs varying in outer loops.
594 * testsuite/gfortran.dg/graphite/id-9.f: Correct testcase.
596 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
598 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
599 redundant constraint.
601 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
603 * testsuite/gcc.dg/graphite/graphite.exp: Fix comments.
604 * testsuite/gfortran.dg/graphite/graphite.exp: Trigger actions
605 based on the file names as in the C testsuite.
606 * testsuite/gfortran.dg/graphite/block-1.f90: Fix patterns.
607 * testsuite/gfortran.dg/graphite/block-2.f: Same.
608 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
609 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
610 * testsuite/gfortran.dg/graphite/id-1.f90: Same.
611 * testsuite/gfortran.dg/graphite/id-2.f90: Same.
612 * testsuite/gfortran.dg/graphite/id-3.f90: Same.
613 * testsuite/gfortran.dg/graphite/id-4.f90: Same.
614 * testsuite/gfortran.dg/graphite/id-6.f: Same.
615 * testsuite/gfortran.dg/graphite/id-9.f: Same.
616 * testsuite/gfortran.dg/graphite/interchange-1.f: Same.
617 * testsuite/gfortran.dg/graphite/interchange-2.f: Same.
618 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
620 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
622 * sese.c (expand_scalar_variables_call): New.
623 (expand_scalar_variables_ssa_name): Handle calls in expander.
625 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
627 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
628 Expect to see the pattern twice.
629 * testsuite/gcc.dg/graphite/interchange-0.c: Un-XFAIL.
630 * testsuite/gcc.dg/graphite/interchange-5.c: Same.
631 * testsuite/gcc.dg/graphite/interchange-6.c: Same.
633 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
635 * testsuite/gcc.dg/graphite/id-10.c: New.
636 * testsuite/gcc.dg/graphite/id-12.c: New.
637 * testsuite/gfortran.dg/graphite/id-7.f: New.
638 * testsuite/gfortran.dg/graphite/id-8.f: New.
640 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
642 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
645 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
647 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
649 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
651 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
653 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
655 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
656 building PDR subscripts.
658 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
660 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
661 computation of array sizes.
663 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
665 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
667 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
669 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
670 build_pairwise_constraint, dr_equality_constraints,
671 build_pairwise_scheduling_equality,
672 build_pairwise_scheduling_inequality, lexicographically_gt_p,
673 build_lexicographically_gt_constraint, dependence_polyhedron,
674 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
675 Move from NNC_Polyhedron to C_Polyhedron.
676 * graphite-interchange.c (compute_array_size_poly,
677 gather_access_strides): Dito.
678 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
679 free_scop, pbb_number_of_iterations): Dito.
680 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
681 pbb_dim_iter_domain, struct scop): Dito.
682 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
683 new_Cloog_Domain_from_ppl_Polyhedron,
684 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
685 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
686 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
687 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
688 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
689 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
690 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
691 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
692 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
693 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
694 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
695 build_scop_iteration_domain, build_poly_dr): Dito
697 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
699 * testsuite/gcc.dg/graphite/graphite.exp: Added a rule to execute
701 * testsuite/gcc.dg/graphite/run-id-1.c: New.
703 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
705 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
706 positivity constraint on the symbolic number of iterations.
708 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
710 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
712 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
713 Tobias Grosser <grosser@fim.uni-passau.de>
715 * graphite-clast-to-gimple.c (build_scop_context): Removed.
716 (build_cloog_prog): Directly use SCOP_CONTEXT.
717 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
718 (free_scop): Free SCOP_CONTEXT.
719 (print_scop_context): New.
720 (print_scop): Call print_scop_context.
721 (debug_scop_context): New.
722 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
723 (struct scop): Added field context.
725 * graphite-sese-to-poly.c (add_param_constraints): New.
726 (build_scop_context): New.
727 (build_poly_scop): Call build_scop_context.
729 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
731 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
732 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
733 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
734 * graphite-ppl.h: Include double-int.h and tree.h.
735 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
736 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
737 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
738 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
740 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
742 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
743 POINTER_PLUS_EXPR for pointer types.
744 (clast_to_gcc_expression): Same.
746 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
748 * graphite-poly.c (print_scattering_function): Early return when
749 PBB_TRANSFORMED_SCATTERING is not initialized.
750 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
752 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
754 * tree-parloops.c (analyze_reduction_list): Remove unused variable
757 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
759 * tree-parloops.c (analyze_reduction_list): Change return
761 (try_create_reduction_list): Move the call to
762 analyze_reduction_list to the beginining.
763 Call reduction_phi with analyzed_reductions as argument
764 instead of reduction_list.
766 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
768 * Merge from mainline (r148296:149346)
770 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
772 * graphite-scop-detection.c (graphite_can_represent_init): New.
773 (graphite_can_represent_scev): Call graphite_can_represent_init:
774 check that the initial value does not contain multiplications of
776 (stmt_has_simple_data_refs_p): New.
777 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
778 (is_simple_operand): Fix formatting.
779 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
781 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
783 * testsuite/gcc.dg/graphite/id-13.c: New.
784 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
785 analyze_scalar_evolution, use scalar_evolution_in_region.
786 (scan_tree_for_params_right_scev): Add extra assert.
787 (parameter_index_in_region_1): Split from parameter_index_in_region.
788 (idx_record_params): Use scalar_evolution_in_region.
789 (find_params_in_bb): Same.
790 (find_scop_parameters): Same.
791 (build_loop_iteration_domains): Same.
792 (create_linear_expr_from_tree): Same.
793 * sese.c (scalar_evolution_in_region): New.
794 * sese.h (scalar_evolution_in_region): Declared.
795 (defined_in_sese_p): New.
796 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
798 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
801 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
803 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
804 TREE_DATA_REF_H also implies SCEV_H.
806 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
808 * graphite-poly.c (print_scop_params): New.
809 (print_scop): Call print_scop_params.
810 (debug_scop_params): New.
811 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
813 2009-07-07 Li Feng <nemokingdom@gmail.com>
815 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
816 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
817 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
818 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
819 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
820 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
822 2009-07-07 Li Feng <nemokingdom@gmail.com>
824 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
825 for dependency checking part.
826 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
827 tests for dependency checking.
828 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
829 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
830 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
831 flag -fdump-tree-graphite-all for autopar testsuites.
833 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
835 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
836 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
837 canonicalize_loop_ivs): Moved...
838 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
840 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
842 * tree-parloops.c (try_create_reduction_list): Pass an extra
843 argument analyzed_reductions. Call analyze_reduction_list.
844 (gen_parallel_loop): Do not call analyze_reduction_list.
845 (parallelize_loops): Init and finalize analyzed_reductions.
847 2009-07-06 Li Feng <nemokingdom@gmail.com>
849 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
850 Added flag -fno-loop-strip-mine for autopar testcase.
852 2009-07-04 Li Feng <nemokingdom@gmail.com>
854 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
855 transformed scattering dimension instead of unmatch orignal when
856 calling dependence_polyhedron.
858 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
860 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
862 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
864 * graphite-poly.c (pbb_number_of_iterations): Check for returned
865 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
867 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
869 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
870 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
871 * graphite-poly.c (pbb_number_of_iterations): New.
872 * graphite-poly.h (pbb_number_of_iterations): Declared.
873 (pbb_iterator_dim, pbb_parameter_dim): New.
875 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
877 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
878 last commit on type of lower and upper bound of loops.
880 2009-06-29 Li Feng <nemokingdom@gmail.com>
882 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
883 graphite-dependences.h.
884 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
885 (mark_bb_with_pbb): New.
886 (get_stmtfor_depth): New.
887 (find_pbb_via_hash): New.
888 (dependency_in_loop_p): New.
889 (mark_loops_parallel): New.
890 (free_aux_in_new_loops): New.
891 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
892 bb with it's relevant pbb. Mark newly created loops. Remove mark
893 innermost loop parallel without checking.
894 (gloog): Add parameter BB_PBB_MAPPING.
895 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
896 (gloog): Change declaration.
897 (mark_loop_parallel): Make extern.
898 (free_aux_in_new_loops): Declare.
899 (bb_pbb_map_hash): New.
900 (eq_bb_pbb_map): New.
901 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
902 auto parallelization when flag_graphite_force_parallel is set.
903 (graphite_finalize): Added free_aux_in_new_loops.
904 * tree-parloops.c (parallelize_loops): Only generate parallel code for
905 the innermost loop that marked parallel. Use
906 flag_graphite_force_parallel instead of loop->can_be_parallel.
907 (loop_parallel_p): Move inner most checking out of function.
909 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
911 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
912 type of lower and upper bound of loops signed long int.
914 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
916 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
917 expression outside the loop.
919 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
921 * gcc.dg/graphite/interchange-8.c: New.
923 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
925 * gcc.dg/graphite/interchange-0.c: XFailed.
926 * gcc.dg/graphite/interchange-5.c: XFailed.
927 * gcc.dg/graphite/interchange-6.c: XFailed.
929 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
931 * graphite-interchange.c (compute_array_size_poly): The end of the
932 recursion should return 1.
934 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
936 * graphite-interchange.c (compute_array_size_cstr): Allow the
937 subscript multiplier to be -1.
938 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
939 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
940 data_container. Initializes PDR_DATA_CONTAINER.
941 (print_pdr_access_layout): New.
942 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
943 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
945 (PDR_DATA_CONTAINER): New.
946 (new_poly_dr): Update declaration.
947 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
948 (build_poly_dr): Call pdr_add_data_dimensions.
950 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
952 * graphite-poly.h (struct poly_dr): Fix comment.
953 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
954 (pdr_add_memory_accesses): New.
955 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
957 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
959 * graphite-poly.c (print_pdrs, debug_pdrs): New.
960 (print_pbb): Add call to print_pdrs.
961 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
963 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
964 Li Feng <nemokingdom@gmail.com>
966 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
967 (dependency_between_pbbs_p): New.
968 (lexicographically_gt_p): Assure !empty_p before polyhedron
970 (build_lexicographically_gt_constraint): Correct lexicographically
972 * graphite-dependences.h: New.
973 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
975 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
977 * graphite-clast-to-gimple.c (print_clast_stmt): New.
978 (gloog): Print to dump_file the generated clast.
979 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
980 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
982 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
984 * graphite-poly.c (extend_scattering): Increment
985 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
987 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
989 * graphite-interchange.c (compute_array_size_poly): Added exit of
990 recursion condition. Continue iterating even after the first equality.
991 (compute_array_size): Same.
993 2009-06-24 Li Feng <nemokingdom@gmail.com>
995 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
996 -fdump-tree-final_cleanup to -fdump-tree-optimized.
997 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
998 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
999 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
1001 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1003 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
1004 only when the use verifies is_gimple_reg.
1006 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1008 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
1009 Allocate scaldims after call to unify_scattering_dimensions.
1011 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1013 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
1015 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1016 Albert Cohen <albert.cohen@inria.fr>
1018 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
1019 variables for the strip mining.
1021 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1022 Pranav Garg <pranav.garg2107@gmail.com>
1024 * Makefile.in (OBJS-common): Added graphite-blocking.o.
1025 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
1026 (graphite-blocking.o): New rule.
1027 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
1028 * graphite-blocking.c: New.
1029 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
1030 flag_loop_strip_mine.
1031 (psct_scattering_dim_for_loop_depth): New.
1032 * graphite-poly.h (scop_do_strip_mine): Declared.
1033 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
1034 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
1035 flag_loop_strip_mine.
1037 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1039 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
1040 a GMP value and a PPL coefficient at each iteration of a loop.
1042 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1044 * graphite-dependences.c (dependence_polyhedron): Do not use
1045 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
1046 pbb_nb_scattering_transform.
1047 (graphite_legal_transform_dr): Same.
1048 * graphite-poly.c (extend_scattering): Same.
1049 (unify_scattering_dimensions): Same.
1050 (print_scattering_function): Same.
1051 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
1052 PBB_NB_LOCAL_VARIABLES.
1053 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
1054 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
1055 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
1056 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
1057 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
1058 (pbb_nb_scattering_transform): New.
1059 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
1060 (psco_scattering_dim): Add assert on parameters.
1061 (psct_scattering_dim): Same.
1062 (psct_scattering_dim_for_loop_depth): Declared.
1063 (psct_local_var_dim): New.
1064 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
1065 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
1066 correct layout, call pbb_nb_local_vars.
1067 (psct_add_local_variable, psct_add_scattering_dimension): New.
1068 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1069 Initialize PBB_NB_SCATTERING_TRANSFORM.
1071 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1073 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
1074 (set_coef): Renamed ppl_set_coef.
1075 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
1077 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
1079 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
1080 test a boolean against 1.
1081 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
1082 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
1083 (pbb_do_interchange): Returns true when a transform has been performed.
1084 (scop_do_interchange): Same.
1085 * graphite-poly.c (apply_poly_transforms): Use the return value of
1086 scop_do_interchange.
1087 * graphite-poly.h (scop_do_interchange): Update declaration.
1089 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
1091 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
1093 * sese.c (sese_reset_aux_in_loops): New.
1094 * sese.h (sese_reset_aux_in_loops): New.
1096 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
1098 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
1099 multiplier and multiply the constant by the multiplier.
1100 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
1101 (build_poly_dr): Do not use the multiplier to define the subscript.
1103 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
1105 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
1106 compiler's data reference. Initialize PDR_CDR.
1107 (print_pdr): Call dump_data_reference.
1108 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
1109 Add compiler_dr field.
1110 (PDR_BB): Renamed PDR_PBB.
1112 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
1113 GCC's data reference representation.
1114 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
1115 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
1117 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
1119 * graphite-poly.c (print_scattering_function): Also print the layout.
1120 * graphite-poly.h (pbb_nb_local_vars): New.
1122 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
1124 * graphite-poly.c (print_pbb_domain): Also print the layout names.
1126 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
1128 * graphite-poly.c (print_pdr, debug_pdr): New.
1129 * graphite-poly.h (print_pdr, debug_pdr): Declared.
1130 (PDR_BASE): Removed.
1132 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
1134 * gcc/testsuite/gcc.dg/graphite/interchange-{1..7}.c: New avatars of
1137 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
1139 * graphite-interchange.c (compute_subscript): Allow also -1 in the
1140 subscript identification column.
1141 (pbb_do_interchange): Print to dump_file that some loops "will be
1142 interchanged". Rely on that chain of characters in the testcases.
1143 * gcc.dg/graphite/interchange-0.c: New.
1144 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
1145 interchange-*.c files and compile them with -floop-interchange.
1147 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
1149 * graphite-interchange.c (interchange_profitable_p): Renamed
1150 pbb_interchange_profitable_p.
1152 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
1153 Harsha Jagasia <harsha.jagasia@amd.com>
1154 Pranav Garg <pranav.garg2107@gmail.com>
1156 * graphite-interchange.c (interchange_profitable_p): Make static.
1157 (pbb_interchange_loop_depths, pbb_do_interchange,
1158 scop_do_interchange): New.
1159 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
1160 for flag_loop_interchange.
1161 * graphite-poly.h (scop_do_interchange): Declared.
1162 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
1163 flag_loop_interchange is used.
1165 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
1167 * graphite-dependences.c (dependence_polyhedron): Update use of
1168 pbb_nb_scattering_dims.
1169 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
1170 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
1171 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
1172 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
1174 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
1176 * graphite.c: Cleanup foo.
1178 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
1180 * Merge from mainline (r143684:148293).
1181 * Disabled libpcp until it gets fixed.
1183 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
1184 Harsha Jagasia <harsha.jagasia@amd.com>
1186 * graphite-interchange.c: New.
1187 * Makefile.in (graphite-interchange.o): New.
1188 * graphite-poly.h (interchange_profitable_p): Declared.
1189 * graphite-ppl.h (value_max): New.
1191 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
1193 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
1194 * graphite-poly.h: Fix some comments.
1198 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
1201 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
1202 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
1203 (pdr_accessp_nb_params): Renamed pdr_nb_params.
1204 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
1205 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
1206 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
1207 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
1208 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
1209 * graphite-clast-to-gimple.c: Same.
1210 * graphite-dependences.c: Same.
1211 * graphite-poly.c: Same.
1212 * graphite-sese-to-poly.c: Same.
1214 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
1216 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
1217 expressions for an IV rename, as returned by clast_to_gcc_expression.
1218 (copy_renames): Rename new_name to expr.
1219 * sese.c (debug_rename_elt): Same.
1222 (sese_adjust_liveout_phis): Call force_gimple_operand before using
1223 the information from the rename map.
1224 (rename_variables_in_stmt): Same.
1225 (add_loop_exit_phis): Rename new_name to expr.
1226 (insert_loop_close_phis): Same.
1227 (add_guard_exit_phis): Same. Call force_gimple_operand.
1228 * sese.h (struct rename_map_elt): Rename new_name to expr.
1229 (new_rename_map_elt): Same.
1231 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
1233 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
1234 * sese.c (set_rename): Make it extern.
1235 * sese.h (set_rename): Declared.
1237 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
1239 * graphite-poly.c (extend_scattering): Free values.
1240 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
1242 (ppl_print_powerset_matrix): Same.
1243 * graphite-scop-detection.c (free_scops_1): New.
1244 (limit_scops): Call free_scops_1.
1245 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
1246 (build_poly_dr): Free PPL coefficients.
1247 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
1249 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
1251 * graphite-dependences.c: New.
1252 * graphite-data-ref.c: Removed.
1253 * graphite-data-ref.h: Removed.
1254 * Makefile.in (graphite-data-ref.o): Removed.
1255 (graphite-dependences.o): Added.
1256 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
1257 * graphite-poly.c: Same.
1258 Move the data dependence testing to graphite-dependences.c.
1260 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
1262 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
1263 from graphite_cannot_represent_loop. Code refactored.
1264 (scopdet_basic_block_info): Call graphite_can_represent_loop.
1266 2009-05-17 Li Feng <nemokingdom@gmail.com>
1268 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
1269 Cover all the testcases (not only the filtered ones).
1271 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
1273 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
1274 unnecessary check. Update comments. Move check for REAL_TYPE here.
1275 (harmful_stmt_in_bb): Remove checks for conditions. This is already
1276 done in (stmt_simple_for_scop_p).
1278 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
1280 * graphite.c (print_global_statistics): New.
1281 (print_graphite_scop_statistic): New.
1282 (print_graphite_statistics): New.
1283 (graphite_initialize, graphite_transform_loops): Print statistics.
1284 * graphite-scop-detection (build_scops): Print statistics.
1285 (print_graphite_scop_statistics): New.
1286 (print_graphite_statistics): New.
1288 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1290 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
1291 (debug_clast_name_index): Removed.
1292 (debug_clast_name_indexes_1): Removed.
1293 (debug_clast_name_indexes): Removed.
1294 (clast_name_index_elt_info): Removed.
1295 (eq_clast_name_indexes): Removed.
1296 (clast_name_to_index): Removed.
1297 (new_clast_name_index): Removed.
1298 (save_clast_name_index): Removed.
1299 (save_var_name): Moved...
1300 (init_sese_params_index): Removed.
1301 (clast_name_to_gcc): Remove use of name_tree.
1302 (initialize_cloog_names): Same.
1303 (gloog): Do not call init_sese_params_index.
1304 * graphite-sese-to-poly.c (save_var_name): ...here.
1305 (parameter_index_in_region): New.
1306 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
1307 (parameter_index_in_region): Removed.
1308 (is_parameter): Remove use of name_tree.
1309 * sese.h (struct name_tree): Removed.
1310 (struct sese): Remove use of name_tree. New field params_names.
1311 (SESE_PARAMS_NAMES): New.
1312 (SESE_PARAMS): Remove duplicate.
1313 (parameter_index_in_region): Removed.
1314 (sese_nb_params): Remove use of name_tree.
1315 (struct clast_name_index): New.
1316 (new_clast_name_index): New.
1317 (clast_name_to_index): New.
1318 (save_clast_name_index): New.
1319 (debug_clast_name_index): New.
1320 (debug_clast_name_indexes_1): New.
1321 (debug_clast_name_indexes): New.
1322 (clast_name_index_elt_info): New.
1323 (eq_clast_name_indexes): New.
1325 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1327 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
1328 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
1329 (graphite_loop_normal_form): Do not pass region. Do not
1330 initialize SESE_OLDIVS.
1331 (build_graphite_loop_normal_form): Update call to
1332 graphite_loop_normal_form.
1333 * sese.c (debug_oldivs): Removed.
1334 (new_sese): Do not initialize SESE_OLDIVS.
1335 (free_sese): Do not free SESE_OLDIVS.
1336 (oldiv_for_loop): Removed.
1337 * sese.h (struct sese): Remove old_ivs.
1338 (SESE_OLDIVS): Removed.
1339 (oldiv_for_loop): Removed.
1341 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1343 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
1344 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
1345 replaced by a call to newivs_to_depth_to_newiv.
1346 (clast_to_gcc_expression): Pass newivs, remove ivstack.
1347 (clast_to_gcc_expression_red): Same.
1348 (gcc_type_for_clast_expr): Same.
1349 (gcc_type_for_clast_eq): Same.
1350 (graphite_translate_clast_equation): Same.
1351 (graphite_create_guard_cond_expr): Same.
1352 (graphite_create_new_guard): Same.
1353 (graphite_create_new_loop): Same.
1354 (build_iv_mapping): Same.
1355 (translate_clast): Same.
1357 (loop_iv_stack_patch_for_consts): Removed. *
1358 sese.c (iv_stack_entry_is_constant): Removed.
1359 (iv_stack_entry_is_iv): Removed.
1360 (loop_iv_stack_push_iv): Removed.
1361 (loop_iv_stack_insert_constant): Removed.
1362 (loop_iv_stack_pop): Removed.
1363 (loop_iv_stack_get_iv): Removed.
1364 (loop_iv_stack_get_iv_from_name): Removed.
1365 (debug_loop_iv_stack): Removed.
1366 (free_loop_iv_stack): Removed.
1367 (loop_iv_stack_remove_constants): Removed. *
1368 sese.h (iv_stack_entry_kind): Removed.
1369 (iv_stack_entry_data_union): Removed.
1370 (iv_stack_entry_struct): Removed.
1371 (iv_stack_entry_p): Removed.
1372 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
1373 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
1374 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
1375 loop_iv_stack_pop, free_loop_iv_stack): Removed.
1376 (gbb_loop_at_index): Fix indenting.
1377 (gbb_loop_index): Removed.
1379 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1381 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
1382 Call clast_name_to_index.
1384 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1386 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
1387 do not pass params. Get params from SESE_PARAMS.
1388 (clast_to_gcc_expression): Same.
1389 (clast_to_gcc_expression_red): Same.
1390 (gcc_type_for_clast_eq): Same.
1391 (graphite_translate_clast_equation): Same.
1392 (graphite_create_new_loop): Same.
1393 * sese.c (rename_variables_in_stmt): Fix comment.
1395 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1397 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
1399 Call save_clast_name_index.
1400 (translate_clast): Pass newivs_index.
1401 (gloog): Create and free newivs_index.
1403 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1405 * graphite-clast-to-gimple.c (clast_name_index): New structure.
1406 (clast_name_index_p): New type.
1407 (debug_clast_name_index): New.
1408 (debug_clast_name_indexes_1): New.
1409 (debug_clast_name_indexes): New.
1410 (clast_name_index_elt_info): New.
1411 (eq_clast_name_indexes): New.
1412 (clast_name_to_index): New.
1413 (new_clast_name_index): New.
1414 (save_clast_name_index): New.
1415 (init_sese_params_index): New.
1416 (gloog): Call init_sese_params_index.
1417 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
1418 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
1419 (free_sese): Free SESE_PARAMS_INDEX.
1420 * sese.h (struct sese): Add params_index.
1421 (SESE_PARAMS_INDEX): New.
1423 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1425 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
1426 (graphite_create_new_loop): Pass the newivs vector. Push the
1427 newly created IV to newivs.
1428 (translate_clast): Pass the newivs vector.
1429 (gloog): Create and destroy the newivs vector.
1431 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
1433 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
1434 (graphite_loop_normal_form): Initialize loop->aux with the unique
1435 IV that has been created.
1437 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
1439 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
1440 scev with parameters in the base part. They where forbidden
1443 2009-05-11 Li Feng <nemokingdom@gmail.com>
1445 * testsuite/gcc.dg/graphite/graphite.exp: Set different default
1446 compile options by file names.
1447 * testsuite/gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
1448 * testsuite/gcc.dg/graphite/id-{1-9}.c: Ditto.
1449 * testsuite/gcc.dg/graphite/scop-{0-20}.c: Ditto.
1450 * testsuite/gcc.dg/graphite/scop-matmult.c: Ditto.
1452 2009-05-08 Li Feng <nemokingdom@gmail.com>
1454 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
1455 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
1456 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
1457 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
1459 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
1461 * graphite-scop-detection (build_scops_1): Fix little bug introduced
1464 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
1466 * graphite-scop-detection.c (graphite_can_represent_scev): Only
1467 allow integer constant strides.
1468 (graphite_can_represent_expr): Depend on outermost_loop.
1469 (stmt_simple_memref_p, graphite_cannot_represent_loop,
1470 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
1471 build_scops_1): Same.
1472 (scopdet_basic_block_info): Same and insert layered SCoP
1474 (try_generate_gimple_bb): Cleanup.
1475 (build_scops): Enable data references.
1477 * testsuite/gcc.dg/graphite/id-5.c: New.
1478 * testsuite/gcc.dg/graphite/id-9.c: New.
1479 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
1480 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
1482 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1484 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
1485 that we have not yet built for this SCoP.
1487 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1489 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
1490 for complex numbers.
1492 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
1494 * graphite-ppl.c: Fix build if cloog is not available.
1496 2009-05-04 Li Feng <nemokingdom@gmail.com>
1498 * tree-parloops.c (loop_parallel_p): Remove construction of
1499 NITER and REDUCTION_LIST.
1500 (try_get_loop_niter): New.
1501 (try_create_reduction_list): New.
1502 (parallelize_loops): Bypass the failed checkings in autopar
1503 when can_be_parallel in loop structure is set to true.
1505 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
1507 * testsuite/gcc.dg/graphite/id-6.c: Update testcase.
1508 * testsuite/gcc.dg/graphite/scop-3.c: Dito.
1510 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
1512 * graphite-scop-detection.c (stmt_simple_for_scop_p):
1513 Enable EQ_EXPR and NE_EXPR again.
1515 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
1517 * graphite-scop-detection.c (graphite_can_represent_scev):
1518 Add check if scev is affine multivariate.
1519 (harmful_stmt_in_bb): Check if we can represent the conditions.
1520 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
1522 * testsuite/gcc.dg/graphite/id-7.c: New.
1524 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
1526 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
1527 Check all bbs in region, not only the bbs that are represented in
1529 (build_poly_scop): Add newline.
1530 * testsuite/gcc.dg/graphite/id-8.c: New.
1532 2009-04-30 Li Feng <nemokingdom@gmail.com>
1534 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
1535 when loop initialize.
1536 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
1537 * common.opt: Declare flag_graphite_force_parallel.
1538 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
1540 * graphite-poly.c (apply_poly_transforms): Introduce
1541 flag_graphite_force_parallel.
1542 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
1543 * toplev.c (process_options): ditto and replace a not correctly
1546 2009-04-30 Li Feng <nemokingdom@gmail.com>
1548 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
1549 Change the call of gbb_loop_at_index and/or gbb_loop_index due
1550 to the redefinition.
1551 (compute_cloog_iv_types_1): ditto.
1552 (build_iv_mapping): ditto.
1553 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
1555 (free_gimple_bb): Removed GBB_LOOPS related free part.
1556 (build_bb_loops): Removed.
1557 * sese.h (struct gimple_bb): Removed loops.
1558 (GBB_LOOPS): Removed.
1559 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
1560 (gbb_loop_index): ditto.
1562 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1564 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
1565 allow non constant strides.
1566 * testsuite/gcc.dg/graphite/scop-20.c: New.
1568 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1570 * graphite-scop-detection.c (dot_all_scops): Fix system call
1571 return value warning.
1574 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1576 * testsuite/gcc.dg/graphite/id-6.c: Fix pattern.
1577 * testsuite/gcc.dg/graphite/scop-3.c: Same.
1579 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1581 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
1582 build_pairwise_constraint, dr_equality_constraints,
1583 build_pairwise_scheduling_equality,
1584 build_pairwise_scheduling_inequality, lexicographically_gt_p,
1585 build_lexicographically_gt_constraint, dependence_polyhedron,
1586 graphite_legal_transform_dr, graphite_legal_transform_bb,
1587 graphite_legal_transform): New.
1588 * graphite-poly.h (graphite_legal_transform): Declared.
1589 * graphite-sese-to-poly.c (build_poly_scop): Call to
1590 graphite_legal_transform is disabled for the moment.
1592 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1594 * graphite-poly.h (pbb_nb_scattering_dims): New.
1595 (pbb_nb_scattering): Use it.
1597 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1599 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
1600 Pointset_Powerset version of ppl_insert_dimensions.
1601 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
1603 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1605 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
1607 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1609 * graphite-poly.h: Fix comment.
1611 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
1613 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
1615 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1617 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
1620 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
1622 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
1623 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
1626 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
1628 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
1629 handle EQ_EXPR and NE_EXPR.
1631 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
1633 * graphite-poly.h (poly_dr): Fix comment.
1635 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
1636 Tobias Grosser <grosser@fim.uni-passau.de>
1638 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
1639 with a zero dimension polyhedron.
1640 (find_scop_parameters): Move the call to scop_set_nb_params here.
1641 (build_loop_iteration_domains): Store in loop->aux the iteration
1643 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
1644 by any loop in scop.
1645 (build_poly_scop): Do not call scop_set_nb_params.
1647 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
1648 Tobias Grosser <grosser@fim.uni-passau.de>
1650 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
1651 add_condition_to_domain not GT_EXPR.
1653 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1655 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
1656 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
1657 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
1658 upper_bound_assign to calculate unions.
1659 * testsuite/gcc.dg/graphite/id-6.c: New.
1661 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1663 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
1664 handle abnormal edges.
1666 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
1668 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
1669 (free_poly_bb): Also free poly_drs.
1670 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
1671 (poly_dr): Polyhedron to Pointset_Powerset.
1672 (pdr_accessp_nb_subscripts): Same.
1673 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
1676 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1678 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
1679 names into more meaningful names.
1681 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1683 * testsuite/gfortran.dg/graphite/interchange-1.c: New.
1684 * testsuite/gfortran.dg/graphite/interchange-2.c: New.
1686 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1688 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
1690 * tree-parloops.c (rewrite_phi_with_iv): New.
1691 (rewrite_all_phi_nodes_with_iv): New.
1692 (canonicalize_loop_ivs): Call them.
1694 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1696 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
1697 graphite_find_data_references_in_stmt.
1698 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
1699 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
1701 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1703 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
1705 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1707 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
1708 instead of bb_in_region.
1709 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
1710 (build_sese_conditions): Use flag_bb_in_sese.
1711 * sese.c (register_bb_in_sese): Removed.
1712 (new_sese): Remove initialization of SESE_REGION_BBS.
1713 (free_sese): Do not free SESE_REGION_BBS.
1714 * sese.h (struct sese): Remove field region_basic_blocks.
1715 (SESE_REGION_BBS): Removed.
1716 (bb_in_sese_p): Implement in function of bb_in_region.
1718 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
1720 * graphite-scop-detection.c (limit_scops): Deal only with single exit
1723 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
1725 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
1727 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
1728 (add_condition_to_domain): New.
1729 (add_condition_to_pbb): New.
1730 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
1731 * testsuite/gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
1733 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
1735 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
1736 ppl_Pointset_Powerset.
1737 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
1738 * graphite-poly.h (poly_bb): poly_bb.domain Same.
1739 (pbb_nb_loops): Same.
1740 * graphite-sese-to-poly.c (build_loop_iteration_domains,
1741 add_conditions_to_domain): Same.
1742 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
1743 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
1744 ppl_const_Polyhedron_t.
1745 (ppl_print_powerset_matrix): New.
1746 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
1747 ppl_print_powerset_matrix): New.
1748 (ppl_print_polyhedron_matrix): Updated.
1750 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
1752 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
1754 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
1756 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
1757 (print_iteration_domains, debug_iteration_domain,
1758 debug_iteration_domains): New.
1759 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
1760 debug_iteration_domains): Declared.
1761 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
1764 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
1765 Sebastian Pop <sebastian.pop@amd.com>
1767 * graphite-poly.h (print_iteration_domain): New.
1768 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
1769 (build_sese_conditions_1, build_sese_conditions_after,
1770 build_sese_conditions_before): New.
1771 (build_sese_conditions): Rewritten.
1773 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
1774 Tobias Grosser <grosser@fim.uni-passau.de>
1776 Cleanup of code generation liveouts.
1777 * graphite-clast-to-gimple.c (translate_clast): Use a single
1778 rename_map instead of one per translated statement.
1779 Do not use SESE_LIVEOUT_RENAMES.
1780 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
1781 (gloog): Do not use SESE_LIVEOUT_RENAMES.
1782 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
1783 phi node of a reduction: when a loop contains a reduction used outside
1784 the loop, there should be a scalar close phi node on the exit block.
1785 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
1786 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
1787 (free_sese): Do not free them.
1788 (sese_build_liveouts_use): Do not use them.
1789 (sese_build_liveouts_bb): Same.
1790 (sese_build_liveouts): Same.
1791 (sese_insert_phis_for_liveouts): Same.
1792 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
1793 (defined_in_loop_p): New.
1794 (alive_after_loop): New.
1795 (close_phi_not_yet_inserted_p): New.
1796 (struct alep, alep_p): New.
1797 (add_loop_exit_phis): Remove from the rename_map all the names defined
1798 in the code generated loop.
1799 (insert_loop_close_phis): Traverse the rename_map passed to it.
1800 Don't use SESE_LIVEOUT_RENAMES.
1801 (default_liveout_before_guard): Renamed default_before_guard.
1802 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
1803 (graphite_copy_stmts_from_block): Do not directly call set_rename.
1804 (register_sese_liveout_renames): Removed.
1805 (copy_bb_and_scalar_dependences): Do not call it.
1806 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
1808 (SESE_LIVEOUT): Removed.
1809 (SESE_LIVEOUT_RENAMES): Removed.
1810 (SESE_REDUCTION_LIST): Removed.
1811 (sese_build_liveouts): Removed.
1812 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
1813 (insert_loop_close_phis): Pass a htab_t instead of a sese.
1814 (insert_guard_phis): Same.
1815 (rename_map_elt): Declare a VEC of them.
1816 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
1817 trees not pointers to trees.
1819 Rewrite in canonical close SSA form:
1820 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
1821 (limit_scops): Close the scop after the block containing the close phi
1823 (canonicalize_loop_closed_ssa): New.
1824 (canonicalize_loop_closed_ssa_form): New.
1825 (build_scops): Call canonicalize_loop_closed_ssa_form.
1827 * graphite-sese-to-poly.c: Fix typos.
1829 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
1831 * graphite-poly.c (print_scattering_function, print_pbb_domain):
1833 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
1834 (print_pbb): Add conditions.
1836 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
1837 Sebastian Pop <sebastian.pop@amd.com>
1839 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
1840 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
1841 (build_scop_bbs_1): New.
1842 (build_scop_bbs): Rewrite.
1843 * sese.h (bb_in_region): New.
1845 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1847 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
1849 (print_scop): Style.
1850 * graphite-poly.h (poly_bb): Add drs vector.
1851 (PBB_DRS): Add accessor.
1852 * graphite-sese-to-poly.c (build_poly_dr): New.
1853 (build_pbb_drs, build_scop_drs): New.
1854 (build_poly_scop): call build_scop_drs (Disabled at the moment).
1856 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1858 * tree-ssa-loop.c: Include forgotten toplev.h
1860 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
1862 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
1863 * testsuite/gcc.dg/graphite/pr37883.c: Remove -floop-*
1864 * testsuite/gcc.dg/graphite/pr37928.c: Same
1865 * testsuite/gcc.dg/graphite/pr38409.c: Same
1866 * testsuite/gcc.dg/graphite/pr38498.c: Same
1867 * testsuite/gcc.dg/graphite/pr38559.c: Same
1868 * testsuite/gcc.dg/graphite/pr39335.c: Same
1869 * testsuite/gcc.dg/graphite/pr39335_1.c: Same
1870 * testsuite/gfortran.dg/graphite/block-2.f: Same
1871 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
1874 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
1876 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
1877 build_access_matrix, build_scop_data_accesses): Remove access function
1878 building. (We get a new version soon).
1879 (build_bb_loops, scan_tree_for_params_right_scev): Update.
1880 * sese.h (nb_loops_around_loop_in_sese): Remove.
1881 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
1883 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
1884 Sebastian Pop <sebastian.pop@amd.com>
1886 * graphite-scop-detection.c (struct scopdet_info): Rename last
1888 (scopdet_basic_block_info, build_scops_1): Don't use
1889 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
1891 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
1892 Sebastian Pop <sebastian.pop@amd.com>
1894 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
1895 * sese.c (sese_build_liveouts_use): Renamed from
1896 sese_build_livein_liveouts_use. Remove liveins.
1897 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
1898 Call sese_build_liveouts_use.
1899 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
1900 Call sese_build_liveouts_bb.
1901 (new_sese, free_sese): Remove liveins.
1902 (sese_add_exit_phis_var): Deleted.
1903 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
1905 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
1907 * sese.h (sese): Remove num_ver and livein.
1908 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
1910 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
1912 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
1914 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
1916 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
1917 (build_scop_scattering): Do not use compare_prefix_loops any more.
1918 (nb_common_loops): New.
1920 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1922 * sese.c (get_new_name_from_old_name): Renamed get_rename.
1923 (register_old_and_new_names): Renamed set_rename.
1925 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1927 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
1928 of the decl from the previous commit.
1930 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1932 * graphite-scop-detection.c (dot_scop): New.
1933 * graphite-scop-detection.h (dot_scop): Declared.
1935 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1937 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
1939 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1941 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
1942 condition at the end of the loop.
1943 * graphite.c (graphite_initialize, graphite_finalize): Print to
1944 dump_file the compiled function.
1945 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
1946 of create_empty_loop_on_edge.
1947 (translate_clast): Update the code generation of loops for the new
1949 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
1951 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
1953 Reverted the patch from 2009-03-19.
1955 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
1957 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
1959 (print_scop): Style.
1960 * graphite-poly.h (poly_bb): Add drs vector.
1961 (PBB_DRS): Add accessor.
1962 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
1963 (build_access_matrix_with_af, build_access_matrix,
1964 build_scop_data_accesses): Delete.
1965 (build_poly_dr): New.
1966 (build_pbb_drs, build_scop_drs): New.
1967 (build_poly_scop): call build_scop_drs.
1969 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
1971 * graphite-scop-detection.c (dot_all_scops_1): Close the table
1972 once per basic block.
1974 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
1976 * graphite-scop-detection.c (graphite_can_represent_scev): New.
1977 (graphite_can_represent_expr): Renamed from loop_affine_expr
1979 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
1980 (graphite_cannot_represent_loop): Add scop_entry to parameters.
1981 (scopdet_basic_block_info): Actually define entry_block.
1982 (stmt_simple_memref_p): Moved here from ...
1984 * tree-data-ref.c (stmt_simple_memref_p): here.
1985 * tree-data-ref.h (stmt_simple_memref_p): Removed.
1987 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
1989 * testsuite/gcc.dg/graphite/id-4.c: New.
1991 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
1993 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
1994 (register_old_and_new_names): Update the content of the map.
1995 When there was already a rename_map_elt in the map at that
1997 (copy_bb_and_scalar_dependences): Do rename_variables after
1998 expand_scalar_variables.
1999 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
2000 of the map. When there was already a rename_map_elt in the
2001 map at that location, free it.
2002 (translate_clast): Pass the rename_map. Do not initialize and free
2003 a rename_map per stmt_user.
2004 (gloog): Initialize and free one rename_map and pass it to
2007 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
2009 * sese.c (expand_scalar_variables_stmt,
2010 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
2012 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
2013 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
2014 the gimple_stmt_iterator of the statement to be expanded.
2015 * graphite-scop-detection.c (is_simple_operand): Do handle
2018 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
2020 * graphite-scop-detection.c (is_simple_operand): Do not handle
2022 * testsuite/gcc.dg/graphite/id-2.c: New.
2024 * graphite-sese-to-poly.c (build_bb_loops,
2025 add_value_to_dim, scan_tree_for_params_right_scev,
2026 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
2027 find_params_in_bb, build_loop_iteration_domains,
2028 add_conditions_to_domain): Remove subtract.
2030 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
2032 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
2033 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
2034 pbb_loop_at_index -> gbb_loop_at_index.
2035 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
2036 (debug_loop_vec): Delete.
2037 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
2038 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
2039 (PBB_LOOPS): Removed.
2040 (PBB_BLACK_BOX): Insert cast.
2041 (pbb_set_black_box): New setter.
2042 (pbb_loop_at_index, pbb_loop_index): Removed.
2043 (scop_set_region, scop_set_nb_params): New.
2044 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
2045 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
2046 (build_poly_scop): Use scop_set_nb_params.
2047 * sese.h (gimple_bb): Add LOOPS.
2048 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
2050 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
2052 Revert previous commit.
2054 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
2056 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
2057 (register_old_and_new_names): Update the content of the map.
2058 When there was already a rename_map_elt in the map at that
2060 (copy_bb_and_scalar_dependences): Do rename_variables after
2061 expand_scalar_variables.
2062 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
2063 of the map. When there was already a rename_map_elt in the
2064 map at that location, free it.
2065 (translate_clast): Pass the rename_map. Do not initialize and free
2066 a rename_map per stmt_user.
2067 (gloog): Initialize and free one rename_map and pass it to
2070 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
2072 Remove forgotten line in revert.
2074 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
2076 Revert previous commit.
2078 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
2080 * sese.c (register_old_and_new_names): Update the content
2081 of the map. When there was already a rename_map_elt in the
2082 map at that location, free it.
2083 (copy_bb_and_scalar_dependences): Do rename_variables after
2084 expand_scalar_variables.
2085 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
2086 of the map. When there was already a rename_map_elt in the
2087 map at that location, free it.
2088 (translate_clast): Pass the rename_map. Do not initialize and free
2089 a rename_map per stmt_user.
2090 (gloog): Initialize and free one rename_map and pass it to
2093 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
2095 * graphite-clast-to-gimple.c (translate_clast): context_loop
2098 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
2099 Sebastian Pop <sebastian.pop@amd.com>
2101 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
2102 of the use of ppl_Polyhedron_map_space_dimensions.
2104 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
2105 Sebastian Pop <sebastian.pop@amd.com>
2107 * graphite-poly.c (unify_scattering_dimensions): Fix types.
2108 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
2109 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
2110 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
2111 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
2112 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
2113 pbb_nb_params): New.
2114 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
2115 nb_loops_around_pbb): Adapt return types.
2117 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
2119 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
2120 graphite-clast-to-gimple.o, graphite-data-ref.o,
2121 graphite-scop-detection.o, graphite-poly.o): Add
2124 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
2126 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
2127 graphite-clast-to-gimple.o, graphite-data-ref.o,
2128 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
2130 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
2132 * testsuite/gcc.dg/graphite/pr37485.c: Remove -floop-block
2133 * testsuite/gcc.dg/graphite/pr37828.c: Same.
2134 * testsuite/gcc.dg/graphite/pr37684.c: Same.
2135 * testsuite/gcc.dg/graphite/block-0.c: Same.
2136 * testsuite/gcc.dg/graphite/block-1.c: Same.
2137 * testsuite/gcc.dg/graphite/block-2.c: Same.
2138 * testsuite/gcc.dg/graphite/block-3.c: Same.
2139 * testsuite/gcc.dg/graphite/block-4.c: Same.
2140 * testsuite/gcc.dg/graphite/block-5.c: Same.
2141 * testsuite/gcc.dg/graphite/block-6.c: Same.
2142 * testsuite/gfortran.dg/graphite/pr38083.f90: Same.
2143 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
2144 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
2145 * testsuite/gfortran.dg/graphite/pr37852.f90: Same.
2146 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
2147 * testsuite/gfortran.dg/graphite/pr37980.f90: Same.
2148 * testsuite/gfortran.dg/graphite/pr38953.f90: Same.
2149 * testsuite/gfortran.dg/graphite/pr37857.f90: Same.
2150 * opts.c: Remove -floop-block from -O2.
2151 * graphite-poly.c: Fail if -floop-block -floop-interchange or
2152 -floop-strip-mine are used.
2154 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
2155 Sebastian Pop <sebastian.pop@amd.com>
2157 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
2159 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
2160 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
2161 strip_mine_profitable_p, is_interchange_valid,
2162 graphite_trans_bb_block, graphite_trans_loop_block,
2163 graphite_trans_scop_block): Temporary removed.
2164 (extend_scattering, unify_scattering_dimensions): New.
2165 (print_scattering_function, graphite_read_transforms):
2166 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
2167 (graphite_generate_scattering_fns): Removed.
2168 (apply_poly_transforms): Cleanup.
2169 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
2170 (schedule_to_scattering): Moved.
2171 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
2172 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
2173 (pbb_nb_scattering): New.
2174 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
2175 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
2177 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
2179 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
2180 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
2181 -> PBB_TRANSFORMED_SCATTERING.
2182 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
2183 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
2184 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
2185 (check_poly_representation): Do not return bool.
2186 (graphite_transform_loops): Reformat.
2187 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
2189 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
2191 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
2192 debug_pbb_domain, debug_pbb, debug_scop): New.
2193 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
2194 debug_pbb_domain, debug_pbb, debug_scop): Declared.
2196 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
2199 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
2200 when the type precision of the induction variable should be
2201 larger than the type precision of nit.
2202 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
2203 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
2204 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
2206 * testsuite/gcc.dg/graphite/pr39335_1.c: New.
2207 * testsuite/gcc.dg/graphite/pr39335.c: New.
2209 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
2211 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
2212 SSA_NAMES not struct reduction_info.
2214 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
2216 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
2218 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
2219 Tobias Grosser <grosser@fim.uni-passau.de>
2221 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
2222 (free_sese): Free SESE_REDUCTION_LIST.
2223 * sese.h (struct sese): Add field reduction_list.
2224 (SESE_REDUCTION_LIST): New.
2225 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
2226 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
2228 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
2229 Tobias Grosser <grosser@fim.uni-passau.de>
2231 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
2234 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
2235 Tobias Grosser <grosser@fim.uni-passau.de>
2237 * tree-parloops.c (struct brli, build_reduction_list_info,
2238 analyze_reduction_list, gather_scalar_reductions): New.
2239 (loop_parallel_p): Build a reduction list containing only
2240 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
2241 (gen_parallel_loop): Call the analysis analyze_reduction_list.
2242 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
2243 * tree-flow.h (gather_scalar_reductions): Declared.
2245 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
2248 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
2249 number_of_iterations_exit from a gcc_assert.
2251 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
2252 Jan Sjodin <jan.sjodin@amd.com>
2254 * output.h (graphite_out_file, graphite_in_file): Declared.
2255 * toplev.c (graphite_out_file, graphite_in_file): New.
2256 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
2257 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
2258 Don't call schedule_to_scattering.
2259 * common.opt (fgraphite-write, fgraphite-read): New.
2260 * graphite-poly.c: Include output.h.
2261 (print_scattering_function, print_scattering_functions,
2262 debug_scattering_function, debug_scattering_functions,
2263 graphite_write_transforms, graphite_read_transforms,
2264 graphite_generate_scattering_fns): New.
2265 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
2266 Call graphite_generate_scattering_fns, graphite_write_transforms,
2267 graphite_read_transforms.
2268 (new_poly_bb): Initialize PBB_SCATTERING.
2269 (free_poly_bb): Free PBB_SCATTERING.
2270 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
2271 * graphite-poly.h (struct poly_bb): Add field scattering.
2272 (PBB_SCATTERING): New.
2273 (print_scattering_function, print_scattering_functions,
2274 debug_scattering_function, debug_scattering_functions): Declared.
2275 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
2276 GMP values, not integers!
2277 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
2278 ppl_read_polyhedron_matrix): New.
2279 * graphite-ppl.h (ppl_print_polyhedron_matrix,
2280 debug_ppl_polyhedron_matrix,
2281 ppl_read_polyhedron_matrix): Declared.
2282 * Makefile.in (graphite-poly.o): Depends on output.h.
2284 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2285 Tobias Grosser <grosser@fim.uni-passau.de>
2288 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
2289 scalar evolutions in the scop_entry->loop_father.
2291 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2292 Tobias Grosser <grosser@fim.uni-passau.de>
2294 * graphite.h (ref_nb_loops): Remove declaration.
2295 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
2296 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
2297 debug_gbb): Moved to sese.h.
2300 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2301 Tobias Grosser <grosser@fim.uni-passau.de>
2303 * graphite-data-ref.[ch]: Disable.
2305 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2306 Tobias Grosser <grosser@fim.uni-passau.de>
2308 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
2309 scalar evolutions in the scop_entry->loop_father.
2311 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2313 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
2314 (graphite_cannot_represent_loop_niter): Renamed
2315 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
2316 (limit_scops): build_sese_loop_nests does not return a bool.
2317 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
2318 * sese.c (nb_reductions_in_loop): ... from here.
2319 (graphite_loop_normal_form): ... from here.
2320 (sese_record_loop): Does not fail, so does not return a bool.
2321 (build_sese_loop_nests): Same.
2322 * sese.h (build_sese_loop_nests): Update declaration.
2323 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
2324 (build_graphite_loop_normal_form): New.
2325 (gloog): Call build_graphite_loop_normal_form.
2326 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
2327 build_sese_loop_nests.
2329 * testsuite/gcc.dg/graphite/id-1.c: New.
2331 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
2332 Tobias Grosser <grosser@fim.uni-passau.de>
2334 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
2335 The SCoP detection fix is sufficient.
2337 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
2339 PR tree-optimization/39260
2340 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
2341 the basic block contains a condition with a real type.
2342 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
2344 * gcc.dg/graphite/pr39260.c: New.
2346 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
2348 * graphite-poly.c: Inlcude params.h.
2349 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
2351 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
2352 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
2354 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2355 Tobias Grosser <grosser@fim.uni-passau.de>
2357 * graphite-scop-detection.c (dot_all_scops_1,
2358 dot_all_scops): Moved here.
2359 * graphite-scop-detection.h (dot_all_scops): Declared here.
2360 * graphite.c (graphite_initialize, graphite_finalize): New.
2361 (graphite_transform_loops): Cleaned up.
2362 * sese.c (debug_oldivs): Moved here.
2363 * graphite-poly.c (graphite_apply_transformations): Renamed
2364 apply_poly_transforms.
2365 (debug_loop_vec): Moved here.
2366 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
2367 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
2368 find_scop_parameters, build_scop_iteration_domain,
2369 add_conditions_to_constraints, build_scop_canonical_schedules,
2370 build_scop_data_accesses): Now static.
2371 (build_poly_scop, check_poly_representation): New.
2373 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2375 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
2376 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
2377 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
2378 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
2379 scan_tree_for_params_right_scev, scan_tree_for_params_int,
2380 scan_tree_for_params, struct irp_data, dx_record_params,
2381 find_params_in_bb, find_scop_parameters, gbb_from_bb,
2382 build_loop_iteration_domains, add_conditions_to_domain,
2383 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
2384 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
2385 build_sese_conditions, add_conditions_to_constraints,
2386 build_scop_iteration_domain, build_access_matrix_with_af,
2387 build_access_matrix,
2388 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
2390 * graphite-sese-to-poly.c: New.
2391 * graphite-sese-to-poly.h: New.
2393 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
2395 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2397 * graphite.c: Split graphite code generation to a new file.
2398 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
2399 max_precision_type, clast_to_gcc_expression_red,
2400 clast_to_gcc_expression, gcc_type_for_clast_expr,
2401 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
2402 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
2403 graphite_create_new_guard, clast_get_body_of_loop,
2404 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
2405 graphite_create_new_loop, build_iv_mapping, copy_renames,
2406 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
2407 compute_cloog_iv_types, free_scattering, save_var_name,
2408 initialize_cloog_names, build_scop_context, build_cloog_prog,
2409 set_cloog_options, debug_clast_stmt, scop_to_clast,
2410 print_generated_program, debug_generated_program,
2411 gloog): Moved to graphite-clast-to-gimple.c.
2413 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
2415 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
2416 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
2417 loop_iv_stack_pop, loop_iv_stack_get_iv,
2418 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
2419 free_loop_iv_stack, loop_iv_stack_remove_constants,
2420 debug_rename_elt, debug_rename_map_1, debug_rename_map,
2421 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
2422 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
2423 eq_ivtype_map_elts, sese_add_exit_phis_edge,
2424 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
2425 get_vdef_before_sese, sese_adjust_vphi,
2426 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
2427 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
2428 is_iv, expand_scalar_variables_ssa_name,
2429 expand_scalar_variables_expr, expand_scalar_variables_stmt,
2430 expand_scalar_variables, rename_variables, remove_condition,
2431 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
2432 add_loop_exit_phis, insert_loop_close_phis, struct igp,
2433 default_liveout_before_guard, add_guard_exit_phis,
2434 insert_guard_phis, register_old_and_new_names,
2435 graphite_copy_stmts_from_block, register_sese_liveout_renames,
2436 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
2437 if_region_set_false_region, create_if_region_on_edge,
2438 move_sese_in_condition): Moved to sese.c.
2440 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
2441 if_region_exit, if_region_get_condition_block,
2442 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
2443 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
2444 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
2445 ivtype_map_elt, new_ivtype_map_elt,
2446 recompute_all_dominators): Moved to sese.h.
2448 * graphite-clast-to-gimple.c: New.
2449 * graphite-clast-to-gimple.h: New.
2450 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
2451 * sese.c: Modified as said above.
2454 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
2456 * graphite.c: Split scop detection to a new file.
2457 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
2458 move_sd_regions, loop_affine_expr, exclude_component_ref,
2459 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
2460 graphite_cannot_represent_loop_niter, struct scopdet_info,
2461 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
2462 find_single_entry_edge, find_single_exit_edge,
2463 create_single_entry_edge, sd_region_without_exit,
2464 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
2465 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
2466 Moved to graphite-scop-detection.c.
2468 * graphite-scop-detection.c: New.
2469 * graphite-scop-detection.h: New.
2470 * Makefile.in: Add new rule for graphite-scop-detection.o.
2472 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
2473 tree-scalar-evolution.h.
2474 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
2475 build_sese_loop_nests): Moved here from graphite.c.
2476 (param_index): Renamed parameter_index_in_region.
2478 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
2479 Sebastian Pop <sebastian.pop@amd.com>
2481 * gcc.dg/graphite/block-0.c: Expected to fail now.
2482 * gcc.dg/graphite/block-1.c: Same.
2483 * gcc.dg/graphite/block-5.c: Same.
2484 * gcc.dg/graphite/block-6.c: Same.
2486 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
2487 Sebastian Pop <sebastian.pop@amd.com>
2489 * graphite.h: Separate from graphite_bb_p the polyhedral
2490 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
2491 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
2492 graphite-data-ref.h.
2493 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
2494 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
2495 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
2496 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
2497 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
2498 scop_nb_params): Moved to graphite-poly.h.
2499 * graphite-data-ref.c: Same.
2500 * graphite-data-ref.h: New.
2502 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
2503 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
2504 is_interchange_valid, graphite_trans_bb_block,
2505 graphite_trans_loop_block, scop_max_loop_depth,
2506 graphite_trans_scop_block, graphite_apply_transformations,
2507 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
2509 * graphite-poly.h: New.
2510 * graphite-poly.c: New.
2511 * Makefile.in (OBJS-common): Add graphite-poly.o.
2512 (graphite-poly.o): New rule.
2513 * tree-data-ref.h (struct data_reference): Remove unused scop field.
2516 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
2517 Tobias Grosser <grosser@fim.uni-passau.de>
2519 * graphite.c: Replace gb -> gbb.
2521 * graphite-data-ref.c: Same.
2523 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
2524 Tobias Grosser <grosser@fim.uni-passau.de>
2526 * Makefile.in (OBJS-commmon): Add sese.o.
2528 (graphite.o): Add sese.h.
2529 * graphite.c (bb_in_ss_p, loop_in_sese_p,
2530 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
2531 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
2533 (block_before_scop): Add missing return.
2534 (new_scop, free_scop): Remove SESE data structures.
2535 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
2536 find_scop_parameters, build_loop_iteration_domains,
2537 add_conditions_to_domain, register_scop_liveout_renames,
2538 copy_bb_and_scalar_dependences): Scop -> SESE.
2540 (add_conditions_to_domain): SCoP -> SESE and remove check
2541 (scop_contains_non_iv_scalar_phi_nodes): New.
2542 (build_scop_conditions_1, build_scop_conditions): Remove check for
2543 non iv scalar phi nodes.
2544 (print_scop_statistics): New.
2545 (graphite_transform_loops): Cleanup.
2547 * graphite.h: Move to sese & cleanup.
2551 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2552 Tobias Grosser <grosser@fim.uni-passau.de>
2554 * graphite.c (build_scop_conditions_1): Conditions are only
2555 at the end of a basic block.
2557 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2558 Tobias Grosser <grosser@fim.uni-passau>
2560 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
2562 (GBB_ALPHA): Removed.
2564 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2565 Tobias Grosser <grosser@fim.uni-passau.de>
2567 * graphite-data-ref.c (graphite_test_dependence): Don't use
2568 GBB_DYNAMIC_SCHEDULE.
2569 * graphite.c (new_graphite_bb): Same.
2570 (free_graphite_bb): Same.
2571 (build_scop_dynamic_schedules): Removed.
2572 (graphite_transform_loops): Don't call it.
2573 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
2574 (GBB_DYNAMIC_SCHEDULE): Removed.
2576 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2577 Tobias Grosser <grosser@fim.uni-passau.de>
2579 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
2580 (print_graphite_bb): Same.
2581 (build_cloog_prog): Same.
2583 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2584 Tobias Grosser <grosser@fim.uni-passau.de>
2586 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
2588 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2589 Tobias Grosser <grosser@fim.uni-passau.de>
2591 * graphite.c (build_scop_context): Don't use CloogMatrix.
2592 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
2593 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
2595 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2596 Tobias Grosser <grosser@fim.uni-passau.de>
2598 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
2599 liveout_renames, add_params fields...
2600 (struct sese): ... here.
2601 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
2602 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
2604 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2605 Tobias Grosser <grosser@fim.uni-passau.de>
2607 * graphite.c (print_scop): Do not print the CLooG program.
2608 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
2609 build_cloog_prog, gloog): Don't use SCOP_PROG.
2610 (find_transform): Renamed scop_to_clast.
2611 (print_generated_program, debug_generated_program): New.
2612 (graphite_transform_loops): Adapt to new interface.
2613 * graphite.h (struct scop): Remove program field.
2614 (SCOP_PROG): Removed.
2615 (print_generated_program, debug_generated_program): Declared.
2617 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
2619 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
2620 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
2621 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
2622 free_graphite_bb, build_scop_canonical_schedules,
2623 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
2624 schedules are now represented using a ppl_Linear_Expression_t.
2625 * graphite.h (struct graphite_bb): Same.
2626 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
2627 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
2629 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
2631 * graphite.c: Free local memory.
2632 * graphite-ppl.c: Same.
2634 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
2636 * graphite.c (const_column_index, get_first_matching_sign_row_index,
2637 get_lower_bound_row, get_upper_bound_row, copy_constraint,
2638 swap_constraint_variables, scale_constraint_variable): Removed.
2639 (graphite_trans_bb_strip_mine): Remove pong.
2640 * graphite-ppl.c: Include missing header files.
2641 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
2642 * graphite-ppl.h (ppl_strip_loop): Declared.
2643 * Makefile.in (graphite-ppl.o): Adjust dependences.
2645 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
2647 * graphite.c (build_loop_iteration_domains): Remove ping pong.
2648 (build_scop_iteration_domain): Same.
2650 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
2652 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
2654 (add_value_to_dim, scan_tree_for_params_right_scev,
2655 scan_tree_for_params_int): New.
2656 * graphite-ppl.c (oppose_constraint): New.
2657 (insert_constraint_into_matrix): Implement missing cases.
2658 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
2660 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
2662 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
2663 use ppl_move_dimension.
2665 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
2667 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
2670 * graphite-ppl.c: Same.
2671 * graphite-ppl.h: Same.
2673 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
2675 Revert last 3 commits.
2677 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2679 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
2681 (add_value_to_dim, scan_tree_for_params_right_scev,
2682 scan_tree_for_params_int): New.
2683 * graphite-ppl.c (oppose_constraint): New.
2684 (insert_constraint_into_matrix): Implement missing cases.
2685 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
2687 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2689 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
2691 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2692 Tobias Grosser <grosser@fim.uni-passau.de>
2694 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
2695 use ppl_move_dimension.
2696 * graphite-ppl.c (ppl_move_dimension): New.
2697 * graphite-ppl.h (ppl_move_dimension): Declared.
2699 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
2701 * graphite.c: Do not include cloog/cloog.h.
2702 (print_graphite_bb): Remove ping pong, call PPL print function.
2704 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
2706 * Makefile.in (OBJS-common): Add graphite-ppl.o.
2707 (graphite.o): Add dependence on graphite-ppl.h.
2708 (graphite-ppl.o): New.
2709 (graphite-data-ref.c): Ping pong between PPL data structures
2711 * graphite-ppl.c: New.
2712 * graphite-ppl.h: New.
2713 * graphite.c: Include graphite-ppl.h.
2714 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
2715 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
2716 Ping pong between PPL data structures and matrices.
2717 (new_graphite_bb): Create a PPL constraint system.
2718 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
2719 (build_loop_iteration_domains): Use PPL functions.
2720 * graphite.h: Include graphite-ppl.h. Fix comments.
2721 (graphite_bb): Use a ppl_Constraint_System_t instead of
2722 CloogMatrix for representing the domain.
2723 (scop): Remove static_schedule.
2724 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
2726 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
2728 * graphite.c: Fix some comments.
2730 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
2733 * graphite.c (if_region_set_false_region): After moving a region
2734 in the false branch of a condition, remove the empty dummy
2736 (gloog): Remove wrong fix for PR38953.
2738 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
2740 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
2741 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
2742 register_bb_in_sese, new_sese, free_sese): Moved.
2743 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
2744 outermost_loop_in_scop, build_scop_iteration_domain,
2745 expand_scalar_variables_ssa_name, get_vdef_before_scop,
2746 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
2747 Use loop_in_sese_p instead of loop_in_scop_p.
2748 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
2749 (free_scop): Do not free SCOP_BBS_B.
2750 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
2751 ref_nb_loops): Moved here...
2752 * graphite.h (ref_nb_loops): ... from here.
2753 (struct scop): Remove bbs_b bitmap.
2754 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
2755 * testsuite/gcc.dg/graphite/scop-19.c: New
2757 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
2759 * graphite.c (scopdet_basic_block_info): Fix bug in scop
2762 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
2764 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
2765 eq_loop_to_cloog_loop): Remove.
2766 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
2767 * graphite.h (struct scop): Remove loop2cloog_loop.
2768 (loop_domain_dim, loop_iteration_vector_dim): Remove.
2770 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
2772 * opts.c (decode_options): Only add graphite options to O2
2773 if we compile with graphite enabled.
2775 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
2777 * Merge from mainline (r143163:143684).
2779 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
2781 * graphite.c (debug_value): Removed.
2782 * graphite.h (debug_value): Removed.
2784 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2786 * passes.c (init_optimization_passes): Do not call pass_copy_prop
2787 after graphite: pass_copy_prop does not maintain a proper loop closed
2788 SSA form. pass_copy_prop should be fixed.
2790 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2792 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
2794 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
2796 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
2797 (gloog): Split the exit of the scop when the scop exit is a loop exit.
2798 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
2801 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
2803 * graphite.c (gloog): Return true when code gen succeeded.
2804 (graphite_transform_loops): Do not call cleanup_tree_cfg if
2805 the code of the function did not changed. After cleanup_tree_cfg
2806 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
2809 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
2811 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
2812 gimple_call_lhs is NULL.
2814 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
2815 Tobias Grosser <tobi.grosser@amd.com>
2817 * graphite.c (graphite_trans_scop_block): Do not block single
2820 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
2821 Tobias Grosser <tobi.grosser@amd.com>
2823 * graphite.c (build_scop_canonical_schedules): Start schedules at
2826 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
2827 Tobias Grosser <tobi.grosser@amd.com>
2829 * graphite.c (compare_prefix_loops): New.
2830 (build_scop_canonical_schedules): Rewritten.
2831 (graphite_transform_loops): Move build_scop_canonical_schedules
2832 after build_scop_iteration_domain.
2834 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2835 Tobias Grosser <tobi.grosser@amd.com>
2837 * graphite.c (add_conditions_to_domain): Add the loops to
2838 the dimension of the iteration domain. Do copy the domain
2839 only when it exists.
2840 (build_scop_conditions_1): Do not call add_conditions_to_domain.
2841 (add_conditions_to_constraints): New.
2842 (can_generate_code_stmt, can_generate_code): Removed.
2843 (gloog): Do not call can_generate_code.
2844 (graphite_transform_loops): Call add_conditions_to_constraints
2845 after building the iteration domain.
2847 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2848 Tobias Grosser <tobi.grosser@amd.com>
2849 Jan Sjodin <jan.sjodin@amd.com>
2851 * graphite.c (scan_tree_for_params): On substractions negate
2852 all the coefficients of the term.
2853 (clast_to_gcc_expression_red): New. Handle reduction expressions
2854 of more than two operands.
2855 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
2856 (get_vdef_before_scop): Handle also the case of default definitions.
2858 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
2861 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
2862 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
2863 (gloog): Do not call cleanup_tree_cfg.
2864 (graphite_transform_loops): Call cleanup_tree_cfg after all
2865 scops have been code generated.
2867 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
2869 * passes.c (init_optimization_passes): Schedule after
2870 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
2872 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
2874 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
2876 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
2877 Set the type of an expression to the type of its assign statement.
2878 (expand_scalar_variables_expr): Do not pass loop_p.
2879 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
2880 (copy_bb_and_scalar_dependences): Do not pass loop_p.
2881 (translate_clast): Update call to copy_bb_and_scalar_dependences.
2883 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
2885 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
2886 an expression to the gimple_expr_type of its assign statement.
2887 (expand_scalar_variables_expr): Stop recursion on tcc_constant
2890 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
2892 PR tree-optimization/38786
2893 * testsuite/gcc.dg/graphite/pr38786.c: New.
2894 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
2895 the SSA_NAME case of expand_scalar_variables_expr.
2896 (expand_scalar_variables_expr): Also gather the scalar computation
2897 used to index the memory access.
2898 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
2899 the gimple_stmt_iterator where it inserts new code.
2901 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
2903 * testsuite/gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
2905 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
2907 * opts.c (decode_options): Enable flag_graphite_identity and
2908 flag_loop_block in -O2 and above.
2910 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
2912 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
2913 Fix merge problem: replace with the file from trunk.
2915 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
2917 * Merge from mainline (r141727:143163).
2919 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
2920 Jan Sjodin <jan.sjodin@amd.com>
2922 PR tree-optimization/38559
2923 * testsuite/gcc.dg/graphite/pr38559.c: New.
2925 * graphite.c (debug_value, copy_constraint,
2926 swap_constraint_variables, scale_constraint_variable, ): New.
2927 (get_lower_bound, get_upper_bound): Removed.
2928 (graphite_trans_bb_strip_mine): Clean up this code that works
2929 only for constant number of iterations. Fully copy upper and
2930 lower bound constraints, not only the constant part of them.
2931 * graphite.h (debug_value): Declared.
2933 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
2935 PR tree-optimization/38492
2936 PR tree-optimization/38498
2937 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
2938 * tree-chrec.h (scev_is_linear_expression): Declared.
2939 * graphite.c (graphite_cannot_represent_loop_niter): New.
2940 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
2941 (graphite_loop_normal_form): Use gcc_assert.
2942 (scan_tree_for_params): Use CASE_CONVERT.
2943 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
2944 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
2945 Use gcc_assert. Discard scops that contain unhandled cases.
2946 (build_scop_conditions): Return a boolean status for unhandled cases.
2947 (strip_mine_profitable_p): Print the loop number, not its depth.
2948 (is_interchange_valid): Pass the depth of the loop nest, don't
2949 recompute it wrongly.
2950 (graphite_trans_bb_block): Same.
2951 (graphite_trans_bb_block): Print tentative of loop blocking.
2952 (graphite_trans_scop_block): Do not print that the loop has been
2954 (graphite_transform_loops): Do not handle scops that contain condition
2957 * testsuite/gcc.dg/graphite/pr38500.c: Fixed warning as committed
2959 * testsuite/gcc.dg/graphite/block-0.c: Update test.
2960 * testsuite/gcc.dg/graphite/block-1.c: Same.
2961 * testsuite/gcc.dg/graphite/block-2.c: Remove xfail and test for
2963 * testsuite/gcc.dg/graphite/block-4.c: Remove test for strip mine.
2964 * testsuite/gcc.dg/graphite/block-3.c: New.
2965 * testsuite/gcc.dg/graphite/pr38498.c: New.
2967 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
2969 PR tree-optimization/38510
2970 * gcc.dg/graphite/pr38510.c: New.
2971 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
2972 (translate_clast): Call recompute_all_dominators before
2974 (gloog): Call recompute_all_dominators before graphite_verify.
2976 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
2978 PR tree-optimization/38492
2979 * graphite.c (rename_map_elt, debug_rename_elt,
2980 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
2981 rename_map_elt_info, eq_rename_map_elts,
2982 get_new_name_from_old_name, bb_in_sese_p): Moved around.
2983 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
2984 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
2985 (sese_build_livein_liveouts): New.
2986 (new_sese, free_sese): New.
2987 (new_scop): Call new_sese.
2988 (free_scop): Call free_sese.
2989 (rename_variables_from_edge, rename_phis_end_scop): Removed.
2990 (register_old_new_names): Renamed register_old_and_new_names.
2991 (register_scop_liveout_renames, add_loop_exit_phis,
2992 insert_loop_close_phis, struct igp,
2993 default_liveout_before_guard, add_guard_exit_phis,
2994 insert_guard_phis, copy_renames): New.
2995 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
2996 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
2997 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
2998 (scop_adjust_phis_for_liveouts): New.
2999 (gloog): Call scop_adjust_phis_for_liveouts.
3001 * graphite.h (struct sese): Documented. Added fields liveout,
3003 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
3004 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
3005 (struct scop): Added field liveout_renames.
3006 (SCOP_LIVEOUT_RENAMES): New.
3008 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
3010 PR tree-optimization/38409
3011 * gcc.dg/graphite/pr38409.c: New.
3012 * graphite.c (nb_reductions_in_loop): Use simple_iv.
3014 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
3016 * graphite.c (gcc_type_for_cloog_iv): By default return
3018 (graphite_create_new_loop): Don't fold_convert the already
3019 fold_convert-ed expression.
3021 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
3023 PR tree-optimization/38446
3024 * gcc.dg/graphite/pr38446.c: New.
3025 * graphite.c (register_bb_in_sese): New.
3026 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
3027 looking at the bbs in the region.
3028 * graphite.h (sese): Add region_basic_blocks pointer set to
3029 structure and initialize at the time of defining new scop.
3031 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
3033 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
3034 (find_params_in_bb): Do not free data refs.
3035 (free_graphite_bb): Add FIXME on disabled free_data_refs.
3037 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
3039 * testsuite/gcc.dg/graphite/scop-16.c: Test only scop specific info.
3040 * testsuite/gcc.dg/graphite/scop-17.c: Same.
3041 * testsuite/gcc.dg/graphite/block-5.c: New.
3042 * testsuite/gcc.dg/graphite/block-6.c: New.
3043 * testsuite/gcc.dg/graphite/pr37485.c: Clean dump file after.
3044 * testsuite/gcc.dg/graphite/pr37684.c: Same.
3045 * testsuite/gcc.dg/graphite/block-2.c: Same.
3047 * graphite.c (struct ivtype_map_elt): New.
3048 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
3049 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
3050 gcc_type_for_cloog_iv): New.
3051 (loop_iv_stack_patch_for_consts): Use the type of the induction
3052 variable from the original loop, except for the automatically
3053 generated loops, i.e., in the case of a strip-mined loop, in
3054 which case there is no original loop: in that case just use
3056 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
3057 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
3058 (clast_name_to_gcc): Accept params to be NULL.
3059 (clast_to_gcc_expression): Take an extra parameter for the type.
3060 Convert to that type all the expressions built by this function.
3061 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
3062 (graphite_translate_clast_equation): Compute the type of the
3063 clast_equation before translating its LHS and RHS.
3064 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
3065 (graphite_create_new_loop): Compute the type of the induction
3066 variable before translating the lower and upper bounds and before
3067 creating the induction variable.
3068 (rename_variables_from_edge, rename_phis_end_scop): New.
3069 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
3070 (sese_add_exit_phis_edge): Do not use integer_zero_node.
3071 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
3072 compute_cloog_iv_types): New.
3073 (gloog): Call compute_cloog_iv_types before starting the
3074 translation of the clast.
3076 * graphite.h (struct graphite_bb): New field cloog_iv_types.
3077 (GBB_CLOOG_IV_TYPES): New.
3078 (debug_ivtype_map): Declared.
3079 (oldiv_for_loop): New.
3081 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
3084 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
3085 (param_index): Assert if parameter is not know after parameter
3087 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
3088 (find_scop_parameters): Mark, that we have finished parameter
3090 (graphite_transform_loops): Move condition detection before parameter
3092 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
3093 * testsuite/gfortran.dg/graphite/pr38459.f90: New.
3095 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
3097 * graphite.c (graphite_transform_loops): Always call find_transform ()
3098 in ENABLE_CHECKING. So we test these code paths, even if we do not
3101 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
3103 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
3104 (print_scop): Ditto.
3106 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
3109 Fix testsuite/gfortran.dg/graphite/id-3.f90.
3110 * graphite.c (scopdet_basic_block_info): Fix bug that found some
3111 regions more than once.
3113 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
3115 Fix testsuite/gfortran.dg/graphite/id-4.f90.
3116 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
3119 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
3121 Fix testsuite/gfortran.dg/graphite/id-1.f90.
3122 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
3123 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
3124 (max_precision_type): New.
3125 (value_clast): Removed.
3126 (clast_to_gcc_expression): Be more careful to types of expressions.
3127 Use max_precision_type and update use of gmp_cst_to_tree.
3128 (graphite_translate_clast_equation): Use max_precision_type.
3129 (graphite_create_guard_cond_expr): Do not use integer_type_node,
3130 use the type of the condition.
3131 (graphite_create_new_loop): Do not use integer_type_node, use the
3132 max_precision_type of lb and ub.
3134 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
3136 * graphite.c (build_scops_1): Initialize open_scop.exit
3139 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
3141 * testsuite/gcc.dg/graphite/pr38084.c: New.
3142 * testsuite/gfortran.dg/graphite/id-1.f90: New.
3143 * testsuite/gfortran.dg/graphite/id-2.f90: New.
3144 * testsuite/gfortran.dg/graphite/id-3.f90: New.
3145 * testsuite/gfortran.dg/graphite/id-4.f90: New.
3146 * testsuite/gfortran.dg/graphite/pr37857.f90: New.
3148 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
3149 Jan Sjodin <jan.sjodin@amd.com>
3150 Harsha Jagasia <harsha.jagasia@amd.com>
3162 * testsuite/gcc.dg/graphite/pr38073.c: New.
3163 * testsuite/gcc.dg/graphite/pr37928.c: New.
3164 * testsuite/gcc.dg/graphite/pr37883.c: New.
3165 * testsuite/gcc.dg/graphite/pr38125.c: New.
3166 * testsuite/gfortran.dg/graphite/pr38083.f90: New.
3167 * testsuite/gfortran.dg/graphite/pr37852.f90: New.
3168 * testsuite/gfortran.dg/graphite/pr37980.f90: New.
3170 * testsuite/gcc.dg/graphite/scop-18.c: Remove reduction, test for
3171 the number of detected scops. Copy exact same test for loop
3173 * testsuite/gcc.dg/graphite/block-1.c: Fix the number of expected
3174 loops to be blocked as reductions are not handled.
3175 * testsuite/gcc.dg/graphite/block-4.c: ...here. New.
3177 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
3178 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
3180 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
3181 * Makefile.in (graphite.o): Depend on value-prof.h.
3182 (graphite.o-warn): Removed -Wno-error.
3183 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
3184 to be a NULL pointer. Call update_stmt. Return the newly created
3185 cannonical induction variable.
3187 * graphite.h (debug_rename_map): Declared. Fix some comments.
3189 * graphite.c: Reimplement the code generation from graphite to gimple.
3190 Include value-prof.h.
3191 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
3192 (get_old_iv_from_ssa_name): Removed.
3193 (graphite_stmt_p): New.
3194 (new_graphite_bb): Test for useful statements before building a
3195 graphite statement for the basic block.
3196 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
3197 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
3199 (recompute_all_dominators, graphite_verify,
3200 nb_reductions_in_loop, graphite_loop_normal_form): New.
3201 (scop_record_loop): Call graphite_loop_normal_form.
3202 (build_scop_loop_nests): Iterate over all the blocks of the
3203 function instead of relying on the incomplete information from
3204 SCOP_BBS. Return the success of the operation.
3205 (find_params_in_bb): Use the data from GBB_DATA_REFS.
3206 (add_bb_domains): Removed.
3207 (build_loop_iteration_domains): Don't call add_bb_domains.
3208 Add the iteration domain only to the basic blocks that have been
3209 translated to graphite.
3210 (build_scop_conditions_1): Add constraints only if the basic
3211 block have been translated to graphite.
3212 (build_scop_data_accesses): Completely disabled until data
3213 dependence is correctly implemented.
3214 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
3215 (remove_all_edges_1, remove_all_edges): Removed.
3216 (get_new_name_from_old_name): New.
3217 (graphite_rename_variables_in_stmt): Renamed
3218 rename_variables_in_stmt. Call get_new_name_from_old_name.
3219 Use replace_exp and update_stmt.
3220 (is_old_iv): Renamed is_iv.
3221 (expand_scalar_variables_stmt): Extra parameter for renaming map.
3222 Use replace_exp and update_stmt.
3223 (expand_scalar_variables_expr): Same. Use the map to get the
3224 new names for the renaming of induction variables and for the
3225 renaming of variables after a basic block has been copied.
3226 (expand_scalar_variables): Same.
3227 (graphite_rename_variables): Renamed rename_variables.
3228 (move_phi_nodes): Removed.
3229 (get_false_edge_from_guard_bb): New.
3230 (build_iv_mapping): Do not insert the induction variable of a
3231 loop in the renaming iv map if the basic block does not belong
3233 (register_old_new_names, graphite_copy_stmts_from_block,
3234 copy_bb_and_scalar_dependences): New.
3235 (translate_clast): Heavily reimplemented: copy basic blocks,
3236 do not move them. Finally, in call cleanup_tree_cfg in gloog.
3237 At each translation step call graphite_verify ensuring the
3238 consistency of the SSA, loops and dominators information.
3239 (collect_virtual_phis, find_vdef_for_var_in_bb,
3240 find_vdef_for_var_1, find_vdef_for_var,
3241 patch_phis_for_virtual_defs): Removed huge hack.
3242 (mark_old_loops, remove_dead_loops, skip_phi_defs,
3243 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
3244 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
3245 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
3246 if_region_get_condition_block, if_region_set_false_region,
3247 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
3248 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
3249 sese_add_exit_phis_edge, sese_add_exit_phis_var,
3250 rewrite_into_sese_closed_ssa): New.
3251 (gloog): Remove dead code. Early return if code cannot be
3252 generated. Call cleanup_tree_cfg once the scop has been code
3254 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
3255 block loops with less than two loops.
3256 (graphite_apply_transformations): Remove the call to
3257 scop_remove_ignoreable_gbbs.
3258 (limit_scops): When build_scop_loop_nests fails, continue on
3259 the next scop. Fix open_scop.entry.
3260 (graphite_transform_loops): Call recompute_all_dominators: force the
3261 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
3262 Call initialize_original_copy_tables and free_original_copy_tables
3263 to be able to copy basic blocks during code generation.
3264 When build_scop_loop_nests fails, continue on next scop.
3265 (value_clast): New union.
3266 (clast_to_gcc_expression): Fix type cast warning.
3268 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
3270 * Merge from mainline (r140838:141727).
3272 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
3276 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
3278 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
3282 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
3283 exits and conditions.
3284 * testsuite/gcc.dg/graphite/pr37943.c: New.
3286 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
3289 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
3291 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
3293 * doc/invoke.texi: Fix spaces.
3295 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
3297 PR tree-optimization/37891
3298 Reverted last commit.
3299 * graphite.c (create_single_entry_edge): Set
3300 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
3302 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
3303 Mitul Thakkar <mitul.thakkar@amd.com>
3305 * graphite.c (create_single_entry_edge): Set
3306 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
3308 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
3310 * doc/invoke.texi: Add -fgraphite-identity.
3311 * graphite.c (graphite_apply_transformations): Check for
3312 -fgraphite-identity.
3313 * toplev.c (process_options): Add flag_graphite_identity.
3314 * tree-ssa-loop.c: Add flag_graphite_identity.
3316 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
3318 Undo changes from 2008-10-02:
3319 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
3320 operand type when copying the operand to a variable of different type.
3321 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
3322 with the IV name after increment.
3324 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
3325 Harsha Jagasia <harsha.jagasia@amd.com>
3327 PR tree-optimization/37828
3328 * testsuite/gcc.dg/graphite/pr37828.c: New.
3329 * graphite.c (graphite_trans_loop_block): Do not loop block
3330 single nested loops.
3332 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
3333 Sebastian Pop <sebastian.pop@amd.com>
3335 * graphite.c (struct rename_map_elt, new_rename_map_elt,
3336 rename_map_elt_info, eq_rename_map_elts): New.
3337 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
3338 (expand_scalar_variables_expr): Change parameters.
3339 (expand_scalar_variables_stmt): Same.
3340 (expand_scalar_variables): Same.
3341 (graphite_rename_ivs): Rename graphite_rename_variables.
3342 (build_iv_mapping): New.
3343 (translate_clast): Call build_iv_mapping.
3344 * graphite.h (gbb_p): New name.
3346 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
3348 PR tree-optimization/37684
3349 * gcc.dg/graphite/pr37684.c: New.
3350 * graphite.c (exclude_component_ref): New.
3351 (is_simple_operand): Call exclude_component_ref.
3353 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
3354 Harsha Jagasia <harsha.jagasia@amd.com>
3356 PR tree-optimization/37485
3357 * gcc.dg/graphite/block-2.c: New
3358 * graphite.c (gmp_cst_to_tree): Moved.
3359 (iv_stack_entry_is_constant): New.
3360 (iv_stack_entry_is_iv): New.
3361 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
3362 (loop_iv_stack_insert_constant): New.
3363 (loop_iv_stack_pop): Use new datatpype.
3364 (loop_iv_stack_get_iv): Same.
3365 (loop_iv_stack_get_iv_from_name): Same.
3366 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
3367 (loop_iv_stack_patch_for_consts): New.
3368 (loop_iv_stack_remove_constants): New.
3369 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
3370 (translate_clast): Call loop_iv_stack_patch_for_consts and
3371 loop_iv_stack_remove_constants.
3372 (gloog): Use new datatype. Redirect construction edge to end
3373 block to avoid accidental deletion.
3374 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
3376 (union iv_stack_entry_data): New. Data in iv stack entry.
3377 (struct iv_stack_entry): New. Datatype for iv stack entries.
3379 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3381 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
3382 operand type when copying the operand to a variable of different type.
3384 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3386 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
3387 with the IV name after increment.
3389 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
3391 * Merge from mainline (r140164:140838).
3393 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
3395 * graphite-data-ref.c: New.
3396 * graphite.c (print_scop): Also dump the dependence graph.
3397 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
3398 (new_scop): Initialize SCOP_DEP_GRAPH.
3399 (build_scop_dynamic_schedules): New.
3400 (build_access_matrix_with_af): Fixed column numbering.
3401 (graphite_transform_loops): Call build_scop_dynamic_schedules.
3402 * graphite.h: Add ifndef/define guards against multiple inclusion.
3403 (struct scop): Add dep_graph field.
3404 (SCOP_DEP_GRAPH): Defined.
3405 (ref_nb_loops): Fixed and moved to other position.
3406 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
3407 (nb_loops_around_loop_in_scop): New.
3408 (graphite_dump_dependence_graph): Declared.
3409 (graphite_build_rdg_all_levels): Declared.
3410 (graphite_test_dependence): Declared.
3411 * Makefile.in (graphite-data-ref.o): New target.
3413 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
3415 * Merge from mainline (139870:140164).
3417 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
3419 * Merge from mainline (138275:139870).
3420 * testsuite/gcc.dg/graphite/scop-matmult.c: XFailed as one of
3421 the commits from trunk broke the niter detection.
3423 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
3425 * graphite.c: Add more documentation. Fix formatting.
3426 (debug_loop_vec, debug_oldivs, loop_iv_stack,
3427 loop_iv_stack_debug): Moved...
3428 (schedule_to_scattering): Move before use.
3429 (dot_all_scops): Include in "#if 0" the code for system
3432 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
3433 loop_iv_stack_debug): ...here.
3435 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
3437 * tree-phinodes.c (make_phi_node): Extern.
3438 (add_phi_node_to_bb): New.
3439 (create_phi_node): Call add_phi_node_to_bb.
3440 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
3441 (remove_statement): Handle case where stored phi was updated
3442 and is no longer the same.
3443 * graphite.c (is_parameter): New.
3445 (expand_scalar_variables_expr): New.
3446 (expand_scalar_variables_stmt): New.
3447 (expand_scalar_variables): New.
3448 (move_phi_nodes): Create new phi instead of moving old one.
3449 (translate_clast): Call expand_scalar_variables.
3450 (find_vdef_for_var_in_bb): Also scan regular definitions.
3451 (skip_phi_defs): New.
3452 (collect_scop_exit_phi_args): New.
3453 (patch_scop_exit_phi_args): New.
3454 (gloog): Patch phis after scop.
3455 * tree-flow.h: (add_phi_node_to_bb): Declared.
3456 (make_phi_node): Declared.
3458 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
3460 * graphite.c (end_scop): Split the entry of the scop when it
3461 is the header of the loop in which the scop is ending.
3462 (build_scops_1, limit_scops): Update uses of end_scop.
3464 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
3466 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
3467 SCOP_ENTRY or SCOP_EXIT.
3469 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3471 * graphite.c (get_construction_edge): Removed.
3472 (gloog): Construction edge is the scop entry edge.
3474 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3476 * graphite.c (can_generate_for_scop): Removed.
3477 (gloog): Do not call it.
3479 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3481 * graphite.c (new_scop): Entry of a scop is an edge.
3482 Initialize SESE region.
3483 (free_scop): Free SESE region.
3484 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
3485 (split_difficult_bb): New, split from end_scop.
3486 (end_scop): Exit of a scop is an edge.
3487 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
3488 not automatically updated and thus is always wrong.
3489 * graphite.h (struct sese): New.
3492 (struct scop): New field for a SESE region. Remove entry, exit.
3493 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
3494 semantics as before. Moved comment around.
3496 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3497 Sebastian Pop <sebastian.pop@amd.com>
3499 * graphite.c (graphite_transform_loops): Always enable gloog
3500 and find_transform when ENABLE_CHECKING.
3502 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3504 * graphite.c (graphite_transform_loops): Move pretty printer
3505 of SCOPs before doing any transform. Remove call to print_scops
3506 and dot_all_scops_1.
3508 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3510 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
3511 (print_graphite_bb): Same.
3513 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3515 * graphite.c (dot_all_scops_1): Cleanup.
3516 (move_scops): Fix comment.
3518 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
3520 * graphite.c (build_scop_bbs): Revert commit 139355:
3522 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3523 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3525 * graphite.c (build_scop_bbs): Factor up code.
3527 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3529 * graphite.c (gloog): Update dominator info.
3531 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
3533 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
3535 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3537 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
3539 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
3540 (translate_clast): Correct formatting.
3541 * graphite.h (struct num_map): Removed.
3542 (struct graphite_bb): Remove num_map field.
3543 (GBB_INDEX_TO_NUM_MAP): Removed.
3545 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3547 * graphite.c (build_access_matrix_with_af): Fix comments.
3548 (build_scop_data_accesses): Same.
3550 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3552 * graphite.c (build_scop_data_accesses): Don't construct
3553 access matrices. Add a FIXME and an assert condition that
3554 should pass when the access matrices will be needed.
3556 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
3558 * tree-data-ref.c (stmt_simple_memref_p): Don't call
3560 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
3561 Moved close by free_graphite_bb.
3562 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
3563 (new_scop): Move close by free_scop.
3564 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
3566 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
3568 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
3569 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
3570 instead of recursive call.
3571 (graphite_translate_clast_equation): New.
3572 (graphite_create_guard_cond_expr): New.
3573 (graphite_create_new_guard): New.
3574 (get_stack_index_from_iv): Removed.
3575 (graphite_rename_ivs_stmt): Use gbb_loop_index.
3576 (get_true_edge_from_guard_bb): New.
3577 (translate_clast): Handle stmt_guard in clast.
3578 (get_construction_edge): Allow construction edge detection for
3579 a scope entry with multiple predecessors if one predecessor is
3580 the immediate dominator of scope entry.
3581 (can_generate_code_stmt): Enable code generation for clast_guard.
3582 (gloog): Use correct context loop. Removed check for post dominators.
3583 * cfgloop.h (create_empty_if_region_on_edge): Declared.
3585 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3587 * graphite.c (remove_dead_loops): Document better which
3590 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3592 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
3594 (graphite.o): Also depends on pointer-set.h.
3596 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3598 * graphite.c (scop_record_loop): Fix compile warning.
3600 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
3601 Sebastian Pop <sebastian.pop@amd.com>
3603 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
3605 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
3607 * graphite.c (build_graphite_bb): Initialize bb->aux to
3608 point to the graphite_bb_p.
3609 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
3611 (add_bb_domains): Does not use the scop parameter.
3612 (graphite_transform_loops): Clean bb->aux at the end.
3614 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3615 Sebastian Pop <sebastian.pop@amd.com>
3617 * testsuite/lib/target-supports.exp
3618 (check_effective_target_fgraphite): New.
3620 * testsuite/gcc.dg/graphite/graphite.exp: Early exit when
3621 check_effective_target_fgraphite returns false.
3622 Set dg-do-what-default to compile.
3623 (scan-graphite-dump-times): Removed.
3624 * testsuite/gfortran.dg/graphite/graphite.exp: Same.
3626 * testsuite/gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
3627 Use scan-tree-dump-times instead of scan-graphite-dump-times.
3628 * testsuite/gcc.dg/graphite/scop-1.c: Same.
3629 * testsuite/gcc.dg/graphite/scop-2.c: Same.
3630 * testsuite/gcc.dg/graphite/scop-3.c: Same.
3631 * testsuite/gcc.dg/graphite/scop-4.c: Same.
3632 * testsuite/gcc.dg/graphite/scop-5.c: Same.
3633 * testsuite/gcc.dg/graphite/scop-6.c: Same.
3634 * testsuite/gcc.dg/graphite/scop-7.c: Same.
3635 * testsuite/gcc.dg/graphite/scop-8.c: Same.
3636 * testsuite/gcc.dg/graphite/scop-9.c: Same.
3637 * testsuite/gcc.dg/graphite/scop-10.c: Same.
3638 * testsuite/gcc.dg/graphite/scop-11.c: Same.
3639 * testsuite/gcc.dg/graphite/scop-12.c: Same.
3640 * testsuite/gcc.dg/graphite/scop-13.c: Same.
3641 * testsuite/gcc.dg/graphite/scop-matmult.c: Same.
3642 * testsuite/gcc.dg/graphite/scop-14.c: Same.
3643 * testsuite/gcc.dg/graphite/scop-15.c: Same.
3644 * testsuite/gcc.dg/graphite/block-0.c: Same.
3645 * testsuite/gcc.dg/graphite/scop-16.c: Same.
3646 * testsuite/gcc.dg/graphite/block-1.c: Same.
3647 * testsuite/gcc.dg/graphite/scop-17.c: Same.
3648 * testsuite/gcc.dg/graphite/scop-18.c: Same.
3649 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
3650 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
3651 * testsuite/gfortran.dg/graphite/block-2.f: Same.
3653 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3655 * graphite.c: Fix some XXX comments.
3656 (build_scop_dynamic_schedules): Removed.
3658 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3660 * graphite.h (scop_max_loop_depth): Moved...
3661 * graphite.c (scop_max_loop_depth): ...here.
3662 (remove_all_edges_1): New.
3663 (remove_all_edges): Factored code.
3664 (remove_cond_exprs): Check only the last statement for
3665 a GIMPLE_COND expression.
3667 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3669 * graphite.c (scan_tree_for_params): Early return when the
3670 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
3671 (find_scop_parameters): Factor out code.
3672 (graphite_trans_bb_strip_mine): Remove dead code.
3674 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3676 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
3677 graphite_trans_bb_move_loop): Factor asserts.
3678 (gloog): Perform sanity checks only for ENABLE_CHECKING.
3679 Do not call calculate_dominance_info and estimate_bb_frequencies.
3681 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
3683 * graphite.c (create_loops_mapping, free_loops_mapping,
3684 create_loops_mapping_num, debug_loop_mapping_1,
3685 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
3686 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
3687 graphite_loops_mapping_add_child_num,
3688 graphite_loops_mapping_insert_child,
3689 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
3690 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
3691 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
3692 create_num_from_index, get_num_from_index,
3693 swap_loop_mapped_depth): Removed.
3694 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
3695 (free_scop): Do not call free_loops_mapping.
3696 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
3697 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
3698 get_loop_mapped_depth.
3699 (graphite_trans_bb_move_loop): Do not update the loop mapping.
3700 (graphite_trans_bb_strip_mine): Same.
3701 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
3702 (struct scop): Remove field loops_mapping.
3704 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3705 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3707 * graphite.c (scop_record_loop): Factor out one level of the
3708 condition by early return.
3709 (build_scop_loop_nests): Format following FSF coding style.
3710 (build_scop_dynamic_schedules): Factor out code.
3711 (scopdet_bb_info): Reindent. Default case should not be reachable.
3713 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3714 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3716 * graphite.c (loop_affine_expr): Check for DECL_P or struct
3717 assignments that are not handled as simple operands for now.
3719 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3720 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3722 * graphite.c (build_scop_bbs): Factor up code.
3724 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3725 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3727 * graphite.c (stmt_simple_for_scop_p): Factor code out
3729 (enum gbb_type): New. Group all the GBB_* types under it.
3730 (is_loop_exit): Moved...
3731 (end_scop): Enable BB spliting.
3732 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
3733 * cfgloop.h (is_loop_exit): Declared.
3735 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3737 * doc/invoke.texi: Remove strides from examples containing
3738 DO loops when the strides are equal to 1.
3740 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
3741 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3743 * graphite.c (graphite_trans_scop_block): Or the result with
3744 the result from graphite_trans_loop_block.
3745 * testsuite/gcc.dg/graphite/block-1.c: New.
3746 * testsuite/gfortran.dg/graphite/block-1.f90: New.
3747 * testsuite/gfortran.dg/graphite/block-2.f: New.
3749 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3751 * graphite.c (graphite_transform_loops): Call cloog_initialize
3754 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3756 * tree-data-ref.c) (stmt_simple_memref_p): New.
3757 * tree-data-ref.h (stmt_simple_memref_p): Declared.
3758 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
3759 (is_simple_operand): Call stmt_simple_memref_p.
3761 * testsuite/gcc.dg/graphite/scop-matmult.c: Updated for not
3762 using pointer arithmetic, as this is optimized by PRE and
3763 makes the code too difficult to analyze.
3765 * testsuite/gcc.dg/graphite/scop-18.c: Same.
3767 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
3769 * gdbinit.in (pgg): New.
3771 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3773 * graphite.c (graphite_trans_loop_block): Fix warning.
3775 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3777 * graphite.c (graphite_trans_loop_block): Fix my merge error.
3779 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
3781 * graphite.c (graphite_trans_bb_block): Remove check for
3782 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
3783 Check if loop blocking is profitable for every loop, before applying
3785 (graphite_apply_transformations): Call graphite_trans_bb_block only,
3786 if flag_loop_block is set.
3788 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3790 * graphite.c: Add some more documentation for the loop
3793 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3795 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
3796 * graphite.c: Format on less than 80 columns.
3799 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3801 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
3803 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
3805 * doc/invoke.texi (floop-block, floop-strip-mine,
3806 floop-interchange): Update documentation with examples.
3808 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
3810 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
3812 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
3814 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
3816 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
3817 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
3818 * tree-scalar-evolution.c: Revert useless changes.
3819 * tree-phinodes.c: Same.
3822 * tree-vectorizer.h: Same.
3823 * tree-flow.h: Same.
3825 * common.opt (fgraphite): Update documentation.
3827 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
3829 * doc/invoke.texi (-floop-block, -floop-strip-mine,
3830 -floop-interchange): Add more text for explaining what each of these
3832 * tree-into-ssa.c (gimple_vec): Moved to...
3833 * graphite.c: Include gimple.h.
3834 (gimple_vec): Moved to...
3835 (del_loop_to_cloog_loop): Removed.
3836 (loop_affine_expr): Do not call create_data_ref when the
3837 operand is a constant.
3838 (new_scop): Use free instead of del_loop_to_cloog_loop.
3839 * Makefile.in (graphite.o): Depend on GIMPLE_H.
3840 * gimple.h (gimple_vec): ... here.
3842 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3844 * graphite.c (scopdet_bb_info): Only allow loops with known number of
3846 (build_loop_iteration_domains): Fail, if latch executions unknown.
3848 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3850 * graphite.c (add_conditions_to_domain): New.
3851 (build_scop_conditions_1): Call add_conditions_to_domain.
3852 (set_cloog_options): Allow to disable optimizations.
3854 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3856 * graphite.c (find_params_in_bb): Look for parameters in conditions.
3857 Do not use walk_dominator_tree.
3858 (find_scop_parameters): Do not use walk_dominator_tree.
3860 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3862 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
3863 (idx_record_params): Adapt.
3864 * graphite.h (scop_gimple_loop_depth): New.
3866 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3868 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
3869 (scan_tree_for_params): Remove value_init.
3870 (build_scop_context): Remove value_init.
3871 (build_loop_iteration_domains): Remove value_init.
3872 (schedule_to_scattering): Remove value_init.
3873 (graphite_trans_bb_strip_mine): Remove value_init.
3875 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3877 * gcc/graphite.c (limit_scops): New.
3878 (graphite_transform_loops): Add limit SCoPs.
3879 * gcc/testsuite/gcc.dg/graphite/scop-0.c: Update number of SCoPs.
3880 * gcc/testsuite/gcc.dg/graphite/scop-1.c: Update number of SCoPs.
3881 * gcc/testsuite/gcc.dg/graphite/scop-10.c: Update number of SCoPs.
3882 * gcc/testsuite/gcc.dg/graphite/scop-11.c: Update number of SCoPs.
3883 * gcc/testsuite/gcc.dg/graphite/scop-12.c: Update number of SCoPs.
3884 * gcc/testsuite/gcc.dg/graphite/scop-13.c: Update number of SCoPs.
3885 * gcc/testsuite/gcc.dg/graphite/scop-14.c: Update number of SCoPs.
3886 * gcc/testsuite/gcc.dg/graphite/scop-15.c: Update number of SCoPs.
3887 * gcc/testsuite/gcc.dg/graphite/scop-16.c: Update number of SCoPs.
3888 Change loop numbers.
3889 * gcc/testsuite/gcc.dg/graphite/scop-17.c: Update number of SCoPs.
3890 Change loop numbers.
3891 * gcc/testsuite/gcc.dg/graphite/scop-18.c: Update number of SCoPs.
3892 * gcc/testsuite/gcc.dg/graphite/scop-2.c: Update number of SCoPs.
3893 * gcc/testsuite/gcc.dg/graphite/scop-3.c: Update number of SCoPs.
3894 * gcc/testsuite/gcc.dg/graphite/scop-4.c: Update number of SCoPs.
3895 * gcc/testsuite/gcc.dg/graphite/scop-5.c: Update number of SCoPs.
3896 * gcc/testsuite/gcc.dg/graphite/scop-6.c: Update number of SCoPs.
3897 * gcc/testsuite/gcc.dg/graphite/scop-7.c: Update number of SCoPs.
3898 * gcc/testsuite/gcc.dg/graphite/scop-8.c: Update number of SCoPs.
3899 * gcc/testsuite/gcc.dg/graphite/scop-9.c: Update number of SCoPs.
3900 * gcc/testsuite/gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
3902 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
3904 * graphite.c (graphite_transform_loops): Call always find_transform.
3906 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
3908 * graphite.c (free_loops_mapping): New.
3909 (stmt_simple_for_scop_p): Fix typo.
3910 (stmt_simple_for_scop_p): Fix tuples functions, that
3912 (free_graphite_bb): Fix some memleaks.
3913 (free_scop): Fix some memleaks.
3914 (scopdet_bb_info): Do not forget some tmp SCoPs.
3915 (find_params_in_bb): Fix some memleaks.
3916 (clast_to_gcc_expression): Fix warning.
3918 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
3920 * testsuite/gcc.dg/graphite/scop-16.c: Fix for 32bit.
3921 * testsuite/gcc.dg/graphite/scop-17.c: Fix for 32bit.
3923 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
3925 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
3926 Move code ifdef-ed HAVE_cloog...
3927 * graphite.c: Include toplev.h.
3929 * Makefile.in (OBJS-common): Always build graphite.o.
3930 (BACKEND): Remove @GRAPHITE@.
3931 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
3932 (graphite.o): Depend on TOPLEV_H.
3934 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
3936 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
3937 Remove typo left from polylib to ppl conversion.
3938 * graphite.c (graphite_transforms): Use sorry instead of fatal.
3940 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
3942 * toplev.c (process_options): Move the graphite loop optimization
3944 * tree-ssa-loop.c (graphite_transforms): ... here.
3945 When not configured with CLooG, print to dump_file that
3946 Graphite transforms were not performed.
3947 * testsuite/gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
3949 * testsuite/gcc.dg/graphite/*.c: Updated all testcases to use
3950 scan-graphite-dump-times.
3952 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
3954 * graphite.c (dot_scop, dot_all_scops): Do not call system.
3955 Do not open /tmp/scop.dot and /tmp/allscops.dot.
3957 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
3958 Jan Sjodin <jan.sjodin@amd.com>
3960 * configure: Regenerated.
3961 * omp-low.c (expand_omp_sections): Remove now unused code.
3962 * config.in (HAVE_polylib): Removed.
3963 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
3964 (PPLLIBS, PPLINC): Added.
3965 * graphite.c: Replace unsigned with int wherever possible.
3966 Don't access Cloog's data structures, but use accessor functions.
3967 Clast's stmt->type is now implemented as a vtable: change the
3968 switches of stmt->type into ifs.
3969 (polylib/polylibgmp.h): Don't include.
3970 (initialize_dependence_polyhedron,
3971 initialize_data_dependence_polyhedron, is_empty_polyhedron,
3972 statement_precedes_p, test_dependence, build_rdg_all_levels,
3973 dump_dependence_graph): Removed until this code is cleaned up
3975 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
3976 (POLYLIBINC): Renamed PPLINC.
3978 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
3979 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
3980 Jan Sjodin <jan.sjodin@amd.com>
3982 Finish the merge and tuplification of graphite.
3984 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
3985 Jan Sjodin <jan.sjodin@amd.com>
3987 Partial merge from mainline (138072:138275).
3988 * graphite.c still has to be tuplified.
3990 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
3992 * graphite.c (graphite_loops_mapping_max_loop_num): New.
3993 (create_num_from_index): New.
3994 (get_num_from_index): Also pass in the graphite BB.
3995 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
3996 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
3997 (graphite_trans_bb_strip_mine): Call create_num_from_index.
3998 (is_interchange_valid): Return false when failing.
3999 * graphite.h (struct num_map): New.
4000 (struct graphite_bb): New field num_map.
4001 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
4003 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
4005 * graphite.c (dump_gbb_conditions): Print also conditions like
4006 "if (a)". Remove dublicated code and use print_generic_expr ().
4007 (stmt_simple_for_scop_p): Only allow conditions we can handle
4010 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
4012 * graphite.h (struct scop): Removed new_ivs field.
4013 (SCOP_NEWIVS): Deleted.
4014 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
4015 clast_to_gcc_expression, graphite_create_new_loop):
4016 Removed use of new_ivs.
4018 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
4020 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
4021 create_loops_mapping_num, debug_loop_mapping_1): New.
4022 (debug_loop_mapping): Call debug_loop_mapping_1.
4023 (get_loop_mapping_for_num,
4024 graphite_loops_mapping_add_child,
4025 graphite_loops_mapping_add_child_num,
4026 graphite_loops_mapping_insert_child,
4027 graphite_loops_mapping_parent,
4028 split_loop_mapped_depth_for_num,
4029 loop_mapped_depth_split_loop): New.
4030 (increment_loop_mapped_depths): Removed.
4031 (swap_loop_mapped_depth_for_num): Reimplemented.
4032 (new_scop): Call create_loops_mapping.
4033 (scop_record_loop): Call graphite_loops_mapping_insert_child.
4034 (translate_clast): Pass the old loop father in parameter, and pass
4035 it to get_old_iv_from_ssa_name.
4036 (remove_edges_around_useless_blocks, can_generate_code_stmt,
4037 can_generate_code, can_generate_for_scop): New.
4038 (graphite_trans_bb_block): Returns false when it fails to transform.
4039 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
4041 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
4043 Reverted all the changes related to the streamization and
4045 These changes are now tracked in the streamization branch.
4047 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
4048 Jan Sjodin <jan.sjodin@amd.com>
4050 * graphite.c (gbb_compare): Correctly constify.
4051 (gbb_can_be_ignored): Indent.
4052 (graphite_trans_scop_swap_1and2): Add legality check.
4055 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
4057 Remove fallouts from "Reverted the Condate changes".
4058 * tree.h: Remove unused decl.
4059 * testsuite/gcc.dg/tree-checker: Same.
4060 * timevar.def: Remove counter.
4062 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
4064 * Merge from mainline (135673:138072).
4066 Reverted the MIRO changes (from 2008-04-05) that are now
4067 tracked in the miro branch.
4068 * tree-bounds.c: Removed.
4069 * tree-bounds.h: Removed.
4071 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
4072 are now tracked in the condate branch.
4073 * tree-check.c: Removed.
4074 * tree-match.c: Removed.
4075 * condate.y: Removed.
4077 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4079 * common.opt: New user flag -floop-block, -floop-strip-mine
4080 and -floop-interchange.
4081 * toplev.c (process_options): Enable -fgraphite pass if any one of the
4082 graphite loop optimization flags is turned on.
4083 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
4084 flag_loop_strip_mine and flag_loop_interchange checks before
4086 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
4087 -floop-strip-mine and -floop-interchange.
4088 * testsuite/gcc.dg/graphite/block-0.c: Add -floop-block and remove
4090 * testsuite/gcc.dg/graphite/scop-16.c: Ditto.
4091 * testsuite/gcc.dg/graphite/scop-17.c: Ditto.
4092 * testsuite/gcc.dg/graphite/scop-18.c: Ditto.
4094 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
4095 Sebastian Pop <sebastian.pop@amd.com>
4097 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
4098 (create_empty_loop_on_edge): More fixes.
4099 * tree-phinodes.c (resize_phi_node): Extern.
4100 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
4101 * cfghooks.c (update_dominator_information): New split from
4103 * tree-vectorizer.c (rename_variables_in_bb): Extern.
4104 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
4105 successor of the function entry block.
4107 * graphite.c: Include pointer-set.h.
4108 (debug_loop_mapping, increment_loop_mapped_depths,
4109 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
4110 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
4111 swap_loop_mapped_depth_for_num, get_num_from_index,
4112 swap_loop_mapped_depth, loop_iv_stack_debug,
4113 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
4114 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
4115 get_old_iv_from_ssa_name): New.
4116 (new_scop): Initialize SCOP_LOOPS_MAPPING.
4117 (free_scop): Free SCOP_LOOPS_MAPPING.
4118 (scop_record_loop): Record old ivs.
4119 (create_var_name): Removed.
4120 (initialize_cloog_names): Allocate double space in case strip mine
4121 applies to all loops once.
4122 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
4123 (clast_to_gcc_expression): Same. Implement more clast to gimple
4125 (graphite_create_new_loop): Pass in ivstack.
4126 (remove_all_edges): Pass in the construction_edge.
4127 (graphite_remove_iv): Removed.
4128 (graphite_rename_ivs, graphite_rename_ivs_stmt,
4129 remove_cond_exprs): Rewritten.
4130 (move_phi_nodes): New.
4131 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
4132 (translate_clast): Pass in ivstack. Rewrite some cases.
4133 (set_cloog_options, debug_clast_stmt): New.
4134 (find_transform): Use set_cloog_options.
4135 (outermost_loop_layer): Removed.
4136 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
4137 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
4138 mark_old_loops, remove_dead_loops): New.
4140 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
4141 (const_column_index, get_first_matching_sign_row_index,
4142 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
4143 get_upper_bound): New.
4144 (graphite_trans_bb_strip_mine): Also update the iv map.
4146 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
4147 (struct name_tree): Add a loop field.
4148 (struct scop): Add a graphite_loops_mapping field.
4149 (SCOP_LOOPS_MAPPING): New.
4150 (debug_clast_stmt): Declare.
4151 * lambda.h (find_induction_var_from_exit_cond): Declare.
4152 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
4153 * cfgloop.h (update_dominators_in_loop): Removed declaration.
4154 (create_empty_loop_on_edge): Updated.
4155 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
4156 rename_variables_in_bb): Declare.
4157 * tree-cfg.c (remove_bb): Extern.
4159 * testsuite/gcc.dg/graphite/block-0.c: New.
4161 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4162 Sebastian Pop <sebastian.pop@amd.com>
4164 * graphite.c (strip_mine_profitable_p): New.
4165 (graphite_trans_bb_block): Disable strip mining if not profitable.
4167 * testsuite/gcc.dg/graphite/scop-18.c: New.
4168 * testsuite/gcc.dg/graphite/scop-17.c: Fixed.
4169 * testsuite/gcc.dg/graphite/scop-16.c: Fixed.
4171 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
4172 Jan Sjodin <jan.sjodin@amd.com>
4173 Sebastian Pop <sebastian.pop@amd.com>
4175 * graphite.c (is_interchange_valid): New.
4176 (graphite_trans_bb_block): Check loop nest of basic block for legality
4179 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
4180 outer_most_loop, gbb_outer_most_loop_index): New.
4182 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
4183 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
4184 * testsuite/gcc.dg/graphite/scop-16.c: New.
4185 * testsuite/gcc.dg/graphite/scop-17.c: New.
4187 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
4189 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
4190 (graphite_trans_scop_block): Ignore SCoPs without bbs.
4192 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
4194 * graphite.c (new_scop): Initialize SCOP_EXIT.
4195 (scopdet_info): Add.
4196 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
4197 (build_scops_1): Cleanup, bugfixes.
4198 (build_scops): Cleanup.
4200 * testsuite/gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
4201 * testsuite/gcc.dg/graphite/scop-15.c: Add SCoP numbers.
4203 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
4205 * testsuite/gfortran.dg/graphite/scop-1.f: Update to reduced test case.
4207 * testsuite/gfortran.dg/graphite/graphite.exp: Use
4208 DEFAULT_GRAPHITE_FLAGS.
4210 * testsuite/gcc.dg/graphite/scop-15.c: Update to reduced test case.
4212 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
4214 * graphite.c (scan_tree_for_params): Do not assert any more if
4215 MULT_EXPR parameter is negative.
4217 * testsuite/gfortran.dg/graphite/scop-1.f: New.
4219 * testsuite/gfortran.dg/graphite/graphite.exp: New.
4221 * testsuite/gcc.dg/graphite/scop-15.c: New.
4223 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
4225 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
4227 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
4229 * graphite.c (graphite_trans_bb_swap_loops): Rename from
4230 graphite_swap_loops.
4231 (graphite_trans_bb_move_loop): New.
4232 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
4233 (graphite_trans_bb_block): New.
4234 (graphite_trans_loop_block): New.
4235 (graphite_trans_scop_swap_1and2): Rename from
4236 graphite_trans_swap_1and2.
4237 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
4238 (graphite_trans_scop_block): New.
4239 (graphite_apply_transformations): Rename from
4240 graphite_transformations.
4242 * testsuite/gcc.dg/graphite/scop-matmult.c: New.
4244 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
4246 * graphite.c (gbb_compare): New.
4247 (graphite_sort_gbbs): New.
4248 (gbb_can_be_ignored): New.
4249 (scop_remove_ignoreable_gbbs): New.
4250 (graphite_transformations): Cleanup and add
4251 scop_remove_ignoreable_gbbs.
4252 * lambda.h (lambda_vector_compare): New.
4254 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
4256 * graphite.c (print_graphite_bb): Correct printing of static schedule.
4257 (graphite_swap_loops): int -> unsigned
4258 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
4259 (graphite_transformations): New.
4260 (graphite_transform_loops): Move to graphite_transformations.
4261 * graphite.h (gbb_nb_loops): Return unsigned.
4263 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
4265 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
4266 the domain matrix. This makes scop-0.c work again.
4268 2008-06-20 Richard Guenther <rguenther@suse.de>
4270 * graphite.h: Adjust copyright to GPLv3.
4271 * graphite.c: Likewise.
4272 (stmt_simple_memref_for_scop_p): Split out from ...
4273 (stmt_simple_for_scop_p): ... here. Fix handling of calls
4275 (get_bb_type): Optimize.
4277 (is_bb_addable): Fix memleak, replace is_pred call with
4279 (build_scops): Use current_loops.
4280 (param_index): Fix memleak.
4282 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4284 * graphite.c: Fix formatting.
4286 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4288 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
4289 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
4290 (create_var_name, save_var_name): Newly defined functions.
4291 (initialize_cloog_names): Part of the code factored out to
4293 (clast_to_gcc_expression): Now handles the case of clast_red_sum
4294 in clast_reduction statement.
4295 (graphite_create_new_loop): Now takes a new parameter
4297 (translate_clast): Now also takes the context_loop and bb_exit
4298 parameters. Rewritten the code so that it creates a gimple code
4299 inside the given context.
4300 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
4301 remove_cond_expr, disconnect_cond_expr,
4302 disconnect_virtual_phi_nodes): Newly defined functions.
4303 * graphite.h (struct scop): added old_ivs vector.
4304 SCOP_OLDIVS: New macro.
4306 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
4308 * cfgloopmanip.c: Add missing function comments, fix formatting.
4310 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4312 * cfgloopmanip.c (update_dominators_in_loop): Defined.
4313 (create_empty_loop_on_edge): Defined.
4314 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
4316 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
4317 (update_dominators_in_loop): Declared as extern
4318 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
4320 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
4322 * graphite.c (print_graphite_bb): Allow changing number of loops
4324 (initialize_cloog_names): Allow changing number of loops.
4325 (build_cloog_prog): Simplify.
4326 (find_transform): Enable cloog option --strides.
4327 (graphite_swap_loops): New.
4328 (graphite_strip_mine_loop): New.
4329 (graphite_trans_swap_1and2): New.
4330 (graphite_trans_strip): New.
4331 (graphite_transform_loops): Add graphite_trans_strip.
4332 * graphite.h (scop_max_loop_depth): New.
4334 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
4336 * graphite.c (build_scop_iteration_domain): Remove forgotten
4337 line. (Fixes compile)
4339 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
4341 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
4342 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
4343 (build_bb_loops): New.
4344 (graphite_transform_loops): Add build_bb_loops.
4345 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
4347 * graphite.h (graphite_bb): Add loops.
4348 (gbb_nb_loops): New.
4349 (gbb_loop_at_index): New.
4350 (gbb_loop_index): New.
4351 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
4352 using nb_params_in_scop.
4354 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
4356 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
4357 (build_scop_canonical_schedules): Build minimized schedule.
4358 (schedule_to_scattering): Adapt to minimized schedule.
4359 * graphite.h (graphite_bb): Add/Update descriptions.
4361 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
4362 Tobias Grosser <grosser@fim.uni-passau.de>
4364 * graphite.c (print_graphite_bb): Add condition printing.
4366 (dump_gbb_conditions): New.
4367 (build_scop_conditions_1): New.
4368 (build_scop_conditions): New.
4369 * graphite.h (graphite_bb): Add conditions.
4371 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
4373 * graphite.c (print_graphite_bb):
4374 (free_graphite_bb): New.
4375 (free_scop): Free bbs.
4376 (get_bb_type): Free doms.
4377 (build_scop_context): Free context matrix.
4378 (build_loop_iteration_domains): Remove unused code.
4379 (build_cloog_prog): Free scattering function and blocklist.
4380 (find_transform): Free options.
4382 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
4384 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
4385 Remove unnecessery cloog data structures. Make a copy of the domain
4386 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
4387 unnecessary cloog data structures. Fix memory leaks. Remove insert
4388 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
4390 (build_scop_iteration_domain): Remove unnecessary cloog
4391 data structures. Fix memory leaks.
4392 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
4393 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
4395 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4397 * graphite.c (find_scop_params): Remove initialize_cloog_names.
4399 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4401 * graphite.c (end_scop): Style fix.
4402 (schedule_to_scattering): Style and comment fix.
4404 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4405 * graphite.c (print_graphite_bb): Fix definiton of
4406 schedule_to_scattering.
4407 (initialize_cloog_names): Change nb_scattdims to max loop
4409 (schedule_to_scattering): Take parameter for number of scattering
4411 (build_cloog_prog): Only build as much scattering dimensions as
4414 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
4416 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
4417 in polyhedron/aermod.f90.
4419 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
4420 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
4421 Harsha Jagasia <harsha.jagasia@amd.com>
4423 * graphite.c (is_bb_addable): Fix segfault.
4425 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
4427 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
4428 with multiple exits and conditional handling in edge cases.
4429 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
4431 * testsuite/gcc.dg/graphite/scop-14.c: New.
4433 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
4434 Adrien Eliche <aeliche@isty.uvsq.fr>
4436 * graphite.c (is_bb_addable): Add more comments and enhance
4437 readablity of the source code. Fix memory leak.
4438 (is_loop_exit): Fix memory leak.
4440 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
4442 * graphite.c (first_loop_in_scop): Deleted.
4443 (setup_cloog_loop): Only walk the loop chain for inner loops.
4444 (build_scop_iteration_domain): Execute setup_cloog_loop for
4445 all loops in the first layer.
4447 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
4449 * graphite.c (scan_tree_for_params): Change the way params are
4450 added to be indepenent of the number of loops.
4451 (setup_cloog_loop): Revert to short matrix format. Fix parameter
4453 (build_cloog_prog): Revert to short matrix format.
4455 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
4456 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
4458 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
4461 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
4463 * graphite.c (nb_data_refs_in_scop): New.
4464 (graphite_transform_loops): Print more stats: number of
4465 loops, basic blocks and data references per scop.
4467 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4468 Jan Sjodin <jan.sjodin@amd.com>
4470 * graphite.c (loop_affine_expr, idx_record_params,
4471 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
4472 instead of instantiate_parameters.
4474 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4476 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
4477 add support for parameters, add STATIC_SCHEDULE at the right places,
4480 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4482 * graphite.c (build_scop_loop_nests): Only add the loops, that
4483 are contained completely in the SCoP.
4484 (build_cloog_prog): Disable scattering, until schedule_to_scattering
4485 and the domains are fixed.
4486 (build_scop_canonical_schedules): Add support for bbs not contained
4489 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
4491 * graphite.h (scop_contains_loop): Update comments to match
4492 the actual behavior.
4493 (scop_contains_loop): New.
4494 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
4496 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4498 * graphite.c (get_bb_type): On function body, i.e. loop_0,
4499 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
4502 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
4503 Tobias Grosser <grosser@fim.uni-passau.de>
4505 * graphite.c (graphite_transform_loops): Early return when
4506 there are no loops in the function.
4508 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4509 Jan Sjodin <jan.sjodin@amd.com>
4511 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
4512 offset of the last loop.
4513 (setup_cloog_loop): Copy the entire outer constraint matrix.
4515 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4516 Jan Sjodin <jan.sjodin@amd.com>
4518 * graphite.c (stmt_in_scop_p, function_parameter_p,
4519 invariant_in_scop_p): Removed.
4520 (scan_tree_for_params): Can be used with no constraint
4521 matrix for gathering parameters.
4522 (idx_record_params): Don't use idx_record_param, instead use
4523 scan_tree_for_params.
4524 (find_scop_parameters): Same.
4525 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
4526 Fix the size of loop domains.
4527 (schedule_to_scattering): Exit when the outer loop is not in scop.
4528 (find_transform): Enable build_cloog_prog.
4530 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4531 Jan Sjodin <jan.sjodin@amd.com>
4533 * graphite.c (schedule_to_scattering): Make scattering domains
4534 uniformly of the same size, as required by CLooG 0.14.0 and before.
4536 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
4537 Jan Sjodin <jan.sjodin@amd.com>
4539 * graphite.c (schedule_to_scattering): Rewrite, correct the
4540 translation of the scheduling function to scattering.
4541 (build_cloog_prog): Call schedule_to_scattering only once.
4542 * graphite.h (scop_loop_index): Do not fail for loops not
4543 in the scop: return -1.
4545 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
4547 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
4548 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
4549 (setup_cloog_loop): Export GBB_DOMAIN.
4550 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
4551 able to rebuild the original control flow.
4552 * graphite.h (graphite_bb): Add domain field and access macro.
4555 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
4557 * graphite.c (debug_gbb): New.
4558 (print_scop, build_graphite_bb): Use SCOP_BBS.
4559 (build_scop_bbs): Reimplemented.
4560 (dfs_bb_in_scop_p): Removed.
4561 (build_scop_loop_nests): Reorder loops inserted in
4562 SCOP_LOOP_NEST: outer loops should come first.
4563 (build_scop_canonical_schedules): Reinitialize at zero
4564 the components of the SCOP_STATIC_SCHEDULE for the loops
4565 that have already been parsed.
4567 * graphite.h (debug_gbb): Declared.
4569 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
4570 Jan Sjodin <jan.sjodin@amd.com>
4572 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
4573 (graphite_loop_to_gcc_loop): Removed.
4574 (remove_all_edges): New.
4575 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
4576 (gloog): Remove useless code.
4578 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
4580 * graphite.c (get_bb_type): Reworked. We distinguish between
4581 loops with one or multiple exits.
4582 (is_loop_exit): New.
4584 (is_bb_addable): Rework condition handling, now support for case
4585 case statements and loops with multiple exits.
4587 * testsuite/gcc.dg/graphite/scop-11.c: New.
4588 * testsuite/gcc.dg/graphite/scop-12.c: New.
4589 * testsuite/gcc.dg/graphite/scop-13.c: New.
4591 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
4593 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
4594 we have too many colors.
4596 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
4598 * doc/invoke.texi (-ftree-loop-fusion): Document.
4599 * tree-pass.h (pass_loop_fusion): Declared.
4600 * tree-loop-fusion.c: New.
4601 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
4602 * tree-data-ref.c (find_data_references_in_loop): Make extern.
4603 * tree-data-ref.h (find_data_references_in_loop): Declared.
4604 * common.opt (ftree-loop-fusion): Declared.
4605 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
4607 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
4609 * graphite.c (build_access_matrix): Fix typo from the merge.
4611 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
4613 * Merge from mainline (130800:135673).
4615 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4617 * graphite.c (end_scop): The exit of the scop is not part of the scop.
4618 Update dominators after splitting.
4620 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4622 * graphite.c (is_bb_addable): Return the harmful statement.
4623 Factor up some code.
4624 (end_scop): New. Splits end of scope bbs on a harmful statement.
4625 (build_scops_1): Call end_scop.
4627 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
4629 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
4630 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
4631 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
4632 build_scops_1): Removed.
4633 (build_scops_2): Renamed build_scops_1.
4635 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
4637 * graphite.c: Fix formatting.
4639 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4641 * graphite.c (get_bb_type): New.
4643 (build_scops_2): New.
4644 (is_bb_addable): New.
4645 (build_scops): Switch the scop detection.
4646 (build_scop_bbs): Add entry bb to scop.
4647 * graphite.h (struct scop): Update comment.
4649 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4651 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
4654 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4656 * testsuite/gcc.dg/graphite/scop-1.c: Update.
4657 * testsuite/gcc.dg/graphite/scop-2.c: Update.
4658 * testsuite/gcc.dg/graphite/scop-4.c: Update.
4659 * testsuite/gcc.dg/graphite/scop-5.c: Add.
4660 * testsuite/gcc.dg/graphite/scop-6.c: Add.
4662 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
4664 * testsuite/gcc.dg/graphite/scop-0.c: Add.
4665 * testsuite/gcc.dg/graphite/scop-7.c: Add.
4666 * testsuite/gcc.dg/graphite/scop-8.c: Add.
4667 * testsuite/gcc.dg/graphite/scop-9.c: Add.
4668 * testsuite/gcc.dg/graphite/scop-10.c: Add.
4670 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4672 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
4673 Check affine expressions depending on the outermost loop
4675 (stmt_simple_for_scop_p): Same.
4676 (harmfule_stmt_in_scop): Same.
4678 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
4680 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
4681 mark entry and exit, that are not part of the SCoP and update HTML
4684 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
4686 * graphite.c (basic_block_simple_for_scop_p): Renamed
4688 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
4689 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
4690 (all_preds_visited_p, all_succs_visited_p,
4691 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
4692 scop_end_loop): New.
4693 (build_scops): Do not use dfs_enumerate_from.
4695 * testsuite/gcc.dg/graphite/scop-{1,2,4}.c: Updated.
4697 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
4699 * graphite.c: Add comments to functions that are missing a
4701 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
4703 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
4705 * graphite.c (nb_params_in_scop): Moved...
4706 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
4707 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
4708 (clast_to_gcc_expression): Reduce column size to less than 80.
4709 (graphite_create_iv): Return the new name of the IV.
4710 (find_transform): Set options->esp and options->cpp.
4711 (gloog): Comment out the invalidation of the old loop code.
4712 (initialize_dependence_polyhedron): Replace scop_nb_params with
4715 * graphite.h (nb_params_in_scop): ... here.
4716 (scop_nb_params): Removed.
4717 (loop_domain_dim): Return something even when the loop was not
4718 found in the hash table: avoid ICEing on all the graphite.exp
4721 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4723 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
4725 * graphite.c (build_scop_dynamic_schedules): Schedule is built
4726 according to nesting level.
4727 (find_scop_parameters): Call instantiate_parameters.
4728 (scan_tree_for_params): Extend it to handle general affine bounds.
4729 Inner loop bound can depend on outer loop induction variable.
4730 (setup_cloog_loop): tmp variable is allocated on stack. Call
4731 instantiate_parameters with respect to outermost_loop_in_scop.
4732 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
4734 (create_empty_loop): Function loopify should be given edge
4735 probability, instead of edge frequency. Dominance relation from
4736 switch_bb to loop_header.
4737 (clast_to_gcc_expression): Added handling of clast_reduction node.
4738 (gloog): New functionality for removing old loop.
4739 (test_dependence): Factored out from build_rdg_all_levels.
4740 (build_rdg_all_levels): Dependence testing factored out to
4741 test_dependence function.
4743 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
4744 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
4747 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
4749 * graphite.c (free_scop, param_index, initialize_cloog_names,
4750 nb_params_in_scop): Use name_tree map instead of just a tree
4751 for keeping track of the variable name associated to that tree.
4752 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
4753 clast_to_gcc_expression, graphite_create_iv,
4754 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
4755 graphite_stmt_to_gcc_stmt): New.
4756 (gloog): Call these.
4757 * graphite.h (struct name_tree): New.
4758 (struct scop): Use name_tree instead of tree for params.
4759 Store a vector of name_tree for new_ivs.
4761 (scop_nb_params): Use name_tree instead of tree.
4763 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
4764 Sebastian Pop <sebastian.pop@amd.com>
4766 * tree-bounds.c: New.
4767 * tree-bounds.h: New.
4768 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
4769 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
4770 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
4774 * c-cppbuiltin.c: Same.
4778 * tree-outof-ssa.c: Same.
4780 * Makefile.in: Same.
4782 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
4783 Sebastian Pop <sebastian.pop@amd.com>
4785 * tree-loop-distribution.c (remaining_stmts,
4786 upstream_mem_writes): Removed static variables.
4787 (copy_loop_before, create_bb_after_loop,
4788 mark_nodes_having_upstream_mem_writes, free_rdg_components,
4789 rdg_build_components, rdg_build_partitions,
4790 dump_rdg_partitions): Extern.
4791 (generate_loops_for_partition, generate_code_for_partition): Do not
4793 (already_processed_vertex_p, predecessor_has_mem_write,
4794 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
4795 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
4796 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
4797 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
4798 Pass remaining_stmts and upstream_mem_writes as parameters.
4799 (rdg_component): Moved...
4800 (build_rdg_partition_for_component): Do not aggregate components when
4801 flag_streamize_loops is set.
4802 (gen_sequential_loops): New.
4803 (ldist_gen): Call gen_sequential_loops.
4805 * tree-pass.h (pass_loop_streamization): Declared.
4807 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
4808 basic blocks when loops structures exist.
4810 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
4812 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
4814 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
4815 eliminate_local_variables_stmt, eliminate_local_variables,
4816 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
4817 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
4818 of code delimited by two edges in the CFG.
4819 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
4820 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
4821 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
4822 the case of parallelisation of reductions.
4823 (create_loop_fn): Extern.
4824 (create_omp_parallel_region): New.
4826 * tree-data-ref.c (dump_data_dependence_relation): Don't call
4827 dump_data_reference for printing dra and drb.
4828 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
4830 (build_rdg): Don't call free_dependence_relations for the moment, as
4831 we attach dependence relations on each edge of the RDG.
4834 * tree-data-ref.h (rdg_component): ...here.
4835 (struct rdg_edge): New field ddr_p relation.
4836 (RDGE_RELATION): New.
4837 (create_bb_after_loop, copy_loop_before,
4838 mark_nodes_having_upstream_mem_writes, rdg_build_components,
4839 rdg_build_partitions, dump_rdg_partitions,
4840 free_rdg_components): Declared.
4842 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
4843 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
4845 * tree-loop-streamization.c: New.
4847 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
4848 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
4850 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
4852 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
4854 * passes.c: Schedule pass_loop_streamization.
4856 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
4858 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
4861 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
4863 * graphite.c (dot_all_scops): Update formatting.
4864 Bbs can now be part of more than one SCoP.
4866 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
4868 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
4870 (loop_domain_dim): Check for unregistered toplev SCOP loop.
4871 * graphite.h (loop_to_cloog_loop): New.
4873 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4875 * graphite.c (loop_domain_dim, ref_nb_loops,
4876 loop_iteration_vector_dim): New.
4877 (build_access_matrix_with_af, build_access_matrix,
4878 initialize_dependence_polyhedron): Fixed for new matrix layout.
4879 No longer assume that all iteration domains are of the same
4882 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
4884 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
4885 defined in a loop at depth 0 is invariant.
4886 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
4887 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
4888 be called at loop depth 0.
4890 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
4892 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
4893 (down_open_scop): Removed.
4894 (loop_in_scop_p): Redefined.
4895 (scop_affine_expr): New argument: scop.
4896 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
4897 a harmful statement ending a scop.
4898 (basic_block_simple_for_scop_p): New argument: scop.
4899 (get_loop_start): Removed.
4900 (new_scop): Initialize SCOP_LOOPS.
4901 (free_scop): Free SCOP_LOOPS.
4902 (succs_at_same_depth, preds_at_same_depth): New.
4903 (end_scop): Test the validity of a scop.
4904 (add_dominators_to_open_scops): New.
4905 (test_for_scop_bound): Call add_dominators_to_open_scops.
4906 Add cases for opening and closing multiple scops.
4907 (build_scops, build_scop_bbs): Iterate over basic blocks in
4909 (build_graphite_bb): Pass scop directly.
4910 (dfs_bb_in_scop_p): New.
4911 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
4913 (nb_loops_around_gb): Use loop_in_scop_p.
4914 (schedule_to_scattering): Disabled for the moment the code computing
4915 the "textual order for outer loop".
4917 * graphite.h (struct scop): New field loops.
4919 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
4921 * testsuite/gcc.dg/graphite/scop-{1,...,7}.c: Updated.
4923 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
4924 Sebastian Pop <sebastian.pop@amd.com>
4926 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
4927 * common.opt (fstreamize-loops): New.
4928 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
4929 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
4930 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
4931 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
4933 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4935 * tree-data-ref.c (build_empty_rdg): New.
4936 (build_rdg): Use it.
4937 * tree-data-ref.h (build_empty_rdg): Declared.
4938 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
4939 (find_vertex_for_stmt): Removed.
4940 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
4942 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
4944 * tree-loop-distribution.c (generate_builtin): After cancelling the
4945 loop tree, also delete basic blocks.
4946 (rdg_flag_uses): Stop recursion when a vertex has already been
4949 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4951 * graphite.c (build_scop_alpha): Removed.
4952 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
4953 and dump_dependence_graph to avoid compiler warnings.
4955 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4957 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
4958 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
4959 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
4960 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
4961 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
4962 (initialize_dependence_polyhedron, find_vertex_for_stmt,
4963 initialize_data_dependence_polyhedron, is_empty_polyhedron,
4964 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
4965 dump_dependence_graph): New.
4966 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
4968 (struct scop): New field loop2cloog_loop.
4969 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
4970 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
4972 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4974 * graphite.c (build_graphite_bb): Fix initialization
4975 of the graphite basic block.
4977 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
4979 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
4980 loop domain matrix. Pass in the number of loops contained in the
4982 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
4983 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
4984 loops that are not surrounding the current loop are not represented
4985 in the domain constraint matrix.
4986 (build_scop_iteration_domain): Initial domain constraint matrix
4987 contains only the eq/ineq, cst, and scop parameters columns.
4989 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
4991 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
4992 (print_graphite_bb): Print scattering.
4994 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
4996 * graphite.c (initialize_cloog_names): Initialize names of
4997 scattering variables.
4999 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
5001 * graphite.c (dot_all_scops_1): Disable debug output while
5004 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
5006 * graphite.c (find_transform): Change cloog output language to C.
5008 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
5010 * tree-loop-distribution.c (generate_memset_zero,
5011 generate_builtin, generate_code_for_partition,
5012 rdg_flag_all_uses): New.
5013 (rdg_flag_uses): Gather in the same partition the statements defining
5014 the VUSES of the current statement.
5015 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
5016 Gather in the same partition not only the stores to the same memory
5017 access, but also the reads.
5018 (ldist_generate_loops): Renamed ldist_gen.
5020 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
5021 Tobias Grosser <grosser@fmi.uni-passau.de>
5023 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
5024 next pointer, don't use the inner pointer.
5026 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
5028 * graphite.c (dot_all_scops, dot_all_scops_1): New.
5029 (find_transform): Call dot_all_1.
5030 * graphite.h (dot_all_scops): Declared.
5032 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
5034 * tree-loop-distribution.c: Fix apsi.f ICE.
5035 (create_bb_after_loop): New.
5036 (generate_loops_for_partition): Use it.
5037 * testsuite/gfortran.dg/ldist-1.f90: New.
5039 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
5040 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
5042 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
5044 * graphite.c (find_transform): Dump cloog program sent to cloog.
5046 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
5048 * graphite.c (initialize_cloog_names): Initialize cloog
5051 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
5053 * graphite.c (build_scop_context): Fix typo, for the matrix
5054 format: insert '0 >= 0' instead of '-1 >= 0'.
5056 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
5058 * Fix merge problems.
5060 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
5062 * graphite.c (setup_cloog_loop): Fix typo.
5064 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
5066 * doc/invoke.texi (-ftree-loop-distribution): Documented.
5067 * tree-loop-distribution.c: Reimplemented.
5068 * tree-pass.h (pass_loop_distribution): New.
5069 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
5071 * graphds.h (struct graph): New field indexes.
5072 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
5074 * tree-vect-analyze.c: Remove declaration of static functions when not
5076 * tree-vectorizer.c: Same.
5077 (rename_variables_in_loop): Now extern.
5078 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
5079 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
5080 calling redirect_edge_and_branch_force.
5082 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
5084 * tree-data-ref.c: Don't include tree-chrec.h.
5085 (debug_data_dependence_relations): New.
5086 (dump_data_dependence_relation): Call dump_data_reference on data refs
5088 (same_access_functions): Moved...
5089 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
5090 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
5091 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
5092 struct rdg_vertex_info, ): New.
5093 (create_rdg_edge_for_ddr): Compute the dependence level before looking
5095 (create_rdg_vertices): Initialize the htab of graph->indexes.
5096 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
5097 (stmts_from_loop): Don't save LABEL_EXPR.
5098 (hash_stmt_vertex_info, eq_stmt_vertex_info,
5099 hash_stmt_vertex_del): New.
5100 (build_rdg): Initialize rdg->indexes.
5101 (free_rdg, stores_from_loop, ref_base_address,
5102 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
5103 have_similar_memory_accesses_1, ref_base_address_1,
5104 remove_similar_memory_refs): New.
5106 * tree-data-ref.h: Include tree-chrec.h.
5107 (debug_data_dependence_relations): Declared.
5108 (same_access_functions): ...here. Now static inline.
5109 (ddr_is_anti_dependent, ddrs_have_anti_deps,
5110 ddr_dependence_level): New.
5111 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
5112 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
5113 RDG_MEM_READS_STMT): New.
5114 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
5115 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
5116 rdg_vertex_for_stmt): Declared.
5117 (struct rdg_edge): New field level.
5118 (RDGE_LEVEL, free_rdg): New.
5119 (stores_from_loop, remove_similar_memory_refs,
5120 rdg_defs_used_in_other_loops_p,
5121 have_similar_memory_accesses): Declared.
5122 (rdg_has_similar_memory_accesses): New.
5124 * lambda.h (dependence_level): New.
5125 * common.opt (ftree-loop-distribution): New.
5126 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
5127 (print_loop_ir): Renamed print_loops.
5128 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
5129 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
5130 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
5131 (tree-loop-distribution.o): Added.
5132 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
5133 (mark_virtual_ops_in_bb): New.
5134 (print_loops_bb, debug_loop_num, debug_loop): New.
5135 * passes.c: Scheduled pass_loop_distribution.
5137 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5139 * graphite.c (scan_tree_for_params): Correct the number of columns
5141 (nb_flat_iterator): New.
5142 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
5143 (build_scop_iteration_domain): Correct the number of columns for
5146 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
5148 * Merge from mainline (129697:130800).
5150 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
5152 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
5153 dominated by SCoP's exit.
5154 (graphite_transform_loops): Compute post dominators.
5156 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
5158 * Merge from mainline (127169:129697).
5160 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
5162 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
5163 parameter for the basic block that contains the expression. Use
5164 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
5165 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
5167 * graphite.h (gbb_loop): New.
5168 (GBB_LOOP): Removed.
5170 2007-08-03 Sebastian Pop <sebpop@gmail.com>
5172 * Makefile.in: Fix merge problem.
5174 2007-08-03 Sebastian Pop <sebpop@gmail.com>
5176 * Merge from mainline (125309:127169).
5177 * tree-loop-distribution.c: Disabled.
5179 2007-06-05 Sebastian Pop <sebpop@gmail.com>
5181 * Merge from mainline (r123693:125309).
5183 2007-05-30 Sebastian Pop <sebpop@gmail.com>
5185 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
5187 (correct_modify_p, check_statements, number_of_lvalue_uses,
5188 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
5189 instead of MODIFY_EXPR.
5190 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
5193 2007-05-24 Sebastian Pop <sebpop@gmail.com>
5195 * tree-loop-distribution.c (struct rdg): Replace arrays by
5196 VECs for edges and vertices.
5197 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
5198 (RDGV_NB_PARTITIONS): New.
5199 (PRDG_NBV, PRDG_NBE): Removed.
5200 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
5201 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
5202 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
5204 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
5205 Sebastian Pop <sebpop@gmail.com>
5207 * doc/invoke.texi (-ftree-loop-distribution): Document.
5208 * tree-loop-distribution.c: New file.
5209 * tree-pass.h (pass_loop_distribution): Declared.
5210 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
5211 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
5213 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
5214 (DDR_REVERSED_P): New.
5215 * common.opt (-ftree-loop-distribution): New.
5216 * tree-flow.h (distribute_loops): Declared.
5217 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
5218 * passes.c (init_optimization_passes): Schedule loop distribution.
5220 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
5222 * graphite.c (print_graphite_bb): Don't call dump_data_references.
5223 (print_scop): Don't print when scop is NULL.
5224 (build_scop_context, find_transform): Don't output to stderr.
5226 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
5228 * tree-data-ref.c: Don't include graphite.h.
5229 Comment out the code for printing data reference's scop.
5230 (build_access_matrix_with_af): Moved...
5231 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
5232 * graphite.c (build_access_matrix_with_af): ... here. Now static.
5233 (print_graphite_bb): Print basic block's schedule.
5234 (print_scop): Don't print the schedule, call cloog's pretty printer.
5235 (bb_in_scop_p): A basic block is in a scop only if it is both
5236 dominated and postdominated by the scop's entry and exit basic blocks.
5237 (function_parameter_p): New.
5238 (invariant_in_scop_p): Use function_parameter_p.
5239 (new_scop, save_scop): New.
5240 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
5242 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
5243 (loop_in_scop_p): New.
5244 (scop_record_loop): Use loop_in_scop_p.
5245 (build_scop_domain): Renamed build_scop_iteration_domain.
5246 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
5247 nb_params_in_scop, build_scop_context, first_loop_in_scop,
5248 setup_cloog_loop, dot_scop_1, dot_scop): New.
5249 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
5250 (struct scop): Add a pointer to cloog's representation of a program.
5252 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
5254 * doc/invoke.texi (-ftree-check-verbose): Renamed
5255 -ftree-checks-verbose.
5256 * common.opt (flag_tree_check_verbose): Renamed
5257 flag_tree_checks_verbose.
5258 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
5260 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
5262 * configure: Regenerated.
5263 * config.in: Regenerated.
5264 * tree-ssa-loop.c (graphite_transforms): Execute
5265 graphite_transform_loops only when HAVE_cloog.
5266 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
5267 * graphite.c: Include polylibgmp.h and cloog.h.
5268 (graphite_transform_loops): Removed loops parameter.
5269 * tree-flow.h (graphite_transform_loops): Update declaration.
5270 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
5271 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
5272 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
5273 (OBJS-common): Remove dependence on graphite.o.
5274 (BACKEND): Depend on @GRAPHITE@.
5276 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
5278 * doc/invoke.texi (-ftree-check-verbose): Documented.
5279 * testsuite/gcc.dg/tree-checker/tree-checks-1.c: New.
5280 * testsuite/gcc.dg/tree-checker/tree-checks-2.c: New.
5281 * testsuite/gcc.dg/tree-checker/tree-checks-3.c: New.
5282 * testsuite/gcc.dg/tree-checker/tree-checks-4.c: New.
5283 * testsuite/gcc.dg/tree-checker/tree-checks.exp: New.
5284 * testsuite/gcc.dg/tree-checker/condates.crp: New.
5285 * common.opt (ftree-checks-verbose): New.
5286 * tree-check.c (tree_check_warning): Move extra stderr output
5287 under control of flag_tree_check_verbose.
5289 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
5291 * tree-match.c: Fix comments formatting.
5292 * tree-match.h: Fix comments formatting.
5293 * tree-check.c: Fix comments formatting.
5294 (tree_check_init): Restructure.
5296 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
5298 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
5300 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
5302 * Merge from mainline (r120733:123693).
5304 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
5306 * condate.y: New file.
5307 * tree-match.h (struct patt_info_s): New field sign.
5308 (struct condate_s): New field msg.
5309 (normalize_condate, name_condate, add_condate): New.
5310 (conds[], condate_parse): Made extern.
5311 * tree-check.c (tree_check_warning): First arg changed to cond;
5312 warning reformatted.
5313 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
5315 (tree_check): Process trivial condates.
5316 (read_delimited_string): Removed.
5317 (print_cond): Print name and msg.
5318 (conds[]): Made extern.
5319 (parse_tree_check_file_once): Rewritten to use the parser in
5321 Processing of option --tree_check_string moved to tree_scan().
5322 * Makefile.in: Added condate.y
5324 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
5326 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
5327 Use VECs instead of varrays.
5328 * diagnostic.h (lazy_dump_generic_node): Update declaration.
5329 * Makefile.in (pretty-print.o): Depend on vec.h.
5330 * pretty-print.c: Include tree.h and vec.h.
5331 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
5332 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
5333 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
5334 pp_free_list): Use VECs instead of varrays.
5335 * pretty-print.h: Do not include varray.h.
5336 (struct tree_chunk_s): Declaration moved before its use.
5337 (output_buffer): Rename varray field to chunks.
5338 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
5339 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
5340 save_global_holes): Use VECs instead of varrays.
5341 * tree-match.h: Declare VECs of cfg_node, and hole_p.
5342 * tree-check.c (scan_cfg_stmts, push_node,
5343 print_matching_stmt): Removed.
5344 (tree_check_instance, push_global_holes_if_new, tree_check,
5345 execute_tree_check): Use VECs instead of varrays.
5346 (gate_tree_check): Don't execute the CFG check when basic_block_info
5349 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5351 * Merge from mainline (r115016:120733).
5353 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5355 * Merge from mainline (r117632:117661).
5357 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
5359 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
5360 * tree-pass.h (TDF_DEBUG, debug_p): New.
5361 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
5362 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
5363 get_loop_exit_condition, analyze_evolution_in_loop,
5364 analyze_initial_condition, analyze_scalar_evolution,
5365 instantiate_parameters, number_of_latch_executions): Use debug_p.
5366 * tree-chrec.c (chrec_apply): Use debug_p.
5367 * tree-data-ref.c: Include graphite.h.
5368 (dump_data_reference): Print also the access matrix.
5369 (analyze_array, analyze_indirect_ref, init_data_ref,
5370 analyze_offset_expr, address_analysis, object_analysis,
5371 create_data_ref, finalize_ddr_dependent,
5372 non_affine_dependence_relation, analyze_ziv_subscript,
5373 analyze_siv_subscript_cst_affine,
5374 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
5375 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
5376 analyze_miv_subscript, analyze_overlapping_iterations,
5377 build_classic_dist_vector, subscript_dependence_tester,
5378 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
5379 (build_access_matrix_with_af): No longer static.
5380 * tree-data-ref.h (scop_p): ... declaration here.
5381 (data_reference.scop): New field.
5382 (DR_SCOP, DR_ACCESS_MATRIX): New.
5383 (build_access_matrix_with_af, dr_num_subscripts): Declared.
5384 * graphite.c (print_graphite_bb): Call dump_data_references.
5385 (print_scop): Use scop_nb_loops and scop_dim_domain.
5386 (test_for_scop_bound): Use debug_p.
5387 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
5389 (scop_loop_index): Moved...
5390 (scop_record_loop): New.
5391 (build_scop_loop_nests): Use scop_record_loop.
5392 (build_scop_domain): Use scop_dim_domain.
5393 (build_access_matrix): Implemented.
5394 (build_scop_canonical_schedules): Use scop_nb_loops.
5395 (build_graphite_bb): Initialize GBB_SCOP.
5396 * graphite.h (scop_p): Moved...
5397 (graphite_bb.scop): New field.
5398 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
5399 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
5400 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
5401 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
5402 scop_loop_index): New.
5403 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
5405 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
5407 * Merge from mainline (r117661:120450).
5409 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
5411 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
5412 at the first declaration outside the varying loop, instantiate as
5414 * tree-chrec.c (for_each_scev_op): New.
5415 * tree-chrec.h (for_each_scev_op): Declared.
5416 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
5417 * tree-data-ref.c (get_references_in_stmt,
5418 find_data_references_in_stmt): New, from trunk.
5419 (find_data_references_in_loop): Use get_references_in_stmt
5420 and find_data_references_in_loop, modified as in trunk.
5421 (build_access_matrix_with_af): New.
5422 * tree-data-ref.h (data_reference): Add a field access_matrix.
5423 (data_ref_loc): New, as in trunk.
5424 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
5425 invariant_in_scop_p, param_index, scan_tree_for_params,
5426 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
5427 idx_record_param, idx_record_params, build_access_matrix,
5428 build_scop_data_accesses, build_scop_canonical_schedules,
5429 build_graphite_bb, build_scop_bbs, find_params_in_bb,
5430 build_scop_params): New.
5431 * graphite.h (graphite_bb): New.
5432 (scop): Add fields static_schedule, params, loop_nest,
5434 * lambda.h: Declare vecs of lambda_matrix.
5435 * tree-flow.h (print_loop_ir_bb): Declared.
5436 * tree-cfg.c (print_loop_ir_bb): New.
5437 (print_loop): Use print_loop_ir_bb.
5439 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
5441 * Merge from mainline (r115016:117632).
5443 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
5445 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
5446 break due to a warning.
5448 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
5450 * graphite.c (print_scops, debug_scops): New.
5451 (graphite_transform): Renamed graphite_find_transform.
5452 * graphite.h (debug_scops): Declared.
5454 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
5456 * tree-match.c: Reformat following the GNU style.
5457 * tree-match.h: Reformat following the GNU style.
5458 * tree-pattern.h: Removed empty file.
5459 * Makefile.in: Remove references to tree-pattern.h.
5460 * tree-check.c: Reformat following the GNU style.
5461 (execute_tree_check): Move gate condition code to...
5462 (gate_tree_check): ...here. New function.
5463 (pass_check): Use the gate function.
5465 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
5467 * tree-pattern.h: New. Tree pattern matching and checking using
5469 * tree-check.c: New. Tree/CFG checking pass.
5470 * tree-match.c: New. Library for tree pattern matching.
5471 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
5472 * toplev.c, flags.h: Add globals for tree-check pass.
5473 * Makefile.in: Integrate the files in tree-check pass.
5474 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
5475 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
5476 Introduce a "lazy" pretty-print mode.
5477 * tree.c, tree.h: Add tree_name.
5479 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
5481 * doc/invoke.texi (-fgraphite): Correct typo.
5482 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
5483 use of print_loop_ir.
5484 * testsuite/gcc.dg/graphite/scop-1.c: New.
5485 * testsuite/gcc.dg/graphite/scop-2.c: New.
5486 * testsuite/gcc.dg/graphite/graphite.exp: New.
5487 * graphite.c: Include domwalk.h.
5488 (print_scop): Print only the entry and exit blocks.
5489 (debug_scop): No longer static.
5490 (affine_expr): Fix formating. Return also true when the expression is
5492 (stmt_simple_for_scop_p): Fix formating.
5493 (build_scops): Use domwalk.
5494 (get_loop_start, end_scop, test_for_scop_bound): New.
5495 (graphite_transform_loops): Avoid printing on stderr.
5496 * graphite.h (debug_scop): Declared.
5497 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
5498 * Makefile.in (graphite.o): Depend on domwalk.h.
5499 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
5500 declarations for static functions.
5501 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
5502 controlling output verbosity.
5504 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
5505 Plesco Alexandru <shurikx@gmail.com>
5507 * doc/invoke.texi (-fgraphite): Document.
5508 * tree-pass.h (pass_graphite_transforms): Declared.
5509 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
5510 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
5511 (pass_graphite_transforms): Defined.
5512 * tree-data-ref.c (free_data_ref, data_reference): Extern.
5513 * tree-data-ref.h (free_data_ref, data_reference): Declared.
5514 * graphite.c, graphite.h: New.
5515 * common.opt (fgraphite): Declared.
5516 * tree-flow.h (graphite_transform_loops): Declared.
5517 * Makefile.in (OBJS-common): Add graphite.o.
5518 (graphite.o): New rule.
5519 * passes.c (pass_graphite_transforms): Scheduled.