1 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
3 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
5 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
8 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
9 should be an INTEGER_CST. Also handle CASE_CONVERT.
10 * gcc.dg/graphite/pr43306.c: New.
12 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
14 * graphite.c (graphite_initialize): To bound the number of bbs per
15 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
16 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
17 * doc/invoke.texi: Document it.
19 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
21 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
22 * graphite-sese-to-poly.h (build_poly_scop): Same.
24 2010-03-09 Sebastian Pop <sebastian.pop@amd.com>
26 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
27 the number of parameters in the scop. Use as an upper bound
28 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
29 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
30 * doc/invoke.texi: Document it.
32 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
34 * graphite-sese-to-poly.c (add_param_constraints): Use
35 lower_bound_in_type and upper_bound_in_type.
37 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
39 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
40 instead of unsigned_type_node.
42 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
43 Reza Yazdani <reza.yazdani@amd.com>
46 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
47 on pointer type parameters.
49 * gcc.dg/graphite/run-id-4.c: New.
51 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
54 * gcc.dg/graphite/run-id-3.c: New.
56 2010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
57 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
59 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
60 handle conversions from pointer to integers.
61 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
62 induction variable, to be able to work with code generated by CLooG.
63 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
64 (build_poly_scop): Bail out if we cannot codegen a loop.
66 2010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
68 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
69 code generation with gloog_error.
71 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
73 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
74 Call fold_convert on all the returned values.
75 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
76 the type of the resulting expression.
78 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
80 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
81 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
82 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
84 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
86 * graphite-dependences.c (map_into_dep_poly): Removed.
87 (dependence_polyhedron_1): Use combine_context_id_scat.
89 2010-03-04 Sebastian Pop <sebastian.pop@amd.com>
91 * graphite-poly.h (struct poly_scattering): Add layout documentation.
92 (struct poly_bb): Same.
93 (combine_context_id_scat): New.
95 2010-03-02 Sebastian Pop <sebastian.pop@amd.com>
98 * sese.c (name_defined_in_loop_p): Return false for default
101 * gcc.dg/graphite/pr42326.c: New.
103 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
105 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
106 and clean up the logic.
108 2010-02-23 Sebastian Pop <sebastian.pop@amd.com>
110 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
113 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
116 * graphite-scop-detection.c (create_single_exit_edge): Move
117 the call to find_single_exit_edge to....
118 (create_sese_edges): ...here. Don't handle multiple edges
119 exiting the function.
120 (build_graphite_scops): Don't handle multiple edges
121 exiting the function.
123 * gcc.dg/graphite/pr43083.c: New.
125 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
128 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
129 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
131 * gfortran.dg/graphite/pr43097.f: New.
133 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
134 Manuel López-Ibáñez <manu@gcc.gnu.org>
137 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
139 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
142 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
144 * g++.dg/graphite/pr43026.C: New.
146 2010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
148 * Merge from mainline (154736:156693).
150 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
153 * gcc.dg/graphite/pr43012.c: New.
155 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
157 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
158 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
160 * g++.dg/graphite/pr42930.C: New.
162 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
165 * graphite-scop-detection.c (graphite_can_represent_scev): Call
166 graphite_can_represent_init for MULT_EXPR.
168 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
172 * graphite-sese-to-poly.c (remove_phi): New.
173 (translate_scalar_reduction_to_array): Call remove_phi.
175 * gcc.dg/graphite/pr42530.c: New.
176 * gcc.dg/graphite/pr42914.c: New.
178 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
181 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
182 * graphite-clast-to-gimple.h (gloog): Update declaration.
183 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
184 * graphite-poly.h (struct poly_bb): Add missing comments.
185 (struct scop): Add poly_scop_p field.
187 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
188 * graphite.c (graphite_transform_loops): Build the polyhedral
189 representation for each scop before code generation.
190 * sese.c (rename_variables_in_operand): Removed.
191 (rename_variables_in_expr): Return the renamed expression.
192 (rename_sese_parameters): New.
193 * sese.h (rename_sese_parameters): Declared.
195 * gcc.dg/graphite/pr42771.c: New.
197 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
199 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
201 * gcc.dg/graphite/block-1.c: Same.
202 * gcc.dg/graphite/block-3.c: Same.
203 * gcc.dg/graphite/block-4.c: Same.
204 * gcc.dg/graphite/block-5.c: Same.
205 * gcc.dg/graphite/block-6.c: Same.
206 * gcc.dg/graphite/block-7.c: Same.
207 * gcc.dg/graphite/interchange-0.c: Same.
208 * gcc.dg/graphite/interchange-1.c: Same.
209 * gcc.dg/graphite/interchange-10.c: Same.
210 * gcc.dg/graphite/interchange-11.c: Same.
211 * gcc.dg/graphite/interchange-12.c: Same.
212 * gcc.dg/graphite/interchange-2.c: Same.
213 * gcc.dg/graphite/interchange-3.c: Same.
214 * gcc.dg/graphite/interchange-4.c: Same.
215 * gcc.dg/graphite/interchange-5.c: Same.
216 * gcc.dg/graphite/interchange-6.c: Same.
217 * gcc.dg/graphite/interchange-7.c: Same.
218 * gcc.dg/graphite/interchange-8.c: Same.
219 * gcc.dg/graphite/interchange-9.c: Same.
220 * gcc.dg/graphite/interchange-mvt.c: Same.
222 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
224 * gfortran.dg/graphite/id-19.f: New.
225 * gfortran.dg/graphite/pr14741.f90: New.
226 * gfortran.dg/graphite/pr41924.f90: New.
227 * gfortran.dg/graphite/run-id-2.f90: New.
229 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
232 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
233 to unknown_dependence.
234 (graphite_legal_transform_dr): Handle the unknown_dependence.
235 (graphite_carried_dependence_level_k): Same.
237 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
239 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
241 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
242 Konrad Trifunovic <konrad.trifunovic@inria.fr>
245 * graphite-dependences.c (build_lexicographical_constraint): Return
246 a union of dependence polyhedra.
247 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
249 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
250 * gcc.dg/graphite/block-4.c: Same.
251 * gcc.dg/graphite/block-7.c: Same.
252 * gcc.dg/graphite/interchange-12.c: Same.
253 * gcc.dg/graphite/interchange-mvt.c: Same.
254 * gfortran.dg/graphite/interchange-1.f: XFAILed.
255 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
256 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
258 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
260 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
261 the execution check to FAIL. This testcase is miscompiled by Graphite
262 and the check should be re-enabled.
263 * gcc.dg/graphite/interchange-mvt.c: Same.
264 * gcc.dg/graphite/block-0.c: Same.
265 * gcc.dg/graphite/block-4.c: Same.
266 * gcc.dg/graphite/block-7.c: Same.
268 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
270 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
271 * gcc.dg/graphite/scop-0.c: Fix spaces.
272 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
273 * gfortran.dg/graphite/block-2.f: Same.
274 * gfortran.dg/graphite/block-3.f90: Same.
275 * gfortran.dg/graphite/block-4.f90: Same.
276 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
277 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
279 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
281 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
282 PDDR_ORIGINAL_SCATTERING_P.
283 (pddr_is_empty): Rewritten.
284 (print_dependence_polyhedron_layout): New.
287 (build_alias_set_powerset): Moved up.
288 (poly_drs_may_alias_p): Moved up.
289 (lexicographically_gt_p): Removed.
290 (build_lexicographically_gt_constraint): Renamed
291 build_lexicographical_constraint, reimplemented.
292 (dependence_polyhedron_1): Simplified parameters.
293 (dependence_polyhedron): Same. Keep along empty PDDRs
294 to make efficient use of the cache.
295 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
296 (graphite_legal_transform_dr): Rewritten.
297 (graphite_legal_transform_bb): Pass fewer arguments to
298 graphite_legal_transform_dr.
299 (graphite_carried_dependence_level_k): Simplified implementation.
300 (dot_original_deps_stmt_1): Call dependence_polyhedron.
301 (dot_transformed_deps_stmt_1): Same.
302 (dot_original_deps): Same.
303 (dot_transformed_deps): Same.
304 * graphite-dependences.h (struct poly_ddr): Added a new field
305 original_scattering_p.
306 (PDDR_ORIGINAL_SCATTERING_P): New.
307 (print_pddr): Declared.
308 (debug_pddr): Declared.
309 * graphite-ppl.c: Clarify comment.
310 * sese.h (print_gimple_bb): Removed unused declaration.
313 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
315 * g++.dg/graphite/graphite.exp: Rewritten.
316 * gcc.dg/graphite/graphite.exp: Rewritten.
317 * gfortran.dg/graphite/graphite.exp: Rewritten.
318 * gcc.dg/graphite/block-0.c: Added runtime test.
319 * gcc.dg/graphite/block-1.c: Same.
320 * gcc.dg/graphite/block-3.c: Same.
321 * gcc.dg/graphite/block-4.c: Same.
322 * gcc.dg/graphite/block-5.c: Same.
323 * gcc.dg/graphite/block-6.c: Same.
324 * gcc.dg/graphite/block-7.c: Same.
325 * gcc.dg/graphite/interchange-0.c: Same.
326 * gcc.dg/graphite/interchange-1.c: Same.
327 * gcc.dg/graphite/interchange-10.c: Same.
328 * gcc.dg/graphite/interchange-11.c: Same.
329 * gcc.dg/graphite/interchange-12.c: Same.
330 * gcc.dg/graphite/interchange-2.c: Same.
331 * gcc.dg/graphite/interchange-3.c: Same.
332 * gcc.dg/graphite/interchange-4.c: Same.
333 * gcc.dg/graphite/interchange-5.c: Same.
334 * gcc.dg/graphite/interchange-6.c: Same.
335 * gcc.dg/graphite/interchange-7.c: Same.
336 * gcc.dg/graphite/interchange-8.c: Same.
337 * gcc.dg/graphite/interchange-9.c: Same.
338 * gcc.dg/graphite/interchange-mvt.c: Same.
339 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
341 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
343 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
346 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
348 * common.opt: Add -fgraphite-cloog-opts.
349 * graphite-clast-to-gimple.c (set_cloog_options): Same.
350 * opts.c (decode_options): Same.
352 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
354 * gcc.dg/graphite/id-17.c: New.
355 * gcc.dg/graphite/pr41888.c: New.
356 * gcc.dg/graphite/scop-22.c: New.
357 * gfortran.dg/graphite/pr40982.f90: New.
359 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
361 * graphite-dependences.c: Clarify comments.
362 (build_pddr): Add an extra parameter direction.
363 (graphite_legal_transform_dr): Use build_pddr.
364 (dot_original_deps_stmt_1): Update use of build_pddr.
365 (dot_transformed_deps_stmt_1): Same.
366 (dot_original_deps): Same.
367 (dot_transformed_deps): Same.
369 * gcc.dg/graphite/interchange-12.c: New.
370 * gcc.dg/graphite/block-7.c: New.
372 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
374 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
375 (pddr_transformed_scattering): Removed.
376 (graphite_legal_transform_dr): Use build_pddr.
377 (dot_original_deps_stmt_1): Same.
378 (dot_transformed_deps_stmt_1): Same.
379 (dot_original_deps): Same.
380 (dot_transformed_deps): Same.
382 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
384 * graphite-dependences.c (lexicographically_gt_p): Add comments.
385 (build_lexicographically_gt_constraint): Same.
386 (dependence_polyhedron_1): Same.
387 (dependence_polyhedron): Same.
389 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
391 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
392 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
393 (lexicographically_gt_p): Change type of direction to int.
394 (build_lexicographically_gt_constraint): Same.
395 (dependence_polyhedron_1): Same.
396 (dependence_polyhedron): Same.
397 (pddr_original_scattering): Use integers for direction.
398 (pddr_transformed_scattering): Same.
399 (graphite_legal_transform_dr): Same.
400 (graphite_carried_dependence_level_k): Same.
402 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
404 * graphite-dependences.c (build_pairwise_constraint): Renamed
405 ppl_build_relation. Moved...
406 (dr_equality_constraints): Use ppl_build_relation.
407 (build_pairwise_scheduling_equality): Same.
408 (build_pairwise_scheduling_inequality): Same.
409 * graphite-ppl.c (ppl_build_relation): ...here.
410 * graphite-ppl.h (ppl_build_relation): Declared.
412 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
415 * graphite-clast-to-gimple.c (gloog_error): New static variable.
416 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
417 Set gloog_error when such an expression failed to be built.
418 (translate_clast): Early return when gloog_error is set.
419 (gloog): Clear gloog_error. When gloog_error is set, call
420 set_ifsese_condition to enable the original code. Return the status
421 of the code generation based on gloog_error.
422 * sese.c (set_ifsese_condition): New.
423 * sese.h (set_ifsese_condition): Declared.
425 * g++.dg/graphite/pr42681.C: New.
427 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
430 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
431 rename_nb_iterations.
432 * sese.c (rename_variables_in_operand): New.
433 (rename_variables_in_expr): New.
434 (rename_nb_iterations): New.
435 (sese_adjust_liveout_phis): Update the rename_map.
436 * sese.h (rename_nb_iterations): Declared.
437 * tree-scalar-evolution.c (scev_reset_htab): New.
438 (scev_reset): Call scev_reset_htab.
439 * tree-scalar-evolution.h (scev_reset_htab): Declared.
441 * gfortran.dg/graphite/pr42732.f: New.
443 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
446 * graphite-clast-to-gimple.c: Fix formatting.
447 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
448 (expr_defined_in_loop_p): New.
449 (add_loop_exit_phis): Also handle full expressions: remove from
450 the rename_map the expressions defined in the loop that we're closing.
452 * gfortran.dg/graphite/pr42393-1.f90: New.
453 * gfortran.dg/graphite/pr42393.f90: Add new flags
454 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
455 make this testcase useful in the Graphite branch.
457 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
459 * graphite-scop-detection.c (exclude_component_ref): Removed.
460 (is_simple_operand): Removed.
461 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
463 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
466 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
467 the array indexing of ADDR_EXPRs.
469 * gcc.dg/graphite/pr42221.c: New.
471 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
474 * graphite.c (graphite_finalize): Call scev_reset.
475 (graphite_transform_loops): Do not call scev_reset between the code
478 * gcc.dg/graphite/pr42521.c: New.
480 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
482 * graphite-interchange.c (memory_stride_in_loop): Renamed
484 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
485 (memory_strides_in_loop): Memoize the memory strides per loop.
486 (lst_interchange_profitable_p): Do not initialize to zero the memory
488 * graphite-poly.h (struct lst): Add a field memory_strides.
489 (LST_LOOP_MEMORY_STRIDES): New.
490 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
491 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
493 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
495 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
496 memory_strides_in_loop. Gather memory strides on a whole loop.
497 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
498 (lst_interchange_profitable_p): Removed.
499 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
501 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
503 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
504 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
505 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
506 Remove context_loop and level.
508 2010-01-07 Richard Guenther <rguenther@suse.de>
510 PR tree-optimization/42641
511 * sese.c (rename_map_elt_info): Use the SSA name version, do
514 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
516 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
517 blocked" only when both the strip mine and the interchange have
520 * gcc.dg/graphite/block-2.c: Removed.
521 * gcc.dg/graphite/block-3.c: Add scan pattern.
522 * gcc.dg/graphite/block-4.c: Same.
523 * gcc.dg/graphite/block-5.c: Same.
524 * gcc.dg/graphite/block-6.c: Same.
526 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
528 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
529 before allocating a new one.
530 (copy_renames): Check that slot is not NULL.
531 (mark_bb_with_pbb): Same.
532 (compute_cloog_iv_types_1): Same.
533 * graphite-interchange.c (lst_perfect_nestify): Free the before,
534 nest, and after LSTs.
535 (lst_try_interchange_loops): Same.
537 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
540 * graphite-interchange.c (lst_try_interchange_loops): Do not return
541 the before, nest, and after LSTs.
542 (lst_try_interchange): Removed.
543 (lst_interchange_select_inner): Do not iterate over the LSTs if they
545 (lst_interchange_select_outer): Apply interchange on the outer loop
546 until there are no more changes in the inner loops.
548 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
550 Revert patch fixing PR middle-end/42221.
552 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
555 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
558 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
560 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
563 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
564 that contain only one statement.
566 * gfortran.dg/graphite/pr42180.f90: New.
568 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
571 * gfortran.dg/graphite/pr42393.f90: New.
573 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
576 * gfortran.dg/graphite/pr42186.f90: New.
578 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
581 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
582 Insert the reduction copy in the same block as the phi node.
583 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
585 * gcc.dg/graphite/pr42205-1.c: New.
586 * gcc.dg/graphite/pr42205-2.c: New.
588 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
591 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
592 the array indexing of ADDR_EXPRs.
594 * gcc.dg/graphite/pr42221.c: New.
596 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
600 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
601 index. Call lst_interchange_select_inner only once.
602 (lst_interchange_select_inner): Update use of lst_try_interchange.
603 (lst_interchange_select_outer): Update.
605 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
609 * graphite-interchange.c (lst_try_interchange): Do not increment the
610 the OUTER index when there is no AFTER kernel. Do not increment the
611 OUTER index for after processing the AFTER kernel.
612 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
613 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
614 index. Do not pass to lst_interchange_select_inner the OUTER index.
615 (scop_do_interchange): Update use of lst_interchange_select_outer.
617 * gfortran.dg/graphite/graphite.exp
618 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
619 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
620 the graphite dump file.
621 * gfortran.dg/graphite/interchange-2.f: Same.
622 * gfortran.dg/graphite/pr42334-1.f: New.
624 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
628 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
630 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
631 (lst_try_interchange): Reimplemented.
632 (lst_interchange_select_inner): Same.
633 (lst_do_interchange): Renamed lst_interchange_select_outer.
635 (scop_do_interchange): Update use of lst_interchange_select_outer.
637 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
638 * gcc.dg/graphite/block-0.c: Un-XFAILed.
639 * gcc.dg/graphite/pr42211.c: New.
640 * gfortran.dg/graphite/pr42334.f90: New.
642 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
645 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
646 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
648 * gfortran.dg/graphite/pr42181.f90: New.
650 2009-12-12 Sebastian Pop <sebpop@gmail.com>
653 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
654 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
655 (detect_commutative_reduction_arg): Simplified.
656 (detect_commutative_reduction): Early return when the argument of
657 the close phi is not of an SSA_NAME.
659 * gcc.dg/graphite/pr42284.c: New.
661 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
663 * dbgcnt.def (graphite_scop): New counter.
664 * graphite.c: Include dbgcnt.h
665 (graphite_transform_loops): Use new counter to limit transformations.
667 2009-12-08 Sebastian Pop <sebpop@gmail.com>
670 * graphite-scop-detection.c (graphite_can_represent_init): Also
671 handle more complex MULT_EXPRs containing parameters by recursion
674 * gfortran.dg/graphite/pr42285.f90: New.
676 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
678 * g++.dg/graphite/pr42130.C: Fix type.
680 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
682 * g++.dg/graphite/pr42130.C: Correct testcase.
684 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
686 * Merge from mainline (154493:154734).
688 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
690 * Merge from mainline (151362:154491).
692 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
694 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
695 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
697 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
700 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
701 translate_clast_for_loop): New.
702 (translate_clast_for): Add a condition around the loop, to do not
703 execute loops with zero iterations.
704 * g++.dg/graphite/pr42130.C: New.
705 * gcc.dg/graphite/pr35356-2.c: Adapt.
707 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
709 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
710 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
711 Remove context_loop and level.
713 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
715 * graphite-clast-to-gimple.c (translate_clast_user,
716 translate_clast_for, translate_clast_guard): Simplify and move common
717 elements to translate_clast().
718 (translate_clast): Simplify and get common elements.
720 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
722 * graphite-clast-to-gimple.c (translate_clast_user,
723 translate_clast_for, translate_clast_guard): Split out of
726 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
728 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
729 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
730 debug_clast_name_indexes_1, debug_clast_name_indexes,
731 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
732 (clast_name_to_gcc, clast_to_gcc_expression,
733 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
734 gcc_type_for_clast_eq, graphite_translate_clast_equation,
735 graphite_create_guard_cond_expr, graphite_create_new_loop,
736 translate_clast): Add params_index.
737 (initialize_cloog_names): Create parameter strings from scratch, do
738 not reference other strings.
739 (create_params_index): New.
740 (gloog): Initialize params_index.
741 * graphite-scop-detection (free_scops_1): Removed.
742 (limit_scops): Use normal free_scops.
743 * graphite-sese-to-poly.c (save_var_names): Removed.
744 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
745 and SESE_PARAMS_INDEX.
746 * sese.c (new_sese, free_sese): Dito.
747 * sese.h (struct sese): Remove params_index, params_names.
748 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
750 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
752 Revert the following patch from 2009-09-14:
753 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
754 tree-scalar-evolution.h, and then tree-data-ref.h.
755 * graphite-clast-to-gimple.c: Same.
756 * graphite-dependences.c: Same.
757 * graphite-interchange.c: Same.
758 * graphite-poly.c: Same.
759 * graphite-scop-detection.c: Same.
760 * graphite-sese-to-poly.c: Same.
762 * lambda-code.c: Same.
763 * matrix-reorg.c: Same.
764 * tree-data-ref.c: Same.
765 * tree-if-conv.c: Same.
766 * tree-loop-distribu: Same.: Same.
767 * tree-loop-linear.c: Same.
768 * tree-parloops.c: Same.
769 * tree-predcom.c: Same.
770 * tree-vect-patterns.c: Same.
772 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
774 Revert patch from 2009-09-14.
775 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
776 passes at -O1 and below.
778 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
781 * gcc.dg/graphite/pr40281.c: New.
783 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
784 evolutions should not variate in inner loops.
786 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
789 * gfortran.dg/graphite/pr42050.f90: New.
791 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
793 * graphite-interchange.c (memory_strides_in_loop_depth): New.
794 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
796 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
798 * graphite-blocking.c (scop_do_block): New.
799 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
800 * graphite-poly.h (scop_do_block): Declared.
802 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
804 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
805 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
806 to transform depth into the time_depth before calling
807 pbb_number_of_iterations_at_time.
808 (lst_do_strip_mine): Use a scalar variable instead of recomputing
811 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
813 Reverted the patch for "scattering permutations" from 2009-10-28.
815 * graphite-poly.c (print_permutation): New.
816 (debug_permutation): New.
817 (new_poly_bb): Initialize PBB_PERMUTATION.
818 (free_poly_bb): Free PBB_PERMUTATION.
819 * graphite-poly.h (pbb_permutation_elt_p): Declared.
820 (struct pbb_permutation_elt): New.
821 (PBB_PERMUTATION_ELT_STRIDE): New.
822 (PBB_PERMUTATION_ELT_STRIDED_P): New.
823 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
824 (new_pbb_permutation_elt): New.
825 (pbb_permutation_elt_free): New.
826 (struct poly_bb): Add field permutation.
827 (PBB_PERMUTATION): New.
828 (print_permutation): Declared.
829 (debug_permutation): Declared.
831 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
833 * graphite-interchange.c (build_partial_difference): New.
834 (memory_stride_in_loop): Refactored the computation of
835 equality constraints into build_partial_difference function.
836 Added support for debugging stride computations.
838 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
840 * graphite-clast-to-gimple.c (gloog): Free if_region,
841 if_region->true_region, and if_region->region.
842 * sese.c (if_region_set_false_region): Free if_region->false_region.
843 (create_if_region_on_edge): Do not use GGC_NEW.
844 (move_sese_in_condition): Remove useless initialization.
846 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
848 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
849 for the loops created by the loop distribution. Do not modify the
851 (lst_try_interchange_loops): Same. Use a temporary LST for the
852 transformed schedule. Call lst_update_scattering before data
854 (lst_try_interchange): Pass an extra parameter INDEX.
855 (lst_do_interchange_1): New.
856 (lst_do_interchange): Call lst_do_interchange_1.
857 (scop_do_interchange): Call lst_update_scattering.
858 * graphite-poly.c (apply_poly_transforms): Do not call
859 lst_update_scattering.
860 * graphite-poly.h (lst_pred): New.
862 (lst_find_first_pbb): Return NULL when not found.
864 (lst_insert_in_sequence): Allow LST1 to be NULL.
866 (lst_substitute_3): New.
867 * gcc.dg/graphite/interchange-1.c: XFail.
868 * gcc.dg/graphite/interchange-8.c: XFail.
869 * gcc.dg/graphite/interchange-11.c: XFail.
871 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
873 * graphite-interchange.c (lst_perfectly_nested_p): New.
874 (lst_perfect_nestify): New.
875 (lst_try_interchange_loops): Call store_lst_schedule,
876 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
877 (scop_do_interchange): Avoid redundant legality test.
878 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
879 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
880 * graphite-poly.h (psct_static_dim): New.
881 (lst_dewey_number_at_depth): New.
882 (lst_find_pbb): Restructured.
883 (lst_find_first_pbb): Restructured.
884 (lst_find_last_pbb): New.
885 (lst_contains_p): New.
886 (lst_contains_pbb): New.
887 (lst_create_nest): New.
888 (lst_remove_from_sequence): New.
889 (pbb_update_scattering): New.
890 (lst_update_scattering_under): New.
891 (lst_update_scattering_seq): New.
892 (lst_update_scattering): New.
893 (lst_insert_in_sequence): New.
894 (lst_distribute_lst): New.
895 (lst_remove_all_before_including_pbb): New.
896 (lst_remove_all_before_excluding_pbb): New.
898 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
900 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
903 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
905 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
907 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
909 * graphite-poly.c (print_permutation): New.
910 (debug_permutation): New.
911 (new_poly_bb): Initialize PBB_PERMUTATION.
912 (free_poly_bb): Free PBB_PERMUTATION.
913 * graphite-poly.h (pbb_permutation_elt_p): Declared.
914 (struct pbb_permutation_elt): New.
915 (PBB_PERMUTATION_ELT_STRIDE): New.
916 (PBB_PERMUTATION_ELT_STRIDED_P): New.
917 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
918 (new_pbb_permutation_elt): New.
919 (pbb_permutation_elt_free): New.
920 (struct poly_bb): Add field permutation.
921 (PBB_PERMUTATION): New.
922 (print_permutation): Declared.
923 (debug_permutation): Declared.
925 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
927 * graphite-clast-to-gimple.c (gloog): Do not call
928 sese_reset_aux_in_loops.
929 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
930 extra argument for domains. Do not use loop->aux.
931 (build_scop_iteration_domain): Initialize and free domains, pass it
932 to build_loop_iteration_domains and extract the information from
933 domains. Do not use loop->aux.
934 * sese.c (sese_reset_aux_in_loops): Removed.
935 * sese.h (sese_reset_aux_in_loops): Removed.
937 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
939 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
940 (dependency_in_loop_p): Same.
941 (translate_clast): Do not use loop->aux. Initialize
942 loop->can_be_parallel.
943 (mark_loops_parallel): Removed.
944 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
945 * graphite.c (free_aux_in_new_loops): Removed.
946 (graphite_finalize): Do not call free_aux_in_new_loops.
947 (graphite_transform_loops): Do not call mark_loops_parallel.
949 2009-10-26 Li Feng <nemokingdom@gmail.com>
951 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
952 (translate_clast): Pass an extra parameter LEVEL.
953 Call get_scattering_level.
954 * graphite-clast-to-gimple.h (get_scattering_level): New.
956 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
958 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
959 * cfgloop.h (struct loop): New field single_iv.
961 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
962 loop->aux anymore: use loop->single_iv.
963 (graphite_loop_normal_form): Moved...
964 (build_graphite_loop_normal_form): Removed.
965 (gloog): Do not call build_graphite_loop_normal_form.
966 (free_aux_in_new_loops): Moved...
967 (mark_loops_parallel): Restructure.
968 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
969 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
970 (scop_canonicalize_loops): New.
971 (build_poly_scop): Call scop_canonicalize_loops.
972 * graphite.c (free_aux_in_new_loops): ...here.
974 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
976 * g++.dg/graphite/graphite.exp: Add the same rules as in
977 gcc.dg/graphite/graphite.exp.
979 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
981 * g++.dg/graphite/id-1.C: New.
983 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
985 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
987 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
988 (rewrite_phi_out_of_ssa): Same.
989 (rewrite_cross_bb_scalar_deps): Same.
990 (translate_scalar_reduction_to_array): Same.
992 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
994 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
997 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
999 * graphite-sese-to-poly.c (dump_alias_graphs): New.
1000 (build_scop_drs): Call dump_alias_graphs.
1002 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1004 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
1005 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1006 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
1007 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1008 * graphite-poly.h (free_lst): New.
1009 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
1010 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
1012 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1014 * graphite-poly.h (struct scop): Add a field saved_schedule.
1015 (SCOP_SAVED_SCHEDULE): New.
1016 (store_lst_schedule): New.
1017 (restore_lst_schedule): New.
1018 (store_scattering): Call store_lst_schedule.
1019 (restore_scattering): Call restore_lst_schedule.
1021 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1023 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
1024 (pdr_add_alias_set): Same.
1025 (build_poly_dr): Same.
1026 (build_alias_set_optimal_p): Same.
1027 (build_base_obj_set_for_drs): Same. Do not store the result of
1030 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1032 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
1033 all_components_are_cliques to 1.
1035 2009-10-20 Li Feng <nemokingdom@gmail.com>
1037 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
1039 (pdr_add_alias_set): Update retrieving alias_set_num.
1040 (build_poly_dr): Update retrieving dr_base_object_set.
1041 (partition_drs_to_sets): Remove.
1042 (build_alias_set_optimal_p): New.
1043 (build_alias_set_for_drs): Rename.
1044 (build_scop_drs): Update.
1045 * graphite-sese-to-poly.h (struct base_alias_pair): New.
1046 (ALIAS_SET_INDEX): Remove.
1047 (BASE_OBJECT_SET_INDEX): Remove.
1049 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1051 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
1053 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1055 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
1056 loop upper bounds for 1-element arrays at end of structures.
1057 * tree-flow.h (array_at_struct_end_p): Declared.
1058 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
1060 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1062 * g++.dg/graphite/pr41305.C: New.
1064 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
1066 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
1067 construction of parameter constraints from loop iteration analysis.
1068 * gcc.dg/graphite/run-id-2.c: New test.
1070 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1072 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
1075 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1077 * graphite-dependences.c (dependence_polyhedron_1): Remove
1078 unused gdim dimensions from the DDR polyhedron.
1080 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1082 * graphite-dependences.c (pddr_transformed_scattering): New.
1083 (dot_original_deps_stmt_1): New.
1084 (dot_transformed_deps_stmt_1): New.
1085 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
1086 dot_transformed_deps_stmt_1.
1087 (dot_original_deps): New.
1088 (dot_transformed_deps): New.
1089 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
1091 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1093 * graphite-dependences.c (reduction_dr_1): Remove wrong
1094 assert: reduction BBs can have multiple reduction writes
1095 to memory. interchange-3.f90 is an example.
1097 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1099 * gfortran.dg/graphite/interchange-3.f90: New.
1101 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1103 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
1105 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1107 * graphite-dependences.c (dependence_polyhedron_1): Add the
1108 context to the dependence polyhedron.
1110 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1112 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
1113 PBB_PDR_DUPLICATES_REMOVED.
1114 (new_poly_bb): Same.
1116 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1118 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
1120 (build_loop_iteration_domains): Extract bounds on parameters
1121 based on the data size.
1122 (build_scop_context): Do not initialize SCOP_CONTEXT;
1123 add new constraints.
1125 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1127 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
1128 * graphite-ppl.h (graphite-ppl.h): Declared.
1130 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1132 * graphite-ppl.c (ppl_print_linear_expr): New.
1133 (debug_ppl_linear_expr): New.
1134 * graphite-ppl.h (ppl_print_linear_expr): Declared.
1135 (debug_ppl_linear_expr): Declared.
1137 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1139 * graphite-interchange.c: Fix comments.
1140 * gcc.dg/graphite/block-1.c: Fix comments.
1142 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1144 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
1145 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
1147 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1149 Reapply the patch from Alexander Monakov that disappeared during
1150 the last merges from trunk.
1152 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
1154 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1155 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1157 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1159 * graphite-interchange.c (memory_stride_in_loop): The depth
1160 argument corresponds to a dynamic time dimension, so use
1161 psct_dynamic_dim to refer to the transformed scattering dimension.
1163 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1165 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
1167 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1169 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
1171 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
1172 the root of the LST.
1173 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
1175 (print_lst): Print the root of LST in a different format.
1176 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
1178 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1180 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
1182 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1184 * doc/passes.texi: Document the Graphite infrastructure.
1186 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1188 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
1189 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
1190 and check the SSA representation.
1192 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
1194 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1196 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
1198 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1200 * gcc.dg/graphite/interchange-11.c: New.
1202 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1204 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
1206 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1208 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1209 Add -fno-loop-strip-mine and -fno-loop-interchange.
1210 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
1211 -fno-loop-strip-mine.
1212 * gfortran.dg/graphite/graphite.exp: Same.
1214 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1216 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1217 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
1218 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
1219 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
1220 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
1221 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
1222 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
1223 DEFAULT_FLAGS_GRAPHITE_SCOP.
1224 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
1225 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
1227 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1229 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
1231 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1232 Sebastian Pop <sebastian.pop@amd.com>
1234 * graphite-interchange.c (build_linearized_memory_access): Pass an
1235 offset as parameter.
1236 (memory_stride_in_loop): Include transform scattering in the
1237 access functions to be able to querry the strides in the
1239 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
1240 not the psct_iterator_dim.
1242 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1244 * graphite-blocking.c (pbb_do_strip_mine): Removed.
1245 (lst_do_strip_mine_loop): New.
1246 (lst_do_strip_mine): New.
1247 (scop_do_strip_mine): Call lst_do_strip_mine.
1248 * graphite-poly.h (lst_add_loop_under_loop): New.
1249 (lst_find_first_pbb): New.
1251 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1253 * graphite-poly.c (loop_to_lst): Fix LST creation.
1255 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
1257 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
1258 sizeof(unsigned long) to make it run on 32bit systems.
1260 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
1262 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
1265 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1267 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
1269 (write_alias_graph_to_ascii_dot): New.
1270 (write_alias_graph_to_ascii_ecc): Ditto.
1271 (partition_drs_to_sets): Add testing of optimality of current method
1272 which assigns alias numbers according to DFS Comopnent number. used
1273 as heuristic for the upcoming ECC algorithm.
1274 (build_scop_drs): Write to file also with the ecc and dot format.
1276 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1278 * gfortran.dg/graphite/interchange-1.f: XFail.
1280 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1282 * graphite.c (graphite_initialize): Do not handle functions with
1283 more than 100 basic blocks.
1285 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1287 * graphite-blocking.c (pbb_do_strip_mine): Use
1288 PARAM_LOOP_BLOCK_TILE_SIZE.
1290 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1292 * graphite-poly.c (dot_lst_1): New.
1294 * graphite-poly.h (dot_lst): Declared.
1296 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1298 * graphite-dependences.c (dot_deps_stmt_1): New.
1299 (dot_deps_stmt): New.
1300 * graphite-dependences.h (dot_deps_stmt): Declared.
1302 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1304 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
1305 not replace cross BB scalar dependences ending on PHI nodes.
1306 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
1308 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1310 * graphite-poly.c (apply_poly_transforms): Implement the high
1311 level driver for flag_loop_block.
1312 * opts.c (decode_options): Enable flag_loop_block at -O2.
1313 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
1316 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
1318 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1321 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1323 * graphite-poly.h (lst_find_pbb): New.
1324 (find_lst_loop): New.
1326 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1328 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
1329 * graphite-poly.h (struct scop): Remove dep_graph field.
1330 (SCOP_DEP_GRAPH): Removed.
1332 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1334 * graphite-poly.h (copy_lst): Do full copy of LST.
1336 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
1338 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
1339 when the loop stride is zero.
1341 * gcc.dg/graphite/id-16.c: New.
1343 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1345 * graphite-dependences.c (reduction_dr_1): New.
1346 (reduction_dr_p): New.
1347 (graphite_legal_transform_dr): Call reduction_dr_p.
1348 (reduction_ddr): Renamed reduction_ddr_p.
1349 * graphite-poly.h (same_pdr_p): New.
1350 (number_of_write_pdrs): New.
1351 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
1352 (split_reduction_stmt): Do not split reduction statements
1353 when there are no writes to memory.
1354 (translate_scalar_reduction_to_array_for_stmt): Insert the
1355 memory reduction statement just after the scalar reduction statement.
1357 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
1359 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
1360 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
1362 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1364 * graphite-interchange.c (lst_apply_interchange): New.
1365 (lst_interchange_profitable_p): New.
1366 (lst_try_interchange_loops): New.
1367 (lst_try_interchange): New.
1368 (lst_do_interchange): New.
1369 (pbb_do_interchange): Removed.
1370 (scop_do_interchange): Call lst_do_interchange.
1372 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1374 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
1375 SCOP_TRANSFORMED_SCHEDULE.
1380 * graphite-poly.h (lst_p): New.
1383 (LST_LOOP_FATHER): New.
1386 (scop_to_lst): Declared.
1387 (print_lst): Declared.
1388 (debug_lst): Declared.
1389 (new_lst_loop): New.
1390 (new_lst_stmt): New.
1393 (lst_dewey_number): New.
1394 (struct scop): Add original_schedule and transformed_schedule fields.
1395 (SCOP_ORIGINAL_SCHEDULE): New.
1396 (SCOP_TRANSFORMED_SCHEDULE): New.
1397 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
1399 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1401 * graphite-dependences.c (reduction_ddr): New.
1402 (graphite_legal_transform_bb): Call reduction_ddr.
1403 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
1404 Initialize PBB_IS_REDUCTION.
1405 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
1406 (PBB_IS_REDUCTION): New.
1407 (new_poly_bb): Update declaration.
1408 * graphite-scop-detection.h (build_scop_bbs): Removed.
1409 (nb_reductions_in_loop): Removed.
1410 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
1411 parameter for reductions.
1412 (try_generate_gimple_bb): Update call to new_poly_bb.
1413 (build_scop_bbs_1): Same.
1414 (build_scop_bbs): Same.
1415 (gsi_for_phi_node): New.
1416 (scalar_close_phi_node_p): Remove gcc_assert.
1417 (split_reduction_stmt): New.
1418 (is_reduction_operation_p): New.
1419 (phi_contains_arg): New.
1420 (follow_ssa_with_commutative_ops): New.
1421 (detect_commutative_reduction_arg): New.
1422 (detect_commutative_reduction_assign): New.
1423 (follow_inital_value_to_phi): New.
1424 (edge_initial_value_for_loop_phi): New.
1425 (initial_value_for_loop_phi): New.
1426 (detect_commutative_reduction): New.
1427 (translate_scalar_reduction_to_array_for_stmt): New.
1428 (insert_copyout): New.
1429 (insert_copyin): New.
1430 (translate_scalar_reduction_to_array): New.
1431 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
1432 (rewrite_commutative_reductions_out_of_ssa_loop): New.
1433 (rewrite_commutative_reductions_out_of_ssa): New.
1434 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
1435 * sese.h (split_region_for_bb): New.
1437 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
1438 * gcc.dg/graphite/interchange-1.c: Fix format.
1439 * gcc.dg/graphite/interchange-10.c: New.
1441 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1443 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
1446 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1448 * graphite-sese-to-poly.c (scev_analyzable_p): New.
1449 (rewrite_cross_bb_scalar_dependence): New.
1450 (rewrite_cross_bb_scalar_deps): New.
1451 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
1452 Call rewrite_cross_bb_scalar_deps.
1454 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1456 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
1457 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
1460 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1462 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
1463 * graphite-interchange.c (pbb_do_interchange): Same.
1464 * graphite-poly.c (print_scattering_function): Same.
1466 * graphite-poly.h (pbb_loop): New.
1467 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
1469 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1471 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
1473 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1475 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
1476 so don't pass a pointer to it.
1477 (build_alias_set_for_drs): Same.
1478 (build_base_obj_set_for_drs): Same.
1479 (build_scop_drs): Same.
1481 2009-09-26 Li Feng <nemokingdom@gmail.com>
1483 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
1484 the alias graph of data references.
1486 2009-09-25 Li Feng <nemokingdom@gmail.com>
1488 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
1489 (build_scop_drs): When debugging, write the alias graph to file,
1490 otherwise, should be disabled.
1492 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1494 * Merge from mainline (151310:151361).
1496 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1498 * Merge from mainline (151171:151310).
1500 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1502 * Merge from mainline (151171:151806).
1504 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1506 * Revert the last commit.
1508 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1510 * Merge from mainline (151171:151819).
1512 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1514 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
1515 (is_simple_operand): Remove call to stmt_simple_memref_p.
1516 (stmt_simple_for_scop_p): Update call to is_simple_operand.
1518 2009-09-17 David Edelsohn <edelsohn@gnu.org>
1520 * gcc.dg/graphite/interchange-mvt.c: New File.
1521 * gcc.dg/graphite/scop-dsyrk.c: New File.
1522 * gcc.dg/graphite/scop-dsyr2k.c: New File.
1523 * gcc.dg/graphite/scop-mvt.c: New File.
1524 * gcc.dg/graphite/scop-sor.c: New File.
1526 2009-09-17 Li Feng <nemokingdom@gmail.com>
1528 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
1529 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
1530 (graphite_carried_dependence_level_k): Ditto.
1531 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
1532 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
1533 (new_poly_dr): Adjust declaration.
1534 * graphite-sese-to-poly.c (free_data_refs_aux): New.
1535 (free_gimple_bb): Added free_data_refs_aux.
1536 (build_poly_dr): Add dr_base_object_set.
1537 (partition_drs_to_sets): New.
1538 (dr_same_base_object_p): New.
1539 (build_alias_set_for_drs): New.
1540 (build_base_object_set_for_drs): New.
1541 (build_scop_drs): Add build_base_obj_set_for_drs.
1542 * graphite-sese-to-poly.h: Added #define for alias set number index and
1543 base object set index.
1544 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
1545 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
1547 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
1549 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1550 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1552 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1554 * graphite-sese-to-poly.c (struct irp_data): Removed.
1555 (idx_record_params): Removed.
1556 (find_params_in_bb): Scan for parameters the access functions; don't
1557 parse the tree representation.
1559 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1561 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
1562 passes at -O1 and below.
1564 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1566 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1567 tree-scalar-evolution.h, and then tree-data-ref.h.
1568 * graphite-clast-to-gimple.c: Same.
1569 * graphite-dependences.c: Same.
1570 * graphite-interchange.c: Same.
1571 * graphite-poly.c: Same.
1572 * graphite-scop-detection.c: Same.
1573 * graphite-sese-to-poly.c: Same.
1575 * lambda-code.c: Same.
1576 * matrix-reorg.c: Same.
1577 * tree-data-ref.c: Same.
1578 * tree-if-conv.c: Same.
1579 * tree-loop-distribu: Same.: Same.
1580 * tree-loop-linear.c: Same.
1581 * tree-parloops.c: Same.
1582 * tree-predcom.c: Same.
1583 * tree-vect-patterns.c: Same.
1585 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
1587 Partially revert the previous patch, except the following.
1588 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
1589 as parameters the operands of the not expression.
1591 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1593 * tree-scalar-evolution.c (instantiate_scev_assign): New.
1594 Do not call analyze_scalar_evolution on assignments.
1595 (instantiate_scev_phi): Call analyze_scalar_evolution.
1596 (instantiate_scev_name): Call instantiate_scev_assign and
1597 instantiate_scev_phi.
1598 (instantiate_scev_not): Adapted to pass as parameters the operands
1599 of the not expression.
1601 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1603 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
1604 to pass as parameters the operands of the binary expression.
1606 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1608 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
1609 instantiate_scev_not. Handle NEGATE_EXPR.
1610 (instantiate_scev_r): Handle NEGATE_EXPR.
1612 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1614 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
1616 (instantiate_scev_r): Move code in instantiate_scev_2
1617 and instantiate_scev_1.
1619 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1621 * tree-scalar-evolution.c (instantiate_scev_3): New.
1622 (instantiate_scev_1): Move code in instantiate_scev_3.
1624 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1626 * tree-scalar-evolution.c (instantiate_scev_poly): New.
1627 (instantiate_scev_1): Move code in instantiate_scev_poly.
1629 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1631 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
1632 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
1634 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1636 * tree-scalar-evolution.c (instantiate_scev_convert): New.
1637 (instantiate_scev_1): Move code in instantiate_scev_convert.
1639 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1641 * tree-scalar-evolution.c (instantiate_scev_binary): New.
1642 (instantiate_scev_1): Move code in instantiate_scev_binary.
1644 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1646 * tree-scalar-evolution.c (instantiate_scev_name): New.
1647 (instantiate_scev_1): Move code in instantiate_scev_name.
1649 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1651 * Merge from mainline (150992:151171).
1653 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1655 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
1657 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1659 * graphite-dependences.c (graphite_legal_transform_bb): Call
1660 pbb_remove_duplicate_pdrs.
1661 * graphite-poly.c (can_collapse_pdr): Removed.
1662 (pdr_find_duplicate): Removed.
1663 (can_collapse_pdrs): New.
1664 (pbb_remove_duplicate_pdrs): New.
1665 (new_poly_dr): Do not look for duplicates.
1666 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
1667 (PBB_PDR_DUPLICATES_REMOVED): New.
1668 (pbb_remove_duplicate_pdrs): Declared.
1670 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1672 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
1673 the strides by multiplying by PDR_NB_REFS.
1674 * graphite-poly.c (can_collapse_pdr): New.
1675 (pdr_find_duplicate): New.
1676 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
1677 Initialize PDR_NB_REFS.
1678 * graphite-poly.h (struct poly_dr): Add field nb_refs.
1680 (new_poly_dr): Number of subscripts is a graphite_dim_t.
1682 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1684 Revert one of the previous commits:
1685 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1686 the computation of symmetric data dependence relations.
1687 (dependency_between_pbbs_p): Same.
1689 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1692 * graphite-poly.c (apply_poly_transforms): Remove legality test before
1695 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1697 * graphite-dependences.c (pddr_original_scattering): Return NULL
1698 for read-read dependence relations.
1699 * graphite-poly.h (enum poly_dr_type): Fix comment.
1702 (pdr_may_write_p): New.
1704 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1706 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
1707 (struct poly_dr): Same.
1708 (new_poly_dr): Same.
1709 * graphite-poly.c (new_poly_dr): Same.
1711 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1712 Sebastian Pop <sebastian.pop@amd.com>
1714 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
1715 pbb_strip_mine_time_depth. Changed the implementation so that
1716 transformation is expressed as a transformation on
1717 time (scatttering) dimensions. Also, ensures that the 2d+1
1718 scheduling format is preserved.
1719 (pbb_strip_mine_profitable_p): Profitability is based on the
1720 iteration number of a given time (scattering) dimension,
1721 and not on a original loop depth dimension.
1722 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
1723 (pbb_do_strip_mine): Call psct_dynamic_dim.
1724 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
1725 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
1726 (pbb_nb_dynamic_scattering_transform): New.
1727 (psct_dynamic_dim): New.
1729 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1731 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1732 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1733 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
1734 * graphite-interchange.c (build_linearized_memory_access): Same.
1735 (memory_stride_in_loop): Same.
1737 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1739 * graphite-dependences.c (pddr_original_scattering): New.
1740 (graphite_legal_transform_dr): Call pddr_original_scattering.
1743 * graphite-dependences.h (dot_deps): Declared.
1744 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
1745 (print_pdr): Print PDR_ID.
1746 * graphite-poly.h (struct poly_dr): Add field id.
1749 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
1751 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
1753 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
1754 not delete the original dependence relation.
1756 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1758 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1759 the computation of symmetric data dependence relations.
1760 (dependency_between_pbbs_p): Same.
1762 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1764 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
1765 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
1766 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
1767 (free_poly_ddr): New.
1768 (pddr_is_empty): New.
1769 (dependence_polyhedron_1): Now returns a poly_ddr_p.
1770 (dependence_polyhedron): Same. Remove useless gcc_assert.
1772 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
1773 (graphite_carried_dependence_level_k): Call pddr_is_empty.
1774 * graphite-dependences.h (enum poly_dependence_kind): New.
1775 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
1776 (PDRP_SOURCE): Renamed PDDR_SOURCE.
1777 (PDRP_SINK): Renamed PDDR_SINK.
1778 (PDRP_DDP): Renamed PDDR_DDP.
1780 (free_poly_ddr): Declared.
1781 * graphite-poly.c (new_scop): Use the new hash function names.
1782 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
1783 into original_pddrs.
1784 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
1786 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1788 * Merge from mainline (150764:150992).
1790 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1792 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
1793 bounds with LT_EXPR to make niter analysis more precise on code
1794 generated by Graphite.
1796 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1798 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
1799 (graphite_legal_transform_bb): Same.
1800 (poly_drs_may_alias_p): Same.
1802 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
1805 * graphite-ppl.c (ppl_max_for_le): Correct the use of
1806 ppl_Pointset_Powerset_C_Polyhedron_maximize.
1808 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1810 * graphite-poly.c (print_pbb): Print PBB index.
1812 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1814 * Merge from mainline (r150672:150764).
1816 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1818 * graphite-interchange.c (ppl_max_for_le): Moved...
1819 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
1820 * graphite-ppl.c (ppl_max_for_le): ... here.
1821 * graphite-ppl.h (ppl_max_for_le): Declared.
1823 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
1825 * Merge from mainline (r150372:150672).
1827 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1830 * sese.c (convert_for_phi_arg): New.
1831 (add_guard_exit_phis): Use convert_for_phi_arg.
1833 * gfortran.dg/graphite/id-17.f: New.
1835 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1837 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
1838 unknown subscript upper bounds.
1840 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
1842 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1843 Pranav Garg <pranav.garg2107@gmail.com>
1845 * graphite-interchange.c (gather_access_strides): Removed.
1846 (ppl_max_for_le): New.
1847 (build_linearized_memory_access): New.
1848 (memory_stride_in_loop): New.
1849 (pbb_interchange_profitable_p): Reimplemented.
1850 * graphite-ppl.h (ppl_new_id_map): New.
1851 (ppl_interchange): New.
1853 * gcc.dg/graphite/interchange-6.c: XFAILed.
1855 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1857 * graphite-interchange.c (compute_subscript): Removed.
1858 (compute_array_size_cstr): Removed.
1859 (compute_array_size_poly): Removed.
1860 (compute_array_size): Removed.
1861 (gather_access_strides_poly): Removed.
1862 (gather_access_strides): Empty.
1864 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1866 * graphite-dependences.c (dependence_polyhedron_1): Replace
1867 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
1868 (graphite_legal_transform_dr): Same.
1869 (graphite_carried_dependence_level_k): Same.
1870 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
1871 Initialize PDR_NB_SUBSCRIPTS.
1872 (print_pdr_access_layout): Replace pdr_nb_subscripts with
1874 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
1875 (PDR_NB_SUBSCRIPTS): New.
1876 (pdr_nb_subscripts): Removed.
1877 (pdr_dim): Simplified.
1878 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
1879 with PDR_NB_SUBSCRIPTS.
1881 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1883 * graphite-interchange.c (compute_array_size): Remove use of
1885 * graphite-poly.c (new_poly_dr): Remove argument data_container.
1886 Do not initialize PDR_DATA_CONTAINER.
1887 (print_pdr): Do not print PDR_DATA_CONTAINER.
1888 * graphite-poly.h (struct poly_dr): Remove data_container field.
1889 (PDR_DATA_CONTAINER): Removed.
1890 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
1892 (build_poly_dr): Same.
1894 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1896 * gcc.dg/graphite/interchange-9.c: New.
1898 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1899 Sebastian Pop <sebastian.pop@amd.com>
1901 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
1902 copy of the dependence polyhedron. Free the temporary objects.
1903 (graphite_carried_dependence_level_k): Free unused objects before
1906 * gcc.dg/graphite/interchange-1.c: XFAILed.
1907 * gcc.dg/graphite/interchange-2.c: XFAILed.
1908 * gcc.dg/graphite/interchange-3.c: XFAILed.
1909 * gcc.dg/graphite/interchange-4.c: XFAILed.
1910 * gcc.dg/graphite/interchange-7.c: XFAILed.
1912 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1914 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
1915 Early return without analyzing the data dependences if no
1916 transform has been done. Call restore_scattering if the transform
1918 (graphite-interchange.c): Same.
1919 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
1920 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
1921 (apply_poly_transforms): Do not gcc_assert that
1922 the transform is legal.
1923 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1924 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
1925 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
1926 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1927 * graphite-poly.h (struct poly_scattering): New.
1928 (struct poly_bb): Add original, transformed, and saved fields.
1929 Remove transformed_scattering, original_scattering, nb_local_variables,
1930 and nb_scattering_transform fields.
1931 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
1932 (poly_scattering_new): New.
1933 (poly_scattering_free): New.
1934 (poly_scattering_copy): New.
1935 (store_scattering_pbb): New.
1936 (store_scattering): New.
1937 (restore_scattering_pbb): New.
1938 (restore_scattering): New.
1939 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1940 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
1942 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1944 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
1947 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1949 * Makefile.in (graphite.o): Depends on PREDICT_H.
1950 * graphite.c: Include predict.h.
1951 (graphite_finalize): Call tree_estimate_probability.
1952 * predict.c (predict_loops): Do not call scev_initialize and
1954 (tree_estimate_probability_bb): New.
1955 (tree_estimate_probability): Do not initialize loops: move that
1956 code to the driver. Call tree_estimate_probability_bb.
1957 (tree_estimate_probability_driver): New.
1958 (pass_profile): Use tree_estimate_probability_driver.
1959 * predict.h (tree_estimate_probability): Declared.
1961 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1963 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
1964 * graphite-dependences.c (graphite_legal_transform): Add time to
1965 TV_GRAPHITE_DATA_DEPS.
1966 (dependency_between_pbbs_p): Same.
1967 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
1969 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
1971 * Merge from mainline (r149952:150372).
1973 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1975 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
1976 * graphite-blocking.c: Same.
1977 * graphite-clast-to-gimple.c: Same.
1978 * graphite-dependences.c: Same.
1979 * graphite-poly.c: Same.
1980 * graphite-poly.h: Same.
1981 * graphite-ppl.c: Same.
1982 * graphite-scop-detection.c: Same.
1983 * graphite-sese-to-poly.c: Same.
1986 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1988 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
1989 (remove_simple_copy_phi): New.
1990 (remove_invariant_phi): New.
1991 (simple_copy_phi_p): New.
1992 (reduction_phi_p): New.
1993 (gsi_for_ssa_name_def): New.
1994 (insert_out_of_ssa_copy): New.
1995 (insert_out_of_ssa_copy_on_edge): New.
1996 (create_zero_dim_array): New.
1997 (scalar_close_phi_node_p): New.
1998 (rewrite_close_phi_out_of_ssa): New.
1999 (rewrite_phi_out_of_ssa): New.
2000 (rewrite_reductions_out_of_ssa): New.
2001 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
2003 * gcc.dg/graphite/id-11.c: New.
2004 * gcc.dg/graphite/id-15.c: New.
2005 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
2006 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
2007 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
2008 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
2009 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
2010 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
2011 * gfortran.dg/graphite/id-13.f: New.
2012 * gfortran.dg/graphite/id-5.f: New.
2014 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2016 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
2017 check that nb_reductions_in_loop is zero.
2018 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
2019 reduction phi nodes.
2020 (nb_reductions_in_loop): Removed.
2021 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
2022 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
2023 (bb_contains_non_iv_scalar_phi_nodes): Removed.
2024 (scop_contains_non_iv_scalar_phi_nodes): Removed.
2025 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
2027 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2029 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
2030 statements that have an empty iteration domain.
2031 * gfortran.dg/graphite/id-16.f: New.
2033 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2035 * tree-scalar-evolution.c (instantiate_scev_1): Return
2036 chrec_dont_know when the result is not above instantiate_below.
2037 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
2038 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
2039 the tree has a known scalar evolution.
2040 * gfortran.dg/graphite/id-14.f: New.
2041 * gfortran.dg/graphite/id-15.f: New.
2043 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2045 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
2047 (rename_variables): Keep inserting renames after the ones already
2050 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2052 * graphite-sese-to-poly.c (compare_bb_depths): New.
2053 (graphite_sort_dominated_info): New.
2054 (build_scop_bbs_1): Call graphite_sort_dominated_info.
2055 (build_scop_scattering): Fix comment.
2057 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2059 * graphite.c (graphite_finalize): Call print_loops instead of
2060 dump_function_to_file.
2061 * gcc.dg/graphite/graphite.exp: Fix formatting.
2062 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
2063 loops generated in the graphite output file.
2064 * gcc.dg/graphite/pr35356-2.c: New.
2065 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
2066 * gfortran.dg/graphite/id-12.f: New.
2068 2009-07-24 Li Feng <nemokingdom@gmail.com>
2070 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
2073 2009-07-24 Li Feng <nemokingdom@gmail.com>
2074 Tobias Grosser <grosser@fim.uni-passau.de>
2076 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
2077 alias set number build alias in ACCESSES polyhedron.
2078 (build_alias_set_for_drs): New.
2079 (build_pbb_drs): Added build_alias_set_for_drs.
2080 * graphite-dependences.c (poly_drs_may_alias_p): New.
2081 (graphite_carried_dependence_level_k): Check alias information
2082 before building polyhedron.
2084 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2086 * Makefile.in (lambda-code.o): Fix formatting.
2088 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2090 * Merge from mainline (r149350-149952)
2092 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
2094 * graphite-poly.c (apply_poly_transforms): Move strip_mine
2095 before interchange to prepare for loop blocking.
2097 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
2099 * graphite-poly.c (apply_poly_transforms): Add checks after every
2101 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
2102 done in apply_poly_transforms.
2104 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2106 * graphite-dependences.c (build_lexicographically_gt_constraint):
2107 Replace RES parameter with *RES.
2108 (dependence_polyhedron_1): Pass an address of the parameter RES
2109 instead of value of RES.
2111 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2113 * graphite.c (graphite_finalize): Fix comment.
2114 (graphite_transform_loops): Reset scev info after code generation
2117 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2119 * graphite.c (graphite_finalize): Call scev_reset.
2121 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2123 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
2124 GBB_CLOOG_IV_TYPES hash table twice.
2125 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
2126 (add_condition_to_domain): Clear GMP values.
2128 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2130 * graphite-dependences.c: Fix formatting.
2131 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
2132 (pbb_number_of_iterations): Free ppl_Linear_Expression.
2133 * graphite-sese-to-poly.c: Fix formatting.
2134 * graphite.c (graphite_transform_loops): Create the hash table
2135 after the early return.
2137 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2139 * gcc.dg/graphite/id-14.c: New.
2140 * gcc.dg/graphite/pr40157.c: New.
2141 * gfortran.dg/graphite/id-11.f: New.
2143 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2145 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
2146 (build_poly_scop): Return false when there are no pbbs within
2147 loops to avoid to pass to cloog scops with no loops.
2149 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2151 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
2152 useless test "i % 2".
2153 (build_pbb_scattering_polyhedrons): Fix formatting.
2154 (build_poly_dr): Same.
2155 * graphite.c (graphite_transform_loops): Restructure.
2157 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
2159 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
2160 reduction_list parameter.
2161 (rewrite_all_phi_nodes_with_iv): Same.
2162 (canonicalize_loop_ivs): Same.
2163 * tree-parloops.c (struct brli): Removed.
2164 (build_reduction_list_info): Removed.
2165 (build_new_reduction): New.
2166 (analyze_reduction_list): Removed.
2167 (gather_scalar_reductions): Find reductions instead of phi
2168 nodes that can't be canonicalized.
2169 (try_create_reduction_list): Remove reduction_list parameter.
2170 (gen_parallel_loop): Same.
2171 (parallelize_loops): Remove analyze_reductions variable,
2172 initialization and free.
2173 Change reduction_list htab initialization to reduction_info
2174 elements instead of ssa names.
2175 Call try_create_reduction_list and gen_parallel_loop without
2176 analyzed_reduction argument.
2177 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
2178 canonicalize_loop_ivs with one less argument.
2179 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
2181 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2183 * graphite-dependences.c (new_poly_dr_pair): New.
2184 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
2185 (new_poly_dr_pair): New.
2186 (eq_poly_dr_pair_p): New.
2187 (hash_poly_dr_pair_p): New.
2188 * graphite-dependences.h (struct poly_dr_pair): New.
2189 (eq_poly_dr_pair_p): Declared.
2190 (hash_poly_dr_pair_p): Declared.
2191 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
2192 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
2193 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
2194 * Makefile.in (graphite-poly.o): Add dependence on
2195 graphite-dependences.h.
2197 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2199 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
2200 polynomials of degree > 1 pass to Graphite.
2201 * tree-chrec.c (scev_is_linear_expression): Call
2202 evolution_function_is_affine_multivariate_p.
2203 * gfortran.dg/graphite/id-10.f90: New.
2205 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2207 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
2208 Instantiate scevs varying in outer loops.
2209 * gfortran.dg/graphite/id-9.f: Correct testcase.
2211 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2213 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
2214 redundant constraint.
2216 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2218 * gcc.dg/graphite/graphite.exp: Fix comments.
2219 * gfortran.dg/graphite/graphite.exp: Trigger actions
2220 based on the file names as in the C testsuite.
2221 * gfortran.dg/graphite/block-1.f90: Fix patterns.
2222 * gfortran.dg/graphite/block-2.f: Same.
2223 * gfortran.dg/graphite/block-3.f90: Same.
2224 * gfortran.dg/graphite/block-4.f90: Same.
2225 * gfortran.dg/graphite/id-1.f90: Same.
2226 * gfortran.dg/graphite/id-2.f90: Same.
2227 * gfortran.dg/graphite/id-3.f90: Same.
2228 * gfortran.dg/graphite/id-4.f90: Same.
2229 * gfortran.dg/graphite/id-6.f: Same.
2230 * gfortran.dg/graphite/id-9.f: Same.
2231 * gfortran.dg/graphite/interchange-1.f: Same.
2232 * gfortran.dg/graphite/interchange-2.f: Same.
2233 * gfortran.dg/graphite/scop-1.f: Same.
2235 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2237 * sese.c (expand_scalar_variables_call): New.
2238 (expand_scalar_variables_ssa_name): Handle calls in expander.
2240 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2242 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
2243 Expect to see the pattern twice.
2244 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
2245 * gcc.dg/graphite/interchange-5.c: Same.
2246 * gcc.dg/graphite/interchange-6.c: Same.
2248 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2250 * gcc.dg/graphite/id-10.c: New.
2251 * gcc.dg/graphite/id-12.c: New.
2252 * gfortran.dg/graphite/id-7.f: New.
2253 * gfortran.dg/graphite/id-8.f: New.
2255 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2257 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
2260 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2262 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
2264 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2266 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
2268 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2270 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
2271 building PDR subscripts.
2273 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2275 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
2276 computation of array sizes.
2278 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2280 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
2282 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
2284 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
2285 build_pairwise_constraint, dr_equality_constraints,
2286 build_pairwise_scheduling_equality,
2287 build_pairwise_scheduling_inequality, lexicographically_gt_p,
2288 build_lexicographically_gt_constraint, dependence_polyhedron,
2289 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
2290 Move from NNC_Polyhedron to C_Polyhedron.
2291 * graphite-interchange.c (compute_array_size_poly,
2292 gather_access_strides): Dito.
2293 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
2294 free_scop, pbb_number_of_iterations): Dito.
2295 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
2296 pbb_dim_iter_domain, struct scop): Dito.
2297 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
2298 new_Cloog_Domain_from_ppl_Polyhedron,
2299 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
2300 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
2301 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
2302 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
2303 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
2304 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
2305 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
2306 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
2307 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
2308 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
2309 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
2310 build_scop_iteration_domain, build_poly_dr): Dito
2312 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2314 * gcc.dg/graphite/graphite.exp: Added a rule to execute
2316 * gcc.dg/graphite/run-id-1.c: New.
2318 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2320 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
2321 positivity constraint on the symbolic number of iterations.
2323 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2325 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
2327 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2328 Tobias Grosser <grosser@fim.uni-passau.de>
2330 * graphite-clast-to-gimple.c (build_scop_context): Removed.
2331 (build_cloog_prog): Directly use SCOP_CONTEXT.
2332 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
2333 (free_scop): Free SCOP_CONTEXT.
2334 (print_scop_context): New.
2335 (print_scop): Call print_scop_context.
2336 (debug_scop_context): New.
2337 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
2338 (struct scop): Added field context.
2339 (SCOP_CONTEXT): New.
2340 * graphite-sese-to-poly.c (add_param_constraints): New.
2341 (build_scop_context): New.
2342 (build_poly_scop): Call build_scop_context.
2344 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2346 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
2347 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
2348 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
2349 * graphite-ppl.h: Include double-int.h and tree.h.
2350 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
2351 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
2352 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
2353 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
2355 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2357 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
2358 POINTER_PLUS_EXPR for pointer types.
2359 (clast_to_gcc_expression): Same.
2361 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2363 * graphite-poly.c (print_scattering_function): Early return when
2364 PBB_TRANSFORMED_SCATTERING is not initialized.
2365 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
2367 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
2369 * tree-parloops.c (analyze_reduction_list): Remove unused variable
2372 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
2374 * tree-parloops.c (analyze_reduction_list): Change return
2376 (try_create_reduction_list): Move the call to
2377 analyze_reduction_list to the beginining.
2378 Call reduction_phi with analyzed_reductions as argument
2379 instead of reduction_list.
2381 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
2383 * Merge from mainline (r148296:149346)
2385 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2387 * graphite-scop-detection.c (graphite_can_represent_init): New.
2388 (graphite_can_represent_scev): Call graphite_can_represent_init:
2389 check that the initial value does not contain multiplications of
2391 (stmt_has_simple_data_refs_p): New.
2392 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
2393 (is_simple_operand): Fix formatting.
2394 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
2396 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2398 * gcc.dg/graphite/id-13.c: New.
2399 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
2400 analyze_scalar_evolution, use scalar_evolution_in_region.
2401 (scan_tree_for_params_right_scev): Add extra assert.
2402 (parameter_index_in_region_1): Split from parameter_index_in_region.
2403 (idx_record_params): Use scalar_evolution_in_region.
2404 (find_params_in_bb): Same.
2405 (find_scop_parameters): Same.
2406 (build_loop_iteration_domains): Same.
2407 (create_linear_expr_from_tree): Same.
2408 * sese.c (scalar_evolution_in_region): New.
2409 * sese.h (scalar_evolution_in_region): Declared.
2410 (defined_in_sese_p): New.
2411 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
2413 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
2416 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2418 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
2419 TREE_DATA_REF_H also implies SCEV_H.
2421 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2423 * graphite-poly.c (print_scop_params): New.
2424 (print_scop): Call print_scop_params.
2425 (debug_scop_params): New.
2426 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
2428 2009-07-07 Li Feng <nemokingdom@gmail.com>
2430 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
2431 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
2432 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
2433 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
2434 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
2435 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
2437 2009-07-07 Li Feng <nemokingdom@gmail.com>
2439 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
2440 for dependency checking part.
2441 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
2442 tests for dependency checking.
2443 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2444 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2445 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
2446 flag -fdump-tree-graphite-all for autopar testsuites.
2448 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2450 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
2451 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
2452 canonicalize_loop_ivs): Moved...
2453 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
2455 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2457 * tree-parloops.c (try_create_reduction_list): Pass an extra
2458 argument analyzed_reductions. Call analyze_reduction_list.
2459 (gen_parallel_loop): Do not call analyze_reduction_list.
2460 (parallelize_loops): Init and finalize analyzed_reductions.
2462 2009-07-06 Li Feng <nemokingdom@gmail.com>
2464 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2465 Added flag -fno-loop-strip-mine for autopar testcase.
2467 2009-07-04 Li Feng <nemokingdom@gmail.com>
2469 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
2470 transformed scattering dimension instead of unmatch orignal when
2471 calling dependence_polyhedron.
2473 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2475 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
2477 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2479 * graphite-poly.c (pbb_number_of_iterations): Check for returned
2480 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
2482 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2484 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
2485 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
2486 * graphite-poly.c (pbb_number_of_iterations): New.
2487 * graphite-poly.h (pbb_number_of_iterations): Declared.
2488 (pbb_iterator_dim, pbb_parameter_dim): New.
2490 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
2492 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
2493 last commit on type of lower and upper bound of loops.
2495 2009-06-29 Li Feng <nemokingdom@gmail.com>
2497 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
2498 graphite-dependences.h.
2499 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
2500 (mark_bb_with_pbb): New.
2501 (get_stmtfor_depth): New.
2502 (find_pbb_via_hash): New.
2503 (dependency_in_loop_p): New.
2504 (mark_loops_parallel): New.
2505 (free_aux_in_new_loops): New.
2506 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
2507 bb with it's relevant pbb. Mark newly created loops. Remove mark
2508 innermost loop parallel without checking.
2509 (gloog): Add parameter BB_PBB_MAPPING.
2510 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
2511 (gloog): Change declaration.
2512 (mark_loop_parallel): Make extern.
2513 (free_aux_in_new_loops): Declare.
2514 (bb_pbb_map_hash): New.
2515 (eq_bb_pbb_map): New.
2516 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
2517 auto parallelization when flag_graphite_force_parallel is set.
2518 (graphite_finalize): Added free_aux_in_new_loops.
2519 * tree-parloops.c (parallelize_loops): Only generate parallel code for
2520 the innermost loop that marked parallel. Use
2521 flag_graphite_force_parallel instead of loop->can_be_parallel.
2522 (loop_parallel_p): Move inner most checking out of function.
2524 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2526 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
2527 type of lower and upper bound of loops signed long int.
2529 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2531 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
2532 expression outside the loop.
2534 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2536 * gcc.dg/graphite/interchange-8.c: New.
2538 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2540 * gcc.dg/graphite/interchange-0.c: XFailed.
2541 * gcc.dg/graphite/interchange-5.c: XFailed.
2542 * gcc.dg/graphite/interchange-6.c: XFailed.
2544 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2546 * graphite-interchange.c (compute_array_size_poly): The end of the
2547 recursion should return 1.
2549 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2551 * graphite-interchange.c (compute_array_size_cstr): Allow the
2552 subscript multiplier to be -1.
2553 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
2554 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
2555 data_container. Initializes PDR_DATA_CONTAINER.
2556 (print_pdr_access_layout): New.
2557 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
2558 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
2560 (PDR_DATA_CONTAINER): New.
2561 (new_poly_dr): Update declaration.
2562 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
2563 (build_poly_dr): Call pdr_add_data_dimensions.
2565 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2567 * graphite-poly.h (struct poly_dr): Fix comment.
2568 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
2569 (pdr_add_memory_accesses): New.
2570 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
2572 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2574 * graphite-poly.c (print_pdrs, debug_pdrs): New.
2575 (print_pbb): Add call to print_pdrs.
2576 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
2578 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2579 Li Feng <nemokingdom@gmail.com>
2581 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
2582 (dependency_between_pbbs_p): New.
2583 (lexicographically_gt_p): Assure !empty_p before polyhedron
2584 intersection assign.
2585 (build_lexicographically_gt_constraint): Correct lexicographically
2587 * graphite-dependences.h: New.
2588 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
2590 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2592 * graphite-clast-to-gimple.c (print_clast_stmt): New.
2593 (gloog): Print to dump_file the generated clast.
2594 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
2595 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
2597 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2599 * graphite-poly.c (extend_scattering): Increment
2600 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
2602 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2604 * graphite-interchange.c (compute_array_size_poly): Added exit of
2605 recursion condition. Continue iterating even after the first equality.
2606 (compute_array_size): Same.
2608 2009-06-24 Li Feng <nemokingdom@gmail.com>
2610 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
2611 -fdump-tree-final_cleanup to -fdump-tree-optimized.
2612 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2613 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2614 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
2616 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2618 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
2619 only when the use verifies is_gimple_reg.
2621 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2623 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
2624 Allocate scaldims after call to unify_scattering_dimensions.
2626 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2628 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
2630 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2631 Albert Cohen <albert.cohen@inria.fr>
2633 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
2634 variables for the strip mining.
2636 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2637 Pranav Garg <pranav.garg2107@gmail.com>
2639 * Makefile.in (OBJS-common): Added graphite-blocking.o.
2640 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
2641 (graphite-blocking.o): New rule.
2642 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
2643 * graphite-blocking.c: New.
2644 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
2645 flag_loop_strip_mine.
2646 (psct_scattering_dim_for_loop_depth): New.
2647 * graphite-poly.h (scop_do_strip_mine): Declared.
2648 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
2649 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
2650 flag_loop_strip_mine.
2652 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2654 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
2655 a GMP value and a PPL coefficient at each iteration of a loop.
2657 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2659 * graphite-dependences.c (dependence_polyhedron): Do not use
2660 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
2661 pbb_nb_scattering_transform.
2662 (graphite_legal_transform_dr): Same.
2663 * graphite-poly.c (extend_scattering): Same.
2664 (unify_scattering_dimensions): Same.
2665 (print_scattering_function): Same.
2666 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
2667 PBB_NB_LOCAL_VARIABLES.
2668 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
2669 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
2670 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
2671 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
2672 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
2673 (pbb_nb_scattering_transform): New.
2674 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
2675 (psco_scattering_dim): Add assert on parameters.
2676 (psct_scattering_dim): Same.
2677 (psct_scattering_dim_for_loop_depth): Declared.
2678 (psct_local_var_dim): New.
2679 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
2680 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
2681 correct layout, call pbb_nb_local_vars.
2682 (psct_add_local_variable, psct_add_scattering_dimension): New.
2683 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2684 Initialize PBB_NB_SCATTERING_TRANSFORM.
2686 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2688 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
2689 (set_coef): Renamed ppl_set_coef.
2690 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
2692 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2694 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
2695 test a boolean against 1.
2696 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
2697 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
2698 (pbb_do_interchange): Returns true when a transform has been performed.
2699 (scop_do_interchange): Same.
2700 * graphite-poly.c (apply_poly_transforms): Use the return value of
2701 scop_do_interchange.
2702 * graphite-poly.h (scop_do_interchange): Update declaration.
2704 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
2706 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
2708 * sese.c (sese_reset_aux_in_loops): New.
2709 * sese.h (sese_reset_aux_in_loops): New.
2711 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2713 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
2714 multiplier and multiply the constant by the multiplier.
2715 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
2716 (build_poly_dr): Do not use the multiplier to define the subscript.
2718 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2720 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
2721 compiler's data reference. Initialize PDR_CDR.
2722 (print_pdr): Call dump_data_reference.
2723 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
2724 Add compiler_dr field.
2725 (PDR_BB): Renamed PDR_PBB.
2727 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
2728 GCC's data reference representation.
2729 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
2730 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
2732 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2734 * graphite-poly.c (print_scattering_function): Also print the layout.
2735 * graphite-poly.h (pbb_nb_local_vars): New.
2737 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2739 * graphite-poly.c (print_pbb_domain): Also print the layout names.
2741 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2743 * graphite-poly.c (print_pdr, debug_pdr): New.
2744 * graphite-poly.h (print_pdr, debug_pdr): Declared.
2745 (PDR_BASE): Removed.
2747 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2749 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
2752 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2754 * graphite-interchange.c (compute_subscript): Allow also -1 in the
2755 subscript identification column.
2756 (pbb_do_interchange): Print to dump_file that some loops "will be
2757 interchanged". Rely on that chain of characters in the testcases.
2758 * gcc.dg/graphite/interchange-0.c: New.
2759 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
2760 interchange-*.c files and compile them with -floop-interchange.
2762 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
2764 * graphite-interchange.c (interchange_profitable_p): Renamed
2765 pbb_interchange_profitable_p.
2767 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2768 Harsha Jagasia <harsha.jagasia@amd.com>
2769 Pranav Garg <pranav.garg2107@gmail.com>
2771 * graphite-interchange.c (interchange_profitable_p): Make static.
2772 (pbb_interchange_loop_depths, pbb_do_interchange,
2773 scop_do_interchange): New.
2774 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
2775 for flag_loop_interchange.
2776 * graphite-poly.h (scop_do_interchange): Declared.
2777 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
2778 flag_loop_interchange is used.
2780 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2782 * graphite-dependences.c (dependence_polyhedron): Update use of
2783 pbb_nb_scattering_dims.
2784 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
2785 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
2786 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
2787 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
2789 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2791 * graphite.c: Cleanup foo.
2793 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2795 * Merge from mainline (r143684:148293).
2796 * Disabled libpcp until it gets fixed.
2798 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
2799 Harsha Jagasia <harsha.jagasia@amd.com>
2801 * graphite-interchange.c: New.
2802 * Makefile.in (graphite-interchange.o): New.
2803 * graphite-poly.h (interchange_profitable_p): Declared.
2804 * graphite-ppl.h (value_max): New.
2806 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2808 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
2809 * graphite-poly.h: Fix some comments.
2813 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2816 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
2817 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
2818 (pdr_accessp_nb_params): Renamed pdr_nb_params.
2819 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
2820 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
2821 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
2822 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
2823 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
2824 * graphite-clast-to-gimple.c: Same.
2825 * graphite-dependences.c: Same.
2826 * graphite-poly.c: Same.
2827 * graphite-sese-to-poly.c: Same.
2829 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2831 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
2832 expressions for an IV rename, as returned by clast_to_gcc_expression.
2833 (copy_renames): Rename new_name to expr.
2834 * sese.c (debug_rename_elt): Same.
2837 (sese_adjust_liveout_phis): Call force_gimple_operand before using
2838 the information from the rename map.
2839 (rename_variables_in_stmt): Same.
2840 (add_loop_exit_phis): Rename new_name to expr.
2841 (insert_loop_close_phis): Same.
2842 (add_guard_exit_phis): Same. Call force_gimple_operand.
2843 * sese.h (struct rename_map_elt): Rename new_name to expr.
2844 (new_rename_map_elt): Same.
2846 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2848 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
2849 * sese.c (set_rename): Make it extern.
2850 * sese.h (set_rename): Declared.
2852 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2854 * graphite-poly.c (extend_scattering): Free values.
2855 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
2857 (ppl_print_powerset_matrix): Same.
2858 * graphite-scop-detection.c (free_scops_1): New.
2859 (limit_scops): Call free_scops_1.
2860 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
2861 (build_poly_dr): Free PPL coefficients.
2862 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
2864 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
2866 * graphite-dependences.c: New.
2867 * graphite-data-ref.c: Removed.
2868 * graphite-data-ref.h: Removed.
2869 * Makefile.in (graphite-data-ref.o): Removed.
2870 (graphite-dependences.o): Added.
2871 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
2872 * graphite-poly.c: Same.
2873 Move the data dependence testing to graphite-dependences.c.
2875 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
2877 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
2878 from graphite_cannot_represent_loop. Code refactored.
2879 (scopdet_basic_block_info): Call graphite_can_represent_loop.
2881 2009-05-17 Li Feng <nemokingdom@gmail.com>
2883 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2884 Cover all the testcases (not only the filtered ones).
2886 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
2888 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
2889 unnecessary check. Update comments. Move check for REAL_TYPE here.
2890 (harmful_stmt_in_bb): Remove checks for conditions. This is already
2891 done in (stmt_simple_for_scop_p).
2893 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
2895 * graphite.c (print_global_statistics): New.
2896 (print_graphite_scop_statistic): New.
2897 (print_graphite_statistics): New.
2898 (graphite_initialize, graphite_transform_loops): Print statistics.
2899 * graphite-scop-detection (build_scops): Print statistics.
2900 (print_graphite_scop_statistics): New.
2901 (print_graphite_statistics): New.
2903 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2905 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
2906 (debug_clast_name_index): Removed.
2907 (debug_clast_name_indexes_1): Removed.
2908 (debug_clast_name_indexes): Removed.
2909 (clast_name_index_elt_info): Removed.
2910 (eq_clast_name_indexes): Removed.
2911 (clast_name_to_index): Removed.
2912 (new_clast_name_index): Removed.
2913 (save_clast_name_index): Removed.
2914 (save_var_name): Moved...
2915 (init_sese_params_index): Removed.
2916 (clast_name_to_gcc): Remove use of name_tree.
2917 (initialize_cloog_names): Same.
2918 (gloog): Do not call init_sese_params_index.
2919 * graphite-sese-to-poly.c (save_var_name): ...here.
2920 (parameter_index_in_region): New.
2921 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
2922 (parameter_index_in_region): Removed.
2923 (is_parameter): Remove use of name_tree.
2924 * sese.h (struct name_tree): Removed.
2925 (struct sese): Remove use of name_tree. New field params_names.
2926 (SESE_PARAMS_NAMES): New.
2927 (SESE_PARAMS): Remove duplicate.
2928 (parameter_index_in_region): Removed.
2929 (sese_nb_params): Remove use of name_tree.
2930 (struct clast_name_index): New.
2931 (new_clast_name_index): New.
2932 (clast_name_to_index): New.
2933 (save_clast_name_index): New.
2934 (debug_clast_name_index): New.
2935 (debug_clast_name_indexes_1): New.
2936 (debug_clast_name_indexes): New.
2937 (clast_name_index_elt_info): New.
2938 (eq_clast_name_indexes): New.
2940 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2942 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
2943 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
2944 (graphite_loop_normal_form): Do not pass region. Do not
2945 initialize SESE_OLDIVS.
2946 (build_graphite_loop_normal_form): Update call to
2947 graphite_loop_normal_form.
2948 * sese.c (debug_oldivs): Removed.
2949 (new_sese): Do not initialize SESE_OLDIVS.
2950 (free_sese): Do not free SESE_OLDIVS.
2951 (oldiv_for_loop): Removed.
2952 * sese.h (struct sese): Remove old_ivs.
2953 (SESE_OLDIVS): Removed.
2954 (oldiv_for_loop): Removed.
2956 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2958 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
2959 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
2960 replaced by a call to newivs_to_depth_to_newiv.
2961 (clast_to_gcc_expression): Pass newivs, remove ivstack.
2962 (clast_to_gcc_expression_red): Same.
2963 (gcc_type_for_clast_expr): Same.
2964 (gcc_type_for_clast_eq): Same.
2965 (graphite_translate_clast_equation): Same.
2966 (graphite_create_guard_cond_expr): Same.
2967 (graphite_create_new_guard): Same.
2968 (graphite_create_new_loop): Same.
2969 (build_iv_mapping): Same.
2970 (translate_clast): Same.
2972 (loop_iv_stack_patch_for_consts): Removed. *
2973 sese.c (iv_stack_entry_is_constant): Removed.
2974 (iv_stack_entry_is_iv): Removed.
2975 (loop_iv_stack_push_iv): Removed.
2976 (loop_iv_stack_insert_constant): Removed.
2977 (loop_iv_stack_pop): Removed.
2978 (loop_iv_stack_get_iv): Removed.
2979 (loop_iv_stack_get_iv_from_name): Removed.
2980 (debug_loop_iv_stack): Removed.
2981 (free_loop_iv_stack): Removed.
2982 (loop_iv_stack_remove_constants): Removed. *
2983 sese.h (iv_stack_entry_kind): Removed.
2984 (iv_stack_entry_data_union): Removed.
2985 (iv_stack_entry_struct): Removed.
2986 (iv_stack_entry_p): Removed.
2987 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
2988 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
2989 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
2990 loop_iv_stack_pop, free_loop_iv_stack): Removed.
2991 (gbb_loop_at_index): Fix indenting.
2992 (gbb_loop_index): Removed.
2994 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2996 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
2997 Call clast_name_to_index.
2999 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3001 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
3002 do not pass params. Get params from SESE_PARAMS.
3003 (clast_to_gcc_expression): Same.
3004 (clast_to_gcc_expression_red): Same.
3005 (gcc_type_for_clast_eq): Same.
3006 (graphite_translate_clast_equation): Same.
3007 (graphite_create_new_loop): Same.
3008 * sese.c (rename_variables_in_stmt): Fix comment.
3010 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3012 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
3014 Call save_clast_name_index.
3015 (translate_clast): Pass newivs_index.
3016 (gloog): Create and free newivs_index.
3018 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3020 * graphite-clast-to-gimple.c (clast_name_index): New structure.
3021 (clast_name_index_p): New type.
3022 (debug_clast_name_index): New.
3023 (debug_clast_name_indexes_1): New.
3024 (debug_clast_name_indexes): New.
3025 (clast_name_index_elt_info): New.
3026 (eq_clast_name_indexes): New.
3027 (clast_name_to_index): New.
3028 (new_clast_name_index): New.
3029 (save_clast_name_index): New.
3030 (init_sese_params_index): New.
3031 (gloog): Call init_sese_params_index.
3032 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
3033 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
3034 (free_sese): Free SESE_PARAMS_INDEX.
3035 * sese.h (struct sese): Add params_index.
3036 (SESE_PARAMS_INDEX): New.
3038 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3040 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
3041 (graphite_create_new_loop): Pass the newivs vector. Push the
3042 newly created IV to newivs.
3043 (translate_clast): Pass the newivs vector.
3044 (gloog): Create and destroy the newivs vector.
3046 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3048 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
3049 (graphite_loop_normal_form): Initialize loop->aux with the unique
3050 IV that has been created.
3052 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
3054 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
3055 scev with parameters in the base part. They where forbidden
3058 2009-05-11 Li Feng <nemokingdom@gmail.com>
3060 * gcc.dg/graphite/graphite.exp: Set different default
3061 compile options by file names.
3062 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
3063 * gcc.dg/graphite/id-{1-9}.c: Ditto.
3064 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
3065 * gcc.dg/graphite/scop-matmult.c: Ditto.
3067 2009-05-08 Li Feng <nemokingdom@gmail.com>
3069 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
3070 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
3071 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
3072 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
3074 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
3076 * graphite-scop-detection (build_scops_1): Fix little bug introduced
3079 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
3081 * graphite-scop-detection.c (graphite_can_represent_scev): Only
3082 allow integer constant strides.
3083 (graphite_can_represent_expr): Depend on outermost_loop.
3084 (stmt_simple_memref_p, graphite_cannot_represent_loop,
3085 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
3086 build_scops_1): Same.
3087 (scopdet_basic_block_info): Same and insert layered SCoP
3089 (try_generate_gimple_bb): Cleanup.
3090 (build_scops): Enable data references.
3092 * gcc.dg/graphite/id-5.c: New.
3093 * gcc.dg/graphite/id-9.c: New.
3094 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
3095 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
3097 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3099 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
3100 that we have not yet built for this SCoP.
3102 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3104 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
3105 for complex numbers.
3107 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3109 * graphite-ppl.c: Fix build if cloog is not available.
3111 2009-05-04 Li Feng <nemokingdom@gmail.com>
3113 * tree-parloops.c (loop_parallel_p): Remove construction of
3114 NITER and REDUCTION_LIST.
3115 (try_get_loop_niter): New.
3116 (try_create_reduction_list): New.
3117 (parallelize_loops): Bypass the failed checkings in autopar
3118 when can_be_parallel in loop structure is set to true.
3120 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
3122 * gcc.dg/graphite/id-6.c: Update testcase.
3123 * gcc.dg/graphite/scop-3.c: Dito.
3125 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
3127 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3128 Enable EQ_EXPR and NE_EXPR again.
3130 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
3132 * graphite-scop-detection.c (graphite_can_represent_scev):
3133 Add check if scev is affine multivariate.
3134 (harmful_stmt_in_bb): Check if we can represent the conditions.
3135 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
3137 * gcc.dg/graphite/id-7.c: New.
3139 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
3141 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
3142 Check all bbs in region, not only the bbs that are represented in
3144 (build_poly_scop): Add newline.
3145 * gcc.dg/graphite/id-8.c: New.
3147 2009-04-30 Li Feng <nemokingdom@gmail.com>
3149 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
3150 when loop initialize.
3151 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
3152 * common.opt: Declare flag_graphite_force_parallel.
3153 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
3155 * graphite-poly.c (apply_poly_transforms): Introduce
3156 flag_graphite_force_parallel.
3157 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
3158 * toplev.c (process_options): ditto and replace a not correctly
3161 2009-04-30 Li Feng <nemokingdom@gmail.com>
3163 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
3164 Change the call of gbb_loop_at_index and/or gbb_loop_index due
3165 to the redefinition.
3166 (compute_cloog_iv_types_1): ditto.
3167 (build_iv_mapping): ditto.
3168 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
3170 (free_gimple_bb): Removed GBB_LOOPS related free part.
3171 (build_bb_loops): Removed.
3172 * sese.h (struct gimple_bb): Removed loops.
3173 (GBB_LOOPS): Removed.
3174 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
3175 (gbb_loop_index): ditto.
3177 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3179 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
3180 allow non constant strides.
3181 * gcc.dg/graphite/scop-20.c: New.
3183 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3185 * graphite-scop-detection.c (dot_all_scops): Fix system call
3186 return value warning.
3189 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3191 * gcc.dg/graphite/id-6.c: Fix pattern.
3192 * gcc.dg/graphite/scop-3.c: Same.
3194 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3196 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
3197 build_pairwise_constraint, dr_equality_constraints,
3198 build_pairwise_scheduling_equality,
3199 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3200 build_lexicographically_gt_constraint, dependence_polyhedron,
3201 graphite_legal_transform_dr, graphite_legal_transform_bb,
3202 graphite_legal_transform): New.
3203 * graphite-poly.h (graphite_legal_transform): Declared.
3204 * graphite-sese-to-poly.c (build_poly_scop): Call to
3205 graphite_legal_transform is disabled for the moment.
3207 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3209 * graphite-poly.h (pbb_nb_scattering_dims): New.
3210 (pbb_nb_scattering): Use it.
3212 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3214 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
3215 Pointset_Powerset version of ppl_insert_dimensions.
3216 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
3218 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3220 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
3222 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3224 * graphite-poly.h: Fix comment.
3226 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3228 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
3230 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3232 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
3235 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3237 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
3238 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
3241 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
3243 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
3244 handle EQ_EXPR and NE_EXPR.
3246 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
3248 * graphite-poly.h (poly_dr): Fix comment.
3250 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
3251 Tobias Grosser <grosser@fim.uni-passau.de>
3253 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
3254 with a zero dimension polyhedron.
3255 (find_scop_parameters): Move the call to scop_set_nb_params here.
3256 (build_loop_iteration_domains): Store in loop->aux the iteration
3258 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
3259 by any loop in scop.
3260 (build_poly_scop): Do not call scop_set_nb_params.
3262 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
3263 Tobias Grosser <grosser@fim.uni-passau.de>
3265 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
3266 add_condition_to_domain not GT_EXPR.
3268 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3270 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
3271 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
3272 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
3273 upper_bound_assign to calculate unions.
3274 * gcc.dg/graphite/id-6.c: New.
3276 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3278 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
3279 handle abnormal edges.
3281 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3283 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
3284 (free_poly_bb): Also free poly_drs.
3285 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
3286 (poly_dr): Polyhedron to Pointset_Powerset.
3287 (pdr_accessp_nb_subscripts): Same.
3288 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
3291 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3293 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
3294 names into more meaningful names.
3296 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3298 * gfortran.dg/graphite/interchange-1.c: New.
3299 * gfortran.dg/graphite/interchange-2.c: New.
3301 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3303 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
3305 * tree-parloops.c (rewrite_phi_with_iv): New.
3306 (rewrite_all_phi_nodes_with_iv): New.
3307 (canonicalize_loop_ivs): Call them.
3309 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3311 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
3312 graphite_find_data_references_in_stmt.
3313 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
3314 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
3316 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3318 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
3320 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3322 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
3323 instead of bb_in_region.
3324 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
3325 (build_sese_conditions): Use flag_bb_in_sese.
3326 * sese.c (register_bb_in_sese): Removed.
3327 (new_sese): Remove initialization of SESE_REGION_BBS.
3328 (free_sese): Do not free SESE_REGION_BBS.
3329 * sese.h (struct sese): Remove field region_basic_blocks.
3330 (SESE_REGION_BBS): Removed.
3331 (bb_in_sese_p): Implement in function of bb_in_region.
3333 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3335 * graphite-scop-detection.c (limit_scops): Deal only with single exit
3338 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3340 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
3342 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
3343 (add_condition_to_domain): New.
3344 (add_condition_to_pbb): New.
3345 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
3346 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
3348 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3350 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
3351 ppl_Pointset_Powerset.
3352 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
3353 * graphite-poly.h (poly_bb): poly_bb.domain Same.
3354 (pbb_nb_loops): Same.
3355 * graphite-sese-to-poly.c (build_loop_iteration_domains,
3356 add_conditions_to_domain): Same.
3357 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3358 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
3359 ppl_const_Polyhedron_t.
3360 (ppl_print_powerset_matrix): New.
3361 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
3362 ppl_print_powerset_matrix): New.
3363 (ppl_print_polyhedron_matrix): Updated.
3365 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3367 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
3369 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3371 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
3372 (print_iteration_domains, debug_iteration_domain,
3373 debug_iteration_domains): New.
3374 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
3375 debug_iteration_domains): Declared.
3376 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
3379 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
3380 Sebastian Pop <sebastian.pop@amd.com>
3382 * graphite-poly.h (print_iteration_domain): New.
3383 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
3384 (build_sese_conditions_1, build_sese_conditions_after,
3385 build_sese_conditions_before): New.
3386 (build_sese_conditions): Rewritten.
3388 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
3389 Tobias Grosser <grosser@fim.uni-passau.de>
3391 Cleanup of code generation liveouts.
3392 * graphite-clast-to-gimple.c (translate_clast): Use a single
3393 rename_map instead of one per translated statement.
3394 Do not use SESE_LIVEOUT_RENAMES.
3395 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
3396 (gloog): Do not use SESE_LIVEOUT_RENAMES.
3397 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
3398 phi node of a reduction: when a loop contains a reduction used outside
3399 the loop, there should be a scalar close phi node on the exit block.
3400 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
3401 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
3402 (free_sese): Do not free them.
3403 (sese_build_liveouts_use): Do not use them.
3404 (sese_build_liveouts_bb): Same.
3405 (sese_build_liveouts): Same.
3406 (sese_insert_phis_for_liveouts): Same.
3407 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
3408 (defined_in_loop_p): New.
3409 (alive_after_loop): New.
3410 (close_phi_not_yet_inserted_p): New.
3411 (struct alep, alep_p): New.
3412 (add_loop_exit_phis): Remove from the rename_map all the names defined
3413 in the code generated loop.
3414 (insert_loop_close_phis): Traverse the rename_map passed to it.
3415 Don't use SESE_LIVEOUT_RENAMES.
3416 (default_liveout_before_guard): Renamed default_before_guard.
3417 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
3418 (graphite_copy_stmts_from_block): Do not directly call set_rename.
3419 (register_sese_liveout_renames): Removed.
3420 (copy_bb_and_scalar_dependences): Do not call it.
3421 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
3423 (SESE_LIVEOUT): Removed.
3424 (SESE_LIVEOUT_RENAMES): Removed.
3425 (SESE_REDUCTION_LIST): Removed.
3426 (sese_build_liveouts): Removed.
3427 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
3428 (insert_loop_close_phis): Pass a htab_t instead of a sese.
3429 (insert_guard_phis): Same.
3430 (rename_map_elt): Declare a VEC of them.
3431 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
3432 trees not pointers to trees.
3434 Rewrite in canonical close SSA form:
3435 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
3436 (limit_scops): Close the scop after the block containing the close phi
3438 (canonicalize_loop_closed_ssa): New.
3439 (canonicalize_loop_closed_ssa_form): New.
3440 (build_scops): Call canonicalize_loop_closed_ssa_form.
3442 * graphite-sese-to-poly.c: Fix typos.
3444 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
3446 * graphite-poly.c (print_scattering_function, print_pbb_domain):
3448 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
3449 (print_pbb): Add conditions.
3451 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
3452 Sebastian Pop <sebastian.pop@amd.com>
3454 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
3455 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
3456 (build_scop_bbs_1): New.
3457 (build_scop_bbs): Rewrite.
3458 * sese.h (bb_in_region): New.
3460 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3462 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3464 (print_scop): Style.
3465 * graphite-poly.h (poly_bb): Add drs vector.
3466 (PBB_DRS): Add accessor.
3467 * graphite-sese-to-poly.c (build_poly_dr): New.
3468 (build_pbb_drs, build_scop_drs): New.
3469 (build_poly_scop): call build_scop_drs (Disabled at the moment).
3471 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3473 * tree-ssa-loop.c: Include forgotten toplev.h
3475 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3477 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
3478 * gcc.dg/graphite/pr37883.c: Remove -floop-*
3479 * gcc.dg/graphite/pr37928.c: Same
3480 * gcc.dg/graphite/pr38409.c: Same
3481 * gcc.dg/graphite/pr38498.c: Same
3482 * gcc.dg/graphite/pr38559.c: Same
3483 * gcc.dg/graphite/pr39335.c: Same
3484 * gcc.dg/graphite/pr39335_1.c: Same
3485 * gfortran.dg/graphite/block-2.f: Same
3486 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
3489 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
3491 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
3492 build_access_matrix, build_scop_data_accesses): Remove access function
3493 building. (We get a new version soon).
3494 (build_bb_loops, scan_tree_for_params_right_scev): Update.
3495 * sese.h (nb_loops_around_loop_in_sese): Remove.
3496 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
3498 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
3499 Sebastian Pop <sebastian.pop@amd.com>
3501 * graphite-scop-detection.c (struct scopdet_info): Rename last
3503 (scopdet_basic_block_info, build_scops_1): Don't use
3504 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
3506 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
3507 Sebastian Pop <sebastian.pop@amd.com>
3509 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
3510 * sese.c (sese_build_liveouts_use): Renamed from
3511 sese_build_livein_liveouts_use. Remove liveins.
3512 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
3513 Call sese_build_liveouts_use.
3514 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
3515 Call sese_build_liveouts_bb.
3516 (new_sese, free_sese): Remove liveins.
3517 (sese_add_exit_phis_var): Deleted.
3518 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
3520 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
3522 * sese.h (sese): Remove num_ver and livein.
3523 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
3525 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
3527 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
3529 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
3531 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
3532 (build_scop_scattering): Do not use compare_prefix_loops any more.
3533 (nb_common_loops): New.
3535 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3537 * sese.c (get_new_name_from_old_name): Renamed get_rename.
3538 (register_old_and_new_names): Renamed set_rename.
3540 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3542 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
3543 of the decl from the previous commit.
3545 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3547 * graphite-scop-detection.c (dot_scop): New.
3548 * graphite-scop-detection.h (dot_scop): Declared.
3550 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3552 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
3554 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3556 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
3557 condition at the end of the loop.
3558 * graphite.c (graphite_initialize, graphite_finalize): Print to
3559 dump_file the compiled function.
3560 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
3561 of create_empty_loop_on_edge.
3562 (translate_clast): Update the code generation of loops for the new
3564 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
3566 2009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3568 Reverted the patch from 2009-03-19.
3570 2009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
3572 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3574 (print_scop): Style.
3575 * graphite-poly.h (poly_bb): Add drs vector.
3576 (PBB_DRS): Add accessor.
3577 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
3578 (build_access_matrix_with_af, build_access_matrix,
3579 build_scop_data_accesses): Delete.
3580 (build_poly_dr): New.
3581 (build_pbb_drs, build_scop_drs): New.
3582 (build_poly_scop): call build_scop_drs.
3584 2009-03-13 Sebastian Pop <sebastian.pop@amd.com>
3586 * graphite-scop-detection.c (dot_all_scops_1): Close the table
3587 once per basic block.
3589 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
3591 * graphite-scop-detection.c (graphite_can_represent_scev): New.
3592 (graphite_can_represent_expr): Renamed from loop_affine_expr
3594 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
3595 (graphite_cannot_represent_loop): Add scop_entry to parameters.
3596 (scopdet_basic_block_info): Actually define entry_block.
3597 (stmt_simple_memref_p): Moved here from ...
3599 * tree-data-ref.c (stmt_simple_memref_p): here.
3600 * tree-data-ref.h (stmt_simple_memref_p): Removed.
3602 2009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
3604 * gcc.dg/graphite/id-4.c: New.
3606 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
3608 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
3609 (register_old_and_new_names): Update the content of the map.
3610 When there was already a rename_map_elt in the map at that
3612 (copy_bb_and_scalar_dependences): Do rename_variables after
3613 expand_scalar_variables.
3614 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3615 of the map. When there was already a rename_map_elt in the
3616 map at that location, free it.
3617 (translate_clast): Pass the rename_map. Do not initialize and free
3618 a rename_map per stmt_user.
3619 (gloog): Initialize and free one rename_map and pass it to
3622 2009-03-12 Sebastian Pop <sebastian.pop@amd.com>
3624 * sese.c (expand_scalar_variables_stmt,
3625 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
3627 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
3628 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
3629 the gimple_stmt_iterator of the statement to be expanded.
3630 * graphite-scop-detection.c (is_simple_operand): Do handle
3633 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3635 * graphite-scop-detection.c (is_simple_operand): Do not handle
3637 * gcc.dg/graphite/id-2.c: New.
3639 * graphite-sese-to-poly.c (build_bb_loops,
3640 add_value_to_dim, scan_tree_for_params_right_scev,
3641 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
3642 find_params_in_bb, build_loop_iteration_domains,
3643 add_conditions_to_domain): Remove subtract.
3645 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3647 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
3648 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
3649 pbb_loop_at_index -> gbb_loop_at_index.
3650 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
3651 (debug_loop_vec): Delete.
3652 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
3653 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
3654 (PBB_LOOPS): Removed.
3655 (PBB_BLACK_BOX): Insert cast.
3656 (pbb_set_black_box): New setter.
3657 (pbb_loop_at_index, pbb_loop_index): Removed.
3658 (scop_set_region, scop_set_nb_params): New.
3659 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
3660 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
3661 (build_poly_scop): Use scop_set_nb_params.
3662 * sese.h (gimple_bb): Add LOOPS.
3663 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
3665 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3667 Revert previous commit.
3669 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
3671 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
3672 (register_old_and_new_names): Update the content of the map.
3673 When there was already a rename_map_elt in the map at that
3675 (copy_bb_and_scalar_dependences): Do rename_variables after
3676 expand_scalar_variables.
3677 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3678 of the map. When there was already a rename_map_elt in the
3679 map at that location, free it.
3680 (translate_clast): Pass the rename_map. Do not initialize and free
3681 a rename_map per stmt_user.
3682 (gloog): Initialize and free one rename_map and pass it to
3685 2009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3687 Remove forgotten line in revert.
3689 2009-03-11 Sebastian Pop <sebastian.pop@amd.com>
3691 Revert previous commit.
3693 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
3695 * sese.c (register_old_and_new_names): Update the content
3696 of the map. When there was already a rename_map_elt in the
3697 map at that location, free it.
3698 (copy_bb_and_scalar_dependences): Do rename_variables after
3699 expand_scalar_variables.
3700 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3701 of the map. When there was already a rename_map_elt in the
3702 map at that location, free it.
3703 (translate_clast): Pass the rename_map. Do not initialize and free
3704 a rename_map per stmt_user.
3705 (gloog): Initialize and free one rename_map and pass it to
3708 2009-03-10 Sebastian Pop <sebastian.pop@amd.com>
3710 * graphite-clast-to-gimple.c (translate_clast): context_loop
3713 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
3714 Sebastian Pop <sebastian.pop@amd.com>
3716 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
3717 of the use of ppl_Polyhedron_map_space_dimensions.
3719 2009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
3720 Sebastian Pop <sebastian.pop@amd.com>
3722 * graphite-poly.c (unify_scattering_dimensions): Fix types.
3723 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
3724 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
3725 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
3726 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
3727 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
3728 pbb_nb_params): New.
3729 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
3730 nb_loops_around_pbb): Adapt return types.
3732 2009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
3734 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
3735 graphite-clast-to-gimple.o, graphite-data-ref.o,
3736 graphite-scop-detection.o, graphite-poly.o): Add
3739 2009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
3741 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
3742 graphite-clast-to-gimple.o, graphite-data-ref.o,
3743 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
3745 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
3747 * gcc.dg/graphite/pr37485.c: Remove -floop-block
3748 * gcc.dg/graphite/pr37828.c: Same.
3749 * gcc.dg/graphite/pr37684.c: Same.
3750 * gcc.dg/graphite/block-0.c: Same.
3751 * gcc.dg/graphite/block-1.c: Same.
3752 * gcc.dg/graphite/block-2.c: Same.
3753 * gcc.dg/graphite/block-3.c: Same.
3754 * gcc.dg/graphite/block-4.c: Same.
3755 * gcc.dg/graphite/block-5.c: Same.
3756 * gcc.dg/graphite/block-6.c: Same.
3757 * gfortran.dg/graphite/pr38083.f90: Same.
3758 * gfortran.dg/graphite/block-1.f90: Same.
3759 * gfortran.dg/graphite/block-3.f90: Same.
3760 * gfortran.dg/graphite/pr37852.f90: Same.
3761 * gfortran.dg/graphite/block-4.f90: Same.
3762 * gfortran.dg/graphite/pr37980.f90: Same.
3763 * gfortran.dg/graphite/pr38953.f90: Same.
3764 * gfortran.dg/graphite/pr37857.f90: Same.
3765 * opts.c: Remove -floop-block from -O2.
3766 * graphite-poly.c: Fail if -floop-block -floop-interchange or
3767 -floop-strip-mine are used.
3769 2009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
3770 Sebastian Pop <sebastian.pop@amd.com>
3772 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
3774 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
3775 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
3776 strip_mine_profitable_p, is_interchange_valid,
3777 graphite_trans_bb_block, graphite_trans_loop_block,
3778 graphite_trans_scop_block): Temporary removed.
3779 (extend_scattering, unify_scattering_dimensions): New.
3780 (print_scattering_function, graphite_read_transforms):
3781 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3782 (graphite_generate_scattering_fns): Removed.
3783 (apply_poly_transforms): Cleanup.
3784 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3785 (schedule_to_scattering): Moved.
3786 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
3787 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
3788 (pbb_nb_scattering): New.
3789 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
3790 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
3792 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
3794 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3795 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
3796 -> PBB_TRANSFORMED_SCATTERING.
3797 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
3798 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
3799 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
3800 (check_poly_representation): Do not return bool.
3801 (graphite_transform_loops): Reformat.
3802 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
3804 2009-03-04 Sebastian Pop <sebastian.pop@amd.com>
3806 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
3807 debug_pbb_domain, debug_pbb, debug_scop): New.
3808 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
3809 debug_pbb_domain, debug_pbb, debug_scop): Declared.
3811 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3814 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
3815 when the type precision of the induction variable should be
3816 larger than the type precision of nit.
3817 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
3818 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
3819 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
3821 * gcc.dg/graphite/pr39335_1.c: New.
3822 * gcc.dg/graphite/pr39335.c: New.
3824 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3826 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
3827 SSA_NAMES not struct reduction_info.
3829 2009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3831 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
3833 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3834 Tobias Grosser <grosser@fim.uni-passau.de>
3836 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
3837 (free_sese): Free SESE_REDUCTION_LIST.
3838 * sese.h (struct sese): Add field reduction_list.
3839 (SESE_REDUCTION_LIST): New.
3840 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
3841 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
3843 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3844 Tobias Grosser <grosser@fim.uni-passau.de>
3846 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
3849 2009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3850 Tobias Grosser <grosser@fim.uni-passau.de>
3852 * tree-parloops.c (struct brli, build_reduction_list_info,
3853 analyze_reduction_list, gather_scalar_reductions): New.
3854 (loop_parallel_p): Build a reduction list containing only
3855 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
3856 (gen_parallel_loop): Call the analysis analyze_reduction_list.
3857 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
3858 * tree-flow.h (gather_scalar_reductions): Declared.
3860 2009-02-26 Sebastian Pop <sebastian.pop@amd.com>
3863 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
3864 number_of_iterations_exit from a gcc_assert.
3866 2009-02-25 Sebastian Pop <sebastian.pop@amd.com>
3867 Jan Sjodin <jan.sjodin@amd.com>
3869 * output.h (graphite_out_file, graphite_in_file): Declared.
3870 * toplev.c (graphite_out_file, graphite_in_file): New.
3871 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
3872 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
3873 Don't call schedule_to_scattering.
3874 * common.opt (fgraphite-write, fgraphite-read): New.
3875 * graphite-poly.c: Include output.h.
3876 (print_scattering_function, print_scattering_functions,
3877 debug_scattering_function, debug_scattering_functions,
3878 graphite_write_transforms, graphite_read_transforms,
3879 graphite_generate_scattering_fns): New.
3880 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
3881 Call graphite_generate_scattering_fns, graphite_write_transforms,
3882 graphite_read_transforms.
3883 (new_poly_bb): Initialize PBB_SCATTERING.
3884 (free_poly_bb): Free PBB_SCATTERING.
3885 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
3886 * graphite-poly.h (struct poly_bb): Add field scattering.
3887 (PBB_SCATTERING): New.
3888 (print_scattering_function, print_scattering_functions,
3889 debug_scattering_function, debug_scattering_functions): Declared.
3890 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
3891 GMP values, not integers!
3892 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
3893 ppl_read_polyhedron_matrix): New.
3894 * graphite-ppl.h (ppl_print_polyhedron_matrix,
3895 debug_ppl_polyhedron_matrix,
3896 ppl_read_polyhedron_matrix): Declared.
3897 * Makefile.in (graphite-poly.o): Depends on output.h.
3899 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3900 Tobias Grosser <grosser@fim.uni-passau.de>
3903 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
3904 scalar evolutions in the scop_entry->loop_father.
3906 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3907 Tobias Grosser <grosser@fim.uni-passau.de>
3909 * graphite.h (ref_nb_loops): Remove declaration.
3910 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
3911 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
3912 debug_gbb): Moved to sese.h.
3915 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3916 Tobias Grosser <grosser@fim.uni-passau.de>
3918 * graphite-data-ref.[ch]: Disable.
3920 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3921 Tobias Grosser <grosser@fim.uni-passau.de>
3923 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
3924 scalar evolutions in the scop_entry->loop_father.
3926 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3928 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
3929 (graphite_cannot_represent_loop_niter): Renamed
3930 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
3931 (limit_scops): build_sese_loop_nests does not return a bool.
3932 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
3933 * sese.c (nb_reductions_in_loop): ... from here.
3934 (graphite_loop_normal_form): ... from here.
3935 (sese_record_loop): Does not fail, so does not return a bool.
3936 (build_sese_loop_nests): Same.
3937 * sese.h (build_sese_loop_nests): Update declaration.
3938 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
3939 (build_graphite_loop_normal_form): New.
3940 (gloog): Call build_graphite_loop_normal_form.
3941 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
3942 build_sese_loop_nests.
3944 * gcc.dg/graphite/id-1.c: New.
3946 2009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3947 Tobias Grosser <grosser@fim.uni-passau.de>
3949 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
3950 The SCoP detection fix is sufficient.
3952 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
3954 PR tree-optimization/39260
3955 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
3956 the basic block contains a condition with a real type.
3957 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
3959 * gcc.dg/graphite/pr39260.c: New.
3961 2009-02-21 Sebastian Pop <sebastian.pop@amd.com>
3963 * graphite-poly.c: Inlcude params.h.
3964 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
3966 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
3967 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
3969 2009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3970 Tobias Grosser <grosser@fim.uni-passau.de>
3972 * graphite-scop-detection.c (dot_all_scops_1,
3973 dot_all_scops): Moved here.
3974 * graphite-scop-detection.h (dot_all_scops): Declared here.