1 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
4 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
5 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
7 * gfortran.dg/graphite/pr43097.f: New.
9 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
10 Manuel López-Ibáñez <manu@gcc.gnu.org>
13 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
15 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
18 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
20 * g++.dg/graphite/pr43026.C: New.
22 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
25 * gcc.dg/graphite/pr43012.c: New.
27 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
29 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
30 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
32 * g++.dg/graphite/pr42930.C: New.
34 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
37 * graphite-scop-detection.c (graphite_can_represent_scev): Call
38 graphite_can_represent_init for MULT_EXPR.
40 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
44 * graphite-sese-to-poly.c (remove_phi): New.
45 (translate_scalar_reduction_to_array): Call remove_phi.
47 * gcc.dg/graphite/pr42530.c: New.
48 * gcc.dg/graphite/pr42914.c: New.
50 2010-02-10 Sebastian Pop <sebastian.pop@amd.com>
53 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
54 * graphite-clast-to-gimple.h (gloog): Update declaration.
55 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
56 * graphite-poly.h (struct poly_bb): Add missing comments.
57 (struct scop): Add poly_scop_p field.
59 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
60 * graphite.c (graphite_transform_loops): Build the polyhedral
61 representation for each scop before code generation.
62 * sese.c (rename_variables_in_operand): Removed.
63 (rename_variables_in_expr): Return the renamed expression.
64 (rename_sese_parameters): New.
65 * sese.h (rename_sese_parameters): Declared.
67 * gcc.dg/graphite/pr42771.c: New.
69 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
71 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
73 * gcc.dg/graphite/block-1.c: Same.
74 * gcc.dg/graphite/block-3.c: Same.
75 * gcc.dg/graphite/block-4.c: Same.
76 * gcc.dg/graphite/block-5.c: Same.
77 * gcc.dg/graphite/block-6.c: Same.
78 * gcc.dg/graphite/block-7.c: Same.
79 * gcc.dg/graphite/interchange-0.c: Same.
80 * gcc.dg/graphite/interchange-1.c: Same.
81 * gcc.dg/graphite/interchange-10.c: Same.
82 * gcc.dg/graphite/interchange-11.c: Same.
83 * gcc.dg/graphite/interchange-12.c: Same.
84 * gcc.dg/graphite/interchange-2.c: Same.
85 * gcc.dg/graphite/interchange-3.c: Same.
86 * gcc.dg/graphite/interchange-4.c: Same.
87 * gcc.dg/graphite/interchange-5.c: Same.
88 * gcc.dg/graphite/interchange-6.c: Same.
89 * gcc.dg/graphite/interchange-7.c: Same.
90 * gcc.dg/graphite/interchange-8.c: Same.
91 * gcc.dg/graphite/interchange-9.c: Same.
92 * gcc.dg/graphite/interchange-mvt.c: Same.
94 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
96 * gfortran.dg/graphite/id-19.f: New.
97 * gfortran.dg/graphite/pr14741.f90: New.
98 * gfortran.dg/graphite/pr41924.f90: New.
99 * gfortran.dg/graphite/run-id-2.f90: New.
101 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
104 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
105 to unknown_dependence.
106 (graphite_legal_transform_dr): Handle the unknown_dependence.
107 (graphite_carried_dependence_level_k): Same.
109 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
111 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
113 2010-02-05 Sebastian Pop <sebastian.pop@amd.com>
114 Konrad Trifunovic <konrad.trifunovic@inria.fr>
117 * graphite-dependences.c (build_lexicographical_constraint): Return
118 a union of dependence polyhedra.
119 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
121 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
122 * gcc.dg/graphite/block-4.c: Same.
123 * gcc.dg/graphite/block-7.c: Same.
124 * gcc.dg/graphite/interchange-12.c: Same.
125 * gcc.dg/graphite/interchange-mvt.c: Same.
126 * gfortran.dg/graphite/interchange-1.f: XFAILed.
127 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
128 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
130 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
132 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
133 the execution check to FAIL. This testcase is miscompiled by Graphite
134 and the check should be re-enabled.
135 * gcc.dg/graphite/interchange-mvt.c: Same.
136 * gcc.dg/graphite/block-0.c: Same.
137 * gcc.dg/graphite/block-4.c: Same.
138 * gcc.dg/graphite/block-7.c: Same.
140 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
142 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
143 * gcc.dg/graphite/scop-0.c: Fix spaces.
144 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
145 * gfortran.dg/graphite/block-2.f: Same.
146 * gfortran.dg/graphite/block-3.f90: Same.
147 * gfortran.dg/graphite/block-4.f90: Same.
148 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
149 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
151 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
153 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
154 PDDR_ORIGINAL_SCATTERING_P.
155 (pddr_is_empty): Rewritten.
156 (print_dependence_polyhedron_layout): New.
159 (build_alias_set_powerset): Moved up.
160 (poly_drs_may_alias_p): Moved up.
161 (lexicographically_gt_p): Removed.
162 (build_lexicographically_gt_constraint): Renamed
163 build_lexicographical_constraint, reimplemented.
164 (dependence_polyhedron_1): Simplified parameters.
165 (dependence_polyhedron): Same. Keep along empty PDDRs
166 to make efficient use of the cache.
167 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
168 (graphite_legal_transform_dr): Rewritten.
169 (graphite_legal_transform_bb): Pass fewer arguments to
170 graphite_legal_transform_dr.
171 (graphite_carried_dependence_level_k): Simplified implementation.
172 (dot_original_deps_stmt_1): Call dependence_polyhedron.
173 (dot_transformed_deps_stmt_1): Same.
174 (dot_original_deps): Same.
175 (dot_transformed_deps): Same.
176 * graphite-dependences.h (struct poly_ddr): Added a new field
177 original_scattering_p.
178 (PDDR_ORIGINAL_SCATTERING_P): New.
179 (print_pddr): Declared.
180 (debug_pddr): Declared.
181 * graphite-ppl.c: Clarify comment.
182 * sese.h (print_gimple_bb): Removed unused declaration.
185 2010-02-03 Sebastian Pop <sebastian.pop@amd.com>
187 * g++.dg/graphite/graphite.exp: Rewritten.
188 * gcc.dg/graphite/graphite.exp: Rewritten.
189 * gfortran.dg/graphite/graphite.exp: Rewritten.
190 * gcc.dg/graphite/block-0.c: Added runtime test.
191 * gcc.dg/graphite/block-1.c: Same.
192 * gcc.dg/graphite/block-3.c: Same.
193 * gcc.dg/graphite/block-4.c: Same.
194 * gcc.dg/graphite/block-5.c: Same.
195 * gcc.dg/graphite/block-6.c: Same.
196 * gcc.dg/graphite/block-7.c: Same.
197 * gcc.dg/graphite/interchange-0.c: Same.
198 * gcc.dg/graphite/interchange-1.c: Same.
199 * gcc.dg/graphite/interchange-10.c: Same.
200 * gcc.dg/graphite/interchange-11.c: Same.
201 * gcc.dg/graphite/interchange-12.c: Same.
202 * gcc.dg/graphite/interchange-2.c: Same.
203 * gcc.dg/graphite/interchange-3.c: Same.
204 * gcc.dg/graphite/interchange-4.c: Same.
205 * gcc.dg/graphite/interchange-5.c: Same.
206 * gcc.dg/graphite/interchange-6.c: Same.
207 * gcc.dg/graphite/interchange-7.c: Same.
208 * gcc.dg/graphite/interchange-8.c: Same.
209 * gcc.dg/graphite/interchange-9.c: Same.
210 * gcc.dg/graphite/interchange-mvt.c: Same.
211 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
213 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
215 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
218 2010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
220 * common.opt: Add -fgraphite-cloog-opts.
221 * graphite-clast-to-gimple.c (set_cloog_options): Same.
222 * opts.c (decode_options): Same.
224 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
226 * gcc.dg/graphite/id-17.c: New.
227 * gcc.dg/graphite/pr41888.c: New.
228 * gcc.dg/graphite/scop-22.c: New.
229 * gfortran.dg/graphite/pr40982.f90: New.
231 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
233 * graphite-dependences.c: Clarify comments.
234 (build_pddr): Add an extra parameter direction.
235 (graphite_legal_transform_dr): Use build_pddr.
236 (dot_original_deps_stmt_1): Update use of build_pddr.
237 (dot_transformed_deps_stmt_1): Same.
238 (dot_original_deps): Same.
239 (dot_transformed_deps): Same.
241 * gcc.dg/graphite/interchange-12.c: New.
242 * gcc.dg/graphite/block-7.c: New.
244 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
246 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
247 (pddr_transformed_scattering): Removed.
248 (graphite_legal_transform_dr): Use build_pddr.
249 (dot_original_deps_stmt_1): Same.
250 (dot_transformed_deps_stmt_1): Same.
251 (dot_original_deps): Same.
252 (dot_transformed_deps): Same.
254 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
256 * graphite-dependences.c (lexicographically_gt_p): Add comments.
257 (build_lexicographically_gt_constraint): Same.
258 (dependence_polyhedron_1): Same.
259 (dependence_polyhedron): Same.
261 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
263 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
264 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
265 (lexicographically_gt_p): Change type of direction to int.
266 (build_lexicographically_gt_constraint): Same.
267 (dependence_polyhedron_1): Same.
268 (dependence_polyhedron): Same.
269 (pddr_original_scattering): Use integers for direction.
270 (pddr_transformed_scattering): Same.
271 (graphite_legal_transform_dr): Same.
272 (graphite_carried_dependence_level_k): Same.
274 2010-01-20 Sebastian Pop <sebastian.pop@amd.com>
276 * graphite-dependences.c (build_pairwise_constraint): Renamed
277 ppl_build_relation. Moved...
278 (dr_equality_constraints): Use ppl_build_relation.
279 (build_pairwise_scheduling_equality): Same.
280 (build_pairwise_scheduling_inequality): Same.
281 * graphite-ppl.c (ppl_build_relation): ...here.
282 * graphite-ppl.h (ppl_build_relation): Declared.
284 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
287 * graphite-clast-to-gimple.c (gloog_error): New static variable.
288 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
289 Set gloog_error when such an expression failed to be built.
290 (translate_clast): Early return when gloog_error is set.
291 (gloog): Clear gloog_error. When gloog_error is set, call
292 set_ifsese_condition to enable the original code. Return the status
293 of the code generation based on gloog_error.
294 * sese.c (set_ifsese_condition): New.
295 * sese.h (set_ifsese_condition): Declared.
297 * g++.dg/graphite/pr42681.C: New.
299 2010-01-14 Sebastian Pop <sebastian.pop@amd.com>
302 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
303 rename_nb_iterations.
304 * sese.c (rename_variables_in_operand): New.
305 (rename_variables_in_expr): New.
306 (rename_nb_iterations): New.
307 (sese_adjust_liveout_phis): Update the rename_map.
308 * sese.h (rename_nb_iterations): Declared.
309 * tree-scalar-evolution.c (scev_reset_htab): New.
310 (scev_reset): Call scev_reset_htab.
311 * tree-scalar-evolution.h (scev_reset_htab): Declared.
313 * gfortran.dg/graphite/pr42732.f: New.
315 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
318 * graphite-clast-to-gimple.c: Fix formatting.
319 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
320 (expr_defined_in_loop_p): New.
321 (add_loop_exit_phis): Also handle full expressions: remove from
322 the rename_map the expressions defined in the loop that we're closing.
324 * gfortran.dg/graphite/pr42393-1.f90: New.
325 * gfortran.dg/graphite/pr42393.f90: Add new flags
326 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
327 make this testcase useful in the Graphite branch.
329 2010-01-08 Sebastian Pop <sebastian.pop@amd.com>
331 * graphite-scop-detection.c (exclude_component_ref): Removed.
332 (is_simple_operand): Removed.
333 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
335 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
338 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
339 the array indexing of ADDR_EXPRs.
341 * gcc.dg/graphite/pr42221.c: New.
343 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
346 * graphite.c (graphite_finalize): Call scev_reset.
347 (graphite_transform_loops): Do not call scev_reset between the code
350 * gcc.dg/graphite/pr42521.c: New.
352 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
354 * graphite-interchange.c (memory_stride_in_loop): Renamed
356 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
357 (memory_strides_in_loop): Memoize the memory strides per loop.
358 (lst_interchange_profitable_p): Do not initialize to zero the memory
360 * graphite-poly.h (struct lst): Add a field memory_strides.
361 (LST_LOOP_MEMORY_STRIDES): New.
362 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
363 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
365 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
367 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
368 memory_strides_in_loop. Gather memory strides on a whole loop.
369 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
370 (lst_interchange_profitable_p): Removed.
371 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
373 2010-01-07 Sebastian Pop <sebastian.pop@amd.com>
375 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
376 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
377 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
378 Remove context_loop and level.
380 2010-01-07 Richard Guenther <rguenther@suse.de>
382 PR tree-optimization/42641
383 * sese.c (rename_map_elt_info): Use the SSA name version, do
386 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
388 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
389 blocked" only when both the strip mine and the interchange have
392 * gcc.dg/graphite/block-2.c: Removed.
393 * gcc.dg/graphite/block-3.c: Add scan pattern.
394 * gcc.dg/graphite/block-4.c: Same.
395 * gcc.dg/graphite/block-5.c: Same.
396 * gcc.dg/graphite/block-6.c: Same.
398 2010-01-06 Sebastian Pop <sebastian.pop@amd.com>
400 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
401 before allocating a new one.
402 (copy_renames): Check that slot is not NULL.
403 (mark_bb_with_pbb): Same.
404 (compute_cloog_iv_types_1): Same.
405 * graphite-interchange.c (lst_perfect_nestify): Free the before,
406 nest, and after LSTs.
407 (lst_try_interchange_loops): Same.
409 2010-01-05 Sebastian Pop <sebastian.pop@amd.com>
412 * graphite-interchange.c (lst_try_interchange_loops): Do not return
413 the before, nest, and after LSTs.
414 (lst_try_interchange): Removed.
415 (lst_interchange_select_inner): Do not iterate over the LSTs if they
417 (lst_interchange_select_outer): Apply interchange on the outer loop
418 until there are no more changes in the inner loops.
420 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
422 Revert patch fixing PR middle-end/42221.
424 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
427 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
430 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
432 2009-12-18 Sebastian Pop <sebastian.pop@amd.com>
435 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
436 that contain only one statement.
438 * gfortran.dg/graphite/pr42180.f90: New.
440 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
443 * gfortran.dg/graphite/pr42393.f90: New.
445 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
448 * gfortran.dg/graphite/pr42186.f90: New.
450 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
453 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
454 Insert the reduction copy in the same block as the phi node.
455 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
457 * gcc.dg/graphite/pr42205-1.c: New.
458 * gcc.dg/graphite/pr42205-2.c: New.
460 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
463 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
464 the array indexing of ADDR_EXPRs.
466 * gcc.dg/graphite/pr42221.c: New.
468 2009-12-17 Sebastian Pop <sebastian.pop@amd.com>
472 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
473 index. Call lst_interchange_select_inner only once.
474 (lst_interchange_select_inner): Update use of lst_try_interchange.
475 (lst_interchange_select_outer): Update.
477 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
481 * graphite-interchange.c (lst_try_interchange): Do not increment the
482 the OUTER index when there is no AFTER kernel. Do not increment the
483 OUTER index for after processing the AFTER kernel.
484 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
485 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
486 index. Do not pass to lst_interchange_select_inner the OUTER index.
487 (scop_do_interchange): Update use of lst_interchange_select_outer.
489 * gfortran.dg/graphite/graphite.exp
490 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
491 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
492 the graphite dump file.
493 * gfortran.dg/graphite/interchange-2.f: Same.
494 * gfortran.dg/graphite/pr42334-1.f: New.
496 2009-12-15 Sebastian Pop <sebastian.pop@amd.com>
500 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
502 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
503 (lst_try_interchange): Reimplemented.
504 (lst_interchange_select_inner): Same.
505 (lst_do_interchange): Renamed lst_interchange_select_outer.
507 (scop_do_interchange): Update use of lst_interchange_select_outer.
509 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
510 * gcc.dg/graphite/block-0.c: Un-XFAILed.
511 * gcc.dg/graphite/pr42211.c: New.
512 * gfortran.dg/graphite/pr42334.f90: New.
514 2009-12-14 Sebastian Pop <sebastian.pop@amd.com>
517 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
518 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
520 * gfortran.dg/graphite/pr42181.f90: New.
522 2009-12-12 Sebastian Pop <sebpop@gmail.com>
525 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
526 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
527 (detect_commutative_reduction_arg): Simplified.
528 (detect_commutative_reduction): Early return when the argument of
529 the close phi is not of an SSA_NAME.
531 * gcc.dg/graphite/pr42284.c: New.
533 2009-12-11 Alexander Monakov <amonakov@ispras.ru>
535 * dbgcnt.def (graphite_scop): New counter.
536 * graphite.c: Include dbgcnt.h
537 (graphite_transform_loops): Use new counter to limit transformations.
539 2009-12-08 Sebastian Pop <sebpop@gmail.com>
542 * graphite-scop-detection.c (graphite_can_represent_init): Also
543 handle more complex MULT_EXPRs containing parameters by recursion
546 * gfortran.dg/graphite/pr42285.f90: New.
548 2009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
550 * g++.dg/graphite/pr42130.C: Fix type.
552 2009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
554 * g++.dg/graphite/pr42130.C: Correct testcase.
556 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
558 * Merge from mainline (154493:154734).
560 2009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
562 * Merge from mainline (151362:154491).
564 2009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
566 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
567 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
569 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
572 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
573 translate_clast_for_loop): New.
574 (translate_clast_for): Add a condition around the loop, to do not
575 execute loops with zero iterations.
576 * g++.dg/graphite/pr42130.C: New.
577 * gcc.dg/graphite/pr35356-2.c: Adapt.
579 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
581 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
582 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
583 Remove context_loop and level.
585 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
587 * graphite-clast-to-gimple.c (translate_clast_user,
588 translate_clast_for, translate_clast_guard): Simplify and move common
589 elements to translate_clast().
590 (translate_clast): Simplify and get common elements.
592 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
594 * graphite-clast-to-gimple.c (translate_clast_user,
595 translate_clast_for, translate_clast_guard): Split out of
598 2009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
600 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
601 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
602 debug_clast_name_indexes_1, debug_clast_name_indexes,
603 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
604 (clast_name_to_gcc, clast_to_gcc_expression,
605 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
606 gcc_type_for_clast_eq, graphite_translate_clast_equation,
607 graphite_create_guard_cond_expr, graphite_create_new_loop,
608 translate_clast): Add params_index.
609 (initialize_cloog_names): Create parameter strings from scratch, do
610 not reference other strings.
611 (create_params_index): New.
612 (gloog): Initialize params_index.
613 * graphite-scop-detection (free_scops_1): Removed.
614 (limit_scops): Use normal free_scops.
615 * graphite-sese-to-poly.c (save_var_names): Removed.
616 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
617 and SESE_PARAMS_INDEX.
618 * sese.c (new_sese, free_sese): Dito.
619 * sese.h (struct sese): Remove params_index, params_names.
620 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
622 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
624 Revert the following patch from 2009-09-14:
625 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
626 tree-scalar-evolution.h, and then tree-data-ref.h.
627 * graphite-clast-to-gimple.c: Same.
628 * graphite-dependences.c: Same.
629 * graphite-interchange.c: Same.
630 * graphite-poly.c: Same.
631 * graphite-scop-detection.c: Same.
632 * graphite-sese-to-poly.c: Same.
634 * lambda-code.c: Same.
635 * matrix-reorg.c: Same.
636 * tree-data-ref.c: Same.
637 * tree-if-conv.c: Same.
638 * tree-loop-distribu: Same.: Same.
639 * tree-loop-linear.c: Same.
640 * tree-parloops.c: Same.
641 * tree-predcom.c: Same.
642 * tree-vect-patterns.c: Same.
644 2009-11-20 Sebastian Pop <sebastian.pop@amd.com>
646 Revert patch from 2009-09-14.
647 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
648 passes at -O1 and below.
650 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
653 * gcc.dg/graphite/pr40281.c: New.
655 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
656 evolutions should not variate in inner loops.
658 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
661 * gfortran.dg/graphite/pr42050.f90: New.
663 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
665 * graphite-interchange.c (memory_strides_in_loop_depth): New.
666 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
668 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
670 * graphite-blocking.c (scop_do_block): New.
671 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
672 * graphite-poly.h (scop_do_block): Declared.
674 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
676 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
677 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
678 to transform depth into the time_depth before calling
679 pbb_number_of_iterations_at_time.
680 (lst_do_strip_mine): Use a scalar variable instead of recomputing
683 2009-11-18 Sebastian Pop <sebastian.pop@amd.com>
685 Reverted the patch for "scattering permutations" from 2009-10-28.
687 * graphite-poly.c (print_permutation): New.
688 (debug_permutation): New.
689 (new_poly_bb): Initialize PBB_PERMUTATION.
690 (free_poly_bb): Free PBB_PERMUTATION.
691 * graphite-poly.h (pbb_permutation_elt_p): Declared.
692 (struct pbb_permutation_elt): New.
693 (PBB_PERMUTATION_ELT_STRIDE): New.
694 (PBB_PERMUTATION_ELT_STRIDED_P): New.
695 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
696 (new_pbb_permutation_elt): New.
697 (pbb_permutation_elt_free): New.
698 (struct poly_bb): Add field permutation.
699 (PBB_PERMUTATION): New.
700 (print_permutation): Declared.
701 (debug_permutation): Declared.
703 2009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
705 * graphite-interchange.c (build_partial_difference): New.
706 (memory_stride_in_loop): Refactored the computation of
707 equality constraints into build_partial_difference function.
708 Added support for debugging stride computations.
710 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
712 * graphite-clast-to-gimple.c (gloog): Free if_region,
713 if_region->true_region, and if_region->region.
714 * sese.c (if_region_set_false_region): Free if_region->false_region.
715 (create_if_region_on_edge): Do not use GGC_NEW.
716 (move_sese_in_condition): Remove useless initialization.
718 2009-11-03 Sebastian Pop <sebastian.pop@amd.com>
720 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
721 for the loops created by the loop distribution. Do not modify the
723 (lst_try_interchange_loops): Same. Use a temporary LST for the
724 transformed schedule. Call lst_update_scattering before data
726 (lst_try_interchange): Pass an extra parameter INDEX.
727 (lst_do_interchange_1): New.
728 (lst_do_interchange): Call lst_do_interchange_1.
729 (scop_do_interchange): Call lst_update_scattering.
730 * graphite-poly.c (apply_poly_transforms): Do not call
731 lst_update_scattering.
732 * graphite-poly.h (lst_pred): New.
734 (lst_find_first_pbb): Return NULL when not found.
736 (lst_insert_in_sequence): Allow LST1 to be NULL.
738 (lst_substitute_3): New.
739 * gcc.dg/graphite/interchange-1.c: XFail.
740 * gcc.dg/graphite/interchange-8.c: XFail.
741 * gcc.dg/graphite/interchange-11.c: XFail.
743 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
745 * graphite-interchange.c (lst_perfectly_nested_p): New.
746 (lst_perfect_nestify): New.
747 (lst_try_interchange_loops): Call store_lst_schedule,
748 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
749 (scop_do_interchange): Avoid redundant legality test.
750 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
751 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
752 * graphite-poly.h (psct_static_dim): New.
753 (lst_dewey_number_at_depth): New.
754 (lst_find_pbb): Restructured.
755 (lst_find_first_pbb): Restructured.
756 (lst_find_last_pbb): New.
757 (lst_contains_p): New.
758 (lst_contains_pbb): New.
759 (lst_create_nest): New.
760 (lst_remove_from_sequence): New.
761 (pbb_update_scattering): New.
762 (lst_update_scattering_under): New.
763 (lst_update_scattering_seq): New.
764 (lst_update_scattering): New.
765 (lst_insert_in_sequence): New.
766 (lst_distribute_lst): New.
767 (lst_remove_all_before_including_pbb): New.
768 (lst_remove_all_before_excluding_pbb): New.
770 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
772 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
775 2009-10-30 Sebastian Pop <sebastian.pop@amd.com>
777 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
779 2009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
781 * graphite-poly.c (print_permutation): New.
782 (debug_permutation): New.
783 (new_poly_bb): Initialize PBB_PERMUTATION.
784 (free_poly_bb): Free PBB_PERMUTATION.
785 * graphite-poly.h (pbb_permutation_elt_p): Declared.
786 (struct pbb_permutation_elt): New.
787 (PBB_PERMUTATION_ELT_STRIDE): New.
788 (PBB_PERMUTATION_ELT_STRIDED_P): New.
789 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
790 (new_pbb_permutation_elt): New.
791 (pbb_permutation_elt_free): New.
792 (struct poly_bb): Add field permutation.
793 (PBB_PERMUTATION): New.
794 (print_permutation): Declared.
795 (debug_permutation): Declared.
797 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
799 * graphite-clast-to-gimple.c (gloog): Do not call
800 sese_reset_aux_in_loops.
801 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
802 extra argument for domains. Do not use loop->aux.
803 (build_scop_iteration_domain): Initialize and free domains, pass it
804 to build_loop_iteration_domains and extract the information from
805 domains. Do not use loop->aux.
806 * sese.c (sese_reset_aux_in_loops): Removed.
807 * sese.h (sese_reset_aux_in_loops): Removed.
809 2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
811 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
812 (dependency_in_loop_p): Same.
813 (translate_clast): Do not use loop->aux. Initialize
814 loop->can_be_parallel.
815 (mark_loops_parallel): Removed.
816 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
817 * graphite.c (free_aux_in_new_loops): Removed.
818 (graphite_finalize): Do not call free_aux_in_new_loops.
819 (graphite_transform_loops): Do not call mark_loops_parallel.
821 2009-10-26 Li Feng <nemokingdom@gmail.com>
823 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
824 (translate_clast): Pass an extra parameter LEVEL.
825 Call get_scattering_level.
826 * graphite-clast-to-gimple.h (get_scattering_level): New.
828 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
830 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
831 * cfgloop.h (struct loop): New field single_iv.
833 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
834 loop->aux anymore: use loop->single_iv.
835 (graphite_loop_normal_form): Moved...
836 (build_graphite_loop_normal_form): Removed.
837 (gloog): Do not call build_graphite_loop_normal_form.
838 (free_aux_in_new_loops): Moved...
839 (mark_loops_parallel): Restructure.
840 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
841 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
842 (scop_canonicalize_loops): New.
843 (build_poly_scop): Call scop_canonicalize_loops.
844 * graphite.c (free_aux_in_new_loops): ...here.
846 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
848 * g++.dg/graphite/graphite.exp: Add the same rules as in
849 gcc.dg/graphite/graphite.exp.
851 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
853 * g++.dg/graphite/id-1.C: New.
855 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
857 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
859 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
860 (rewrite_phi_out_of_ssa): Same.
861 (rewrite_cross_bb_scalar_deps): Same.
862 (translate_scalar_reduction_to_array): Same.
864 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
866 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
869 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
871 * graphite-sese-to-poly.c (dump_alias_graphs): New.
872 (build_scop_drs): Call dump_alias_graphs.
874 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
876 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
877 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
878 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
879 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
880 * graphite-poly.h (free_lst): New.
881 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
882 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
884 2009-10-22 Sebastian Pop <sebastian.pop@amd.com>
886 * graphite-poly.h (struct scop): Add a field saved_schedule.
887 (SCOP_SAVED_SCHEDULE): New.
888 (store_lst_schedule): New.
889 (restore_lst_schedule): New.
890 (store_scattering): Call store_lst_schedule.
891 (restore_scattering): Call restore_lst_schedule.
893 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
895 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
896 (pdr_add_alias_set): Same.
897 (build_poly_dr): Same.
898 (build_alias_set_optimal_p): Same.
899 (build_base_obj_set_for_drs): Same. Do not store the result of
902 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
904 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
905 all_components_are_cliques to 1.
907 2009-10-20 Li Feng <nemokingdom@gmail.com>
909 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
911 (pdr_add_alias_set): Update retrieving alias_set_num.
912 (build_poly_dr): Update retrieving dr_base_object_set.
913 (partition_drs_to_sets): Remove.
914 (build_alias_set_optimal_p): New.
915 (build_alias_set_for_drs): Rename.
916 (build_scop_drs): Update.
917 * graphite-sese-to-poly.h (struct base_alias_pair): New.
918 (ALIAS_SET_INDEX): Remove.
919 (BASE_OBJECT_SET_INDEX): Remove.
921 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
923 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
925 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
927 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
928 loop upper bounds for 1-element arrays at end of structures.
929 * tree-flow.h (array_at_struct_end_p): Declared.
930 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
932 2009-10-20 Sebastian Pop <sebastian.pop@amd.com>
934 * g++.dg/graphite/pr41305.C: New.
936 2009-10-20 Alexander Monakov <amonakov@ispras.ru>
938 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
939 construction of parameter constraints from loop iteration analysis.
940 * gcc.dg/graphite/run-id-2.c: New test.
942 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
944 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
947 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
949 * graphite-dependences.c (dependence_polyhedron_1): Remove
950 unused gdim dimensions from the DDR polyhedron.
952 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
954 * graphite-dependences.c (pddr_transformed_scattering): New.
955 (dot_original_deps_stmt_1): New.
956 (dot_transformed_deps_stmt_1): New.
957 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
958 dot_transformed_deps_stmt_1.
959 (dot_original_deps): New.
960 (dot_transformed_deps): New.
961 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
963 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
965 * graphite-dependences.c (reduction_dr_1): Remove wrong
966 assert: reduction BBs can have multiple reduction writes
967 to memory. interchange-3.f90 is an example.
969 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
971 * gfortran.dg/graphite/interchange-3.f90: New.
973 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
975 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
977 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
979 * graphite-dependences.c (dependence_polyhedron_1): Add the
980 context to the dependence polyhedron.
982 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
984 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
985 PBB_PDR_DUPLICATES_REMOVED.
988 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
990 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
992 (build_loop_iteration_domains): Extract bounds on parameters
993 based on the data size.
994 (build_scop_context): Do not initialize SCOP_CONTEXT;
997 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
999 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
1000 * graphite-ppl.h (graphite-ppl.h): Declared.
1002 2009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1004 * graphite-ppl.c (ppl_print_linear_expr): New.
1005 (debug_ppl_linear_expr): New.
1006 * graphite-ppl.h (ppl_print_linear_expr): Declared.
1007 (debug_ppl_linear_expr): Declared.
1009 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1011 * graphite-interchange.c: Fix comments.
1012 * gcc.dg/graphite/block-1.c: Fix comments.
1014 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1016 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
1017 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
1019 2009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1021 Reapply the patch from Alexander Monakov that disappeared during
1022 the last merges from trunk.
1024 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
1026 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1027 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1029 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1031 * graphite-interchange.c (memory_stride_in_loop): The depth
1032 argument corresponds to a dynamic time dimension, so use
1033 psct_dynamic_dim to refer to the transformed scattering dimension.
1035 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1037 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
1039 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1041 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
1043 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
1044 the root of the LST.
1045 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
1047 (print_lst): Print the root of LST in a different format.
1048 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
1050 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1052 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
1054 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1056 * doc/passes.texi: Document the Graphite infrastructure.
1058 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1060 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
1061 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
1062 and check the SSA representation.
1064 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
1066 2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1068 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
1070 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1072 * gcc.dg/graphite/interchange-11.c: New.
1074 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1076 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
1078 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1080 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1081 Add -fno-loop-strip-mine and -fno-loop-interchange.
1082 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
1083 -fno-loop-strip-mine.
1084 * gfortran.dg/graphite/graphite.exp: Same.
1086 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1088 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1089 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
1090 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
1091 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
1092 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
1093 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
1094 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
1095 DEFAULT_FLAGS_GRAPHITE_SCOP.
1096 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
1097 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
1099 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1101 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
1103 2009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1104 Sebastian Pop <sebastian.pop@amd.com>
1106 * graphite-interchange.c (build_linearized_memory_access): Pass an
1107 offset as parameter.
1108 (memory_stride_in_loop): Include transform scattering in the
1109 access functions to be able to querry the strides in the
1111 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
1112 not the psct_iterator_dim.
1114 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1116 * graphite-blocking.c (pbb_do_strip_mine): Removed.
1117 (lst_do_strip_mine_loop): New.
1118 (lst_do_strip_mine): New.
1119 (scop_do_strip_mine): Call lst_do_strip_mine.
1120 * graphite-poly.h (lst_add_loop_under_loop): New.
1121 (lst_find_first_pbb): New.
1123 2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1125 * graphite-poly.c (loop_to_lst): Fix LST creation.
1127 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
1129 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
1130 sizeof(unsigned long) to make it run on 32bit systems.
1132 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
1134 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
1137 2009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1139 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
1141 (write_alias_graph_to_ascii_dot): New.
1142 (write_alias_graph_to_ascii_ecc): Ditto.
1143 (partition_drs_to_sets): Add testing of optimality of current method
1144 which assigns alias numbers according to DFS Comopnent number. used
1145 as heuristic for the upcoming ECC algorithm.
1146 (build_scop_drs): Write to file also with the ecc and dot format.
1148 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1150 * gfortran.dg/graphite/interchange-1.f: XFail.
1152 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1154 * graphite.c (graphite_initialize): Do not handle functions with
1155 more than 100 basic blocks.
1157 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1159 * graphite-blocking.c (pbb_do_strip_mine): Use
1160 PARAM_LOOP_BLOCK_TILE_SIZE.
1162 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1164 * graphite-poly.c (dot_lst_1): New.
1166 * graphite-poly.h (dot_lst): Declared.
1168 2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1170 * graphite-dependences.c (dot_deps_stmt_1): New.
1171 (dot_deps_stmt): New.
1172 * graphite-dependences.h (dot_deps_stmt): Declared.
1174 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1176 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
1177 not replace cross BB scalar dependences ending on PHI nodes.
1178 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
1180 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1182 * graphite-poly.c (apply_poly_transforms): Implement the high
1183 level driver for flag_loop_block.
1184 * opts.c (decode_options): Enable flag_loop_block at -O2.
1185 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
1188 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
1190 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1193 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1195 * graphite-poly.h (lst_find_pbb): New.
1196 (find_lst_loop): New.
1198 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1200 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
1201 * graphite-poly.h (struct scop): Remove dep_graph field.
1202 (SCOP_DEP_GRAPH): Removed.
1204 2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1206 * graphite-poly.h (copy_lst): Do full copy of LST.
1208 2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
1210 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
1211 when the loop stride is zero.
1213 * gcc.dg/graphite/id-16.c: New.
1215 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1217 * graphite-dependences.c (reduction_dr_1): New.
1218 (reduction_dr_p): New.
1219 (graphite_legal_transform_dr): Call reduction_dr_p.
1220 (reduction_ddr): Renamed reduction_ddr_p.
1221 * graphite-poly.h (same_pdr_p): New.
1222 (number_of_write_pdrs): New.
1223 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
1224 (split_reduction_stmt): Do not split reduction statements
1225 when there are no writes to memory.
1226 (translate_scalar_reduction_to_array_for_stmt): Insert the
1227 memory reduction statement just after the scalar reduction statement.
1229 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
1231 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
1232 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
1234 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1236 * graphite-interchange.c (lst_apply_interchange): New.
1237 (lst_interchange_profitable_p): New.
1238 (lst_try_interchange_loops): New.
1239 (lst_try_interchange): New.
1240 (lst_do_interchange): New.
1241 (pbb_do_interchange): Removed.
1242 (scop_do_interchange): Call lst_do_interchange.
1244 2009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1246 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
1247 SCOP_TRANSFORMED_SCHEDULE.
1252 * graphite-poly.h (lst_p): New.
1255 (LST_LOOP_FATHER): New.
1258 (scop_to_lst): Declared.
1259 (print_lst): Declared.
1260 (debug_lst): Declared.
1261 (new_lst_loop): New.
1262 (new_lst_stmt): New.
1265 (lst_dewey_number): New.
1266 (struct scop): Add original_schedule and transformed_schedule fields.
1267 (SCOP_ORIGINAL_SCHEDULE): New.
1268 (SCOP_TRANSFORMED_SCHEDULE): New.
1269 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
1271 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1273 * graphite-dependences.c (reduction_ddr): New.
1274 (graphite_legal_transform_bb): Call reduction_ddr.
1275 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
1276 Initialize PBB_IS_REDUCTION.
1277 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
1278 (PBB_IS_REDUCTION): New.
1279 (new_poly_bb): Update declaration.
1280 * graphite-scop-detection.h (build_scop_bbs): Removed.
1281 (nb_reductions_in_loop): Removed.
1282 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
1283 parameter for reductions.
1284 (try_generate_gimple_bb): Update call to new_poly_bb.
1285 (build_scop_bbs_1): Same.
1286 (build_scop_bbs): Same.
1287 (gsi_for_phi_node): New.
1288 (scalar_close_phi_node_p): Remove gcc_assert.
1289 (split_reduction_stmt): New.
1290 (is_reduction_operation_p): New.
1291 (phi_contains_arg): New.
1292 (follow_ssa_with_commutative_ops): New.
1293 (detect_commutative_reduction_arg): New.
1294 (detect_commutative_reduction_assign): New.
1295 (follow_inital_value_to_phi): New.
1296 (edge_initial_value_for_loop_phi): New.
1297 (initial_value_for_loop_phi): New.
1298 (detect_commutative_reduction): New.
1299 (translate_scalar_reduction_to_array_for_stmt): New.
1300 (insert_copyout): New.
1301 (insert_copyin): New.
1302 (translate_scalar_reduction_to_array): New.
1303 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
1304 (rewrite_commutative_reductions_out_of_ssa_loop): New.
1305 (rewrite_commutative_reductions_out_of_ssa): New.
1306 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
1307 * sese.h (split_region_for_bb): New.
1309 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
1310 * gcc.dg/graphite/interchange-1.c: Fix format.
1311 * gcc.dg/graphite/interchange-10.c: New.
1313 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1315 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
1318 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1320 * graphite-sese-to-poly.c (scev_analyzable_p): New.
1321 (rewrite_cross_bb_scalar_dependence): New.
1322 (rewrite_cross_bb_scalar_deps): New.
1323 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
1324 Call rewrite_cross_bb_scalar_deps.
1326 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1328 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
1329 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
1332 2009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1334 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
1335 * graphite-interchange.c (pbb_do_interchange): Same.
1336 * graphite-poly.c (print_scattering_function): Same.
1338 * graphite-poly.h (pbb_loop): New.
1339 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
1341 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1343 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
1345 2009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1347 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
1348 so don't pass a pointer to it.
1349 (build_alias_set_for_drs): Same.
1350 (build_base_obj_set_for_drs): Same.
1351 (build_scop_drs): Same.
1353 2009-09-26 Li Feng <nemokingdom@gmail.com>
1355 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
1356 the alias graph of data references.
1358 2009-09-25 Li Feng <nemokingdom@gmail.com>
1360 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
1361 (build_scop_drs): When debugging, write the alias graph to file,
1362 otherwise, should be disabled.
1364 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1366 * Merge from mainline (151310:151361).
1368 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1370 * Merge from mainline (151171:151310).
1372 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1374 * Merge from mainline (151171:151806).
1376 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1378 * Revert the last commit.
1380 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1382 * Merge from mainline (151171:151819).
1384 2009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1386 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
1387 (is_simple_operand): Remove call to stmt_simple_memref_p.
1388 (stmt_simple_for_scop_p): Update call to is_simple_operand.
1390 2009-09-17 David Edelsohn <edelsohn@gnu.org>
1392 * gcc.dg/graphite/interchange-mvt.c: New File.
1393 * gcc.dg/graphite/scop-dsyrk.c: New File.
1394 * gcc.dg/graphite/scop-dsyr2k.c: New File.
1395 * gcc.dg/graphite/scop-mvt.c: New File.
1396 * gcc.dg/graphite/scop-sor.c: New File.
1398 2009-09-17 Li Feng <nemokingdom@gmail.com>
1400 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
1401 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
1402 (graphite_carried_dependence_level_k): Ditto.
1403 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
1404 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
1405 (new_poly_dr): Adjust declaration.
1406 * graphite-sese-to-poly.c (free_data_refs_aux): New.
1407 (free_gimple_bb): Added free_data_refs_aux.
1408 (build_poly_dr): Add dr_base_object_set.
1409 (partition_drs_to_sets): New.
1410 (dr_same_base_object_p): New.
1411 (build_alias_set_for_drs): New.
1412 (build_base_object_set_for_drs): New.
1413 (build_scop_drs): Add build_base_obj_set_for_drs.
1414 * graphite-sese-to-poly.h: Added #define for alias set number index and
1415 base object set index.
1416 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
1417 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
1419 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
1421 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1422 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1424 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1426 * graphite-sese-to-poly.c (struct irp_data): Removed.
1427 (idx_record_params): Removed.
1428 (find_params_in_bb): Scan for parameters the access functions; don't
1429 parse the tree representation.
1431 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1433 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
1434 passes at -O1 and below.
1436 2009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1438 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1439 tree-scalar-evolution.h, and then tree-data-ref.h.
1440 * graphite-clast-to-gimple.c: Same.
1441 * graphite-dependences.c: Same.
1442 * graphite-interchange.c: Same.
1443 * graphite-poly.c: Same.
1444 * graphite-scop-detection.c: Same.
1445 * graphite-sese-to-poly.c: Same.
1447 * lambda-code.c: Same.
1448 * matrix-reorg.c: Same.
1449 * tree-data-ref.c: Same.
1450 * tree-if-conv.c: Same.
1451 * tree-loop-distribu: Same.: Same.
1452 * tree-loop-linear.c: Same.
1453 * tree-parloops.c: Same.
1454 * tree-predcom.c: Same.
1455 * tree-vect-patterns.c: Same.
1457 2009-09-02 Sebastian Pop <sebastian.pop@amd.com>
1459 Partially revert the previous patch, except the following.
1460 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
1461 as parameters the operands of the not expression.
1463 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1465 * tree-scalar-evolution.c (instantiate_scev_assign): New.
1466 Do not call analyze_scalar_evolution on assignments.
1467 (instantiate_scev_phi): Call analyze_scalar_evolution.
1468 (instantiate_scev_name): Call instantiate_scev_assign and
1469 instantiate_scev_phi.
1470 (instantiate_scev_not): Adapted to pass as parameters the operands
1471 of the not expression.
1473 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1475 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
1476 to pass as parameters the operands of the binary expression.
1478 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1480 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
1481 instantiate_scev_not. Handle NEGATE_EXPR.
1482 (instantiate_scev_r): Handle NEGATE_EXPR.
1484 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1486 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
1488 (instantiate_scev_r): Move code in instantiate_scev_2
1489 and instantiate_scev_1.
1491 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1493 * tree-scalar-evolution.c (instantiate_scev_3): New.
1494 (instantiate_scev_1): Move code in instantiate_scev_3.
1496 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1498 * tree-scalar-evolution.c (instantiate_scev_poly): New.
1499 (instantiate_scev_1): Move code in instantiate_scev_poly.
1501 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1503 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
1504 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
1506 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1508 * tree-scalar-evolution.c (instantiate_scev_convert): New.
1509 (instantiate_scev_1): Move code in instantiate_scev_convert.
1511 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1513 * tree-scalar-evolution.c (instantiate_scev_binary): New.
1514 (instantiate_scev_1): Move code in instantiate_scev_binary.
1516 2009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1518 * tree-scalar-evolution.c (instantiate_scev_name): New.
1519 (instantiate_scev_1): Move code in instantiate_scev_name.
1521 2009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1523 * Merge from mainline (150992:151171).
1525 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1527 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
1529 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1531 * graphite-dependences.c (graphite_legal_transform_bb): Call
1532 pbb_remove_duplicate_pdrs.
1533 * graphite-poly.c (can_collapse_pdr): Removed.
1534 (pdr_find_duplicate): Removed.
1535 (can_collapse_pdrs): New.
1536 (pbb_remove_duplicate_pdrs): New.
1537 (new_poly_dr): Do not look for duplicates.
1538 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
1539 (PBB_PDR_DUPLICATES_REMOVED): New.
1540 (pbb_remove_duplicate_pdrs): Declared.
1542 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1544 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
1545 the strides by multiplying by PDR_NB_REFS.
1546 * graphite-poly.c (can_collapse_pdr): New.
1547 (pdr_find_duplicate): New.
1548 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
1549 Initialize PDR_NB_REFS.
1550 * graphite-poly.h (struct poly_dr): Add field nb_refs.
1552 (new_poly_dr): Number of subscripts is a graphite_dim_t.
1554 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1556 Revert one of the previous commits:
1557 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1558 the computation of symmetric data dependence relations.
1559 (dependency_between_pbbs_p): Same.
1561 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1564 * graphite-poly.c (apply_poly_transforms): Remove legality test before
1567 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1569 * graphite-dependences.c (pddr_original_scattering): Return NULL
1570 for read-read dependence relations.
1571 * graphite-poly.h (enum poly_dr_type): Fix comment.
1574 (pdr_may_write_p): New.
1576 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1578 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
1579 (struct poly_dr): Same.
1580 (new_poly_dr): Same.
1581 * graphite-poly.c (new_poly_dr): Same.
1583 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1584 Sebastian Pop <sebastian.pop@amd.com>
1586 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
1587 pbb_strip_mine_time_depth. Changed the implementation so that
1588 transformation is expressed as a transformation on
1589 time (scatttering) dimensions. Also, ensures that the 2d+1
1590 scheduling format is preserved.
1591 (pbb_strip_mine_profitable_p): Profitability is based on the
1592 iteration number of a given time (scattering) dimension,
1593 and not on a original loop depth dimension.
1594 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
1595 (pbb_do_strip_mine): Call psct_dynamic_dim.
1596 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
1597 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
1598 (pbb_nb_dynamic_scattering_transform): New.
1599 (psct_dynamic_dim): New.
1601 2009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1603 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1604 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1605 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
1606 * graphite-interchange.c (build_linearized_memory_access): Same.
1607 (memory_stride_in_loop): Same.
1609 2009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1611 * graphite-dependences.c (pddr_original_scattering): New.
1612 (graphite_legal_transform_dr): Call pddr_original_scattering.
1615 * graphite-dependences.h (dot_deps): Declared.
1616 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
1617 (print_pdr): Print PDR_ID.
1618 * graphite-poly.h (struct poly_dr): Add field id.
1621 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
1623 2009-08-22 Sebastian Pop <sebastian.pop@amd.com>
1625 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
1626 not delete the original dependence relation.
1628 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1630 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1631 the computation of symmetric data dependence relations.
1632 (dependency_between_pbbs_p): Same.
1634 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1636 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
1637 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
1638 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
1639 (free_poly_ddr): New.
1640 (pddr_is_empty): New.
1641 (dependence_polyhedron_1): Now returns a poly_ddr_p.
1642 (dependence_polyhedron): Same. Remove useless gcc_assert.
1644 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
1645 (graphite_carried_dependence_level_k): Call pddr_is_empty.
1646 * graphite-dependences.h (enum poly_dependence_kind): New.
1647 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
1648 (PDRP_SOURCE): Renamed PDDR_SOURCE.
1649 (PDRP_SINK): Renamed PDDR_SINK.
1650 (PDRP_DDP): Renamed PDDR_DDP.
1652 (free_poly_ddr): Declared.
1653 * graphite-poly.c (new_scop): Use the new hash function names.
1654 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
1655 into original_pddrs.
1656 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
1658 2009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1660 * Merge from mainline (150764:150992).
1662 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1664 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
1665 bounds with LT_EXPR to make niter analysis more precise on code
1666 generated by Graphite.
1668 2009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1670 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
1671 (graphite_legal_transform_bb): Same.
1672 (poly_drs_may_alias_p): Same.
1674 2009-08-15 Sebastian Pop <sebastian.pop@amd.com>
1677 * graphite-ppl.c (ppl_max_for_le): Correct the use of
1678 ppl_Pointset_Powerset_C_Polyhedron_maximize.
1680 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1682 * graphite-poly.c (print_pbb): Print PBB index.
1684 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1686 * Merge from mainline (r150672:150764).
1688 2009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1690 * graphite-interchange.c (ppl_max_for_le): Moved...
1691 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
1692 * graphite-ppl.c (ppl_max_for_le): ... here.
1693 * graphite-ppl.h (ppl_max_for_le): Declared.
1695 2009-08-12 Sebastian Pop <sebastian.pop@amd.com>
1697 * Merge from mainline (r150372:150672).
1699 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1702 * sese.c (convert_for_phi_arg): New.
1703 (add_guard_exit_phis): Use convert_for_phi_arg.
1705 * gfortran.dg/graphite/id-17.f: New.
1707 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1709 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
1710 unknown subscript upper bounds.
1712 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
1714 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1715 Pranav Garg <pranav.garg2107@gmail.com>
1717 * graphite-interchange.c (gather_access_strides): Removed.
1718 (ppl_max_for_le): New.
1719 (build_linearized_memory_access): New.
1720 (memory_stride_in_loop): New.
1721 (pbb_interchange_profitable_p): Reimplemented.
1722 * graphite-ppl.h (ppl_new_id_map): New.
1723 (ppl_interchange): New.
1725 * gcc.dg/graphite/interchange-6.c: XFAILed.
1727 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1729 * graphite-interchange.c (compute_subscript): Removed.
1730 (compute_array_size_cstr): Removed.
1731 (compute_array_size_poly): Removed.
1732 (compute_array_size): Removed.
1733 (gather_access_strides_poly): Removed.
1734 (gather_access_strides): Empty.
1736 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1738 * graphite-dependences.c (dependence_polyhedron_1): Replace
1739 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
1740 (graphite_legal_transform_dr): Same.
1741 (graphite_carried_dependence_level_k): Same.
1742 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
1743 Initialize PDR_NB_SUBSCRIPTS.
1744 (print_pdr_access_layout): Replace pdr_nb_subscripts with
1746 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
1747 (PDR_NB_SUBSCRIPTS): New.
1748 (pdr_nb_subscripts): Removed.
1749 (pdr_dim): Simplified.
1750 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
1751 with PDR_NB_SUBSCRIPTS.
1753 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1755 * graphite-interchange.c (compute_array_size): Remove use of
1757 * graphite-poly.c (new_poly_dr): Remove argument data_container.
1758 Do not initialize PDR_DATA_CONTAINER.
1759 (print_pdr): Do not print PDR_DATA_CONTAINER.
1760 * graphite-poly.h (struct poly_dr): Remove data_container field.
1761 (PDR_DATA_CONTAINER): Removed.
1762 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
1764 (build_poly_dr): Same.
1766 2009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1768 * gcc.dg/graphite/interchange-9.c: New.
1770 2009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1771 Sebastian Pop <sebastian.pop@amd.com>
1773 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
1774 copy of the dependence polyhedron. Free the temporary objects.
1775 (graphite_carried_dependence_level_k): Free unused objects before
1778 * gcc.dg/graphite/interchange-1.c: XFAILed.
1779 * gcc.dg/graphite/interchange-2.c: XFAILed.
1780 * gcc.dg/graphite/interchange-3.c: XFAILed.
1781 * gcc.dg/graphite/interchange-4.c: XFAILed.
1782 * gcc.dg/graphite/interchange-7.c: XFAILed.
1784 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1786 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
1787 Early return without analyzing the data dependences if no
1788 transform has been done. Call restore_scattering if the transform
1790 (graphite-interchange.c): Same.
1791 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
1792 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
1793 (apply_poly_transforms): Do not gcc_assert that
1794 the transform is legal.
1795 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1796 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
1797 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
1798 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1799 * graphite-poly.h (struct poly_scattering): New.
1800 (struct poly_bb): Add original, transformed, and saved fields.
1801 Remove transformed_scattering, original_scattering, nb_local_variables,
1802 and nb_scattering_transform fields.
1803 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
1804 (poly_scattering_new): New.
1805 (poly_scattering_free): New.
1806 (poly_scattering_copy): New.
1807 (store_scattering_pbb): New.
1808 (store_scattering): New.
1809 (restore_scattering_pbb): New.
1810 (restore_scattering): New.
1811 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1812 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
1814 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1816 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
1819 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1821 * Makefile.in (graphite.o): Depends on PREDICT_H.
1822 * graphite.c: Include predict.h.
1823 (graphite_finalize): Call tree_estimate_probability.
1824 * predict.c (predict_loops): Do not call scev_initialize and
1826 (tree_estimate_probability_bb): New.
1827 (tree_estimate_probability): Do not initialize loops: move that
1828 code to the driver. Call tree_estimate_probability_bb.
1829 (tree_estimate_probability_driver): New.
1830 (pass_profile): Use tree_estimate_probability_driver.
1831 * predict.h (tree_estimate_probability): Declared.
1833 2009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1835 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
1836 * graphite-dependences.c (graphite_legal_transform): Add time to
1837 TV_GRAPHITE_DATA_DEPS.
1838 (dependency_between_pbbs_p): Same.
1839 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
1841 2009-08-03 Sebastian Pop <sebastian.pop@amd.com>
1843 * Merge from mainline (r149952:150372).
1845 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1847 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
1848 * graphite-blocking.c: Same.
1849 * graphite-clast-to-gimple.c: Same.
1850 * graphite-dependences.c: Same.
1851 * graphite-poly.c: Same.
1852 * graphite-poly.h: Same.
1853 * graphite-ppl.c: Same.
1854 * graphite-scop-detection.c: Same.
1855 * graphite-sese-to-poly.c: Same.
1858 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1860 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
1861 (remove_simple_copy_phi): New.
1862 (remove_invariant_phi): New.
1863 (simple_copy_phi_p): New.
1864 (reduction_phi_p): New.
1865 (gsi_for_ssa_name_def): New.
1866 (insert_out_of_ssa_copy): New.
1867 (insert_out_of_ssa_copy_on_edge): New.
1868 (create_zero_dim_array): New.
1869 (scalar_close_phi_node_p): New.
1870 (rewrite_close_phi_out_of_ssa): New.
1871 (rewrite_phi_out_of_ssa): New.
1872 (rewrite_reductions_out_of_ssa): New.
1873 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
1875 * gcc.dg/graphite/id-11.c: New.
1876 * gcc.dg/graphite/id-15.c: New.
1877 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
1878 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
1879 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
1880 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
1881 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
1882 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
1883 * gfortran.dg/graphite/id-13.f: New.
1884 * gfortran.dg/graphite/id-5.f: New.
1886 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1888 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
1889 check that nb_reductions_in_loop is zero.
1890 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
1891 reduction phi nodes.
1892 (nb_reductions_in_loop): Removed.
1893 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
1894 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
1895 (bb_contains_non_iv_scalar_phi_nodes): Removed.
1896 (scop_contains_non_iv_scalar_phi_nodes): Removed.
1897 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
1899 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1901 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
1902 statements that have an empty iteration domain.
1903 * gfortran.dg/graphite/id-16.f: New.
1905 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1907 * tree-scalar-evolution.c (instantiate_scev_1): Return
1908 chrec_dont_know when the result is not above instantiate_below.
1909 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
1910 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
1911 the tree has a known scalar evolution.
1912 * gfortran.dg/graphite/id-14.f: New.
1913 * gfortran.dg/graphite/id-15.f: New.
1915 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1917 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
1919 (rename_variables): Keep inserting renames after the ones already
1922 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1924 * graphite-sese-to-poly.c (compare_bb_depths): New.
1925 (graphite_sort_dominated_info): New.
1926 (build_scop_bbs_1): Call graphite_sort_dominated_info.
1927 (build_scop_scattering): Fix comment.
1929 2009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1931 * graphite.c (graphite_finalize): Call print_loops instead of
1932 dump_function_to_file.
1933 * gcc.dg/graphite/graphite.exp: Fix formatting.
1934 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
1935 loops generated in the graphite output file.
1936 * gcc.dg/graphite/pr35356-2.c: New.
1937 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
1938 * gfortran.dg/graphite/id-12.f: New.
1940 2009-07-24 Li Feng <nemokingdom@gmail.com>
1942 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
1945 2009-07-24 Li Feng <nemokingdom@gmail.com>
1946 Tobias Grosser <grosser@fim.uni-passau.de>
1948 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
1949 alias set number build alias in ACCESSES polyhedron.
1950 (build_alias_set_for_drs): New.
1951 (build_pbb_drs): Added build_alias_set_for_drs.
1952 * graphite-dependences.c (poly_drs_may_alias_p): New.
1953 (graphite_carried_dependence_level_k): Check alias information
1954 before building polyhedron.
1956 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
1958 * Makefile.in (lambda-code.o): Fix formatting.
1960 2009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
1962 * Merge from mainline (r149350-149952)
1964 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
1966 * graphite-poly.c (apply_poly_transforms): Move strip_mine
1967 before interchange to prepare for loop blocking.
1969 2009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
1971 * graphite-poly.c (apply_poly_transforms): Add checks after every
1973 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
1974 done in apply_poly_transforms.
1976 2009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1978 * graphite-dependences.c (build_lexicographically_gt_constraint):
1979 Replace RES parameter with *RES.
1980 (dependence_polyhedron_1): Pass an address of the parameter RES
1981 instead of value of RES.
1983 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1985 * graphite.c (graphite_finalize): Fix comment.
1986 (graphite_transform_loops): Reset scev info after code generation
1989 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1991 * graphite.c (graphite_finalize): Call scev_reset.
1993 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1995 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
1996 GBB_CLOOG_IV_TYPES hash table twice.
1997 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
1998 (add_condition_to_domain): Clear GMP values.
2000 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2002 * graphite-dependences.c: Fix formatting.
2003 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
2004 (pbb_number_of_iterations): Free ppl_Linear_Expression.
2005 * graphite-sese-to-poly.c: Fix formatting.
2006 * graphite.c (graphite_transform_loops): Create the hash table
2007 after the early return.
2009 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2011 * gcc.dg/graphite/id-14.c: New.
2012 * gcc.dg/graphite/pr40157.c: New.
2013 * gfortran.dg/graphite/id-11.f: New.
2015 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2017 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
2018 (build_poly_scop): Return false when there are no pbbs within
2019 loops to avoid to pass to cloog scops with no loops.
2021 2009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2023 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
2024 useless test "i % 2".
2025 (build_pbb_scattering_polyhedrons): Fix formatting.
2026 (build_poly_dr): Same.
2027 * graphite.c (graphite_transform_loops): Restructure.
2029 2009-07-14 Razya Ladelsky <razya@il.ibm.com>
2031 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
2032 reduction_list parameter.
2033 (rewrite_all_phi_nodes_with_iv): Same.
2034 (canonicalize_loop_ivs): Same.
2035 * tree-parloops.c (struct brli): Removed.
2036 (build_reduction_list_info): Removed.
2037 (build_new_reduction): New.
2038 (analyze_reduction_list): Removed.
2039 (gather_scalar_reductions): Find reductions instead of phi
2040 nodes that can't be canonicalized.
2041 (try_create_reduction_list): Remove reduction_list parameter.
2042 (gen_parallel_loop): Same.
2043 (parallelize_loops): Remove analyze_reductions variable,
2044 initialization and free.
2045 Change reduction_list htab initialization to reduction_info
2046 elements instead of ssa names.
2047 Call try_create_reduction_list and gen_parallel_loop without
2048 analyzed_reduction argument.
2049 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
2050 canonicalize_loop_ivs with one less argument.
2051 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
2053 2009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2055 * graphite-dependences.c (new_poly_dr_pair): New.
2056 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
2057 (new_poly_dr_pair): New.
2058 (eq_poly_dr_pair_p): New.
2059 (hash_poly_dr_pair_p): New.
2060 * graphite-dependences.h (struct poly_dr_pair): New.
2061 (eq_poly_dr_pair_p): Declared.
2062 (hash_poly_dr_pair_p): Declared.
2063 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
2064 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
2065 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
2066 * Makefile.in (graphite-poly.o): Add dependence on
2067 graphite-dependences.h.
2069 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2071 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
2072 polynomials of degree > 1 pass to Graphite.
2073 * tree-chrec.c (scev_is_linear_expression): Call
2074 evolution_function_is_affine_multivariate_p.
2075 * gfortran.dg/graphite/id-10.f90: New.
2077 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2079 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
2080 Instantiate scevs varying in outer loops.
2081 * gfortran.dg/graphite/id-9.f: Correct testcase.
2083 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2085 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
2086 redundant constraint.
2088 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2090 * gcc.dg/graphite/graphite.exp: Fix comments.
2091 * gfortran.dg/graphite/graphite.exp: Trigger actions
2092 based on the file names as in the C testsuite.
2093 * gfortran.dg/graphite/block-1.f90: Fix patterns.
2094 * gfortran.dg/graphite/block-2.f: Same.
2095 * gfortran.dg/graphite/block-3.f90: Same.
2096 * gfortran.dg/graphite/block-4.f90: Same.
2097 * gfortran.dg/graphite/id-1.f90: Same.
2098 * gfortran.dg/graphite/id-2.f90: Same.
2099 * gfortran.dg/graphite/id-3.f90: Same.
2100 * gfortran.dg/graphite/id-4.f90: Same.
2101 * gfortran.dg/graphite/id-6.f: Same.
2102 * gfortran.dg/graphite/id-9.f: Same.
2103 * gfortran.dg/graphite/interchange-1.f: Same.
2104 * gfortran.dg/graphite/interchange-2.f: Same.
2105 * gfortran.dg/graphite/scop-1.f: Same.
2107 2009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2109 * sese.c (expand_scalar_variables_call): New.
2110 (expand_scalar_variables_ssa_name): Handle calls in expander.
2112 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2114 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
2115 Expect to see the pattern twice.
2116 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
2117 * gcc.dg/graphite/interchange-5.c: Same.
2118 * gcc.dg/graphite/interchange-6.c: Same.
2120 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2122 * gcc.dg/graphite/id-10.c: New.
2123 * gcc.dg/graphite/id-12.c: New.
2124 * gfortran.dg/graphite/id-7.f: New.
2125 * gfortran.dg/graphite/id-8.f: New.
2127 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2129 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
2132 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2134 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
2136 2009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2138 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
2140 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2142 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
2143 building PDR subscripts.
2145 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2147 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
2148 computation of array sizes.
2150 2009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2152 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
2154 2009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
2156 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
2157 build_pairwise_constraint, dr_equality_constraints,
2158 build_pairwise_scheduling_equality,
2159 build_pairwise_scheduling_inequality, lexicographically_gt_p,
2160 build_lexicographically_gt_constraint, dependence_polyhedron,
2161 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
2162 Move from NNC_Polyhedron to C_Polyhedron.
2163 * graphite-interchange.c (compute_array_size_poly,
2164 gather_access_strides): Dito.
2165 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
2166 free_scop, pbb_number_of_iterations): Dito.
2167 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
2168 pbb_dim_iter_domain, struct scop): Dito.
2169 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
2170 new_Cloog_Domain_from_ppl_Polyhedron,
2171 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
2172 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
2173 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
2174 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
2175 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
2176 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
2177 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
2178 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
2179 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
2180 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
2181 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
2182 build_scop_iteration_domain, build_poly_dr): Dito
2184 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2186 * gcc.dg/graphite/graphite.exp: Added a rule to execute
2188 * gcc.dg/graphite/run-id-1.c: New.
2190 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2192 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
2193 positivity constraint on the symbolic number of iterations.
2195 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2197 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
2199 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2200 Tobias Grosser <grosser@fim.uni-passau.de>
2202 * graphite-clast-to-gimple.c (build_scop_context): Removed.
2203 (build_cloog_prog): Directly use SCOP_CONTEXT.
2204 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
2205 (free_scop): Free SCOP_CONTEXT.
2206 (print_scop_context): New.
2207 (print_scop): Call print_scop_context.
2208 (debug_scop_context): New.
2209 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
2210 (struct scop): Added field context.
2211 (SCOP_CONTEXT): New.
2212 * graphite-sese-to-poly.c (add_param_constraints): New.
2213 (build_scop_context): New.
2214 (build_poly_scop): Call build_scop_context.
2216 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2218 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
2219 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
2220 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
2221 * graphite-ppl.h: Include double-int.h and tree.h.
2222 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
2223 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
2224 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
2225 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
2227 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2229 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
2230 POINTER_PLUS_EXPR for pointer types.
2231 (clast_to_gcc_expression): Same.
2233 2009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2235 * graphite-poly.c (print_scattering_function): Early return when
2236 PBB_TRANSFORMED_SCATTERING is not initialized.
2237 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
2239 2009-07-08 Sebastian Pop <sebastian.pop@amd.com>
2241 * tree-parloops.c (analyze_reduction_list): Remove unused variable
2244 2009-07-08 Razya Ladelsky <razya@il.ibm.com>
2246 * tree-parloops.c (analyze_reduction_list): Change return
2248 (try_create_reduction_list): Move the call to
2249 analyze_reduction_list to the beginining.
2250 Call reduction_phi with analyzed_reductions as argument
2251 instead of reduction_list.
2253 2009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
2255 * Merge from mainline (r148296:149346)
2257 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2259 * graphite-scop-detection.c (graphite_can_represent_init): New.
2260 (graphite_can_represent_scev): Call graphite_can_represent_init:
2261 check that the initial value does not contain multiplications of
2263 (stmt_has_simple_data_refs_p): New.
2264 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
2265 (is_simple_operand): Fix formatting.
2266 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
2268 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2270 * gcc.dg/graphite/id-13.c: New.
2271 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
2272 analyze_scalar_evolution, use scalar_evolution_in_region.
2273 (scan_tree_for_params_right_scev): Add extra assert.
2274 (parameter_index_in_region_1): Split from parameter_index_in_region.
2275 (idx_record_params): Use scalar_evolution_in_region.
2276 (find_params_in_bb): Same.
2277 (find_scop_parameters): Same.
2278 (build_loop_iteration_domains): Same.
2279 (create_linear_expr_from_tree): Same.
2280 * sese.c (scalar_evolution_in_region): New.
2281 * sese.h (scalar_evolution_in_region): Declared.
2282 (defined_in_sese_p): New.
2283 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
2285 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
2288 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2290 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
2291 TREE_DATA_REF_H also implies SCEV_H.
2293 2009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2295 * graphite-poly.c (print_scop_params): New.
2296 (print_scop): Call print_scop_params.
2297 (debug_scop_params): New.
2298 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
2300 2009-07-07 Li Feng <nemokingdom@gmail.com>
2302 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
2303 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
2304 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
2305 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
2306 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
2307 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
2309 2009-07-07 Li Feng <nemokingdom@gmail.com>
2311 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
2312 for dependency checking part.
2313 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
2314 tests for dependency checking.
2315 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2316 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2317 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
2318 flag -fdump-tree-graphite-all for autopar testsuites.
2320 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2322 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
2323 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
2324 canonicalize_loop_ivs): Moved...
2325 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
2327 2009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2329 * tree-parloops.c (try_create_reduction_list): Pass an extra
2330 argument analyzed_reductions. Call analyze_reduction_list.
2331 (gen_parallel_loop): Do not call analyze_reduction_list.
2332 (parallelize_loops): Init and finalize analyzed_reductions.
2334 2009-07-06 Li Feng <nemokingdom@gmail.com>
2336 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2337 Added flag -fno-loop-strip-mine for autopar testcase.
2339 2009-07-04 Li Feng <nemokingdom@gmail.com>
2341 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
2342 transformed scattering dimension instead of unmatch orignal when
2343 calling dependence_polyhedron.
2345 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2347 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
2349 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2351 * graphite-poly.c (pbb_number_of_iterations): Check for returned
2352 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
2354 2009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2356 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
2357 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
2358 * graphite-poly.c (pbb_number_of_iterations): New.
2359 * graphite-poly.h (pbb_number_of_iterations): Declared.
2360 (pbb_iterator_dim, pbb_parameter_dim): New.
2362 2009-06-29 Sebastian Pop <sebastian.pop@amd.com>
2364 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
2365 last commit on type of lower and upper bound of loops.
2367 2009-06-29 Li Feng <nemokingdom@gmail.com>
2369 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
2370 graphite-dependences.h.
2371 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
2372 (mark_bb_with_pbb): New.
2373 (get_stmtfor_depth): New.
2374 (find_pbb_via_hash): New.
2375 (dependency_in_loop_p): New.
2376 (mark_loops_parallel): New.
2377 (free_aux_in_new_loops): New.
2378 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
2379 bb with it's relevant pbb. Mark newly created loops. Remove mark
2380 innermost loop parallel without checking.
2381 (gloog): Add parameter BB_PBB_MAPPING.
2382 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
2383 (gloog): Change declaration.
2384 (mark_loop_parallel): Make extern.
2385 (free_aux_in_new_loops): Declare.
2386 (bb_pbb_map_hash): New.
2387 (eq_bb_pbb_map): New.
2388 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
2389 auto parallelization when flag_graphite_force_parallel is set.
2390 (graphite_finalize): Added free_aux_in_new_loops.
2391 * tree-parloops.c (parallelize_loops): Only generate parallel code for
2392 the innermost loop that marked parallel. Use
2393 flag_graphite_force_parallel instead of loop->can_be_parallel.
2394 (loop_parallel_p): Move inner most checking out of function.
2396 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2398 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
2399 type of lower and upper bound of loops signed long int.
2401 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2403 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
2404 expression outside the loop.
2406 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2408 * gcc.dg/graphite/interchange-8.c: New.
2410 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2412 * gcc.dg/graphite/interchange-0.c: XFailed.
2413 * gcc.dg/graphite/interchange-5.c: XFailed.
2414 * gcc.dg/graphite/interchange-6.c: XFailed.
2416 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2418 * graphite-interchange.c (compute_array_size_poly): The end of the
2419 recursion should return 1.
2421 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2423 * graphite-interchange.c (compute_array_size_cstr): Allow the
2424 subscript multiplier to be -1.
2425 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
2426 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
2427 data_container. Initializes PDR_DATA_CONTAINER.
2428 (print_pdr_access_layout): New.
2429 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
2430 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
2432 (PDR_DATA_CONTAINER): New.
2433 (new_poly_dr): Update declaration.
2434 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
2435 (build_poly_dr): Call pdr_add_data_dimensions.
2437 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2439 * graphite-poly.h (struct poly_dr): Fix comment.
2440 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
2441 (pdr_add_memory_accesses): New.
2442 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
2444 2009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2446 * graphite-poly.c (print_pdrs, debug_pdrs): New.
2447 (print_pbb): Add call to print_pdrs.
2448 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
2450 2009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2451 Li Feng <nemokingdom@gmail.com>
2453 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
2454 (dependency_between_pbbs_p): New.
2455 (lexicographically_gt_p): Assure !empty_p before polyhedron
2456 intersection assign.
2457 (build_lexicographically_gt_constraint): Correct lexicographically
2459 * graphite-dependences.h: New.
2460 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
2462 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2464 * graphite-clast-to-gimple.c (print_clast_stmt): New.
2465 (gloog): Print to dump_file the generated clast.
2466 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
2467 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
2469 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2471 * graphite-poly.c (extend_scattering): Increment
2472 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
2474 2009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2476 * graphite-interchange.c (compute_array_size_poly): Added exit of
2477 recursion condition. Continue iterating even after the first equality.
2478 (compute_array_size): Same.
2480 2009-06-24 Li Feng <nemokingdom@gmail.com>
2482 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
2483 -fdump-tree-final_cleanup to -fdump-tree-optimized.
2484 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2485 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2486 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
2488 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2490 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
2491 only when the use verifies is_gimple_reg.
2493 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2495 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
2496 Allocate scaldims after call to unify_scattering_dimensions.
2498 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2500 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
2502 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2503 Albert Cohen <albert.cohen@inria.fr>
2505 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
2506 variables for the strip mining.
2508 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2509 Pranav Garg <pranav.garg2107@gmail.com>
2511 * Makefile.in (OBJS-common): Added graphite-blocking.o.
2512 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
2513 (graphite-blocking.o): New rule.
2514 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
2515 * graphite-blocking.c: New.
2516 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
2517 flag_loop_strip_mine.
2518 (psct_scattering_dim_for_loop_depth): New.
2519 * graphite-poly.h (scop_do_strip_mine): Declared.
2520 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
2521 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
2522 flag_loop_strip_mine.
2524 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2526 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
2527 a GMP value and a PPL coefficient at each iteration of a loop.
2529 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2531 * graphite-dependences.c (dependence_polyhedron): Do not use
2532 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
2533 pbb_nb_scattering_transform.
2534 (graphite_legal_transform_dr): Same.
2535 * graphite-poly.c (extend_scattering): Same.
2536 (unify_scattering_dimensions): Same.
2537 (print_scattering_function): Same.
2538 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
2539 PBB_NB_LOCAL_VARIABLES.
2540 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
2541 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
2542 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
2543 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
2544 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
2545 (pbb_nb_scattering_transform): New.
2546 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
2547 (psco_scattering_dim): Add assert on parameters.
2548 (psct_scattering_dim): Same.
2549 (psct_scattering_dim_for_loop_depth): Declared.
2550 (psct_local_var_dim): New.
2551 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
2552 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
2553 correct layout, call pbb_nb_local_vars.
2554 (psct_add_local_variable, psct_add_scattering_dimension): New.
2555 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2556 Initialize PBB_NB_SCATTERING_TRANSFORM.
2558 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2560 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
2561 (set_coef): Renamed ppl_set_coef.
2562 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
2564 2009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2566 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
2567 test a boolean against 1.
2568 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
2569 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
2570 (pbb_do_interchange): Returns true when a transform has been performed.
2571 (scop_do_interchange): Same.
2572 * graphite-poly.c (apply_poly_transforms): Use the return value of
2573 scop_do_interchange.
2574 * graphite-poly.h (scop_do_interchange): Update declaration.
2576 2009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
2578 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
2580 * sese.c (sese_reset_aux_in_loops): New.
2581 * sese.h (sese_reset_aux_in_loops): New.
2583 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2585 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
2586 multiplier and multiply the constant by the multiplier.
2587 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
2588 (build_poly_dr): Do not use the multiplier to define the subscript.
2590 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2592 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
2593 compiler's data reference. Initialize PDR_CDR.
2594 (print_pdr): Call dump_data_reference.
2595 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
2596 Add compiler_dr field.
2597 (PDR_BB): Renamed PDR_PBB.
2599 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
2600 GCC's data reference representation.
2601 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
2602 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
2604 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2606 * graphite-poly.c (print_scattering_function): Also print the layout.
2607 * graphite-poly.h (pbb_nb_local_vars): New.
2609 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2611 * graphite-poly.c (print_pbb_domain): Also print the layout names.
2613 2009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2615 * graphite-poly.c (print_pdr, debug_pdr): New.
2616 * graphite-poly.h (print_pdr, debug_pdr): Declared.
2617 (PDR_BASE): Removed.
2619 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2621 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
2624 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2626 * graphite-interchange.c (compute_subscript): Allow also -1 in the
2627 subscript identification column.
2628 (pbb_do_interchange): Print to dump_file that some loops "will be
2629 interchanged". Rely on that chain of characters in the testcases.
2630 * gcc.dg/graphite/interchange-0.c: New.
2631 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
2632 interchange-*.c files and compile them with -floop-interchange.
2634 2009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
2636 * graphite-interchange.c (interchange_profitable_p): Renamed
2637 pbb_interchange_profitable_p.
2639 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2640 Harsha Jagasia <harsha.jagasia@amd.com>
2641 Pranav Garg <pranav.garg2107@gmail.com>
2643 * graphite-interchange.c (interchange_profitable_p): Make static.
2644 (pbb_interchange_loop_depths, pbb_do_interchange,
2645 scop_do_interchange): New.
2646 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
2647 for flag_loop_interchange.
2648 * graphite-poly.h (scop_do_interchange): Declared.
2649 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
2650 flag_loop_interchange is used.
2652 2009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2654 * graphite-dependences.c (dependence_polyhedron): Update use of
2655 pbb_nb_scattering_dims.
2656 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
2657 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
2658 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
2659 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
2661 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2663 * graphite.c: Cleanup foo.
2665 2009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2667 * Merge from mainline (r143684:148293).
2668 * Disabled libpcp until it gets fixed.
2670 2009-06-05 Sebastian Pop <sebastian.pop@amd.com>
2671 Harsha Jagasia <harsha.jagasia@amd.com>
2673 * graphite-interchange.c: New.
2674 * Makefile.in (graphite-interchange.o): New.
2675 * graphite-poly.h (interchange_profitable_p): Declared.
2676 * graphite-ppl.h (value_max): New.
2678 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2680 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
2681 * graphite-poly.h: Fix some comments.
2685 2009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2688 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
2689 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
2690 (pdr_accessp_nb_params): Renamed pdr_nb_params.
2691 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
2692 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
2693 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
2694 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
2695 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
2696 * graphite-clast-to-gimple.c: Same.
2697 * graphite-dependences.c: Same.
2698 * graphite-poly.c: Same.
2699 * graphite-sese-to-poly.c: Same.
2701 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2703 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
2704 expressions for an IV rename, as returned by clast_to_gcc_expression.
2705 (copy_renames): Rename new_name to expr.
2706 * sese.c (debug_rename_elt): Same.
2709 (sese_adjust_liveout_phis): Call force_gimple_operand before using
2710 the information from the rename map.
2711 (rename_variables_in_stmt): Same.
2712 (add_loop_exit_phis): Rename new_name to expr.
2713 (insert_loop_close_phis): Same.
2714 (add_guard_exit_phis): Same. Call force_gimple_operand.
2715 * sese.h (struct rename_map_elt): Rename new_name to expr.
2716 (new_rename_map_elt): Same.
2718 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2720 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
2721 * sese.c (set_rename): Make it extern.
2722 * sese.h (set_rename): Declared.
2724 2009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2726 * graphite-poly.c (extend_scattering): Free values.
2727 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
2729 (ppl_print_powerset_matrix): Same.
2730 * graphite-scop-detection.c (free_scops_1): New.
2731 (limit_scops): Call free_scops_1.
2732 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
2733 (build_poly_dr): Free PPL coefficients.
2734 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
2736 2009-06-02 Sebastian Pop <sebastian.pop@amd.com>
2738 * graphite-dependences.c: New.
2739 * graphite-data-ref.c: Removed.
2740 * graphite-data-ref.h: Removed.
2741 * Makefile.in (graphite-data-ref.o): Removed.
2742 (graphite-dependences.o): Added.
2743 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
2744 * graphite-poly.c: Same.
2745 Move the data dependence testing to graphite-dependences.c.
2747 2009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
2749 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
2750 from graphite_cannot_represent_loop. Code refactored.
2751 (scopdet_basic_block_info): Call graphite_can_represent_loop.
2753 2009-05-17 Li Feng <nemokingdom@gmail.com>
2755 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2756 Cover all the testcases (not only the filtered ones).
2758 2009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
2760 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
2761 unnecessary check. Update comments. Move check for REAL_TYPE here.
2762 (harmful_stmt_in_bb): Remove checks for conditions. This is already
2763 done in (stmt_simple_for_scop_p).
2765 2009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
2767 * graphite.c (print_global_statistics): New.
2768 (print_graphite_scop_statistic): New.
2769 (print_graphite_statistics): New.
2770 (graphite_initialize, graphite_transform_loops): Print statistics.
2771 * graphite-scop-detection (build_scops): Print statistics.
2772 (print_graphite_scop_statistics): New.
2773 (print_graphite_statistics): New.
2775 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2777 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
2778 (debug_clast_name_index): Removed.
2779 (debug_clast_name_indexes_1): Removed.
2780 (debug_clast_name_indexes): Removed.
2781 (clast_name_index_elt_info): Removed.
2782 (eq_clast_name_indexes): Removed.
2783 (clast_name_to_index): Removed.
2784 (new_clast_name_index): Removed.
2785 (save_clast_name_index): Removed.
2786 (save_var_name): Moved...
2787 (init_sese_params_index): Removed.
2788 (clast_name_to_gcc): Remove use of name_tree.
2789 (initialize_cloog_names): Same.
2790 (gloog): Do not call init_sese_params_index.
2791 * graphite-sese-to-poly.c (save_var_name): ...here.
2792 (parameter_index_in_region): New.
2793 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
2794 (parameter_index_in_region): Removed.
2795 (is_parameter): Remove use of name_tree.
2796 * sese.h (struct name_tree): Removed.
2797 (struct sese): Remove use of name_tree. New field params_names.
2798 (SESE_PARAMS_NAMES): New.
2799 (SESE_PARAMS): Remove duplicate.
2800 (parameter_index_in_region): Removed.
2801 (sese_nb_params): Remove use of name_tree.
2802 (struct clast_name_index): New.
2803 (new_clast_name_index): New.
2804 (clast_name_to_index): New.
2805 (save_clast_name_index): New.
2806 (debug_clast_name_index): New.
2807 (debug_clast_name_indexes_1): New.
2808 (debug_clast_name_indexes): New.
2809 (clast_name_index_elt_info): New.
2810 (eq_clast_name_indexes): New.
2812 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2814 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
2815 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
2816 (graphite_loop_normal_form): Do not pass region. Do not
2817 initialize SESE_OLDIVS.
2818 (build_graphite_loop_normal_form): Update call to
2819 graphite_loop_normal_form.
2820 * sese.c (debug_oldivs): Removed.
2821 (new_sese): Do not initialize SESE_OLDIVS.
2822 (free_sese): Do not free SESE_OLDIVS.
2823 (oldiv_for_loop): Removed.
2824 * sese.h (struct sese): Remove old_ivs.
2825 (SESE_OLDIVS): Removed.
2826 (oldiv_for_loop): Removed.
2828 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2830 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
2831 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
2832 replaced by a call to newivs_to_depth_to_newiv.
2833 (clast_to_gcc_expression): Pass newivs, remove ivstack.
2834 (clast_to_gcc_expression_red): Same.
2835 (gcc_type_for_clast_expr): Same.
2836 (gcc_type_for_clast_eq): Same.
2837 (graphite_translate_clast_equation): Same.
2838 (graphite_create_guard_cond_expr): Same.
2839 (graphite_create_new_guard): Same.
2840 (graphite_create_new_loop): Same.
2841 (build_iv_mapping): Same.
2842 (translate_clast): Same.
2844 (loop_iv_stack_patch_for_consts): Removed. *
2845 sese.c (iv_stack_entry_is_constant): Removed.
2846 (iv_stack_entry_is_iv): Removed.
2847 (loop_iv_stack_push_iv): Removed.
2848 (loop_iv_stack_insert_constant): Removed.
2849 (loop_iv_stack_pop): Removed.
2850 (loop_iv_stack_get_iv): Removed.
2851 (loop_iv_stack_get_iv_from_name): Removed.
2852 (debug_loop_iv_stack): Removed.
2853 (free_loop_iv_stack): Removed.
2854 (loop_iv_stack_remove_constants): Removed. *
2855 sese.h (iv_stack_entry_kind): Removed.
2856 (iv_stack_entry_data_union): Removed.
2857 (iv_stack_entry_struct): Removed.
2858 (iv_stack_entry_p): Removed.
2859 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
2860 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
2861 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
2862 loop_iv_stack_pop, free_loop_iv_stack): Removed.
2863 (gbb_loop_at_index): Fix indenting.
2864 (gbb_loop_index): Removed.
2866 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2868 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
2869 Call clast_name_to_index.
2871 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2873 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
2874 do not pass params. Get params from SESE_PARAMS.
2875 (clast_to_gcc_expression): Same.
2876 (clast_to_gcc_expression_red): Same.
2877 (gcc_type_for_clast_eq): Same.
2878 (graphite_translate_clast_equation): Same.
2879 (graphite_create_new_loop): Same.
2880 * sese.c (rename_variables_in_stmt): Fix comment.
2882 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2884 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
2886 Call save_clast_name_index.
2887 (translate_clast): Pass newivs_index.
2888 (gloog): Create and free newivs_index.
2890 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2892 * graphite-clast-to-gimple.c (clast_name_index): New structure.
2893 (clast_name_index_p): New type.
2894 (debug_clast_name_index): New.
2895 (debug_clast_name_indexes_1): New.
2896 (debug_clast_name_indexes): New.
2897 (clast_name_index_elt_info): New.
2898 (eq_clast_name_indexes): New.
2899 (clast_name_to_index): New.
2900 (new_clast_name_index): New.
2901 (save_clast_name_index): New.
2902 (init_sese_params_index): New.
2903 (gloog): Call init_sese_params_index.
2904 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
2905 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
2906 (free_sese): Free SESE_PARAMS_INDEX.
2907 * sese.h (struct sese): Add params_index.
2908 (SESE_PARAMS_INDEX): New.
2910 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2912 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
2913 (graphite_create_new_loop): Pass the newivs vector. Push the
2914 newly created IV to newivs.
2915 (translate_clast): Pass the newivs vector.
2916 (gloog): Create and destroy the newivs vector.
2918 2009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2920 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
2921 (graphite_loop_normal_form): Initialize loop->aux with the unique
2922 IV that has been created.
2924 2009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
2926 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
2927 scev with parameters in the base part. They where forbidden
2930 2009-05-11 Li Feng <nemokingdom@gmail.com>
2932 * gcc.dg/graphite/graphite.exp: Set different default
2933 compile options by file names.
2934 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
2935 * gcc.dg/graphite/id-{1-9}.c: Ditto.
2936 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
2937 * gcc.dg/graphite/scop-matmult.c: Ditto.
2939 2009-05-08 Li Feng <nemokingdom@gmail.com>
2941 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
2942 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
2943 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
2944 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
2946 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
2948 * graphite-scop-detection (build_scops_1): Fix little bug introduced
2951 2009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
2953 * graphite-scop-detection.c (graphite_can_represent_scev): Only
2954 allow integer constant strides.
2955 (graphite_can_represent_expr): Depend on outermost_loop.
2956 (stmt_simple_memref_p, graphite_cannot_represent_loop,
2957 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
2958 build_scops_1): Same.
2959 (scopdet_basic_block_info): Same and insert layered SCoP
2961 (try_generate_gimple_bb): Cleanup.
2962 (build_scops): Enable data references.
2964 * gcc.dg/graphite/id-5.c: New.
2965 * gcc.dg/graphite/id-9.c: New.
2966 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
2967 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
2969 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
2971 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
2972 that we have not yet built for this SCoP.
2974 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
2976 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
2977 for complex numbers.
2979 2009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
2981 * graphite-ppl.c: Fix build if cloog is not available.
2983 2009-05-04 Li Feng <nemokingdom@gmail.com>
2985 * tree-parloops.c (loop_parallel_p): Remove construction of
2986 NITER and REDUCTION_LIST.
2987 (try_get_loop_niter): New.
2988 (try_create_reduction_list): New.
2989 (parallelize_loops): Bypass the failed checkings in autopar
2990 when can_be_parallel in loop structure is set to true.
2992 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
2994 * gcc.dg/graphite/id-6.c: Update testcase.
2995 * gcc.dg/graphite/scop-3.c: Dito.
2997 2009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
2999 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3000 Enable EQ_EXPR and NE_EXPR again.
3002 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
3004 * graphite-scop-detection.c (graphite_can_represent_scev):
3005 Add check if scev is affine multivariate.
3006 (harmful_stmt_in_bb): Check if we can represent the conditions.
3007 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
3009 * gcc.dg/graphite/id-7.c: New.
3011 2009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
3013 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
3014 Check all bbs in region, not only the bbs that are represented in
3016 (build_poly_scop): Add newline.
3017 * gcc.dg/graphite/id-8.c: New.
3019 2009-04-30 Li Feng <nemokingdom@gmail.com>
3021 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
3022 when loop initialize.
3023 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
3024 * common.opt: Declare flag_graphite_force_parallel.
3025 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
3027 * graphite-poly.c (apply_poly_transforms): Introduce
3028 flag_graphite_force_parallel.
3029 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
3030 * toplev.c (process_options): ditto and replace a not correctly
3033 2009-04-30 Li Feng <nemokingdom@gmail.com>
3035 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
3036 Change the call of gbb_loop_at_index and/or gbb_loop_index due
3037 to the redefinition.
3038 (compute_cloog_iv_types_1): ditto.
3039 (build_iv_mapping): ditto.
3040 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
3042 (free_gimple_bb): Removed GBB_LOOPS related free part.
3043 (build_bb_loops): Removed.
3044 * sese.h (struct gimple_bb): Removed loops.
3045 (GBB_LOOPS): Removed.
3046 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
3047 (gbb_loop_index): ditto.
3049 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3051 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
3052 allow non constant strides.
3053 * gcc.dg/graphite/scop-20.c: New.
3055 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3057 * graphite-scop-detection.c (dot_all_scops): Fix system call
3058 return value warning.
3061 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3063 * gcc.dg/graphite/id-6.c: Fix pattern.
3064 * gcc.dg/graphite/scop-3.c: Same.
3066 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3068 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
3069 build_pairwise_constraint, dr_equality_constraints,
3070 build_pairwise_scheduling_equality,
3071 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3072 build_lexicographically_gt_constraint, dependence_polyhedron,
3073 graphite_legal_transform_dr, graphite_legal_transform_bb,
3074 graphite_legal_transform): New.
3075 * graphite-poly.h (graphite_legal_transform): Declared.
3076 * graphite-sese-to-poly.c (build_poly_scop): Call to
3077 graphite_legal_transform is disabled for the moment.
3079 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3081 * graphite-poly.h (pbb_nb_scattering_dims): New.
3082 (pbb_nb_scattering): Use it.
3084 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3086 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
3087 Pointset_Powerset version of ppl_insert_dimensions.
3088 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
3090 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3092 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
3094 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3096 * graphite-poly.h: Fix comment.
3098 2009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3100 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
3102 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3104 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
3107 2009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3109 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
3110 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
3113 2009-04-20 Sebastian Pop <sebastian.pop@amd.com>
3115 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
3116 handle EQ_EXPR and NE_EXPR.
3118 2009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
3120 * graphite-poly.h (poly_dr): Fix comment.
3122 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
3123 Tobias Grosser <grosser@fim.uni-passau.de>
3125 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
3126 with a zero dimension polyhedron.
3127 (find_scop_parameters): Move the call to scop_set_nb_params here.
3128 (build_loop_iteration_domains): Store in loop->aux the iteration
3130 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
3131 by any loop in scop.
3132 (build_poly_scop): Do not call scop_set_nb_params.
3134 2009-04-09 Sebastian Pop <sebastian.pop@amd.com>
3135 Tobias Grosser <grosser@fim.uni-passau.de>
3137 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
3138 add_condition_to_domain not GT_EXPR.
3140 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3142 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
3143 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
3144 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
3145 upper_bound_assign to calculate unions.
3146 * gcc.dg/graphite/id-6.c: New.
3148 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3150 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
3151 handle abnormal edges.
3153 2009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3155 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
3156 (free_poly_bb): Also free poly_drs.
3157 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
3158 (poly_dr): Polyhedron to Pointset_Powerset.
3159 (pdr_accessp_nb_subscripts): Same.
3160 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
3163 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3165 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
3166 names into more meaningful names.
3168 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3170 * gfortran.dg/graphite/interchange-1.c: New.
3171 * gfortran.dg/graphite/interchange-2.c: New.
3173 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3175 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
3177 * tree-parloops.c (rewrite_phi_with_iv): New.
3178 (rewrite_all_phi_nodes_with_iv): New.
3179 (canonicalize_loop_ivs): Call them.
3181 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3183 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
3184 graphite_find_data_references_in_stmt.
3185 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
3186 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
3188 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3190 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
3192 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3194 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
3195 instead of bb_in_region.
3196 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
3197 (build_sese_conditions): Use flag_bb_in_sese.
3198 * sese.c (register_bb_in_sese): Removed.
3199 (new_sese): Remove initialization of SESE_REGION_BBS.
3200 (free_sese): Do not free SESE_REGION_BBS.
3201 * sese.h (struct sese): Remove field region_basic_blocks.
3202 (SESE_REGION_BBS): Removed.
3203 (bb_in_sese_p): Implement in function of bb_in_region.
3205 2009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3207 * graphite-scop-detection.c (limit_scops): Deal only with single exit
3210 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3212 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
3214 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
3215 (add_condition_to_domain): New.
3216 (add_condition_to_pbb): New.
3217 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
3218 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
3220 2009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3222 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
3223 ppl_Pointset_Powerset.
3224 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
3225 * graphite-poly.h (poly_bb): poly_bb.domain Same.
3226 (pbb_nb_loops): Same.
3227 * graphite-sese-to-poly.c (build_loop_iteration_domains,
3228 add_conditions_to_domain): Same.
3229 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3230 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
3231 ppl_const_Polyhedron_t.
3232 (ppl_print_powerset_matrix): New.
3233 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
3234 ppl_print_powerset_matrix): New.
3235 (ppl_print_polyhedron_matrix): Updated.
3237 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3239 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
3241 2009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3243 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
3244 (print_iteration_domains, debug_iteration_domain,
3245 debug_iteration_domains): New.
3246 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
3247 debug_iteration_domains): Declared.
3248 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
3251 2009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
3252 Sebastian Pop <sebastian.pop@amd.com>
3254 * graphite-poly.h (print_iteration_domain): New.
3255 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
3256 (build_sese_conditions_1, build_sese_conditions_after,
3257 build_sese_conditions_before): New.
3258 (build_sese_conditions): Rewritten.
3260 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
3261 Tobias Grosser <grosser@fim.uni-passau.de>
3263 Cleanup of code generation liveouts.
3264 * graphite-clast-to-gimple.c (translate_clast): Use a single
3265 rename_map instead of one per translated statement.
3266 Do not use SESE_LIVEOUT_RENAMES.
3267 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
3268 (gloog): Do not use SESE_LIVEOUT_RENAMES.
3269 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
3270 phi node of a reduction: when a loop contains a reduction used outside
3271 the loop, there should be a scalar close phi node on the exit block.
3272 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
3273 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
3274 (free_sese): Do not free them.
3275 (sese_build_liveouts_use): Do not use them.
3276 (sese_build_liveouts_bb): Same.
3277 (sese_build_liveouts): Same.
3278 (sese_insert_phis_for_liveouts): Same.
3279 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
3280 (defined_in_loop_p): New.
3281 (alive_after_loop): New.
3282 (close_phi_not_yet_inserted_p): New.
3283 (struct alep, alep_p): New.
3284 (add_loop_exit_phis): Remove from the rename_map all the names defined
3285 in the code generated loop.
3286 (insert_loop_close_phis): Traverse the rename_map passed to it.
3287 Don't use SESE_LIVEOUT_RENAMES.
3288 (default_liveout_before_guard): Renamed default_before_guard.
3289 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
3290 (graphite_copy_stmts_from_block): Do not directly call set_rename.
3291 (register_sese_liveout_renames): Removed.
3292 (copy_bb_and_scalar_dependences): Do not call it.
3293 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
3295 (SESE_LIVEOUT): Removed.
3296 (SESE_LIVEOUT_RENAMES): Removed.
3297 (SESE_REDUCTION_LIST): Removed.
3298 (sese_build_liveouts): Removed.
3299 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
3300 (insert_loop_close_phis): Pass a htab_t instead of a sese.
3301 (insert_guard_phis): Same.
3302 (rename_map_elt): Declare a VEC of them.
3303 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
3304 trees not pointers to trees.
3306 Rewrite in canonical close SSA form:
3307 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
3308 (limit_scops): Close the scop after the block containing the close phi
3310 (canonicalize_loop_closed_ssa): New.
3311 (canonicalize_loop_closed_ssa_form): New.
3312 (build_scops): Call canonicalize_loop_closed_ssa_form.
3314 * graphite-sese-to-poly.c: Fix typos.
3316 2009-04-03 Sebastian Pop <sebastian.pop@amd.com>
3318 * graphite-poly.c (print_scattering_function, print_pbb_domain):
3320 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
3321 (print_pbb): Add conditions.
3323 2009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
3324 Sebastian Pop <sebastian.pop@amd.com>
3326 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
3327 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
3328 (build_scop_bbs_1): New.
3329 (build_scop_bbs): Rewrite.
3330 * sese.h (bb_in_region): New.
3332 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3334 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3336 (print_scop): Style.
3337 * graphite-poly.h (poly_bb): Add drs vector.
3338 (PBB_DRS): Add accessor.
3339 * graphite-sese-to-poly.c (build_poly_dr): New.
3340 (build_pbb_drs, build_scop_drs): New.
3341 (build_poly_scop): call build_scop_drs (Disabled at the moment).
3343 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3345 * tree-ssa-loop.c: Include forgotten toplev.h
3347 2009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3349 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
3350 * gcc.dg/graphite/pr37883.c: Remove -floop-*
3351 * gcc.dg/graphite/pr37928.c: Same
3352 * gcc.dg/graphite/pr38409.c: Same
3353 * gcc.dg/graphite/pr38498.c: Same
3354 * gcc.dg/graphite/pr38559.c: Same
3355 * gcc.dg/graphite/pr39335.c: Same
3356 * gcc.dg/graphite/pr39335_1.c: Same
3357 * gfortran.dg/graphite/block-2.f: Same
3358 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
3361 2009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
3363 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
3364 build_access_matrix, build_scop_data_accesses): Remove access function
3365 building. (We get a new version soon).
3366 (build_bb_loops, scan_tree_for_params_right_scev): Update.
3367 * sese.h (nb_loops_around_loop_in_sese): Remove.
3368 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
3370 2009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
3371 Sebastian Pop <sebastian.pop@amd.com>
3373 * graphite-scop-detection.c (struct scopdet_info): Rename last
3375 (scopdet_basic_block_info, build_scops_1): Don't use
3376 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
3378 2009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
3379 Sebastian Pop <sebastian.pop@amd.com>
3381 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
3382 * sese.c (sese_build_liveouts_use): Renamed from
3383 sese_build_livein_liveouts_use. Remove liveins.
3384 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
3385 Call sese_build_liveouts_use.
3386 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
3387 Call sese_build_liveouts_bb.
3388 (new_sese, free_sese): Remove liveins.
3389 (sese_add_exit_phis_var): Deleted.
3390 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
3392 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
3394 * sese.h (sese): Remove num_ver and livein.
3395 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
3397 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
3399 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
3401 2009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
3403 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
3404 (build_scop_scattering): Do not use compare_prefix_loops any more.
3405 (nb_common_loops): New.