1 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
3 * graphite-dependences.c (new_poly_ddr): Inlined into
5 (free_poly_ddr): Moved close by new_poly_ddr.
6 (dependence_polyhedron_1): Renamed dependence_polyhedron.
7 Early return NULL when ppl_powerset_is_empty returns true.
8 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
9 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
10 (graphite_legal_transform_dr): Call new_poly_ddr.
11 (graphite_carried_dependence_level_k): Same.
12 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13 (dot_transformed_deps_stmt_1): Removed.
14 (dot_deps_stmt_1): Call dot_deps_stmt_2.
15 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
16 (dot_deps_1): Call dot_deps_2.
18 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
20 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
21 (build_lexicographical_constraint): Same.
22 (dependence_polyhedron_1): Same.
23 (graphite_legal_transform_dr): Same.
24 (graphite_carried_dependence_level_k): Same.
25 * graphite-ppl.c (ppl_powerset_is_empty): New.
26 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
27 * tree-data-ref.c (dump_data_reference): Print the basic block index.
29 * gcc.dg/graphite/block-0.c: Add documentation.
30 * gcc.dg/graphite/block-4.c: Same.
31 * gcc.dg/graphite/block-7.c: Same.
32 * gcc.dg/graphite/block-8.c: New.
33 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
34 * gcc.dg/graphite/interchange-11.c: Un-XFAILed.
35 * gcc.dg/graphite/interchange-12.c: Add documentation.
36 * gcc.dg/graphite/interchange-13.c: New.
37 * gcc.dg/graphite/interchange-14.c: New.
38 * gcc.dg/graphite/interchange-15.c: New.
39 * gcc.dg/graphite/interchange-8.c: Add documentation.
40 * gcc.dg/graphite/interchange-mvt.c: Same.
42 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
44 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
45 the "a followed by b" relation and document it.
47 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
49 * graphite-dependences.c (build_lexicographical_constraint): Stop the
50 iteration when the bag of constraints is empty.
52 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
54 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
56 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
58 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
59 nest and two loop depths as parameters.
60 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
63 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
65 * graphite-dependences.c (print_pddr): Call
66 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
68 2011-01-15 Sebastian Pop <sebastian.pop@amd.com>
70 * graphite-ppl.c (debug_gmp_value): New.
71 * graphite-ppl.h (debug_gmp_value): Declared.
73 2011-01-13 Tobias Grosser <grosser@fim.uni-passau.de>
75 * doc/install.texi: Document availability of cloog-0.16
77 2011-01-05 Vladimir Kargov <kargov@gmail.com>
79 * graphite-scop-detection.c (is_valid_stmt_p): Pass the entry basic
80 block instead of region start to the instantiation.
81 (is_valid_bb_p): Add support for basic blocks with conditional
83 (find_scops_new): Recalculate dominance info before SCOP
86 2011-01-05 Vladimir Kargov <kargov@gmail.com>
88 * graphite-scop-detection.c (get_outermost_loop_in_region): New.
89 (is_valid_loop_p): Correct loop passed to stmt_has_simple_data_refs_p
91 2011-01-05 Vladimir Kargov <kargov@gmail.com>
93 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
94 invalid postdominance info
96 2010-12-29 Sebastian Pop <sebastian.pop@amd.com>
98 * Makefile.in (graphite-opencl-codegen.o): Update dependences.
99 (graphite-opencl-meta-clast.o): Same.
100 (graphite-opencl.o): Same.
101 (refined-regions.o): Same.
102 * graphite-opencl-codegen.c: Do not include unnecessary .h files.
103 * graphite-opencl-meta-clast.c: Same.
104 * graphite-opencl.c: Same.
105 * refined-regions.c: Same.
107 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
109 * graphite-opencl-codegen.c: Use FOR_EACH_VEC_ELT.
110 * graphite-opencl-meta-clast.c: Same.
111 * graphite-opencl.c: Same.
113 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
115 * graphite-opencl-codegen.c: Do not include sys/time.h.
116 * graphite-opencl.c: Same.
118 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
120 * graphite-opencl.c (h_context, h_cmd_queue, h_program): Moved
121 out of ifdef HAVE_cloog section.
123 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
125 * Makefile.in (graphite-opencl.o): Depends on
126 graphite-opencl-functions.def.
127 * graphite-opencl-functions.def: New.
128 * graphite-opencl.c (enum OPENCL_FUNCTIONS): Read data from
129 graphite-opencl-functions.def.
130 (opencl_function_names): Same.
131 (opencl_create_function_decl): Use the enum OPENCL_FUNCTIONS
132 as indices of opencl_function_names.
134 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
136 * graphite-opencl-codegen.c: Fix formatting.
137 * graphite-opencl-meta-clast.c: Same.
138 * graphite-opencl.c: Same.
140 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
142 * graphite-opencl-codegen.c: Fix formating problems.
143 * graphite-opencl-meta-clast.c: Same.
144 * graphite-opencl.c: Same.
145 * graphite-opencl.h: Same.
147 2010-12-27 Sebastian Pop <sebastian.pop@amd.com>
149 * graphite-opencl-codegen.c: Sort topologically static functions.
150 * graphite-opencl.c: Same.
152 2010-12-25 Sebastian Pop <sebastian.pop@amd.com>
154 * graphite-cloog-compat.h (cloog_names_nb_scattering): New.
155 (cloog_names_scattering): New.
156 * graphite-opencl-codegen.c (opencl_constant_expression_p): Use
157 clast_expr_* instead of expr_*. Call clast_name_to_str.
158 (opencl_clast_name_to_tree): Now takes a clast_name_p in parameter.
159 (opencl_get_scat_real_name): Same. Call clast_name_to_str.
160 (opencl_add_scat_as_arg): Same.
161 (opencl_print_local_vars): Call cloog_names_scattering and
162 cloog_names_nb_scattering.
163 (opencl_print_for): Do not call value_*.
164 (opencl_print_term): Same.
165 (opencl_print_expr): Use clast_expr_* instead of expr_*.
166 (opencl_print_sum): Same.
167 (opencl_print_binary): Same.
169 2010-12-25 Alexey Kravets <kayrick@ispras.ru>
171 * Makefile.in (OBJS-common): Add graphite-opencl-codegen.o,
172 graphite-opencl-meta-clast.o and graphite-opencl.o.
173 (graphite-opencl-codegen.o): New.
174 (graphite-opencl-meta-clast.o): New.
175 (graphite-opencl.o): New.
176 (GTFILES): Add graphite-opencl.c.
177 * common.opt (fgraphite-opencl): New.
178 (fgraphite-opencl-cpu): New.
179 (fgraphite-opencl-ignore-depth-heuristic): New.
180 (fgraphite-opencl-ignore-mem-heuristic): New.
181 (fgraphite-opencl-ignore-dep): New.
182 (fgraphite-opencl-ignore-types): New.
183 (fgraphite-opencl-depth-base): New.
184 (fgraphite-opencl-debug): New.
185 * graphite-opencl-codegen.c: New file.
186 * graphite-opencl-meta-clast.c: New file.
187 * graphite-opencl.c: New file.
188 * graphite-opencl.h: New file.
189 * graphite.c (graphite_transform_loops): Call graphite_opencl_init and
190 graphite_opencl_finalize.
191 * tree-ssa-loop.c (gate_graphite_transforms): Handle
192 flag_graphite_opencl.
193 * graphite-clast-to-gimple.c (gloog): Call opencl_transform_clast.
194 * dbgcnt.def (opencl_scop_cnt): New counter.
196 2010-12-25 Alexander Monakov <amonakov@ispras.ru>
198 * graphite-dependences.c (graphite_outer_subscript_bound): New.
199 (graphite_carried_dependence_level_k): Export.
200 * graphite-dependences.h (graphite_outer_subscript_bound): Declare.
201 (graphite_carried_dependence_level_k): Ditto.
203 2010-12-25 Alexey Kravets <kayrick@ispras.ru>
205 * graphite-clast-to-gimple.c (struct clast_name_index): Move
206 definition to graphite-clast-to-gimple.h.
207 (clast_name_to_index): Ditto.
208 (clast_name_index_elt_info): Ditto.
209 (eq_clast_name_indexes): Ditto.
210 (save_clast_name_index): Export.
211 (clast_name_to_gcc): Ditto.
212 (clast_to_gcc_expression): Ditto.
213 (gcc_type_for_clast_expr): Ditto.
214 (graphite_create_new_guard): Ditto.
215 (gcc_type_for_iv_of_clast_loop): Ditto.
216 (graphite_create_new_loop): Ditto.
217 (build_iv_mapping): Ditto.
218 (graphite_create_new_loop_guard): Ditto.
219 (debug_clast_name_index): New.
220 (debug_clast_name_indices): New debug function.
222 2010-12-21 Sebastian Pop <sebastian.pop@amd.com>
224 PR tree-optimization/47021
225 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
227 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
229 * graphite-sese-to-poly.c (analyze_drs_in_stmts): Fix set but
231 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
233 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
235 * graphite-sese-to-poly.c (analyze_drs): Removed.
236 (build_scop_drs): Do not call analyze_drs.
237 (analyze_drs_in_stmts): New.
239 (insert_out_of_ssa_copy): Call analyze_drs_in_stmts.
240 (insert_out_of_ssa_copy_on_edge): Same.
241 (rewrite_close_phi_out_of_ssa): Call insert_stmts.
242 (rewrite_phi_out_of_ssa): Same.
243 (rewrite_cross_bb_scalar_dependence): Same.
244 (split_reduction_stmt): Move data references in the new basic blocks.
245 (translate_scalar_reduction_to_array_for_stmt): Call insert_stmts.
247 2010-11-26 Sebastian Pop <sebastian.pop@amd.com>
249 * sese.c (rename_uses): Do not handle ADDR_EXPR in LHS of assignments.
251 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
254 * graphite-poly.c (new_poly_bb): Returns a poly_bb_p. Do not take
255 the reduction bool in parameter. Clear PBB_IS_REDUCTION. Set GBB_PBB.
256 * graphite-poly.h (new_poly_bb): Update declaration.
257 (gbb_from_bb): Moved here...
259 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node):
261 (graphite_stmt_p): Removed.
262 (try_generate_gimple_bb): Returns a gimple_bb_p. Do not pass in
263 sbitmap reductions. Always build a gimple_bb_p. Do not call
265 (build_scop_bbs_1): Do not pass in sbitmap reductions.
266 (build_scop_bbs): Same.
267 (gbb_from_bb): ... from here.
268 (add_conditions_to_constraints): Moved up.
270 (build_scop_drs): Call analyze_drs. Remove all the PBBs that do
271 not contain data references.
272 (new_pbb_from_pbb): New.
273 (insert_out_of_ssa_copy_on_edge): Call new_pbb_from_pbb after a
275 (rewrite_close_phi_out_of_ssa): Update call to
276 insert_out_of_ssa_copy_on_edge.
277 (rewrite_reductions_out_of_ssa): Now static.
278 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
280 (split_reduction_stmt): Call split_pbb.
281 (translate_scalar_reduction_to_array): Pass in the scop, do not
282 pass in the sbitmap reductions.
283 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
284 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
285 (rewrite_commutative_reductions_out_of_ssa): Same.
286 (build_poly_scop): Call build_scop_bbs,
287 rewrite_commutative_reductions_out_of_ssa,
288 rewrite_reductions_out_of_ssa, and
289 rewrite_cross_bb_scalar_deps_out_of_ssa. Move build_scop_drs
291 * graphite-sese-to-poly.h (rewrite_commutative_reductions_out_of_ssa):
293 (rewrite_reductions_out_of_ssa): Same.
294 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
295 (build_scop_bbs): Same.
296 * graphite.c (graphite_transform_loops): Do not initialize reductions.
297 Do not call build_scop_bbs,
298 rewrite_commutative_reductions_out_of_ssa,
299 rewrite_reductions_out_of_ssa, and
300 rewrite_cross_bb_scalar_deps_out_of_ssa.
301 * sese.h (struct gimple_bb): Add field pbb.
304 * gcc.dg/graphite/pr45297.c: New.
306 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
308 * graphite-sese-to-poly.c (handle_scalar_deps_crossing_scop_limits):
310 (rewrite_cross_bb_scalar_deps): Pass in the scop. Call
311 handle_scalar_deps_crossing_scop_limits.
312 (rewrite_cross_bb_scalar_deps_out_of_ssa): Create an empty BB
313 after the scop. Update call to rewrite_cross_bb_scalar_deps.
315 2010-11-22 Sebastian Pop <sebastian.pop@amd.com>
317 * sese.c (rename_uses): Call recompute_tree_invariant_for_addr_expr
318 when replacing a constant in an ADDR_EXPR.
320 2010-10-20 Sebastian Pop <sebastian.pop@amd.com>
322 * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
324 (lst_do_strip_mine): Same.
325 (scop_do_strip_mine): Same.
326 * graphite-poly.c (apply_poly_transforms): Update call to
328 * graphite-poly.h (scop_do_strip_mine): Update declaration.
330 2010-09-24 Sebastian Pop <sebastian.pop@amd.com>
333 * graphite.c (graphite_initialize): Call scev_reset.
335 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
337 * sese.h (scev_analyzable_p): Return false for real or floating
338 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
340 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
343 * gfortran.dg/graphite/pr45758.f90: New.
345 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
347 * graphite-scop-detection.c (is_scop_p): Free bblist.
349 2010-09-23 Sebastian Pop <sebastian.pop@amd.com>
351 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
353 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
355 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
356 Do not allocate ub_expr, it is passed in initialized.
358 2010-09-21 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
360 * common.opt (fgraphite-dump-cloog): New flag.
361 * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
362 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
363 (build_cloog_prog): Dump CLooG input file when
364 flag_graphite_dump_cloog is set.
365 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
367 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
369 Revert previous patch "New flag: -fgraphite-dump-cloog."
371 2010-09-20 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
373 * common.opt (fgraphite-dump-cloog): New flag.
374 * doc/invoke.texi (-fgraphite-dump-cloog): Documented.
375 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
376 (build_cloog_prog): Dump CLooG input file when
377 flag_graphite_dump_cloog is set.
379 2010-09-20 Sebastian Pop <sebastian.pop@amd.com>
381 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
382 verify_dominators for CDI_POST_DOMINATORS.
383 * sese.h: Remove comment about CDI_POST_DOMINATORS.
384 (recompute_all_dominators): Remove call to free_dominance_info
385 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
386 for CDI_POST_DOMINATORS.
388 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
390 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
391 over pbb_dim_iter_domain.
393 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
395 * graphite-flattening.c: Fix comments.
397 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
399 * Makefile.in (OBJS-common): Add graphite-flattening.o.
400 (graphite-flattening.o): New rule.
401 * common.opt (floop-flatten): New flag.
402 * doc/invoke.texi (-floop-flatten): Documented.
403 * graphite-flattening.c: New.
404 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
405 * graphite-poly.h (flatten_all_loops): Declared.
406 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
407 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
408 is set, also set flag_graphite.
410 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
412 * graphite-poly.c (cloog_checksum): New.
413 * graphite-poly.h (cloog_checksum): Declared.
415 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
417 * graphite-poly.c (pbb_number_of_iterations): Removed.
418 (pbb_number_of_iterations_at_time): Correctly compute the number
419 of iterations in the transformed loop.
420 * graphite-poly.h (pbb_number_of_iterations): Removed.
422 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
424 * graphite-poly.h (lst_update_scattering_seq): Removed.
425 (lst_update_scattering): Correctly handle outermost loop dewey
428 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
430 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
431 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
432 * graphite-poly.h (lst_niter_for_loop): New.
434 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
436 * graphite-poly.c (apply_poly_transforms): Do not abort when the
437 transform read from disk is not legal. Call fatal_error instead.
439 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
441 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
442 (print_scop_header): Removed. Inlined in the only call place...
443 (print_scop): ... here.
445 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
447 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
449 2010-09-02 Vladimir Kargov <kargov@gmail.com>
451 * graphite-scop-detection.c (is_valid_expr_p, is_valid_loop_p): New.
452 (is_valid_stmt_p): Add data reference and operation-specific checks.
453 (is_valid_bb_p): Change structure, add loop validity check.
454 (is_scop_p): Move the TODO list
455 (find_scops_new): New.
456 (build_scops_new): Move part of functionality to find_scops_new and
457 build_scops. Add necessary steps for successful SCoP construction.
458 (build_scops): Compute SCoP sets for both detection algorithms, choose
459 the resulting one depending on static condition.
461 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
463 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
465 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
467 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
468 (dot_deps_stmt): Same.
469 * graphite-poly.c (dot_lst): Same.
471 2010-08-23 Sebastian Pop <sebastian.pop@amd.com>
473 * graphite-blocking.c (scop_do_strip_mine): Do not call
474 graphite_legal_transform.
475 (scop_do_block): Same.
477 2010-08-20 Vladimir Kargov <kargov@gmail.com>
479 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
482 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
485 * gcc.dg/graphite/id-pr45230.c: New.
487 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
489 * tree-scalar-evolution.c (instantiate_array_ref): New.
490 (instantiate_scev_r): Also handle ARRAY_REFs.
492 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
494 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
495 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
496 RESULT_DECL, and FIELD_DECL. Return false for an
497 SSA_NAME_IS_DEFAULT_DEF.
498 (compute_scalar_evolution_in_loop): Do not further analyze the
499 scalar evolution when no_evolution_in_loop_p returns true.
501 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
503 * tree-chrec.h (evolution_function_is_affine_p): Do not check
504 whether CHREC_LEFT is invariant. A function is affine when
505 CHREC_RIGHT is invariant.
507 2010-08-20 Sebastian Pop <sebastian.pop@amd.com>
509 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
511 (rewrite_degenerate_phi): Same.
512 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
514 2010-08-18 Vladimir Kargov <kargov@gmail.com>
516 * graphite-scop-detection.c (graphite_can_represent_scev,
517 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
518 graphite_can_represent_loop): Remove outermost_loop.
520 2010-08-17 Sebastian Pop <sebastian.pop@amd.com>
523 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
524 handle GIMPLE_CALLs with no LHS.
526 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
527 Sebastian Pop <sebastian.pop@amd.com>
529 * gcc.dg/graphite/graphite.exp: Add test rules for openscop read/write.
530 Call remove-build-file to clean up the generated *.graphite files.
532 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
534 * doc/invoke.texi (debugging options): Update documentation.
535 (-floop-interchange): Same.
536 (-flopp-strip-mine): Same.
537 (-floop-block): Same.
538 (-fgraphite-read): Add documentation.
539 (-fgraphite-write): Same.
541 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
543 * toplev.c (process_options): Disable graphite loop optimization
544 options when -fgraphite-read flag is used.
546 2010-08-17 Riyadh Baghdadi <baghdadi.mr@gmail.com>
548 * graphite-poly.c (init_graphite_out_file): New.
549 (init_graphite_in_file): New.
550 (apply_poly_transforms): Updated to enable reading and writing of
552 * toplev.c (init_asm_output): Remove graphite in/out file initialization.
554 2010-08-17 Tobias Grosser <grosser@fim.uni-passau.de>
556 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
559 2010-08-12 Sebastian Pop <sebastian.pop@amd.com>
561 * graphite-clast-to-gimple.c (precision_for_value): Adjust
562 computation of precision by 1.
564 2010-08-12 Riyadh Baghdadi <baghdadi.mr@gmail.com>
566 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
567 (openscop_read_polyhedron_matrix): New.
568 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
569 (openscop_read_N_int): Same.
570 * graphite-poly.c (openscop_read_N_int): New.
571 (openscop_read_one_int): New.
572 (openscop_read_N_string): New.
573 (openscop_read_one_string): New.
574 (openscop_read_powerset_matrix): New.
575 (graphite_read_transforms): Remove.
576 (graphite_read_scatt): New.
577 (graphite_read_scop_file): New.
578 (apply_poly_transforms): Updated to call graphite_read_scop_file.
580 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
582 * graphite-poly.c: Change include order.
584 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
586 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
587 (cloog_matrix_nrows): New.
589 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
591 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
593 * graphite-poly.c (openscop_print_scattering_function_1): Same.
594 (print_scattering_function_1): Same.
595 (openscop_print_pbb_domain): Same.
596 (openscop_print_scop_context): Same.
597 (print_scop_context): Same.
599 2010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
601 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
602 (openscop_print_pdr_polyhedron): Print pph.
604 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
606 * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files.
607 * gfortran.dg/graphite/graphite.exp: Same.
608 * gcc.dg/graphite/vect-pr43423.c: New.
610 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
612 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
613 priority signed types.
615 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
617 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
618 to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type.
620 2010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com>
622 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
623 (openscop_print_polyhedron_matrix): New.
624 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
625 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
626 (openscop_print_pdr_powerset): New.
627 (openscop_print_powerset_matrix): New.
628 (openscop_print_scattering_function_1): New.
629 (print_scattering_function): Add support for scattering names and
631 (graphite_write_transforms): Remove.
632 (apply_poly_transforms): Updated to call print_scop.
633 (print_pdr_access_layout): Updated to support OpenScop format.
635 (openscop_print_pbb_domain): New.
636 (print_pbb_body): Added a parameter to allow indicating that pbb_body is
638 (print_pbb): Updated to call the new print_pbb_body.
639 (openscop_print_scop_context): New.
640 (print_scop_header): New.
641 (print_scop): Updated to call print_scop_header.
642 * graphite-poly.h: Document OpenScop format.
644 2010-07-29 Sebastian Pop <sebastian.pop@amd.com>
646 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
647 the case removed in the previous patch, when the only phi argument
648 is defined in the same loop as the phi node itself. Handle it
649 separately from the invariant case by both propagating it outside
650 the region and replacing the phi node with an assign.
652 2010-07-28 Sebastian Pop <sebastian.pop@amd.com>
654 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
655 constant phi nodes with one argument are is_gimple_min_invariant
656 and SSA_NAME_IS_DEFAULT_DEF.
658 * gfortran.dg/graphite/id-22.f: New.
660 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
662 * graphite.c (graphite_initialize): Do not initialize
663 CLooG and initialize the Parma Polyhedra Library
664 manually when using CLOOG_ORG.
665 (graphite_finalize): Do not finalize CLooG and finalize
666 the Parma Polyhedra Library manually when using CLOOG_ORG.
667 * graphite-cloog-compat.h (cloog_initialize): Hide function
668 when using CLOOG_ORG.
669 (cloog_finalize): Same.
671 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
673 * graphite-clast-to-gimple.c (free_scattering): Change
674 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
676 (build_cloog_prog): Same.
677 * graphite-cloog-compat.h (cloog_domain): Removed.
678 (cloog_scattering): New.
679 (cloog_set_domain): Removed.
680 (cloog_set_scattering): New.
681 (cloog_next_domain): Removed.
682 (cloog_next_scattering): New.
683 (cloog_set_next_domain): Removed.
684 (cloog_set_next_scattering): New.
685 (CloogScatteringList): New.
686 (CloogScattering): New.
687 (cloog_scattering_free): New.
688 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
689 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
692 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
694 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
696 (set_cloog_options): Same.
697 (print_clast_stmt): Same.
698 (scop_to_clast): Same.
699 (print_generated_program): Same.
701 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
702 (scop_to_clast): Extend with CloogState.
703 * graphite-cloog-util.c: Include graphite-cloog-compat.h
704 (new_Cloog_Domain_from_ppl_Polyhedron):
705 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
706 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
707 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
708 * graphite-cloog-util.h (build_cloog_prog): Same.
709 * graphite-cloog-copat.h (build_cloog_prog): New.
711 (cloog_state_malloc): New.
712 (cloog_state_free): New.
713 (cloog_loop_malloc): New.
714 (cloog_options_malloc): New.
715 (cloog_statement_alloc): New.
716 (cloog_domain_from_cloog_matrix): New.
717 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
718 (new_Cloog_Domain_from_ppl_Polyhedron): New.
720 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
722 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
723 type of NAME now depends on used CLooG version.
724 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
725 (gcc_type_for_clast_expr): Same.
726 (print_clast_stmt): Replace pprint with clast_pprint.
727 * graphite-cloog-compat.h: Provide compatibility macros for
730 (clast_expr_term): New.
731 (clast_expr_red): New.
732 (clast_expr_bin): New.
735 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
737 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
738 compatible to newer CLooG releases (CLOOG_ORG).
739 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
740 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
741 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
742 (build_cloog_prog) : New.
743 (cloog_program_extract_scalars): New.
744 (cloog_program_scatter): New.
746 2010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
748 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
749 conditionally (CLOOG_ORG).
750 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
751 (cloog_statement_usr): New.
752 (cloog_domain): Same.
753 (cloog_set_domain): Same.
754 (cloog_next_domain): Same.
755 (cloog_set_next_domain): Same.
756 (cloog_program_nb_scattdims): Same.
757 (cloog_program_set_nb_scattdims): Same.
758 (cloog_program_names): Same.
759 (cloog_program_set_names): Same.
760 (cloog_program_set_context): Same.
761 (cloog_program_set_loop): Same.
762 (cloog_program_blocklist): Same.
763 (cloog_program_set_blocklist): Same.
764 (cloog_program_scaldims): Same.
765 (cloog_program_set_scaldims): Same.
766 (cloog_names_nb_parameters): Same.
767 (cloog_names_set_nb_parameters): Same.
768 (cloog_names_parameters): Same.
769 (cloog_names_set_parameters): Same.
770 (cloog_names_set_nb_iterators): Same.
771 (cloog_names_set_iterators): Same.
772 (cloog_names_set_nb_scattering): Same.
773 (cloog_names_set_scattering): Same.
774 (cloog_statement_set_usr): Same.
775 (cloog_loop_set_next): Same.
776 (cloog_loop_set_domain): Same.
777 (cloog_loop_set_block): Same.
778 (cloog_block_list_next): Same.
779 (cloog_block_list_set_next):
780 (cloog_block_list_set_block): Same.
782 2010-07-27 Sebastian Pop <sebastian.pop@amd.com>
784 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
786 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
787 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
788 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
789 when something has been changed.
790 (rewrite_commutative_reductions_out_of_ssa): Same.
792 * gcc.dg/graphite/id-26.c: New.
794 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
796 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
797 handle the case when def is in the sese region.
798 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
799 for invariant expressions.
800 (rewrite_cross_bb_phi_deps): Removed.
801 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
802 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
803 rewrite_cross_bb_phi_deps.
805 2010-07-26 Sebastian Pop <sebastian.pop@amd.com>
807 * graphite-sese-to-poly.c
808 (rewrite_commutative_reductions_out_of_ssa_loop): Call
809 scev_analyzable_p only on is_gimple_reg
811 * gcc.dg/graphite/id-25.c: New.
813 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
815 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
816 (rewrite_close_phi_out_of_ssa): Propagate constant values or
817 parametric expressions outside the scop region.
818 (rewrite_cross_bb_scalar_deps): Same.
819 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
821 * gcc.dg/graphite/run-id-5.c: New.
822 * gcc.dg/graphite/run-id-6.c: New.
823 * gfortran.dg/graphite/id-21.f: New.
825 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
827 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
828 SSA_NAME_DEF_STMT only on SSA_NAMEs.
830 * gcc.dg/graphite/id-24.c: New.
832 2010-07-22 Sebastian Pop <sebastian.pop@amd.com>
834 * tree-scalar-evolution.c (instantiate_scev_name): Do not
835 instantiate default definitions.
837 2010-07-20 Vladimir Kargov <kargov@gmail.com>
839 * graphite-scop-detection.c (is_valid_stmt_p): New.
840 (is_valid_bb_p): New.
842 2010-07-20 Vladimir Kargov <kargov@gmail.com>
843 Sebastian Pop <sebastian.pop@amd.com>
845 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
846 (loop_exits_from_bb_p): New.
847 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
848 (loop_exits_from_bb_p): Declared.
849 * graphite-scop-detection.c (scopdet_basic_block_info): Call
852 2010-07-20 Vladimir Kargov <kargov@gmail.com>
854 * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and
856 (dot_regions_1): New.
858 * refined-regions.h (dot_regions): Declared.
859 * Makefile.in (refined-regions.o): Update dependences.
861 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
863 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
864 extra parameter for the region. Call scev_analyzable_p.
865 (rewrite_reductions_out_of_ssa): Update call to
866 rewrite_close_phi_out_of_ssa.
867 (rewrite_cross_bb_phi_deps): Same.
868 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
869 parameter for the region. Call scev_analyzable_p.
870 (rewrite_commutative_reductions_out_of_ssa): Update call to
871 rewrite_commutative_reductions_out_of_ssa_loop.
873 2010-07-20 Sebastian Pop <sebastian.pop@amd.com>
875 * gcc.dg/tree-ssa/pr20742.c: New.
877 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
879 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
881 * gcc.dg/graphite/id-23.c: New.
883 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
885 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
886 SSA scalar phi nodes that can be scev_analyzable_p.
888 * gfortran.dg/graphite/id-20.f: Adjust testcase.
890 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
892 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
893 handle SSA_NAME_IS_DEFAULT_DEF.
895 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
897 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
899 * gcc.dg/graphite/pr42729.c: New.
901 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
903 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
904 case non close-phi nodes with one argument.
906 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
908 * sese.h (scev_analyzable_p): Scevs could be expressions without
909 chrecs and still be scev_analyzable_p.
911 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
913 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
915 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
917 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
918 * cfgloop.h (struct loop): Remove single_iv field.
919 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
920 (scop_canonicalize_loops): Removed.
921 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
922 over all the loop phi nodes in loop->header.
923 (build_poly_scop): Remove use of scop_canonicalize_loops.
925 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
927 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
930 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
932 * tree-chrec.c (chrec_apply): Should only apply to the specified
933 variable. Also handle multivariate chains of recurrences that
934 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
936 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
938 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
939 (debug_clast_name_indexes_1): Removed.
940 (debug_clast_name_indexes): Removed.
941 (pbb_to_depth_to_oldiv): Removed.
942 (build_iv_mapping): Replace the use of rename_map with iv_map.
943 (translate_clast_user): Remove uses of rename_map. Allocate and
945 (translate_clast_for_loop): Remove uses of rename_map.
946 (translate_clast_for): Same.
947 (translate_clast_guard): Same.
948 (translate_clast): Same.
950 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
951 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
952 * sese.c (set_rename): Now static.
953 (rename_variables_in_stmt): Removed.
955 (is_parameter): Removed.
957 (expand_scalar_variables_call): Removed.
958 (expand_scalar_variables_ssa_name): Removed.
959 (expand_scalar_variables_expr): Removed.
960 (expand_scalar_variables_stmt): Removed.
961 (expand_scalar_variables): Removed.
962 (rename_variables): Removed.
963 (remove_condition): Removed.
964 (get_true_edge_from_guard_bb): Removed.
965 (get_false_edge_from_guard_bb): Removed.
966 (struct igp): Removed.
967 (default_before_guard): Removed.
968 (convert_for_phi_arg): Removed.
969 (add_guard_exit_phis): Removed.
970 (insert_guard_phis): Removed.
971 (graphite_copy_stmts_from_block): Now also uses iv_map and a
972 region. Do not copy conditions. Do not copy induction variables.
974 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
975 the translated statement. Use the iv_map for the induction
977 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
978 (set_rename): Removed declaration.
979 (scev_analyzable_p): ...here.
980 * tree-chrec.c (chrec_apply_map): New.
981 * tree-chrec.h (chrec_apply_map): Declared.
983 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
985 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
986 insert_loop_close_phis.
987 * sese.c (name_defined_in_loop_p): Removed.
988 (expr_defined_in_loop_p): Removed.
989 (alive_after_loop): Removed.
990 (close_phi_not_yet_inserted_p): Removed.
991 (struct alep): Removed.
992 (add_loop_exit_phis): Removed.
993 (insert_loop_close_phis): Removed.
995 2010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
997 * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped
999 * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same.
1001 2010-07-07 Sebastian Pop <sebastian.pop@amd.com>
1003 * gfortran.dg/graphite/id-20.f: New.
1005 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1007 * graphite-cloog-util.h: Added cloog.h.
1008 * graphite-blocking.c: Removed cloog.h.
1009 * graphite-dependences.c: Same.
1010 * graphite-interchange.c: Same.
1011 * graphite-poly.c: Same.
1012 * graphite-ppl.c: Same.
1013 * graphite-scop-detection.c: Same.
1014 * graphite-sese-to-poly.c:
1016 Removed graphite-clast-to-gimple.h.
1017 (check_poly_representation): Removed (unused).
1018 * graphite-sese-to-poly.h
1019 (check_poly_representation): Removed (unused).
1021 2010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1024 (OBJS-common): Added graphite-cloog-util.o.
1025 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
1026 (graphite-cloog-util.o): New.
1027 (graphite-ppl.o): Added graphite-cloog-util.h.
1028 * graphite-clast-to-gimple.c:
1029 Added graphite-cloog-util.h to include statements.
1030 * graphite-cloog-util.c: New.
1031 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
1032 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1033 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1034 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1035 (ppl_Constrain_System_number_of_constraints): Same.
1036 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1037 (oppose_constraint): Same.
1038 (cloog_matrix_to_ppl_constraint): Same.
1039 (new_Constraint_System_from_Cloog_Matrix): Same.
1040 (insert_constraint_into_matrix): Same. Declared static.
1041 * graphite-cloog-util.h: New.
1042 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
1043 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1044 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1045 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1046 (insert_constraint_into_matrix): Same.
1048 Added graphite-cloog-util.h to include statements.
1049 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
1050 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1051 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1052 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1053 (insert_constraint_into_matrix): Same.
1054 (ppl_Constrain_System_number_of_constraints): Same.
1055 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
1056 (oppose_constraint): Same.
1057 (cloog_matrix_to_ppl_constraint): Same.
1058 (new_Constraint_System_from_Cloog_Matrix): Same.
1060 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
1061 graphite-cloog-util.h.
1062 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
1063 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1064 (new_C_Polyhedron_from_Cloog_Matrix): Same.
1065 (insert_constraint_into_matrix): Removed.
1067 2010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1069 * graphite-clast-to-gimple.c
1070 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
1071 (precision_for_interval): Same.
1072 (gcc_type_for_interval): Same.
1073 (compute_type_for_level): Same.
1074 * graphite-interchange.c
1075 (lst_interchange_profitable_p): Same.
1077 (psct_scattering_dim_for_loop_depth): Same.
1079 (ppl_max_for_le_pointset): Same.
1080 (ppl_min_for_le_pointset): Same.
1082 2010-06-25 Vladimir Kargov <kargov@gmail.com>
1084 * refined-regions.c (bb_index_compare): New.
1085 (get_bbs_in_region): New.
1086 (print_bbs_in_region): New.
1087 (print_refined_region): Add an argument that allows to print
1088 all basic blocks contained in regions.
1089 (debug_refined_region): Update call to print_refined_region.
1090 * refined-regions.h (print_refined_region): Update declaration.
1091 (get_bbs_in_region): Declared.
1092 * graphite-scop-detection.c (build_scops_new): Print the refined
1093 region tree into the Grahite dump file.
1095 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1097 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
1098 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
1100 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1102 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
1103 rewrite_close_phi_out_of_ssa.
1105 * gcc.dg/graphite/id-22.c: New.
1107 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1109 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
1111 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1113 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
1115 * sese.c (debug_rename_map): Same.
1118 (rename_variables_in_stmt): Same.
1119 (expand_scalar_variables_call): Same.
1120 (expand_scalar_variables_ssa_name): Same.
1121 (expand_scalar_variables_expr): Same.
1122 (expand_scalar_variables_stmt): Same.
1123 (expand_scalar_variables): Same.
1124 (rename_variables): Same.
1125 (graphite_copy_stmts_from_block): Same.
1126 (copy_bb_and_scalar_dependences): Same.
1128 2010-06-24 Sebastian Pop <sebastian.pop@amd.com>
1130 * graphite-clast-to-gimple.c (copy_renames): Removed.
1131 (translate_clast_for): Do not call copy_renames.
1132 (translate_clast_guard): Same.
1134 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1136 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
1137 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
1138 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
1139 before rewrite_cross_bb_scalar_deps.
1141 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1143 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
1144 Early return in when flag_associative_math is not set.
1146 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1148 * gcc.dg/graphite/run-id-2.c: Call abort.
1150 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1152 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
1153 of SSA copies on edges except for loop->latch.
1155 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1157 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
1158 Split out of rewrite_reductions_out_of_ssa.
1159 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
1161 * graphite.c (graphite_transform_loops): Call it.
1163 2010-06-23 Sebastian Pop <sebastian.pop@amd.com>
1165 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
1167 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
1169 * passes.c (init_optimization_passes): Add pass_graphite.
1170 Schedule a pass_copy_prop before pass_graphite_transforms.
1171 * timevar.def (TV_GRAPHITE): Declared.
1172 * tree-pass.h (pass_graphite): Declared.
1173 * tree-ssa-loop.c (pass_graphite): New.
1175 * gcc.dg/graphite/id-20.c: New.
1177 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1179 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
1180 Remove calls to rename_nb_iterations and rename_sese_parameters.
1181 * graphite-clast-to-gimple.h (gloog): Update declaration.
1182 * graphite.c (graphite_transform_loops): Update call to gloog.
1183 * sese.c (rename_variables_in_expr): Removed.
1184 (rename_nb_iterations): Removed.
1185 (rename_sese_parameters): Removed.
1186 * sese.h (rename_nb_iterations): Removed.
1187 (rename_sese_parameters): Removed.
1189 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1191 * graphite-clast-to-gimple.c (gloog): Remove call to
1192 sese_adjust_liveout_phis.
1193 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
1194 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
1195 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
1196 rewrite_phi_out_of_ssa.
1197 * sese.c (get_vdef_before_sese): Removed.
1198 (sese_adjust_vphi): Removed.
1199 (sese_adjust_liveout_phis): Removed.
1200 * sese.h (sese_adjust_liveout_phis): Removed.
1202 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1204 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
1205 argument for the place after which to insert the out of SSA copy.
1206 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
1207 (rewrite_phi_out_of_ssa): Same.
1208 (rewrite_cross_bb_scalar_deps): Same.
1209 (insert_copyout): Removed.
1210 (insert_copyin): Removed.
1211 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
1212 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
1215 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1217 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
1218 (rewrite_reductions_out_of_ssa): Same.
1219 (rewrite_commutative_reductions_out_of_ssa): Same.
1220 (build_poly_scop): Do not call these functions.
1221 * graphite-sese-to-poly.h (build_poly_scop): Declared.
1222 (rewrite_reductions_out_of_ssa): Declared.
1223 (rewrite_commutative_reductions_out_of_ssa): Declared.
1224 * graphite.c (graphite_transform_loops): Call on every scop
1225 rewrite_commutative_reductions_out_of_ssa before calling
1226 rewrite_reductions_out_of_ssa and build_scop_bbs.
1228 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
1230 * graphite-dependences.c (dot_deps): Make system call to dotty run
1232 (dot_deps_stmt): Same.
1233 * graphite-poly.c (dot_lst): Same.
1235 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
1237 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
1238 old_type in parameter.
1239 (gcc_type_for_value): Update call to gcc_type_for_interval.
1240 (compute_type_for_level_1): Renamed compute_type_for_level.
1241 Update call to gcc_type_for_interval.
1243 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1245 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
1246 the scev analysis when the variable is not used outside the loop
1247 in a close phi node: call compute_overall_effect_of_inner_loop.
1249 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1251 * graphite-sese-to-poly.c (single_pred_cond): Renamed
1252 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
1253 (build_sese_conditions_before): Renamed call to single_pred_cond.
1254 (build_sese_conditions_after): Same.
1256 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
1258 * graphite-poly.h: Fix comments and indentation.
1259 * graphite-sese-to-poly.c: Same.
1260 (build_sese_conditions_before): Compute stmt and gbb only when needed.
1261 * tree-chrec.c: Fix comments and indentation.
1262 (tree-ssa-loop-niter.c): Same.
1264 2010-06-08 Tobias Grosser <grosser@fim.uni-passau.de>
1266 * refined-regions.c (create_region): Only initialize the region.
1267 (find_regions_with_entry): Initialize parent relation and bbmap
1269 (build_regions_tree): Set outermost_region to region instead of
1271 (calculate_region_tree): Remove unneeded parameters.
1273 2010-06-02 Tobias Grosser <grosser@fim.uni-passau.de>
1275 * graphite-scop-detection.c (is_scop_p): New.
1276 (build_scops_new): New. A skeleton for the new scop detection.
1277 (build_scops_old): Renamed from build_scops.
1278 (build_scops): New version. Call the new and the old scop
1281 2010-05-27 Tobias Grosser <grosser@fim.uni-passau.de>
1282 Antoniu Pop <antoniu.pop@gmail.com>
1284 * Makefile.in (OBJS-common): Add refined-regions.o.
1285 (refined-regions.o): New.
1286 (graphite-scop-detection.o): Use refined-regions.h.
1287 * graphite-scop-detection.c: Include refined-regions.h
1288 (build_scops): Also build the refined region tree.
1289 * refined-regions.c: New. Adds an algorithm to detect refined
1291 (print_refined_region): New.
1292 (debug_refined_region): New.
1293 (refined_region_contains_bb_p): New.
1294 (refined_region_contains_region_p): New.
1295 (is_common_df): New.
1296 (struct find_regions_global_data): New.
1298 (typedef struct bb_bb_def): New.
1299 (new_bb_bb_def): New.
1300 (bb_bb_map_hash): New.
1301 (eq_bb_bb_map): New.
1304 (new_bb_reg_def): New.
1305 (bb_reg_map_hash): New.
1306 (eq_bb_reg_map): New.
1307 (find_new_region): New.
1308 (insert_new_reg): New.
1309 (insert_new_bb): New.
1310 (insert_shortcut): New.
1311 (get_next_postdom): New.
1312 (create_region): New.
1313 (find_regions_with_entry): New.
1314 (find_regions_adc): New.
1315 (find_regions): New.
1316 (get_topmost_parent): New.
1317 (build_regions_tree): New.
1318 (calculate_region_tree): New.
1319 (free_region_tree): New.
1320 * refined-regions.h: New.
1321 (struct refined_region): New.
1322 (calculate_region_tree): New.
1323 (free_region_tree): New.
1324 (refined_region_contains_bb_p): New.
1325 (refined_region_contains_region_p): New.
1326 (print_refined_region): New.
1327 (debug_refined_region): New.
1329 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
1331 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1334 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
1336 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix
1337 type of integer_one_node for fold_build of POINTER_PLUS_EXPR.
1339 2010-05-07 Sebastian Pop <sebastian.pop@amd.com>
1341 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
1342 phi_arg_in_outermost_loop.
1343 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
1344 (remove_invariant_phi): Same.
1346 2010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1348 * graphite-blocking.c
1349 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
1350 * graphite-clast-to-gimple.c
1351 (clast_to_gcc_expression): Same.
1352 (precision_for_value): Same.
1353 (precision_for_interval): Same.
1354 (gcc_type_for_interval): Same.
1355 (graphite_create_new_guard): Same.
1356 (compute_bounds_for_level): Same.
1357 (graphite_create_new_loop_guard): Same.
1358 * graphite-interchange.c
1359 (build_linearized_memory_access): Same.
1360 (pdr_stride_in_loop): Same.
1361 (memory_strides_in_loop_1): Same.
1362 (memory_strides_in_loop): Same.
1363 (extend_scattering): Same.
1364 (psct_scattering_dim_for_loop_depth): Same.
1365 (pbb_number_of_iterations): Same.
1367 (debug_iteration_domains): Same.
1369 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
1370 (ppl_set_inhomogeneous_gmp): Same.
1371 (ppl_strip_loop): Same.
1372 (ppl_lexico_compare_linear_expressions): Same.
1373 (ppl_read_polyhedron_matrix): Same.
1374 (ppl_max_for_le_pointset): Same.
1376 (ppl_read_polyhedron_matrix): Same.
1377 (tree_int_to_gmp): Same.
1378 (gmp_cst_to_tree): Same.
1379 (ppl_set_inhomogeneous): Same.
1380 (ppl_set_inhomogeneous_tree): Same.
1381 (ppl_set_coef): Same.
1382 (ppl_set_coef_tree): Same.
1383 * graphite-sese-to-poly.c
1384 (build_pbb_scattering_polyhedrons): Same.
1385 (build_scop_scattering): Same.
1386 (scan_tree_for_params_right_scev): Same.
1387 (scan_tree_for_params): Same.
1388 (find_params_in_bb): Same.
1389 (find_scop_parameters): Same.
1390 (add_upper_bounds_from_estimated_nit): Same.
1391 (build_loop_iteration_domains): Same.
1392 (add_condition_to_domain): Same.
1393 (pdr_add_memory_accesses): Same.
1395 2010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
1397 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
1398 CLooG's value_* macros to their respective mpz_* counterparts.
1399 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
1400 (graphite_create_new_loop_guard): Same.
1401 * graphite-interchange.c (build_linearized_memory_access): Same.
1402 (pdr_stride_in_loop): Same.
1403 (memory_strides_in_loop_1): Same.
1404 (1st_interchange_profitable_p): Same.
1405 * graphite-poly.c (extend_scattering): Same.
1406 (psct_scattering_dim_for_loop_depth): Same.
1407 (pbb_number_of_iterations): Same.
1408 (pbb_number_of_iterations_at_time): Same.
1409 * graphite-poly.h (new_1st_loop): Same.
1410 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
1411 (oppose_constraint): Same.
1412 (insert_constraint_into_matrix): Same.
1413 (ppl_set_inhomogeneous_gmp): Same.
1414 (ppl_set_coef_gmp): Same.
1415 (ppl_strip_loop): Same.
1416 (ppl_lexico_compare_linear_expressions): Same.
1417 (ppl_max_for_le_pointset): Same.
1418 (ppl_min_for_le_pointset): Same.
1419 (ppl_build_realtion): Same.
1420 * graphite-ppl.h (gmp_cst_to_tree): Same.
1421 (ppl_set_inhomogeneous): Same.
1422 (ppl_set_inhomogeneous_tree): Same.
1423 (ppl_set_coef): Same.
1424 (ppl_set_coef_tree): Same.
1425 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
1426 (build_scop_scattering): Same.
1427 (add_value_to_dim): Same.
1428 (scan_tree_for_params_right_scev): Same.
1429 (scan_tree_for_params_int): Same.
1430 (scan_tree_for_params): Same.
1431 (find_params_in_bb): Same.
1432 (find_scop_parameters): Same.
1433 (add_upper_bounds_from_estimated_nit): Same.
1434 (build_loop_iteration_domains): Same.
1435 (create_linear_expr_from_tree): Same.
1436 (add_condition_to_domain): Same.
1437 (pdr_add_memory_accesses): Same.
1439 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1442 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1443 lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
1444 When converting an unsigned type to signed, double its precision.
1445 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
1446 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
1447 (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
1449 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1452 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
1453 build_nonstandard_integer_type.
1454 (gcc_type_for_interval): Same.
1456 2010-04-05 Sebastian Pop <sebastian.pop@amd.com>
1459 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
1460 POINTER_PLUS_EXPR for pointer types.
1462 * gcc.dg/graphite/id-19.c: New.
1464 2010-04-04 Sebastian Pop <sebastian.pop@amd.com>
1467 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
1468 * graphite-clast-to-gimple.c: Include langhooks.h.
1469 (max_signed_precision_type): New.
1470 (max_precision_type): Takes two types as arguments.
1471 (precision_for_value): New.
1472 (precision_for_interval): New.
1473 (gcc_type_for_interval): New.
1474 (gcc_type_for_value): New.
1475 (gcc_type_for_clast_term): New.
1476 (gcc_type_for_clast_red): New.
1477 (gcc_type_for_clast_bin): New.
1478 (gcc_type_for_clast_expr): Split up into several functions.
1479 (gcc_type_for_clast_eq): Rewritten.
1480 (compute_bounds_for_level): New.
1481 (compute_type_for_level_1): New.
1482 (compute_type_for_level): New.
1483 (gcc_type_for_cloog_iv): Removed.
1484 (gcc_type_for_iv_of_clast_loop): Rewritten.
1485 (graphite_create_new_loop): Compute the lower and upper bound types
1486 with gcc_type_for_clast_expr.
1487 (graphite_create_new_loop_guard): Same.
1488 (find_cloog_iv_in_expr): Removed.
1489 (compute_cloog_iv_types_1): Removed.
1490 (compute_cloog_iv_types): Removed.
1491 (gloog): Do not call compute_cloog_iv_types.
1492 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
1494 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
1495 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
1496 (GBB_CLOOG_IV_TYPES): Removed.
1498 * gcc.dg/graphite/run-id-pr42644.c: Call abort.
1500 2010-04-02 Sebastian Pop <sebastian.pop@amd.com>
1502 Reverted this commit: as at this point the loop closed SSA form
1503 is under a canonical form respecting the single argument condition.
1504 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1505 close phi nodes may have more than one argument.
1507 2010-04-01 Sebastian Pop <sebastian.pop@amd.com>
1509 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
1510 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
1511 (detect_commutative_reduction): Same.
1513 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
1515 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
1516 close phi nodes may have more than one argument.
1518 2010-03-30 Richard Guenther <rguenther@suse.de>
1519 Zdenek Dvorak <ook@ucw.cz>
1520 Sebastian Pop <sebastian.pop@amd.com>
1523 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
1524 with multiple arguments.
1525 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
1527 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1529 * graphite-dependences.c (print_pddr): Call print_pdr with an
1531 * graphite-poly.c (debug_pdr): Add an extra argument for the
1534 (print_pbb_domain): Same.
1536 (print_scop_context): Same.
1538 (print_cloog): Same.
1539 (debug_pbb_domain): Same.
1543 (debug_scop_context): Same.
1545 (debug_cloog): Same.
1546 (print_scop_params): Same.
1547 (debug_scop_params): Same.
1548 (print_iteration_domain): Same.
1549 (print_iteration_domains): Same.
1550 (debug_iteration_domain): Same.
1551 (debug_iteration_domains): Same.
1552 (print_scattering_function): Same.
1553 (print_scattering_functions): Same.
1554 (debug_scattering_function): Same.
1555 (debug_scattering_functions): Same.
1556 * graphite-poly.h (debug_pdr): Update declaration.
1558 (print_pbb_domain): Same.
1560 (print_scop_context): Same.
1562 (print_cloog): Same.
1563 (debug_pbb_domain): Same.
1567 (debug_scop_context): Same.
1569 (debug_cloog): Same.
1570 (print_scop_params): Same.
1571 (debug_scop_params): Same.
1572 (print_iteration_domain): Same.
1573 (print_iteration_domains): Same.
1574 (debug_iteration_domain): Same.
1575 (debug_iteration_domains): Same.
1576 (print_scattering_function): Same.
1577 (print_scattering_functions): Same.
1578 (debug_scattering_function): Same.
1579 (debug_scattering_functions): Same.
1581 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1583 * graphite-poly.c (print_scattering_function_1): New.
1584 (print_scattering_function): Call it.
1585 (print_scop_params): Remove spaces at the end of lines.
1588 * graphite-poly.h (print_cloog): Declared.
1589 (debug_cloog): Declared.
1591 2010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1593 * tree-ssa-copy.c: Revert this previous change:
1594 (init_copy_prop): Loop closed phi nodes cancontain more than one
1596 (execute_copy_prop): Revert the previous change: do not call
1597 rewrite_into_loop_closed_ssa.
1599 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1600 Richard Guenther <rguenther@suse.de>
1603 * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can
1604 contain more than one argument.
1605 (execute_copy_prop): Revert the previous change: do not call
1606 rewrite_into_loop_closed_ssa.
1608 * gcc.dg/graphite/id-pr43464.c: Remove compile warning.
1609 * gcc.dg/graphite/id-pr43464-1.c: New.
1611 2010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1614 * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa
1615 and verify_loop_closed_ssa when copy prop is executed in the LNO.
1617 * gcc.dg/graphite/id-pr43464.c: New.
1619 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1621 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
1623 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
1624 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
1625 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
1626 to switch between adding the IV bump in loop->latch or in loop->header.
1628 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1630 * passes.c (init_optimization_passes): Add pass_copy_prop
1633 2010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1635 * graphite-poly.c (print_scattering_function): Pretty print following
1638 (print_pbb_domain): Same.
1639 (dump_gbb_cases): Same.
1640 (dump_gbb_conditions): Same.
1643 (print_scop_params): Same.
1644 (print_scop_context): Same.
1646 (print_pbb_body): New.
1647 (lst_indent_to): New.
1648 (print_lst): Start new lines with a #.
1649 * graphite-poly.h (pbb_bb): New.
1650 (pbb_index): Use pbb_bb.
1651 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
1653 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
1655 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1658 * gcc.dg/graphite/id-pr43351.c
1660 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1663 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
1664 call insert_out_of_ssa_copy for default definitions.
1665 * gfortran.dg/graphite/id-pr43354.f: New.
1667 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1670 * gfortran.dg/graphite/pr43349.f: New.
1672 2010-03-11 Sebastian Pop <sebastian.pop@amd.com>
1674 * graphite-clast-to-gimple.c (my_long_long): Defined.
1675 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
1676 * graphite-sese-to-poly.c (my_long_long): Defined.
1677 (scop_ivs_can_be_represented): Use it.
1679 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1681 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
1682 graphite-max-bbs-per-function, and loop-block-tile-size.
1683 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
1685 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
1687 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1689 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
1690 forward declaration.
1691 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
1692 (add_upper_bounds_from_estimated_nit): New.
1693 (build_loop_iteration_domains): Use it.
1695 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1697 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
1699 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1702 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
1703 should be an INTEGER_CST. Also handle CASE_CONVERT.
1704 * gcc.dg/graphite/pr43306.c: New.
1706 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1708 * graphite.c (graphite_initialize): To bound the number of bbs per
1709 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
1710 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
1711 * doc/invoke.texi: Document it.
1713 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1715 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
1716 * graphite-sese-to-poly.h (build_poly_scop): Same.
1718 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1720 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
1721 the number of parameters in the scop. Use as an upper bound
1722 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
1723 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
1724 * doc/invoke.texi: Document it.
1726 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1728 * graphite-sese-to-poly.c (add_param_constraints): Use
1729 lower_bound_in_type and upper_bound_in_type.
1731 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1733 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
1734 instead of unsigned_type_node.
1736 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1737 Reza Yazdani <reza.yazdani@amd.com>
1740 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
1741 on pointer type parameters.
1743 * gcc.dg/graphite/run-id-4.c: New.
1745 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1748 * gcc.dg/graphite/run-id-3.c: New.
1750 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
1751 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1753 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
1754 handle conversions from pointer to integers.
1755 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
1756 induction variable, to be able to work with code generated by CLooG.
1757 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
1758 (build_poly_scop): Bail out if we cannot codegen a loop.
1760 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1762 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
1763 code generation with gloog_error.
1765 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1767 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
1768 Call fold_convert on all the returned values.
1769 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
1770 the type of the resulting expression.
1772 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1774 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
1775 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
1776 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
1778 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1780 * graphite-dependences.c (map_into_dep_poly): Removed.
1781 (dependence_polyhedron_1): Use combine_context_id_scat.
1783 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1785 * graphite-poly.h (struct poly_scattering): Add layout documentation.
1786 (struct poly_bb): Same.
1787 (combine_context_id_scat): New.
1789 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
1792 * sese.c (name_defined_in_loop_p): Return false for default
1795 * gcc.dg/graphite/pr42326.c: New.
1797 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1799 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
1800 and clean up the logic.
1802 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1804 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
1807 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1810 * graphite-scop-detection.c (create_single_exit_edge): Move
1811 the call to find_single_exit_edge to....
1812 (create_sese_edges): ...here. Don't handle multiple edges
1813 exiting the function.
1814 (build_graphite_scops): Don't handle multiple edges
1815 exiting the function.
1817 * gcc.dg/graphite/pr43083.c: New.
1819 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1822 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
1823 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
1825 * gfortran.dg/graphite/pr43097.f: New.
1827 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1828 Manuel López-Ibáñez <manu@gcc.gnu.org>
1831 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
1833 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1836 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
1838 * g++.dg/graphite/pr43026.C: New.
1840 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
1842 * Merge from mainline (154736:156693).
1844 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
1847 * gcc.dg/graphite/pr43012.c: New.
1849 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1851 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
1852 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1854 * g++.dg/graphite/pr42930.C: New.
1856 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1859 * graphite-scop-detection.c (graphite_can_represent_scev): Call
1860 graphite_can_represent_init for MULT_EXPR.
1862 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1866 * graphite-sese-to-poly.c (remove_phi): New.
1867 (translate_scalar_reduction_to_array): Call remove_phi.
1869 * gcc.dg/graphite/pr42530.c: New.
1870 * gcc.dg/graphite/pr42914.c: New.
1872 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1875 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
1876 * graphite-clast-to-gimple.h (gloog): Update declaration.
1877 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
1878 * graphite-poly.h (struct poly_bb): Add missing comments.
1879 (struct scop): Add poly_scop_p field.
1881 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
1882 * graphite.c (graphite_transform_loops): Build the polyhedral
1883 representation for each scop before code generation.
1884 * sese.c (rename_variables_in_operand): Removed.
1885 (rename_variables_in_expr): Return the renamed expression.
1886 (rename_sese_parameters): New.
1887 * sese.h (rename_sese_parameters): Declared.
1889 * gcc.dg/graphite/pr42771.c: New.
1891 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1893 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
1895 * gcc.dg/graphite/block-1.c: Same.
1896 * gcc.dg/graphite/block-3.c: Same.
1897 * gcc.dg/graphite/block-4.c: Same.
1898 * gcc.dg/graphite/block-5.c: Same.
1899 * gcc.dg/graphite/block-6.c: Same.
1900 * gcc.dg/graphite/block-7.c: Same.
1901 * gcc.dg/graphite/interchange-0.c: Same.
1902 * gcc.dg/graphite/interchange-1.c: Same.
1903 * gcc.dg/graphite/interchange-10.c: Same.
1904 * gcc.dg/graphite/interchange-11.c: Same.
1905 * gcc.dg/graphite/interchange-12.c: Same.
1906 * gcc.dg/graphite/interchange-2.c: Same.
1907 * gcc.dg/graphite/interchange-3.c: Same.
1908 * gcc.dg/graphite/interchange-4.c: Same.
1909 * gcc.dg/graphite/interchange-5.c: Same.
1910 * gcc.dg/graphite/interchange-6.c: Same.
1911 * gcc.dg/graphite/interchange-7.c: Same.
1912 * gcc.dg/graphite/interchange-8.c: Same.
1913 * gcc.dg/graphite/interchange-9.c: Same.
1914 * gcc.dg/graphite/interchange-mvt.c: Same.
1916 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1918 * gfortran.dg/graphite/id-19.f: New.
1919 * gfortran.dg/graphite/pr14741.f90: New.
1920 * gfortran.dg/graphite/pr41924.f90: New.
1921 * gfortran.dg/graphite/run-id-2.f90: New.
1923 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1926 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
1927 to unknown_dependence.
1928 (graphite_legal_transform_dr): Handle the unknown_dependence.
1929 (graphite_carried_dependence_level_k): Same.
1931 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1933 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
1935 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
1936 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1939 * graphite-dependences.c (build_lexicographical_constraint): Return
1940 a union of dependence polyhedra.
1941 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
1943 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
1944 * gcc.dg/graphite/block-4.c: Same.
1945 * gcc.dg/graphite/block-7.c: Same.
1946 * gcc.dg/graphite/interchange-12.c: Same.
1947 * gcc.dg/graphite/interchange-mvt.c: Same.
1948 * gfortran.dg/graphite/interchange-1.f: XFAILed.
1949 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
1950 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
1952 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1954 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
1955 the execution check to FAIL. This testcase is miscompiled by Graphite
1956 and the check should be re-enabled.
1957 * gcc.dg/graphite/interchange-mvt.c: Same.
1958 * gcc.dg/graphite/block-0.c: Same.
1959 * gcc.dg/graphite/block-4.c: Same.
1960 * gcc.dg/graphite/block-7.c: Same.
1962 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1964 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
1965 * gcc.dg/graphite/scop-0.c: Fix spaces.
1966 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
1967 * gfortran.dg/graphite/block-2.f: Same.
1968 * gfortran.dg/graphite/block-3.f90: Same.
1969 * gfortran.dg/graphite/block-4.f90: Same.
1970 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
1971 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
1973 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1975 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
1976 PDDR_ORIGINAL_SCATTERING_P.
1977 (pddr_is_empty): Rewritten.
1978 (print_dependence_polyhedron_layout): New.
1981 (build_alias_set_powerset): Moved up.
1982 (poly_drs_may_alias_p): Moved up.
1983 (lexicographically_gt_p): Removed.
1984 (build_lexicographically_gt_constraint): Renamed
1985 build_lexicographical_constraint, reimplemented.
1986 (dependence_polyhedron_1): Simplified parameters.
1987 (dependence_polyhedron): Same. Keep along empty PDDRs
1988 to make efficient use of the cache.
1989 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
1990 (graphite_legal_transform_dr): Rewritten.
1991 (graphite_legal_transform_bb): Pass fewer arguments to
1992 graphite_legal_transform_dr.
1993 (graphite_carried_dependence_level_k): Simplified implementation.
1994 (dot_original_deps_stmt_1): Call dependence_polyhedron.
1995 (dot_transformed_deps_stmt_1): Same.
1996 (dot_original_deps): Same.
1997 (dot_transformed_deps): Same.
1998 * graphite-dependences.h (struct poly_ddr): Added a new field
1999 original_scattering_p.
2000 (PDDR_ORIGINAL_SCATTERING_P): New.
2001 (print_pddr): Declared.
2002 (debug_pddr): Declared.
2003 * graphite-ppl.c: Clarify comment.
2004 * sese.h (print_gimple_bb): Removed unused declaration.
2007 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
2009 * g++.dg/graphite/graphite.exp: Rewritten.
2010 * gcc.dg/graphite/graphite.exp: Rewritten.
2011 * gfortran.dg/graphite/graphite.exp: Rewritten.
2012 * gcc.dg/graphite/block-0.c: Added runtime test.
2013 * gcc.dg/graphite/block-1.c: Same.
2014 * gcc.dg/graphite/block-3.c: Same.
2015 * gcc.dg/graphite/block-4.c: Same.
2016 * gcc.dg/graphite/block-5.c: Same.
2017 * gcc.dg/graphite/block-6.c: Same.
2018 * gcc.dg/graphite/block-7.c: Same.
2019 * gcc.dg/graphite/interchange-0.c: Same.
2020 * gcc.dg/graphite/interchange-1.c: Same.
2021 * gcc.dg/graphite/interchange-10.c: Same.
2022 * gcc.dg/graphite/interchange-11.c: Same.
2023 * gcc.dg/graphite/interchange-12.c: Same.
2024 * gcc.dg/graphite/interchange-2.c: Same.
2025 * gcc.dg/graphite/interchange-3.c: Same.
2026 * gcc.dg/graphite/interchange-4.c: Same.
2027 * gcc.dg/graphite/interchange-5.c: Same.
2028 * gcc.dg/graphite/interchange-6.c: Same.
2029 * gcc.dg/graphite/interchange-7.c: Same.
2030 * gcc.dg/graphite/interchange-8.c: Same.
2031 * gcc.dg/graphite/interchange-9.c: Same.
2032 * gcc.dg/graphite/interchange-mvt.c: Same.
2033 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
2035 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2037 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
2040 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2042 * common.opt: Add -fgraphite-cloog-opts.
2043 * graphite-clast-to-gimple.c (set_cloog_options): Same.
2044 * opts.c (decode_options): Same.
2046 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2048 * gcc.dg/graphite/id-17.c: New.
2049 * gcc.dg/graphite/pr41888.c: New.
2050 * gcc.dg/graphite/scop-22.c: New.
2051 * gfortran.dg/graphite/pr40982.f90: New.
2053 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2055 * graphite-dependences.c: Clarify comments.
2056 (build_pddr): Add an extra parameter direction.
2057 (graphite_legal_transform_dr): Use build_pddr.
2058 (dot_original_deps_stmt_1): Update use of build_pddr.
2059 (dot_transformed_deps_stmt_1): Same.
2060 (dot_original_deps): Same.
2061 (dot_transformed_deps): Same.
2063 * gcc.dg/graphite/interchange-12.c: New.
2064 * gcc.dg/graphite/block-7.c: New.
2066 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2068 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
2069 (pddr_transformed_scattering): Removed.
2070 (graphite_legal_transform_dr): Use build_pddr.
2071 (dot_original_deps_stmt_1): Same.
2072 (dot_transformed_deps_stmt_1): Same.
2073 (dot_original_deps): Same.
2074 (dot_transformed_deps): Same.
2076 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2078 * graphite-dependences.c (lexicographically_gt_p): Add comments.
2079 (build_lexicographically_gt_constraint): Same.
2080 (dependence_polyhedron_1): Same.
2081 (dependence_polyhedron): Same.
2083 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2085 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
2086 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
2087 (lexicographically_gt_p): Change type of direction to int.
2088 (build_lexicographically_gt_constraint): Same.
2089 (dependence_polyhedron_1): Same.
2090 (dependence_polyhedron): Same.
2091 (pddr_original_scattering): Use integers for direction.
2092 (pddr_transformed_scattering): Same.
2093 (graphite_legal_transform_dr): Same.
2094 (graphite_carried_dependence_level_k): Same.
2096 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
2098 * graphite-dependences.c (build_pairwise_constraint): Renamed
2099 ppl_build_relation. Moved...
2100 (dr_equality_constraints): Use ppl_build_relation.
2101 (build_pairwise_scheduling_equality): Same.
2102 (build_pairwise_scheduling_inequality): Same.
2103 * graphite-ppl.c (ppl_build_relation): ...here.
2104 * graphite-ppl.h (ppl_build_relation): Declared.
2106 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
2109 * graphite-clast-to-gimple.c (gloog_error): New static variable.
2110 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
2111 Set gloog_error when such an expression failed to be built.
2112 (translate_clast): Early return when gloog_error is set.
2113 (gloog): Clear gloog_error. When gloog_error is set, call
2114 set_ifsese_condition to enable the original code. Return the status
2115 of the code generation based on gloog_error.
2116 * sese.c (set_ifsese_condition): New.
2117 * sese.h (set_ifsese_condition): Declared.
2119 * g++.dg/graphite/pr42681.C: New.
2121 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
2124 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
2125 rename_nb_iterations.
2126 * sese.c (rename_variables_in_operand): New.
2127 (rename_variables_in_expr): New.
2128 (rename_nb_iterations): New.
2129 (sese_adjust_liveout_phis): Update the rename_map.
2130 * sese.h (rename_nb_iterations): Declared.
2131 * tree-scalar-evolution.c (scev_reset_htab): New.
2132 (scev_reset): Call scev_reset_htab.
2133 * tree-scalar-evolution.h (scev_reset_htab): Declared.
2135 * gfortran.dg/graphite/pr42732.f: New.
2137 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
2140 * graphite-clast-to-gimple.c: Fix formatting.
2141 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
2142 (expr_defined_in_loop_p): New.
2143 (add_loop_exit_phis): Also handle full expressions: remove from
2144 the rename_map the expressions defined in the loop that we're closing.
2146 * gfortran.dg/graphite/pr42393-1.f90: New.
2147 * gfortran.dg/graphite/pr42393.f90: Add new flags
2148 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
2149 make this testcase useful in the Graphite branch.
2151 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
2153 * graphite-scop-detection.c (exclude_component_ref): Removed.
2154 (is_simple_operand): Removed.
2155 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
2157 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2160 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
2161 the array indexing of ADDR_EXPRs.
2163 * gcc.dg/graphite/pr42221.c: New.
2165 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2168 * graphite.c (graphite_finalize): Call scev_reset.
2169 (graphite_transform_loops): Do not call scev_reset between the code
2170 generation of scops.
2172 * gcc.dg/graphite/pr42521.c: New.
2174 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2176 * graphite-interchange.c (memory_stride_in_loop): Renamed
2178 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
2179 (memory_strides_in_loop): Memoize the memory strides per loop.
2180 (lst_interchange_profitable_p): Do not initialize to zero the memory
2182 * graphite-poly.h (struct lst): Add a field memory_strides.
2183 (LST_LOOP_MEMORY_STRIDES): New.
2184 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
2185 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
2187 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2189 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
2190 memory_strides_in_loop. Gather memory strides on a whole loop.
2191 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
2192 (lst_interchange_profitable_p): Removed.
2193 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
2195 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
2197 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2198 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
2199 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
2200 Remove context_loop and level.
2202 2010-01-07 Richard Guenther <rguenther@suse.de>
2204 PR tree-optimization/42641
2205 * sese.c (rename_map_elt_info): Use the SSA name version, do
2208 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
2210 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
2211 blocked" only when both the strip mine and the interchange have
2214 * gcc.dg/graphite/block-2.c: Removed.
2215 * gcc.dg/graphite/block-3.c: Add scan pattern.
2216 * gcc.dg/graphite/block-4.c: Same.
2217 * gcc.dg/graphite/block-5.c: Same.
2218 * gcc.dg/graphite/block-6.c: Same.
2220 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
2222 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
2223 before allocating a new one.
2224 (copy_renames): Check that slot is not NULL.
2225 (mark_bb_with_pbb): Same.
2226 (compute_cloog_iv_types_1): Same.
2227 * graphite-interchange.c (lst_perfect_nestify): Free the before,
2228 nest, and after LSTs.
2229 (lst_try_interchange_loops): Same.
2231 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
2234 * graphite-interchange.c (lst_try_interchange_loops): Do not return
2235 the before, nest, and after LSTs.
2236 (lst_try_interchange): Removed.
2237 (lst_interchange_select_inner): Do not iterate over the LSTs if they
2239 (lst_interchange_select_outer): Apply interchange on the outer loop
2240 until there are no more changes in the inner loops.
2242 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2244 Revert patch fixing PR middle-end/42221.
2246 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2249 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
2252 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
2254 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
2257 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
2258 that contain only one statement.
2260 * gfortran.dg/graphite/pr42180.f90: New.
2262 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2265 * gfortran.dg/graphite/pr42393.f90: New.
2267 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2270 * gfortran.dg/graphite/pr42186.f90: New.
2272 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2275 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
2276 Insert the reduction copy in the same block as the phi node.
2277 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
2279 * gcc.dg/graphite/pr42205-1.c: New.
2280 * gcc.dg/graphite/pr42205-2.c: New.
2282 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2285 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
2286 the array indexing of ADDR_EXPRs.
2288 * gcc.dg/graphite/pr42221.c: New.
2290 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
2294 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
2295 index. Call lst_interchange_select_inner only once.
2296 (lst_interchange_select_inner): Update use of lst_try_interchange.
2297 (lst_interchange_select_outer): Update.
2299 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
2303 * graphite-interchange.c (lst_try_interchange): Do not increment the
2304 the OUTER index when there is no AFTER kernel. Do not increment the
2305 OUTER index for after processing the AFTER kernel.
2306 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
2307 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
2308 index. Do not pass to lst_interchange_select_inner the OUTER index.
2309 (scop_do_interchange): Update use of lst_interchange_select_outer.
2311 * gfortran.dg/graphite/graphite.exp
2312 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
2313 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
2314 the graphite dump file.
2315 * gfortran.dg/graphite/interchange-2.f: Same.
2316 * gfortran.dg/graphite/pr42334-1.f: New.
2318 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
2322 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
2324 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
2325 (lst_try_interchange): Reimplemented.
2326 (lst_interchange_select_inner): Same.
2327 (lst_do_interchange): Renamed lst_interchange_select_outer.
2329 (scop_do_interchange): Update use of lst_interchange_select_outer.
2331 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
2332 * gcc.dg/graphite/block-0.c: Un-XFAILed.
2333 * gcc.dg/graphite/pr42211.c: New.
2334 * gfortran.dg/graphite/pr42334.f90: New.
2336 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
2339 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
2340 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
2342 * gfortran.dg/graphite/pr42181.f90: New.
2344 2009-12-12 Sebastian Pop <sebpop@gmail.com>
2347 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
2348 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
2349 (detect_commutative_reduction_arg): Simplified.
2350 (detect_commutative_reduction): Early return when the argument of
2351 the close phi is not of an SSA_NAME.
2353 * gcc.dg/graphite/pr42284.c: New.
2355 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
2357 * dbgcnt.def (graphite_scop): New counter.
2358 * graphite.c: Include dbgcnt.h
2359 (graphite_transform_loops): Use new counter to limit transformations.
2361 2009-12-08 Sebastian Pop <sebpop@gmail.com>
2364 * graphite-scop-detection.c (graphite_can_represent_init): Also
2365 handle more complex MULT_EXPRs containing parameters by recursion
2368 * gfortran.dg/graphite/pr42285.f90: New.
2370 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
2372 * g++.dg/graphite/pr42130.C: Fix type.
2374 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
2376 * g++.dg/graphite/pr42130.C: Correct testcase.
2378 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
2380 * Merge from mainline (154493:154734).
2382 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
2384 * Merge from mainline (151362:154491).
2386 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
2388 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
2389 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
2391 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2394 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
2395 translate_clast_for_loop): New.
2396 (translate_clast_for): Add a condition around the loop, to do not
2397 execute loops with zero iterations.
2398 * g++.dg/graphite/pr42130.C: New.
2399 * gcc.dg/graphite/pr35356-2.c: Adapt.
2401 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2403 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
2404 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
2405 Remove context_loop and level.
2407 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2409 * graphite-clast-to-gimple.c (translate_clast_user,
2410 translate_clast_for, translate_clast_guard): Simplify and move common
2411 elements to translate_clast().
2412 (translate_clast): Simplify and get common elements.
2414 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
2416 * graphite-clast-to-gimple.c (translate_clast_user,
2417 translate_clast_for, translate_clast_guard): Split out of
2420 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
2422 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
2423 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
2424 debug_clast_name_indexes_1, debug_clast_name_indexes,
2425 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
2426 (clast_name_to_gcc, clast_to_gcc_expression,
2427 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
2428 gcc_type_for_clast_eq, graphite_translate_clast_equation,
2429 graphite_create_guard_cond_expr, graphite_create_new_loop,
2430 translate_clast): Add params_index.
2431 (initialize_cloog_names): Create parameter strings from scratch, do
2432 not reference other strings.
2433 (create_params_index): New.
2434 (gloog): Initialize params_index.
2435 * graphite-scop-detection (free_scops_1): Removed.
2436 (limit_scops): Use normal free_scops.
2437 * graphite-sese-to-poly.c (save_var_names): Removed.
2438 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
2439 and SESE_PARAMS_INDEX.
2440 * sese.c (new_sese, free_sese): Dito.
2441 * sese.h (struct sese): Remove params_index, params_names.
2442 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
2444 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2446 Revert the following patch from 2009-09-14:
2447 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
2448 tree-scalar-evolution.h, and then tree-data-ref.h.
2449 * graphite-clast-to-gimple.c: Same.
2450 * graphite-dependences.c: Same.
2451 * graphite-interchange.c: Same.
2452 * graphite-poly.c: Same.
2453 * graphite-scop-detection.c: Same.
2454 * graphite-sese-to-poly.c: Same.
2456 * lambda-code.c: Same.
2457 * matrix-reorg.c: Same.
2458 * tree-data-ref.c: Same.
2459 * tree-if-conv.c: Same.
2460 * tree-loop-distribu: Same.: Same.
2461 * tree-loop-linear.c: Same.
2462 * tree-parloops.c: Same.
2463 * tree-predcom.c: Same.
2464 * tree-vect-patterns.c: Same.
2466 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
2468 Revert patch from 2009-09-14.
2469 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
2470 passes at -O1 and below.
2472 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2475 * gcc.dg/graphite/pr40281.c: New.
2477 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
2478 evolutions should not variate in inner loops.
2480 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2483 * gfortran.dg/graphite/pr42050.f90: New.
2485 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2487 * graphite-interchange.c (memory_strides_in_loop_depth): New.
2488 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
2490 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2492 * graphite-blocking.c (scop_do_block): New.
2493 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
2494 * graphite-poly.h (scop_do_block): Declared.
2496 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2498 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
2499 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
2500 to transform depth into the time_depth before calling
2501 pbb_number_of_iterations_at_time.
2502 (lst_do_strip_mine): Use a scalar variable instead of recomputing
2505 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
2507 Reverted the patch for "scattering permutations" from 2009-10-28.
2509 * graphite-poly.c (print_permutation): New.
2510 (debug_permutation): New.
2511 (new_poly_bb): Initialize PBB_PERMUTATION.
2512 (free_poly_bb): Free PBB_PERMUTATION.
2513 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2514 (struct pbb_permutation_elt): New.
2515 (PBB_PERMUTATION_ELT_STRIDE): New.
2516 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2517 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2518 (new_pbb_permutation_elt): New.
2519 (pbb_permutation_elt_free): New.
2520 (struct poly_bb): Add field permutation.
2521 (PBB_PERMUTATION): New.
2522 (print_permutation): Declared.
2523 (debug_permutation): Declared.
2525 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
2527 * graphite-interchange.c (build_partial_difference): New.
2528 (memory_stride_in_loop): Refactored the computation of
2529 equality constraints into build_partial_difference function.
2530 Added support for debugging stride computations.
2532 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2534 * graphite-clast-to-gimple.c (gloog): Free if_region,
2535 if_region->true_region, and if_region->region.
2536 * sese.c (if_region_set_false_region): Free if_region->false_region.
2537 (create_if_region_on_edge): Do not use GGC_NEW.
2538 (move_sese_in_condition): Remove useless initialization.
2540 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
2542 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
2543 for the loops created by the loop distribution. Do not modify the
2545 (lst_try_interchange_loops): Same. Use a temporary LST for the
2546 transformed schedule. Call lst_update_scattering before data
2547 dependence analysis.
2548 (lst_try_interchange): Pass an extra parameter INDEX.
2549 (lst_do_interchange_1): New.
2550 (lst_do_interchange): Call lst_do_interchange_1.
2551 (scop_do_interchange): Call lst_update_scattering.
2552 * graphite-poly.c (apply_poly_transforms): Do not call
2553 lst_update_scattering.
2554 * graphite-poly.h (lst_pred): New.
2556 (lst_find_first_pbb): Return NULL when not found.
2558 (lst_insert_in_sequence): Allow LST1 to be NULL.
2560 (lst_substitute_3): New.
2561 * gcc.dg/graphite/interchange-1.c: XFail.
2562 * gcc.dg/graphite/interchange-8.c: XFail.
2563 * gcc.dg/graphite/interchange-11.c: XFail.
2565 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2567 * graphite-interchange.c (lst_perfectly_nested_p): New.
2568 (lst_perfect_nestify): New.
2569 (lst_try_interchange_loops): Call store_lst_schedule,
2570 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
2571 (scop_do_interchange): Avoid redundant legality test.
2572 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
2573 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
2574 * graphite-poly.h (psct_static_dim): New.
2575 (lst_dewey_number_at_depth): New.
2576 (lst_find_pbb): Restructured.
2577 (lst_find_first_pbb): Restructured.
2578 (lst_find_last_pbb): New.
2579 (lst_contains_p): New.
2580 (lst_contains_pbb): New.
2581 (lst_create_nest): New.
2582 (lst_remove_from_sequence): New.
2583 (pbb_update_scattering): New.
2584 (lst_update_scattering_under): New.
2585 (lst_update_scattering_seq): New.
2586 (lst_update_scattering): New.
2587 (lst_insert_in_sequence): New.
2588 (lst_distribute_lst): New.
2589 (lst_remove_all_before_including_pbb): New.
2590 (lst_remove_all_before_excluding_pbb): New.
2592 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2594 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
2595 get_loop_exit_edges.
2597 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2599 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
2601 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2603 * graphite-poly.c (print_permutation): New.
2604 (debug_permutation): New.
2605 (new_poly_bb): Initialize PBB_PERMUTATION.
2606 (free_poly_bb): Free PBB_PERMUTATION.
2607 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2608 (struct pbb_permutation_elt): New.
2609 (PBB_PERMUTATION_ELT_STRIDE): New.
2610 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2611 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2612 (new_pbb_permutation_elt): New.
2613 (pbb_permutation_elt_free): New.
2614 (struct poly_bb): Add field permutation.
2615 (PBB_PERMUTATION): New.
2616 (print_permutation): Declared.
2617 (debug_permutation): Declared.
2619 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2621 * graphite-clast-to-gimple.c (gloog): Do not call
2622 sese_reset_aux_in_loops.
2623 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
2624 extra argument for domains. Do not use loop->aux.
2625 (build_scop_iteration_domain): Initialize and free domains, pass it
2626 to build_loop_iteration_domains and extract the information from
2627 domains. Do not use loop->aux.
2628 * sese.c (sese_reset_aux_in_loops): Removed.
2629 * sese.h (sese_reset_aux_in_loops): Removed.
2631 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2633 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
2634 (dependency_in_loop_p): Same.
2635 (translate_clast): Do not use loop->aux. Initialize
2636 loop->can_be_parallel.
2637 (mark_loops_parallel): Removed.
2638 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
2639 * graphite.c (free_aux_in_new_loops): Removed.
2640 (graphite_finalize): Do not call free_aux_in_new_loops.
2641 (graphite_transform_loops): Do not call mark_loops_parallel.
2643 2009-10-26 Li Feng <nemokingdom@gmail.com>
2645 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
2646 (translate_clast): Pass an extra parameter LEVEL.
2647 Call get_scattering_level.
2648 * graphite-clast-to-gimple.h (get_scattering_level): New.
2650 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2652 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
2653 * cfgloop.h (struct loop): New field single_iv.
2655 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
2656 loop->aux anymore: use loop->single_iv.
2657 (graphite_loop_normal_form): Moved...
2658 (build_graphite_loop_normal_form): Removed.
2659 (gloog): Do not call build_graphite_loop_normal_form.
2660 (free_aux_in_new_loops): Moved...
2661 (mark_loops_parallel): Restructure.
2662 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
2663 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
2664 (scop_canonicalize_loops): New.
2665 (build_poly_scop): Call scop_canonicalize_loops.
2666 * graphite.c (free_aux_in_new_loops): ...here.
2668 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2670 * g++.dg/graphite/graphite.exp: Add the same rules as in
2671 gcc.dg/graphite/graphite.exp.
2673 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2675 * g++.dg/graphite/id-1.C: New.
2677 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2679 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
2681 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
2682 (rewrite_phi_out_of_ssa): Same.
2683 (rewrite_cross_bb_scalar_deps): Same.
2684 (translate_scalar_reduction_to_array): Same.
2686 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2688 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
2691 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2693 * graphite-sese-to-poly.c (dump_alias_graphs): New.
2694 (build_scop_drs): Call dump_alias_graphs.
2696 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2698 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
2699 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2700 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
2701 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2702 * graphite-poly.h (free_lst): New.
2703 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
2704 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
2706 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2708 * graphite-poly.h (struct scop): Add a field saved_schedule.
2709 (SCOP_SAVED_SCHEDULE): New.
2710 (store_lst_schedule): New.
2711 (restore_lst_schedule): New.
2712 (store_scattering): Call store_lst_schedule.
2713 (restore_scattering): Call restore_lst_schedule.
2715 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2717 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
2718 (pdr_add_alias_set): Same.
2719 (build_poly_dr): Same.
2720 (build_alias_set_optimal_p): Same.
2721 (build_base_obj_set_for_drs): Same. Do not store the result of
2724 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2726 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
2727 all_components_are_cliques to 1.
2729 2009-10-20 Li Feng <nemokingdom@gmail.com>
2731 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
2733 (pdr_add_alias_set): Update retrieving alias_set_num.
2734 (build_poly_dr): Update retrieving dr_base_object_set.
2735 (partition_drs_to_sets): Remove.
2736 (build_alias_set_optimal_p): New.
2737 (build_alias_set_for_drs): Rename.
2738 (build_scop_drs): Update.
2739 * graphite-sese-to-poly.h (struct base_alias_pair): New.
2740 (ALIAS_SET_INDEX): Remove.
2741 (BASE_OBJECT_SET_INDEX): Remove.
2743 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2745 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
2747 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2749 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
2750 loop upper bounds for 1-element arrays at end of structures.
2751 * tree-flow.h (array_at_struct_end_p): Declared.
2752 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
2754 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2756 * g++.dg/graphite/pr41305.C: New.
2758 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
2760 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
2761 construction of parameter constraints from loop iteration analysis.
2762 * gcc.dg/graphite/run-id-2.c: New test.
2764 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2766 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
2769 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2771 * graphite-dependences.c (dependence_polyhedron_1): Remove
2772 unused gdim dimensions from the DDR polyhedron.
2774 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2776 * graphite-dependences.c (pddr_transformed_scattering): New.
2777 (dot_original_deps_stmt_1): New.
2778 (dot_transformed_deps_stmt_1): New.
2779 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
2780 dot_transformed_deps_stmt_1.
2781 (dot_original_deps): New.
2782 (dot_transformed_deps): New.
2783 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
2785 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2787 * graphite-dependences.c (reduction_dr_1): Remove wrong
2788 assert: reduction BBs can have multiple reduction writes
2789 to memory. interchange-3.f90 is an example.
2791 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2793 * gfortran.dg/graphite/interchange-3.f90: New.
2795 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2797 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
2799 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2801 * graphite-dependences.c (dependence_polyhedron_1): Add the
2802 context to the dependence polyhedron.
2804 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2806 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
2807 PBB_PDR_DUPLICATES_REMOVED.
2808 (new_poly_bb): Same.
2810 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2812 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
2814 (build_loop_iteration_domains): Extract bounds on parameters
2815 based on the data size.
2816 (build_scop_context): Do not initialize SCOP_CONTEXT;
2817 add new constraints.
2819 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2821 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
2822 * graphite-ppl.h (graphite-ppl.h): Declared.
2824 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2826 * graphite-ppl.c (ppl_print_linear_expr): New.
2827 (debug_ppl_linear_expr): New.
2828 * graphite-ppl.h (ppl_print_linear_expr): Declared.
2829 (debug_ppl_linear_expr): Declared.
2831 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2833 * graphite-interchange.c: Fix comments.
2834 * gcc.dg/graphite/block-1.c: Fix comments.
2836 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2838 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
2839 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
2841 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2843 Reapply the patch from Alexander Monakov that disappeared during
2844 the last merges from trunk.
2846 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
2848 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2849 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2851 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2853 * graphite-interchange.c (memory_stride_in_loop): The depth
2854 argument corresponds to a dynamic time dimension, so use
2855 psct_dynamic_dim to refer to the transformed scattering dimension.
2857 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2859 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
2861 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2863 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
2865 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
2866 the root of the LST.
2867 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
2869 (print_lst): Print the root of LST in a different format.
2870 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
2872 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2874 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
2876 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2878 * doc/passes.texi: Document the Graphite infrastructure.
2880 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2882 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
2883 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
2884 and check the SSA representation.
2886 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
2888 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2890 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
2892 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2894 * gcc.dg/graphite/interchange-11.c: New.
2896 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2898 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
2900 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2902 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2903 Add -fno-loop-strip-mine and -fno-loop-interchange.
2904 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
2905 -fno-loop-strip-mine.
2906 * gfortran.dg/graphite/graphite.exp: Same.
2908 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2910 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2911 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
2912 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
2913 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
2914 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
2915 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
2916 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
2917 DEFAULT_FLAGS_GRAPHITE_SCOP.
2918 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
2919 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
2921 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2923 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
2925 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2926 Sebastian Pop <sebastian.pop@amd.com>
2928 * graphite-interchange.c (build_linearized_memory_access): Pass an
2929 offset as parameter.
2930 (memory_stride_in_loop): Include transform scattering in the
2931 access functions to be able to querry the strides in the
2933 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
2934 not the psct_iterator_dim.
2936 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2938 * graphite-blocking.c (pbb_do_strip_mine): Removed.
2939 (lst_do_strip_mine_loop): New.
2940 (lst_do_strip_mine): New.
2941 (scop_do_strip_mine): Call lst_do_strip_mine.
2942 * graphite-poly.h (lst_add_loop_under_loop): New.
2943 (lst_find_first_pbb): New.
2945 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2947 * graphite-poly.c (loop_to_lst): Fix LST creation.
2949 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2951 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
2952 sizeof(unsigned long) to make it run on 32bit systems.
2954 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2956 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
2959 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2961 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
2963 (write_alias_graph_to_ascii_dot): New.
2964 (write_alias_graph_to_ascii_ecc): Ditto.
2965 (partition_drs_to_sets): Add testing of optimality of current method
2966 which assigns alias numbers according to DFS Comopnent number. used
2967 as heuristic for the upcoming ECC algorithm.
2968 (build_scop_drs): Write to file also with the ecc and dot format.
2970 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2972 * gfortran.dg/graphite/interchange-1.f: XFail.
2974 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2976 * graphite.c (graphite_initialize): Do not handle functions with
2977 more than 100 basic blocks.
2979 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2981 * graphite-blocking.c (pbb_do_strip_mine): Use
2982 PARAM_LOOP_BLOCK_TILE_SIZE.
2984 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2986 * graphite-poly.c (dot_lst_1): New.
2988 * graphite-poly.h (dot_lst): Declared.
2990 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2992 * graphite-dependences.c (dot_deps_stmt_1): New.
2993 (dot_deps_stmt): New.
2994 * graphite-dependences.h (dot_deps_stmt): Declared.
2996 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2998 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
2999 not replace cross BB scalar dependences ending on PHI nodes.
3000 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
3002 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3004 * graphite-poly.c (apply_poly_transforms): Implement the high
3005 level driver for flag_loop_block.
3006 * opts.c (decode_options): Enable flag_loop_block at -O2.
3007 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
3010 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
3012 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
3015 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3017 * graphite-poly.h (lst_find_pbb): New.
3018 (find_lst_loop): New.
3020 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3022 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
3023 * graphite-poly.h (struct scop): Remove dep_graph field.
3024 (SCOP_DEP_GRAPH): Removed.
3026 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
3028 * graphite-poly.h (copy_lst): Do full copy of LST.
3030 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
3032 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
3033 when the loop stride is zero.
3035 * gcc.dg/graphite/id-16.c: New.
3037 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3039 * graphite-dependences.c (reduction_dr_1): New.
3040 (reduction_dr_p): New.
3041 (graphite_legal_transform_dr): Call reduction_dr_p.
3042 (reduction_ddr): Renamed reduction_ddr_p.
3043 * graphite-poly.h (same_pdr_p): New.
3044 (number_of_write_pdrs): New.
3045 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
3046 (split_reduction_stmt): Do not split reduction statements
3047 when there are no writes to memory.
3048 (translate_scalar_reduction_to_array_for_stmt): Insert the
3049 memory reduction statement just after the scalar reduction statement.
3051 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
3053 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
3054 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
3056 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3058 * graphite-interchange.c (lst_apply_interchange): New.
3059 (lst_interchange_profitable_p): New.
3060 (lst_try_interchange_loops): New.
3061 (lst_try_interchange): New.
3062 (lst_do_interchange): New.
3063 (pbb_do_interchange): Removed.
3064 (scop_do_interchange): Call lst_do_interchange.
3066 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
3068 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
3069 SCOP_TRANSFORMED_SCHEDULE.
3074 * graphite-poly.h (lst_p): New.
3077 (LST_LOOP_FATHER): New.
3080 (scop_to_lst): Declared.
3081 (print_lst): Declared.
3082 (debug_lst): Declared.
3083 (new_lst_loop): New.
3084 (new_lst_stmt): New.
3087 (lst_dewey_number): New.
3088 (struct scop): Add original_schedule and transformed_schedule fields.
3089 (SCOP_ORIGINAL_SCHEDULE): New.
3090 (SCOP_TRANSFORMED_SCHEDULE): New.
3091 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
3093 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3095 * graphite-dependences.c (reduction_ddr): New.
3096 (graphite_legal_transform_bb): Call reduction_ddr.
3097 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
3098 Initialize PBB_IS_REDUCTION.
3099 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
3100 (PBB_IS_REDUCTION): New.
3101 (new_poly_bb): Update declaration.
3102 * graphite-scop-detection.h (build_scop_bbs): Removed.
3103 (nb_reductions_in_loop): Removed.
3104 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
3105 parameter for reductions.
3106 (try_generate_gimple_bb): Update call to new_poly_bb.
3107 (build_scop_bbs_1): Same.
3108 (build_scop_bbs): Same.
3109 (gsi_for_phi_node): New.
3110 (scalar_close_phi_node_p): Remove gcc_assert.
3111 (split_reduction_stmt): New.
3112 (is_reduction_operation_p): New.
3113 (phi_contains_arg): New.
3114 (follow_ssa_with_commutative_ops): New.
3115 (detect_commutative_reduction_arg): New.
3116 (detect_commutative_reduction_assign): New.
3117 (follow_inital_value_to_phi): New.
3118 (edge_initial_value_for_loop_phi): New.
3119 (initial_value_for_loop_phi): New.
3120 (detect_commutative_reduction): New.
3121 (translate_scalar_reduction_to_array_for_stmt): New.
3122 (insert_copyout): New.
3123 (insert_copyin): New.
3124 (translate_scalar_reduction_to_array): New.
3125 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
3126 (rewrite_commutative_reductions_out_of_ssa_loop): New.
3127 (rewrite_commutative_reductions_out_of_ssa): New.
3128 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
3129 * sese.h (split_region_for_bb): New.
3131 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
3132 * gcc.dg/graphite/interchange-1.c: Fix format.
3133 * gcc.dg/graphite/interchange-10.c: New.
3135 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3137 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
3140 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3142 * graphite-sese-to-poly.c (scev_analyzable_p): New.
3143 (rewrite_cross_bb_scalar_dependence): New.
3144 (rewrite_cross_bb_scalar_deps): New.
3145 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
3146 Call rewrite_cross_bb_scalar_deps.
3148 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3150 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
3151 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
3154 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
3156 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
3157 * graphite-interchange.c (pbb_do_interchange): Same.
3158 * graphite-poly.c (print_scattering_function): Same.
3160 * graphite-poly.h (pbb_loop): New.
3161 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
3163 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
3165 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
3167 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
3169 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
3170 so don't pass a pointer to it.
3171 (build_alias_set_for_drs): Same.
3172 (build_base_obj_set_for_drs): Same.
3173 (build_scop_drs): Same.
3175 2009-09-26 Li Feng <nemokingdom@gmail.com>
3177 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
3178 the alias graph of data references.
3180 2009-09-25 Li Feng <nemokingdom@gmail.com>
3182 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
3183 (build_scop_drs): When debugging, write the alias graph to file,
3184 otherwise, should be disabled.
3186 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3188 * Merge from mainline (151310:151361).
3190 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3192 * Merge from mainline (151171:151310).
3194 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3196 * Merge from mainline (151171:151806).
3198 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3200 * Revert the last commit.
3202 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3204 * Merge from mainline (151171:151819).
3206 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
3208 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
3209 (is_simple_operand): Remove call to stmt_simple_memref_p.
3210 (stmt_simple_for_scop_p): Update call to is_simple_operand.
3212 2009-09-17 David Edelsohn <edelsohn@gnu.org>
3214 * gcc.dg/graphite/interchange-mvt.c: New File.
3215 * gcc.dg/graphite/scop-dsyrk.c: New File.
3216 * gcc.dg/graphite/scop-dsyr2k.c: New File.
3217 * gcc.dg/graphite/scop-mvt.c: New File.
3218 * gcc.dg/graphite/scop-sor.c: New File.
3220 2009-09-17 Li Feng <nemokingdom@gmail.com>
3222 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
3223 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
3224 (graphite_carried_dependence_level_k): Ditto.
3225 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
3226 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
3227 (new_poly_dr): Adjust declaration.
3228 * graphite-sese-to-poly.c (free_data_refs_aux): New.
3229 (free_gimple_bb): Added free_data_refs_aux.
3230 (build_poly_dr): Add dr_base_object_set.
3231 (partition_drs_to_sets): New.
3232 (dr_same_base_object_p): New.
3233 (build_alias_set_for_drs): New.
3234 (build_base_object_set_for_drs): New.
3235 (build_scop_drs): Add build_base_obj_set_for_drs.
3236 * graphite-sese-to-poly.h: Added #define for alias set number index and
3237 base object set index.
3238 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
3239 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
3241 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
3243 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
3244 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
3246 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3248 * graphite-sese-to-poly.c (struct irp_data): Removed.
3249 (idx_record_params): Removed.
3250 (find_params_in_bb): Scan for parameters the access functions; don't
3251 parse the tree representation.
3253 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3255 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
3256 passes at -O1 and below.
3258 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
3260 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
3261 tree-scalar-evolution.h, and then tree-data-ref.h.
3262 * graphite-clast-to-gimple.c: Same.
3263 * graphite-dependences.c: Same.
3264 * graphite-interchange.c: Same.
3265 * graphite-poly.c: Same.
3266 * graphite-scop-detection.c: Same.
3267 * graphite-sese-to-poly.c: Same.
3269 * lambda-code.c: Same.
3270 * matrix-reorg.c: Same.
3271 * tree-data-ref.c: Same.
3272 * tree-if-conv.c: Same.
3273 * tree-loop-distribu: Same.: Same.
3274 * tree-loop-linear.c: Same.
3275 * tree-parloops.c: Same.
3276 * tree-predcom.c: Same.
3277 * tree-vect-patterns.c: Same.
3279 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
3281 Partially revert the previous patch, except the following.
3282 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
3283 as parameters the operands of the not expression.
3285 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3287 * tree-scalar-evolution.c (instantiate_scev_assign): New.
3288 Do not call analyze_scalar_evolution on assignments.
3289 (instantiate_scev_phi): Call analyze_scalar_evolution.
3290 (instantiate_scev_name): Call instantiate_scev_assign and
3291 instantiate_scev_phi.
3292 (instantiate_scev_not): Adapted to pass as parameters the operands
3293 of the not expression.
3295 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3297 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
3298 to pass as parameters the operands of the binary expression.
3300 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3302 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
3303 instantiate_scev_not. Handle NEGATE_EXPR.
3304 (instantiate_scev_r): Handle NEGATE_EXPR.
3306 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3308 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
3310 (instantiate_scev_r): Move code in instantiate_scev_2
3311 and instantiate_scev_1.
3313 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3315 * tree-scalar-evolution.c (instantiate_scev_3): New.
3316 (instantiate_scev_1): Move code in instantiate_scev_3.
3318 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3320 * tree-scalar-evolution.c (instantiate_scev_poly): New.
3321 (instantiate_scev_1): Move code in instantiate_scev_poly.
3323 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3325 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
3326 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
3328 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3330 * tree-scalar-evolution.c (instantiate_scev_convert): New.
3331 (instantiate_scev_1): Move code in instantiate_scev_convert.
3333 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3335 * tree-scalar-evolution.c (instantiate_scev_binary): New.
3336 (instantiate_scev_1): Move code in instantiate_scev_binary.
3338 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
3340 * tree-scalar-evolution.c (instantiate_scev_name): New.
3341 (instantiate_scev_1): Move code in instantiate_scev_name.
3343 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
3345 * Merge from mainline (150992:151171).
3347 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3349 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
3351 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3353 * graphite-dependences.c (graphite_legal_transform_bb): Call
3354 pbb_remove_duplicate_pdrs.
3355 * graphite-poly.c (can_collapse_pdr): Removed.
3356 (pdr_find_duplicate): Removed.
3357 (can_collapse_pdrs): New.
3358 (pbb_remove_duplicate_pdrs): New.
3359 (new_poly_dr): Do not look for duplicates.
3360 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
3361 (PBB_PDR_DUPLICATES_REMOVED): New.
3362 (pbb_remove_duplicate_pdrs): Declared.
3364 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3366 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
3367 the strides by multiplying by PDR_NB_REFS.
3368 * graphite-poly.c (can_collapse_pdr): New.
3369 (pdr_find_duplicate): New.
3370 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
3371 Initialize PDR_NB_REFS.
3372 * graphite-poly.h (struct poly_dr): Add field nb_refs.
3374 (new_poly_dr): Number of subscripts is a graphite_dim_t.
3376 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3378 Revert one of the previous commits:
3379 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
3380 the computation of symmetric data dependence relations.
3381 (dependency_between_pbbs_p): Same.
3383 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3386 * graphite-poly.c (apply_poly_transforms): Remove legality test before
3389 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3391 * graphite-dependences.c (pddr_original_scattering): Return NULL
3392 for read-read dependence relations.
3393 * graphite-poly.h (enum poly_dr_type): Fix comment.
3396 (pdr_may_write_p): New.
3398 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3400 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
3401 (struct poly_dr): Same.
3402 (new_poly_dr): Same.
3403 * graphite-poly.c (new_poly_dr): Same.
3405 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3406 Sebastian Pop <sebastian.pop@amd.com>
3408 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
3409 pbb_strip_mine_time_depth. Changed the implementation so that
3410 transformation is expressed as a transformation on
3411 time (scatttering) dimensions. Also, ensures that the 2d+1
3412 scheduling format is preserved.
3413 (pbb_strip_mine_profitable_p): Profitability is based on the
3414 iteration number of a given time (scattering) dimension,
3415 and not on a original loop depth dimension.
3416 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
3417 (pbb_do_strip_mine): Call psct_dynamic_dim.
3418 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
3419 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
3420 (pbb_nb_dynamic_scattering_transform): New.
3421 (psct_dynamic_dim): New.
3423 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3425 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3426 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
3427 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
3428 * graphite-interchange.c (build_linearized_memory_access): Same.
3429 (memory_stride_in_loop): Same.
3431 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
3433 * graphite-dependences.c (pddr_original_scattering): New.
3434 (graphite_legal_transform_dr): Call pddr_original_scattering.
3437 * graphite-dependences.h (dot_deps): Declared.
3438 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
3439 (print_pdr): Print PDR_ID.
3440 * graphite-poly.h (struct poly_dr): Add field id.
3443 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
3445 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
3447 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
3448 not delete the original dependence relation.
3450 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3452 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
3453 the computation of symmetric data dependence relations.
3454 (dependency_between_pbbs_p): Same.
3456 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3458 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
3459 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
3460 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
3461 (free_poly_ddr): New.
3462 (pddr_is_empty): New.
3463 (dependence_polyhedron_1): Now returns a poly_ddr_p.
3464 (dependence_polyhedron): Same. Remove useless gcc_assert.
3466 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
3467 (graphite_carried_dependence_level_k): Call pddr_is_empty.
3468 * graphite-dependences.h (enum poly_dependence_kind): New.
3469 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
3470 (PDRP_SOURCE): Renamed PDDR_SOURCE.
3471 (PDRP_SINK): Renamed PDDR_SINK.
3472 (PDRP_DDP): Renamed PDDR_DDP.
3474 (free_poly_ddr): Declared.
3475 * graphite-poly.c (new_scop): Use the new hash function names.
3476 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
3477 into original_pddrs.
3478 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
3480 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
3482 * Merge from mainline (150764:150992).
3484 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3486 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
3487 bounds with LT_EXPR to make niter analysis more precise on code
3488 generated by Graphite.
3490 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
3492 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
3493 (graphite_legal_transform_bb): Same.
3494 (poly_drs_may_alias_p): Same.
3496 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
3499 * graphite-ppl.c (ppl_max_for_le): Correct the use of
3500 ppl_Pointset_Powerset_C_Polyhedron_maximize.
3502 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3504 * graphite-poly.c (print_pbb): Print PBB index.
3506 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3508 * Merge from mainline (r150672:150764).
3510 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
3512 * graphite-interchange.c (ppl_max_for_le): Moved...
3513 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
3514 * graphite-ppl.c (ppl_max_for_le): ... here.
3515 * graphite-ppl.h (ppl_max_for_le): Declared.
3517 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
3519 * Merge from mainline (r150372:150672).
3521 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3524 * sese.c (convert_for_phi_arg): New.
3525 (add_guard_exit_phis): Use convert_for_phi_arg.
3527 * gfortran.dg/graphite/id-17.f: New.
3529 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3531 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
3532 unknown subscript upper bounds.
3534 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
3536 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3537 Pranav Garg <pranav.garg2107@gmail.com>
3539 * graphite-interchange.c (gather_access_strides): Removed.
3540 (ppl_max_for_le): New.
3541 (build_linearized_memory_access): New.
3542 (memory_stride_in_loop): New.
3543 (pbb_interchange_profitable_p): Reimplemented.
3544 * graphite-ppl.h (ppl_new_id_map): New.
3545 (ppl_interchange): New.
3547 * gcc.dg/graphite/interchange-6.c: XFAILed.
3549 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3551 * graphite-interchange.c (compute_subscript): Removed.
3552 (compute_array_size_cstr): Removed.
3553 (compute_array_size_poly): Removed.
3554 (compute_array_size): Removed.
3555 (gather_access_strides_poly): Removed.
3556 (gather_access_strides): Empty.
3558 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3560 * graphite-dependences.c (dependence_polyhedron_1): Replace
3561 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
3562 (graphite_legal_transform_dr): Same.
3563 (graphite_carried_dependence_level_k): Same.
3564 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
3565 Initialize PDR_NB_SUBSCRIPTS.
3566 (print_pdr_access_layout): Replace pdr_nb_subscripts with
3568 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
3569 (PDR_NB_SUBSCRIPTS): New.
3570 (pdr_nb_subscripts): Removed.
3571 (pdr_dim): Simplified.
3572 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
3573 with PDR_NB_SUBSCRIPTS.
3575 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3577 * graphite-interchange.c (compute_array_size): Remove use of
3579 * graphite-poly.c (new_poly_dr): Remove argument data_container.
3580 Do not initialize PDR_DATA_CONTAINER.
3581 (print_pdr): Do not print PDR_DATA_CONTAINER.
3582 * graphite-poly.h (struct poly_dr): Remove data_container field.
3583 (PDR_DATA_CONTAINER): Removed.
3584 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
3586 (build_poly_dr): Same.
3588 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3590 * gcc.dg/graphite/interchange-9.c: New.
3592 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3593 Sebastian Pop <sebastian.pop@amd.com>
3595 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
3596 copy of the dependence polyhedron. Free the temporary objects.
3597 (graphite_carried_dependence_level_k): Free unused objects before
3600 * gcc.dg/graphite/interchange-1.c: XFAILed.
3601 * gcc.dg/graphite/interchange-2.c: XFAILed.
3602 * gcc.dg/graphite/interchange-3.c: XFAILed.
3603 * gcc.dg/graphite/interchange-4.c: XFAILed.
3604 * gcc.dg/graphite/interchange-7.c: XFAILed.
3606 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3608 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
3609 Early return without analyzing the data dependences if no
3610 transform has been done. Call restore_scattering if the transform
3612 (graphite-interchange.c): Same.
3613 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
3614 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
3615 (apply_poly_transforms): Do not gcc_assert that
3616 the transform is legal.
3617 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3618 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
3619 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
3620 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3621 * graphite-poly.h (struct poly_scattering): New.
3622 (struct poly_bb): Add original, transformed, and saved fields.
3623 Remove transformed_scattering, original_scattering, nb_local_variables,
3624 and nb_scattering_transform fields.
3625 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
3626 (poly_scattering_new): New.
3627 (poly_scattering_free): New.
3628 (poly_scattering_copy): New.
3629 (store_scattering_pbb): New.
3630 (store_scattering): New.
3631 (restore_scattering_pbb): New.
3632 (restore_scattering): New.
3633 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3634 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
3636 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3638 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
3641 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3643 * Makefile.in (graphite.o): Depends on PREDICT_H.
3644 * graphite.c: Include predict.h.
3645 (graphite_finalize): Call tree_estimate_probability.
3646 * predict.c (predict_loops): Do not call scev_initialize and
3648 (tree_estimate_probability_bb): New.
3649 (tree_estimate_probability): Do not initialize loops: move that
3650 code to the driver. Call tree_estimate_probability_bb.
3651 (tree_estimate_probability_driver): New.
3652 (pass_profile): Use tree_estimate_probability_driver.
3653 * predict.h (tree_estimate_probability): Declared.
3655 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3657 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
3658 * graphite-dependences.c (graphite_legal_transform): Add time to
3659 TV_GRAPHITE_DATA_DEPS.
3660 (dependency_between_pbbs_p): Same.
3661 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
3663 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
3665 * Merge from mainline (r149952:150372).
3667 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3669 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
3670 * graphite-blocking.c: Same.
3671 * graphite-clast-to-gimple.c: Same.
3672 * graphite-dependences.c: Same.
3673 * graphite-poly.c: Same.
3674 * graphite-poly.h: Same.
3675 * graphite-ppl.c: Same.
3676 * graphite-scop-detection.c: Same.
3677 * graphite-sese-to-poly.c: Same.
3680 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3682 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
3683 (remove_simple_copy_phi): New.
3684 (remove_invariant_phi): New.
3685 (simple_copy_phi_p): New.
3686 (reduction_phi_p): New.
3687 (gsi_for_ssa_name_def): New.
3688 (insert_out_of_ssa_copy): New.
3689 (insert_out_of_ssa_copy_on_edge): New.
3690 (create_zero_dim_array): New.
3691 (scalar_close_phi_node_p): New.
3692 (rewrite_close_phi_out_of_ssa): New.
3693 (rewrite_phi_out_of_ssa): New.
3694 (rewrite_reductions_out_of_ssa): New.
3695 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
3697 * gcc.dg/graphite/id-11.c: New.
3698 * gcc.dg/graphite/id-15.c: New.
3699 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
3700 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
3701 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
3702 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
3703 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
3704 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
3705 * gfortran.dg/graphite/id-13.f: New.
3706 * gfortran.dg/graphite/id-5.f: New.
3708 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3710 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
3711 check that nb_reductions_in_loop is zero.
3712 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
3713 reduction phi nodes.
3714 (nb_reductions_in_loop): Removed.
3715 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
3716 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
3717 (bb_contains_non_iv_scalar_phi_nodes): Removed.
3718 (scop_contains_non_iv_scalar_phi_nodes): Removed.
3719 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
3721 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3723 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
3724 statements that have an empty iteration domain.
3725 * gfortran.dg/graphite/id-16.f: New.
3727 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3729 * tree-scalar-evolution.c (instantiate_scev_1): Return
3730 chrec_dont_know when the result is not above instantiate_below.
3731 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
3732 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
3733 the tree has a known scalar evolution.
3734 * gfortran.dg/graphite/id-14.f: New.
3735 * gfortran.dg/graphite/id-15.f: New.
3737 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3739 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
3741 (rename_variables): Keep inserting renames after the ones already
3744 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3746 * graphite-sese-to-poly.c (compare_bb_depths): New.
3747 (graphite_sort_dominated_info): New.
3748 (build_scop_bbs_1): Call graphite_sort_dominated_info.
3749 (build_scop_scattering): Fix comment.
3751 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3753 * graphite.c (graphite_finalize): Call print_loops instead of
3754 dump_function_to_file.
3755 * gcc.dg/graphite/graphite.exp: Fix formatting.
3756 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
3757 loops generated in the graphite output file.
3758 * gcc.dg/graphite/pr35356-2.c: New.
3759 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
3760 * gfortran.dg/graphite/id-12.f: New.
3762 2009-07-24 Li Feng <nemokingdom@gmail.com>
3764 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
3767 2009-07-24 Li Feng <nemokingdom@gmail.com>
3768 Tobias Grosser <grosser@fim.uni-passau.de>
3770 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
3771 alias set number build alias in ACCESSES polyhedron.
3772 (build_alias_set_for_drs): New.
3773 (build_pbb_drs): Added build_alias_set_for_drs.
3774 * graphite-dependences.c (poly_drs_may_alias_p): New.
3775 (graphite_carried_dependence_level_k): Check alias information
3776 before building polyhedron.
3778 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3780 * Makefile.in (lambda-code.o): Fix formatting.
3782 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3784 * Merge from mainline (r149350-149952)
3786 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3788 * graphite-poly.c (apply_poly_transforms): Move strip_mine
3789 before interchange to prepare for loop blocking.
3791 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3793 * graphite-poly.c (apply_poly_transforms): Add checks after every
3795 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
3796 done in apply_poly_transforms.
3798 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3800 * graphite-dependences.c (build_lexicographically_gt_constraint):
3801 Replace RES parameter with *RES.
3802 (dependence_polyhedron_1): Pass an address of the parameter RES
3803 instead of value of RES.
3805 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3807 * graphite.c (graphite_finalize): Fix comment.
3808 (graphite_transform_loops): Reset scev info after code generation
3811 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3813 * graphite.c (graphite_finalize): Call scev_reset.
3815 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3817 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
3818 GBB_CLOOG_IV_TYPES hash table twice.
3819 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
3820 (add_condition_to_domain): Clear GMP values.
3822 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3824 * graphite-dependences.c: Fix formatting.
3825 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
3826 (pbb_number_of_iterations): Free ppl_Linear_Expression.
3827 * graphite-sese-to-poly.c: Fix formatting.
3828 * graphite.c (graphite_transform_loops): Create the hash table
3829 after the early return.
3831 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3833 * gcc.dg/graphite/id-14.c: New.
3834 * gcc.dg/graphite/pr40157.c: New.
3835 * gfortran.dg/graphite/id-11.f: New.
3837 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3839 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
3840 (build_poly_scop): Return false when there are no pbbs within
3841 loops to avoid to pass to cloog scops with no loops.
3843 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3845 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
3846 useless test "i % 2".
3847 (build_pbb_scattering_polyhedrons): Fix formatting.
3848 (build_poly_dr): Same.
3849 * graphite.c (graphite_transform_loops): Restructure.
3851 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
3853 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
3854 reduction_list parameter.
3855 (rewrite_all_phi_nodes_with_iv): Same.
3856 (canonicalize_loop_ivs): Same.
3857 * tree-parloops.c (struct brli): Removed.
3858 (build_reduction_list_info): Removed.
3859 (build_new_reduction): New.
3860 (analyze_reduction_list): Removed.
3861 (gather_scalar_reductions): Find reductions instead of phi
3862 nodes that can't be canonicalized.
3863 (try_create_reduction_list): Remove reduction_list parameter.
3864 (gen_parallel_loop): Same.
3865 (parallelize_loops): Remove analyze_reductions variable,
3866 initialization and free.
3867 Change reduction_list htab initialization to reduction_info
3868 elements instead of ssa names.
3869 Call try_create_reduction_list and gen_parallel_loop without
3870 analyzed_reduction argument.
3871 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
3872 canonicalize_loop_ivs with one less argument.
3873 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
3875 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3877 * graphite-dependences.c (new_poly_dr_pair): New.
3878 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
3879 (new_poly_dr_pair): New.
3880 (eq_poly_dr_pair_p): New.
3881 (hash_poly_dr_pair_p): New.
3882 * graphite-dependences.h (struct poly_dr_pair): New.
3883 (eq_poly_dr_pair_p): Declared.
3884 (hash_poly_dr_pair_p): Declared.
3885 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
3886 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
3887 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
3888 * Makefile.in (graphite-poly.o): Add dependence on
3889 graphite-dependences.h.
3891 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3893 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
3894 polynomials of degree > 1 pass to Graphite.
3895 * tree-chrec.c (scev_is_linear_expression): Call
3896 evolution_function_is_affine_multivariate_p.
3897 * gfortran.dg/graphite/id-10.f90: New.
3899 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3901 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
3902 Instantiate scevs varying in outer loops.
3903 * gfortran.dg/graphite/id-9.f: Correct testcase.
3905 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3907 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
3908 redundant constraint.
3910 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3912 * gcc.dg/graphite/graphite.exp: Fix comments.
3913 * gfortran.dg/graphite/graphite.exp: Trigger actions
3914 based on the file names as in the C testsuite.
3915 * gfortran.dg/graphite/block-1.f90: Fix patterns.
3916 * gfortran.dg/graphite/block-2.f: Same.
3917 * gfortran.dg/graphite/block-3.f90: Same.
3918 * gfortran.dg/graphite/block-4.f90: Same.
3919 * gfortran.dg/graphite/id-1.f90: Same.
3920 * gfortran.dg/graphite/id-2.f90: Same.
3921 * gfortran.dg/graphite/id-3.f90: Same.
3922 * gfortran.dg/graphite/id-4.f90: Same.
3923 * gfortran.dg/graphite/id-6.f: Same.
3924 * gfortran.dg/graphite/id-9.f: Same.
3925 * gfortran.dg/graphite/interchange-1.f: Same.
3926 * gfortran.dg/graphite/interchange-2.f: Same.
3927 * gfortran.dg/graphite/scop-1.f: Same.
3929 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3931 * sese.c (expand_scalar_variables_call): New.
3932 (expand_scalar_variables_ssa_name): Handle calls in expander.
3934 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3936 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
3937 Expect to see the pattern twice.
3938 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
3939 * gcc.dg/graphite/interchange-5.c: Same.
3940 * gcc.dg/graphite/interchange-6.c: Same.
3942 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3944 * gcc.dg/graphite/id-10.c: New.
3945 * gcc.dg/graphite/id-12.c: New.
3946 * gfortran.dg/graphite/id-7.f: New.
3947 * gfortran.dg/graphite/id-8.f: New.
3949 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3951 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
3954 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3956 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
3958 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3960 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
3962 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3964 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
3965 building PDR subscripts.
3967 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3969 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
3970 computation of array sizes.
3972 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3974 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
3976 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
3978 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
3979 build_pairwise_constraint, dr_equality_constraints,
3980 build_pairwise_scheduling_equality,
3981 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3982 build_lexicographically_gt_constraint, dependence_polyhedron,
3983 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
3984 Move from NNC_Polyhedron to C_Polyhedron.
3985 * graphite-interchange.c (compute_array_size_poly,
3986 gather_access_strides): Dito.
3987 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
3988 free_scop, pbb_number_of_iterations): Dito.
3989 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
3990 pbb_dim_iter_domain, struct scop): Dito.
3991 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
3992 new_Cloog_Domain_from_ppl_Polyhedron,
3993 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
3994 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
3995 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
3996 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
3997 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
3998 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
3999 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
4000 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
4001 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
4002 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
4003 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
4004 build_scop_iteration_domain, build_poly_dr): Dito
4006 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4008 * gcc.dg/graphite/graphite.exp: Added a rule to execute
4010 * gcc.dg/graphite/run-id-1.c: New.
4012 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4014 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
4015 positivity constraint on the symbolic number of iterations.
4017 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4019 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
4021 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4022 Tobias Grosser <grosser@fim.uni-passau.de>
4024 * graphite-clast-to-gimple.c (build_scop_context): Removed.
4025 (build_cloog_prog): Directly use SCOP_CONTEXT.
4026 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
4027 (free_scop): Free SCOP_CONTEXT.
4028 (print_scop_context): New.
4029 (print_scop): Call print_scop_context.
4030 (debug_scop_context): New.
4031 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
4032 (struct scop): Added field context.
4033 (SCOP_CONTEXT): New.
4034 * graphite-sese-to-poly.c (add_param_constraints): New.
4035 (build_scop_context): New.
4036 (build_poly_scop): Call build_scop_context.
4038 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4040 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
4041 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
4042 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
4043 * graphite-ppl.h: Include double-int.h and tree.h.
4044 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
4045 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
4046 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
4047 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
4049 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4051 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
4052 POINTER_PLUS_EXPR for pointer types.
4053 (clast_to_gcc_expression): Same.
4055 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
4057 * graphite-poly.c (print_scattering_function): Early return when
4058 PBB_TRANSFORMED_SCATTERING is not initialized.
4059 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
4061 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
4063 * tree-parloops.c (analyze_reduction_list): Remove unused variable
4066 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
4068 * tree-parloops.c (analyze_reduction_list): Change return
4070 (try_create_reduction_list): Move the call to
4071 analyze_reduction_list to the beginining.
4072 Call reduction_phi with analyzed_reductions as argument
4073 instead of reduction_list.
4075 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
4077 * Merge from mainline (r148296:149346)
4079 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4081 * graphite-scop-detection.c (graphite_can_represent_init): New.
4082 (graphite_can_represent_scev): Call graphite_can_represent_init:
4083 check that the initial value does not contain multiplications of
4085 (stmt_has_simple_data_refs_p): New.
4086 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
4087 (is_simple_operand): Fix formatting.
4088 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
4090 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4092 * gcc.dg/graphite/id-13.c: New.
4093 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
4094 analyze_scalar_evolution, use scalar_evolution_in_region.
4095 (scan_tree_for_params_right_scev): Add extra assert.
4096 (parameter_index_in_region_1): Split from parameter_index_in_region.
4097 (idx_record_params): Use scalar_evolution_in_region.
4098 (find_params_in_bb): Same.
4099 (find_scop_parameters): Same.
4100 (build_loop_iteration_domains): Same.
4101 (create_linear_expr_from_tree): Same.
4102 * sese.c (scalar_evolution_in_region): New.
4103 * sese.h (scalar_evolution_in_region): Declared.
4104 (defined_in_sese_p): New.
4105 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
4107 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
4110 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4112 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
4113 TREE_DATA_REF_H also implies SCEV_H.
4115 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
4117 * graphite-poly.c (print_scop_params): New.
4118 (print_scop): Call print_scop_params.
4119 (debug_scop_params): New.
4120 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
4122 2009-07-07 Li Feng <nemokingdom@gmail.com>
4124 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
4125 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
4126 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
4127 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
4128 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
4129 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
4131 2009-07-07 Li Feng <nemokingdom@gmail.com>
4133 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
4134 for dependency checking part.
4135 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
4136 tests for dependency checking.
4137 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
4138 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
4139 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
4140 flag -fdump-tree-graphite-all for autopar testsuites.
4142 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
4144 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
4145 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
4146 canonicalize_loop_ivs): Moved...
4147 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
4149 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
4151 * tree-parloops.c (try_create_reduction_list): Pass an extra
4152 argument analyzed_reductions. Call analyze_reduction_list.
4153 (gen_parallel_loop): Do not call analyze_reduction_list.
4154 (parallelize_loops): Init and finalize analyzed_reductions.
4156 2009-07-06 Li Feng <nemokingdom@gmail.com>
4158 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
4159 Added flag -fno-loop-strip-mine for autopar testcase.
4161 2009-07-04 Li Feng <nemokingdom@gmail.com>
4163 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
4164 transformed scattering dimension instead of unmatch orignal when
4165 calling dependence_polyhedron.
4167 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4169 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
4171 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4173 * graphite-poly.c (pbb_number_of_iterations): Check for returned
4174 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
4176 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
4178 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
4179 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
4180 * graphite-poly.c (pbb_number_of_iterations): New.
4181 * graphite-poly.h (pbb_number_of_iterations): Declared.
4182 (pbb_iterator_dim, pbb_parameter_dim): New.
4184 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
4186 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
4187 last commit on type of lower and upper bound of loops.
4189 2009-06-29 Li Feng <nemokingdom@gmail.com>
4191 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
4192 graphite-dependences.h.
4193 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
4194 (mark_bb_with_pbb): New.
4195 (get_stmtfor_depth): New.
4196 (find_pbb_via_hash): New.
4197 (dependency_in_loop_p): New.
4198 (mark_loops_parallel): New.
4199 (free_aux_in_new_loops): New.
4200 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
4201 bb with it's relevant pbb. Mark newly created loops. Remove mark
4202 innermost loop parallel without checking.
4203 (gloog): Add parameter BB_PBB_MAPPING.
4204 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
4205 (gloog): Change declaration.
4206 (mark_loop_parallel): Make extern.
4207 (free_aux_in_new_loops): Declare.
4208 (bb_pbb_map_hash): New.
4209 (eq_bb_pbb_map): New.
4210 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
4211 auto parallelization when flag_graphite_force_parallel is set.
4212 (graphite_finalize): Added free_aux_in_new_loops.
4213 * tree-parloops.c (parallelize_loops): Only generate parallel code for
4214 the innermost loop that marked parallel. Use
4215 flag_graphite_force_parallel instead of loop->can_be_parallel.
4216 (loop_parallel_p): Move inner most checking out of function.
4218 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4220 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
4221 type of lower and upper bound of loops signed long int.
4223 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4225 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
4226 expression outside the loop.
4228 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4230 * gcc.dg/graphite/interchange-8.c: New.
4232 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4234 * gcc.dg/graphite/interchange-0.c: XFailed.
4235 * gcc.dg/graphite/interchange-5.c: XFailed.
4236 * gcc.dg/graphite/interchange-6.c: XFailed.
4238 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4240 * graphite-interchange.c (compute_array_size_poly): The end of the
4241 recursion should return 1.
4243 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4245 * graphite-interchange.c (compute_array_size_cstr): Allow the
4246 subscript multiplier to be -1.
4247 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
4248 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
4249 data_container. Initializes PDR_DATA_CONTAINER.
4250 (print_pdr_access_layout): New.
4251 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
4252 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
4254 (PDR_DATA_CONTAINER): New.
4255 (new_poly_dr): Update declaration.
4256 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
4257 (build_poly_dr): Call pdr_add_data_dimensions.
4259 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4261 * graphite-poly.h (struct poly_dr): Fix comment.
4262 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
4263 (pdr_add_memory_accesses): New.
4264 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
4266 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
4268 * graphite-poly.c (print_pdrs, debug_pdrs): New.
4269 (print_pbb): Add call to print_pdrs.
4270 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
4272 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
4273 Li Feng <nemokingdom@gmail.com>
4275 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
4276 (dependency_between_pbbs_p): New.
4277 (lexicographically_gt_p): Assure !empty_p before polyhedron
4278 intersection assign.
4279 (build_lexicographically_gt_constraint): Correct lexicographically
4281 * graphite-dependences.h: New.
4282 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
4284 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4286 * graphite-clast-to-gimple.c (print_clast_stmt): New.
4287 (gloog): Print to dump_file the generated clast.
4288 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
4289 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
4291 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4293 * graphite-poly.c (extend_scattering): Increment
4294 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
4296 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
4298 * graphite-interchange.c (compute_array_size_poly): Added exit of
4299 recursion condition. Continue iterating even after the first equality.
4300 (compute_array_size): Same.
4302 2009-06-24 Li Feng <nemokingdom@gmail.com>
4304 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
4305 -fdump-tree-final_cleanup to -fdump-tree-optimized.
4306 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
4307 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
4308 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
4310 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4312 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
4313 only when the use verifies is_gimple_reg.
4315 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4317 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
4318 Allocate scaldims after call to unify_scattering_dimensions.
4320 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4322 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
4324 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4325 Albert Cohen <albert.cohen@inria.fr>
4327 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
4328 variables for the strip mining.
4330 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4331 Pranav Garg <pranav.garg2107@gmail.com>
4333 * Makefile.in (OBJS-common): Added graphite-blocking.o.
4334 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
4335 (graphite-blocking.o): New rule.
4336 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
4337 * graphite-blocking.c: New.
4338 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
4339 flag_loop_strip_mine.
4340 (psct_scattering_dim_for_loop_depth): New.
4341 * graphite-poly.h (scop_do_strip_mine): Declared.
4342 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
4343 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
4344 flag_loop_strip_mine.
4346 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4348 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
4349 a GMP value and a PPL coefficient at each iteration of a loop.
4351 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4353 * graphite-dependences.c (dependence_polyhedron): Do not use
4354 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
4355 pbb_nb_scattering_transform.
4356 (graphite_legal_transform_dr): Same.
4357 * graphite-poly.c (extend_scattering): Same.
4358 (unify_scattering_dimensions): Same.
4359 (print_scattering_function): Same.
4360 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
4361 PBB_NB_LOCAL_VARIABLES.
4362 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
4363 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
4364 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
4365 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
4366 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
4367 (pbb_nb_scattering_transform): New.
4368 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
4369 (psco_scattering_dim): Add assert on parameters.
4370 (psct_scattering_dim): Same.
4371 (psct_scattering_dim_for_loop_depth): Declared.
4372 (psct_local_var_dim): New.
4373 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
4374 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
4375 correct layout, call pbb_nb_local_vars.
4376 (psct_add_local_variable, psct_add_scattering_dimension): New.
4377 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
4378 Initialize PBB_NB_SCATTERING_TRANSFORM.
4380 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4382 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
4383 (set_coef): Renamed ppl_set_coef.
4384 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
4386 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
4388 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
4389 test a boolean against 1.
4390 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
4391 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
4392 (pbb_do_interchange): Returns true when a transform has been performed.
4393 (scop_do_interchange): Same.
4394 * graphite-poly.c (apply_poly_transforms): Use the return value of
4395 scop_do_interchange.
4396 * graphite-poly.h (scop_do_interchange): Update declaration.
4398 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
4400 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
4402 * sese.c (sese_reset_aux_in_loops): New.
4403 * sese.h (sese_reset_aux_in_loops): New.
4405 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4407 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
4408 multiplier and multiply the constant by the multiplier.
4409 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
4410 (build_poly_dr): Do not use the multiplier to define the subscript.
4412 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4414 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
4415 compiler's data reference. Initialize PDR_CDR.
4416 (print_pdr): Call dump_data_reference.
4417 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
4418 Add compiler_dr field.
4419 (PDR_BB): Renamed PDR_PBB.
4421 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
4422 GCC's data reference representation.
4423 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
4424 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
4426 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4428 * graphite-poly.c (print_scattering_function): Also print the layout.
4429 * graphite-poly.h (pbb_nb_local_vars): New.
4431 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4433 * graphite-poly.c (print_pbb_domain): Also print the layout names.
4435 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
4437 * graphite-poly.c (print_pdr, debug_pdr): New.
4438 * graphite-poly.h (print_pdr, debug_pdr): Declared.
4439 (PDR_BASE): Removed.
4441 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4443 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
4446 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4448 * graphite-interchange.c (compute_subscript): Allow also -1 in the
4449 subscript identification column.
4450 (pbb_do_interchange): Print to dump_file that some loops "will be
4451 interchanged". Rely on that chain of characters in the testcases.
4452 * gcc.dg/graphite/interchange-0.c: New.
4453 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
4454 interchange-*.c files and compile them with -floop-interchange.
4456 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
4458 * graphite-interchange.c (interchange_profitable_p): Renamed
4459 pbb_interchange_profitable_p.
4461 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4462 Harsha Jagasia <harsha.jagasia@amd.com>
4463 Pranav Garg <pranav.garg2107@gmail.com>
4465 * graphite-interchange.c (interchange_profitable_p): Make static.
4466 (pbb_interchange_loop_depths, pbb_do_interchange,
4467 scop_do_interchange): New.
4468 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
4469 for flag_loop_interchange.
4470 * graphite-poly.h (scop_do_interchange): Declared.
4471 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
4472 flag_loop_interchange is used.
4474 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
4476 * graphite-dependences.c (dependence_polyhedron): Update use of
4477 pbb_nb_scattering_dims.
4478 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
4479 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
4480 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
4481 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
4483 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4485 * graphite.c: Cleanup foo.
4487 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
4489 * Merge from mainline (r143684:148293).
4490 * Disabled libpcp until it gets fixed.
4492 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
4493 Harsha Jagasia <harsha.jagasia@amd.com>
4495 * graphite-interchange.c: New.
4496 * Makefile.in (graphite-interchange.o): New.
4497 * graphite-poly.h (interchange_profitable_p): Declared.
4498 * graphite-ppl.h (value_max): New.
4500 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4502 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
4503 * graphite-poly.h: Fix some comments.
4507 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
4510 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
4511 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
4512 (pdr_accessp_nb_params): Renamed pdr_nb_params.
4513 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
4514 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
4515 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
4516 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
4517 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
4518 * graphite-clast-to-gimple.c: Same.
4519 * graphite-dependences.c: Same.
4520 * graphite-poly.c: Same.
4521 * graphite-sese-to-poly.c: Same.
4523 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4525 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
4526 expressions for an IV rename, as returned by clast_to_gcc_expression.
4527 (copy_renames): Rename new_name to expr.
4528 * sese.c (debug_rename_elt): Same.
4531 (sese_adjust_liveout_phis): Call force_gimple_operand before using
4532 the information from the rename map.
4533 (rename_variables_in_stmt): Same.
4534 (add_loop_exit_phis): Rename new_name to expr.
4535 (insert_loop_close_phis): Same.
4536 (add_guard_exit_phis): Same. Call force_gimple_operand.
4537 * sese.h (struct rename_map_elt): Rename new_name to expr.
4538 (new_rename_map_elt): Same.
4540 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4542 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
4543 * sese.c (set_rename): Make it extern.
4544 * sese.h (set_rename): Declared.
4546 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
4548 * graphite-poly.c (extend_scattering): Free values.
4549 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
4551 (ppl_print_powerset_matrix): Same.
4552 * graphite-scop-detection.c (free_scops_1): New.
4553 (limit_scops): Call free_scops_1.
4554 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
4555 (build_poly_dr): Free PPL coefficients.
4556 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
4558 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
4560 * graphite-dependences.c: New.
4561 * graphite-data-ref.c: Removed.
4562 * graphite-data-ref.h: Removed.
4563 * Makefile.in (graphite-data-ref.o): Removed.
4564 (graphite-dependences.o): Added.
4565 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
4566 * graphite-poly.c: Same.
4567 Move the data dependence testing to graphite-dependences.c.
4569 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
4571 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
4572 from graphite_cannot_represent_loop. Code refactored.
4573 (scopdet_basic_block_info): Call graphite_can_represent_loop.
4575 2009-05-17 Li Feng <nemokingdom@gmail.com>
4577 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
4578 Cover all the testcases (not only the filtered ones).
4580 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
4582 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
4583 unnecessary check. Update comments. Move check for REAL_TYPE here.
4584 (harmful_stmt_in_bb): Remove checks for conditions. This is already
4585 done in (stmt_simple_for_scop_p).
4587 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
4589 * graphite.c (print_global_statistics): New.
4590 (print_graphite_scop_statistic): New.
4591 (print_graphite_statistics): New.
4592 (graphite_initialize, graphite_transform_loops): Print statistics.
4593 * graphite-scop-detection (build_scops): Print statistics.
4594 (print_graphite_scop_statistics): New.
4595 (print_graphite_statistics): New.
4597 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4599 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
4600 (debug_clast_name_index): Removed.
4601 (debug_clast_name_indexes_1): Removed.
4602 (debug_clast_name_indexes): Removed.
4603 (clast_name_index_elt_info): Removed.
4604 (eq_clast_name_indexes): Removed.
4605 (clast_name_to_index): Removed.
4606 (new_clast_name_index): Removed.
4607 (save_clast_name_index): Removed.
4608 (save_var_name): Moved...
4609 (init_sese_params_index): Removed.
4610 (clast_name_to_gcc): Remove use of name_tree.
4611 (initialize_cloog_names): Same.
4612 (gloog): Do not call init_sese_params_index.
4613 * graphite-sese-to-poly.c (save_var_name): ...here.
4614 (parameter_index_in_region): New.
4615 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
4616 (parameter_index_in_region): Removed.
4617 (is_parameter): Remove use of name_tree.
4618 * sese.h (struct name_tree): Removed.
4619 (struct sese): Remove use of name_tree. New field params_names.
4620 (SESE_PARAMS_NAMES): New.
4621 (SESE_PARAMS): Remove duplicate.
4622 (parameter_index_in_region): Removed.
4623 (sese_nb_params): Remove use of name_tree.
4624 (struct clast_name_index): New.
4625 (new_clast_name_index): New.
4626 (clast_name_to_index): New.
4627 (save_clast_name_index): New.
4628 (debug_clast_name_index): New.
4629 (debug_clast_name_indexes_1): New.
4630 (debug_clast_name_indexes): New.
4631 (clast_name_index_elt_info): New.
4632 (eq_clast_name_indexes): New.
4634 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4636 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
4637 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
4638 (graphite_loop_normal_form): Do not pass region. Do not
4639 initialize SESE_OLDIVS.
4640 (build_graphite_loop_normal_form): Update call to
4641 graphite_loop_normal_form.
4642 * sese.c (debug_oldivs): Removed.
4643 (new_sese): Do not initialize SESE_OLDIVS.
4644 (free_sese): Do not free SESE_OLDIVS.
4645 (oldiv_for_loop): Removed.
4646 * sese.h (struct sese): Remove old_ivs.
4647 (SESE_OLDIVS): Removed.
4648 (oldiv_for_loop): Removed.
4650 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4652 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
4653 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
4654 replaced by a call to newivs_to_depth_to_newiv.
4655 (clast_to_gcc_expression): Pass newivs, remove ivstack.
4656 (clast_to_gcc_expression_red): Same.
4657 (gcc_type_for_clast_expr): Same.
4658 (gcc_type_for_clast_eq): Same.
4659 (graphite_translate_clast_equation): Same.
4660 (graphite_create_guard_cond_expr): Same.
4661 (graphite_create_new_guard): Same.
4662 (graphite_create_new_loop): Same.
4663 (build_iv_mapping): Same.
4664 (translate_clast): Same.
4666 (loop_iv_stack_patch_for_consts): Removed. *
4667 sese.c (iv_stack_entry_is_constant): Removed.
4668 (iv_stack_entry_is_iv): Removed.
4669 (loop_iv_stack_push_iv): Removed.
4670 (loop_iv_stack_insert_constant): Removed.
4671 (loop_iv_stack_pop): Removed.
4672 (loop_iv_stack_get_iv): Removed.
4673 (loop_iv_stack_get_iv_from_name): Removed.
4674 (debug_loop_iv_stack): Removed.
4675 (free_loop_iv_stack): Removed.
4676 (loop_iv_stack_remove_constants): Removed. *
4677 sese.h (iv_stack_entry_kind): Removed.
4678 (iv_stack_entry_data_union): Removed.
4679 (iv_stack_entry_struct): Removed.
4680 (iv_stack_entry_p): Removed.
4681 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
4682 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
4683 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
4684 loop_iv_stack_pop, free_loop_iv_stack): Removed.
4685 (gbb_loop_at_index): Fix indenting.
4686 (gbb_loop_index): Removed.
4688 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4690 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
4691 Call clast_name_to_index.
4693 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4695 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
4696 do not pass params. Get params from SESE_PARAMS.
4697 (clast_to_gcc_expression): Same.
4698 (clast_to_gcc_expression_red): Same.
4699 (gcc_type_for_clast_eq): Same.
4700 (graphite_translate_clast_equation): Same.
4701 (graphite_create_new_loop): Same.
4702 * sese.c (rename_variables_in_stmt): Fix comment.
4704 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4706 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
4708 Call save_clast_name_index.
4709 (translate_clast): Pass newivs_index.
4710 (gloog): Create and free newivs_index.
4712 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4714 * graphite-clast-to-gimple.c (clast_name_index): New structure.
4715 (clast_name_index_p): New type.
4716 (debug_clast_name_index): New.
4717 (debug_clast_name_indexes_1): New.
4718 (debug_clast_name_indexes): New.
4719 (clast_name_index_elt_info): New.
4720 (eq_clast_name_indexes): New.
4721 (clast_name_to_index): New.
4722 (new_clast_name_index): New.
4723 (save_clast_name_index): New.
4724 (init_sese_params_index): New.
4725 (gloog): Call init_sese_params_index.
4726 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
4727 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
4728 (free_sese): Free SESE_PARAMS_INDEX.
4729 * sese.h (struct sese): Add params_index.
4730 (SESE_PARAMS_INDEX): New.
4732 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4734 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
4735 (graphite_create_new_loop): Pass the newivs vector. Push the
4736 newly created IV to newivs.
4737 (translate_clast): Pass the newivs vector.
4738 (gloog): Create and destroy the newivs vector.
4740 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4742 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
4743 (graphite_loop_normal_form): Initialize loop->aux with the unique
4744 IV that has been created.
4746 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
4748 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
4749 scev with parameters in the base part. They where forbidden
4752 2009-05-11 Li Feng <nemokingdom@gmail.com>
4754 * gcc.dg/graphite/graphite.exp: Set different default
4755 compile options by file names.
4756 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
4757 * gcc.dg/graphite/id-{1-9}.c: Ditto.
4758 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
4759 * gcc.dg/graphite/scop-matmult.c: Ditto.
4761 2009-05-08 Li Feng <nemokingdom@gmail.com>
4763 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
4764 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
4765 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
4766 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
4768 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4770 * graphite-scop-detection (build_scops_1): Fix little bug introduced
4773 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4775 * graphite-scop-detection.c (graphite_can_represent_scev): Only
4776 allow integer constant strides.
4777 (graphite_can_represent_expr): Depend on outermost_loop.
4778 (stmt_simple_memref_p, graphite_cannot_represent_loop,
4779 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
4780 build_scops_1): Same.
4781 (scopdet_basic_block_info): Same and insert layered SCoP
4783 (try_generate_gimple_bb): Cleanup.
4784 (build_scops): Enable data references.
4786 * gcc.dg/graphite/id-5.c: New.
4787 * gcc.dg/graphite/id-9.c: New.
4788 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
4789 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
4791 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4793 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
4794 that we have not yet built for this SCoP.
4796 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4798 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
4799 for complex numbers.
4801 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4803 * graphite-ppl.c: Fix build if cloog is not available.
4805 2009-05-04 Li Feng <nemokingdom@gmail.com>
4807 * tree-parloops.c (loop_parallel_p): Remove construction of
4808 NITER and REDUCTION_LIST.
4809 (try_get_loop_niter): New.
4810 (try_create_reduction_list): New.
4811 (parallelize_loops): Bypass the failed checkings in autopar
4812 when can_be_parallel in loop structure is set to true.
4814 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4816 * gcc.dg/graphite/id-6.c: Update testcase.
4817 * gcc.dg/graphite/scop-3.c: Dito.
4819 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4821 * graphite-scop-detection.c (stmt_simple_for_scop_p):
4822 Enable EQ_EXPR and NE_EXPR again.
4824 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4826 * graphite-scop-detection.c (graphite_can_represent_scev):
4827 Add check if scev is affine multivariate.
4828 (harmful_stmt_in_bb): Check if we can represent the conditions.
4829 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
4831 * gcc.dg/graphite/id-7.c: New.
4833 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4835 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
4836 Check all bbs in region, not only the bbs that are represented in
4838 (build_poly_scop): Add newline.
4839 * gcc.dg/graphite/id-8.c: New.
4841 2009-04-30 Li Feng <nemokingdom@gmail.com>
4843 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
4844 when loop initialize.
4845 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
4846 * common.opt: Declare flag_graphite_force_parallel.
4847 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
4849 * graphite-poly.c (apply_poly_transforms): Introduce
4850 flag_graphite_force_parallel.
4851 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
4852 * toplev.c (process_options): ditto and replace a not correctly
4855 2009-04-30 Li Feng <nemokingdom@gmail.com>
4857 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
4858 Change the call of gbb_loop_at_index and/or gbb_loop_index due
4859 to the redefinition.
4860 (compute_cloog_iv_types_1): ditto.
4861 (build_iv_mapping): ditto.
4862 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
4864 (free_gimple_bb): Removed GBB_LOOPS related free part.
4865 (build_bb_loops): Removed.
4866 * sese.h (struct gimple_bb): Removed loops.
4867 (GBB_LOOPS): Removed.
4868 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
4869 (gbb_loop_index): ditto.
4871 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4873 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
4874 allow non constant strides.
4875 * gcc.dg/graphite/scop-20.c: New.
4877 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4879 * graphite-scop-detection.c (dot_all_scops): Fix system call
4880 return value warning.
4883 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4885 * gcc.dg/graphite/id-6.c: Fix pattern.
4886 * gcc.dg/graphite/scop-3.c: Same.
4888 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4890 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
4891 build_pairwise_constraint, dr_equality_constraints,
4892 build_pairwise_scheduling_equality,
4893 build_pairwise_scheduling_inequality, lexicographically_gt_p,
4894 build_lexicographically_gt_constraint, dependence_polyhedron,
4895 graphite_legal_transform_dr, graphite_legal_transform_bb,
4896 graphite_legal_transform): New.
4897 * graphite-poly.h (graphite_legal_transform): Declared.
4898 * graphite-sese-to-poly.c (build_poly_scop): Call to
4899 graphite_legal_transform is disabled for the moment.
4901 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4903 * graphite-poly.h (pbb_nb_scattering_dims): New.
4904 (pbb_nb_scattering): Use it.
4906 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4908 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
4909 Pointset_Powerset version of ppl_insert_dimensions.
4910 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
4912 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4914 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
4916 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4918 * graphite-poly.h: Fix comment.
4920 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4922 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
4924 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4926 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
4929 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4931 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
4932 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
4935 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
4937 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
4938 handle EQ_EXPR and NE_EXPR.
4940 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
4942 * graphite-poly.h (poly_dr): Fix comment.
4944 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4945 Tobias Grosser <grosser@fim.uni-passau.de>
4947 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
4948 with a zero dimension polyhedron.
4949 (find_scop_parameters): Move the call to scop_set_nb_params here.
4950 (build_loop_iteration_domains): Store in loop->aux the iteration
4952 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
4953 by any loop in scop.
4954 (build_poly_scop): Do not call scop_set_nb_params.
4956 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4957 Tobias Grosser <grosser@fim.uni-passau.de>
4959 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
4960 add_condition_to_domain not GT_EXPR.
4962 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4964 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
4965 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
4966 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
4967 upper_bound_assign to calculate unions.
4968 * gcc.dg/graphite/id-6.c: New.
4970 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4972 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
4973 handle abnormal edges.
4975 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4977 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
4978 (free_poly_bb): Also free poly_drs.
4979 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
4980 (poly_dr): Polyhedron to Pointset_Powerset.
4981 (pdr_accessp_nb_subscripts): Same.
4982 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
4985 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4987 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
4988 names into more meaningful names.
4990 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4992 * gfortran.dg/graphite/interchange-1.c: New.
4993 * gfortran.dg/graphite/interchange-2.c: New.
4995 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4997 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
4999 * tree-parloops.c (rewrite_phi_with_iv): New.
5000 (rewrite_all_phi_nodes_with_iv): New.
5001 (canonicalize_loop_ivs): Call them.
5003 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5005 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
5006 graphite_find_data_references_in_stmt.
5007 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
5008 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
5010 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5012 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
5014 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5016 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
5017 instead of bb_in_region.
5018 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
5019 (build_sese_conditions): Use flag_bb_in_sese.
5020 * sese.c (register_bb_in_sese): Removed.
5021 (new_sese): Remove initialization of SESE_REGION_BBS.
5022 (free_sese): Do not free SESE_REGION_BBS.
5023 * sese.h (struct sese): Remove field region_basic_blocks.
5024 (SESE_REGION_BBS): Removed.
5025 (bb_in_sese_p): Implement in function of bb_in_region.
5027 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
5029 * graphite-scop-detection.c (limit_scops): Deal only with single exit
5032 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
5034 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
5036 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
5037 (add_condition_to_domain): New.
5038 (add_condition_to_pbb): New.
5039 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
5040 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
5042 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
5044 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
5045 ppl_Pointset_Powerset.
5046 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
5047 * graphite-poly.h (poly_bb): poly_bb.domain Same.
5048 (pbb_nb_loops): Same.
5049 * graphite-sese-to-poly.c (build_loop_iteration_domains,
5050 add_conditions_to_domain): Same.
5051 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
5052 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
5053 ppl_const_Polyhedron_t.
5054 (ppl_print_powerset_matrix): New.
5055 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
5056 ppl_print_powerset_matrix): New.
5057 (ppl_print_polyhedron_matrix): Updated.
5059 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
5061 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
5063 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
5065 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
5066 (print_iteration_domains, debug_iteration_domain,
5067 debug_iteration_domains): New.
5068 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
5069 debug_iteration_domains): Declared.
5070 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
5073 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
5074 Sebastian Pop <sebastian.pop@amd.com>
5076 * graphite-poly.h (print_iteration_domain): New.
5077 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
5078 (build_sese_conditions_1, build_sese_conditions_after,
5079 build_sese_conditions_before): New.
5080 (build_sese_conditions): Rewritten.
5082 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
5083 Tobias Grosser <grosser@fim.uni-passau.de>
5085 Cleanup of code generation liveouts.
5086 * graphite-clast-to-gimple.c (translate_clast): Use a single
5087 rename_map instead of one per translated statement.
5088 Do not use SESE_LIVEOUT_RENAMES.
5089 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
5090 (gloog): Do not use SESE_LIVEOUT_RENAMES.
5091 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
5092 phi node of a reduction: when a loop contains a reduction used outside
5093 the loop, there should be a scalar close phi node on the exit block.
5094 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
5095 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
5096 (free_sese): Do not free them.
5097 (sese_build_liveouts_use): Do not use them.
5098 (sese_build_liveouts_bb): Same.
5099 (sese_build_liveouts): Same.
5100 (sese_insert_phis_for_liveouts): Same.
5101 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
5102 (defined_in_loop_p): New.
5103 (alive_after_loop): New.
5104 (close_phi_not_yet_inserted_p): New.
5105 (struct alep, alep_p): New.
5106 (add_loop_exit_phis): Remove from the rename_map all the names defined
5107 in the code generated loop.
5108 (insert_loop_close_phis): Traverse the rename_map passed to it.
5109 Don't use SESE_LIVEOUT_RENAMES.
5110 (default_liveout_before_guard): Renamed default_before_guard.
5111 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
5112 (graphite_copy_stmts_from_block): Do not directly call set_rename.
5113 (register_sese_liveout_renames): Removed.
5114 (copy_bb_and_scalar_dependences): Do not call it.
5115 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
5117 (SESE_LIVEOUT): Removed.
5118 (SESE_LIVEOUT_RENAMES): Removed.
5119 (SESE_REDUCTION_LIST): Removed.
5120 (sese_build_liveouts): Removed.
5121 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
5122 (insert_loop_close_phis): Pass a htab_t instead of a sese.
5123 (insert_guard_phis): Same.
5124 (rename_map_elt): Declare a VEC of them.
5125 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
5126 trees not pointers to trees.
5128 Rewrite in canonical close SSA form:
5129 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
5130 (limit_scops): Close the scop after the block containing the close phi
5132 (canonicalize_loop_closed_ssa): New.
5133 (canonicalize_loop_closed_ssa_form): New.
5134 (build_scops): Call canonicalize_loop_closed_ssa_form.
5136 * graphite-sese-to-poly.c: Fix typos.
5138 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
5140 * graphite-poly.c (print_scattering_function, print_pbb_domain):
5142 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
5143 (print_pbb): Add conditions.
5145 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
5146 Sebastian Pop <sebastian.pop@amd.com>
5148 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
5149 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
5150 (build_scop_bbs_1): New.
5151 (build_scop_bbs): Rewrite.
5152 * sese.h (bb_in_region): New.
5154 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5156 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
5158 (print_scop): Style.
5159 * graphite-poly.h (poly_bb): Add drs vector.
5160 (PBB_DRS): Add accessor.
5161 * graphite-sese-to-poly.c (build_poly_dr): New.
5162 (build_pbb_drs, build_scop_drs): New.
5163 (build_poly_scop): call build_scop_drs (Disabled at the moment).
5165 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5167 * tree-ssa-loop.c: Include forgotten toplev.h
5169 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
5171 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
5172 * gcc.dg/graphite/pr37883.c: Remove -floop-*
5173 * gcc.dg/graphite/pr37928.c: Same
5174 * gcc.dg/graphite/pr38409.c: Same
5175 * gcc.dg/graphite/pr38498.c: Same
5176 * gcc.dg/graphite/pr38559.c: Same
5177 * gcc.dg/graphite/pr39335.c: Same
5178 * gcc.dg/graphite/pr39335_1.c: Same
5179 * gfortran.dg/graphite/block-2.f: Same
5180 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
5183 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
5185 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
5186 build_access_matrix, build_scop_data_accesses): Remove access function
5187 building. (We get a new version soon).
5188 (build_bb_loops, scan_tree_for_params_right_scev): Update.
5189 * sese.h (nb_loops_around_loop_in_sese): Remove.
5190 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
5192 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
5193 Sebastian Pop <sebastian.pop@amd.com>
5195 * graphite-scop-detection.c (struct scopdet_info): Rename last
5197 (scopdet_basic_block_info, build_scops_1): Don't use
5198 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
5200 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
5201 Sebastian Pop <sebastian.pop@amd.com>
5203 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
5204 * sese.c (sese_build_liveouts_use): Renamed from
5205 sese_build_livein_liveouts_use. Remove liveins.
5206 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
5207 Call sese_build_liveouts_use.
5208 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
5209 Call sese_build_liveouts_bb.
5210 (new_sese, free_sese): Remove liveins.
5211 (sese_add_exit_phis_var): Deleted.
5212 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
5214 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
5216 * sese.h (sese): Remove num_ver and livein.
5217 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
5219 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
5221 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
5223 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
5225 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
5226 (build_scop_scattering): Do not use compare_prefix_loops any more.
5227 (nb_common_loops): New.
5229 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5231 * sese.c (get_new_name_from_old_name): Renamed get_rename.
5232 (register_old_and_new_names): Renamed set_rename.
5234 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5236 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
5237 of the decl from the previous commit.
5239 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5241 * graphite-scop-detection.c (dot_scop): New.
5242 * graphite-scop-detection.h (dot_scop): Declared.
5244 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5246 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
5248 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5250 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
5251 condition at the end of the loop.
5252 * graphite.c (graphite_initialize, graphite_finalize): Print to
5253 dump_file the compiled function.
5254 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
5255 of create_empty_loop_on_edge.
5256 (translate_clast): Update the code generation of loops for the new
5258 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
5260 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
5262 Reverted the patch from 2009-03-19.
5264 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
5266 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
5268 (print_scop): Style.
5269 * graphite-poly.h (poly_bb): Add drs vector.
5270 (PBB_DRS): Add accessor.
5271 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
5272 (build_access_matrix_with_af, build_access_matrix,
5273 build_scop_data_accesses): Delete.
5274 (build_poly_dr): New.
5275 (build_pbb_drs, build_scop_drs): New.
5276 (build_poly_scop): call build_scop_drs.
5278 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
5280 * graphite-scop-detection.c (dot_all_scops_1): Close the table
5281 once per basic block.
5283 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
5285 * graphite-scop-detection.c (graphite_can_represent_scev): New.
5286 (graphite_can_represent_expr): Renamed from loop_affine_expr
5288 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
5289 (graphite_cannot_represent_loop): Add scop_entry to parameters.
5290 (scopdet_basic_block_info): Actually define entry_block.
5291 (stmt_simple_memref_p): Moved here from ...
5293 * tree-data-ref.c (stmt_simple_memref_p): here.
5294 * tree-data-ref.h (stmt_simple_memref_p): Removed.
5296 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
5298 * gcc.dg/graphite/id-4.c: New.
5300 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
5302 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
5303 (register_old_and_new_names): Update the content of the map.
5304 When there was already a rename_map_elt in the map at that
5306 (copy_bb_and_scalar_dependences): Do rename_variables after
5307 expand_scalar_variables.
5308 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5309 of the map. When there was already a rename_map_elt in the
5310 map at that location, free it.
5311 (translate_clast): Pass the rename_map. Do not initialize and free
5312 a rename_map per stmt_user.
5313 (gloog): Initialize and free one rename_map and pass it to
5316 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
5318 * sese.c (expand_scalar_variables_stmt,
5319 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
5321 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
5322 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
5323 the gimple_stmt_iterator of the statement to be expanded.
5324 * graphite-scop-detection.c (is_simple_operand): Do handle
5327 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5329 * graphite-scop-detection.c (is_simple_operand): Do not handle
5331 * gcc.dg/graphite/id-2.c: New.
5333 * graphite-sese-to-poly.c (build_bb_loops,
5334 add_value_to_dim, scan_tree_for_params_right_scev,
5335 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
5336 find_params_in_bb, build_loop_iteration_domains,
5337 add_conditions_to_domain): Remove subtract.
5339 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5341 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
5342 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
5343 pbb_loop_at_index -> gbb_loop_at_index.
5344 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
5345 (debug_loop_vec): Delete.
5346 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
5347 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
5348 (PBB_LOOPS): Removed.
5349 (PBB_BLACK_BOX): Insert cast.
5350 (pbb_set_black_box): New setter.
5351 (pbb_loop_at_index, pbb_loop_index): Removed.
5352 (scop_set_region, scop_set_nb_params): New.
5353 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
5354 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
5355 (build_poly_scop): Use scop_set_nb_params.
5356 * sese.h (gimple_bb): Add LOOPS.
5357 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
5359 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5361 Revert previous commit.
5363 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
5365 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
5366 (register_old_and_new_names): Update the content of the map.
5367 When there was already a rename_map_elt in the map at that
5369 (copy_bb_and_scalar_dependences): Do rename_variables after
5370 expand_scalar_variables.
5371 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5372 of the map. When there was already a rename_map_elt in the
5373 map at that location, free it.
5374 (translate_clast): Pass the rename_map. Do not initialize and free
5375 a rename_map per stmt_user.
5376 (gloog): Initialize and free one rename_map and pass it to
5379 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
5381 Remove forgotten line in revert.
5383 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
5385 Revert previous commit.
5387 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
5389 * sese.c (register_old_and_new_names): Update the content
5390 of the map. When there was already a rename_map_elt in the
5391 map at that location, free it.
5392 (copy_bb_and_scalar_dependences): Do rename_variables after
5393 expand_scalar_variables.
5394 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
5395 of the map. When there was already a rename_map_elt in the
5396 map at that location, free it.
5397 (translate_clast): Pass the rename_map. Do not initialize and free
5398 a rename_map per stmt_user.
5399 (gloog): Initialize and free one rename_map and pass it to
5402 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
5404 * graphite-clast-to-gimple.c (translate_clast): context_loop
5407 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
5408 Sebastian Pop <sebastian.pop@amd.com>
5410 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
5411 of the use of ppl_Polyhedron_map_space_dimensions.
5413 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
5414 Sebastian Pop <sebastian.pop@amd.com>
5416 * graphite-poly.c (unify_scattering_dimensions): Fix types.
5417 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
5418 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
5419 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
5420 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
5421 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
5422 pbb_nb_params): New.
5423 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
5424 nb_loops_around_pbb): Adapt return types.
5426 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
5428 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
5429 graphite-clast-to-gimple.o, graphite-data-ref.o,
5430 graphite-scop-detection.o, graphite-poly.o): Add
5433 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
5435 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
5436 graphite-clast-to-gimple.o, graphite-data-ref.o,
5437 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
5439 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
5441 * gcc.dg/graphite/pr37485.c: Remove -floop-block
5442 * gcc.dg/graphite/pr37828.c: Same.
5443 * gcc.dg/graphite/pr37684.c: Same.
5444 * gcc.dg/graphite/block-0.c: Same.
5445 * gcc.dg/graphite/block-1.c: Same.
5446 * gcc.dg/graphite/block-2.c: Same.
5447 * gcc.dg/graphite/block-3.c: Same.
5448 * gcc.dg/graphite/block-4.c: Same.
5449 * gcc.dg/graphite/block-5.c: Same.
5450 * gcc.dg/graphite/block-6.c: Same.
5451 * gfortran.dg/graphite/pr38083.f90: Same.
5452 * gfortran.dg/graphite/block-1.f90: Same.
5453 * gfortran.dg/graphite/block-3.f90: Same.
5454 * gfortran.dg/graphite/pr37852.f90: Same.
5455 * gfortran.dg/graphite/block-4.f90: Same.
5456 * gfortran.dg/graphite/pr37980.f90: Same.
5457 * gfortran.dg/graphite/pr38953.f90: Same.
5458 * gfortran.dg/graphite/pr37857.f90: Same.
5459 * opts.c: Remove -floop-block from -O2.
5460 * graphite-poly.c: Fail if -floop-block -floop-interchange or
5461 -floop-strip-mine are used.
5463 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
5464 Sebastian Pop <sebastian.pop@amd.com>
5466 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
5468 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
5469 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
5470 strip_mine_profitable_p, is_interchange_valid,
5471 graphite_trans_bb_block, graphite_trans_loop_block,
5472 graphite_trans_scop_block): Temporary removed.
5473 (extend_scattering, unify_scattering_dimensions): New.
5474 (print_scattering_function, graphite_read_transforms):
5475 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5476 (graphite_generate_scattering_fns): Removed.
5477 (apply_poly_transforms): Cleanup.
5478 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5479 (schedule_to_scattering): Moved.
5480 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
5481 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
5482 (pbb_nb_scattering): New.
5483 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5484 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
5486 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
5488 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
5489 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
5490 -> PBB_TRANSFORMED_SCATTERING.
5491 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
5492 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
5493 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
5494 (check_poly_representation): Do not return bool.
5495 (graphite_transform_loops): Reformat.
5496 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
5498 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
5500 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
5501 debug_pbb_domain, debug_pbb, debug_scop): New.
5502 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
5503 debug_pbb_domain, debug_pbb, debug_scop): Declared.
5505 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5508 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
5509 when the type precision of the induction variable should be
5510 larger than the type precision of nit.
5511 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
5512 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
5513 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
5515 * gcc.dg/graphite/pr39335_1.c: New.
5516 * gcc.dg/graphite/pr39335.c: New.
5518 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5520 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
5521 SSA_NAMES not struct reduction_info.
5523 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
5525 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
5527 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5528 Tobias Grosser <grosser@fim.uni-passau.de>
5530 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
5531 (free_sese): Free SESE_REDUCTION_LIST.
5532 * sese.h (struct sese): Add field reduction_list.
5533 (SESE_REDUCTION_LIST): New.
5534 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
5535 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
5537 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5538 Tobias Grosser <grosser@fim.uni-passau.de>
5540 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
5543 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
5544 Tobias Grosser <grosser@fim.uni-passau.de>
5546 * tree-parloops.c (struct brli, build_reduction_list_info,
5547 analyze_reduction_list, gather_scalar_reductions): New.
5548 (loop_parallel_p): Build a reduction list containing only
5549 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
5550 (gen_parallel_loop): Call the analysis analyze_reduction_list.
5551 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
5552 * tree-flow.h (gather_scalar_reductions): Declared.
5554 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
5557 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
5558 number_of_iterations_exit from a gcc_assert.
5560 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
5561 Jan Sjodin <jan.sjodin@amd.com>
5563 * output.h (graphite_out_file, graphite_in_file): Declared.
5564 * toplev.c (graphite_out_file, graphite_in_file): New.
5565 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
5566 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
5567 Don't call schedule_to_scattering.
5568 * common.opt (fgraphite-write, fgraphite-read): New.
5569 * graphite-poly.c: Include output.h.
5570 (print_scattering_function, print_scattering_functions,
5571 debug_scattering_function, debug_scattering_functions,
5572 graphite_write_transforms, graphite_read_transforms,
5573 graphite_generate_scattering_fns): New.
5574 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
5575 Call graphite_generate_scattering_fns, graphite_write_transforms,
5576 graphite_read_transforms.
5577 (new_poly_bb): Initialize PBB_SCATTERING.
5578 (free_poly_bb): Free PBB_SCATTERING.
5579 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
5580 * graphite-poly.h (struct poly_bb): Add field scattering.
5581 (PBB_SCATTERING): New.
5582 (print_scattering_function, print_scattering_functions,
5583 debug_scattering_function, debug_scattering_functions): Declared.
5584 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
5585 GMP values, not integers!
5586 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
5587 ppl_read_polyhedron_matrix): New.
5588 * graphite-ppl.h (ppl_print_polyhedron_matrix,
5589 debug_ppl_polyhedron_matrix,
5590 ppl_read_polyhedron_matrix): Declared.
5591 * Makefile.in (graphite-poly.o): Depends on output.h.
5593 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5594 Tobias Grosser <grosser@fim.uni-passau.de>
5597 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5598 scalar evolutions in the scop_entry->loop_father.
5600 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5601 Tobias Grosser <grosser@fim.uni-passau.de>
5603 * graphite.h (ref_nb_loops): Remove declaration.
5604 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
5605 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
5606 debug_gbb): Moved to sese.h.
5609 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5610 Tobias Grosser <grosser@fim.uni-passau.de>
5612 * graphite-data-ref.[ch]: Disable.
5614 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5615 Tobias Grosser <grosser@fim.uni-passau.de>
5617 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5618 scalar evolutions in the scop_entry->loop_father.
5620 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5622 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
5623 (graphite_cannot_represent_loop_niter): Renamed
5624 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
5625 (limit_scops): build_sese_loop_nests does not return a bool.
5626 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
5627 * sese.c (nb_reductions_in_loop): ... from here.
5628 (graphite_loop_normal_form): ... from here.
5629 (sese_record_loop): Does not fail, so does not return a bool.
5630 (build_sese_loop_nests): Same.
5631 * sese.h (build_sese_loop_nests): Update declaration.
5632 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
5633 (build_graphite_loop_normal_form): New.
5634 (gloog): Call build_graphite_loop_normal_form.
5635 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
5636 build_sese_loop_nests.
5638 * gcc.dg/graphite/id-1.c: New.
5640 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5641 Tobias Grosser <grosser@fim.uni-passau.de>
5643 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
5644 The SCoP detection fix is sufficient.
5646 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5648 PR tree-optimization/39260
5649 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
5650 the basic block contains a condition with a real type.
5651 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
5653 * gcc.dg/graphite/pr39260.c: New.
5655 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5657 * graphite-poly.c: Inlcude params.h.
5658 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
5660 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
5661 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
5663 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5664 Tobias Grosser <grosser@fim.uni-passau.de>
5666 * graphite-scop-detection.c (dot_all_scops_1,
5667 dot_all_scops): Moved here.
5668 * graphite-scop-detection.h (dot_all_scops): Declared here.
5669 * graphite.c (graphite_initialize, graphite_finalize): New.
5670 (graphite_transform_loops): Cleaned up.
5671 * sese.c (debug_oldivs): Moved here.
5672 * graphite-poly.c (graphite_apply_transformations): Renamed
5673 apply_poly_transforms.
5674 (debug_loop_vec): Moved here.
5675 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
5676 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
5677 find_scop_parameters, build_scop_iteration_domain,
5678 add_conditions_to_constraints, build_scop_canonical_schedules,
5679 build_scop_data_accesses): Now static.
5680 (build_poly_scop, check_poly_representation): New.
5682 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5684 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
5685 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
5686 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
5687 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
5688 scan_tree_for_params_right_scev, scan_tree_for_params_int,
5689 scan_tree_for_params, struct irp_data, dx_record_params,
5690 find_params_in_bb, find_scop_parameters, gbb_from_bb,
5691 build_loop_iteration_domains, add_conditions_to_domain,
5692 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
5693 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
5694 build_sese_conditions, add_conditions_to_constraints,
5695 build_scop_iteration_domain, build_access_matrix_with_af,
5696 build_access_matrix,
5697 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
5699 * graphite-sese-to-poly.c: New.
5700 * graphite-sese-to-poly.h: New.
5702 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
5704 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5706 * graphite.c: Split graphite code generation to a new file.
5707 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
5708 max_precision_type, clast_to_gcc_expression_red,
5709 clast_to_gcc_expression, gcc_type_for_clast_expr,
5710 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
5711 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
5712 graphite_create_new_guard, clast_get_body_of_loop,
5713 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
5714 graphite_create_new_loop, build_iv_mapping, copy_renames,
5715 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5716 compute_cloog_iv_types, free_scattering, save_var_name,
5717 initialize_cloog_names, build_scop_context, build_cloog_prog,
5718 set_cloog_options, debug_clast_stmt, scop_to_clast,
5719 print_generated_program, debug_generated_program,
5720 gloog): Moved to graphite-clast-to-gimple.c.
5722 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
5724 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
5725 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
5726 loop_iv_stack_pop, loop_iv_stack_get_iv,
5727 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
5728 free_loop_iv_stack, loop_iv_stack_remove_constants,
5729 debug_rename_elt, debug_rename_map_1, debug_rename_map,
5730 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
5731 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
5732 eq_ivtype_map_elts, sese_add_exit_phis_edge,
5733 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
5734 get_vdef_before_sese, sese_adjust_vphi,
5735 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
5736 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
5737 is_iv, expand_scalar_variables_ssa_name,
5738 expand_scalar_variables_expr, expand_scalar_variables_stmt,
5739 expand_scalar_variables, rename_variables, remove_condition,
5740 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
5741 add_loop_exit_phis, insert_loop_close_phis, struct igp,
5742 default_liveout_before_guard, add_guard_exit_phis,
5743 insert_guard_phis, register_old_and_new_names,
5744 graphite_copy_stmts_from_block, register_sese_liveout_renames,
5745 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
5746 if_region_set_false_region, create_if_region_on_edge,
5747 move_sese_in_condition): Moved to sese.c.
5749 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
5750 if_region_exit, if_region_get_condition_block,
5751 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
5752 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
5753 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
5754 ivtype_map_elt, new_ivtype_map_elt,
5755 recompute_all_dominators): Moved to sese.h.
5757 * graphite-clast-to-gimple.c: New.
5758 * graphite-clast-to-gimple.h: New.
5759 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
5760 * sese.c: Modified as said above.
5763 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5765 * graphite.c: Split scop detection to a new file.
5766 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
5767 move_sd_regions, loop_affine_expr, exclude_component_ref,
5768 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
5769 graphite_cannot_represent_loop_niter, struct scopdet_info,
5770 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
5771 find_single_entry_edge, find_single_exit_edge,
5772 create_single_entry_edge, sd_region_without_exit,
5773 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
5774 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
5775 Moved to graphite-scop-detection.c.
5777 * graphite-scop-detection.c: New.
5778 * graphite-scop-detection.h: New.
5779 * Makefile.in: Add new rule for graphite-scop-detection.o.
5781 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
5782 tree-scalar-evolution.h.
5783 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
5784 build_sese_loop_nests): Moved here from graphite.c.
5785 (param_index): Renamed parameter_index_in_region.
5787 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5788 Sebastian Pop <sebastian.pop@amd.com>
5790 * gcc.dg/graphite/block-0.c: Expected to fail now.
5791 * gcc.dg/graphite/block-1.c: Same.
5792 * gcc.dg/graphite/block-5.c: Same.
5793 * gcc.dg/graphite/block-6.c: Same.
5795 2009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5796 Sebastian Pop <sebastian.pop@amd.com>
5798 * graphite.h: Separate from graphite_bb_p the polyhedral
5799 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
5800 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
5801 graphite-data-ref.h.
5802 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
5803 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
5804 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
5805 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5806 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
5807 scop_nb_params): Moved to graphite-poly.h.
5808 * graphite-data-ref.c: Same.
5809 * graphite-data-ref.h: New.
5811 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
5812 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
5813 is_interchange_valid, graphite_trans_bb_block,
5814 graphite_trans_loop_block, scop_max_loop_depth,
5815 graphite_trans_scop_block, graphite_apply_transformations,
5816 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
5818 * graphite-poly.h: New.
5819 * graphite-poly.c: New.
5820 * Makefile.in (OBJS-common): Add graphite-poly.o.
5821 (graphite-poly.o): New rule.
5822 * tree-data-ref.h (struct data_reference): Remove unused scop field.
5825 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5826 Tobias Grosser <grosser@fim.uni-passau.de>
5828 * graphite.c: Replace gb -> gbb.
5830 * graphite-data-ref.c: Same.
5832 2009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5833 Tobias Grosser <grosser@fim.uni-passau.de>
5835 * Makefile.in (OBJS-commmon): Add sese.o.
5837 (graphite.o): Add sese.h.
5838 * graphite.c (bb_in_ss_p, loop_in_sese_p,
5839 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
5840 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
5842 (block_before_scop): Add missing return.
5843 (new_scop, free_scop): Remove SESE data structures.
5844 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
5845 find_scop_parameters, build_loop_iteration_domains,
5846 add_conditions_to_domain, register_scop_liveout_renames,
5847 copy_bb_and_scalar_dependences): Scop -> SESE.
5849 (add_conditions_to_domain): SCoP -> SESE and remove check
5850 (scop_contains_non_iv_scalar_phi_nodes): New.
5851 (build_scop_conditions_1, build_scop_conditions): Remove check for
5852 non iv scalar phi nodes.
5853 (print_scop_statistics): New.
5854 (graphite_transform_loops): Cleanup.
5856 * graphite.h: Move to sese & cleanup.
5860 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5861 Tobias Grosser <grosser@fim.uni-passau.de>
5863 * graphite.c (build_scop_conditions_1): Conditions are only
5864 at the end of a basic block.
5866 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5867 Tobias Grosser <grosser@fim.uni-passau>
5869 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
5871 (GBB_ALPHA): Removed.
5873 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5874 Tobias Grosser <grosser@fim.uni-passau.de>
5876 * graphite-data-ref.c (graphite_test_dependence): Don't use
5877 GBB_DYNAMIC_SCHEDULE.
5878 * graphite.c (new_graphite_bb): Same.
5879 (free_graphite_bb): Same.
5880 (build_scop_dynamic_schedules): Removed.
5881 (graphite_transform_loops): Don't call it.
5882 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
5883 (GBB_DYNAMIC_SCHEDULE): Removed.
5885 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5886 Tobias Grosser <grosser@fim.uni-passau.de>
5888 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
5889 (print_graphite_bb): Same.
5890 (build_cloog_prog): Same.
5892 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5893 Tobias Grosser <grosser@fim.uni-passau.de>
5895 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
5897 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5898 Tobias Grosser <grosser@fim.uni-passau.de>
5900 * graphite.c (build_scop_context): Don't use CloogMatrix.
5901 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
5902 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
5904 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5905 Tobias Grosser <grosser@fim.uni-passau.de>
5907 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
5908 liveout_renames, add_params fields...
5909 (struct sese): ... here.
5910 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
5911 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
5913 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5914 Tobias Grosser <grosser@fim.uni-passau.de>
5916 * graphite.c (print_scop): Do not print the CLooG program.
5917 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
5918 build_cloog_prog, gloog): Don't use SCOP_PROG.
5919 (find_transform): Renamed scop_to_clast.
5920 (print_generated_program, debug_generated_program): New.
5921 (graphite_transform_loops): Adapt to new interface.
5922 * graphite.h (struct scop): Remove program field.
5923 (SCOP_PROG): Removed.
5924 (print_generated_program, debug_generated_program): Declared.
5926 2009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5928 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
5929 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
5930 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
5931 free_graphite_bb, build_scop_canonical_schedules,
5932 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
5933 schedules are now represented using a ppl_Linear_Expression_t.
5934 * graphite.h (struct graphite_bb): Same.
5935 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
5936 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
5938 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5940 * graphite.c: Free local memory.
5941 * graphite-ppl.c: Same.
5943 2009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5945 * graphite.c (const_column_index, get_first_matching_sign_row_index,
5946 get_lower_bound_row, get_upper_bound_row, copy_constraint,
5947 swap_constraint_variables, scale_constraint_variable): Removed.
5948 (graphite_trans_bb_strip_mine): Remove pong.
5949 * graphite-ppl.c: Include missing header files.
5950 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
5951 * graphite-ppl.h (ppl_strip_loop): Declared.
5952 * Makefile.in (graphite-ppl.o): Adjust dependences.
5954 2009-02-14 Sebastian Pop <sebastian.pop@amd.com>
5956 * graphite.c (build_loop_iteration_domains): Remove ping pong.
5957 (build_scop_iteration_domain): Same.
5959 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5961 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5963 (add_value_to_dim, scan_tree_for_params_right_scev,
5964 scan_tree_for_params_int): New.
5965 * graphite-ppl.c (oppose_constraint): New.
5966 (insert_constraint_into_matrix): Implement missing cases.
5967 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5969 2009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5971 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
5972 use ppl_move_dimension.
5974 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5976 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
5979 * graphite-ppl.c: Same.
5980 * graphite-ppl.h: Same.
5982 2009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5984 Revert last 3 commits.
5986 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5988 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5990 (add_value_to_dim, scan_tree_for_params_right_scev,
5991 scan_tree_for_params_int): New.
5992 * graphite-ppl.c (oppose_constraint): New.
5993 (insert_constraint_into_matrix): Implement missing cases.
5994 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5996 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5998 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
6000 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6001 Tobias Grosser <grosser@fim.uni-passau.de>
6003 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
6004 use ppl_move_dimension.
6005 * graphite-ppl.c (ppl_move_dimension): New.
6006 * graphite-ppl.h (ppl_move_dimension): Declared.
6008 2009-02-10 Sebastian Pop <sebastian.pop@amd.com>
6010 * graphite.c: Do not include cloog/cloog.h.
6011 (print_graphite_bb): Remove ping pong, call PPL print function.
6013 2009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
6015 * Makefile.in (OBJS-common): Add graphite-ppl.o.
6016 (graphite.o): Add dependence on graphite-ppl.h.
6017 (graphite-ppl.o): New.
6018 (graphite-data-ref.c): Ping pong between PPL data structures
6020 * graphite-ppl.c: New.
6021 * graphite-ppl.h: New.
6022 * graphite.c: Include graphite-ppl.h.
6023 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
6024 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
6025 Ping pong between PPL data structures and matrices.
6026 (new_graphite_bb): Create a PPL constraint system.
6027 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
6028 (build_loop_iteration_domains): Use PPL functions.
6029 * graphite.h: Include graphite-ppl.h. Fix comments.
6030 (graphite_bb): Use a ppl_Constraint_System_t instead of
6031 CloogMatrix for representing the domain.
6032 (scop): Remove static_schedule.
6033 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
6035 2009-02-06 Sebastian Pop <sebastian.pop@amd.com>
6037 * graphite.c: Fix some comments.
6039 2009-02-05 Sebastian Pop <sebastian.pop@amd.com>
6042 * graphite.c (if_region_set_false_region): After moving a region
6043 in the false branch of a condition, remove the empty dummy
6045 (gloog): Remove wrong fix for PR38953.
6047 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
6049 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
6050 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
6051 register_bb_in_sese, new_sese, free_sese): Moved.
6052 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
6053 outermost_loop_in_scop, build_scop_iteration_domain,
6054 expand_scalar_variables_ssa_name, get_vdef_before_scop,
6055 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
6056 Use loop_in_sese_p instead of loop_in_scop_p.
6057 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
6058 (free_scop): Do not free SCOP_BBS_B.
6059 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
6060 ref_nb_loops): Moved here...
6061 * graphite.h (ref_nb_loops): ... from here.
6062 (struct scop): Remove bbs_b bitmap.
6063 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
6064 * gcc.dg/graphite/scop-19.c: New
6066 2009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
6068 * graphite.c (scopdet_basic_block_info): Fix bug in scop
6071 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
6073 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
6074 eq_loop_to_cloog_loop): Remove.
6075 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
6076 * graphite.h (struct scop): Remove loop2cloog_loop.
6077 (loop_domain_dim, loop_iteration_vector_dim): Remove.
6079 2009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
6081 * opts.c (decode_options): Only add graphite options to O2
6082 if we compile with graphite enabled.
6084 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
6086 * Merge from mainline (r143163:143684).
6088 2009-01-26 Sebastian Pop <sebastian.pop@amd.com>
6090 * graphite.c (debug_value): Removed.
6091 * graphite.h (debug_value): Removed.
6093 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6095 * passes.c (init_optimization_passes): Do not call pass_copy_prop
6096 after graphite: pass_copy_prop does not maintain a proper loop closed
6097 SSA form. pass_copy_prop should be fixed.
6099 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6101 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
6103 2009-01-23 Sebastian Pop <sebastian.pop@amd.com>
6105 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
6106 (gloog): Split the exit of the scop when the scop exit is a loop exit.
6107 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
6110 2009-01-20 Sebastian Pop <sebastian.pop@amd.com>
6112 * graphite.c (gloog): Return true when code gen succeeded.
6113 (graphite_transform_loops): Do not call cleanup_tree_cfg if
6114 the code of the function did not changed. After cleanup_tree_cfg
6115 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
6118 2009-01-19 Sebastian Pop <sebastian.pop@amd.com>
6120 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
6121 gimple_call_lhs is NULL.
6123 2009-01-16 Sebastian Pop <sebastian.pop@amd.com>
6124 Tobias Grosser <tobi.grosser@amd.com>
6126 * graphite.c (graphite_trans_scop_block): Do not block single
6129 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
6130 Tobias Grosser <tobi.grosser@amd.com>
6132 * graphite.c (build_scop_canonical_schedules): Start schedules at
6135 2009-01-15 Sebastian Pop <sebastian.pop@amd.com>
6136 Tobias Grosser <tobi.grosser@amd.com>
6138 * graphite.c (compare_prefix_loops): New.
6139 (build_scop_canonical_schedules): Rewritten.
6140 (graphite_transform_loops): Move build_scop_canonical_schedules
6141 after build_scop_iteration_domain.
6143 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6144 Tobias Grosser <tobi.grosser@amd.com>
6146 * graphite.c (add_conditions_to_domain): Add the loops to
6147 the dimension of the iteration domain. Do copy the domain
6148 only when it exists.
6149 (build_scop_conditions_1): Do not call add_conditions_to_domain.
6150 (add_conditions_to_constraints): New.
6151 (can_generate_code_stmt, can_generate_code): Removed.
6152 (gloog): Do not call can_generate_code.
6153 (graphite_transform_loops): Call add_conditions_to_constraints
6154 after building the iteration domain.
6156 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6157 Tobias Grosser <tobi.grosser@amd.com>
6158 Jan Sjodin <jan.sjodin@amd.com>
6160 * graphite.c (scan_tree_for_params): On substractions negate
6161 all the coefficients of the term.
6162 (clast_to_gcc_expression_red): New. Handle reduction expressions
6163 of more than two operands.
6164 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
6165 (get_vdef_before_scop): Handle also the case of default definitions.
6167 2009-01-14 Sebastian Pop <sebastian.pop@amd.com>
6170 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
6171 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
6172 (gloog): Do not call cleanup_tree_cfg.
6173 (graphite_transform_loops): Call cleanup_tree_cfg after all
6174 scops have been code generated.
6176 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
6178 * passes.c (init_optimization_passes): Schedule after
6179 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
6181 2009-01-13 Sebastian Pop <sebastian.pop@amd.com>
6183 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
6185 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
6186 Set the type of an expression to the type of its assign statement.
6187 (expand_scalar_variables_expr): Do not pass loop_p.
6188 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
6189 (copy_bb_and_scalar_dependences): Do not pass loop_p.
6190 (translate_clast): Update call to copy_bb_and_scalar_dependences.
6192 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
6194 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
6195 an expression to the gimple_expr_type of its assign statement.
6196 (expand_scalar_variables_expr): Stop recursion on tcc_constant
6199 2009-01-11 Sebastian Pop <sebastian.pop@amd.com>
6201 PR tree-optimization/38786
6202 * gcc.dg/graphite/pr38786.c: New.
6203 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
6204 the SSA_NAME case of expand_scalar_variables_expr.
6205 (expand_scalar_variables_expr): Also gather the scalar computation
6206 used to index the memory access.
6207 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
6208 the gimple_stmt_iterator where it inserts new code.
6210 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
6212 * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
6214 2009-01-10 Sebastian Pop <sebastian.pop@amd.com>
6216 * opts.c (decode_options): Enable flag_graphite_identity and
6217 flag_loop_block in -O2 and above.
6219 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
6221 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
6222 Fix merge problem: replace with the file from trunk.
6224 2009-01-08 Sebastian Pop <sebastian.pop@amd.com>
6226 * Merge from mainline (r141727:143163).
6228 2009-01-07 Sebastian Pop <sebastian.pop@amd.com>
6229 Jan Sjodin <jan.sjodin@amd.com>
6231 PR tree-optimization/38559
6232 * gcc.dg/graphite/pr38559.c: New.
6234 * graphite.c (debug_value, copy_constraint,
6235 swap_constraint_variables, scale_constraint_variable, ): New.
6236 (get_lower_bound, get_upper_bound): Removed.
6237 (graphite_trans_bb_strip_mine): Clean up this code that works
6238 only for constant number of iterations. Fully copy upper and
6239 lower bound constraints, not only the constant part of them.
6240 * graphite.h (debug_value): Declared.
6242 2009-01-06 Jan Sjodin <jan.sjodin@amd.com>
6244 PR tree-optimization/38492
6245 PR tree-optimization/38498
6246 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
6247 * tree-chrec.h (scev_is_linear_expression): Declared.
6248 * graphite.c (graphite_cannot_represent_loop_niter): New.
6249 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
6250 (graphite_loop_normal_form): Use gcc_assert.
6251 (scan_tree_for_params): Use CASE_CONVERT.
6252 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
6253 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
6254 Use gcc_assert. Discard scops that contain unhandled cases.
6255 (build_scop_conditions): Return a boolean status for unhandled cases.
6256 (strip_mine_profitable_p): Print the loop number, not its depth.
6257 (is_interchange_valid): Pass the depth of the loop nest, don't
6258 recompute it wrongly.
6259 (graphite_trans_bb_block): Same.
6260 (graphite_trans_bb_block): Print tentative of loop blocking.
6261 (graphite_trans_scop_block): Do not print that the loop has been
6263 (graphite_transform_loops): Do not handle scops that contain condition
6266 * gcc.dg/graphite/pr38500.c: Fixed warning as committed
6268 * gcc.dg/graphite/block-0.c: Update test.
6269 * gcc.dg/graphite/block-1.c: Same.
6270 * gcc.dg/graphite/block-2.c: Remove xfail and test for
6272 * gcc.dg/graphite/block-4.c: Remove test for strip mine.
6273 * gcc.dg/graphite/block-3.c: New.
6274 * gcc.dg/graphite/pr38498.c: New.
6276 2008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
6278 PR tree-optimization/38510
6279 * gcc.dg/graphite/pr38510.c: New.
6280 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
6281 (translate_clast): Call recompute_all_dominators before
6283 (gloog): Call recompute_all_dominators before graphite_verify.
6285 2008-12-12 Sebastian Pop <sebastian.pop@amd.com>
6287 PR tree-optimization/38492
6288 * graphite.c (rename_map_elt, debug_rename_elt,
6289 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
6290 rename_map_elt_info, eq_rename_map_elts,
6291 get_new_name_from_old_name, bb_in_sese_p): Moved around.
6292 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
6293 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
6294 (sese_build_livein_liveouts): New.
6295 (new_sese, free_sese): New.
6296 (new_scop): Call new_sese.
6297 (free_scop): Call free_sese.
6298 (rename_variables_from_edge, rename_phis_end_scop): Removed.
6299 (register_old_new_names): Renamed register_old_and_new_names.
6300 (register_scop_liveout_renames, add_loop_exit_phis,
6301 insert_loop_close_phis, struct igp,
6302 default_liveout_before_guard, add_guard_exit_phis,
6303 insert_guard_phis, copy_renames): New.
6304 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
6305 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
6306 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
6307 (scop_adjust_phis_for_liveouts): New.
6308 (gloog): Call scop_adjust_phis_for_liveouts.
6310 * graphite.h (struct sese): Documented. Added fields liveout,
6312 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
6313 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
6314 (struct scop): Added field liveout_renames.
6315 (SCOP_LIVEOUT_RENAMES): New.
6317 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6319 PR tree-optimization/38409
6320 * gcc.dg/graphite/pr38409.c: New.
6321 * graphite.c (nb_reductions_in_loop): Use simple_iv.
6323 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6325 * graphite.c (gcc_type_for_cloog_iv): By default return
6327 (graphite_create_new_loop): Don't fold_convert the already
6328 fold_convert-ed expression.
6330 2008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
6332 PR tree-optimization/38446
6333 * gcc.dg/graphite/pr38446.c: New.
6334 * graphite.c (register_bb_in_sese): New.
6335 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
6336 looking at the bbs in the region.
6337 * graphite.h (sese): Add region_basic_blocks pointer set to
6338 structure and initialize at the time of defining new scop.
6340 2008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
6342 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
6343 (find_params_in_bb): Do not free data refs.
6344 (free_graphite_bb): Add FIXME on disabled free_data_refs.
6346 2008-12-11 Sebastian Pop <sebastian.pop@amd.com>
6348 * gcc.dg/graphite/scop-16.c: Test only scop specific info.
6349 * gcc.dg/graphite/scop-17.c: Same.
6350 * gcc.dg/graphite/block-5.c: New.
6351 * gcc.dg/graphite/block-6.c: New.
6352 * gcc.dg/graphite/pr37485.c: Clean dump file after.
6353 * gcc.dg/graphite/pr37684.c: Same.
6354 * gcc.dg/graphite/block-2.c: Same.
6356 * graphite.c (struct ivtype_map_elt): New.
6357 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
6358 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
6359 gcc_type_for_cloog_iv): New.
6360 (loop_iv_stack_patch_for_consts): Use the type of the induction
6361 variable from the original loop, except for the automatically
6362 generated loops, i.e., in the case of a strip-mined loop, in
6363 which case there is no original loop: in that case just use
6365 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
6366 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
6367 (clast_name_to_gcc): Accept params to be NULL.
6368 (clast_to_gcc_expression): Take an extra parameter for the type.
6369 Convert to that type all the expressions built by this function.
6370 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
6371 (graphite_translate_clast_equation): Compute the type of the
6372 clast_equation before translating its LHS and RHS.
6373 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
6374 (graphite_create_new_loop): Compute the type of the induction
6375 variable before translating the lower and upper bounds and before
6376 creating the induction variable.
6377 (rename_variables_from_edge, rename_phis_end_scop): New.
6378 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
6379 (sese_add_exit_phis_edge): Do not use integer_zero_node.
6380 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
6381 compute_cloog_iv_types): New.
6382 (gloog): Call compute_cloog_iv_types before starting the
6383 translation of the clast.
6385 * graphite.h (struct graphite_bb): New field cloog_iv_types.
6386 (GBB_CLOOG_IV_TYPES): New.
6387 (debug_ivtype_map): Declared.
6388 (oldiv_for_loop): New.
6390 2008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
6393 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
6394 (param_index): Assert if parameter is not know after parameter
6396 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
6397 (find_scop_parameters): Mark, that we have finished parameter
6399 (graphite_transform_loops): Move condition detection before parameter
6401 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
6402 * gfortran.dg/graphite/pr38459.f90: New.
6404 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
6406 * graphite.c (graphite_transform_loops): Always call find_transform ()
6407 in ENABLE_CHECKING. So we test these code paths, even if we do not
6410 2008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
6412 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
6413 (print_scop): Ditto.
6415 2008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
6418 Fix gfortran.dg/graphite/id-3.f90.
6419 * graphite.c (scopdet_basic_block_info): Fix bug that found some
6420 regions more than once.
6422 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6424 Fix gfortran.dg/graphite/id-4.f90.
6425 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
6428 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6430 Fix gfortran.dg/graphite/id-1.f90.
6431 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
6432 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
6433 (max_precision_type): New.
6434 (value_clast): Removed.
6435 (clast_to_gcc_expression): Be more careful to types of expressions.
6436 Use max_precision_type and update use of gmp_cst_to_tree.
6437 (graphite_translate_clast_equation): Use max_precision_type.
6438 (graphite_create_guard_cond_expr): Do not use integer_type_node,
6439 use the type of the condition.
6440 (graphite_create_new_loop): Do not use integer_type_node, use the
6441 max_precision_type of lb and ub.
6443 2008-12-03 Sebastian Pop <sebastian.pop@amd.com>
6445 * graphite.c (build_scops_1): Initialize open_scop.exit
6448 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
6450 * gcc.dg/graphite/pr38084.c: New.
6451 * gfortran.dg/graphite/id-1.f90: New.
6452 * gfortran.dg/graphite/id-2.f90: New.
6453 * gfortran.dg/graphite/id-3.f90: New.
6454 * gfortran.dg/graphite/id-4.f90: New.
6455 * gfortran.dg/graphite/pr37857.f90: New.
6457 2008-12-02 Sebastian Pop <sebastian.pop@amd.com>
6458 Jan Sjodin <jan.sjodin@amd.com>
6459 Harsha Jagasia <harsha.jagasia@amd.com>
6471 * gcc.dg/graphite/pr38073.c: New.
6472 * gcc.dg/graphite/pr37928.c: New.
6473 * gcc.dg/graphite/pr37883.c: New.
6474 * gcc.dg/graphite/pr38125.c: New.
6475 * gfortran.dg/graphite/pr38083.f90: New.
6476 * gfortran.dg/graphite/pr37852.f90: New.
6477 * gfortran.dg/graphite/pr37980.f90: New.
6479 * gcc.dg/graphite/scop-18.c: Remove reduction, test for
6480 the number of detected scops. Copy exact same test for loop
6482 * gcc.dg/graphite/block-1.c: Fix the number of expected
6483 loops to be blocked as reductions are not handled.
6484 * gcc.dg/graphite/block-4.c: ...here. New.
6486 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
6487 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
6489 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
6490 * Makefile.in (graphite.o): Depend on value-prof.h.
6491 (graphite.o-warn): Removed -Wno-error.
6492 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
6493 to be a NULL pointer. Call update_stmt. Return the newly created
6494 cannonical induction variable.
6496 * graphite.h (debug_rename_map): Declared. Fix some comments.
6498 * graphite.c: Reimplement the code generation from graphite to gimple.
6499 Include value-prof.h.
6500 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
6501 (get_old_iv_from_ssa_name): Removed.
6502 (graphite_stmt_p): New.
6503 (new_graphite_bb): Test for useful statements before building a
6504 graphite statement for the basic block.
6505 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
6506 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
6508 (recompute_all_dominators, graphite_verify,
6509 nb_reductions_in_loop, graphite_loop_normal_form): New.
6510 (scop_record_loop): Call graphite_loop_normal_form.
6511 (build_scop_loop_nests): Iterate over all the blocks of the
6512 function instead of relying on the incomplete information from
6513 SCOP_BBS. Return the success of the operation.
6514 (find_params_in_bb): Use the data from GBB_DATA_REFS.
6515 (add_bb_domains): Removed.
6516 (build_loop_iteration_domains): Don't call add_bb_domains.
6517 Add the iteration domain only to the basic blocks that have been
6518 translated to graphite.
6519 (build_scop_conditions_1): Add constraints only if the basic
6520 block have been translated to graphite.
6521 (build_scop_data_accesses): Completely disabled until data
6522 dependence is correctly implemented.
6523 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
6524 (remove_all_edges_1, remove_all_edges): Removed.
6525 (get_new_name_from_old_name): New.
6526 (graphite_rename_variables_in_stmt): Renamed
6527 rename_variables_in_stmt. Call get_new_name_from_old_name.
6528 Use replace_exp and update_stmt.
6529 (is_old_iv): Renamed is_iv.
6530 (expand_scalar_variables_stmt): Extra parameter for renaming map.
6531 Use replace_exp and update_stmt.
6532 (expand_scalar_variables_expr): Same. Use the map to get the
6533 new names for the renaming of induction variables and for the
6534 renaming of variables after a basic block has been copied.
6535 (expand_scalar_variables): Same.
6536 (graphite_rename_variables): Renamed rename_variables.
6537 (move_phi_nodes): Removed.
6538 (get_false_edge_from_guard_bb): New.
6539 (build_iv_mapping): Do not insert the induction variable of a
6540 loop in the renaming iv map if the basic block does not belong
6542 (register_old_new_names, graphite_copy_stmts_from_block,
6543 copy_bb_and_scalar_dependences): New.
6544 (translate_clast): Heavily reimplemented: copy basic blocks,
6545 do not move them. Finally, in call cleanup_tree_cfg in gloog.
6546 At each translation step call graphite_verify ensuring the
6547 consistency of the SSA, loops and dominators information.
6548 (collect_virtual_phis, find_vdef_for_var_in_bb,
6549 find_vdef_for_var_1, find_vdef_for_var,
6550 patch_phis_for_virtual_defs): Removed huge hack.
6551 (mark_old_loops, remove_dead_loops, skip_phi_defs,
6552 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
6553 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
6554 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
6555 if_region_get_condition_block, if_region_set_false_region,
6556 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
6557 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
6558 sese_add_exit_phis_edge, sese_add_exit_phis_var,
6559 rewrite_into_sese_closed_ssa): New.
6560 (gloog): Remove dead code. Early return if code cannot be
6561 generated. Call cleanup_tree_cfg once the scop has been code
6563 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
6564 block loops with less than two loops.
6565 (graphite_apply_transformations): Remove the call to
6566 scop_remove_ignoreable_gbbs.
6567 (limit_scops): When build_scop_loop_nests fails, continue on
6568 the next scop. Fix open_scop.entry.
6569 (graphite_transform_loops): Call recompute_all_dominators: force the
6570 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
6571 Call initialize_original_copy_tables and free_original_copy_tables
6572 to be able to copy basic blocks during code generation.
6573 When build_scop_loop_nests fails, continue on next scop.
6574 (value_clast): New union.
6575 (clast_to_gcc_expression): Fix type cast warning.
6577 2008-11-09 Sebastian Pop <sebastian.pop@amd.com>
6579 * Merge from mainline (r140838:141727).
6581 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6585 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
6587 2008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6591 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
6592 exits and conditions.
6593 * gcc.dg/graphite/pr37943.c: New.
6595 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6598 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
6600 2008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6602 * doc/invoke.texi: Fix spaces.
6604 2008-10-22 Sebastian Pop <sebastian.pop@amd.com>
6606 PR tree-optimization/37891
6607 Reverted last commit.
6608 * graphite.c (create_single_entry_edge): Set
6609 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6611 2008-10-21 Sebastian Pop <sebastian.pop@amd.com>
6612 Mitul Thakkar <mitul.thakkar@amd.com>
6614 * graphite.c (create_single_entry_edge): Set
6615 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6617 2008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
6619 * doc/invoke.texi: Add -fgraphite-identity.
6620 * graphite.c (graphite_apply_transformations): Check for
6621 -fgraphite-identity.
6622 * toplev.c (process_options): Add flag_graphite_identity.
6623 * tree-ssa-loop.c: Add flag_graphite_identity.
6625 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6627 Undo changes from 2008-10-02:
6628 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6629 operand type when copying the operand to a variable of different type.
6630 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6631 with the IV name after increment.
6633 2008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6634 Harsha Jagasia <harsha.jagasia@amd.com>
6636 PR tree-optimization/37828
6637 * gcc.dg/graphite/pr37828.c: New.
6638 * graphite.c (graphite_trans_loop_block): Do not loop block
6639 single nested loops.
6641 2008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
6642 Sebastian Pop <sebastian.pop@amd.com>
6644 * graphite.c (struct rename_map_elt, new_rename_map_elt,
6645 rename_map_elt_info, eq_rename_map_elts): New.
6646 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
6647 (expand_scalar_variables_expr): Change parameters.
6648 (expand_scalar_variables_stmt): Same.
6649 (expand_scalar_variables): Same.
6650 (graphite_rename_ivs): Rename graphite_rename_variables.
6651 (build_iv_mapping): New.
6652 (translate_clast): Call build_iv_mapping.
6653 * graphite.h (gbb_p): New name.
6655 2008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
6657 PR tree-optimization/37684
6658 * gcc.dg/graphite/pr37684.c: New.
6659 * graphite.c (exclude_component_ref): New.
6660 (is_simple_operand): Call exclude_component_ref.
6662 2008-10-02 Jan Sjodin <jan.sjodin@amd.com>
6663 Harsha Jagasia <harsha.jagasia@amd.com>
6665 PR tree-optimization/37485
6666 * gcc.dg/graphite/block-2.c: New
6667 * graphite.c (gmp_cst_to_tree): Moved.
6668 (iv_stack_entry_is_constant): New.
6669 (iv_stack_entry_is_iv): New.
6670 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
6671 (loop_iv_stack_insert_constant): New.
6672 (loop_iv_stack_pop): Use new datatpype.
6673 (loop_iv_stack_get_iv): Same.
6674 (loop_iv_stack_get_iv_from_name): Same.
6675 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
6676 (loop_iv_stack_patch_for_consts): New.
6677 (loop_iv_stack_remove_constants): New.
6678 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
6679 (translate_clast): Call loop_iv_stack_patch_for_consts and
6680 loop_iv_stack_remove_constants.
6681 (gloog): Use new datatype. Redirect construction edge to end
6682 block to avoid accidental deletion.
6683 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
6685 (union iv_stack_entry_data): New. Data in iv stack entry.
6686 (struct iv_stack_entry): New. Datatype for iv stack entries.
6688 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6690 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6691 operand type when copying the operand to a variable of different type.
6693 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6695 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6696 with the IV name after increment.
6698 2008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6700 * Merge from mainline (r140164:140838).
6702 2008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6704 * graphite-data-ref.c: New.
6705 * graphite.c (print_scop): Also dump the dependence graph.
6706 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
6707 (new_scop): Initialize SCOP_DEP_GRAPH.
6708 (build_scop_dynamic_schedules): New.
6709 (build_access_matrix_with_af): Fixed column numbering.
6710 (graphite_transform_loops): Call build_scop_dynamic_schedules.
6711 * graphite.h: Add ifndef/define guards against multiple inclusion.
6712 (struct scop): Add dep_graph field.
6713 (SCOP_DEP_GRAPH): Defined.
6714 (ref_nb_loops): Fixed and moved to other position.
6715 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
6716 (nb_loops_around_loop_in_scop): New.
6717 (graphite_dump_dependence_graph): Declared.
6718 (graphite_build_rdg_all_levels): Declared.
6719 (graphite_test_dependence): Declared.
6720 * Makefile.in (graphite-data-ref.o): New target.
6722 2008-09-09 Sebastian Pop <sebastian.pop@amd.com>
6724 * Merge from mainline (139870:140164).
6726 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6728 * Merge from mainline (138275:139870).
6729 * gcc.dg/graphite/scop-matmult.c: XFailed as one of
6730 the commits from trunk broke the niter detection.
6732 2008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6734 * graphite.c: Add more documentation. Fix formatting.
6735 (debug_loop_vec, debug_oldivs, loop_iv_stack,
6736 loop_iv_stack_debug): Moved...
6737 (schedule_to_scattering): Move before use.
6738 (dot_all_scops): Include in "#if 0" the code for system
6741 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
6742 loop_iv_stack_debug): ...here.
6744 2008-08-29 Jan Sjodin <jan.sjodin@amd.com>
6746 * tree-phinodes.c (make_phi_node): Extern.
6747 (add_phi_node_to_bb): New.
6748 (create_phi_node): Call add_phi_node_to_bb.
6749 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
6750 (remove_statement): Handle case where stored phi was updated
6751 and is no longer the same.
6752 * graphite.c (is_parameter): New.
6754 (expand_scalar_variables_expr): New.
6755 (expand_scalar_variables_stmt): New.
6756 (expand_scalar_variables): New.
6757 (move_phi_nodes): Create new phi instead of moving old one.
6758 (translate_clast): Call expand_scalar_variables.
6759 (find_vdef_for_var_in_bb): Also scan regular definitions.
6760 (skip_phi_defs): New.
6761 (collect_scop_exit_phi_args): New.
6762 (patch_scop_exit_phi_args): New.
6763 (gloog): Patch phis after scop.
6764 * tree-flow.h: (add_phi_node_to_bb): Declared.
6765 (make_phi_node): Declared.
6767 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6769 * graphite.c (end_scop): Split the entry of the scop when it
6770 is the header of the loop in which the scop is ending.
6771 (build_scops_1, limit_scops): Update uses of end_scop.
6773 2008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6775 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
6776 SCOP_ENTRY or SCOP_EXIT.
6778 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6780 * graphite.c (get_construction_edge): Removed.
6781 (gloog): Construction edge is the scop entry edge.
6783 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6785 * graphite.c (can_generate_for_scop): Removed.
6786 (gloog): Do not call it.
6788 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6790 * graphite.c (new_scop): Entry of a scop is an edge.
6791 Initialize SESE region.
6792 (free_scop): Free SESE region.
6793 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
6794 (split_difficult_bb): New, split from end_scop.
6795 (end_scop): Exit of a scop is an edge.
6796 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
6797 not automatically updated and thus is always wrong.
6798 * graphite.h (struct sese): New.
6801 (struct scop): New field for a SESE region. Remove entry, exit.
6802 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
6803 semantics as before. Moved comment around.
6805 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6806 Sebastian Pop <sebastian.pop@amd.com>
6808 * graphite.c (graphite_transform_loops): Always enable gloog
6809 and find_transform when ENABLE_CHECKING.
6811 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6813 * graphite.c (graphite_transform_loops): Move pretty printer
6814 of SCOPs before doing any transform. Remove call to print_scops
6815 and dot_all_scops_1.
6817 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6819 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
6820 (print_graphite_bb): Same.
6822 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6824 * graphite.c (dot_all_scops_1): Cleanup.
6825 (move_scops): Fix comment.
6827 2008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6829 * graphite.c (build_scop_bbs): Revert commit 139355:
6831 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6832 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6834 * graphite.c (build_scop_bbs): Factor up code.
6836 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6838 * graphite.c (gloog): Update dominator info.
6840 2008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6842 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
6844 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6846 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
6848 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
6849 (translate_clast): Correct formatting.
6850 * graphite.h (struct num_map): Removed.
6851 (struct graphite_bb): Remove num_map field.
6852 (GBB_INDEX_TO_NUM_MAP): Removed.
6854 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6856 * graphite.c (build_access_matrix_with_af): Fix comments.
6857 (build_scop_data_accesses): Same.
6859 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6861 * graphite.c (build_scop_data_accesses): Don't construct
6862 access matrices. Add a FIXME and an assert condition that
6863 should pass when the access matrices will be needed.
6865 2008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6867 * tree-data-ref.c (stmt_simple_memref_p): Don't call
6869 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
6870 Moved close by free_graphite_bb.
6871 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
6872 (new_scop): Move close by free_scop.
6873 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
6875 2008-08-22 Jan Sjodin <jan.sjodin@amd.com>
6877 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
6878 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
6879 instead of recursive call.
6880 (graphite_translate_clast_equation): New.
6881 (graphite_create_guard_cond_expr): New.
6882 (graphite_create_new_guard): New.
6883 (get_stack_index_from_iv): Removed.
6884 (graphite_rename_ivs_stmt): Use gbb_loop_index.
6885 (get_true_edge_from_guard_bb): New.
6886 (translate_clast): Handle stmt_guard in clast.
6887 (get_construction_edge): Allow construction edge detection for
6888 a scope entry with multiple predecessors if one predecessor is
6889 the immediate dominator of scope entry.
6890 (can_generate_code_stmt): Enable code generation for clast_guard.
6891 (gloog): Use correct context loop. Removed check for post dominators.
6892 * cfgloop.h (create_empty_if_region_on_edge): Declared.
6894 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6896 * graphite.c (remove_dead_loops): Document better which
6899 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6901 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
6903 (graphite.o): Also depends on pointer-set.h.
6905 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6907 * graphite.c (scop_record_loop): Fix compile warning.
6909 2008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
6910 Sebastian Pop <sebastian.pop@amd.com>
6912 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
6914 2008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6916 * graphite.c (build_graphite_bb): Initialize bb->aux to
6917 point to the graphite_bb_p.
6918 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
6920 (add_bb_domains): Does not use the scop parameter.
6921 (graphite_transform_loops): Clean bb->aux at the end.
6923 2008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6924 Sebastian Pop <sebastian.pop@amd.com>
6926 * lib/target-supports.exp
6927 (check_effective_target_fgraphite): New.
6929 * gcc.dg/graphite/graphite.exp: Early exit when
6930 check_effective_target_fgraphite returns false.
6931 Set dg-do-what-default to compile.
6932 (scan-graphite-dump-times): Removed.
6933 * gfortran.dg/graphite/graphite.exp: Same.
6935 * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
6936 Use scan-tree-dump-times instead of scan-graphite-dump-times.
6937 * gcc.dg/graphite/scop-1.c: Same.
6938 * gcc.dg/graphite/scop-2.c: Same.
6939 * gcc.dg/graphite/scop-3.c: Same.
6940 * gcc.dg/graphite/scop-4.c: Same.
6941 * gcc.dg/graphite/scop-5.c: Same.
6942 * gcc.dg/graphite/scop-6.c: Same.
6943 * gcc.dg/graphite/scop-7.c: Same.
6944 * gcc.dg/graphite/scop-8.c: Same.
6945 * gcc.dg/graphite/scop-9.c: Same.
6946 * gcc.dg/graphite/scop-10.c: Same.
6947 * gcc.dg/graphite/scop-11.c: Same.
6948 * gcc.dg/graphite/scop-12.c: Same.
6949 * gcc.dg/graphite/scop-13.c: Same.
6950 * gcc.dg/graphite/scop-matmult.c: Same.
6951 * gcc.dg/graphite/scop-14.c: Same.
6952 * gcc.dg/graphite/scop-15.c: Same.
6953 * gcc.dg/graphite/block-0.c: Same.
6954 * gcc.dg/graphite/scop-16.c: Same.
6955 * gcc.dg/graphite/block-1.c: Same.
6956 * gcc.dg/graphite/scop-17.c: Same.
6957 * gcc.dg/graphite/scop-18.c: Same.
6958 * gfortran.dg/graphite/block-1.f90: Same.
6959 * gfortran.dg/graphite/scop-1.f: Same.
6960 * gfortran.dg/graphite/block-2.f: Same.
6962 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6964 * graphite.c: Fix some XXX comments.
6965 (build_scop_dynamic_schedules): Removed.
6967 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6969 * graphite.h (scop_max_loop_depth): Moved...
6970 * graphite.c (scop_max_loop_depth): ...here.
6971 (remove_all_edges_1): New.
6972 (remove_all_edges): Factored code.
6973 (remove_cond_exprs): Check only the last statement for
6974 a GIMPLE_COND expression.
6976 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6978 * graphite.c (scan_tree_for_params): Early return when the
6979 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
6980 (find_scop_parameters): Factor out code.
6981 (graphite_trans_bb_strip_mine): Remove dead code.
6983 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6985 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
6986 graphite_trans_bb_move_loop): Factor asserts.
6987 (gloog): Perform sanity checks only for ENABLE_CHECKING.
6988 Do not call calculate_dominance_info and estimate_bb_frequencies.
6990 2008-08-20 Jan Sjodin <jan.sjodin@amd.com>
6992 * graphite.c (create_loops_mapping, free_loops_mapping,
6993 create_loops_mapping_num, debug_loop_mapping_1,
6994 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
6995 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
6996 graphite_loops_mapping_add_child_num,
6997 graphite_loops_mapping_insert_child,
6998 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
6999 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
7000 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
7001 create_num_from_index, get_num_from_index,
7002 swap_loop_mapped_depth): Removed.
7003 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
7004 (free_scop): Do not call free_loops_mapping.
7005 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
7006 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
7007 get_loop_mapped_depth.
7008 (graphite_trans_bb_move_loop): Do not update the loop mapping.
7009 (graphite_trans_bb_strip_mine): Same.
7010 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
7011 (struct scop): Remove field loops_mapping.
7013 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7014 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7016 * graphite.c (scop_record_loop): Factor out one level of the
7017 condition by early return.
7018 (build_scop_loop_nests): Format following FSF coding style.
7019 (build_scop_dynamic_schedules): Factor out code.
7020 (scopdet_bb_info): Reindent. Default case should not be reachable.
7022 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7023 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7025 * graphite.c (loop_affine_expr): Check for DECL_P or struct
7026 assignments that are not handled as simple operands for now.
7028 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7029 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7031 * graphite.c (build_scop_bbs): Factor up code.
7033 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7034 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7036 * graphite.c (stmt_simple_for_scop_p): Factor code out
7038 (enum gbb_type): New. Group all the GBB_* types under it.
7039 (is_loop_exit): Moved...
7040 (end_scop): Enable BB spliting.
7041 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
7042 * cfgloop.h (is_loop_exit): Declared.
7044 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7046 * doc/invoke.texi: Remove strides from examples containing
7047 DO loops when the strides are equal to 1.
7049 2008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
7050 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7052 * graphite.c (graphite_trans_scop_block): Or the result with
7053 the result from graphite_trans_loop_block.
7054 * gcc.dg/graphite/block-1.c: New.
7055 * gfortran.dg/graphite/block-1.f90: New.
7056 * gfortran.dg/graphite/block-2.f: New.
7058 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7060 * graphite.c (graphite_transform_loops): Call cloog_initialize
7063 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7065 * tree-data-ref.c) (stmt_simple_memref_p): New.
7066 * tree-data-ref.h (stmt_simple_memref_p): Declared.
7067 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
7068 (is_simple_operand): Call stmt_simple_memref_p.
7070 * gcc.dg/graphite/scop-matmult.c: Updated for not
7071 using pointer arithmetic, as this is optimized by PRE and
7072 makes the code too difficult to analyze.
7074 * gcc.dg/graphite/scop-18.c: Same.
7076 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
7078 * gdbinit.in (pgg): New.
7080 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7082 * graphite.c (graphite_trans_loop_block): Fix warning.
7084 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7086 * graphite.c (graphite_trans_loop_block): Fix my merge error.
7088 2008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
7090 * graphite.c (graphite_trans_bb_block): Remove check for
7091 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
7092 Check if loop blocking is profitable for every loop, before applying
7094 (graphite_apply_transformations): Call graphite_trans_bb_block only,
7095 if flag_loop_block is set.
7097 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7099 * graphite.c: Add some more documentation for the loop
7102 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7104 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
7105 * graphite.c: Format on less than 80 columns.
7108 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7110 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
7112 2008-08-14 Sebastian Pop <sebastian.pop@amd.com>
7114 * doc/invoke.texi (floop-block, floop-strip-mine,
7115 floop-interchange): Update documentation with examples.
7117 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
7119 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
7121 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
7123 2008-08-13 Sebastian Pop <sebastian.pop@amd.com>
7125 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
7126 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
7127 * tree-scalar-evolution.c: Revert useless changes.
7128 * tree-phinodes.c: Same.
7131 * tree-vectorizer.h: Same.
7132 * tree-flow.h: Same.
7134 * common.opt (fgraphite): Update documentation.
7136 2008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
7138 * doc/invoke.texi (-floop-block, -floop-strip-mine,
7139 -floop-interchange): Add more text for explaining what each of these
7141 * tree-into-ssa.c (gimple_vec): Moved to...
7142 * graphite.c: Include gimple.h.
7143 (gimple_vec): Moved to...
7144 (del_loop_to_cloog_loop): Removed.
7145 (loop_affine_expr): Do not call create_data_ref when the
7146 operand is a constant.
7147 (new_scop): Use free instead of del_loop_to_cloog_loop.
7148 * Makefile.in (graphite.o): Depend on GIMPLE_H.
7149 * gimple.h (gimple_vec): ... here.
7151 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7153 * graphite.c (scopdet_bb_info): Only allow loops with known number of
7155 (build_loop_iteration_domains): Fail, if latch executions unknown.
7157 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7159 * graphite.c (add_conditions_to_domain): New.
7160 (build_scop_conditions_1): Call add_conditions_to_domain.
7161 (set_cloog_options): Allow to disable optimizations.
7163 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7165 * graphite.c (find_params_in_bb): Look for parameters in conditions.
7166 Do not use walk_dominator_tree.
7167 (find_scop_parameters): Do not use walk_dominator_tree.
7169 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7171 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
7172 (idx_record_params): Adapt.
7173 * graphite.h (scop_gimple_loop_depth): New.
7175 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7177 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
7178 (scan_tree_for_params): Remove value_init.
7179 (build_scop_context): Remove value_init.
7180 (build_loop_iteration_domains): Remove value_init.
7181 (schedule_to_scattering): Remove value_init.
7182 (graphite_trans_bb_strip_mine): Remove value_init.
7184 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7186 * gcc/graphite.c (limit_scops): New.
7187 (graphite_transform_loops): Add limit SCoPs.
7188 * gcc.dg/graphite/scop-0.c: Update number of SCoPs.
7189 * gcc.dg/graphite/scop-1.c: Update number of SCoPs.
7190 * gcc.dg/graphite/scop-10.c: Update number of SCoPs.
7191 * gcc.dg/graphite/scop-11.c: Update number of SCoPs.
7192 * gcc.dg/graphite/scop-12.c: Update number of SCoPs.
7193 * gcc.dg/graphite/scop-13.c: Update number of SCoPs.
7194 * gcc.dg/graphite/scop-14.c: Update number of SCoPs.
7195 * gcc.dg/graphite/scop-15.c: Update number of SCoPs.
7196 * gcc.dg/graphite/scop-16.c: Update number of SCoPs.
7197 Change loop numbers.
7198 * gcc.dg/graphite/scop-17.c: Update number of SCoPs.
7199 Change loop numbers.
7200 * gcc.dg/graphite/scop-18.c: Update number of SCoPs.
7201 * gcc.dg/graphite/scop-2.c: Update number of SCoPs.
7202 * gcc.dg/graphite/scop-3.c: Update number of SCoPs.
7203 * gcc.dg/graphite/scop-4.c: Update number of SCoPs.
7204 * gcc.dg/graphite/scop-5.c: Update number of SCoPs.
7205 * gcc.dg/graphite/scop-6.c: Update number of SCoPs.
7206 * gcc.dg/graphite/scop-7.c: Update number of SCoPs.
7207 * gcc.dg/graphite/scop-8.c: Update number of SCoPs.
7208 * gcc.dg/graphite/scop-9.c: Update number of SCoPs.
7209 * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
7211 2008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
7213 * graphite.c (graphite_transform_loops): Call always find_transform.
7215 2008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
7217 * graphite.c (free_loops_mapping): New.
7218 (stmt_simple_for_scop_p): Fix typo.
7219 (stmt_simple_for_scop_p): Fix tuples functions, that
7221 (free_graphite_bb): Fix some memleaks.
7222 (free_scop): Fix some memleaks.
7223 (scopdet_bb_info): Do not forget some tmp SCoPs.
7224 (find_params_in_bb): Fix some memleaks.
7225 (clast_to_gcc_expression): Fix warning.
7227 2008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
7229 * gcc.dg/graphite/scop-16.c: Fix for 32bit.
7230 * gcc.dg/graphite/scop-17.c: Fix for 32bit.
7232 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
7234 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
7235 Move code ifdef-ed HAVE_cloog...
7236 * graphite.c: Include toplev.h.
7238 * Makefile.in (OBJS-common): Always build graphite.o.
7239 (BACKEND): Remove @GRAPHITE@.
7240 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
7241 (graphite.o): Depend on TOPLEV_H.
7243 2008-08-04 Sebastian Pop <sebastian.pop@amd.com>
7245 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
7246 Remove typo left from polylib to ppl conversion.
7247 * graphite.c (graphite_transforms): Use sorry instead of fatal.
7249 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
7251 * toplev.c (process_options): Move the graphite loop optimization
7253 * tree-ssa-loop.c (graphite_transforms): ... here.
7254 When not configured with CLooG, print to dump_file that
7255 Graphite transforms were not performed.
7256 * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
7258 * gcc.dg/graphite/*.c: Updated all testcases to use
7259 scan-graphite-dump-times.
7261 2008-08-03 Sebastian Pop <sebastian.pop@amd.com>
7263 * graphite.c (dot_scop, dot_all_scops): Do not call system.
7264 Do not open /tmp/scop.dot and /tmp/allscops.dot.
7266 2008-08-02 Sebastian Pop <sebastian.pop@amd.com>
7267 Jan Sjodin <jan.sjodin@amd.com>
7269 * configure: Regenerated.
7270 * omp-low.c (expand_omp_sections): Remove now unused code.
7271 * config.in (HAVE_polylib): Removed.
7272 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
7273 (PPLLIBS, PPLINC): Added.
7274 * graphite.c: Replace unsigned with int wherever possible.
7275 Don't access Cloog's data structures, but use accessor functions.
7276 Clast's stmt->type is now implemented as a vtable: change the
7277 switches of stmt->type into ifs.
7278 (polylib/polylibgmp.h): Don't include.
7279 (initialize_dependence_polyhedron,
7280 initialize_data_dependence_polyhedron, is_empty_polyhedron,
7281 statement_precedes_p, test_dependence, build_rdg_all_levels,
7282 dump_dependence_graph): Removed until this code is cleaned up
7284 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
7285 (POLYLIBINC): Renamed PPLINC.
7287 2008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
7288 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7289 Jan Sjodin <jan.sjodin@amd.com>
7291 Finish the merge and tuplification of graphite.
7293 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
7294 Jan Sjodin <jan.sjodin@amd.com>
7296 Partial merge from mainline (138072:138275).
7297 * graphite.c still has to be tuplified.
7299 2008-07-29 Jan Sjodin <jan.sjodin@amd.com>
7301 * graphite.c (graphite_loops_mapping_max_loop_num): New.
7302 (create_num_from_index): New.
7303 (get_num_from_index): Also pass in the graphite BB.
7304 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
7305 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
7306 (graphite_trans_bb_strip_mine): Call create_num_from_index.
7307 (is_interchange_valid): Return false when failing.
7308 * graphite.h (struct num_map): New.
7309 (struct graphite_bb): New field num_map.
7310 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
7312 2008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
7314 * graphite.c (dump_gbb_conditions): Print also conditions like
7315 "if (a)". Remove dublicated code and use print_generic_expr ().
7316 (stmt_simple_for_scop_p): Only allow conditions we can handle
7319 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
7321 * graphite.h (struct scop): Removed new_ivs field.
7322 (SCOP_NEWIVS): Deleted.
7323 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
7324 clast_to_gcc_expression, graphite_create_new_loop):
7325 Removed use of new_ivs.
7327 2008-07-25 Jan Sjodin <jan.sjodin@amd.com>
7329 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
7330 create_loops_mapping_num, debug_loop_mapping_1): New.
7331 (debug_loop_mapping): Call debug_loop_mapping_1.
7332 (get_loop_mapping_for_num,
7333 graphite_loops_mapping_add_child,
7334 graphite_loops_mapping_add_child_num,
7335 graphite_loops_mapping_insert_child,
7336 graphite_loops_mapping_parent,
7337 split_loop_mapped_depth_for_num,
7338 loop_mapped_depth_split_loop): New.
7339 (increment_loop_mapped_depths): Removed.
7340 (swap_loop_mapped_depth_for_num): Reimplemented.
7341 (new_scop): Call create_loops_mapping.
7342 (scop_record_loop): Call graphite_loops_mapping_insert_child.
7343 (translate_clast): Pass the old loop father in parameter, and pass
7344 it to get_old_iv_from_ssa_name.
7345 (remove_edges_around_useless_blocks, can_generate_code_stmt,
7346 can_generate_code, can_generate_for_scop): New.
7347 (graphite_trans_bb_block): Returns false when it fails to transform.
7348 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
7350 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7352 Reverted all the changes related to the streamization and
7354 These changes are now tracked in the streamization branch.
7356 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7357 Jan Sjodin <jan.sjodin@amd.com>
7359 * graphite.c (gbb_compare): Correctly constify.
7360 (gbb_can_be_ignored): Indent.
7361 (graphite_trans_scop_swap_1and2): Add legality check.
7364 2008-07-25 Sebastian Pop <sebastian.pop@amd.com>
7366 Remove fallouts from "Reverted the Condate changes".
7367 * tree.h: Remove unused decl.
7368 * gcc.dg/tree-checker: Same.
7369 * timevar.def: Remove counter.
7371 2008-07-24 Sebastian Pop <sebastian.pop@amd.com>
7373 * Merge from mainline (135673:138072).
7375 Reverted the MIRO changes (from 2008-04-05) that are now
7376 tracked in the miro branch.
7377 * tree-bounds.c: Removed.
7378 * tree-bounds.h: Removed.
7380 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
7381 are now tracked in the condate branch.
7382 * tree-check.c: Removed.
7383 * tree-match.c: Removed.
7384 * condate.y: Removed.
7386 2008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7388 * common.opt: New user flag -floop-block, -floop-strip-mine
7389 and -floop-interchange.
7390 * toplev.c (process_options): Enable -fgraphite pass if any one of the
7391 graphite loop optimization flags is turned on.
7392 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
7393 flag_loop_strip_mine and flag_loop_interchange checks before
7395 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
7396 -floop-strip-mine and -floop-interchange.
7397 * gcc.dg/graphite/block-0.c: Add -floop-block and remove
7399 * gcc.dg/graphite/scop-16.c: Ditto.
7400 * gcc.dg/graphite/scop-17.c: Ditto.
7401 * gcc.dg/graphite/scop-18.c: Ditto.
7403 2008-07-23 Jan Sjodin <jan.sjodin@amd.com>
7404 Sebastian Pop <sebastian.pop@amd.com>
7406 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
7407 (create_empty_loop_on_edge): More fixes.
7408 * tree-phinodes.c (resize_phi_node): Extern.
7409 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
7410 * cfghooks.c (update_dominator_information): New split from
7412 * tree-vectorizer.c (rename_variables_in_bb): Extern.
7413 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
7414 successor of the function entry block.
7416 * graphite.c: Include pointer-set.h.
7417 (debug_loop_mapping, increment_loop_mapped_depths,
7418 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
7419 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
7420 swap_loop_mapped_depth_for_num, get_num_from_index,
7421 swap_loop_mapped_depth, loop_iv_stack_debug,
7422 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
7423 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
7424 get_old_iv_from_ssa_name): New.
7425 (new_scop): Initialize SCOP_LOOPS_MAPPING.
7426 (free_scop): Free SCOP_LOOPS_MAPPING.
7427 (scop_record_loop): Record old ivs.
7428 (create_var_name): Removed.
7429 (initialize_cloog_names): Allocate double space in case strip mine
7430 applies to all loops once.
7431 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
7432 (clast_to_gcc_expression): Same. Implement more clast to gimple
7434 (graphite_create_new_loop): Pass in ivstack.
7435 (remove_all_edges): Pass in the construction_edge.
7436 (graphite_remove_iv): Removed.
7437 (graphite_rename_ivs, graphite_rename_ivs_stmt,
7438 remove_cond_exprs): Rewritten.
7439 (move_phi_nodes): New.
7440 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
7441 (translate_clast): Pass in ivstack. Rewrite some cases.
7442 (set_cloog_options, debug_clast_stmt): New.
7443 (find_transform): Use set_cloog_options.
7444 (outermost_loop_layer): Removed.
7445 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
7446 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
7447 mark_old_loops, remove_dead_loops): New.
7449 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
7450 (const_column_index, get_first_matching_sign_row_index,
7451 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
7452 get_upper_bound): New.
7453 (graphite_trans_bb_strip_mine): Also update the iv map.
7455 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
7456 (struct name_tree): Add a loop field.
7457 (struct scop): Add a graphite_loops_mapping field.
7458 (SCOP_LOOPS_MAPPING): New.
7459 (debug_clast_stmt): Declare.
7460 * lambda.h (find_induction_var_from_exit_cond): Declare.
7461 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
7462 * cfgloop.h (update_dominators_in_loop): Removed declaration.
7463 (create_empty_loop_on_edge): Updated.
7464 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
7465 rename_variables_in_bb): Declare.
7466 * tree-cfg.c (remove_bb): Extern.
7468 * gcc.dg/graphite/block-0.c: New.
7470 2008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
7471 Sebastian Pop <sebastian.pop@amd.com>
7473 * graphite.c (strip_mine_profitable_p): New.
7474 (graphite_trans_bb_block): Disable strip mining if not profitable.
7476 * gcc.dg/graphite/scop-18.c: New.
7477 * gcc.dg/graphite/scop-17.c: Fixed.
7478 * gcc.dg/graphite/scop-16.c: Fixed.
7480 2008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
7481 Jan Sjodin <jan.sjodin@amd.com>
7482 Sebastian Pop <sebastian.pop@amd.com>
7484 * graphite.c (is_interchange_valid): New.
7485 (graphite_trans_bb_block): Check loop nest of basic block for legality
7488 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
7489 outer_most_loop, gbb_outer_most_loop_index): New.
7491 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
7492 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
7493 * gcc.dg/graphite/scop-16.c: New.
7494 * gcc.dg/graphite/scop-17.c: New.
7496 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7498 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
7499 (graphite_trans_scop_block): Ignore SCoPs without bbs.
7501 2008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
7503 * graphite.c (new_scop): Initialize SCOP_EXIT.
7504 (scopdet_info): Add.
7505 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
7506 (build_scops_1): Cleanup, bugfixes.
7507 (build_scops): Cleanup.
7509 * gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
7510 * gcc.dg/graphite/scop-15.c: Add SCoP numbers.
7512 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7514 * gfortran.dg/graphite/scop-1.f: Update to reduced test case.
7516 * gfortran.dg/graphite/graphite.exp: Use
7517 DEFAULT_GRAPHITE_FLAGS.
7519 * gcc.dg/graphite/scop-15.c: Update to reduced test case.
7521 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7523 * graphite.c (scan_tree_for_params): Do not assert any more if
7524 MULT_EXPR parameter is negative.
7526 * gfortran.dg/graphite/scop-1.f: New.
7528 * gfortran.dg/graphite/graphite.exp: New.
7530 * gcc.dg/graphite/scop-15.c: New.
7532 2008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
7534 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
7536 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7538 * graphite.c (graphite_trans_bb_swap_loops): Rename from
7539 graphite_swap_loops.
7540 (graphite_trans_bb_move_loop): New.
7541 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
7542 (graphite_trans_bb_block): New.
7543 (graphite_trans_loop_block): New.
7544 (graphite_trans_scop_swap_1and2): Rename from
7545 graphite_trans_swap_1and2.
7546 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
7547 (graphite_trans_scop_block): New.
7548 (graphite_apply_transformations): Rename from
7549 graphite_transformations.
7551 * gcc.dg/graphite/scop-matmult.c: New.
7553 2008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
7555 * graphite.c (gbb_compare): New.
7556 (graphite_sort_gbbs): New.
7557 (gbb_can_be_ignored): New.
7558 (scop_remove_ignoreable_gbbs): New.
7559 (graphite_transformations): Cleanup and add
7560 scop_remove_ignoreable_gbbs.
7561 * lambda.h (lambda_vector_compare): New.
7563 2008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
7565 * graphite.c (print_graphite_bb): Correct printing of static schedule.
7566 (graphite_swap_loops): int -> unsigned
7567 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
7568 (graphite_transformations): New.
7569 (graphite_transform_loops): Move to graphite_transformations.
7570 * graphite.h (gbb_nb_loops): Return unsigned.
7572 2008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
7574 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
7575 the domain matrix. This makes scop-0.c work again.
7577 2008-06-20 Richard Guenther <rguenther@suse.de>
7579 * graphite.h: Adjust copyright to GPLv3.
7580 * graphite.c: Likewise.
7581 (stmt_simple_memref_for_scop_p): Split out from ...
7582 (stmt_simple_for_scop_p): ... here. Fix handling of calls
7584 (get_bb_type): Optimize.
7586 (is_bb_addable): Fix memleak, replace is_pred call with
7588 (build_scops): Use current_loops.
7589 (param_index): Fix memleak.
7591 2008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7593 * graphite.c: Fix formatting.
7595 2008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7597 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
7598 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
7599 (create_var_name, save_var_name): Newly defined functions.
7600 (initialize_cloog_names): Part of the code factored out to
7602 (clast_to_gcc_expression): Now handles the case of clast_red_sum
7603 in clast_reduction statement.
7604 (graphite_create_new_loop): Now takes a new parameter
7606 (translate_clast): Now also takes the context_loop and bb_exit
7607 parameters. Rewritten the code so that it creates a gimple code
7608 inside the given context.
7609 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
7610 remove_cond_expr, disconnect_cond_expr,
7611 disconnect_virtual_phi_nodes): Newly defined functions.
7612 * graphite.h (struct scop): added old_ivs vector.
7613 SCOP_OLDIVS: New macro.
7615 2008-06-19 Sebastian Pop <sebastian.pop@amd.com>
7617 * cfgloopmanip.c: Add missing function comments, fix formatting.
7619 2008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7621 * cfgloopmanip.c (update_dominators_in_loop): Defined.
7622 (create_empty_loop_on_edge): Defined.
7623 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
7625 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
7626 (update_dominators_in_loop): Declared as extern
7627 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
7629 2008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
7631 * graphite.c (print_graphite_bb): Allow changing number of loops
7633 (initialize_cloog_names): Allow changing number of loops.
7634 (build_cloog_prog): Simplify.
7635 (find_transform): Enable cloog option --strides.
7636 (graphite_swap_loops): New.
7637 (graphite_strip_mine_loop): New.
7638 (graphite_trans_swap_1and2): New.
7639 (graphite_trans_strip): New.
7640 (graphite_transform_loops): Add graphite_trans_strip.
7641 * graphite.h (scop_max_loop_depth): New.
7643 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7645 * graphite.c (build_scop_iteration_domain): Remove forgotten
7646 line. (Fixes compile)
7648 2008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7650 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
7651 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
7652 (build_bb_loops): New.
7653 (graphite_transform_loops): Add build_bb_loops.
7654 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
7656 * graphite.h (graphite_bb): Add loops.
7657 (gbb_nb_loops): New.
7658 (gbb_loop_at_index): New.
7659 (gbb_loop_index): New.
7660 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
7661 using nb_params_in_scop.
7663 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7665 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
7666 (build_scop_canonical_schedules): Build minimized schedule.
7667 (schedule_to_scattering): Adapt to minimized schedule.
7668 * graphite.h (graphite_bb): Add/Update descriptions.
7670 2008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
7671 Tobias Grosser <grosser@fim.uni-passau.de>
7673 * graphite.c (print_graphite_bb): Add condition printing.
7675 (dump_gbb_conditions): New.
7676 (build_scop_conditions_1): New.
7677 (build_scop_conditions): New.
7678 * graphite.h (graphite_bb): Add conditions.
7680 2008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7682 * graphite.c (print_graphite_bb):
7683 (free_graphite_bb): New.
7684 (free_scop): Free bbs.
7685 (get_bb_type): Free doms.
7686 (build_scop_context): Free context matrix.
7687 (build_loop_iteration_domains): Remove unused code.
7688 (build_cloog_prog): Free scattering function and blocklist.
7689 (find_transform): Free options.
7691 2008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
7693 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
7694 Remove unnecessery cloog data structures. Make a copy of the domain
7695 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
7696 unnecessary cloog data structures. Fix memory leaks. Remove insert
7697 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
7699 (build_scop_iteration_domain): Remove unnecessary cloog
7700 data structures. Fix memory leaks.
7701 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
7702 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
7704 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7706 * graphite.c (find_scop_params): Remove initialize_cloog_names.
7708 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7710 * graphite.c (end_scop): Style fix.
7711 (schedule_to_scattering): Style and comment fix.
7713 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7714 * graphite.c (print_graphite_bb): Fix definiton of
7715 schedule_to_scattering.
7716 (initialize_cloog_names): Change nb_scattdims to max loop
7718 (schedule_to_scattering): Take parameter for number of scattering
7720 (build_cloog_prog): Only build as much scattering dimensions as
7723 2008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7725 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
7726 in polyhedron/aermod.f90.
7728 2008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
7729 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7730 Harsha Jagasia <harsha.jagasia@amd.com>
7732 * graphite.c (is_bb_addable): Fix segfault.
7734 2008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
7736 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
7737 with multiple exits and conditional handling in edge cases.
7738 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
7740 * gcc.dg/graphite/scop-14.c: New.
7742 2008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
7743 Adrien Eliche <aeliche@isty.uvsq.fr>
7745 * graphite.c (is_bb_addable): Add more comments and enhance
7746 readablity of the source code. Fix memory leak.
7747 (is_loop_exit): Fix memory leak.
7749 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7751 * graphite.c (first_loop_in_scop): Deleted.
7752 (setup_cloog_loop): Only walk the loop chain for inner loops.
7753 (build_scop_iteration_domain): Execute setup_cloog_loop for
7754 all loops in the first layer.
7756 2008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7758 * graphite.c (scan_tree_for_params): Change the way params are
7759 added to be indepenent of the number of loops.
7760 (setup_cloog_loop): Revert to short matrix format. Fix parameter
7762 (build_cloog_prog): Revert to short matrix format.
7764 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7765 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7767 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
7770 2008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7772 * graphite.c (nb_data_refs_in_scop): New.
7773 (graphite_transform_loops): Print more stats: number of
7774 loops, basic blocks and data references per scop.
7776 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7777 Jan Sjodin <jan.sjodin@amd.com>
7779 * graphite.c (loop_affine_expr, idx_record_params,
7780 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
7781 instead of instantiate_parameters.
7783 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7785 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
7786 add support for parameters, add STATIC_SCHEDULE at the right places,
7789 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7791 * graphite.c (build_scop_loop_nests): Only add the loops, that
7792 are contained completely in the SCoP.
7793 (build_cloog_prog): Disable scattering, until schedule_to_scattering
7794 and the domains are fixed.
7795 (build_scop_canonical_schedules): Add support for bbs not contained
7798 2008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7800 * graphite.h (scop_contains_loop): Update comments to match
7801 the actual behavior.
7802 (scop_contains_loop): New.
7803 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
7805 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7807 * graphite.c (get_bb_type): On function body, i.e. loop_0,
7808 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
7811 2008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7812 Tobias Grosser <grosser@fim.uni-passau.de>
7814 * graphite.c (graphite_transform_loops): Early return when
7815 there are no loops in the function.
7817 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7818 Jan Sjodin <jan.sjodin@amd.com>
7820 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
7821 offset of the last loop.
7822 (setup_cloog_loop): Copy the entire outer constraint matrix.
7824 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7825 Jan Sjodin <jan.sjodin@amd.com>
7827 * graphite.c (stmt_in_scop_p, function_parameter_p,
7828 invariant_in_scop_p): Removed.
7829 (scan_tree_for_params): Can be used with no constraint
7830 matrix for gathering parameters.
7831 (idx_record_params): Don't use idx_record_param, instead use
7832 scan_tree_for_params.
7833 (find_scop_parameters): Same.
7834 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
7835 Fix the size of loop domains.
7836 (schedule_to_scattering): Exit when the outer loop is not in scop.
7837 (find_transform): Enable build_cloog_prog.
7839 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7840 Jan Sjodin <jan.sjodin@amd.com>
7842 * graphite.c (schedule_to_scattering): Make scattering domains
7843 uniformly of the same size, as required by CLooG 0.14.0 and before.
7845 2008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7846 Jan Sjodin <jan.sjodin@amd.com>
7848 * graphite.c (schedule_to_scattering): Rewrite, correct the
7849 translation of the scheduling function to scattering.
7850 (build_cloog_prog): Call schedule_to_scattering only once.
7851 * graphite.h (scop_loop_index): Do not fail for loops not
7852 in the scop: return -1.
7854 2008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
7856 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
7857 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
7858 (setup_cloog_loop): Export GBB_DOMAIN.
7859 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
7860 able to rebuild the original control flow.
7861 * graphite.h (graphite_bb): Add domain field and access macro.
7864 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7866 * graphite.c (debug_gbb): New.
7867 (print_scop, build_graphite_bb): Use SCOP_BBS.
7868 (build_scop_bbs): Reimplemented.
7869 (dfs_bb_in_scop_p): Removed.
7870 (build_scop_loop_nests): Reorder loops inserted in
7871 SCOP_LOOP_NEST: outer loops should come first.
7872 (build_scop_canonical_schedules): Reinitialize at zero
7873 the components of the SCOP_STATIC_SCHEDULE for the loops
7874 that have already been parsed.
7876 * graphite.h (debug_gbb): Declared.
7878 2008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7879 Jan Sjodin <jan.sjodin@amd.com>
7881 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
7882 (graphite_loop_to_gcc_loop): Removed.
7883 (remove_all_edges): New.
7884 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
7885 (gloog): Remove useless code.
7887 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7889 * graphite.c (get_bb_type): Reworked. We distinguish between
7890 loops with one or multiple exits.
7891 (is_loop_exit): New.
7893 (is_bb_addable): Rework condition handling, now support for case
7894 case statements and loops with multiple exits.
7896 * gcc.dg/graphite/scop-11.c: New.
7897 * gcc.dg/graphite/scop-12.c: New.
7898 * gcc.dg/graphite/scop-13.c: New.
7900 2008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7902 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
7903 we have too many colors.
7905 2008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
7907 * doc/invoke.texi (-ftree-loop-fusion): Document.
7908 * tree-pass.h (pass_loop_fusion): Declared.
7909 * tree-loop-fusion.c: New.
7910 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
7911 * tree-data-ref.c (find_data_references_in_loop): Make extern.
7912 * tree-data-ref.h (find_data_references_in_loop): Declared.
7913 * common.opt (ftree-loop-fusion): Declared.
7914 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
7916 2008-05-21 Sebastian Pop <sebastian.pop@amd.com>
7918 * graphite.c (build_access_matrix): Fix typo from the merge.
7920 2008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7922 * Merge from mainline (130800:135673).
7924 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7926 * graphite.c (end_scop): The exit of the scop is not part of the scop.
7927 Update dominators after splitting.
7929 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7931 * graphite.c (is_bb_addable): Return the harmful statement.
7932 Factor up some code.
7933 (end_scop): New. Splits end of scope bbs on a harmful statement.
7934 (build_scops_1): Call end_scop.
7936 2008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7938 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
7939 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
7940 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
7941 build_scops_1): Removed.
7942 (build_scops_2): Renamed build_scops_1.
7944 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7946 * graphite.c: Fix formatting.
7948 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7950 * graphite.c (get_bb_type): New.
7952 (build_scops_2): New.
7953 (is_bb_addable): New.
7954 (build_scops): Switch the scop detection.
7955 (build_scop_bbs): Add entry bb to scop.
7956 * graphite.h (struct scop): Update comment.
7958 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7960 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
7963 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7965 * gcc.dg/graphite/scop-1.c: Update.
7966 * gcc.dg/graphite/scop-2.c: Update.
7967 * gcc.dg/graphite/scop-4.c: Update.
7968 * gcc.dg/graphite/scop-5.c: Add.
7969 * gcc.dg/graphite/scop-6.c: Add.
7971 2008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7973 * gcc.dg/graphite/scop-0.c: Add.
7974 * gcc.dg/graphite/scop-7.c: Add.
7975 * gcc.dg/graphite/scop-8.c: Add.
7976 * gcc.dg/graphite/scop-9.c: Add.
7977 * gcc.dg/graphite/scop-10.c: Add.
7979 2008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7981 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
7982 Check affine expressions depending on the outermost loop
7984 (stmt_simple_for_scop_p): Same.
7985 (harmfule_stmt_in_scop): Same.
7987 2008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
7989 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
7990 mark entry and exit, that are not part of the SCoP and update HTML
7993 2008-04-25 Sebastian Pop <sebastian.pop@amd.com>
7995 * graphite.c (basic_block_simple_for_scop_p): Renamed
7997 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
7998 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
7999 (all_preds_visited_p, all_succs_visited_p,
8000 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
8001 scop_end_loop): New.
8002 (build_scops): Do not use dfs_enumerate_from.
8004 * gcc.dg/graphite/scop-{1,2,4}.c: Updated.
8006 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
8008 * graphite.c: Add comments to functions that are missing a
8010 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
8012 2008-04-23 Sebastian Pop <sebastian.pop@amd.com>
8014 * graphite.c (nb_params_in_scop): Moved...
8015 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
8016 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
8017 (clast_to_gcc_expression): Reduce column size to less than 80.
8018 (graphite_create_iv): Return the new name of the IV.
8019 (find_transform): Set options->esp and options->cpp.
8020 (gloog): Comment out the invalidation of the old loop code.
8021 (initialize_dependence_polyhedron): Replace scop_nb_params with
8024 * graphite.h (nb_params_in_scop): ... here.
8025 (scop_nb_params): Removed.
8026 (loop_domain_dim): Return something even when the loop was not
8027 found in the hash table: avoid ICEing on all the graphite.exp
8030 2008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8032 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
8034 * graphite.c (build_scop_dynamic_schedules): Schedule is built
8035 according to nesting level.
8036 (find_scop_parameters): Call instantiate_parameters.
8037 (scan_tree_for_params): Extend it to handle general affine bounds.
8038 Inner loop bound can depend on outer loop induction variable.
8039 (setup_cloog_loop): tmp variable is allocated on stack. Call
8040 instantiate_parameters with respect to outermost_loop_in_scop.
8041 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
8043 (create_empty_loop): Function loopify should be given edge
8044 probability, instead of edge frequency. Dominance relation from
8045 switch_bb to loop_header.
8046 (clast_to_gcc_expression): Added handling of clast_reduction node.
8047 (gloog): New functionality for removing old loop.
8048 (test_dependence): Factored out from build_rdg_all_levels.
8049 (build_rdg_all_levels): Dependence testing factored out to
8050 test_dependence function.
8052 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
8053 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
8056 2008-04-07 Sebastian Pop <sebastian.pop@amd.com>
8058 * graphite.c (free_scop, param_index, initialize_cloog_names,
8059 nb_params_in_scop): Use name_tree map instead of just a tree
8060 for keeping track of the variable name associated to that tree.
8061 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
8062 clast_to_gcc_expression, graphite_create_iv,
8063 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
8064 graphite_stmt_to_gcc_stmt): New.
8065 (gloog): Call these.
8066 * graphite.h (struct name_tree): New.
8067 (struct scop): Use name_tree instead of tree for params.
8068 Store a vector of name_tree for new_ivs.
8070 (scop_nb_params): Use name_tree instead of tree.
8072 2008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
8073 Sebastian Pop <sebastian.pop@amd.com>
8075 * tree-bounds.c: New.
8076 * tree-bounds.h: New.
8077 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
8078 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
8079 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
8083 * c-cppbuiltin.c: Same.
8087 * tree-outof-ssa.c: Same.
8089 * Makefile.in: Same.
8091 2008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
8092 Sebastian Pop <sebastian.pop@amd.com>
8094 * tree-loop-distribution.c (remaining_stmts,
8095 upstream_mem_writes): Removed static variables.
8096 (copy_loop_before, create_bb_after_loop,
8097 mark_nodes_having_upstream_mem_writes, free_rdg_components,
8098 rdg_build_components, rdg_build_partitions,
8099 dump_rdg_partitions): Extern.
8100 (generate_loops_for_partition, generate_code_for_partition): Do not
8102 (already_processed_vertex_p, predecessor_has_mem_write,
8103 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
8104 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
8105 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
8106 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
8107 Pass remaining_stmts and upstream_mem_writes as parameters.
8108 (rdg_component): Moved...
8109 (build_rdg_partition_for_component): Do not aggregate components when
8110 flag_streamize_loops is set.
8111 (gen_sequential_loops): New.
8112 (ldist_gen): Call gen_sequential_loops.
8114 * tree-pass.h (pass_loop_streamization): Declared.
8116 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
8117 basic blocks when loops structures exist.
8119 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
8121 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
8123 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
8124 eliminate_local_variables_stmt, eliminate_local_variables,
8125 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
8126 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
8127 of code delimited by two edges in the CFG.
8128 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
8129 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
8130 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
8131 the case of parallelisation of reductions.
8132 (create_loop_fn): Extern.
8133 (create_omp_parallel_region): New.
8135 * tree-data-ref.c (dump_data_dependence_relation): Don't call
8136 dump_data_reference for printing dra and drb.
8137 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
8139 (build_rdg): Don't call free_dependence_relations for the moment, as
8140 we attach dependence relations on each edge of the RDG.
8143 * tree-data-ref.h (rdg_component): ...here.
8144 (struct rdg_edge): New field ddr_p relation.
8145 (RDGE_RELATION): New.
8146 (create_bb_after_loop, copy_loop_before,
8147 mark_nodes_having_upstream_mem_writes, rdg_build_components,
8148 rdg_build_partitions, dump_rdg_partitions,
8149 free_rdg_components): Declared.
8151 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
8152 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
8154 * tree-loop-streamization.c: New.
8156 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
8157 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
8159 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
8161 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
8163 * passes.c: Schedule pass_loop_streamization.
8165 2008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
8167 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
8170 2008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
8172 * graphite.c (dot_all_scops): Update formatting.
8173 Bbs can now be part of more than one SCoP.
8175 2008-03-04 Sebastian Pop <sebastian.pop@amd.com>
8177 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
8179 (loop_domain_dim): Check for unregistered toplev SCOP loop.
8180 * graphite.h (loop_to_cloog_loop): New.
8182 2008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8184 * graphite.c (loop_domain_dim, ref_nb_loops,
8185 loop_iteration_vector_dim): New.
8186 (build_access_matrix_with_af, build_access_matrix,
8187 initialize_dependence_polyhedron): Fixed for new matrix layout.
8188 No longer assume that all iteration domains are of the same
8191 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
8193 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
8194 defined in a loop at depth 0 is invariant.
8195 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
8196 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
8197 be called at loop depth 0.
8199 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
8201 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
8202 (down_open_scop): Removed.
8203 (loop_in_scop_p): Redefined.
8204 (scop_affine_expr): New argument: scop.
8205 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
8206 a harmful statement ending a scop.
8207 (basic_block_simple_for_scop_p): New argument: scop.
8208 (get_loop_start): Removed.
8209 (new_scop): Initialize SCOP_LOOPS.
8210 (free_scop): Free SCOP_LOOPS.
8211 (succs_at_same_depth, preds_at_same_depth): New.
8212 (end_scop): Test the validity of a scop.
8213 (add_dominators_to_open_scops): New.
8214 (test_for_scop_bound): Call add_dominators_to_open_scops.
8215 Add cases for opening and closing multiple scops.
8216 (build_scops, build_scop_bbs): Iterate over basic blocks in
8218 (build_graphite_bb): Pass scop directly.
8219 (dfs_bb_in_scop_p): New.
8220 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
8222 (nb_loops_around_gb): Use loop_in_scop_p.
8223 (schedule_to_scattering): Disabled for the moment the code computing
8224 the "textual order for outer loop".
8226 * graphite.h (struct scop): New field loops.
8228 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
8230 * gcc.dg/graphite/scop-{1,...,7}.c: Updated.
8232 2008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
8233 Sebastian Pop <sebastian.pop@amd.com>
8235 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
8236 * common.opt (fstreamize-loops): New.
8237 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
8238 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
8239 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
8240 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
8242 2008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8244 * tree-data-ref.c (build_empty_rdg): New.
8245 (build_rdg): Use it.
8246 * tree-data-ref.h (build_empty_rdg): Declared.
8247 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
8248 (find_vertex_for_stmt): Removed.
8249 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
8251 2008-02-21 Sebastian Pop <sebastian.pop@amd.com>
8253 * tree-loop-distribution.c (generate_builtin): After cancelling the
8254 loop tree, also delete basic blocks.
8255 (rdg_flag_uses): Stop recursion when a vertex has already been
8258 2008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8260 * graphite.c (build_scop_alpha): Removed.
8261 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
8262 and dump_dependence_graph to avoid compiler warnings.
8264 2008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8266 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
8267 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
8268 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
8269 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
8270 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
8271 (initialize_dependence_polyhedron, find_vertex_for_stmt,
8272 initialize_data_dependence_polyhedron, is_empty_polyhedron,
8273 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
8274 dump_dependence_graph): New.
8275 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
8277 (struct scop): New field loop2cloog_loop.
8278 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
8279 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
8281 2008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8283 * graphite.c (build_graphite_bb): Fix initialization
8284 of the graphite basic block.
8286 2008-02-05 Sebastian Pop <sebastian.pop@amd.com>
8288 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
8289 loop domain matrix. Pass in the number of loops contained in the
8291 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
8292 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
8293 loops that are not surrounding the current loop are not represented
8294 in the domain constraint matrix.
8295 (build_scop_iteration_domain): Initial domain constraint matrix
8296 contains only the eq/ineq, cst, and scop parameters columns.
8298 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8300 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
8301 (print_graphite_bb): Print scattering.
8303 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8305 * graphite.c (initialize_cloog_names): Initialize names of
8306 scattering variables.
8308 2009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8310 * graphite.c (dot_all_scops_1): Disable debug output while
8313 2008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
8315 * graphite.c (find_transform): Change cloog output language to C.
8317 2008-01-27 Sebastian Pop <sebastian.pop@amd.com>
8319 * tree-loop-distribution.c (generate_memset_zero,
8320 generate_builtin, generate_code_for_partition,
8321 rdg_flag_all_uses): New.
8322 (rdg_flag_uses): Gather in the same partition the statements defining
8323 the VUSES of the current statement.
8324 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
8325 Gather in the same partition not only the stores to the same memory
8326 access, but also the reads.
8327 (ldist_generate_loops): Renamed ldist_gen.
8329 2008-01-24 Sebastian Pop <sebastian.pop@amd.com>
8330 Tobias Grosser <grosser@fmi.uni-passau.de>
8332 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
8333 next pointer, don't use the inner pointer.
8335 2008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
8337 * graphite.c (dot_all_scops, dot_all_scops_1): New.
8338 (find_transform): Call dot_all_1.
8339 * graphite.h (dot_all_scops): Declared.
8341 2007-12-14 Sebastian Pop <sebastian.pop@amd.com>
8343 * tree-loop-distribution.c: Fix apsi.f ICE.
8344 (create_bb_after_loop): New.
8345 (generate_loops_for_partition): Use it.
8346 * gfortran.dg/ldist-1.f90: New.
8348 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
8349 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
8351 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8353 * graphite.c (find_transform): Dump cloog program sent to cloog.
8355 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8357 * graphite.c (initialize_cloog_names): Initialize cloog
8360 2007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
8362 * graphite.c (build_scop_context): Fix typo, for the matrix
8363 format: insert '0 >= 0' instead of '-1 >= 0'.
8365 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
8367 * Fix merge problems.
8369 2007-12-13 Sebastian Pop <sebastian.pop@amd.com>
8371 * graphite.c (setup_cloog_loop): Fix typo.
8373 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
8375 * doc/invoke.texi (-ftree-loop-distribution): Documented.
8376 * tree-loop-distribution.c: Reimplemented.
8377 * tree-pass.h (pass_loop_distribution): New.
8378 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
8380 * graphds.h (struct graph): New field indexes.
8381 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8383 * tree-vect-analyze.c: Remove declaration of static functions when not
8385 * tree-vectorizer.c: Same.
8386 (rename_variables_in_loop): Now extern.
8387 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
8388 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
8389 calling redirect_edge_and_branch_force.
8391 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
8393 * tree-data-ref.c: Don't include tree-chrec.h.
8394 (debug_data_dependence_relations): New.
8395 (dump_data_dependence_relation): Call dump_data_reference on data refs
8397 (same_access_functions): Moved...
8398 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
8399 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8400 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
8401 struct rdg_vertex_info, ): New.
8402 (create_rdg_edge_for_ddr): Compute the dependence level before looking
8404 (create_rdg_vertices): Initialize the htab of graph->indexes.
8405 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
8406 (stmts_from_loop): Don't save LABEL_EXPR.
8407 (hash_stmt_vertex_info, eq_stmt_vertex_info,
8408 hash_stmt_vertex_del): New.
8409 (build_rdg): Initialize rdg->indexes.
8410 (free_rdg, stores_from_loop, ref_base_address,
8411 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
8412 have_similar_memory_accesses_1, ref_base_address_1,
8413 remove_similar_memory_refs): New.
8415 * tree-data-ref.h: Include tree-chrec.h.
8416 (debug_data_dependence_relations): Declared.
8417 (same_access_functions): ...here. Now static inline.
8418 (ddr_is_anti_dependent, ddrs_have_anti_deps,
8419 ddr_dependence_level): New.
8420 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
8421 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
8422 RDG_MEM_READS_STMT): New.
8423 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
8424 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
8425 rdg_vertex_for_stmt): Declared.
8426 (struct rdg_edge): New field level.
8427 (RDGE_LEVEL, free_rdg): New.
8428 (stores_from_loop, remove_similar_memory_refs,
8429 rdg_defs_used_in_other_loops_p,
8430 have_similar_memory_accesses): Declared.
8431 (rdg_has_similar_memory_accesses): New.
8433 * lambda.h (dependence_level): New.
8434 * common.opt (ftree-loop-distribution): New.
8435 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
8436 (print_loop_ir): Renamed print_loops.
8437 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
8438 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
8439 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
8440 (tree-loop-distribution.o): Added.
8441 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
8442 (mark_virtual_ops_in_bb): New.
8443 (print_loops_bb, debug_loop_num, debug_loop): New.
8444 * passes.c: Scheduled pass_loop_distribution.
8446 2007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
8448 * graphite.c (scan_tree_for_params): Correct the number of columns
8450 (nb_flat_iterator): New.
8451 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
8452 (build_scop_iteration_domain): Correct the number of columns for
8455 2007-12-12 Sebastian Pop <sebastian.pop@amd.com>
8457 * Merge from mainline (129697:130800).
8459 2007-10-30 Sebastian Pop <sebastian.pop@amd.com>
8461 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
8462 dominated by SCoP's exit.
8463 (graphite_transform_loops): Compute post dominators.
8465 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
8467 * Merge from mainline (127169:129697).
8469 2007-10-28 Sebastian Pop <sebastian.pop@amd.com>
8471 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
8472 parameter for the basic block that contains the expression. Use
8473 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
8474 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
8476 * graphite.h (gbb_loop): New.
8477 (GBB_LOOP): Removed.
8479 2007-08-03 Sebastian Pop <sebpop@gmail.com>
8481 * Makefile.in: Fix merge problem.
8483 2007-08-03 Sebastian Pop <sebpop@gmail.com>
8485 * Merge from mainline (125309:127169).
8486 * tree-loop-distribution.c: Disabled.
8488 2007-06-05 Sebastian Pop <sebpop@gmail.com>
8490 * Merge from mainline (r123693:125309).
8492 2007-05-30 Sebastian Pop <sebpop@gmail.com>
8494 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
8496 (correct_modify_p, check_statements, number_of_lvalue_uses,
8497 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
8498 instead of MODIFY_EXPR.
8499 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
8502 2007-05-24 Sebastian Pop <sebpop@gmail.com>
8504 * tree-loop-distribution.c (struct rdg): Replace arrays by
8505 VECs for edges and vertices.
8506 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
8507 (RDGV_NB_PARTITIONS): New.
8508 (PRDG_NBV, PRDG_NBE): Removed.
8509 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
8510 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
8511 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
8513 2007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
8514 Sebastian Pop <sebpop@gmail.com>
8516 * doc/invoke.texi (-ftree-loop-distribution): Document.
8517 * tree-loop-distribution.c: New file.
8518 * tree-pass.h (pass_loop_distribution): Declared.
8519 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
8520 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
8522 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
8523 (DDR_REVERSED_P): New.
8524 * common.opt (-ftree-loop-distribution): New.
8525 * tree-flow.h (distribute_loops): Declared.
8526 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
8527 * passes.c (init_optimization_passes): Schedule loop distribution.
8529 2007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
8531 * graphite.c (print_graphite_bb): Don't call dump_data_references.
8532 (print_scop): Don't print when scop is NULL.
8533 (build_scop_context, find_transform): Don't output to stderr.
8535 2007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
8537 * tree-data-ref.c: Don't include graphite.h.
8538 Comment out the code for printing data reference's scop.
8539 (build_access_matrix_with_af): Moved...
8540 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
8541 * graphite.c (build_access_matrix_with_af): ... here. Now static.
8542 (print_graphite_bb): Print basic block's schedule.
8543 (print_scop): Don't print the schedule, call cloog's pretty printer.
8544 (bb_in_scop_p): A basic block is in a scop only if it is both
8545 dominated and postdominated by the scop's entry and exit basic blocks.
8546 (function_parameter_p): New.
8547 (invariant_in_scop_p): Use function_parameter_p.
8548 (new_scop, save_scop): New.
8549 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
8551 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
8552 (loop_in_scop_p): New.
8553 (scop_record_loop): Use loop_in_scop_p.
8554 (build_scop_domain): Renamed build_scop_iteration_domain.
8555 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
8556 nb_params_in_scop, build_scop_context, first_loop_in_scop,
8557 setup_cloog_loop, dot_scop_1, dot_scop): New.
8558 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
8559 (struct scop): Add a pointer to cloog's representation of a program.
8561 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8563 * doc/invoke.texi (-ftree-check-verbose): Renamed
8564 -ftree-checks-verbose.
8565 * common.opt (flag_tree_check_verbose): Renamed
8566 flag_tree_checks_verbose.
8567 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
8569 2007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
8571 * configure: Regenerated.
8572 * config.in: Regenerated.
8573 * tree-ssa-loop.c (graphite_transforms): Execute
8574 graphite_transform_loops only when HAVE_cloog.
8575 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
8576 * graphite.c: Include polylibgmp.h and cloog.h.
8577 (graphite_transform_loops): Removed loops parameter.
8578 * tree-flow.h (graphite_transform_loops): Update declaration.
8579 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
8580 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
8581 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
8582 (OBJS-common): Remove dependence on graphite.o.
8583 (BACKEND): Depend on @GRAPHITE@.
8585 2007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
8587 * doc/invoke.texi (-ftree-check-verbose): Documented.
8588 * gcc.dg/tree-checker/tree-checks-1.c: New.
8589 * gcc.dg/tree-checker/tree-checks-2.c: New.
8590 * gcc.dg/tree-checker/tree-checks-3.c: New.
8591 * gcc.dg/tree-checker/tree-checks-4.c: New.
8592 * gcc.dg/tree-checker/tree-checks.exp: New.
8593 * gcc.dg/tree-checker/condates.crp: New.
8594 * common.opt (ftree-checks-verbose): New.
8595 * tree-check.c (tree_check_warning): Move extra stderr output
8596 under control of flag_tree_check_verbose.
8598 2007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
8600 * tree-match.c: Fix comments formatting.
8601 * tree-match.h: Fix comments formatting.
8602 * tree-check.c: Fix comments formatting.
8603 (tree_check_init): Restructure.
8605 2007-04-12 Nic Volanschi <nic.volanschi@free.fr>
8607 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
8609 2007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
8611 * Merge from mainline (r120733:123693).
8613 2007-03-20 Nic Volanschi <nic.volanschi@free.fr>
8615 * condate.y: New file.
8616 * tree-match.h (struct patt_info_s): New field sign.
8617 (struct condate_s): New field msg.
8618 (normalize_condate, name_condate, add_condate): New.
8619 (conds[], condate_parse): Made extern.
8620 * tree-check.c (tree_check_warning): First arg changed to cond;
8621 warning reformatted.
8622 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
8624 (tree_check): Process trivial condates.
8625 (read_delimited_string): Removed.
8626 (print_cond): Print name and msg.
8627 (conds[]): Made extern.
8628 (parse_tree_check_file_once): Rewritten to use the parser in
8630 Processing of option --tree_check_string moved to tree_scan().
8631 * Makefile.in: Added condate.y
8633 2007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
8635 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
8636 Use VECs instead of varrays.
8637 * diagnostic.h (lazy_dump_generic_node): Update declaration.
8638 * Makefile.in (pretty-print.o): Depend on vec.h.
8639 * pretty-print.c: Include tree.h and vec.h.
8640 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
8641 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
8642 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
8643 pp_free_list): Use VECs instead of varrays.
8644 * pretty-print.h: Do not include varray.h.
8645 (struct tree_chunk_s): Declaration moved before its use.
8646 (output_buffer): Rename varray field to chunks.
8647 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
8648 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
8649 save_global_holes): Use VECs instead of varrays.
8650 * tree-match.h: Declare VECs of cfg_node, and hole_p.
8651 * tree-check.c (scan_cfg_stmts, push_node,
8652 print_matching_stmt): Removed.
8653 (tree_check_instance, push_global_holes_if_new, tree_check,
8654 execute_tree_check): Use VECs instead of varrays.
8655 (gate_tree_check): Don't execute the CFG check when basic_block_info
8658 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8660 * Merge from mainline (r115016:120733).
8662 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8664 * Merge from mainline (r117632:117661).
8666 2007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8668 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
8669 * tree-pass.h (TDF_DEBUG, debug_p): New.
8670 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
8671 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
8672 get_loop_exit_condition, analyze_evolution_in_loop,
8673 analyze_initial_condition, analyze_scalar_evolution,
8674 instantiate_parameters, number_of_latch_executions): Use debug_p.
8675 * tree-chrec.c (chrec_apply): Use debug_p.
8676 * tree-data-ref.c: Include graphite.h.
8677 (dump_data_reference): Print also the access matrix.
8678 (analyze_array, analyze_indirect_ref, init_data_ref,
8679 analyze_offset_expr, address_analysis, object_analysis,
8680 create_data_ref, finalize_ddr_dependent,
8681 non_affine_dependence_relation, analyze_ziv_subscript,
8682 analyze_siv_subscript_cst_affine,
8683 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
8684 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
8685 analyze_miv_subscript, analyze_overlapping_iterations,
8686 build_classic_dist_vector, subscript_dependence_tester,
8687 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
8688 (build_access_matrix_with_af): No longer static.
8689 * tree-data-ref.h (scop_p): ... declaration here.
8690 (data_reference.scop): New field.
8691 (DR_SCOP, DR_ACCESS_MATRIX): New.
8692 (build_access_matrix_with_af, dr_num_subscripts): Declared.
8693 * graphite.c (print_graphite_bb): Call dump_data_references.
8694 (print_scop): Use scop_nb_loops and scop_dim_domain.
8695 (test_for_scop_bound): Use debug_p.
8696 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
8698 (scop_loop_index): Moved...
8699 (scop_record_loop): New.
8700 (build_scop_loop_nests): Use scop_record_loop.
8701 (build_scop_domain): Use scop_dim_domain.
8702 (build_access_matrix): Implemented.
8703 (build_scop_canonical_schedules): Use scop_nb_loops.
8704 (build_graphite_bb): Initialize GBB_SCOP.
8705 * graphite.h (scop_p): Moved...
8706 (graphite_bb.scop): New field.
8707 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
8708 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
8709 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
8710 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
8711 scop_loop_index): New.
8712 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
8714 2007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
8716 * Merge from mainline (r117661:120450).
8718 2006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
8720 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
8721 at the first declaration outside the varying loop, instantiate as
8723 * tree-chrec.c (for_each_scev_op): New.
8724 * tree-chrec.h (for_each_scev_op): Declared.
8725 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
8726 * tree-data-ref.c (get_references_in_stmt,
8727 find_data_references_in_stmt): New, from trunk.
8728 (find_data_references_in_loop): Use get_references_in_stmt
8729 and find_data_references_in_loop, modified as in trunk.
8730 (build_access_matrix_with_af): New.
8731 * tree-data-ref.h (data_reference): Add a field access_matrix.
8732 (data_ref_loc): New, as in trunk.
8733 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
8734 invariant_in_scop_p, param_index, scan_tree_for_params,
8735 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
8736 idx_record_param, idx_record_params, build_access_matrix,
8737 build_scop_data_accesses, build_scop_canonical_schedules,
8738 build_graphite_bb, build_scop_bbs, find_params_in_bb,
8739 build_scop_params): New.
8740 * graphite.h (graphite_bb): New.
8741 (scop): Add fields static_schedule, params, loop_nest,
8743 * lambda.h: Declare vecs of lambda_matrix.
8744 * tree-flow.h (print_loop_ir_bb): Declared.
8745 * tree-cfg.c (print_loop_ir_bb): New.
8746 (print_loop): Use print_loop_ir_bb.
8748 2006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
8750 * Merge from mainline (r115016:117632).
8752 2006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
8754 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
8755 break due to a warning.
8757 2006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
8759 * graphite.c (print_scops, debug_scops): New.
8760 (graphite_transform): Renamed graphite_find_transform.
8761 * graphite.h (debug_scops): Declared.
8763 2006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
8765 * tree-match.c: Reformat following the GNU style.
8766 * tree-match.h: Reformat following the GNU style.
8767 * tree-pattern.h: Removed empty file.
8768 * Makefile.in: Remove references to tree-pattern.h.
8769 * tree-check.c: Reformat following the GNU style.
8770 (execute_tree_check): Move gate condition code to...
8771 (gate_tree_check): ...here. New function.
8772 (pass_check): Use the gate function.
8774 2006-07-04 Nic Volanschi <nic.volanschi@free.fr>
8776 * tree-pattern.h: New. Tree pattern matching and checking using
8778 * tree-check.c: New. Tree/CFG checking pass.
8779 * tree-match.c: New. Library for tree pattern matching.
8780 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
8781 * toplev.c, flags.h: Add globals for tree-check pass.
8782 * Makefile.in: Integrate the files in tree-check pass.
8783 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
8784 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
8785 Introduce a "lazy" pretty-print mode.
8786 * tree.c, tree.h: Add tree_name.
8788 2006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
8790 * doc/invoke.texi (-fgraphite): Correct typo.
8791 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
8792 use of print_loop_ir.
8793 * gcc.dg/graphite/scop-1.c: New.
8794 * gcc.dg/graphite/scop-2.c: New.
8795 * gcc.dg/graphite/graphite.exp: New.
8796 * graphite.c: Include domwalk.h.
8797 (print_scop): Print only the entry and exit blocks.
8798 (debug_scop): No longer static.
8799 (affine_expr): Fix formating. Return also true when the expression is
8801 (stmt_simple_for_scop_p): Fix formating.
8802 (build_scops): Use domwalk.
8803 (get_loop_start, end_scop, test_for_scop_bound): New.
8804 (graphite_transform_loops): Avoid printing on stderr.
8805 * graphite.h (debug_scop): Declared.
8806 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
8807 * Makefile.in (graphite.o): Depend on domwalk.h.
8808 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
8809 declarations for static functions.
8810 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
8811 controlling output verbosity.
8813 2006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
8814 Plesco Alexandru <shurikx@gmail.com>
8816 * doc/invoke.texi (-fgraphite): Document.
8817 * tree-pass.h (pass_graphite_transforms): Declared.
8818 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
8819 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
8820 (pass_graphite_transforms): Defined.
8821 * tree-data-ref.c (free_data_ref, data_reference): Extern.
8822 * tree-data-ref.h (free_data_ref, data_reference): Declared.
8823 * graphite.c, graphite.h: New.
8824 * common.opt (fgraphite): Declared.
8825 * tree-flow.h (graphite_transform_loops): Declared.
8826 * Makefile.in (OBJS-common): Add graphite.o.
8827 (graphite.o): New rule.
8828 * passes.c (pass_graphite_transforms): Scheduled.