1 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
4 * gcc.dg/graphite/id-pr43351.c
6 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
9 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
10 call insert_out_of_ssa_copy for default definitions.
11 * gfortran.dg/graphite/id-pr43354.f: New.
13 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
16 * gfortran.dg/graphite/pr43349.f: New.
18 2010-03-11 Sebastian Pop <sebastian.pop@amd.com>
20 * graphite-clast-to-gimple.c (my_long_long): Defined.
21 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
22 * graphite-sese-to-poly.c (my_long_long): Defined.
23 (scop_ivs_can_be_represented): Use it.
25 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
27 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
28 graphite-max-bbs-per-function, and loop-block-tile-size.
29 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
31 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
33 2010-03-10 Sebastian Pop <sebastian.pop@amd.com>
35 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
37 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
38 (add_upper_bounds_from_estimated_nit): New.
39 (build_loop_iteration_domains): Use it.
41 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
43 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
45 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
48 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
49 should be an INTEGER_CST. Also handle CASE_CONVERT.
50 * gcc.dg/graphite/pr43306.c: New.
52 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
54 * graphite.c (graphite_initialize): To bound the number of bbs per
55 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
56 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
57 * doc/invoke.texi: Document it.
59 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
61 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
62 * graphite-sese-to-poly.h (build_poly_scop): Same.
64 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
66 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
67 the number of parameters in the scop. Use as an upper bound
68 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
69 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
70 * doc/invoke.texi: Document it.
72 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
74 * graphite-sese-to-poly.c (add_param_constraints): Use
75 lower_bound_in_type and upper_bound_in_type.
77 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
79 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
80 instead of unsigned_type_node.
82 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
83 Reza Yazdani <reza.yazdani@amd.com>
86 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
87 on pointer type parameters.
89 * gcc.dg/graphite/run-id-4.c: New.
91 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
94 * gcc.dg/graphite/run-id-3.c: New.
96 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
97 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
99 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
100 handle conversions from pointer to integers.
101 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
102 induction variable, to be able to work with code generated by CLooG.
103 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
104 (build_poly_scop): Bail out if we cannot codegen a loop.
106 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
108 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
109 code generation with gloog_error.
111 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
113 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
114 Call fold_convert on all the returned values.
115 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
116 the type of the resulting expression.
118 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
120 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
121 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
122 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
124 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
126 * graphite-dependences.c (map_into_dep_poly): Removed.
127 (dependence_polyhedron_1): Use combine_context_id_scat.
129 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
131 * graphite-poly.h (struct poly_scattering): Add layout documentation.
132 (struct poly_bb): Same.
133 (combine_context_id_scat): New.
135 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
138 * sese.c (name_defined_in_loop_p): Return false for default
141 * gcc.dg/graphite/pr42326.c: New.
143 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
145 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
146 and clean up the logic.
148 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
150 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
153 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
156 * graphite-scop-detection.c (create_single_exit_edge): Move
157 the call to find_single_exit_edge to....
158 (create_sese_edges): ...here. Don't handle multiple edges
159 exiting the function.
160 (build_graphite_scops): Don't handle multiple edges
161 exiting the function.
163 * gcc.dg/graphite/pr43083.c: New.
165 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
168 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
169 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
171 * gfortran.dg/graphite/pr43097.f: New.
173 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
174 Manuel López-Ibáñez <manu@gcc.gnu.org>
177 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
179 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
182 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
184 * g++.dg/graphite/pr43026.C: New.
186 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
188 * Merge from mainline (154736:156693).
190 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
193 * gcc.dg/graphite/pr43012.c: New.
195 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
197 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
198 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
200 * g++.dg/graphite/pr42930.C: New.
202 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
205 * graphite-scop-detection.c (graphite_can_represent_scev): Call
206 graphite_can_represent_init for MULT_EXPR.
208 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
212 * graphite-sese-to-poly.c (remove_phi): New.
213 (translate_scalar_reduction_to_array): Call remove_phi.
215 * gcc.dg/graphite/pr42530.c: New.
216 * gcc.dg/graphite/pr42914.c: New.
218 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
221 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
222 * graphite-clast-to-gimple.h (gloog): Update declaration.
223 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
224 * graphite-poly.h (struct poly_bb): Add missing comments.
225 (struct scop): Add poly_scop_p field.
227 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
228 * graphite.c (graphite_transform_loops): Build the polyhedral
229 representation for each scop before code generation.
230 * sese.c (rename_variables_in_operand): Removed.
231 (rename_variables_in_expr): Return the renamed expression.
232 (rename_sese_parameters): New.
233 * sese.h (rename_sese_parameters): Declared.
235 * gcc.dg/graphite/pr42771.c: New.
237 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
239 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
241 * gcc.dg/graphite/block-1.c: Same.
242 * gcc.dg/graphite/block-3.c: Same.
243 * gcc.dg/graphite/block-4.c: Same.
244 * gcc.dg/graphite/block-5.c: Same.
245 * gcc.dg/graphite/block-6.c: Same.
246 * gcc.dg/graphite/block-7.c: Same.
247 * gcc.dg/graphite/interchange-0.c: Same.
248 * gcc.dg/graphite/interchange-1.c: Same.
249 * gcc.dg/graphite/interchange-10.c: Same.
250 * gcc.dg/graphite/interchange-11.c: Same.
251 * gcc.dg/graphite/interchange-12.c: Same.
252 * gcc.dg/graphite/interchange-2.c: Same.
253 * gcc.dg/graphite/interchange-3.c: Same.
254 * gcc.dg/graphite/interchange-4.c: Same.
255 * gcc.dg/graphite/interchange-5.c: Same.
256 * gcc.dg/graphite/interchange-6.c: Same.
257 * gcc.dg/graphite/interchange-7.c: Same.
258 * gcc.dg/graphite/interchange-8.c: Same.
259 * gcc.dg/graphite/interchange-9.c: Same.
260 * gcc.dg/graphite/interchange-mvt.c: Same.
262 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
264 * gfortran.dg/graphite/id-19.f: New.
265 * gfortran.dg/graphite/pr14741.f90: New.
266 * gfortran.dg/graphite/pr41924.f90: New.
267 * gfortran.dg/graphite/run-id-2.f90: New.
269 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
272 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
273 to unknown_dependence.
274 (graphite_legal_transform_dr): Handle the unknown_dependence.
275 (graphite_carried_dependence_level_k): Same.
277 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
279 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
281 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
282 Konrad Trifunovic <konrad.trifunovic@inria.fr>
285 * graphite-dependences.c (build_lexicographical_constraint): Return
286 a union of dependence polyhedra.
287 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
289 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
290 * gcc.dg/graphite/block-4.c: Same.
291 * gcc.dg/graphite/block-7.c: Same.
292 * gcc.dg/graphite/interchange-12.c: Same.
293 * gcc.dg/graphite/interchange-mvt.c: Same.
294 * gfortran.dg/graphite/interchange-1.f: XFAILed.
295 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
296 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
298 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
300 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
301 the execution check to FAIL. This testcase is miscompiled by Graphite
302 and the check should be re-enabled.
303 * gcc.dg/graphite/interchange-mvt.c: Same.
304 * gcc.dg/graphite/block-0.c: Same.
305 * gcc.dg/graphite/block-4.c: Same.
306 * gcc.dg/graphite/block-7.c: Same.
308 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
310 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
311 * gcc.dg/graphite/scop-0.c: Fix spaces.
312 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
313 * gfortran.dg/graphite/block-2.f: Same.
314 * gfortran.dg/graphite/block-3.f90: Same.
315 * gfortran.dg/graphite/block-4.f90: Same.
316 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
317 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
319 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
321 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
322 PDDR_ORIGINAL_SCATTERING_P.
323 (pddr_is_empty): Rewritten.
324 (print_dependence_polyhedron_layout): New.
327 (build_alias_set_powerset): Moved up.
328 (poly_drs_may_alias_p): Moved up.
329 (lexicographically_gt_p): Removed.
330 (build_lexicographically_gt_constraint): Renamed
331 build_lexicographical_constraint, reimplemented.
332 (dependence_polyhedron_1): Simplified parameters.
333 (dependence_polyhedron): Same. Keep along empty PDDRs
334 to make efficient use of the cache.
335 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
336 (graphite_legal_transform_dr): Rewritten.
337 (graphite_legal_transform_bb): Pass fewer arguments to
338 graphite_legal_transform_dr.
339 (graphite_carried_dependence_level_k): Simplified implementation.
340 (dot_original_deps_stmt_1): Call dependence_polyhedron.
341 (dot_transformed_deps_stmt_1): Same.
342 (dot_original_deps): Same.
343 (dot_transformed_deps): Same.
344 * graphite-dependences.h (struct poly_ddr): Added a new field
345 original_scattering_p.
346 (PDDR_ORIGINAL_SCATTERING_P): New.
347 (print_pddr): Declared.
348 (debug_pddr): Declared.
349 * graphite-ppl.c: Clarify comment.
350 * sese.h (print_gimple_bb): Removed unused declaration.
353 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
355 * g++.dg/graphite/graphite.exp: Rewritten.
356 * gcc.dg/graphite/graphite.exp: Rewritten.
357 * gfortran.dg/graphite/graphite.exp: Rewritten.
358 * gcc.dg/graphite/block-0.c: Added runtime test.
359 * gcc.dg/graphite/block-1.c: Same.
360 * gcc.dg/graphite/block-3.c: Same.
361 * gcc.dg/graphite/block-4.c: Same.
362 * gcc.dg/graphite/block-5.c: Same.
363 * gcc.dg/graphite/block-6.c: Same.
364 * gcc.dg/graphite/block-7.c: Same.
365 * gcc.dg/graphite/interchange-0.c: Same.
366 * gcc.dg/graphite/interchange-1.c: Same.
367 * gcc.dg/graphite/interchange-10.c: Same.
368 * gcc.dg/graphite/interchange-11.c: Same.
369 * gcc.dg/graphite/interchange-12.c: Same.
370 * gcc.dg/graphite/interchange-2.c: Same.
371 * gcc.dg/graphite/interchange-3.c: Same.
372 * gcc.dg/graphite/interchange-4.c: Same.
373 * gcc.dg/graphite/interchange-5.c: Same.
374 * gcc.dg/graphite/interchange-6.c: Same.
375 * gcc.dg/graphite/interchange-7.c: Same.
376 * gcc.dg/graphite/interchange-8.c: Same.
377 * gcc.dg/graphite/interchange-9.c: Same.
378 * gcc.dg/graphite/interchange-mvt.c: Same.
379 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
381 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
383 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
386 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
388 * common.opt: Add -fgraphite-cloog-opts.
389 * graphite-clast-to-gimple.c (set_cloog_options): Same.
390 * opts.c (decode_options): Same.
392 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
394 * gcc.dg/graphite/id-17.c: New.
395 * gcc.dg/graphite/pr41888.c: New.
396 * gcc.dg/graphite/scop-22.c: New.
397 * gfortran.dg/graphite/pr40982.f90: New.
399 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
401 * graphite-dependences.c: Clarify comments.
402 (build_pddr): Add an extra parameter direction.
403 (graphite_legal_transform_dr): Use build_pddr.
404 (dot_original_deps_stmt_1): Update use of build_pddr.
405 (dot_transformed_deps_stmt_1): Same.
406 (dot_original_deps): Same.
407 (dot_transformed_deps): Same.
409 * gcc.dg/graphite/interchange-12.c: New.
410 * gcc.dg/graphite/block-7.c: New.
412 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
414 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
415 (pddr_transformed_scattering): Removed.
416 (graphite_legal_transform_dr): Use build_pddr.
417 (dot_original_deps_stmt_1): Same.
418 (dot_transformed_deps_stmt_1): Same.
419 (dot_original_deps): Same.
420 (dot_transformed_deps): Same.
422 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
424 * graphite-dependences.c (lexicographically_gt_p): Add comments.
425 (build_lexicographically_gt_constraint): Same.
426 (dependence_polyhedron_1): Same.
427 (dependence_polyhedron): Same.
429 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
431 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
432 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
433 (lexicographically_gt_p): Change type of direction to int.
434 (build_lexicographically_gt_constraint): Same.
435 (dependence_polyhedron_1): Same.
436 (dependence_polyhedron): Same.
437 (pddr_original_scattering): Use integers for direction.
438 (pddr_transformed_scattering): Same.
439 (graphite_legal_transform_dr): Same.
440 (graphite_carried_dependence_level_k): Same.
442 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
444 * graphite-dependences.c (build_pairwise_constraint): Renamed
445 ppl_build_relation. Moved...
446 (dr_equality_constraints): Use ppl_build_relation.
447 (build_pairwise_scheduling_equality): Same.
448 (build_pairwise_scheduling_inequality): Same.
449 * graphite-ppl.c (ppl_build_relation): ...here.
450 * graphite-ppl.h (ppl_build_relation): Declared.
452 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
455 * graphite-clast-to-gimple.c (gloog_error): New static variable.
456 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
457 Set gloog_error when such an expression failed to be built.
458 (translate_clast): Early return when gloog_error is set.
459 (gloog): Clear gloog_error. When gloog_error is set, call
460 set_ifsese_condition to enable the original code. Return the status
461 of the code generation based on gloog_error.
462 * sese.c (set_ifsese_condition): New.
463 * sese.h (set_ifsese_condition): Declared.
465 * g++.dg/graphite/pr42681.C: New.
467 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
470 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
471 rename_nb_iterations.
472 * sese.c (rename_variables_in_operand): New.
473 (rename_variables_in_expr): New.
474 (rename_nb_iterations): New.
475 (sese_adjust_liveout_phis): Update the rename_map.
476 * sese.h (rename_nb_iterations): Declared.
477 * tree-scalar-evolution.c (scev_reset_htab): New.
478 (scev_reset): Call scev_reset_htab.
479 * tree-scalar-evolution.h (scev_reset_htab): Declared.
481 * gfortran.dg/graphite/pr42732.f: New.
483 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
486 * graphite-clast-to-gimple.c: Fix formatting.
487 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
488 (expr_defined_in_loop_p): New.
489 (add_loop_exit_phis): Also handle full expressions: remove from
490 the rename_map the expressions defined in the loop that we're closing.
492 * gfortran.dg/graphite/pr42393-1.f90: New.
493 * gfortran.dg/graphite/pr42393.f90: Add new flags
494 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
495 make this testcase useful in the Graphite branch.
497 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
499 * graphite-scop-detection.c (exclude_component_ref): Removed.
500 (is_simple_operand): Removed.
501 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
503 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
506 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
507 the array indexing of ADDR_EXPRs.
509 * gcc.dg/graphite/pr42221.c: New.
511 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
514 * graphite.c (graphite_finalize): Call scev_reset.
515 (graphite_transform_loops): Do not call scev_reset between the code
518 * gcc.dg/graphite/pr42521.c: New.
520 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
522 * graphite-interchange.c (memory_stride_in_loop): Renamed
524 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
525 (memory_strides_in_loop): Memoize the memory strides per loop.
526 (lst_interchange_profitable_p): Do not initialize to zero the memory
528 * graphite-poly.h (struct lst): Add a field memory_strides.
529 (LST_LOOP_MEMORY_STRIDES): New.
530 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
531 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
533 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
535 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
536 memory_strides_in_loop. Gather memory strides on a whole loop.
537 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
538 (lst_interchange_profitable_p): Removed.
539 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
541 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
543 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
544 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
545 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
546 Remove context_loop and level.
548 2010-01-07 Richard Guenther <rguenther@suse.de>
550 PR tree-optimization/42641
551 * sese.c (rename_map_elt_info): Use the SSA name version, do
554 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
556 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
557 blocked" only when both the strip mine and the interchange have
560 * gcc.dg/graphite/block-2.c: Removed.
561 * gcc.dg/graphite/block-3.c: Add scan pattern.
562 * gcc.dg/graphite/block-4.c: Same.
563 * gcc.dg/graphite/block-5.c: Same.
564 * gcc.dg/graphite/block-6.c: Same.
566 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
568 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
569 before allocating a new one.
570 (copy_renames): Check that slot is not NULL.
571 (mark_bb_with_pbb): Same.
572 (compute_cloog_iv_types_1): Same.
573 * graphite-interchange.c (lst_perfect_nestify): Free the before,
574 nest, and after LSTs.
575 (lst_try_interchange_loops): Same.
577 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
580 * graphite-interchange.c (lst_try_interchange_loops): Do not return
581 the before, nest, and after LSTs.
582 (lst_try_interchange): Removed.
583 (lst_interchange_select_inner): Do not iterate over the LSTs if they
585 (lst_interchange_select_outer): Apply interchange on the outer loop
586 until there are no more changes in the inner loops.
588 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
590 Revert patch fixing PR middle-end/42221.
592 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
595 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
598 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
600 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
603 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
604 that contain only one statement.
606 * gfortran.dg/graphite/pr42180.f90: New.
608 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
611 * gfortran.dg/graphite/pr42393.f90: New.
613 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
616 * gfortran.dg/graphite/pr42186.f90: New.
618 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
621 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
622 Insert the reduction copy in the same block as the phi node.
623 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
625 * gcc.dg/graphite/pr42205-1.c: New.
626 * gcc.dg/graphite/pr42205-2.c: New.
628 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
631 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
632 the array indexing of ADDR_EXPRs.
634 * gcc.dg/graphite/pr42221.c: New.
636 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
640 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
641 index. Call lst_interchange_select_inner only once.
642 (lst_interchange_select_inner): Update use of lst_try_interchange.
643 (lst_interchange_select_outer): Update.
645 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
649 * graphite-interchange.c (lst_try_interchange): Do not increment the
650 the OUTER index when there is no AFTER kernel. Do not increment the
651 OUTER index for after processing the AFTER kernel.
652 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
653 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
654 index. Do not pass to lst_interchange_select_inner the OUTER index.
655 (scop_do_interchange): Update use of lst_interchange_select_outer.
657 * gfortran.dg/graphite/graphite.exp
658 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
659 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
660 the graphite dump file.
661 * gfortran.dg/graphite/interchange-2.f: Same.
662 * gfortran.dg/graphite/pr42334-1.f: New.
664 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
668 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
670 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
671 (lst_try_interchange): Reimplemented.
672 (lst_interchange_select_inner): Same.
673 (lst_do_interchange): Renamed lst_interchange_select_outer.
675 (scop_do_interchange): Update use of lst_interchange_select_outer.
677 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
678 * gcc.dg/graphite/block-0.c: Un-XFAILed.
679 * gcc.dg/graphite/pr42211.c: New.
680 * gfortran.dg/graphite/pr42334.f90: New.
682 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
685 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
686 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
688 * gfortran.dg/graphite/pr42181.f90: New.
690 2009-12-12 Sebastian Pop <sebpop@gmail.com>
693 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
694 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
695 (detect_commutative_reduction_arg): Simplified.
696 (detect_commutative_reduction): Early return when the argument of
697 the close phi is not of an SSA_NAME.
699 * gcc.dg/graphite/pr42284.c: New.
701 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
703 * dbgcnt.def (graphite_scop): New counter.
704 * graphite.c: Include dbgcnt.h
705 (graphite_transform_loops): Use new counter to limit transformations.
707 2009-12-08 Sebastian Pop <sebpop@gmail.com>
710 * graphite-scop-detection.c (graphite_can_represent_init): Also
711 handle more complex MULT_EXPRs containing parameters by recursion
714 * gfortran.dg/graphite/pr42285.f90: New.
716 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
718 * g++.dg/graphite/pr42130.C: Fix type.
720 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
722 * g++.dg/graphite/pr42130.C: Correct testcase.
724 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
726 * Merge from mainline (154493:154734).
728 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
730 * Merge from mainline (151362:154491).
732 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
734 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
735 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
737 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
740 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
741 translate_clast_for_loop): New.
742 (translate_clast_for): Add a condition around the loop, to do not
743 execute loops with zero iterations.
744 * g++.dg/graphite/pr42130.C: New.
745 * gcc.dg/graphite/pr35356-2.c: Adapt.
747 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
749 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
750 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
751 Remove context_loop and level.
753 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
755 * graphite-clast-to-gimple.c (translate_clast_user,
756 translate_clast_for, translate_clast_guard): Simplify and move common
757 elements to translate_clast().
758 (translate_clast): Simplify and get common elements.
760 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
762 * graphite-clast-to-gimple.c (translate_clast_user,
763 translate_clast_for, translate_clast_guard): Split out of
766 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
768 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
769 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
770 debug_clast_name_indexes_1, debug_clast_name_indexes,
771 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
772 (clast_name_to_gcc, clast_to_gcc_expression,
773 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
774 gcc_type_for_clast_eq, graphite_translate_clast_equation,
775 graphite_create_guard_cond_expr, graphite_create_new_loop,
776 translate_clast): Add params_index.
777 (initialize_cloog_names): Create parameter strings from scratch, do
778 not reference other strings.
779 (create_params_index): New.
780 (gloog): Initialize params_index.
781 * graphite-scop-detection (free_scops_1): Removed.
782 (limit_scops): Use normal free_scops.
783 * graphite-sese-to-poly.c (save_var_names): Removed.
784 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
785 and SESE_PARAMS_INDEX.
786 * sese.c (new_sese, free_sese): Dito.
787 * sese.h (struct sese): Remove params_index, params_names.
788 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
790 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
792 Revert the following patch from 2009-09-14:
793 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
794 tree-scalar-evolution.h, and then tree-data-ref.h.
795 * graphite-clast-to-gimple.c: Same.
796 * graphite-dependences.c: Same.
797 * graphite-interchange.c: Same.
798 * graphite-poly.c: Same.
799 * graphite-scop-detection.c: Same.
800 * graphite-sese-to-poly.c: Same.
802 * lambda-code.c: Same.
803 * matrix-reorg.c: Same.
804 * tree-data-ref.c: Same.
805 * tree-if-conv.c: Same.
806 * tree-loop-distribu: Same.: Same.
807 * tree-loop-linear.c: Same.
808 * tree-parloops.c: Same.
809 * tree-predcom.c: Same.
810 * tree-vect-patterns.c: Same.
812 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
814 Revert patch from 2009-09-14.
815 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
816 passes at -O1 and below.
818 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
821 * gcc.dg/graphite/pr40281.c: New.
823 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
824 evolutions should not variate in inner loops.
826 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
829 * gfortran.dg/graphite/pr42050.f90: New.
831 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
833 * graphite-interchange.c (memory_strides_in_loop_depth): New.
834 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
836 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
838 * graphite-blocking.c (scop_do_block): New.
839 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
840 * graphite-poly.h (scop_do_block): Declared.
842 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
844 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
845 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
846 to transform depth into the time_depth before calling
847 pbb_number_of_iterations_at_time.
848 (lst_do_strip_mine): Use a scalar variable instead of recomputing
851 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
853 Reverted the patch for "scattering permutations" from 2009-10-28.
855 * graphite-poly.c (print_permutation): New.
856 (debug_permutation): New.
857 (new_poly_bb): Initialize PBB_PERMUTATION.
858 (free_poly_bb): Free PBB_PERMUTATION.
859 * graphite-poly.h (pbb_permutation_elt_p): Declared.
860 (struct pbb_permutation_elt): New.
861 (PBB_PERMUTATION_ELT_STRIDE): New.
862 (PBB_PERMUTATION_ELT_STRIDED_P): New.
863 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
864 (new_pbb_permutation_elt): New.
865 (pbb_permutation_elt_free): New.
866 (struct poly_bb): Add field permutation.
867 (PBB_PERMUTATION): New.
868 (print_permutation): Declared.
869 (debug_permutation): Declared.
871 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
873 * graphite-interchange.c (build_partial_difference): New.
874 (memory_stride_in_loop): Refactored the computation of
875 equality constraints into build_partial_difference function.
876 Added support for debugging stride computations.
878 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
880 * graphite-clast-to-gimple.c (gloog): Free if_region,
881 if_region->true_region, and if_region->region.
882 * sese.c (if_region_set_false_region): Free if_region->false_region.
883 (create_if_region_on_edge): Do not use GGC_NEW.
884 (move_sese_in_condition): Remove useless initialization.
886 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
888 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
889 for the loops created by the loop distribution. Do not modify the
891 (lst_try_interchange_loops): Same. Use a temporary LST for the
892 transformed schedule. Call lst_update_scattering before data
894 (lst_try_interchange): Pass an extra parameter INDEX.
895 (lst_do_interchange_1): New.
896 (lst_do_interchange): Call lst_do_interchange_1.
897 (scop_do_interchange): Call lst_update_scattering.
898 * graphite-poly.c (apply_poly_transforms): Do not call
899 lst_update_scattering.
900 * graphite-poly.h (lst_pred): New.
902 (lst_find_first_pbb): Return NULL when not found.
904 (lst_insert_in_sequence): Allow LST1 to be NULL.
906 (lst_substitute_3): New.
907 * gcc.dg/graphite/interchange-1.c: XFail.
908 * gcc.dg/graphite/interchange-8.c: XFail.
909 * gcc.dg/graphite/interchange-11.c: XFail.
911 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
913 * graphite-interchange.c (lst_perfectly_nested_p): New.
914 (lst_perfect_nestify): New.
915 (lst_try_interchange_loops): Call store_lst_schedule,
916 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
917 (scop_do_interchange): Avoid redundant legality test.
918 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
919 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
920 * graphite-poly.h (psct_static_dim): New.
921 (lst_dewey_number_at_depth): New.
922 (lst_find_pbb): Restructured.
923 (lst_find_first_pbb): Restructured.
924 (lst_find_last_pbb): New.
925 (lst_contains_p): New.
926 (lst_contains_pbb): New.
927 (lst_create_nest): New.
928 (lst_remove_from_sequence): New.
929 (pbb_update_scattering): New.
930 (lst_update_scattering_under): New.
931 (lst_update_scattering_seq): New.
932 (lst_update_scattering): New.
933 (lst_insert_in_sequence): New.
934 (lst_distribute_lst): New.
935 (lst_remove_all_before_including_pbb): New.
936 (lst_remove_all_before_excluding_pbb): New.
938 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
940 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
943 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
945 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
947 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
949 * graphite-poly.c (print_permutation): New.
950 (debug_permutation): New.
951 (new_poly_bb): Initialize PBB_PERMUTATION.
952 (free_poly_bb): Free PBB_PERMUTATION.
953 * graphite-poly.h (pbb_permutation_elt_p): Declared.
954 (struct pbb_permutation_elt): New.
955 (PBB_PERMUTATION_ELT_STRIDE): New.
956 (PBB_PERMUTATION_ELT_STRIDED_P): New.
957 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
958 (new_pbb_permutation_elt): New.
959 (pbb_permutation_elt_free): New.
960 (struct poly_bb): Add field permutation.
961 (PBB_PERMUTATION): New.
962 (print_permutation): Declared.
963 (debug_permutation): Declared.
965 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
967 * graphite-clast-to-gimple.c (gloog): Do not call
968 sese_reset_aux_in_loops.
969 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
970 extra argument for domains. Do not use loop->aux.
971 (build_scop_iteration_domain): Initialize and free domains, pass it
972 to build_loop_iteration_domains and extract the information from
973 domains. Do not use loop->aux.
974 * sese.c (sese_reset_aux_in_loops): Removed.
975 * sese.h (sese_reset_aux_in_loops): Removed.
977 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
979 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
980 (dependency_in_loop_p): Same.
981 (translate_clast): Do not use loop->aux. Initialize
982 loop->can_be_parallel.
983 (mark_loops_parallel): Removed.
984 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
985 * graphite.c (free_aux_in_new_loops): Removed.
986 (graphite_finalize): Do not call free_aux_in_new_loops.
987 (graphite_transform_loops): Do not call mark_loops_parallel.
989 2009-10-26 Li Feng <nemokingdom@gmail.com>
991 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
992 (translate_clast): Pass an extra parameter LEVEL.
993 Call get_scattering_level.
994 * graphite-clast-to-gimple.h (get_scattering_level): New.
996 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
998 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
999 * cfgloop.h (struct loop): New field single_iv.
1001 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
1002 loop->aux anymore: use loop->single_iv.
1003 (graphite_loop_normal_form): Moved...
1004 (build_graphite_loop_normal_form): Removed.
1005 (gloog): Do not call build_graphite_loop_normal_form.
1006 (free_aux_in_new_loops): Moved...
1007 (mark_loops_parallel): Restructure.
1008 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
1009 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
1010 (scop_canonicalize_loops): New.
1011 (build_poly_scop): Call scop_canonicalize_loops.
1012 * graphite.c (free_aux_in_new_loops): ...here.
1014 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1016 * g++.dg/graphite/graphite.exp: Add the same rules as in
1017 gcc.dg/graphite/graphite.exp.
1019 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1021 * g++.dg/graphite/id-1.C: New.
1023 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1025 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
1027 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
1028 (rewrite_phi_out_of_ssa): Same.
1029 (rewrite_cross_bb_scalar_deps): Same.
1030 (translate_scalar_reduction_to_array): Same.
1032 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1034 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
1037 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1039 * graphite-sese-to-poly.c (dump_alias_graphs): New.
1040 (build_scop_drs): Call dump_alias_graphs.
1042 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1044 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
1045 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1046 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
1047 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1048 * graphite-poly.h (free_lst): New.
1049 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
1050 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
1052 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1054 * graphite-poly.h (struct scop): Add a field saved_schedule.
1055 (SCOP_SAVED_SCHEDULE): New.
1056 (store_lst_schedule): New.
1057 (restore_lst_schedule): New.
1058 (store_scattering): Call store_lst_schedule.
1059 (restore_scattering): Call restore_lst_schedule.
1061 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1063 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
1064 (pdr_add_alias_set): Same.
1065 (build_poly_dr): Same.
1066 (build_alias_set_optimal_p): Same.
1067 (build_base_obj_set_for_drs): Same. Do not store the result of
1070 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1072 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
1073 all_components_are_cliques to 1.
1075 2009-10-20 Li Feng <nemokingdom@gmail.com>
1077 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
1079 (pdr_add_alias_set): Update retrieving alias_set_num.
1080 (build_poly_dr): Update retrieving dr_base_object_set.
1081 (partition_drs_to_sets): Remove.
1082 (build_alias_set_optimal_p): New.
1083 (build_alias_set_for_drs): Rename.
1084 (build_scop_drs): Update.
1085 * graphite-sese-to-poly.h (struct base_alias_pair): New.
1086 (ALIAS_SET_INDEX): Remove.
1087 (BASE_OBJECT_SET_INDEX): Remove.
1089 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1091 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
1093 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1095 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
1096 loop upper bounds for 1-element arrays at end of structures.
1097 * tree-flow.h (array_at_struct_end_p): Declared.
1098 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
1100 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1102 * g++.dg/graphite/pr41305.C: New.
1104 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
1106 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
1107 construction of parameter constraints from loop iteration analysis.
1108 * gcc.dg/graphite/run-id-2.c: New test.
1110 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1112 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
1115 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1117 * graphite-dependences.c (dependence_polyhedron_1): Remove
1118 unused gdim dimensions from the DDR polyhedron.
1120 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1122 * graphite-dependences.c (pddr_transformed_scattering): New.
1123 (dot_original_deps_stmt_1): New.
1124 (dot_transformed_deps_stmt_1): New.
1125 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
1126 dot_transformed_deps_stmt_1.
1127 (dot_original_deps): New.
1128 (dot_transformed_deps): New.
1129 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
1131 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1133 * graphite-dependences.c (reduction_dr_1): Remove wrong
1134 assert: reduction BBs can have multiple reduction writes
1135 to memory. interchange-3.f90 is an example.
1137 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1139 * gfortran.dg/graphite/interchange-3.f90: New.
1141 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1143 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
1145 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1147 * graphite-dependences.c (dependence_polyhedron_1): Add the
1148 context to the dependence polyhedron.
1150 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1152 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
1153 PBB_PDR_DUPLICATES_REMOVED.
1154 (new_poly_bb): Same.
1156 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1158 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
1160 (build_loop_iteration_domains): Extract bounds on parameters
1161 based on the data size.
1162 (build_scop_context): Do not initialize SCOP_CONTEXT;
1163 add new constraints.
1165 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1167 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
1168 * graphite-ppl.h (graphite-ppl.h): Declared.
1170 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1172 * graphite-ppl.c (ppl_print_linear_expr): New.
1173 (debug_ppl_linear_expr): New.
1174 * graphite-ppl.h (ppl_print_linear_expr): Declared.
1175 (debug_ppl_linear_expr): Declared.
1177 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1179 * graphite-interchange.c: Fix comments.
1180 * gcc.dg/graphite/block-1.c: Fix comments.
1182 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1184 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
1185 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
1187 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1189 Reapply the patch from Alexander Monakov that disappeared during
1190 the last merges from trunk.
1192 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
1194 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1195 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1197 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1199 * graphite-interchange.c (memory_stride_in_loop): The depth
1200 argument corresponds to a dynamic time dimension, so use
1201 psct_dynamic_dim to refer to the transformed scattering dimension.
1203 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1205 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
1207 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1209 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
1211 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
1212 the root of the LST.
1213 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
1215 (print_lst): Print the root of LST in a different format.
1216 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
1218 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1220 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
1222 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1224 * doc/passes.texi: Document the Graphite infrastructure.
1226 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1228 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
1229 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
1230 and check the SSA representation.
1232 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
1234 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1236 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
1238 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1240 * gcc.dg/graphite/interchange-11.c: New.
1242 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1244 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
1246 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1248 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1249 Add -fno-loop-strip-mine and -fno-loop-interchange.
1250 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
1251 -fno-loop-strip-mine.
1252 * gfortran.dg/graphite/graphite.exp: Same.
1254 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1256 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1257 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
1258 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
1259 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
1260 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
1261 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
1262 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
1263 DEFAULT_FLAGS_GRAPHITE_SCOP.
1264 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
1265 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
1267 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1269 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
1271 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1272 Sebastian Pop <sebastian.pop@amd.com>
1274 * graphite-interchange.c (build_linearized_memory_access): Pass an
1275 offset as parameter.
1276 (memory_stride_in_loop): Include transform scattering in the
1277 access functions to be able to querry the strides in the
1279 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
1280 not the psct_iterator_dim.
1282 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1284 * graphite-blocking.c (pbb_do_strip_mine): Removed.
1285 (lst_do_strip_mine_loop): New.
1286 (lst_do_strip_mine): New.
1287 (scop_do_strip_mine): Call lst_do_strip_mine.
1288 * graphite-poly.h (lst_add_loop_under_loop): New.
1289 (lst_find_first_pbb): New.
1291 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1293 * graphite-poly.c (loop_to_lst): Fix LST creation.
1295 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
1297 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
1298 sizeof(unsigned long) to make it run on 32bit systems.
1300 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
1302 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
1305 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1307 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
1309 (write_alias_graph_to_ascii_dot): New.
1310 (write_alias_graph_to_ascii_ecc): Ditto.
1311 (partition_drs_to_sets): Add testing of optimality of current method
1312 which assigns alias numbers according to DFS Comopnent number. used
1313 as heuristic for the upcoming ECC algorithm.
1314 (build_scop_drs): Write to file also with the ecc and dot format.
1316 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1318 * gfortran.dg/graphite/interchange-1.f: XFail.
1320 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1322 * graphite.c (graphite_initialize): Do not handle functions with
1323 more than 100 basic blocks.
1325 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1327 * graphite-blocking.c (pbb_do_strip_mine): Use
1328 PARAM_LOOP_BLOCK_TILE_SIZE.
1330 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1332 * graphite-poly.c (dot_lst_1): New.
1334 * graphite-poly.h (dot_lst): Declared.
1336 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1338 * graphite-dependences.c (dot_deps_stmt_1): New.
1339 (dot_deps_stmt): New.
1340 * graphite-dependences.h (dot_deps_stmt): Declared.
1342 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1344 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
1345 not replace cross BB scalar dependences ending on PHI nodes.
1346 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
1348 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1350 * graphite-poly.c (apply_poly_transforms): Implement the high
1351 level driver for flag_loop_block.
1352 * opts.c (decode_options): Enable flag_loop_block at -O2.
1353 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
1356 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
1358 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1361 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1363 * graphite-poly.h (lst_find_pbb): New.
1364 (find_lst_loop): New.
1366 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1368 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
1369 * graphite-poly.h (struct scop): Remove dep_graph field.
1370 (SCOP_DEP_GRAPH): Removed.
1372 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1374 * graphite-poly.h (copy_lst): Do full copy of LST.
1376 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
1378 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
1379 when the loop stride is zero.
1381 * gcc.dg/graphite/id-16.c: New.
1383 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1385 * graphite-dependences.c (reduction_dr_1): New.
1386 (reduction_dr_p): New.
1387 (graphite_legal_transform_dr): Call reduction_dr_p.
1388 (reduction_ddr): Renamed reduction_ddr_p.
1389 * graphite-poly.h (same_pdr_p): New.
1390 (number_of_write_pdrs): New.
1391 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
1392 (split_reduction_stmt): Do not split reduction statements
1393 when there are no writes to memory.
1394 (translate_scalar_reduction_to_array_for_stmt): Insert the
1395 memory reduction statement just after the scalar reduction statement.
1397 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
1399 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
1400 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
1402 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1404 * graphite-interchange.c (lst_apply_interchange): New.
1405 (lst_interchange_profitable_p): New.
1406 (lst_try_interchange_loops): New.
1407 (lst_try_interchange): New.
1408 (lst_do_interchange): New.
1409 (pbb_do_interchange): Removed.
1410 (scop_do_interchange): Call lst_do_interchange.
1412 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1414 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
1415 SCOP_TRANSFORMED_SCHEDULE.
1420 * graphite-poly.h (lst_p): New.
1423 (LST_LOOP_FATHER): New.
1426 (scop_to_lst): Declared.
1427 (print_lst): Declared.
1428 (debug_lst): Declared.
1429 (new_lst_loop): New.
1430 (new_lst_stmt): New.
1433 (lst_dewey_number): New.
1434 (struct scop): Add original_schedule and transformed_schedule fields.
1435 (SCOP_ORIGINAL_SCHEDULE): New.
1436 (SCOP_TRANSFORMED_SCHEDULE): New.
1437 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
1439 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1441 * graphite-dependences.c (reduction_ddr): New.
1442 (graphite_legal_transform_bb): Call reduction_ddr.
1443 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
1444 Initialize PBB_IS_REDUCTION.
1445 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
1446 (PBB_IS_REDUCTION): New.
1447 (new_poly_bb): Update declaration.
1448 * graphite-scop-detection.h (build_scop_bbs): Removed.
1449 (nb_reductions_in_loop): Removed.
1450 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
1451 parameter for reductions.
1452 (try_generate_gimple_bb): Update call to new_poly_bb.
1453 (build_scop_bbs_1): Same.
1454 (build_scop_bbs): Same.
1455 (gsi_for_phi_node): New.
1456 (scalar_close_phi_node_p): Remove gcc_assert.
1457 (split_reduction_stmt): New.
1458 (is_reduction_operation_p): New.
1459 (phi_contains_arg): New.
1460 (follow_ssa_with_commutative_ops): New.
1461 (detect_commutative_reduction_arg): New.
1462 (detect_commutative_reduction_assign): New.
1463 (follow_inital_value_to_phi): New.
1464 (edge_initial_value_for_loop_phi): New.
1465 (initial_value_for_loop_phi): New.
1466 (detect_commutative_reduction): New.
1467 (translate_scalar_reduction_to_array_for_stmt): New.
1468 (insert_copyout): New.
1469 (insert_copyin): New.
1470 (translate_scalar_reduction_to_array): New.
1471 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
1472 (rewrite_commutative_reductions_out_of_ssa_loop): New.
1473 (rewrite_commutative_reductions_out_of_ssa): New.
1474 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
1475 * sese.h (split_region_for_bb): New.
1477 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
1478 * gcc.dg/graphite/interchange-1.c: Fix format.
1479 * gcc.dg/graphite/interchange-10.c: New.
1481 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1483 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
1486 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1488 * graphite-sese-to-poly.c (scev_analyzable_p): New.
1489 (rewrite_cross_bb_scalar_dependence): New.
1490 (rewrite_cross_bb_scalar_deps): New.
1491 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
1492 Call rewrite_cross_bb_scalar_deps.
1494 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1496 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
1497 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
1500 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1502 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
1503 * graphite-interchange.c (pbb_do_interchange): Same.
1504 * graphite-poly.c (print_scattering_function): Same.
1506 * graphite-poly.h (pbb_loop): New.
1507 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
1509 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1511 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
1513 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1515 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
1516 so don't pass a pointer to it.
1517 (build_alias_set_for_drs): Same.
1518 (build_base_obj_set_for_drs): Same.
1519 (build_scop_drs): Same.
1521 2009-09-26 Li Feng <nemokingdom@gmail.com>
1523 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
1524 the alias graph of data references.
1526 2009-09-25 Li Feng <nemokingdom@gmail.com>
1528 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
1529 (build_scop_drs): When debugging, write the alias graph to file,
1530 otherwise, should be disabled.
1532 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1534 * Merge from mainline (151310:151361).
1536 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1538 * Merge from mainline (151171:151310).
1540 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1542 * Merge from mainline (151171:151806).
1544 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1546 * Revert the last commit.
1548 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1550 * Merge from mainline (151171:151819).
1552 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1554 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
1555 (is_simple_operand): Remove call to stmt_simple_memref_p.
1556 (stmt_simple_for_scop_p): Update call to is_simple_operand.
1558 2009-09-17 David Edelsohn <edelsohn@gnu.org>
1560 * gcc.dg/graphite/interchange-mvt.c: New File.
1561 * gcc.dg/graphite/scop-dsyrk.c: New File.
1562 * gcc.dg/graphite/scop-dsyr2k.c: New File.
1563 * gcc.dg/graphite/scop-mvt.c: New File.
1564 * gcc.dg/graphite/scop-sor.c: New File.
1566 2009-09-17 Li Feng <nemokingdom@gmail.com>
1568 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
1569 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
1570 (graphite_carried_dependence_level_k): Ditto.
1571 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
1572 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
1573 (new_poly_dr): Adjust declaration.
1574 * graphite-sese-to-poly.c (free_data_refs_aux): New.
1575 (free_gimple_bb): Added free_data_refs_aux.
1576 (build_poly_dr): Add dr_base_object_set.
1577 (partition_drs_to_sets): New.
1578 (dr_same_base_object_p): New.
1579 (build_alias_set_for_drs): New.
1580 (build_base_object_set_for_drs): New.
1581 (build_scop_drs): Add build_base_obj_set_for_drs.
1582 * graphite-sese-to-poly.h: Added #define for alias set number index and
1583 base object set index.
1584 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
1585 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
1587 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
1589 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1590 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1592 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1594 * graphite-sese-to-poly.c (struct irp_data): Removed.
1595 (idx_record_params): Removed.
1596 (find_params_in_bb): Scan for parameters the access functions; don't
1597 parse the tree representation.
1599 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1601 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
1602 passes at -O1 and below.
1604 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1606 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1607 tree-scalar-evolution.h, and then tree-data-ref.h.
1608 * graphite-clast-to-gimple.c: Same.
1609 * graphite-dependences.c: Same.
1610 * graphite-interchange.c: Same.
1611 * graphite-poly.c: Same.
1612 * graphite-scop-detection.c: Same.
1613 * graphite-sese-to-poly.c: Same.
1615 * lambda-code.c: Same.
1616 * matrix-reorg.c: Same.
1617 * tree-data-ref.c: Same.
1618 * tree-if-conv.c: Same.
1619 * tree-loop-distribu: Same.: Same.
1620 * tree-loop-linear.c: Same.
1621 * tree-parloops.c: Same.
1622 * tree-predcom.c: Same.
1623 * tree-vect-patterns.c: Same.
1625 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
1627 Partially revert the previous patch, except the following.
1628 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
1629 as parameters the operands of the not expression.
1631 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1633 * tree-scalar-evolution.c (instantiate_scev_assign): New.
1634 Do not call analyze_scalar_evolution on assignments.
1635 (instantiate_scev_phi): Call analyze_scalar_evolution.
1636 (instantiate_scev_name): Call instantiate_scev_assign and
1637 instantiate_scev_phi.
1638 (instantiate_scev_not): Adapted to pass as parameters the operands
1639 of the not expression.
1641 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1643 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
1644 to pass as parameters the operands of the binary expression.
1646 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1648 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
1649 instantiate_scev_not. Handle NEGATE_EXPR.
1650 (instantiate_scev_r): Handle NEGATE_EXPR.
1652 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1654 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
1656 (instantiate_scev_r): Move code in instantiate_scev_2
1657 and instantiate_scev_1.
1659 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1661 * tree-scalar-evolution.c (instantiate_scev_3): New.
1662 (instantiate_scev_1): Move code in instantiate_scev_3.
1664 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1666 * tree-scalar-evolution.c (instantiate_scev_poly): New.
1667 (instantiate_scev_1): Move code in instantiate_scev_poly.
1669 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1671 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
1672 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
1674 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1676 * tree-scalar-evolution.c (instantiate_scev_convert): New.
1677 (instantiate_scev_1): Move code in instantiate_scev_convert.
1679 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1681 * tree-scalar-evolution.c (instantiate_scev_binary): New.
1682 (instantiate_scev_1): Move code in instantiate_scev_binary.
1684 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1686 * tree-scalar-evolution.c (instantiate_scev_name): New.
1687 (instantiate_scev_1): Move code in instantiate_scev_name.
1689 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1691 * Merge from mainline (150992:151171).
1693 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1695 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
1697 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1699 * graphite-dependences.c (graphite_legal_transform_bb): Call
1700 pbb_remove_duplicate_pdrs.
1701 * graphite-poly.c (can_collapse_pdr): Removed.
1702 (pdr_find_duplicate): Removed.
1703 (can_collapse_pdrs): New.
1704 (pbb_remove_duplicate_pdrs): New.
1705 (new_poly_dr): Do not look for duplicates.
1706 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
1707 (PBB_PDR_DUPLICATES_REMOVED): New.
1708 (pbb_remove_duplicate_pdrs): Declared.
1710 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1712 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
1713 the strides by multiplying by PDR_NB_REFS.
1714 * graphite-poly.c (can_collapse_pdr): New.
1715 (pdr_find_duplicate): New.
1716 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
1717 Initialize PDR_NB_REFS.
1718 * graphite-poly.h (struct poly_dr): Add field nb_refs.
1720 (new_poly_dr): Number of subscripts is a graphite_dim_t.
1722 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1724 Revert one of the previous commits:
1725 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1726 the computation of symmetric data dependence relations.
1727 (dependency_between_pbbs_p): Same.
1729 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1732 * graphite-poly.c (apply_poly_transforms): Remove legality test before
1735 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1737 * graphite-dependences.c (pddr_original_scattering): Return NULL
1738 for read-read dependence relations.
1739 * graphite-poly.h (enum poly_dr_type): Fix comment.
1742 (pdr_may_write_p): New.
1744 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1746 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
1747 (struct poly_dr): Same.
1748 (new_poly_dr): Same.
1749 * graphite-poly.c (new_poly_dr): Same.
1751 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1752 Sebastian Pop <sebastian.pop@amd.com>
1754 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
1755 pbb_strip_mine_time_depth. Changed the implementation so that
1756 transformation is expressed as a transformation on
1757 time (scatttering) dimensions. Also, ensures that the 2d+1
1758 scheduling format is preserved.
1759 (pbb_strip_mine_profitable_p): Profitability is based on the
1760 iteration number of a given time (scattering) dimension,
1761 and not on a original loop depth dimension.
1762 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
1763 (pbb_do_strip_mine): Call psct_dynamic_dim.
1764 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
1765 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
1766 (pbb_nb_dynamic_scattering_transform): New.
1767 (psct_dynamic_dim): New.
1769 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1771 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1772 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1773 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
1774 * graphite-interchange.c (build_linearized_memory_access): Same.
1775 (memory_stride_in_loop): Same.
1777 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1779 * graphite-dependences.c (pddr_original_scattering): New.
1780 (graphite_legal_transform_dr): Call pddr_original_scattering.
1783 * graphite-dependences.h (dot_deps): Declared.
1784 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
1785 (print_pdr): Print PDR_ID.
1786 * graphite-poly.h (struct poly_dr): Add field id.
1789 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
1791 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
1793 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
1794 not delete the original dependence relation.
1796 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1798 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1799 the computation of symmetric data dependence relations.
1800 (dependency_between_pbbs_p): Same.
1802 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1804 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
1805 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
1806 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
1807 (free_poly_ddr): New.
1808 (pddr_is_empty): New.
1809 (dependence_polyhedron_1): Now returns a poly_ddr_p.
1810 (dependence_polyhedron): Same. Remove useless gcc_assert.
1812 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
1813 (graphite_carried_dependence_level_k): Call pddr_is_empty.
1814 * graphite-dependences.h (enum poly_dependence_kind): New.
1815 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
1816 (PDRP_SOURCE): Renamed PDDR_SOURCE.
1817 (PDRP_SINK): Renamed PDDR_SINK.
1818 (PDRP_DDP): Renamed PDDR_DDP.
1820 (free_poly_ddr): Declared.
1821 * graphite-poly.c (new_scop): Use the new hash function names.
1822 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
1823 into original_pddrs.
1824 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
1826 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1828 * Merge from mainline (150764:150992).
1830 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1832 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
1833 bounds with LT_EXPR to make niter analysis more precise on code
1834 generated by Graphite.
1836 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1838 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
1839 (graphite_legal_transform_bb): Same.
1840 (poly_drs_may_alias_p): Same.
1842 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
1845 * graphite-ppl.c (ppl_max_for_le): Correct the use of
1846 ppl_Pointset_Powerset_C_Polyhedron_maximize.
1848 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1850 * graphite-poly.c (print_pbb): Print PBB index.
1852 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1854 * Merge from mainline (r150672:150764).
1856 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1858 * graphite-interchange.c (ppl_max_for_le): Moved...
1859 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
1860 * graphite-ppl.c (ppl_max_for_le): ... here.
1861 * graphite-ppl.h (ppl_max_for_le): Declared.
1863 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
1865 * Merge from mainline (r150372:150672).
1867 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1870 * sese.c (convert_for_phi_arg): New.
1871 (add_guard_exit_phis): Use convert_for_phi_arg.
1873 * gfortran.dg/graphite/id-17.f: New.
1875 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1877 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
1878 unknown subscript upper bounds.
1880 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
1882 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1883 Pranav Garg <pranav.garg2107@gmail.com>
1885 * graphite-interchange.c (gather_access_strides): Removed.
1886 (ppl_max_for_le): New.
1887 (build_linearized_memory_access): New.
1888 (memory_stride_in_loop): New.
1889 (pbb_interchange_profitable_p): Reimplemented.
1890 * graphite-ppl.h (ppl_new_id_map): New.
1891 (ppl_interchange): New.
1893 * gcc.dg/graphite/interchange-6.c: XFAILed.
1895 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1897 * graphite-interchange.c (compute_subscript): Removed.
1898 (compute_array_size_cstr): Removed.
1899 (compute_array_size_poly): Removed.
1900 (compute_array_size): Removed.
1901 (gather_access_strides_poly): Removed.
1902 (gather_access_strides): Empty.
1904 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1906 * graphite-dependences.c (dependence_polyhedron_1): Replace
1907 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
1908 (graphite_legal_transform_dr): Same.
1909 (graphite_carried_dependence_level_k): Same.
1910 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
1911 Initialize PDR_NB_SUBSCRIPTS.
1912 (print_pdr_access_layout): Replace pdr_nb_subscripts with
1914 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
1915 (PDR_NB_SUBSCRIPTS): New.
1916 (pdr_nb_subscripts): Removed.
1917 (pdr_dim): Simplified.
1918 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
1919 with PDR_NB_SUBSCRIPTS.
1921 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1923 * graphite-interchange.c (compute_array_size): Remove use of
1925 * graphite-poly.c (new_poly_dr): Remove argument data_container.
1926 Do not initialize PDR_DATA_CONTAINER.
1927 (print_pdr): Do not print PDR_DATA_CONTAINER.
1928 * graphite-poly.h (struct poly_dr): Remove data_container field.
1929 (PDR_DATA_CONTAINER): Removed.
1930 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
1932 (build_poly_dr): Same.
1934 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1936 * gcc.dg/graphite/interchange-9.c: New.
1938 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1939 Sebastian Pop <sebastian.pop@amd.com>
1941 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
1942 copy of the dependence polyhedron. Free the temporary objects.
1943 (graphite_carried_dependence_level_k): Free unused objects before
1946 * gcc.dg/graphite/interchange-1.c: XFAILed.
1947 * gcc.dg/graphite/interchange-2.c: XFAILed.
1948 * gcc.dg/graphite/interchange-3.c: XFAILed.
1949 * gcc.dg/graphite/interchange-4.c: XFAILed.
1950 * gcc.dg/graphite/interchange-7.c: XFAILed.
1952 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1954 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
1955 Early return without analyzing the data dependences if no
1956 transform has been done. Call restore_scattering if the transform
1958 (graphite-interchange.c): Same.
1959 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
1960 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
1961 (apply_poly_transforms): Do not gcc_assert that
1962 the transform is legal.
1963 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1964 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
1965 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
1966 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1967 * graphite-poly.h (struct poly_scattering): New.
1968 (struct poly_bb): Add original, transformed, and saved fields.
1969 Remove transformed_scattering, original_scattering, nb_local_variables,
1970 and nb_scattering_transform fields.
1971 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
1972 (poly_scattering_new): New.
1973 (poly_scattering_free): New.
1974 (poly_scattering_copy): New.
1975 (store_scattering_pbb): New.
1976 (store_scattering): New.
1977 (restore_scattering_pbb): New.
1978 (restore_scattering): New.
1979 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1980 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
1982 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1984 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
1987 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1989 * Makefile.in (graphite.o): Depends on PREDICT_H.
1990 * graphite.c: Include predict.h.
1991 (graphite_finalize): Call tree_estimate_probability.
1992 * predict.c (predict_loops): Do not call scev_initialize and
1994 (tree_estimate_probability_bb): New.
1995 (tree_estimate_probability): Do not initialize loops: move that
1996 code to the driver. Call tree_estimate_probability_bb.
1997 (tree_estimate_probability_driver): New.
1998 (pass_profile): Use tree_estimate_probability_driver.
1999 * predict.h (tree_estimate_probability): Declared.
2001 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
2003 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
2004 * graphite-dependences.c (graphite_legal_transform): Add time to
2005 TV_GRAPHITE_DATA_DEPS.
2006 (dependency_between_pbbs_p): Same.
2007 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
2009 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
2011 * Merge from mainline (r149952:150372).
2013 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2015 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
2016 * graphite-blocking.c: Same.
2017 * graphite-clast-to-gimple.c: Same.
2018 * graphite-dependences.c: Same.
2019 * graphite-poly.c: Same.
2020 * graphite-poly.h: Same.
2021 * graphite-ppl.c: Same.
2022 * graphite-scop-detection.c: Same.
2023 * graphite-sese-to-poly.c: Same.
2026 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2028 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
2029 (remove_simple_copy_phi): New.
2030 (remove_invariant_phi): New.
2031 (simple_copy_phi_p): New.
2032 (reduction_phi_p): New.
2033 (gsi_for_ssa_name_def): New.
2034 (insert_out_of_ssa_copy): New.
2035 (insert_out_of_ssa_copy_on_edge): New.
2036 (create_zero_dim_array): New.
2037 (scalar_close_phi_node_p): New.
2038 (rewrite_close_phi_out_of_ssa): New.
2039 (rewrite_phi_out_of_ssa): New.
2040 (rewrite_reductions_out_of_ssa): New.
2041 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
2043 * gcc.dg/graphite/id-11.c: New.
2044 * gcc.dg/graphite/id-15.c: New.
2045 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
2046 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
2047 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
2048 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
2049 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
2050 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
2051 * gfortran.dg/graphite/id-13.f: New.
2052 * gfortran.dg/graphite/id-5.f: New.
2054 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2056 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
2057 check that nb_reductions_in_loop is zero.
2058 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
2059 reduction phi nodes.
2060 (nb_reductions_in_loop): Removed.
2061 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
2062 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
2063 (bb_contains_non_iv_scalar_phi_nodes): Removed.
2064 (scop_contains_non_iv_scalar_phi_nodes): Removed.
2065 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
2067 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2069 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
2070 statements that have an empty iteration domain.
2071 * gfortran.dg/graphite/id-16.f: New.
2073 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2075 * tree-scalar-evolution.c (instantiate_scev_1): Return
2076 chrec_dont_know when the result is not above instantiate_below.
2077 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
2078 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
2079 the tree has a known scalar evolution.
2080 * gfortran.dg/graphite/id-14.f: New.
2081 * gfortran.dg/graphite/id-15.f: New.
2083 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2085 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
2087 (rename_variables): Keep inserting renames after the ones already
2090 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2092 * graphite-sese-to-poly.c (compare_bb_depths): New.
2093 (graphite_sort_dominated_info): New.
2094 (build_scop_bbs_1): Call graphite_sort_dominated_info.
2095 (build_scop_scattering): Fix comment.
2097 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2099 * graphite.c (graphite_finalize): Call print_loops instead of
2100 dump_function_to_file.
2101 * gcc.dg/graphite/graphite.exp: Fix formatting.
2102 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
2103 loops generated in the graphite output file.
2104 * gcc.dg/graphite/pr35356-2.c: New.
2105 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
2106 * gfortran.dg/graphite/id-12.f: New.
2108 2009-07-24 Li Feng <nemokingdom@gmail.com>
2110 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
2113 2009-07-24 Li Feng <nemokingdom@gmail.com>
2114 Tobias Grosser <grosser@fim.uni-passau.de>
2116 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
2117 alias set number build alias in ACCESSES polyhedron.
2118 (build_alias_set_for_drs): New.
2119 (build_pbb_drs): Added build_alias_set_for_drs.
2120 * graphite-dependences.c (poly_drs_may_alias_p): New.
2121 (graphite_carried_dependence_level_k): Check alias information
2122 before building polyhedron.
2124 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2126 * Makefile.in (lambda-code.o): Fix formatting.
2128 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2130 * Merge from mainline (r149350-149952)
2132 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
2134 * graphite-poly.c (apply_poly_transforms): Move strip_mine
2135 before interchange to prepare for loop blocking.
2137 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
2139 * graphite-poly.c (apply_poly_transforms): Add checks after every
2141 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
2142 done in apply_poly_transforms.
2144 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2146 * graphite-dependences.c (build_lexicographically_gt_constraint):
2147 Replace RES parameter with *RES.
2148 (dependence_polyhedron_1): Pass an address of the parameter RES
2149 instead of value of RES.
2151 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2153 * graphite.c (graphite_finalize): Fix comment.
2154 (graphite_transform_loops): Reset scev info after code generation
2157 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2159 * graphite.c (graphite_finalize): Call scev_reset.
2161 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2163 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
2164 GBB_CLOOG_IV_TYPES hash table twice.
2165 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
2166 (add_condition_to_domain): Clear GMP values.
2168 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2170 * graphite-dependences.c: Fix formatting.
2171 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
2172 (pbb_number_of_iterations): Free ppl_Linear_Expression.
2173 * graphite-sese-to-poly.c: Fix formatting.
2174 * graphite.c (graphite_transform_loops): Create the hash table
2175 after the early return.
2177 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2179 * gcc.dg/graphite/id-14.c: New.
2180 * gcc.dg/graphite/pr40157.c: New.
2181 * gfortran.dg/graphite/id-11.f: New.
2183 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2185 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
2186 (build_poly_scop): Return false when there are no pbbs within
2187 loops to avoid to pass to cloog scops with no loops.
2189 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2191 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
2192 useless test "i % 2".
2193 (build_pbb_scattering_polyhedrons): Fix formatting.
2194 (build_poly_dr): Same.
2195 * graphite.c (graphite_transform_loops): Restructure.
2197 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
2199 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
2200 reduction_list parameter.
2201 (rewrite_all_phi_nodes_with_iv): Same.
2202 (canonicalize_loop_ivs): Same.
2203 * tree-parloops.c (struct brli): Removed.
2204 (build_reduction_list_info): Removed.
2205 (build_new_reduction): New.
2206 (analyze_reduction_list): Removed.
2207 (gather_scalar_reductions): Find reductions instead of phi
2208 nodes that can't be canonicalized.
2209 (try_create_reduction_list): Remove reduction_list parameter.
2210 (gen_parallel_loop): Same.
2211 (parallelize_loops): Remove analyze_reductions variable,
2212 initialization and free.
2213 Change reduction_list htab initialization to reduction_info
2214 elements instead of ssa names.
2215 Call try_create_reduction_list and gen_parallel_loop without
2216 analyzed_reduction argument.
2217 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
2218 canonicalize_loop_ivs with one less argument.
2219 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
2221 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2223 * graphite-dependences.c (new_poly_dr_pair): New.
2224 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
2225 (new_poly_dr_pair): New.
2226 (eq_poly_dr_pair_p): New.
2227 (hash_poly_dr_pair_p): New.
2228 * graphite-dependences.h (struct poly_dr_pair): New.
2229 (eq_poly_dr_pair_p): Declared.
2230 (hash_poly_dr_pair_p): Declared.
2231 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
2232 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
2233 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
2234 * Makefile.in (graphite-poly.o): Add dependence on
2235 graphite-dependences.h.
2237 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2239 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
2240 polynomials of degree > 1 pass to Graphite.
2241 * tree-chrec.c (scev_is_linear_expression): Call
2242 evolution_function_is_affine_multivariate_p.
2243 * gfortran.dg/graphite/id-10.f90: New.
2245 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2247 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
2248 Instantiate scevs varying in outer loops.
2249 * gfortran.dg/graphite/id-9.f: Correct testcase.
2251 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2253 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
2254 redundant constraint.
2256 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2258 * gcc.dg/graphite/graphite.exp: Fix comments.
2259 * gfortran.dg/graphite/graphite.exp: Trigger actions
2260 based on the file names as in the C testsuite.
2261 * gfortran.dg/graphite/block-1.f90: Fix patterns.
2262 * gfortran.dg/graphite/block-2.f: Same.
2263 * gfortran.dg/graphite/block-3.f90: Same.
2264 * gfortran.dg/graphite/block-4.f90: Same.
2265 * gfortran.dg/graphite/id-1.f90: Same.
2266 * gfortran.dg/graphite/id-2.f90: Same.
2267 * gfortran.dg/graphite/id-3.f90: Same.
2268 * gfortran.dg/graphite/id-4.f90: Same.
2269 * gfortran.dg/graphite/id-6.f: Same.
2270 * gfortran.dg/graphite/id-9.f: Same.
2271 * gfortran.dg/graphite/interchange-1.f: Same.
2272 * gfortran.dg/graphite/interchange-2.f: Same.
2273 * gfortran.dg/graphite/scop-1.f: Same.
2275 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2277 * sese.c (expand_scalar_variables_call): New.
2278 (expand_scalar_variables_ssa_name): Handle calls in expander.
2280 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2282 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
2283 Expect to see the pattern twice.
2284 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
2285 * gcc.dg/graphite/interchange-5.c: Same.
2286 * gcc.dg/graphite/interchange-6.c: Same.
2288 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2290 * gcc.dg/graphite/id-10.c: New.
2291 * gcc.dg/graphite/id-12.c: New.
2292 * gfortran.dg/graphite/id-7.f: New.
2293 * gfortran.dg/graphite/id-8.f: New.
2295 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2297 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
2300 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2302 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
2304 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2306 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
2308 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2310 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
2311 building PDR subscripts.
2313 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2315 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
2316 computation of array sizes.
2318 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2320 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
2322 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
2324 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
2325 build_pairwise_constraint, dr_equality_constraints,
2326 build_pairwise_scheduling_equality,
2327 build_pairwise_scheduling_inequality, lexicographically_gt_p,
2328 build_lexicographically_gt_constraint, dependence_polyhedron,
2329 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
2330 Move from NNC_Polyhedron to C_Polyhedron.
2331 * graphite-interchange.c (compute_array_size_poly,
2332 gather_access_strides): Dito.
2333 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
2334 free_scop, pbb_number_of_iterations): Dito.
2335 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
2336 pbb_dim_iter_domain, struct scop): Dito.
2337 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
2338 new_Cloog_Domain_from_ppl_Polyhedron,
2339 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
2340 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
2341 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
2342 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
2343 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
2344 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
2345 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
2346 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
2347 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
2348 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
2349 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
2350 build_scop_iteration_domain, build_poly_dr): Dito
2352 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2354 * gcc.dg/graphite/graphite.exp: Added a rule to execute
2356 * gcc.dg/graphite/run-id-1.c: New.
2358 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2360 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
2361 positivity constraint on the symbolic number of iterations.
2363 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2365 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
2367 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2368 Tobias Grosser <grosser@fim.uni-passau.de>
2370 * graphite-clast-to-gimple.c (build_scop_context): Removed.
2371 (build_cloog_prog): Directly use SCOP_CONTEXT.
2372 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
2373 (free_scop): Free SCOP_CONTEXT.
2374 (print_scop_context): New.
2375 (print_scop): Call print_scop_context.
2376 (debug_scop_context): New.
2377 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
2378 (struct scop): Added field context.
2379 (SCOP_CONTEXT): New.
2380 * graphite-sese-to-poly.c (add_param_constraints): New.
2381 (build_scop_context): New.
2382 (build_poly_scop): Call build_scop_context.
2384 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2386 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
2387 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
2388 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
2389 * graphite-ppl.h: Include double-int.h and tree.h.
2390 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
2391 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
2392 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
2393 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
2395 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2397 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
2398 POINTER_PLUS_EXPR for pointer types.
2399 (clast_to_gcc_expression): Same.
2401 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2403 * graphite-poly.c (print_scattering_function): Early return when
2404 PBB_TRANSFORMED_SCATTERING is not initialized.
2405 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
2407 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
2409 * tree-parloops.c (analyze_reduction_list): Remove unused variable
2412 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
2414 * tree-parloops.c (analyze_reduction_list): Change return
2416 (try_create_reduction_list): Move the call to
2417 analyze_reduction_list to the beginining.
2418 Call reduction_phi with analyzed_reductions as argument
2419 instead of reduction_list.
2421 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
2423 * Merge from mainline (r148296:149346)
2425 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2427 * graphite-scop-detection.c (graphite_can_represent_init): New.
2428 (graphite_can_represent_scev): Call graphite_can_represent_init:
2429 check that the initial value does not contain multiplications of
2431 (stmt_has_simple_data_refs_p): New.
2432 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
2433 (is_simple_operand): Fix formatting.
2434 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
2436 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2438 * gcc.dg/graphite/id-13.c: New.
2439 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
2440 analyze_scalar_evolution, use scalar_evolution_in_region.
2441 (scan_tree_for_params_right_scev): Add extra assert.
2442 (parameter_index_in_region_1): Split from parameter_index_in_region.
2443 (idx_record_params): Use scalar_evolution_in_region.
2444 (find_params_in_bb): Same.
2445 (find_scop_parameters): Same.
2446 (build_loop_iteration_domains): Same.
2447 (create_linear_expr_from_tree): Same.
2448 * sese.c (scalar_evolution_in_region): New.
2449 * sese.h (scalar_evolution_in_region): Declared.
2450 (defined_in_sese_p): New.
2451 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
2453 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
2456 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2458 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
2459 TREE_DATA_REF_H also implies SCEV_H.
2461 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2463 * graphite-poly.c (print_scop_params): New.
2464 (print_scop): Call print_scop_params.
2465 (debug_scop_params): New.
2466 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
2468 2009-07-07 Li Feng <nemokingdom@gmail.com>
2470 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
2471 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
2472 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
2473 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
2474 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
2475 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
2477 2009-07-07 Li Feng <nemokingdom@gmail.com>
2479 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
2480 for dependency checking part.
2481 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
2482 tests for dependency checking.
2483 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2484 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2485 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
2486 flag -fdump-tree-graphite-all for autopar testsuites.
2488 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2490 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
2491 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
2492 canonicalize_loop_ivs): Moved...
2493 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
2495 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2497 * tree-parloops.c (try_create_reduction_list): Pass an extra
2498 argument analyzed_reductions. Call analyze_reduction_list.
2499 (gen_parallel_loop): Do not call analyze_reduction_list.
2500 (parallelize_loops): Init and finalize analyzed_reductions.
2502 2009-07-06 Li Feng <nemokingdom@gmail.com>
2504 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2505 Added flag -fno-loop-strip-mine for autopar testcase.
2507 2009-07-04 Li Feng <nemokingdom@gmail.com>
2509 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
2510 transformed scattering dimension instead of unmatch orignal when
2511 calling dependence_polyhedron.
2513 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2515 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
2517 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2519 * graphite-poly.c (pbb_number_of_iterations): Check for returned
2520 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
2522 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2524 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
2525 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
2526 * graphite-poly.c (pbb_number_of_iterations): New.
2527 * graphite-poly.h (pbb_number_of_iterations): Declared.
2528 (pbb_iterator_dim, pbb_parameter_dim): New.
2530 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
2532 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
2533 last commit on type of lower and upper bound of loops.
2535 2009-06-29 Li Feng <nemokingdom@gmail.com>
2537 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
2538 graphite-dependences.h.
2539 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
2540 (mark_bb_with_pbb): New.
2541 (get_stmtfor_depth): New.
2542 (find_pbb_via_hash): New.
2543 (dependency_in_loop_p): New.
2544 (mark_loops_parallel): New.
2545 (free_aux_in_new_loops): New.
2546 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
2547 bb with it's relevant pbb. Mark newly created loops. Remove mark
2548 innermost loop parallel without checking.
2549 (gloog): Add parameter BB_PBB_MAPPING.
2550 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
2551 (gloog): Change declaration.
2552 (mark_loop_parallel): Make extern.
2553 (free_aux_in_new_loops): Declare.
2554 (bb_pbb_map_hash): New.
2555 (eq_bb_pbb_map): New.
2556 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
2557 auto parallelization when flag_graphite_force_parallel is set.
2558 (graphite_finalize): Added free_aux_in_new_loops.
2559 * tree-parloops.c (parallelize_loops): Only generate parallel code for
2560 the innermost loop that marked parallel. Use
2561 flag_graphite_force_parallel instead of loop->can_be_parallel.
2562 (loop_parallel_p): Move inner most checking out of function.
2564 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2566 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
2567 type of lower and upper bound of loops signed long int.
2569 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2571 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
2572 expression outside the loop.
2574 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2576 * gcc.dg/graphite/interchange-8.c: New.
2578 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2580 * gcc.dg/graphite/interchange-0.c: XFailed.
2581 * gcc.dg/graphite/interchange-5.c: XFailed.
2582 * gcc.dg/graphite/interchange-6.c: XFailed.
2584 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2586 * graphite-interchange.c (compute_array_size_poly): The end of the
2587 recursion should return 1.
2589 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2591 * graphite-interchange.c (compute_array_size_cstr): Allow the
2592 subscript multiplier to be -1.
2593 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
2594 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
2595 data_container. Initializes PDR_DATA_CONTAINER.
2596 (print_pdr_access_layout): New.
2597 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
2598 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
2600 (PDR_DATA_CONTAINER): New.
2601 (new_poly_dr): Update declaration.
2602 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
2603 (build_poly_dr): Call pdr_add_data_dimensions.
2605 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2607 * graphite-poly.h (struct poly_dr): Fix comment.
2608 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
2609 (pdr_add_memory_accesses): New.
2610 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
2612 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2614 * graphite-poly.c (print_pdrs, debug_pdrs): New.
2615 (print_pbb): Add call to print_pdrs.
2616 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
2618 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2619 Li Feng <nemokingdom@gmail.com>
2621 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
2622 (dependency_between_pbbs_p): New.
2623 (lexicographically_gt_p): Assure !empty_p before polyhedron
2624 intersection assign.
2625 (build_lexicographically_gt_constraint): Correct lexicographically
2627 * graphite-dependences.h: New.
2628 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
2630 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2632 * graphite-clast-to-gimple.c (print_clast_stmt): New.
2633 (gloog): Print to dump_file the generated clast.
2634 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
2635 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
2637 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2639 * graphite-poly.c (extend_scattering): Increment
2640 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
2642 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2644 * graphite-interchange.c (compute_array_size_poly): Added exit of
2645 recursion condition. Continue iterating even after the first equality.
2646 (compute_array_size): Same.
2648 2009-06-24 Li Feng <nemokingdom@gmail.com>
2650 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
2651 -fdump-tree-final_cleanup to -fdump-tree-optimized.
2652 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2653 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2654 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
2656 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2658 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
2659 only when the use verifies is_gimple_reg.
2661 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2663 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
2664 Allocate scaldims after call to unify_scattering_dimensions.
2666 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2668 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
2670 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2671 Albert Cohen <albert.cohen@inria.fr>
2673 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
2674 variables for the strip mining.
2676 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2677 Pranav Garg <pranav.garg2107@gmail.com>
2679 * Makefile.in (OBJS-common): Added graphite-blocking.o.
2680 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
2681 (graphite-blocking.o): New rule.
2682 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
2683 * graphite-blocking.c: New.
2684 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
2685 flag_loop_strip_mine.
2686 (psct_scattering_dim_for_loop_depth): New.
2687 * graphite-poly.h (scop_do_strip_mine): Declared.
2688 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
2689 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
2690 flag_loop_strip_mine.
2692 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2694 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
2695 a GMP value and a PPL coefficient at each iteration of a loop.
2697 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2699 * graphite-dependences.c (dependence_polyhedron): Do not use
2700 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
2701 pbb_nb_scattering_transform.
2702 (graphite_legal_transform_dr): Same.
2703 * graphite-poly.c (extend_scattering): Same.
2704 (unify_scattering_dimensions): Same.
2705 (print_scattering_function): Same.
2706 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
2707 PBB_NB_LOCAL_VARIABLES.
2708 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
2709 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
2710 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
2711 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
2712 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
2713 (pbb_nb_scattering_transform): New.
2714 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
2715 (psco_scattering_dim): Add assert on parameters.
2716 (psct_scattering_dim): Same.
2717 (psct_scattering_dim_for_loop_depth): Declared.
2718 (psct_local_var_dim): New.
2719 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
2720 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
2721 correct layout, call pbb_nb_local_vars.
2722 (psct_add_local_variable, psct_add_scattering_dimension): New.
2723 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2724 Initialize PBB_NB_SCATTERING_TRANSFORM.
2726 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2728 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
2729 (set_coef): Renamed ppl_set_coef.
2730 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
2732 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2734 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
2735 test a boolean against 1.
2736 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
2737 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
2738 (pbb_do_interchange): Returns true when a transform has been performed.
2739 (scop_do_interchange): Same.
2740 * graphite-poly.c (apply_poly_transforms): Use the return value of
2741 scop_do_interchange.
2742 * graphite-poly.h (scop_do_interchange): Update declaration.
2744 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
2746 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
2748 * sese.c (sese_reset_aux_in_loops): New.
2749 * sese.h (sese_reset_aux_in_loops): New.
2751 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2753 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
2754 multiplier and multiply the constant by the multiplier.
2755 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
2756 (build_poly_dr): Do not use the multiplier to define the subscript.
2758 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2760 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
2761 compiler's data reference. Initialize PDR_CDR.
2762 (print_pdr): Call dump_data_reference.
2763 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
2764 Add compiler_dr field.
2765 (PDR_BB): Renamed PDR_PBB.
2767 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
2768 GCC's data reference representation.
2769 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
2770 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
2772 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2774 * graphite-poly.c (print_scattering_function): Also print the layout.
2775 * graphite-poly.h (pbb_nb_local_vars): New.
2777 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2779 * graphite-poly.c (print_pbb_domain): Also print the layout names.
2781 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2783 * graphite-poly.c (print_pdr, debug_pdr): New.
2784 * graphite-poly.h (print_pdr, debug_pdr): Declared.
2785 (PDR_BASE): Removed.
2787 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2789 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
2792 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2794 * graphite-interchange.c (compute_subscript): Allow also -1 in the
2795 subscript identification column.
2796 (pbb_do_interchange): Print to dump_file that some loops "will be
2797 interchanged". Rely on that chain of characters in the testcases.
2798 * gcc.dg/graphite/interchange-0.c: New.
2799 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
2800 interchange-*.c files and compile them with -floop-interchange.
2802 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
2804 * graphite-interchange.c (interchange_profitable_p): Renamed
2805 pbb_interchange_profitable_p.
2807 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2808 Harsha Jagasia <harsha.jagasia@amd.com>
2809 Pranav Garg <pranav.garg2107@gmail.com>
2811 * graphite-interchange.c (interchange_profitable_p): Make static.
2812 (pbb_interchange_loop_depths, pbb_do_interchange,
2813 scop_do_interchange): New.
2814 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
2815 for flag_loop_interchange.
2816 * graphite-poly.h (scop_do_interchange): Declared.
2817 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
2818 flag_loop_interchange is used.
2820 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2822 * graphite-dependences.c (dependence_polyhedron): Update use of
2823 pbb_nb_scattering_dims.
2824 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
2825 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
2826 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
2827 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
2829 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2831 * graphite.c: Cleanup foo.
2833 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2835 * Merge from mainline (r143684:148293).
2836 * Disabled libpcp until it gets fixed.
2838 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
2839 Harsha Jagasia <harsha.jagasia@amd.com>
2841 * graphite-interchange.c: New.
2842 * Makefile.in (graphite-interchange.o): New.
2843 * graphite-poly.h (interchange_profitable_p): Declared.
2844 * graphite-ppl.h (value_max): New.
2846 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2848 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
2849 * graphite-poly.h: Fix some comments.
2853 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2856 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
2857 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
2858 (pdr_accessp_nb_params): Renamed pdr_nb_params.
2859 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
2860 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
2861 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
2862 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
2863 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
2864 * graphite-clast-to-gimple.c: Same.
2865 * graphite-dependences.c: Same.
2866 * graphite-poly.c: Same.
2867 * graphite-sese-to-poly.c: Same.
2869 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2871 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
2872 expressions for an IV rename, as returned by clast_to_gcc_expression.
2873 (copy_renames): Rename new_name to expr.
2874 * sese.c (debug_rename_elt): Same.
2877 (sese_adjust_liveout_phis): Call force_gimple_operand before using
2878 the information from the rename map.
2879 (rename_variables_in_stmt): Same.
2880 (add_loop_exit_phis): Rename new_name to expr.
2881 (insert_loop_close_phis): Same.
2882 (add_guard_exit_phis): Same. Call force_gimple_operand.
2883 * sese.h (struct rename_map_elt): Rename new_name to expr.
2884 (new_rename_map_elt): Same.
2886 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2888 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
2889 * sese.c (set_rename): Make it extern.
2890 * sese.h (set_rename): Declared.
2892 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2894 * graphite-poly.c (extend_scattering): Free values.
2895 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
2897 (ppl_print_powerset_matrix): Same.
2898 * graphite-scop-detection.c (free_scops_1): New.
2899 (limit_scops): Call free_scops_1.
2900 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
2901 (build_poly_dr): Free PPL coefficients.
2902 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
2904 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
2906 * graphite-dependences.c: New.
2907 * graphite-data-ref.c: Removed.
2908 * graphite-data-ref.h: Removed.
2909 * Makefile.in (graphite-data-ref.o): Removed.
2910 (graphite-dependences.o): Added.
2911 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
2912 * graphite-poly.c: Same.
2913 Move the data dependence testing to graphite-dependences.c.
2915 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
2917 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
2918 from graphite_cannot_represent_loop. Code refactored.
2919 (scopdet_basic_block_info): Call graphite_can_represent_loop.
2921 2009-05-17 Li Feng <nemokingdom@gmail.com>
2923 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2924 Cover all the testcases (not only the filtered ones).
2926 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
2928 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
2929 unnecessary check. Update comments. Move check for REAL_TYPE here.
2930 (harmful_stmt_in_bb): Remove checks for conditions. This is already
2931 done in (stmt_simple_for_scop_p).
2933 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
2935 * graphite.c (print_global_statistics): New.
2936 (print_graphite_scop_statistic): New.
2937 (print_graphite_statistics): New.
2938 (graphite_initialize, graphite_transform_loops): Print statistics.
2939 * graphite-scop-detection (build_scops): Print statistics.
2940 (print_graphite_scop_statistics): New.
2941 (print_graphite_statistics): New.
2943 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2945 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
2946 (debug_clast_name_index): Removed.
2947 (debug_clast_name_indexes_1): Removed.
2948 (debug_clast_name_indexes): Removed.
2949 (clast_name_index_elt_info): Removed.
2950 (eq_clast_name_indexes): Removed.
2951 (clast_name_to_index): Removed.
2952 (new_clast_name_index): Removed.
2953 (save_clast_name_index): Removed.
2954 (save_var_name): Moved...
2955 (init_sese_params_index): Removed.
2956 (clast_name_to_gcc): Remove use of name_tree.
2957 (initialize_cloog_names): Same.
2958 (gloog): Do not call init_sese_params_index.
2959 * graphite-sese-to-poly.c (save_var_name): ...here.
2960 (parameter_index_in_region): New.
2961 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
2962 (parameter_index_in_region): Removed.
2963 (is_parameter): Remove use of name_tree.
2964 * sese.h (struct name_tree): Removed.
2965 (struct sese): Remove use of name_tree. New field params_names.
2966 (SESE_PARAMS_NAMES): New.
2967 (SESE_PARAMS): Remove duplicate.
2968 (parameter_index_in_region): Removed.
2969 (sese_nb_params): Remove use of name_tree.
2970 (struct clast_name_index): New.
2971 (new_clast_name_index): New.
2972 (clast_name_to_index): New.
2973 (save_clast_name_index): New.
2974 (debug_clast_name_index): New.
2975 (debug_clast_name_indexes_1): New.
2976 (debug_clast_name_indexes): New.
2977 (clast_name_index_elt_info): New.
2978 (eq_clast_name_indexes): New.
2980 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2982 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
2983 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
2984 (graphite_loop_normal_form): Do not pass region. Do not
2985 initialize SESE_OLDIVS.
2986 (build_graphite_loop_normal_form): Update call to
2987 graphite_loop_normal_form.
2988 * sese.c (debug_oldivs): Removed.
2989 (new_sese): Do not initialize SESE_OLDIVS.
2990 (free_sese): Do not free SESE_OLDIVS.
2991 (oldiv_for_loop): Removed.
2992 * sese.h (struct sese): Remove old_ivs.
2993 (SESE_OLDIVS): Removed.
2994 (oldiv_for_loop): Removed.
2996 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2998 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
2999 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
3000 replaced by a call to newivs_to_depth_to_newiv.
3001 (clast_to_gcc_expression): Pass newivs, remove ivstack.
3002 (clast_to_gcc_expression_red): Same.
3003 (gcc_type_for_clast_expr): Same.
3004 (gcc_type_for_clast_eq): Same.
3005 (graphite_translate_clast_equation): Same.
3006 (graphite_create_guard_cond_expr): Same.
3007 (graphite_create_new_guard): Same.
3008 (graphite_create_new_loop): Same.
3009 (build_iv_mapping): Same.
3010 (translate_clast): Same.
3012 (loop_iv_stack_patch_for_consts): Removed. *
3013 sese.c (iv_stack_entry_is_constant): Removed.
3014 (iv_stack_entry_is_iv): Removed.
3015 (loop_iv_stack_push_iv): Removed.
3016 (loop_iv_stack_insert_constant): Removed.
3017 (loop_iv_stack_pop): Removed.
3018 (loop_iv_stack_get_iv): Removed.
3019 (loop_iv_stack_get_iv_from_name): Removed.
3020 (debug_loop_iv_stack): Removed.
3021 (free_loop_iv_stack): Removed.
3022 (loop_iv_stack_remove_constants): Removed. *
3023 sese.h (iv_stack_entry_kind): Removed.
3024 (iv_stack_entry_data_union): Removed.
3025 (iv_stack_entry_struct): Removed.
3026 (iv_stack_entry_p): Removed.
3027 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
3028 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
3029 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
3030 loop_iv_stack_pop, free_loop_iv_stack): Removed.
3031 (gbb_loop_at_index): Fix indenting.
3032 (gbb_loop_index): Removed.
3034 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3036 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
3037 Call clast_name_to_index.
3039 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3041 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
3042 do not pass params. Get params from SESE_PARAMS.
3043 (clast_to_gcc_expression): Same.
3044 (clast_to_gcc_expression_red): Same.
3045 (gcc_type_for_clast_eq): Same.
3046 (graphite_translate_clast_equation): Same.
3047 (graphite_create_new_loop): Same.
3048 * sese.c (rename_variables_in_stmt): Fix comment.
3050 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3052 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
3054 Call save_clast_name_index.
3055 (translate_clast): Pass newivs_index.
3056 (gloog): Create and free newivs_index.
3058 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3060 * graphite-clast-to-gimple.c (clast_name_index): New structure.
3061 (clast_name_index_p): New type.
3062 (debug_clast_name_index): New.
3063 (debug_clast_name_indexes_1): New.
3064 (debug_clast_name_indexes): New.
3065 (clast_name_index_elt_info): New.
3066 (eq_clast_name_indexes): New.
3067 (clast_name_to_index): New.
3068 (new_clast_name_index): New.
3069 (save_clast_name_index): New.
3070 (init_sese_params_index): New.
3071 (gloog): Call init_sese_params_index.
3072 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
3073 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
3074 (free_sese): Free SESE_PARAMS_INDEX.
3075 * sese.h (struct sese): Add params_index.
3076 (SESE_PARAMS_INDEX): New.
3078 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3080 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
3081 (graphite_create_new_loop): Pass the newivs vector. Push the
3082 newly created IV to newivs.
3083 (translate_clast): Pass the newivs vector.
3084 (gloog): Create and destroy the newivs vector.
3086 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3088 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
3089 (graphite_loop_normal_form): Initialize loop->aux with the unique
3090 IV that has been created.
3092 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
3094 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
3095 scev with parameters in the base part. They where forbidden
3098 2009-05-11 Li Feng <nemokingdom@gmail.com>
3100 * gcc.dg/graphite/graphite.exp: Set different default
3101 compile options by file names.
3102 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
3103 * gcc.dg/graphite/id-{1-9}.c: Ditto.
3104 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
3105 * gcc.dg/graphite/scop-matmult.c: Ditto.
3107 2009-05-08 Li Feng <nemokingdom@gmail.com>
3109 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
3110 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
3111 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
3112 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
3114 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
3116 * graphite-scop-detection (build_scops_1): Fix little bug introduced
3119 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
3121 * graphite-scop-detection.c (graphite_can_represent_scev): Only
3122 allow integer constant strides.
3123 (graphite_can_represent_expr): Depend on outermost_loop.
3124 (stmt_simple_memref_p, graphite_cannot_represent_loop,
3125 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
3126 build_scops_1): Same.
3127 (scopdet_basic_block_info): Same and insert layered SCoP
3129 (try_generate_gimple_bb): Cleanup.
3130 (build_scops): Enable data references.
3132 * gcc.dg/graphite/id-5.c: New.
3133 * gcc.dg/graphite/id-9.c: New.
3134 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
3135 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
3137 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3139 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
3140 that we have not yet built for this SCoP.
3142 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3144 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
3145 for complex numbers.
3147 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3149 * graphite-ppl.c: Fix build if cloog is not available.
3151 2009-05-04 Li Feng <nemokingdom@gmail.com>
3153 * tree-parloops.c (loop_parallel_p): Remove construction of
3154 NITER and REDUCTION_LIST.
3155 (try_get_loop_niter): New.
3156 (try_create_reduction_list): New.
3157 (parallelize_loops): Bypass the failed checkings in autopar
3158 when can_be_parallel in loop structure is set to true.
3160 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
3162 * gcc.dg/graphite/id-6.c: Update testcase.
3163 * gcc.dg/graphite/scop-3.c: Dito.
3165 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
3167 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3168 Enable EQ_EXPR and NE_EXPR again.
3170 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
3172 * graphite-scop-detection.c (graphite_can_represent_scev):
3173 Add check if scev is affine multivariate.
3174 (harmful_stmt_in_bb): Check if we can represent the conditions.
3175 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
3177 * gcc.dg/graphite/id-7.c: New.
3179 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
3181 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
3182 Check all bbs in region, not only the bbs that are represented in
3184 (build_poly_scop): Add newline.
3185 * gcc.dg/graphite/id-8.c: New.
3187 2009-04-30 Li Feng <nemokingdom@gmail.com>
3189 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
3190 when loop initialize.
3191 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
3192 * common.opt: Declare flag_graphite_force_parallel.
3193 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
3195 * graphite-poly.c (apply_poly_transforms): Introduce
3196 flag_graphite_force_parallel.
3197 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
3198 * toplev.c (process_options): ditto and replace a not correctly
3201 2009-04-30 Li Feng <nemokingdom@gmail.com>
3203 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
3204 Change the call of gbb_loop_at_index and/or gbb_loop_index due
3205 to the redefinition.
3206 (compute_cloog_iv_types_1): ditto.
3207 (build_iv_mapping): ditto.
3208 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
3210 (free_gimple_bb): Removed GBB_LOOPS related free part.
3211 (build_bb_loops): Removed.
3212 * sese.h (struct gimple_bb): Removed loops.
3213 (GBB_LOOPS): Removed.
3214 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
3215 (gbb_loop_index): ditto.
3217 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3219 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
3220 allow non constant strides.
3221 * gcc.dg/graphite/scop-20.c: New.
3223 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3225 * graphite-scop-detection.c (dot_all_scops): Fix system call
3226 return value warning.
3229 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3231 * gcc.dg/graphite/id-6.c: Fix pattern.
3232 * gcc.dg/graphite/scop-3.c: Same.
3234 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3236 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
3237 build_pairwise_constraint, dr_equality_constraints,
3238 build_pairwise_scheduling_equality,
3239 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3240 build_lexicographically_gt_constraint, dependence_polyhedron,
3241 graphite_legal_transform_dr, graphite_legal_transform_bb,
3242 graphite_legal_transform): New.
3243 * graphite-poly.h (graphite_legal_transform): Declared.
3244 * graphite-sese-to-poly.c (build_poly_scop): Call to
3245 graphite_legal_transform is disabled for the moment.
3247 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3249 * graphite-poly.h (pbb_nb_scattering_dims): New.
3250 (pbb_nb_scattering): Use it.
3252 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3254 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
3255 Pointset_Powerset version of ppl_insert_dimensions.
3256 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
3258 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3260 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
3262 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3264 * graphite-poly.h: Fix comment.
3266 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3268 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
3270 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3272 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
3275 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3277 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
3278 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
3281 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
3283 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
3284 handle EQ_EXPR and NE_EXPR.
3286 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
3288 * graphite-poly.h (poly_dr): Fix comment.
3290 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
3291 Tobias Grosser <grosser@fim.uni-passau.de>
3293 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
3294 with a zero dimension polyhedron.
3295 (find_scop_parameters): Move the call to scop_set_nb_params here.
3296 (build_loop_iteration_domains): Store in loop->aux the iteration
3298 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
3299 by any loop in scop.
3300 (build_poly_scop): Do not call scop_set_nb_params.
3302 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
3303 Tobias Grosser <grosser@fim.uni-passau.de>
3305 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
3306 add_condition_to_domain not GT_EXPR.
3308 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3310 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
3311 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
3312 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
3313 upper_bound_assign to calculate unions.
3314 * gcc.dg/graphite/id-6.c: New.
3316 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3318 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
3319 handle abnormal edges.
3321 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3323 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
3324 (free_poly_bb): Also free poly_drs.
3325 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
3326 (poly_dr): Polyhedron to Pointset_Powerset.
3327 (pdr_accessp_nb_subscripts): Same.
3328 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
3331 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3333 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
3334 names into more meaningful names.
3336 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3338 * gfortran.dg/graphite/interchange-1.c: New.
3339 * gfortran.dg/graphite/interchange-2.c: New.
3341 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3343 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
3345 * tree-parloops.c (rewrite_phi_with_iv): New.
3346 (rewrite_all_phi_nodes_with_iv): New.
3347 (canonicalize_loop_ivs): Call them.
3349 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3351 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
3352 graphite_find_data_references_in_stmt.
3353 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
3354 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
3356 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3358 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
3360 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3362 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
3363 instead of bb_in_region.
3364 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
3365 (build_sese_conditions): Use flag_bb_in_sese.
3366 * sese.c (register_bb_in_sese): Removed.
3367 (new_sese): Remove initialization of SESE_REGION_BBS.
3368 (free_sese): Do not free SESE_REGION_BBS.
3369 * sese.h (struct sese): Remove field region_basic_blocks.
3370 (SESE_REGION_BBS): Removed.
3371 (bb_in_sese_p): Implement in function of bb_in_region.
3373 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3375 * graphite-scop-detection.c (limit_scops): Deal only with single exit
3378 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3380 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
3382 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
3383 (add_condition_to_domain): New.
3384 (add_condition_to_pbb): New.
3385 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
3386 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
3388 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3390 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
3391 ppl_Pointset_Powerset.
3392 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
3393 * graphite-poly.h (poly_bb): poly_bb.domain Same.
3394 (pbb_nb_loops): Same.
3395 * graphite-sese-to-poly.c (build_loop_iteration_domains,
3396 add_conditions_to_domain): Same.
3397 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3398 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
3399 ppl_const_Polyhedron_t.
3400 (ppl_print_powerset_matrix): New.
3401 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
3402 ppl_print_powerset_matrix): New.
3403 (ppl_print_polyhedron_matrix): Updated.
3405 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3407 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
3409 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3411 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
3412 (print_iteration_domains, debug_iteration_domain,
3413 debug_iteration_domains): New.
3414 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
3415 debug_iteration_domains): Declared.
3416 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
3419 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>