OSDN Git Service

Call abort for runtime test, always return 0 from main.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog.graphite
1 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
2
3         * gcc.dg/graphite/block-0.c: Call abort for runtime test.  Always
4         return 0 from main.
5         * gcc.dg/graphite/block-1.c: Same.
6         * gcc.dg/graphite/block-3.c: Same.
7         * gcc.dg/graphite/block-4.c: Same.
8         * gcc.dg/graphite/block-5.c: Same.
9         * gcc.dg/graphite/block-6.c: Same.
10         * gcc.dg/graphite/block-7.c: Same.
11         * gcc.dg/graphite/interchange-0.c: Same.
12         * gcc.dg/graphite/interchange-1.c: Same.
13         * gcc.dg/graphite/interchange-10.c: Same.
14         * gcc.dg/graphite/interchange-11.c: Same.
15         * gcc.dg/graphite/interchange-12.c: Same.
16         * gcc.dg/graphite/interchange-2.c: Same.
17         * gcc.dg/graphite/interchange-3.c: Same.
18         * gcc.dg/graphite/interchange-4.c: Same.
19         * gcc.dg/graphite/interchange-5.c: Same.
20         * gcc.dg/graphite/interchange-6.c: Same.
21         * gcc.dg/graphite/interchange-7.c: Same.
22         * gcc.dg/graphite/interchange-8.c: Same.
23         * gcc.dg/graphite/interchange-9.c: Same.
24         * gcc.dg/graphite/interchange-mvt.c: Same.
25
26 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
27
28         * gfortran.dg/graphite/id-19.f: New.
29         * gfortran.dg/graphite/pr14741.f90: New.
30         * gfortran.dg/graphite/pr41924.f90: New.
31         * gfortran.dg/graphite/run-id-2.f90: New.
32
33 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
34
35         PR middle-end/42988
36         * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
37         to unknown_dependence.
38         (graphite_legal_transform_dr): Handle the unknown_dependence.
39         (graphite_carried_dependence_level_k): Same.
40
41 2010-02-07  Sebastian Pop  <sebastian.pop@amd.com>
42
43         * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
44
45 2010-02-05  Sebastian Pop  <sebastian.pop@amd.com>
46             Konrad Trifunovic  <konrad.trifunovic@inria.fr>
47
48         PR middle-end/42637
49         * graphite-dependences.c (build_lexicographical_constraint): Return
50         a union of dependence polyhedra.
51         (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
52
53         * gcc.dg/graphite/block-0.c: Enable runtime check.  XFAILed.
54         * gcc.dg/graphite/block-4.c: Same.
55         * gcc.dg/graphite/block-7.c: Same.
56         * gcc.dg/graphite/interchange-12.c: Same.
57         * gcc.dg/graphite/interchange-mvt.c: Same.
58         * gfortran.dg/graphite/interchange-1.f: XFAILed.
59         * gfortran.dg/graphite/interchange-3.f90: XFAILed.
60         * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
61
62 2010-02-03  Sebastian Pop  <sebastian.pop@amd.com>
63
64         * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
65         the execution check to FAIL.  This testcase is miscompiled by Graphite
66         and the check should be re-enabled.
67         * gcc.dg/graphite/interchange-mvt.c: Same.
68         * gcc.dg/graphite/block-0.c: Same.
69         * gcc.dg/graphite/block-4.c: Same.
70         * gcc.dg/graphite/block-7.c: Same.
71
72 2010-02-03  Sebastian Pop  <sebastian.pop@amd.com>
73
74         * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
75         * gcc.dg/graphite/scop-0.c: Fix spaces.
76         * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
77         * gfortran.dg/graphite/block-2.f: Same.
78         * gfortran.dg/graphite/block-3.f90: Same.
79         * gfortran.dg/graphite/block-4.f90: Same.
80         * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
81         * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
82
83 2010-02-03  Sebastian Pop  <sebastian.pop@amd.com>
84
85         * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
86         PDDR_ORIGINAL_SCATTERING_P.
87         (pddr_is_empty): Rewritten.
88         (print_dependence_polyhedron_layout): New.
89         (print_pddr): New.
90         (debug_pddr): New.
91         (build_alias_set_powerset): Moved up.
92         (poly_drs_may_alias_p): Moved up.
93         (lexicographically_gt_p): Removed.
94         (build_lexicographically_gt_constraint): Renamed
95         build_lexicographical_constraint, reimplemented.
96         (dependence_polyhedron_1): Simplified parameters.
97         (dependence_polyhedron): Same.  Keep along empty PDDRs
98         to make efficient use of the cache.
99         (reduction_dr_p): Compute the PBBs don't pass them as parameters.
100         (graphite_legal_transform_dr): Rewritten.
101         (graphite_legal_transform_bb): Pass fewer arguments to
102         graphite_legal_transform_dr.
103         (graphite_carried_dependence_level_k): Simplified implementation.
104         (dot_original_deps_stmt_1): Call dependence_polyhedron.
105         (dot_transformed_deps_stmt_1): Same.
106         (dot_original_deps): Same.
107         (dot_transformed_deps): Same.
108         * graphite-dependences.h (struct poly_ddr): Added a new field
109         original_scattering_p.
110         (PDDR_ORIGINAL_SCATTERING_P): New.
111         (print_pddr): Declared.
112         (debug_pddr): Declared.
113         * graphite-ppl.c: Clarify comment.
114         * sese.h (print_gimple_bb): Removed unused declaration.
115         (debug_gbb): Same.
116
117 2010-02-03  Sebastian Pop  <sebastian.pop@amd.com>
118
119         * g++.dg/graphite/graphite.exp: Rewritten.
120         * gcc.dg/graphite/graphite.exp: Rewritten.
121         * gfortran.dg/graphite/graphite.exp: Rewritten.
122         * gcc.dg/graphite/block-0.c: Added runtime test.
123         * gcc.dg/graphite/block-1.c: Same.
124         * gcc.dg/graphite/block-3.c: Same.
125         * gcc.dg/graphite/block-4.c: Same.
126         * gcc.dg/graphite/block-5.c: Same.
127         * gcc.dg/graphite/block-6.c: Same.
128         * gcc.dg/graphite/block-7.c: Same.
129         * gcc.dg/graphite/interchange-0.c: Same.
130         * gcc.dg/graphite/interchange-1.c: Same.
131         * gcc.dg/graphite/interchange-10.c: Same.
132         * gcc.dg/graphite/interchange-11.c: Same.
133         * gcc.dg/graphite/interchange-12.c: Same.
134         * gcc.dg/graphite/interchange-2.c: Same.
135         * gcc.dg/graphite/interchange-3.c: Same.
136         * gcc.dg/graphite/interchange-4.c: Same.
137         * gcc.dg/graphite/interchange-5.c: Same.
138         * gcc.dg/graphite/interchange-6.c: Same.
139         * gcc.dg/graphite/interchange-7.c: Same.
140         * gcc.dg/graphite/interchange-8.c: Same.
141         * gcc.dg/graphite/interchange-9.c: Same.
142         * gcc.dg/graphite/interchange-mvt.c: Same.
143         * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
144
145 2010-01-22  Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
146
147         * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
148           background.
149
150 2010-01-22  Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
151
152         * common.opt: Add -fgraphite-cloog-opts.
153         * graphite-clast-to-gimple.c (set_cloog_options): Same.
154         * opts.c (decode_options): Same.
155
156 2010-01-20  Sebastian Pop  <sebastian.pop@amd.com>
157
158         * gcc.dg/graphite/id-17.c: New.
159         * gcc.dg/graphite/pr41888.c: New.
160         * gcc.dg/graphite/scop-22.c: New.
161         * gfortran.dg/graphite/pr40982.f90: New.
162
163 2010-01-20  Sebastian Pop  <sebastian.pop@amd.com>
164
165         * graphite-dependences.c: Clarify comments.
166         (build_pddr): Add an extra parameter direction.
167         (graphite_legal_transform_dr): Use build_pddr.
168         (dot_original_deps_stmt_1): Update use of build_pddr.
169         (dot_transformed_deps_stmt_1): Same.
170         (dot_original_deps): Same.
171         (dot_transformed_deps): Same.
172
173         * gcc.dg/graphite/interchange-12.c: New.
174         * gcc.dg/graphite/block-7.c: New.
175
176 2010-01-20  Sebastian Pop  <sebastian.pop@amd.com>
177
178         * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
179         (pddr_transformed_scattering): Removed.
180         (graphite_legal_transform_dr): Use build_pddr.
181         (dot_original_deps_stmt_1): Same.
182         (dot_transformed_deps_stmt_1): Same.
183         (dot_original_deps): Same.
184         (dot_transformed_deps): Same.
185
186 2010-01-20  Sebastian Pop  <sebastian.pop@amd.com>
187
188         * graphite-dependences.c (lexicographically_gt_p): Add comments.
189         (build_lexicographically_gt_constraint): Same.
190         (dependence_polyhedron_1): Same.
191         (dependence_polyhedron): Same.
192
193 2010-01-20  Sebastian Pop  <sebastian.pop@amd.com>
194
195         * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
196         (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
197         (lexicographically_gt_p): Change type of direction to int.
198         (build_lexicographically_gt_constraint): Same.
199         (dependence_polyhedron_1): Same.
200         (dependence_polyhedron): Same.
201         (pddr_original_scattering): Use integers for direction.
202         (pddr_transformed_scattering): Same.
203         (graphite_legal_transform_dr): Same.
204         (graphite_carried_dependence_level_k): Same.
205
206 2010-01-20  Sebastian Pop  <sebastian.pop@amd.com>
207
208         * graphite-dependences.c (build_pairwise_constraint): Renamed
209         ppl_build_relation.  Moved...
210         (dr_equality_constraints): Use ppl_build_relation.
211         (build_pairwise_scheduling_equality): Same.
212         (build_pairwise_scheduling_inequality): Same.
213         * graphite-ppl.c (ppl_build_relation): ...here.
214         * graphite-ppl.h (ppl_build_relation): Declared.
215
216 2010-01-14  Sebastian Pop  <sebastian.pop@amd.com>
217
218         PR middle-end/42681
219         * graphite-clast-to-gimple.c (gloog_error): New static variable.
220         (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
221         Set gloog_error when such an expression failed to be built.
222         (translate_clast): Early return when gloog_error is set.
223         (gloog): Clear gloog_error.  When gloog_error is set, call
224         set_ifsese_condition to enable the original code.  Return the status
225         of the code generation based on gloog_error.
226         * sese.c (set_ifsese_condition): New.
227         * sese.h (set_ifsese_condition): Declared.
228
229         * g++.dg/graphite/pr42681.C: New.
230
231 2010-01-14  Sebastian Pop  <sebastian.pop@amd.com>
232
233         PR middle-end/42732
234         * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
235         rename_nb_iterations.
236         * sese.c (rename_variables_in_operand): New.
237         (rename_variables_in_expr): New.
238         (rename_nb_iterations): New.
239         (sese_adjust_liveout_phis): Update the rename_map.
240         * sese.h (rename_nb_iterations): Declared.
241         * tree-scalar-evolution.c (scev_reset_htab): New.
242         (scev_reset): Call scev_reset_htab.
243         * tree-scalar-evolution.h (scev_reset_htab): Declared.
244
245         * gfortran.dg/graphite/pr42732.f: New.
246
247 2010-01-08  Sebastian Pop  <sebastian.pop@amd.com>
248
249         PR middle-end/42393
250         * graphite-clast-to-gimple.c: Fix formatting.
251         * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
252         (expr_defined_in_loop_p): New.
253         (add_loop_exit_phis): Also handle full expressions: remove from
254         the rename_map the expressions defined in the loop that we're closing.
255
256         * gfortran.dg/graphite/pr42393-1.f90: New.
257         * gfortran.dg/graphite/pr42393.f90: Add new flags
258         -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
259         make this testcase useful in the Graphite branch.
260
261 2010-01-08  Sebastian Pop  <sebastian.pop@amd.com>
262
263         * graphite-scop-detection.c (exclude_component_ref): Removed.
264         (is_simple_operand): Removed.
265         (stmt_simple_for_scop_p): Remove use of is_simple_operand.
266
267 2010-01-07  Sebastian Pop  <sebastian.pop@amd.com>
268
269         PR middle-end/42221
270         * sese.c (expand_scalar_variables_expr): Follow the SSA links into
271         the array indexing of ADDR_EXPRs.
272
273         * gcc.dg/graphite/pr42221.c: New.
274
275 2010-01-07  Sebastian Pop  <sebastian.pop@amd.com>
276
277         PR middle-end/42521
278         * graphite.c (graphite_finalize): Call scev_reset.
279         (graphite_transform_loops): Do not call scev_reset between the code
280         generation of scops.
281
282         * gcc.dg/graphite/pr42521.c: New.
283
284 2010-01-07  Sebastian Pop  <sebastian.pop@amd.com>
285
286         * graphite-interchange.c (memory_stride_in_loop): Renamed
287         pdr_stride_in_loop.
288         (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
289         (memory_strides_in_loop): Memoize the memory strides per loop.
290         (lst_interchange_profitable_p): Do not initialize to zero the memory
291         strides.
292         * graphite-poly.h (struct lst): Add a field memory_strides.
293         (LST_LOOP_MEMORY_STRIDES): New.
294         (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
295         (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
296
297 2010-01-07  Sebastian Pop  <sebastian.pop@amd.com>
298
299         * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
300         memory_strides_in_loop.  Gather memory strides on a whole loop.
301         (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
302         (lst_interchange_profitable_p): Removed.
303         (lst_try_interchange_loops): Call lst_interchange_profitable_p.
304
305 2010-01-07  Sebastian Pop  <sebastian.pop@amd.com>
306
307         Revert patch 2009-11-23  Tobias Grosser  <grosser@fim.uni-passau.de>
308         * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
309         (translate_clast_for, translate_clast_guard, translate_clast, gloog):
310         Remove context_loop and level.
311
312 2010-01-07  Richard Guenther  <rguenther@suse.de>
313
314         PR tree-optimization/42641
315         * sese.c (rename_map_elt_info): Use the SSA name version, do
316         not hash pointers.
317
318 2010-01-06  Sebastian Pop  <sebastian.pop@amd.com>
319
320         * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
321         blocked" only when both the strip mine and the interchange have
322         been applied.
323
324         * gcc.dg/graphite/block-2.c: Removed.
325         * gcc.dg/graphite/block-3.c: Add scan pattern.
326         * gcc.dg/graphite/block-4.c: Same.
327         * gcc.dg/graphite/block-5.c: Same.
328         * gcc.dg/graphite/block-6.c: Same.
329
330 2010-01-06  Sebastian Pop  <sebastian.pop@amd.com>
331
332         * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
333         before allocating a new one.
334         (copy_renames): Check that slot is not NULL.
335         (mark_bb_with_pbb): Same.
336         (compute_cloog_iv_types_1): Same.
337         * graphite-interchange.c (lst_perfect_nestify): Free the before,
338         nest, and after LSTs.
339         (lst_try_interchange_loops): Same.
340
341 2010-01-05  Sebastian Pop  <sebastian.pop@amd.com>
342
343         PR middle-end/42178
344         * graphite-interchange.c (lst_try_interchange_loops): Do not return
345         the before, nest, and after LSTs.
346         (lst_try_interchange): Removed.
347         (lst_interchange_select_inner): Do not iterate over the LSTs if they
348         were modified.
349         (lst_interchange_select_outer): Apply interchange on the outer loop
350         until there are no more changes in the inner loops.
351
352 2009-12-18  Sebastian Pop  <sebastian.pop@amd.com>
353
354         Revert patch fixing PR middle-end/42221.
355
356 2009-12-18  Sebastian Pop  <sebastian.pop@amd.com>
357
358         PR middle-end/42180
359         * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
360         GIMPLE_CALL.
361
362         * gfortran.dg/graphite/pr42180.f90: Add compile flags.
363
364 2009-12-18  Sebastian Pop  <sebastian.pop@amd.com>
365
366         PR middle-end/42180
367         * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
368         that contain only one statement.
369
370         * gfortran.dg/graphite/pr42180.f90: New.
371
372 2009-12-17  Sebastian Pop  <sebastian.pop@amd.com>
373
374         PR middle-end/42393
375         * gfortran.dg/graphite/pr42393.f90: New.
376
377 2009-12-17  Sebastian Pop  <sebastian.pop@amd.com>
378
379         PR middle-end/42186
380         * gfortran.dg/graphite/pr42186.f90: New.
381
382 2009-12-17  Sebastian Pop  <sebastian.pop@amd.com>
383
384         PR middle-end/42205
385         * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
386         Insert the reduction copy in the same block as the phi node.
387         (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
388
389         * gcc.dg/graphite/pr42205-1.c: New.
390         * gcc.dg/graphite/pr42205-2.c: New.
391
392 2009-12-17  Sebastian Pop  <sebastian.pop@amd.com>
393
394         PR middle-end/42221
395         * sese.c (expand_scalar_variables_expr): Follow the SSA links into
396         the array indexing of ADDR_EXPRs.
397
398         * gcc.dg/graphite/pr42221.c: New.
399
400 2009-12-17  Sebastian Pop  <sebastian.pop@amd.com>
401
402         PR middle-end/42178
403         PR middle-end/42334
404         * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
405         index.  Call lst_interchange_select_inner only once.
406         (lst_interchange_select_inner): Update use of lst_try_interchange.
407         (lst_interchange_select_outer): Update.
408
409 2009-12-15  Sebastian Pop  <sebastian.pop@amd.com>
410
411         PR middle-end/42178
412         PR middle-end/42334
413         * graphite-interchange.c (lst_try_interchange): Do not increment the
414         the OUTER index when there is no AFTER kernel.  Do not increment the
415         OUTER index for after processing the AFTER kernel.
416         (lst_interchange_select_inner): Call lst_try_interchange only on loops.
417         (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
418         index.  Do not pass to lst_interchange_select_inner the OUTER index.
419         (scop_do_interchange): Update use of lst_interchange_select_outer.
420
421         * gfortran.dg/graphite/graphite.exp
422         (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
423         * gfortran.dg/graphite/interchange-1.f: Add comment.  Clean
424         the graphite dump file.
425         * gfortran.dg/graphite/interchange-2.f: Same.
426         * gfortran.dg/graphite/pr42334-1.f: New.
427
428 2009-12-15  Sebastian Pop  <sebastian.pop@amd.com>
429
430         PR middle-end/42178
431         PR middle-end/42334
432         * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
433         that are empty.
434         (lst_do_interchange_1): Renamed lst_interchange_select_inner.
435         (lst_try_interchange): Reimplemented.
436         (lst_interchange_select_inner): Same.
437         (lst_do_interchange): Renamed lst_interchange_select_outer.
438         Reimplemented.
439         (scop_do_interchange): Update use of lst_interchange_select_outer.
440
441         * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
442         * gcc.dg/graphite/block-0.c: Un-XFAILed.
443         * gcc.dg/graphite/pr42211.c: New.
444         * gfortran.dg/graphite/pr42334.f90: New.
445
446 2009-12-14  Sebastian Pop  <sebastian.pop@amd.com>
447
448         PR middle-end/42181
449         * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
450         carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
451
452         * gfortran.dg/graphite/pr42181.f90: New.
453
454 2009-12-12  Sebastian Pop  <sebpop@gmail.com>
455
456         PR middle-end/42284
457         * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
458         insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
459         (detect_commutative_reduction_arg): Simplified.
460         (detect_commutative_reduction): Early return when the argument of
461         the close phi is not of an SSA_NAME.
462
463         * gcc.dg/graphite/pr42284.c: New.
464
465 2009-12-11  Alexander Monakov  <amonakov@ispras.ru>
466
467         * dbgcnt.def (graphite_scop): New counter.
468         * graphite.c: Include dbgcnt.h
469         (graphite_transform_loops): Use new counter to limit transformations.
470
471 2009-12-08  Sebastian Pop  <sebpop@gmail.com>
472
473         PR middle-end/42285
474         * graphite-scop-detection.c (graphite_can_represent_init): Also
475         handle more complex MULT_EXPRs containing parameters by recursion
476         on the structure.
477
478         * gfortran.dg/graphite/pr42285.f90: New.
479
480 2009-12-01  Tobias Grosser  <grosser@fim.uni-passau.de>
481
482         * g++.dg/graphite/pr42130.C: Fix type.
483
484 2009-11-29  Alexander Monakov <amonakov@gcc.gnu.org>
485
486         * g++.dg/graphite/pr42130.C: Correct testcase.
487
488 2009-11-28 Tobias Grosser  <grosser@fim.uni-passau.de>
489
490         * Merge from mainline (154493:154734).
491
492 2009-11-28 Tobias Grosser  <grosser@fim.uni-passau.de>
493
494         * Merge from mainline (151362:154491).
495
496 2009-11-24  Tobias Grosser  <grosser@fim.uni-passau.de>
497
498         * graphite-clast-to-gimple.c (try_mark_loop_parallel,
499         graphite_create_new_loop_guard, translate_clast_for): Fix comments.
500
501 2009-11-23  Tobias Grosser  <grosser@fim.uni-passau.de>
502
503         PR middle-end/42130
504         * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
505         translate_clast_for_loop): New.
506         (translate_clast_for): Add a condition around the loop, to do not
507         execute loops with zero iterations.
508         * g++.dg/graphite/pr42130.C: New.
509         * gcc.dg/graphite/pr35356-2.c: Adapt.
510
511 2009-11-23  Tobias Grosser  <grosser@fim.uni-passau.de>
512
513         * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
514         (translate_clast_for, translate_clast_guard, translate_clast, gloog):
515         Remove context_loop and level.
516
517 2009-11-23  Tobias Grosser  <grosser@fim.uni-passau.de>
518
519         * graphite-clast-to-gimple.c (translate_clast_user,
520         translate_clast_for, translate_clast_guard): Simplify and move common
521         elements to translate_clast().
522         (translate_clast): Simplify and get common elements.
523
524 2009-11-23  Tobias Grosser  <grosser@fim.uni-passau.de>
525
526         * graphite-clast-to-gimple.c (translate_clast_user,
527         translate_clast_for, translate_clast_guard): Split out of
528         translate_clast.
529
530 2009-11-21  Tobias Grosser  <grosser@fim.uni-passau.de>
531
532         * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
533         clast_name_to_index, save_clast_name_index, debug_clast_name_index,
534         debug_clast_name_indexes_1, debug_clast_name_indexes,
535         clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
536         (clast_name_to_gcc, clast_to_gcc_expression,
537         clast_to_gcc_expression_red, gcc_type_for_clast_expr,
538         gcc_type_for_clast_eq, graphite_translate_clast_equation,
539         graphite_create_guard_cond_expr, graphite_create_new_loop,
540         translate_clast): Add params_index.
541         (initialize_cloog_names): Create parameter strings from scratch, do
542         not reference other strings.
543         (create_params_index): New.
544         (gloog): Initialize params_index.
545         * graphite-scop-detection (free_scops_1): Removed.
546         (limit_scops): Use normal free_scops.
547         * graphite-sese-to-poly.c (save_var_names): Removed.
548         (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
549         and SESE_PARAMS_INDEX.
550         * sese.c (new_sese, free_sese): Dito.
551         * sese.h (struct sese): Remove params_index, params_names.
552         (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
553
554 2009-11-20  Sebastian Pop  <sebastian.pop@amd.com>
555
556         Revert the following patch from 2009-09-14:
557         * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
558         tree-scalar-evolution.h, and then tree-data-ref.h.
559         * graphite-clast-to-gimple.c: Same.
560         * graphite-dependences.c: Same.
561         * graphite-interchange.c: Same.
562         * graphite-poly.c: Same.
563         * graphite-scop-detection.c: Same.
564         * graphite-sese-to-poly.c: Same.
565         * graphite.c: Same.
566         * lambda-code.c: Same.
567         * matrix-reorg.c: Same.
568         * tree-data-ref.c: Same.
569         * tree-if-conv.c: Same.
570         * tree-loop-distribu: Same.: Same.
571         * tree-loop-linear.c: Same.
572         * tree-parloops.c: Same.
573         * tree-predcom.c: Same.
574         * tree-vect-patterns.c: Same.
575
576 2009-11-20  Sebastian Pop  <sebastian.pop@amd.com>
577
578         Revert patch from 2009-09-14.
579         * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
580         passes at -O1 and below.
581
582 2009-11-18  Sebastian Pop  <sebastian.pop@amd.com>
583
584         PR middle-end/40281
585         * gcc.dg/graphite/pr40281.c: New.
586
587         * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
588         evolutions should not variate in inner loops.
589
590 2009-11-18  Sebastian Pop  <sebastian.pop@amd.com>
591
592         PR middle-end/42050
593         * gfortran.dg/graphite/pr42050.f90: New.
594
595 2009-11-18  Sebastian Pop  <sebastian.pop@amd.com>
596
597         * graphite-interchange.c (memory_strides_in_loop_depth): New.
598         (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
599
600 2009-11-18  Sebastian Pop  <sebastian.pop@amd.com>
601
602         * graphite-blocking.c (scop_do_block): New.
603         * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
604         * graphite-poly.h (scop_do_block): Declared.
605
606 2009-11-18  Sebastian Pop  <sebastian.pop@amd.com>
607
608         * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
609         depth is the loop nesting depth in the LST.  Call psct_dynamic_dim
610         to transform depth into the time_depth before calling
611         pbb_number_of_iterations_at_time.
612         (lst_do_strip_mine): Use a scalar variable instead of recomputing
613         lst_depth.
614
615 2009-11-18  Sebastian Pop  <sebastian.pop@amd.com>
616
617         Reverted the patch for "scattering permutations" from 2009-10-28.
618
619         * graphite-poly.c (print_permutation): New.
620         (debug_permutation): New.
621         (new_poly_bb): Initialize PBB_PERMUTATION.
622         (free_poly_bb): Free PBB_PERMUTATION.
623         * graphite-poly.h (pbb_permutation_elt_p): Declared.
624         (struct pbb_permutation_elt): New.
625         (PBB_PERMUTATION_ELT_STRIDE): New.
626         (PBB_PERMUTATION_ELT_STRIDED_P): New.
627         (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
628         (new_pbb_permutation_elt): New.
629         (pbb_permutation_elt_free): New.
630         (struct poly_bb): Add field permutation.
631         (PBB_PERMUTATION): New.
632         (print_permutation): Declared.
633         (debug_permutation): Declared.
634
635 2009-11-04  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
636
637         * graphite-interchange.c (build_partial_difference): New.
638         (memory_stride_in_loop): Refactored the computation of
639         equality constraints into build_partial_difference function.
640         Added support for debugging stride computations.
641
642 2009-11-03  Sebastian Pop  <sebastian.pop@amd.com>
643
644         * graphite-clast-to-gimple.c (gloog): Free if_region,
645         if_region->true_region, and if_region->region.
646         * sese.c (if_region_set_false_region): Free if_region->false_region.
647         (create_if_region_on_edge): Do not use GGC_NEW.
648         (move_sese_in_condition): Remove useless initialization.
649
650 2009-11-03  Sebastian Pop  <sebastian.pop@amd.com>
651
652         * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
653         for the loops created by the loop distribution.  Do not modify the
654         input LSTs.
655         (lst_try_interchange_loops): Same.  Use a temporary LST for the
656         transformed schedule.  Call lst_update_scattering before data
657         dependence analysis.
658         (lst_try_interchange): Pass an extra parameter INDEX.
659         (lst_do_interchange_1): New.
660         (lst_do_interchange): Call lst_do_interchange_1.
661         (scop_do_interchange): Call lst_update_scattering.
662         * graphite-poly.c (apply_poly_transforms): Do not call
663         lst_update_scattering.
664         * graphite-poly.h (lst_pred): New.
665         (lst_succ): New.
666         (lst_find_first_pbb): Return NULL when not found.
667         (lst_empty_p): New.
668         (lst_insert_in_sequence): Allow LST1 to be NULL.
669         (lst_replace): New.
670         (lst_substitute_3): New.
671         * gcc.dg/graphite/interchange-1.c: XFail.
672         * gcc.dg/graphite/interchange-8.c: XFail.
673         * gcc.dg/graphite/interchange-11.c: XFail.
674
675 2009-10-30  Sebastian Pop  <sebastian.pop@amd.com>
676
677         * graphite-interchange.c (lst_perfectly_nested_p): New.
678         (lst_perfect_nestify): New.
679         (lst_try_interchange_loops): Call store_lst_schedule,
680         lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
681         (scop_do_interchange): Avoid redundant legality test.
682         Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
683         * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
684         * graphite-poly.h (psct_static_dim): New.
685         (lst_dewey_number_at_depth): New.
686         (lst_find_pbb): Restructured.
687         (lst_find_first_pbb): Restructured.
688         (lst_find_last_pbb): New.
689         (lst_contains_p): New.
690         (lst_contains_pbb): New.
691         (lst_create_nest): New.
692         (lst_remove_from_sequence): New.
693         (pbb_update_scattering): New.
694         (lst_update_scattering_under): New.
695         (lst_update_scattering_seq): New.
696         (lst_update_scattering): New.
697         (lst_insert_in_sequence): New.
698         (lst_distribute_lst): New.
699         (lst_remove_all_before_including_pbb): New.
700         (lst_remove_all_before_excluding_pbb): New.
701
702 2009-10-30  Sebastian Pop  <sebastian.pop@amd.com>
703
704         * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
705         get_loop_exit_edges.
706
707 2009-10-30  Sebastian Pop  <sebastian.pop@amd.com>
708
709         * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
710
711 2009-10-28  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
712
713         * graphite-poly.c (print_permutation): New.
714         (debug_permutation): New.
715         (new_poly_bb): Initialize PBB_PERMUTATION.
716         (free_poly_bb): Free PBB_PERMUTATION.
717         * graphite-poly.h (pbb_permutation_elt_p): Declared.
718         (struct pbb_permutation_elt): New.
719         (PBB_PERMUTATION_ELT_STRIDE): New.
720         (PBB_PERMUTATION_ELT_STRIDED_P): New.
721         (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
722         (new_pbb_permutation_elt): New.
723         (pbb_permutation_elt_free): New.
724         (struct poly_bb): Add field permutation.
725         (PBB_PERMUTATION): New.
726         (print_permutation): Declared.
727         (debug_permutation): Declared.
728
729 2009-10-26  Sebastian Pop  <sebastian.pop@amd.com>
730
731         * graphite-clast-to-gimple.c (gloog): Do not call
732         sese_reset_aux_in_loops.
733         * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
734         extra argument for domains.  Do not use loop->aux.
735         (build_scop_iteration_domain): Initialize and free domains, pass it
736         to build_loop_iteration_domains and extract the information from
737         domains.  Do not use loop->aux.
738         * sese.c (sese_reset_aux_in_loops): Removed.
739         * sese.h (sese_reset_aux_in_loops): Removed.
740
741 2009-10-26  Sebastian Pop  <sebastian.pop@amd.com>
742
743         * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
744         (dependency_in_loop_p): Same.
745         (translate_clast): Do not use loop->aux.  Initialize
746         loop->can_be_parallel.
747         (mark_loops_parallel): Removed.
748         * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
749         * graphite.c (free_aux_in_new_loops): Removed.
750         (graphite_finalize): Do not call free_aux_in_new_loops.
751         (graphite_transform_loops): Do not call mark_loops_parallel.
752
753 2009-10-26  Li Feng  <nemokingdom@gmail.com>
754
755         * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
756         (translate_clast): Pass an extra parameter LEVEL.
757         Call get_scattering_level.
758         * graphite-clast-to-gimple.h (get_scattering_level): New.
759
760 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
761
762         * cfgloop.c (alloc_loop): Initialize loop->single_iv.
763         * cfgloop.h (struct loop): New field single_iv.
764
765         * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
766         loop->aux anymore: use loop->single_iv.
767         (graphite_loop_normal_form): Moved...
768         (build_graphite_loop_normal_form): Removed.
769         (gloog): Do not call build_graphite_loop_normal_form.
770         (free_aux_in_new_loops): Moved...
771         (mark_loops_parallel): Restructure.
772         * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
773         * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
774         (scop_canonicalize_loops): New.
775         (build_poly_scop): Call scop_canonicalize_loops.
776         * graphite.c (free_aux_in_new_loops): ...here.
777
778 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
779
780         * g++.dg/graphite/graphite.exp: Add the same rules as in
781         gcc.dg/graphite/graphite.exp.
782
783 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
784
785         * g++.dg/graphite/id-1.C: New.
786
787 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
788
789         * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
790         argument base_name.
791         (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
792         (rewrite_phi_out_of_ssa): Same.
793         (rewrite_cross_bb_scalar_deps): Same.
794         (translate_scalar_reduction_to_array): Same.
795
796 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
797
798         * graphite-sese-to-poly.c (build_scop_drs): Disable call to
799         dump_alias_graphs.
800
801 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
802
803         * graphite-sese-to-poly.c (dump_alias_graphs): New.
804         (build_scop_drs): Call dump_alias_graphs.
805
806 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
807
808         * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
809         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
810         (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
811         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
812         * graphite-poly.h (free_lst): New.
813         (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
814         (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
815
816 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
817
818         * graphite-poly.h (struct scop): Add a field saved_schedule.
819         (SCOP_SAVED_SCHEDULE): New.
820         (store_lst_schedule): New.
821         (restore_lst_schedule): New.
822         (store_scattering): Call store_lst_schedule.
823         (restore_scattering): Call restore_lst_schedule.
824
825 2009-10-20  Sebastian Pop  <sebastian.pop@amd.com>
826
827         * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
828         (pdr_add_alias_set): Same.
829         (build_poly_dr): Same.
830         (build_alias_set_optimal_p): Same.
831         (build_base_obj_set_for_drs): Same.  Do not store the result of
832         graphds_dfs.
833
834 2009-10-20  Sebastian Pop  <sebastian.pop@amd.com>
835
836         * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
837         all_components_are_cliques to 1.
838
839 2009-10-20  Li Feng  <nemokingdom@gmail.com>
840
841         * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
842         the new structure.
843         (pdr_add_alias_set): Update retrieving alias_set_num.
844         (build_poly_dr): Update retrieving dr_base_object_set.
845         (partition_drs_to_sets): Remove.
846         (build_alias_set_optimal_p): New.
847         (build_alias_set_for_drs): Rename.
848         (build_scop_drs): Update.
849         * graphite-sese-to-poly.h (struct base_alias_pair): New.
850         (ALIAS_SET_INDEX): Remove.
851         (BASE_OBJECT_SET_INDEX): Remove.
852
853 2009-10-20  Sebastian Pop  <sebastian.pop@amd.com>
854
855         * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
856
857 2009-10-20  Sebastian Pop  <sebastian.pop@amd.com>
858
859         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
860         loop upper bounds for 1-element arrays at end of structures.
861         * tree-flow.h (array_at_struct_end_p): Declared.
862         * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
863
864 2009-10-20  Sebastian Pop  <sebastian.pop@amd.com>
865
866         * g++.dg/graphite/pr41305.C: New.
867
868 2009-10-20  Alexander Monakov  <amonakov@ispras.ru>
869
870         * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
871         construction of parameter constraints from loop iteration analysis.
872         * gcc.dg/graphite/run-id-2.c: New test.
873
874 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
875
876         * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
877         and new_cstr.
878
879 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
880
881         * graphite-dependences.c (dependence_polyhedron_1): Remove
882         unused gdim dimensions from the DDR polyhedron.
883
884 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
885
886         * graphite-dependences.c (pddr_transformed_scattering): New.
887         (dot_original_deps_stmt_1): New.
888         (dot_transformed_deps_stmt_1): New.
889         (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
890         dot_transformed_deps_stmt_1.
891         (dot_original_deps): New.
892         (dot_transformed_deps): New.
893         (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
894
895 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
896
897         * graphite-dependences.c (reduction_dr_1): Remove wrong
898         assert: reduction BBs can have multiple reduction writes
899         to memory.  interchange-3.f90 is an example.
900
901 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
902
903         * gfortran.dg/graphite/interchange-3.f90: New.
904
905 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
906
907         * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
908
909 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
910
911         * graphite-dependences.c (dependence_polyhedron_1): Add the
912         context to the dependence polyhedron.
913
914 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
915
916         * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
917         PBB_PDR_DUPLICATES_REMOVED.
918         (new_poly_bb): Same.
919
920 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
921
922         * graphite-sese-to-poly.c (find_scop_parameters): Initialize
923         SCOP_CONTEXT.
924         (build_loop_iteration_domains): Extract bounds on parameters
925         based on the data size.
926         (build_scop_context): Do not initialize SCOP_CONTEXT;
927         add new constraints.
928
929 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
930
931         * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
932         * graphite-ppl.h (graphite-ppl.h): Declared.
933
934 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
935
936         * graphite-ppl.c (ppl_print_linear_expr): New.
937         (debug_ppl_linear_expr): New.
938         * graphite-ppl.h (ppl_print_linear_expr): Declared.
939         (debug_ppl_linear_expr): Declared.
940
941 2009-10-16  Sebastian Pop  <sebastian.pop@amd.com>
942
943         * graphite-interchange.c: Fix comments.
944         * gcc.dg/graphite/block-1.c: Fix comments.
945
946 2009-10-16  Sebastian Pop  <sebastian.pop@amd.com>
947
948         * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
949         * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
950
951 2009-10-16  Sebastian Pop  <sebastian.pop@amd.com>
952
953         Reapply the patch from Alexander Monakov that disappeared during
954         the last merges from trunk.
955
956         2009-09-16  Alexander Monakov  <amonakov@ispras.ru>
957
958         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
959         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
960
961 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
962
963         * graphite-interchange.c (memory_stride_in_loop): The depth
964         argument corresponds to a dynamic time dimension, so use
965         psct_dynamic_dim to refer to the transformed scattering dimension.
966
967 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
968
969         * graphite-interchange.c (memory_stride_in_loop): Fix comments.
970
971 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
972
973         * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
974         root of the LST.
975         * graphite-interchange.c (lst_do_interchange): Avoid interchanging
976         the root of the LST.
977         * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
978         fake loop.
979         (print_lst): Print the root of LST in a different format.
980         * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
981
982 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
983
984         * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
985
986 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
987
988         * doc/passes.texi: Document the Graphite infrastructure.
989
990 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
991
992         * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
993         (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
994         and check the SSA representation.
995
996         * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
997
998 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
999
1000         * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
1001
1002 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
1003
1004         * gcc.dg/graphite/interchange-11.c: New.
1005
1006 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
1007
1008         * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
1009
1010 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
1011
1012         * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1013         Add -fno-loop-strip-mine and -fno-loop-interchange.
1014         (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
1015         -fno-loop-strip-mine.
1016         * gfortran.dg/graphite/graphite.exp: Same.
1017
1018 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
1019
1020         * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1021         Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
1022         (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
1023         DEFAULT_FLAGS_GRAPHITE_IDENTITY.
1024         (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
1025         DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
1026         (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
1027         DEFAULT_FLAGS_GRAPHITE_SCOP.
1028         (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
1029         (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
1030
1031 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
1032
1033         * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
1034
1035 2009-10-14  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
1036             Sebastian Pop  <sebastian.pop@amd.com>
1037
1038         * graphite-interchange.c (build_linearized_memory_access): Pass an
1039         offset as parameter.
1040         (memory_stride_in_loop): Include transform scattering in the
1041         access functions to be able to querry the strides in the
1042         transformed loops.
1043         (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
1044         not the psct_iterator_dim.
1045
1046 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
1047
1048         * graphite-blocking.c (pbb_do_strip_mine): Removed.
1049         (lst_do_strip_mine_loop): New.
1050         (lst_do_strip_mine): New.
1051         (scop_do_strip_mine): Call lst_do_strip_mine.
1052         * graphite-poly.h (lst_add_loop_under_loop): New.
1053         (lst_find_first_pbb): New.
1054
1055 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
1056
1057         * graphite-poly.c (loop_to_lst): Fix LST creation.
1058
1059 2009-10-14  Tobias Grosser  <grosser@fim.uni-passau.de>
1060
1061         * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
1062         sizeof(unsigned long) to make it run on 32bit systems.
1063
1064 2009-10-14  Tobias Grosser  <grosser@fim.uni-passau.de>
1065
1066         * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
1067         SEGFAULT on 32bit.
1068
1069 2009-10-14  Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1070
1071         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
1072         Comment.
1073         (write_alias_graph_to_ascii_dot): New.
1074         (write_alias_graph_to_ascii_ecc): Ditto.
1075         (partition_drs_to_sets): Add testing of optimality of current method
1076         which assigns alias numbers according to DFS Comopnent number.  used
1077         as heuristic for the upcoming ECC algorithm.
1078         (build_scop_drs): Write to file also with the ecc and dot format.
1079
1080 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
1081
1082         * gfortran.dg/graphite/interchange-1.f: XFail.
1083
1084 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
1085
1086         * graphite.c (graphite_initialize): Do not handle functions with
1087         more than 100 basic blocks.
1088
1089 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
1090
1091         * graphite-blocking.c (pbb_do_strip_mine): Use
1092         PARAM_LOOP_BLOCK_TILE_SIZE.
1093
1094 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
1095
1096         * graphite-poly.c (dot_lst_1): New.
1097         (dot_lst): New.
1098         * graphite-poly.h (dot_lst): Declared.
1099
1100 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
1101
1102         * graphite-dependences.c (dot_deps_stmt_1): New.
1103         (dot_deps_stmt): New.
1104         * graphite-dependences.h (dot_deps_stmt): Declared.
1105
1106 2009-10-09  Sebastian Pop  <sebastian.pop@amd.com>
1107
1108         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
1109         not replace cross BB scalar dependences ending on PHI nodes.
1110         (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
1111
1112 2009-10-09  Sebastian Pop  <sebastian.pop@amd.com>
1113
1114         * graphite-poly.c (apply_poly_transforms): Implement the high
1115         level driver for flag_loop_block.
1116         * opts.c (decode_options): Enable flag_loop_block at -O2.
1117         * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
1118         flag_loop_block.
1119
1120         * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
1121         -floop-block.
1122         * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1123         Add -floop-block.
1124
1125 2009-10-09  Sebastian Pop  <sebastian.pop@amd.com>
1126
1127         * graphite-poly.h (lst_find_pbb): New.
1128         (find_lst_loop): New.
1129
1130 2009-10-09  Sebastian Pop  <sebastian.pop@amd.com>
1131
1132         * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
1133         * graphite-poly.h (struct scop): Remove dep_graph field.
1134         (SCOP_DEP_GRAPH): Removed.
1135
1136 2009-10-09  Sebastian Pop  <sebastian.pop@amd.com>
1137
1138         * graphite-poly.h (copy_lst): Do full copy of LST.
1139
1140 2009-10-07  Sebastian Pop  <sebastian.pop@amd.com>
1141
1142         * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
1143         when the loop stride is zero.
1144
1145         * gcc.dg/graphite/id-16.c: New.
1146
1147 2009-10-06  Sebastian Pop  <sebastian.pop@amd.com>
1148
1149         * graphite-dependences.c (reduction_dr_1): New.
1150         (reduction_dr_p): New.
1151         (graphite_legal_transform_dr): Call reduction_dr_p.
1152         (reduction_ddr): Renamed reduction_ddr_p.
1153         * graphite-poly.h (same_pdr_p): New.
1154         (number_of_write_pdrs): New.
1155         * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
1156         (split_reduction_stmt): Do not split reduction statements
1157         when there are no writes to memory.
1158         (translate_scalar_reduction_to_array_for_stmt): Insert the
1159         memory reduction statement just after the scalar reduction statement.
1160
1161         * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
1162         Un-XFAIL-ed.
1163         * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
1164         * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
1165
1166 2009-10-06  Sebastian Pop  <sebastian.pop@amd.com>
1167
1168         * graphite-interchange.c (lst_apply_interchange): New.
1169         (lst_interchange_profitable_p): New.
1170         (lst_try_interchange_loops): New.
1171         (lst_try_interchange): New.
1172         (lst_do_interchange): New.
1173         (pbb_do_interchange): Removed.
1174         (scop_do_interchange): Call lst_do_interchange.
1175
1176 2009-10-06  Sebastian Pop  <sebastian.pop@amd.com>
1177
1178         * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
1179         SCOP_TRANSFORMED_SCHEDULE.
1180         (loop_to_lst): New.
1181         (scop_to_lst): New.
1182         (print_lst): New.
1183         (debug_lst): New.
1184         * graphite-poly.h (lst_p): New.
1185         (struct lst): New.
1186         (LST_LOOP_P): New.
1187         (LST_LOOP_FATHER): New.
1188         (LST_PBB): New.
1189         (LST_SEQ): New.
1190         (scop_to_lst): Declared.
1191         (print_lst): Declared.
1192         (debug_lst): Declared.
1193         (new_lst_loop): New.
1194         (new_lst_stmt): New.
1195         (copy_lst): New.
1196         (lst_depth): New.
1197         (lst_dewey_number): New.
1198         (struct scop): Add original_schedule and transformed_schedule fields.
1199         (SCOP_ORIGINAL_SCHEDULE): New.
1200         (SCOP_TRANSFORMED_SCHEDULE): New.
1201         * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
1202
1203 2009-10-05  Sebastian Pop  <sebastian.pop@amd.com>
1204
1205         * graphite-dependences.c (reduction_ddr): New.
1206         (graphite_legal_transform_bb): Call reduction_ddr.
1207         * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
1208         Initialize PBB_IS_REDUCTION.
1209         * graphite-poly.h (struct poly_bb): New bool field is_reduction.
1210         (PBB_IS_REDUCTION): New.
1211         (new_poly_bb): Update declaration.
1212         * graphite-scop-detection.h (build_scop_bbs): Removed.
1213         (nb_reductions_in_loop): Removed.
1214         * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
1215         parameter for reductions.
1216         (try_generate_gimple_bb): Update call to new_poly_bb.
1217         (build_scop_bbs_1): Same.
1218         (build_scop_bbs): Same.
1219         (gsi_for_phi_node): New.
1220         (scalar_close_phi_node_p): Remove gcc_assert.
1221         (split_reduction_stmt): New.
1222         (is_reduction_operation_p): New.
1223         (phi_contains_arg): New.
1224         (follow_ssa_with_commutative_ops): New.
1225         (detect_commutative_reduction_arg): New.
1226         (detect_commutative_reduction_assign): New.
1227         (follow_inital_value_to_phi): New.
1228         (edge_initial_value_for_loop_phi): New.
1229         (initial_value_for_loop_phi): New.
1230         (detect_commutative_reduction): New.
1231         (translate_scalar_reduction_to_array_for_stmt): New.
1232         (insert_copyout): New.
1233         (insert_copyin): New.
1234         (translate_scalar_reduction_to_array): New.
1235         (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
1236         (rewrite_commutative_reductions_out_of_ssa_loop): New.
1237         (rewrite_commutative_reductions_out_of_ssa): New.
1238         (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
1239         * sese.h (split_region_for_bb): New.
1240
1241         * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
1242         * gcc.dg/graphite/interchange-1.c: Fix format.
1243         * gcc.dg/graphite/interchange-10.c: New.
1244
1245 2009-10-05  Sebastian Pop  <sebastian.pop@amd.com>
1246
1247         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
1248         buggy assert.
1249
1250 2009-10-05  Sebastian Pop  <sebastian.pop@amd.com>
1251
1252         * graphite-sese-to-poly.c (scev_analyzable_p): New.
1253         (rewrite_cross_bb_scalar_dependence): New.
1254         (rewrite_cross_bb_scalar_deps): New.
1255         (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
1256         Call rewrite_cross_bb_scalar_deps.
1257
1258 2009-10-05  Sebastian Pop  <sebastian.pop@amd.com>
1259
1260         * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
1261         (insert_out_of_ssa_copy): Directly use gsi_after_labels and
1262         gsi_for_stmt.
1263
1264 2009-10-05  Sebastian Pop  <sebastian.pop@amd.com>
1265
1266         * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
1267         * graphite-interchange.c (pbb_do_interchange): Same.
1268         * graphite-poly.c (print_scattering_function): Same.
1269         (debug_pdrs): Same.
1270         * graphite-poly.h (pbb_loop): New.
1271         * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
1272
1273 2009-09-27  Sebastian Pop  <sebastian.pop@amd.com>
1274
1275         * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
1276
1277 2009-09-27  Sebastian Pop  <sebastian.pop@amd.com>
1278
1279         * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
1280         so don't pass a pointer to it.
1281         (build_alias_set_for_drs): Same.
1282         (build_base_obj_set_for_drs): Same.
1283         (build_scop_drs): Same.
1284
1285 2009-09-26  Li Feng  <nemokingdom@gmail.com>
1286
1287         * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
1288         the alias graph of data references.
1289
1290 2009-09-25  Li Feng  <nemokingdom@gmail.com>
1291
1292         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
1293         (build_scop_drs): When debugging, write the alias graph to file,
1294         otherwise, should be disabled.
1295
1296 2009-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1297
1298         * Merge from mainline (151310:151361).
1299
1300 2009-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1301
1302         * Merge from mainline (151171:151310).
1303
1304 2009-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1305
1306         * Merge from mainline (151171:151806).
1307
1308 2009-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1309
1310         * Revert the last commit.
1311
1312 2009-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1313
1314         * Merge from mainline (151171:151819).
1315
1316 2009-09-17  Sebastian Pop  <sebastian.pop@amd.com>
1317
1318         * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
1319         (is_simple_operand): Remove call to stmt_simple_memref_p.
1320         (stmt_simple_for_scop_p): Update call to is_simple_operand.
1321
1322 2009-09-17  David Edelsohn  <edelsohn@gnu.org>
1323
1324         * gcc.dg/graphite/interchange-mvt.c: New File.
1325         * gcc.dg/graphite/scop-dsyrk.c: New File.
1326         * gcc.dg/graphite/scop-dsyr2k.c: New File.
1327         * gcc.dg/graphite/scop-mvt.c: New File.
1328         * gcc.dg/graphite/scop-sor.c: New File.
1329
1330 2009-09-17 Li Feng  <nemokingdom@gmail.com>
1331
1332         * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
1333         (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
1334         (graphite_carried_dependence_level_k): Ditto.
1335         * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
1336         * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
1337         (new_poly_dr): Adjust declaration.
1338         * graphite-sese-to-poly.c (free_data_refs_aux): New.
1339         (free_gimple_bb): Added free_data_refs_aux.
1340         (build_poly_dr): Add dr_base_object_set.
1341         (partition_drs_to_sets): New.
1342         (dr_same_base_object_p): New.
1343         (build_alias_set_for_drs): New.
1344         (build_base_object_set_for_drs): New.
1345         (build_scop_drs): Add build_base_obj_set_for_drs.
1346         * graphite-sese-to-poly.h: Added #define for alias set number index and
1347         base object set index.
1348         * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
1349         * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
1350
1351 2009-09-16  Alexander Monakov  <amonakov@ispras.ru>
1352
1353         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1354         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
1355
1356 2009-09-14  Sebastian Pop  <sebastian.pop@amd.com>
1357
1358         * graphite-sese-to-poly.c (struct irp_data): Removed.
1359         (idx_record_params): Removed.
1360         (find_params_in_bb): Scan for parameters the access functions; don't
1361         parse the tree representation.
1362
1363 2009-09-14  Sebastian Pop  <sebastian.pop@amd.com>
1364
1365         * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
1366         passes at -O1 and below.
1367
1368 2009-09-14  Sebastian Pop  <sebastian.pop@amd.com>
1369
1370         * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1371         tree-scalar-evolution.h, and then tree-data-ref.h.
1372         * graphite-clast-to-gimple.c: Same.
1373         * graphite-dependences.c: Same.
1374         * graphite-interchange.c: Same.
1375         * graphite-poly.c: Same.
1376         * graphite-scop-detection.c: Same.
1377         * graphite-sese-to-poly.c: Same.
1378         * graphite.c: Same.
1379         * lambda-code.c: Same.
1380         * matrix-reorg.c: Same.
1381         * tree-data-ref.c: Same.
1382         * tree-if-conv.c: Same.
1383         * tree-loop-distribu: Same.: Same.
1384         * tree-loop-linear.c: Same.
1385         * tree-parloops.c: Same.
1386         * tree-predcom.c: Same.
1387         * tree-vect-patterns.c: Same.
1388
1389 2009-09-02  Sebastian Pop  <sebastian.pop@amd.com>
1390
1391         Partially revert the previous patch, except the following.
1392         * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
1393         as parameters the operands of the not expression.
1394
1395 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
1396
1397         * tree-scalar-evolution.c (instantiate_scev_assign): New.
1398         Do not call analyze_scalar_evolution on assignments.
1399         (instantiate_scev_phi): Call analyze_scalar_evolution.
1400         (instantiate_scev_name): Call instantiate_scev_assign and
1401         instantiate_scev_phi.
1402         (instantiate_scev_not): Adapted to pass as parameters the operands
1403         of the not expression.
1404
1405 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
1406
1407         * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
1408         to pass as parameters the operands of the binary expression.
1409
1410 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
1411
1412         * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
1413         instantiate_scev_not.  Handle NEGATE_EXPR.
1414         (instantiate_scev_r): Handle NEGATE_EXPR.
1415
1416 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
1417
1418         * tree-scalar-evolution.c (instantiate_scev_1): Renamed
1419         instantiate_scev_r.
1420         (instantiate_scev_r): Move code in instantiate_scev_2
1421         and instantiate_scev_1.
1422
1423 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
1424
1425         * tree-scalar-evolution.c (instantiate_scev_3): New.
1426         (instantiate_scev_1): Move code in instantiate_scev_3.
1427
1428 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
1429
1430         * tree-scalar-evolution.c (instantiate_scev_poly): New.
1431         (instantiate_scev_1): Move code in instantiate_scev_poly.
1432
1433 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
1434
1435         * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
1436         (instantiate_scev_1): Move code in instantiate_scev_bitnot.
1437
1438 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
1439
1440         * tree-scalar-evolution.c (instantiate_scev_convert): New.
1441         (instantiate_scev_1): Move code in instantiate_scev_convert.
1442
1443 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
1444
1445         * tree-scalar-evolution.c (instantiate_scev_binary): New.
1446         (instantiate_scev_1): Move code in instantiate_scev_binary.
1447
1448 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
1449
1450         * tree-scalar-evolution.c (instantiate_scev_name): New.
1451         (instantiate_scev_1): Move code in instantiate_scev_name.
1452
1453 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
1454
1455         * Merge from mainline (150992:151171).
1456
1457 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
1458
1459         * opts.c (decode_options): Enable flag_loop_interchange at -O2.
1460
1461 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
1462
1463         * graphite-dependences.c (graphite_legal_transform_bb): Call
1464         pbb_remove_duplicate_pdrs.
1465         * graphite-poly.c (can_collapse_pdr): Removed.
1466         (pdr_find_duplicate): Removed.
1467         (can_collapse_pdrs): New.
1468         (pbb_remove_duplicate_pdrs): New.
1469         (new_poly_dr): Do not look for duplicates.
1470         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
1471         (PBB_PDR_DUPLICATES_REMOVED): New.
1472         (pbb_remove_duplicate_pdrs): Declared.
1473
1474 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
1475
1476         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
1477         the strides by multiplying by PDR_NB_REFS.
1478         * graphite-poly.c (can_collapse_pdr): New.
1479         (pdr_find_duplicate): New.
1480         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
1481         Initialize PDR_NB_REFS.
1482         * graphite-poly.h (struct poly_dr): Add field nb_refs.
1483         (PDR_NB_REFS): New.
1484         (new_poly_dr): Number of subscripts is a graphite_dim_t.
1485
1486 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
1487
1488         Revert one of the previous commits:
1489         * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1490         the computation of symmetric data dependence relations.
1491         (dependency_between_pbbs_p): Same.
1492
1493 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
1494
1495         PR middle-end/40965
1496         * graphite-poly.c (apply_poly_transforms): Remove legality test before
1497         any transform.
1498
1499 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
1500
1501         * graphite-dependences.c (pddr_original_scattering): Return NULL
1502         for read-read dependence relations.
1503         * graphite-poly.h (enum poly_dr_type): Fix comment.
1504         (pdr_read_p): New.
1505         (pdr_write_p): New.
1506         (pdr_may_write_p): New.
1507
1508 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
1509
1510         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
1511         (struct poly_dr): Same.
1512         (new_poly_dr): Same.
1513         * graphite-poly.c (new_poly_dr): Same.
1514
1515 2009-08-25  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
1516             Sebastian Pop  <sebastian.pop@amd.com>
1517
1518         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
1519         pbb_strip_mine_time_depth.  Changed the implementation so that
1520         transformation is expressed as a transformation on
1521         time (scatttering) dimensions.  Also, ensures that the 2d+1
1522         scheduling format is preserved.
1523         (pbb_strip_mine_profitable_p): Profitability is based on the
1524         iteration number of a given time (scattering) dimension,
1525         and not on a original loop depth dimension.
1526         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
1527         (pbb_do_strip_mine): Call psct_dynamic_dim.
1528         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
1529         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
1530         (pbb_nb_dynamic_scattering_transform): New.
1531         (psct_dynamic_dim): New.
1532
1533 2009-08-25  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
1534
1535         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1536         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1537         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
1538         * graphite-interchange.c (build_linearized_memory_access): Same.
1539         (memory_stride_in_loop): Same.
1540
1541 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
1542
1543         * graphite-dependences.c (pddr_original_scattering): New.
1544         (graphite_legal_transform_dr): Call pddr_original_scattering.
1545         (dot_deps_1): New.
1546         (dot_deps): New.
1547         * graphite-dependences.h (dot_deps): Declared.
1548         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
1549         (print_pdr): Print PDR_ID.
1550         * graphite-poly.h (struct poly_dr): Add field id.
1551         (PDR_ID): New.
1552         (pbb_index): New.
1553         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
1554
1555 2009-08-22  Sebastian Pop  <sebastian.pop@amd.com>
1556
1557         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
1558         not delete the original dependence relation.
1559
1560 2009-08-21  Sebastian Pop  <sebastian.pop@amd.com>
1561
1562         * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1563         the computation of symmetric data dependence relations.
1564         (dependency_between_pbbs_p): Same.
1565
1566 2009-08-21  Sebastian Pop  <sebastian.pop@amd.com>
1567
1568         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
1569         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
1570         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
1571         (free_poly_ddr): New.
1572         (pddr_is_empty): New.
1573         (dependence_polyhedron_1): Now returns a poly_ddr_p.
1574         (dependence_polyhedron): Same.  Remove useless gcc_assert.
1575         Remove fprintfs.
1576         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
1577         (graphite_carried_dependence_level_k): Call pddr_is_empty.
1578         * graphite-dependences.h (enum poly_dependence_kind): New.
1579         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
1580         (PDRP_SOURCE): Renamed PDDR_SOURCE.
1581         (PDRP_SINK): Renamed PDDR_SINK.
1582         (PDRP_DDP): Renamed PDDR_DDP.
1583         (PDDR_KIND): New.
1584         (free_poly_ddr): Declared.
1585         * graphite-poly.c (new_scop): Use the new hash function names.
1586         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
1587         into original_pddrs.
1588         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
1589
1590 2009-08-21  Sebastian Pop  <sebastian.pop@amd.com>
1591
1592         * Merge from mainline (150764:150992).
1593
1594 2009-08-18  Sebastian Pop  <sebastian.pop@amd.com>
1595
1596         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
1597         bounds with LT_EXPR to make niter analysis more precise on code
1598         generated by Graphite.
1599
1600 2009-08-18  Sebastian Pop  <sebastian.pop@amd.com>
1601
1602         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
1603         (graphite_legal_transform_bb): Same.
1604         (poly_drs_may_alias_p): Same.
1605
1606 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
1607
1608         PR middle-end/40981
1609         * graphite-ppl.c (ppl_max_for_le): Correct the use of
1610         ppl_Pointset_Powerset_C_Polyhedron_maximize.
1611
1612 2009-08-13  Sebastian Pop  <sebastian.pop@amd.com>
1613
1614         * graphite-poly.c (print_pbb): Print PBB index.
1615
1616 2009-08-13  Sebastian Pop  <sebastian.pop@amd.com>
1617
1618         * Merge from mainline (r150672:150764).
1619
1620 2009-08-13  Sebastian Pop  <sebastian.pop@amd.com>
1621
1622         * graphite-interchange.c (ppl_max_for_le): Moved...
1623         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
1624         * graphite-ppl.c (ppl_max_for_le): ... here.
1625         * graphite-ppl.h (ppl_max_for_le): Declared.
1626
1627 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
1628
1629         * Merge from mainline (r150372:150672).
1630
1631 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1632
1633         PR middle-end/40980
1634         * sese.c (convert_for_phi_arg): New.
1635         (add_guard_exit_phis): Use convert_for_phi_arg.
1636
1637         * gfortran.dg/graphite/id-17.f: New.
1638
1639 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1640
1641         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
1642         unknown subscript upper bounds.
1643
1644         * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
1645
1646 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1647             Pranav Garg  <pranav.garg2107@gmail.com>
1648
1649         * graphite-interchange.c (gather_access_strides): Removed.
1650         (ppl_max_for_le): New.
1651         (build_linearized_memory_access): New.
1652         (memory_stride_in_loop): New.
1653         (pbb_interchange_profitable_p): Reimplemented.
1654         * graphite-ppl.h (ppl_new_id_map): New.
1655         (ppl_interchange): New.
1656
1657         * gcc.dg/graphite/interchange-6.c: XFAILed.
1658
1659 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1660
1661         * graphite-interchange.c (compute_subscript): Removed.
1662         (compute_array_size_cstr): Removed.
1663         (compute_array_size_poly): Removed.
1664         (compute_array_size): Removed.
1665         (gather_access_strides_poly): Removed.
1666         (gather_access_strides): Empty.
1667
1668 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1669
1670         * graphite-dependences.c (dependence_polyhedron_1): Replace
1671         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
1672         (graphite_legal_transform_dr): Same.
1673         (graphite_carried_dependence_level_k): Same.
1674         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
1675         Initialize PDR_NB_SUBSCRIPTS.
1676         (print_pdr_access_layout): Replace pdr_nb_subscripts with
1677         PDR_NB_SUBSCRIPTS.
1678         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
1679         (PDR_NB_SUBSCRIPTS): New.
1680         (pdr_nb_subscripts): Removed.
1681         (pdr_dim): Simplified.
1682         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
1683         with PDR_NB_SUBSCRIPTS.
1684
1685 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1686
1687         * graphite-interchange.c (compute_array_size): Remove use of
1688         PDR_DATA_CONTAINER.
1689         * graphite-poly.c (new_poly_dr): Remove argument data_container.
1690         Do not initialize PDR_DATA_CONTAINER.
1691         (print_pdr): Do not print PDR_DATA_CONTAINER.
1692         * graphite-poly.h (struct poly_dr): Remove data_container field.
1693         (PDR_DATA_CONTAINER): Removed.
1694         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
1695         PDR_DATA_CONTAINER.
1696         (build_poly_dr): Same.
1697
1698 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
1699
1700         * gcc.dg/graphite/interchange-9.c: New.
1701
1702 2009-08-05  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
1703             Sebastian Pop  <sebastian.pop@amd.com>
1704
1705         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
1706         copy of the dependence polyhedron.  Free the temporary objects.
1707         (graphite_carried_dependence_level_k): Free unused objects before
1708         returning.
1709
1710         * gcc.dg/graphite/interchange-1.c: XFAILed.
1711         * gcc.dg/graphite/interchange-2.c: XFAILed.
1712         * gcc.dg/graphite/interchange-3.c: XFAILed.
1713         * gcc.dg/graphite/interchange-4.c: XFAILed.
1714         * gcc.dg/graphite/interchange-7.c: XFAILed.
1715
1716 2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
1717
1718         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
1719         Early return without analyzing the data dependences if no
1720         transform has been done.  Call restore_scattering if the transform
1721         is not legal.
1722         (graphite-interchange.c): Same.
1723         * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
1724         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
1725         (apply_poly_transforms): Do not gcc_assert that
1726         the transform is legal.
1727         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1728         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
1729         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
1730         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1731         * graphite-poly.h (struct poly_scattering): New.
1732         (struct poly_bb): Add original, transformed, and saved fields.
1733         Remove transformed_scattering, original_scattering, nb_local_variables,
1734         and nb_scattering_transform fields.
1735         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
1736         (poly_scattering_new): New.
1737         (poly_scattering_free): New.
1738         (poly_scattering_copy): New.
1739         (store_scattering_pbb): New.
1740         (store_scattering): New.
1741         (restore_scattering_pbb): New.
1742         (restore_scattering): New.
1743         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1744         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
1745
1746 2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
1747
1748         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
1749         (print_scop): Same.
1750
1751 2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
1752
1753         * Makefile.in (graphite.o): Depends on PREDICT_H.
1754         * graphite.c: Include predict.h.
1755         (graphite_finalize): Call tree_estimate_probability.
1756         * predict.c (predict_loops): Do not call scev_initialize and
1757         scev_finalize.
1758         (tree_estimate_probability_bb): New.
1759         (tree_estimate_probability): Do not initialize loops: move that
1760         code to the driver.  Call tree_estimate_probability_bb.
1761         (tree_estimate_probability_driver): New.
1762         (pass_profile): Use tree_estimate_probability_driver.
1763         * predict.h (tree_estimate_probability): Declared.
1764
1765 2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
1766
1767         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
1768         * graphite-dependences.c (graphite_legal_transform): Add time to
1769         TV_GRAPHITE_DATA_DEPS.
1770         (dependency_between_pbbs_p): Same.
1771         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
1772
1773 2009-08-03  Sebastian Pop  <sebastian.pop@amd.com>
1774
1775         * Merge from mainline (r149952:150372).
1776
1777 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1778
1779         * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
1780         * graphite-blocking.c: Same.
1781         * graphite-clast-to-gimple.c: Same.
1782         * graphite-dependences.c: Same.
1783         * graphite-poly.c: Same.
1784         * graphite-poly.h: Same.
1785         * graphite-ppl.c: Same.
1786         * graphite-scop-detection.c: Same.
1787         * graphite-sese-to-poly.c: Same.
1788         * graphite.c: Same.
1789
1790 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1791
1792         * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
1793         (remove_simple_copy_phi): New.
1794         (remove_invariant_phi): New.
1795         (simple_copy_phi_p): New.
1796         (reduction_phi_p): New.
1797         (gsi_for_ssa_name_def): New.
1798         (insert_out_of_ssa_copy): New.
1799         (insert_out_of_ssa_copy_on_edge): New.
1800         (create_zero_dim_array): New.
1801         (scalar_close_phi_node_p): New.
1802         (rewrite_close_phi_out_of_ssa): New.
1803         (rewrite_phi_out_of_ssa): New.
1804         (rewrite_reductions_out_of_ssa): New.
1805         (build_poly_scop): Call rewrite_reductions_out_of_ssa.
1806
1807         * gcc.dg/graphite/id-11.c: New.
1808         * gcc.dg/graphite/id-15.c: New.
1809         * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
1810         * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
1811         * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
1812         * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
1813         * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
1814         * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
1815         * gfortran.dg/graphite/id-13.f: New.
1816         * gfortran.dg/graphite/id-5.f: New.
1817
1818 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1819
1820         * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
1821         check that nb_reductions_in_loop is zero.
1822         * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
1823         reduction phi nodes.
1824         (nb_reductions_in_loop): Removed.
1825         (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
1826         * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
1827         (bb_contains_non_iv_scalar_phi_nodes): Removed.
1828         (scop_contains_non_iv_scalar_phi_nodes): Removed.
1829         (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
1830
1831 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1832
1833         * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
1834         statements that have an empty iteration domain.
1835         * gfortran.dg/graphite/id-16.f: New.
1836
1837 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1838
1839         * tree-scalar-evolution.c (instantiate_scev_1): Return
1840         chrec_dont_know when the result is not above instantiate_below.
1841         * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
1842         * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
1843         the tree has a known scalar evolution.
1844         * gfortran.dg/graphite/id-14.f: New.
1845         * gfortran.dg/graphite/id-15.f: New.
1846
1847 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1848
1849         * sese.c (rename_variables_in_stmt): Pass in an extra parameter
1850         insert_gsi.
1851         (rename_variables): Keep inserting renames after the ones already
1852         inserted.
1853
1854 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1855
1856         * graphite-sese-to-poly.c (compare_bb_depths): New.
1857         (graphite_sort_dominated_info): New.
1858         (build_scop_bbs_1): Call graphite_sort_dominated_info.
1859         (build_scop_scattering): Fix comment.
1860
1861 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1862
1863         * graphite.c (graphite_finalize): Call print_loops instead of
1864         dump_function_to_file.
1865         * gcc.dg/graphite/graphite.exp: Fix formatting.
1866         * gcc.dg/graphite/pr35356-1.c: New.  Look for the number of
1867         loops generated in the graphite output file.
1868         * gcc.dg/graphite/pr35356-2.c: New.
1869         * gcc.dg/graphite/pr35356-3.c: New.  XFAILed for now.
1870         * gfortran.dg/graphite/id-12.f: New.
1871
1872 2009-07-24  Li Feng  <nemokingdom@gmail.com>
1873
1874         * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
1875         Remove 2 XFAIL.
1876
1877 2009-07-24  Li Feng  <nemokingdom@gmail.com>
1878             Tobias Grosser  <grosser@fim.uni-passau.de>
1879
1880         * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
1881         alias set number build alias in ACCESSES polyhedron.
1882         (build_alias_set_for_drs): New.
1883         (build_pbb_drs): Added build_alias_set_for_drs.
1884         * graphite-dependences.c (poly_drs_may_alias_p): New.
1885         (graphite_carried_dependence_level_k): Check alias information
1886         before building polyhedron.
1887
1888 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
1889
1890         * Makefile.in (lambda-code.o): Fix formatting.
1891
1892 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
1893
1894         * Merge from mainline (r149350-149952)
1895
1896 2009-07-18  Tobias Grosser  <grosser@fim.uni-passau.de>
1897
1898         * graphite-poly.c (apply_poly_transforms): Move strip_mine
1899         before interchange to prepare for loop blocking.
1900
1901 2009-07-18  Tobias Grosser  <grosser@fim.uni-passau.de>
1902
1903         * graphite-poly.c (apply_poly_transforms): Add checks after every
1904         transformation.
1905         * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
1906         done in apply_poly_transforms.
1907
1908 2009-07-17  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
1909
1910         * graphite-dependences.c (build_lexicographically_gt_constraint):
1911         Replace RES parameter with *RES.
1912         (dependence_polyhedron_1): Pass an address of the parameter RES
1913         instead of value of RES.
1914
1915 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1916
1917         * graphite.c (graphite_finalize): Fix comment.
1918         (graphite_transform_loops): Reset scev info after code generation
1919         of each scop.
1920
1921 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1922
1923         * graphite.c (graphite_finalize): Call scev_reset.
1924
1925 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1926
1927         * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
1928         GBB_CLOOG_IV_TYPES hash table twice.
1929         * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
1930         (add_condition_to_domain): Clear GMP values.
1931
1932 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1933
1934         * graphite-dependences.c: Fix formatting.
1935         * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
1936         (pbb_number_of_iterations): Free ppl_Linear_Expression.
1937         * graphite-sese-to-poly.c: Fix formatting.
1938         * graphite.c (graphite_transform_loops): Create the hash table
1939         after the early return.
1940
1941 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1942
1943         * gcc.dg/graphite/id-14.c: New.
1944         * gcc.dg/graphite/pr40157.c: New.
1945         * gfortran.dg/graphite/id-11.f: New.
1946
1947 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1948
1949         * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
1950         (build_poly_scop): Return false when there are no pbbs within
1951         loops to avoid to pass to cloog scops with no loops.
1952
1953 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1954
1955         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
1956         useless test "i % 2".
1957         (build_pbb_scattering_polyhedrons): Fix formatting.
1958         (build_poly_dr): Same.
1959         * graphite.c (graphite_transform_loops): Restructure.
1960
1961 2009-07-14  Razya Ladelsky  <razya@il.ibm.com>
1962
1963         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
1964         reduction_list parameter.
1965         (rewrite_all_phi_nodes_with_iv): Same.
1966         (canonicalize_loop_ivs): Same.
1967         * tree-parloops.c (struct brli): Removed.
1968         (build_reduction_list_info): Removed.
1969         (build_new_reduction): New.
1970         (analyze_reduction_list): Removed.
1971         (gather_scalar_reductions): Find reductions instead of phi
1972         nodes that can't be canonicalized.
1973         (try_create_reduction_list): Remove reduction_list parameter.
1974         (gen_parallel_loop): Same.
1975         (parallelize_loops): Remove analyze_reductions variable,
1976         initialization and free.
1977         Change reduction_list htab initialization to reduction_info
1978         elements instead of ssa names.
1979         Call try_create_reduction_list and gen_parallel_loop without
1980         analyzed_reduction argument.
1981         * graphite-clast-to-gimple (graphite_loop_normal_form): Call
1982         canonicalize_loop_ivs with one less argument.
1983         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
1984
1985 2009-07-14  Konrad Trifunovic <konrad.trifunovic@gmail.com>
1986
1987         * graphite-dependences.c (new_poly_dr_pair): New.
1988         (dependence_polyhedron): Renamed into dependence_polyhedron_1.
1989         (new_poly_dr_pair): New.
1990         (eq_poly_dr_pair_p): New.
1991         (hash_poly_dr_pair_p): New.
1992         * graphite-dependences.h (struct poly_dr_pair): New.
1993         (eq_poly_dr_pair_p): Declared.
1994         (hash_poly_dr_pair_p): Declared.
1995         * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
1996         (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
1997         * graphite-poly.h (struct scop): Add original_pdr_pairs field.
1998         * Makefile.in (graphite-poly.o): Add dependence on
1999         graphite-dependences.h.
2000
2001 2009-07-14  Sebastian Pop  <sebastian.pop@amd.com>
2002
2003         * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
2004         polynomials of degree > 1 pass to Graphite.
2005         * tree-chrec.c (scev_is_linear_expression): Call
2006         evolution_function_is_affine_multivariate_p.
2007         * gfortran.dg/graphite/id-10.f90: New.
2008
2009 2009-07-14  Sebastian Pop  <sebastian.pop@amd.com>
2010
2011         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
2012         Instantiate scevs varying in outer loops.
2013         * gfortran.dg/graphite/id-9.f: Correct testcase.
2014
2015 2009-07-14  Sebastian Pop  <sebastian.pop@amd.com>
2016
2017         * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
2018         redundant constraint.
2019
2020 2009-07-14  Sebastian Pop  <sebastian.pop@amd.com>
2021
2022         * gcc.dg/graphite/graphite.exp: Fix comments.
2023         * gfortran.dg/graphite/graphite.exp: Trigger actions
2024         based on the file names as in the C testsuite.
2025         * gfortran.dg/graphite/block-1.f90: Fix patterns.
2026         * gfortran.dg/graphite/block-2.f: Same.
2027         * gfortran.dg/graphite/block-3.f90: Same.
2028         * gfortran.dg/graphite/block-4.f90: Same.
2029         * gfortran.dg/graphite/id-1.f90: Same.
2030         * gfortran.dg/graphite/id-2.f90: Same.
2031         * gfortran.dg/graphite/id-3.f90: Same.
2032         * gfortran.dg/graphite/id-4.f90: Same.
2033         * gfortran.dg/graphite/id-6.f: Same.
2034         * gfortran.dg/graphite/id-9.f: Same.
2035         * gfortran.dg/graphite/interchange-1.f: Same.
2036         * gfortran.dg/graphite/interchange-2.f: Same.
2037         * gfortran.dg/graphite/scop-1.f: Same.
2038
2039 2009-07-14  Sebastian Pop  <sebastian.pop@amd.com>
2040
2041         * sese.c (expand_scalar_variables_call): New.
2042         (expand_scalar_variables_ssa_name): Handle calls in expander.
2043
2044 2009-07-13  Sebastian Pop  <sebastian.pop@amd.com>
2045
2046         * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
2047         Expect to see the pattern twice.
2048         * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
2049         * gcc.dg/graphite/interchange-5.c: Same.
2050         * gcc.dg/graphite/interchange-6.c: Same.
2051
2052 2009-07-13  Sebastian Pop  <sebastian.pop@amd.com>
2053
2054         * gcc.dg/graphite/id-10.c: New.
2055         * gcc.dg/graphite/id-12.c: New.
2056         * gfortran.dg/graphite/id-7.f: New.
2057         * gfortran.dg/graphite/id-8.f: New.
2058
2059 2009-07-13  Sebastian Pop  <sebastian.pop@amd.com>
2060
2061         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
2062         zero.
2063
2064 2009-07-13  Sebastian Pop  <sebastian.pop@amd.com>
2065
2066         * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
2067
2068 2009-07-13  Sebastian Pop  <sebastian.pop@amd.com>
2069
2070         * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
2071
2072 2009-07-10  Sebastian Pop  <sebastian.pop@amd.com>
2073
2074         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
2075         building PDR subscripts.
2076
2077 2009-07-10  Sebastian Pop  <sebastian.pop@amd.com>
2078
2079         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
2080         computation of array sizes.
2081
2082 2009-07-10  Sebastian Pop  <sebastian.pop@amd.com>
2083
2084         * graphite-sese-to-poly.c (add_param_constraints): Disabled.
2085
2086 2009-07-10  Tobias Grosser  <grosser@fim.uni-passau.de>
2087
2088         * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
2089         build_pairwise_constraint, dr_equality_constraints,
2090         build_pairwise_scheduling_equality,
2091         build_pairwise_scheduling_inequality, lexicographically_gt_p,
2092         build_lexicographically_gt_constraint, dependence_polyhedron,
2093         graphite_legal_transform_dr, graphite_carried_dependence_level_k):
2094         Move from NNC_Polyhedron to C_Polyhedron.
2095         * graphite-interchange.c (compute_array_size_poly,
2096         gather_access_strides): Dito.
2097         * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
2098         free_scop, pbb_number_of_iterations): Dito.
2099         * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
2100         pbb_dim_iter_domain, struct scop): Dito.
2101         * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
2102         new_Cloog_Domain_from_ppl_Polyhedron,
2103         new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
2104         ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
2105         ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
2106         ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
2107         debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
2108         * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
2109         new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
2110         debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
2111         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
2112         build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
2113         add_condition_to_domain, add_condition_to_pbb, build_scop_context,
2114         build_scop_iteration_domain, build_poly_dr): Dito
2115
2116 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
2117
2118         * gcc.dg/graphite/graphite.exp: Added a rule to execute
2119         run-id-*.c files.
2120         * gcc.dg/graphite/run-id-1.c: New.
2121
2122 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
2123
2124         * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
2125         positivity constraint on the symbolic number of iterations.
2126
2127 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
2128
2129         * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
2130
2131 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
2132             Tobias Grosser  <grosser@fim.uni-passau.de>
2133
2134         * graphite-clast-to-gimple.c (build_scop_context): Removed.
2135         (build_cloog_prog): Directly use SCOP_CONTEXT.
2136         * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
2137         (free_scop): Free SCOP_CONTEXT.
2138         (print_scop_context): New.
2139         (print_scop): Call print_scop_context.
2140         (debug_scop_context): New.
2141         * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
2142         (struct scop): Added field context.
2143         (SCOP_CONTEXT): New.
2144         * graphite-sese-to-poly.c (add_param_constraints): New.
2145         (build_scop_context): New.
2146         (build_poly_scop): Call build_scop_context.
2147
2148 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
2149
2150         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
2151         * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
2152         (ppl_set_inhomogeneous, ppl_set_coef): Moved...
2153         * graphite-ppl.h: Include double-int.h and tree.h.
2154         (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
2155         (ppl_set_inhomogeneous, ppl_set_coef): ...here.
2156         (gmp_cst_to_tree): ...here.  Reimplemented using mpz_get_double_int.
2157         (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
2158
2159 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
2160
2161         * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
2162         POINTER_PLUS_EXPR for pointer types.
2163         (clast_to_gcc_expression): Same.
2164
2165 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
2166
2167         * graphite-poly.c (print_scattering_function): Early return when
2168         PBB_TRANSFORMED_SCATTERING is not initialized.
2169         (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
2170
2171 2009-07-08  Sebastian Pop  <sebastian.pop@amd.com>
2172
2173         * tree-parloops.c (analyze_reduction_list): Remove unused variable
2174         to fix bootstrap.
2175
2176 2009-07-08  Razya Ladelsky  <razya@il.ibm.com>
2177
2178         * tree-parloops.c (analyze_reduction_list): Change return
2179         value to void.
2180         (try_create_reduction_list): Move the call to
2181         analyze_reduction_list to the beginining.
2182         Call reduction_phi with analyzed_reductions as argument
2183         instead of reduction_list.
2184
2185 2009-07-08  Tobias Grosser  <grosser@fim.uni-passau.de>
2186
2187         *  Merge from mainline (r148296:149346)
2188
2189 2009-07-07  Sebastian Pop  <sebastian.pop@amd.com>
2190
2191         * graphite-scop-detection.c (graphite_can_represent_init): New.
2192         (graphite_can_represent_scev): Call graphite_can_represent_init:
2193         check that the initial value does not contain multiplications of
2194         parameters.
2195         (stmt_has_simple_data_refs_p): New.
2196         (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
2197         (is_simple_operand): Fix formatting.
2198         * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
2199
2200 2009-07-07  Sebastian Pop  <sebastian.pop@amd.com>
2201
2202         * gcc.dg/graphite/id-13.c: New.
2203         * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
2204         analyze_scalar_evolution, use scalar_evolution_in_region.
2205         (scan_tree_for_params_right_scev): Add extra assert.
2206         (parameter_index_in_region_1): Split from parameter_index_in_region.
2207         (idx_record_params): Use scalar_evolution_in_region.
2208         (find_params_in_bb): Same.
2209         (find_scop_parameters): Same.
2210         (build_loop_iteration_domains): Same.
2211         (create_linear_expr_from_tree): Same.
2212         * sese.c (scalar_evolution_in_region): New.
2213         * sese.h (scalar_evolution_in_region): Declared.
2214         (defined_in_sese_p): New.
2215         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
2216         static anymore.
2217         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
2218         Declared.
2219
2220 2009-07-07  Sebastian Pop  <sebastian.pop@amd.com>
2221
2222         * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
2223         TREE_DATA_REF_H also implies SCEV_H.
2224
2225 2009-07-07  Sebastian Pop  <sebastian.pop@amd.com>
2226
2227         * graphite-poly.c (print_scop_params): New.
2228         (print_scop): Call print_scop_params.
2229         (debug_scop_params): New.
2230         * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
2231
2232 2009-07-07  Li Feng  <nemokingdom@gmail.com>
2233
2234         * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
2235         * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
2236         * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
2237         * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
2238         * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
2239         * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
2240
2241 2009-07-07  Li Feng  <nemokingdom@gmail.com>
2242
2243         * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
2244         for dependency checking part.
2245         * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
2246         tests for dependency checking.
2247         * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2248         * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2249         * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
2250         flag -fdump-tree-graphite-all for autopar testsuites.
2251
2252 2009-07-06  Sebastian Pop  <sebastian.pop@amd.com>
2253
2254         * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
2255         * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
2256         canonicalize_loop_ivs): Moved...
2257         * tree-ssa-loop-manip.c: ... here.  Include langhooks.h.
2258
2259 2009-07-06  Sebastian Pop  <sebastian.pop@amd.com>
2260
2261         * tree-parloops.c (try_create_reduction_list): Pass an extra
2262         argument analyzed_reductions.  Call analyze_reduction_list.
2263         (gen_parallel_loop): Do not call analyze_reduction_list.
2264         (parallelize_loops): Init and finalize analyzed_reductions.
2265
2266 2009-07-06  Li Feng  <nemokingdom@gmail.com>
2267
2268         * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2269         Added flag -fno-loop-strip-mine for autopar testcase.
2270
2271 2009-07-04  Li Feng  <nemokingdom@gmail.com>
2272
2273         * graphite-dependences.c (graphite_carried_dependence_level_k): Use
2274         transformed scattering dimension instead of unmatch orignal when
2275         calling dependence_polyhedron.
2276
2277 2009-06-30  Sebastian Pop  <sebastian.pop@amd.com>
2278
2279         * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
2280
2281 2009-06-30  Sebastian Pop  <sebastian.pop@amd.com>
2282
2283         * graphite-poly.c (pbb_number_of_iterations): Check for returned
2284         value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
2285
2286 2009-06-30  Sebastian Pop  <sebastian.pop@amd.com>
2287
2288         * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
2289         (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
2290         * graphite-poly.c (pbb_number_of_iterations): New.
2291         * graphite-poly.h (pbb_number_of_iterations): Declared.
2292         (pbb_iterator_dim, pbb_parameter_dim): New.
2293
2294 2009-06-29  Sebastian Pop  <sebastian.pop@amd.com>
2295
2296         * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
2297         last commit on type of lower and upper bound of loops.
2298
2299 2009-06-29  Li Feng  <nemokingdom@gmail.com>
2300
2301         * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
2302         graphite-dependences.h.
2303         * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
2304         (mark_bb_with_pbb): New.
2305         (get_stmtfor_depth): New.
2306         (find_pbb_via_hash): New.
2307         (dependency_in_loop_p): New.
2308         (mark_loops_parallel): New.
2309         (free_aux_in_new_loops): New.
2310         (translate_clast): Add parameter BB_PBB_MAPPING.  Mark newly created
2311         bb with it's relevant pbb. Mark newly created loops.  Remove mark
2312         innermost loop parallel without checking.
2313         (gloog): Add parameter BB_PBB_MAPPING.
2314         * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
2315         (gloog): Change declaration.
2316         (mark_loop_parallel): Make extern.
2317         (free_aux_in_new_loops): Declare.
2318         (bb_pbb_map_hash): New.
2319         (eq_bb_pbb_map): New.
2320         * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
2321         auto parallelization when flag_graphite_force_parallel is set.
2322         (graphite_finalize): Added free_aux_in_new_loops.
2323         * tree-parloops.c (parallelize_loops): Only generate parallel code for
2324         the innermost loop that marked parallel.  Use
2325         flag_graphite_force_parallel instead of loop->can_be_parallel.
2326         (loop_parallel_p): Move inner most checking out of function.
2327
2328 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
2329
2330         * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
2331         type of lower and upper bound of loops signed long int.
2332
2333 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
2334
2335         * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
2336         expression outside the loop.
2337
2338 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
2339
2340         * gcc.dg/graphite/interchange-8.c: New.
2341
2342 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
2343
2344         * gcc.dg/graphite/interchange-0.c: XFailed.
2345         * gcc.dg/graphite/interchange-5.c: XFailed.
2346         * gcc.dg/graphite/interchange-6.c: XFailed.
2347
2348 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
2349
2350         * graphite-interchange.c (compute_array_size_poly): The end of the
2351         recursion should return 1.
2352
2353 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
2354
2355         * graphite-interchange.c (compute_array_size_cstr): Allow the
2356         subscript multiplier to be -1.
2357         (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
2358         * graphite-poly.c (new_poly_dr): Takes an extra argument for the
2359         data_container.  Initializes PDR_DATA_CONTAINER.
2360         (print_pdr_access_layout): New.
2361         (print_pdr): Call print_pdr_access_layout.  Print PDR_DATA_CONTAINER.
2362         * graphite-poly.h (struct poly_dr): Adjust comment.  Add a new field
2363         data_container.
2364         (PDR_DATA_CONTAINER): New.
2365         (new_poly_dr): Update declaration.
2366         * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
2367         (build_poly_dr): Call pdr_add_data_dimensions.
2368
2369 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
2370
2371         * graphite-poly.h (struct poly_dr): Fix comment.
2372         * graphite-sese-to-poly.c (pdr_add_alias_set): New.
2373         (pdr_add_memory_accesses): New.
2374         (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
2375
2376 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
2377
2378         * graphite-poly.c (print_pdrs, debug_pdrs): New.
2379         (print_pbb): Add call to print_pdrs.
2380         * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
2381
2382 2009-06-24  Konrad Trifunovic <konrad.trifunovic@gmail.com>
2383             Li Feng <nemokingdom@gmail.com>
2384
2385         * graphite-dependences.c (graphite_carried_dependence_level_k): New.
2386         (dependency_between_pbbs_p): New.
2387         (lexicographically_gt_p): Assure !empty_p before polyhedron
2388         intersection assign.
2389         (build_lexicographically_gt_constraint): Correct lexicographically
2390         judging.
2391         * graphite-dependences.h: New.
2392         * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
2393
2394 2009-06-24  Sebastian Pop  <sebastian.pop@amd.com>
2395
2396         * graphite-clast-to-gimple.c (print_clast_stmt): New.
2397         (gloog): Print to dump_file the generated clast.
2398         * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
2399         * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
2400
2401 2009-06-24  Sebastian Pop  <sebastian.pop@amd.com>
2402
2403         * graphite-poly.c (extend_scattering): Increment
2404         PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
2405
2406 2009-06-24  Sebastian Pop  <sebastian.pop@amd.com>
2407
2408         * graphite-interchange.c (compute_array_size_poly): Added exit of
2409         recursion condition.  Continue iterating even after the first equality.
2410         (compute_array_size): Same.
2411
2412 2009-06-24  Li Feng  <nemokingdom@gmail.com>
2413
2414         * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
2415         -fdump-tree-final_cleanup to -fdump-tree-optimized.
2416         * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2417         * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2418         * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
2419
2420 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
2421
2422         * sese.c (expand_scalar_variables_stmt): Expand scalar variables
2423         only when the use verifies is_gimple_reg.
2424
2425 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
2426
2427         * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
2428         Allocate scaldims after call to unify_scattering_dimensions.
2429
2430 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
2431
2432         * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
2433
2434 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
2435             Albert Cohen  <albert.cohen@inria.fr>
2436
2437         * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
2438         variables for the strip mining.
2439
2440 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
2441             Pranav Garg  <pranav.garg2107@gmail.com>
2442
2443         * Makefile.in (OBJS-common): Added graphite-blocking.o.
2444         (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
2445         (graphite-blocking.o): New rule.
2446         (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
2447         * graphite-blocking.c: New.
2448         * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
2449         flag_loop_strip_mine.
2450         (psct_scattering_dim_for_loop_depth): New.
2451         * graphite-poly.h (scop_do_strip_mine): Declared.
2452         (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
2453         * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
2454         flag_loop_strip_mine.
2455
2456 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
2457
2458         * graphite-poly.c (extend_scattering): Avoid initializing and freeing
2459         a GMP value and a PPL coefficient at each iteration of a loop.
2460
2461 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
2462
2463         * graphite-dependences.c (dependence_polyhedron): Do not use
2464         pbb_nb_scattering_dims anymore.  Use pbb_nb_scattering_orig and
2465         pbb_nb_scattering_transform.
2466         (graphite_legal_transform_dr): Same.
2467         * graphite-poly.c (extend_scattering): Same.
2468         (unify_scattering_dimensions): Same.
2469         (print_scattering_function): Same.
2470         (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
2471         PBB_NB_LOCAL_VARIABLES.
2472         * graphite-poly.h (pbb_nb_scattering): Removed declaration.
2473         (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
2474         (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
2475         (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
2476         (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
2477         (pbb_nb_scattering_transform): New.
2478         (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
2479         (psco_scattering_dim): Add assert on parameters.
2480         (psct_scattering_dim): Same.
2481         (psct_scattering_dim_for_loop_depth): Declared.
2482         (psct_local_var_dim): New.
2483         (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
2484         (psct_iterator_dim, psct_parameter_dim): Same.  To maintain the
2485         correct layout, call pbb_nb_local_vars.
2486         (psct_add_local_variable, psct_add_scattering_dimension): New.
2487         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2488         Initialize PBB_NB_SCATTERING_TRANSFORM.
2489
2490 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
2491
2492         * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
2493         (set_coef): Renamed ppl_set_coef.
2494         * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
2495
2496 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
2497
2498         * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
2499         test a boolean against 1.
2500         * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
2501         a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
2502         (pbb_do_interchange): Returns true when a transform has been performed.
2503         (scop_do_interchange): Same.
2504         * graphite-poly.c (apply_poly_transforms): Use the return value of
2505         scop_do_interchange.
2506         * graphite-poly.h (scop_do_interchange): Update declaration.
2507
2508 2009-06-23  Tobias Grosser  <grosser@fim.uni-passau.de>
2509
2510         * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
2511         after last use.
2512         * sese.c (sese_reset_aux_in_loops): New.
2513         * sese.h (sese_reset_aux_in_loops): New.
2514
2515 2009-06-19  Sebastian Pop  <sebastian.pop@amd.com>
2516
2517         * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
2518         multiplier and multiply the constant by the multiplier.
2519         (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
2520         (build_poly_dr): Do not use the multiplier to define the subscript.
2521
2522 2009-06-19  Sebastian Pop  <sebastian.pop@amd.com>
2523
2524         * graphite-poly.c (new_poly_dr): Pass an extra argument for the
2525         compiler's data reference.  Initialize PDR_CDR.
2526         (print_pdr): Call dump_data_reference.
2527         * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
2528         Add compiler_dr field.
2529         (PDR_BB): Renamed PDR_PBB.
2530         (PDR_CDR): New.
2531         * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
2532         GCC's data reference representation.
2533         * tree-data-ref.c (debug_data_references, debug_data_reference): New.
2534         * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
2535
2536 2009-06-19  Sebastian Pop  <sebastian.pop@amd.com>
2537
2538         * graphite-poly.c (print_scattering_function): Also print the layout.
2539         * graphite-poly.h (pbb_nb_local_vars): New.
2540
2541 2009-06-19  Sebastian Pop  <sebastian.pop@amd.com>
2542
2543         * graphite-poly.c (print_pbb_domain): Also print the layout names.
2544
2545 2009-06-19  Sebastian Pop  <sebastian.pop@amd.com>
2546
2547         * graphite-poly.c (print_pdr, debug_pdr): New.
2548         * graphite-poly.h (print_pdr, debug_pdr): Declared.
2549         (PDR_BASE): Removed.
2550
2551 2009-06-18  Sebastian Pop  <sebastian.pop@amd.com>
2552
2553         * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
2554         ltrans-{1..6,8}.c.
2555
2556 2009-06-18  Sebastian Pop  <sebastian.pop@amd.com>
2557
2558         * graphite-interchange.c (compute_subscript): Allow also -1 in the
2559         subscript identification column.
2560         (pbb_do_interchange): Print to dump_file that some loops "will be
2561         interchanged".  Rely on that chain of characters in the testcases.
2562         * gcc.dg/graphite/interchange-0.c: New.
2563         * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
2564         interchange-*.c files and compile them with -floop-interchange.
2565
2566 2009-06-18  Pranav Garg  <pranav.garg2107@gmail.com>
2567
2568         * graphite-interchange.c (interchange_profitable_p): Renamed
2569         pbb_interchange_profitable_p.
2570
2571 2009-06-18  Sebastian Pop  <sebastian.pop@amd.com>
2572             Harsha Jagasia  <harsha.jagasia@amd.com>
2573             Pranav Garg  <pranav.garg2107@gmail.com>
2574
2575         * graphite-interchange.c (interchange_profitable_p): Make static.
2576         (pbb_interchange_loop_depths, pbb_do_interchange,
2577         scop_do_interchange): New.
2578         * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
2579         for flag_loop_interchange.
2580         * graphite-poly.h (scop_do_interchange): Declared.
2581         * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
2582         flag_loop_interchange is used.
2583
2584 2009-06-18  Sebastian Pop  <sebastian.pop@amd.com>
2585
2586         * graphite-dependences.c (dependence_polyhedron): Update use of
2587         pbb_nb_scattering_dims.
2588         * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
2589         (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
2590         (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
2591         psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
2592
2593 2009-06-16  Sebastian Pop  <sebastian.pop@amd.com>
2594
2595         * graphite.c: Cleanup foo.
2596
2597 2009-06-16  Sebastian Pop  <sebastian.pop@amd.com>
2598
2599         * Merge from mainline (r143684:148293).
2600         * Disabled libpcp until it gets fixed.
2601
2602 2009-06-05  Sebastian Pop  <sebastian.pop@amd.com>
2603             Harsha Jagasia  <harsha.jagasia@amd.com>
2604
2605         * graphite-interchange.c: New.
2606         * Makefile.in (graphite-interchange.o): New.
2607         * graphite-poly.h (interchange_profitable_p): Declared.
2608         * graphite-ppl.h (value_max): New.
2609
2610 2009-06-04  Sebastian Pop  <sebastian.pop@amd.com>
2611
2612         * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
2613         * graphite-poly.h: Fix some comments.
2614         (pdr_dim): New.
2615         (pdr_scop): New.
2616
2617 2009-06-04  Sebastian Pop  <sebastian.pop@amd.com>
2618
2619         * graphite-poly.h
2620         (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
2621         (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
2622         (pdr_accessp_nb_params): Renamed pdr_nb_params.
2623         (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
2624         (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
2625         (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
2626         (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
2627         (pbb_nb_loops): Renamed pbb_dim_iter_domain.
2628         * graphite-clast-to-gimple.c: Same.
2629         * graphite-dependences.c: Same.
2630         * graphite-poly.c: Same.
2631         * graphite-sese-to-poly.c: Same.
2632
2633 2009-06-03  Sebastian Pop  <sebastian.pop@amd.com>
2634
2635         * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
2636         expressions for an IV rename, as returned by clast_to_gcc_expression.
2637         (copy_renames): Rename new_name to expr.
2638         * sese.c (debug_rename_elt): Same.
2639         (get_rename): Same.
2640         (set_rename): Same.
2641         (sese_adjust_liveout_phis): Call force_gimple_operand before using
2642         the information from the rename map.
2643         (rename_variables_in_stmt): Same.
2644         (add_loop_exit_phis): Rename new_name to expr.
2645         (insert_loop_close_phis): Same.
2646         (add_guard_exit_phis): Same.  Call force_gimple_operand.
2647         * sese.h (struct rename_map_elt): Rename new_name to expr.
2648         (new_rename_map_elt): Same.
2649
2650 2009-06-03  Sebastian Pop  <sebastian.pop@amd.com>
2651
2652         * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
2653         * sese.c (set_rename): Make it extern.
2654         * sese.h (set_rename): Declared.
2655
2656 2009-06-03  Sebastian Pop  <sebastian.pop@amd.com>
2657
2658         * graphite-poly.c (extend_scattering): Free values.
2659         * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
2660         Free iterators.
2661         (ppl_print_powerset_matrix): Same.
2662         * graphite-scop-detection.c (free_scops_1): New.
2663         (limit_scops): Call free_scops_1.
2664         * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
2665         (build_poly_dr): Free PPL coefficients.
2666         * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
2667
2668 2009-06-02  Sebastian Pop  <sebastian.pop@amd.com>
2669
2670         * graphite-dependences.c: New.
2671         * graphite-data-ref.c: Removed.
2672         * graphite-data-ref.h: Removed.
2673         * Makefile.in (graphite-data-ref.o): Removed.
2674         (graphite-dependences.o): Added.
2675         * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
2676         * graphite-poly.c: Same.
2677         Move the data dependence testing to graphite-dependences.c.
2678
2679 2009-05-19  Tobias Grosser  <grosser@fim.uni-passau.de>
2680
2681         * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
2682         from graphite_cannot_represent_loop. Code refactored.
2683         (scopdet_basic_block_info): Call graphite_can_represent_loop.
2684
2685 2009-05-17  Li Feng  <nemokingdom@gmail.com>
2686
2687         * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2688         Cover all the testcases (not only the filtered ones).
2689
2690 2009-05-17  Tobias Grosser  <grosser@fim.uni-passau.de>
2691
2692         * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
2693         unnecessary check. Update comments. Move check for REAL_TYPE here.
2694         (harmful_stmt_in_bb): Remove checks for conditions. This is already
2695         done in (stmt_simple_for_scop_p).
2696
2697 2009-05-14 Tobias Grosser  <grosser@fim.uni-passau.de>
2698
2699         * graphite.c (print_global_statistics): New.
2700         (print_graphite_scop_statistic): New.
2701         (print_graphite_statistics): New.
2702         (graphite_initialize, graphite_transform_loops): Print statistics.
2703         * graphite-scop-detection (build_scops): Print statistics.
2704         (print_graphite_scop_statistics): New.
2705         (print_graphite_statistics): New.
2706
2707 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2708
2709         * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
2710         (debug_clast_name_index): Removed.
2711         (debug_clast_name_indexes_1): Removed.
2712         (debug_clast_name_indexes): Removed.
2713         (clast_name_index_elt_info): Removed.
2714         (eq_clast_name_indexes): Removed.
2715         (clast_name_to_index): Removed.
2716         (new_clast_name_index): Removed.
2717         (save_clast_name_index): Removed.
2718         (save_var_name): Moved...
2719         (init_sese_params_index): Removed.
2720         (clast_name_to_gcc): Remove use of name_tree.
2721         (initialize_cloog_names): Same.
2722         (gloog): Do not call init_sese_params_index.
2723         * graphite-sese-to-poly.c (save_var_name): ...here.
2724         (parameter_index_in_region): New.
2725         * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
2726         (parameter_index_in_region): Removed.
2727         (is_parameter): Remove use of name_tree.
2728         * sese.h (struct name_tree): Removed.
2729         (struct sese): Remove use of name_tree.  New field params_names.
2730         (SESE_PARAMS_NAMES): New.
2731         (SESE_PARAMS): Remove duplicate.
2732         (parameter_index_in_region): Removed.
2733         (sese_nb_params): Remove use of name_tree.
2734         (struct clast_name_index): New.
2735         (new_clast_name_index): New.
2736         (clast_name_to_index): New.
2737         (save_clast_name_index): New.
2738         (debug_clast_name_index): New.
2739         (debug_clast_name_indexes_1): New.
2740         (debug_clast_name_indexes): New.
2741         (clast_name_index_elt_info): New.
2742         (eq_clast_name_indexes): New.
2743
2744 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2745
2746         * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
2747         pbb_to_depth_to_oldiv.  Remove call to oldiv_for_loop.
2748         (graphite_loop_normal_form): Do not pass region.  Do not
2749         initialize SESE_OLDIVS.
2750         (build_graphite_loop_normal_form): Update call to
2751         graphite_loop_normal_form.
2752         * sese.c (debug_oldivs): Removed.
2753         (new_sese): Do not initialize SESE_OLDIVS.
2754         (free_sese): Do not free SESE_OLDIVS.
2755         (oldiv_for_loop): Removed.
2756         * sese.h (struct sese): Remove old_ivs.
2757         (SESE_OLDIVS): Removed.
2758         (oldiv_for_loop): Removed.
2759
2760 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2761
2762         * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
2763         remove ivstack.  Remove call to loop_iv_stack_get_iv_from_name,
2764         replaced by a call to newivs_to_depth_to_newiv.
2765         (clast_to_gcc_expression): Pass newivs, remove ivstack.
2766         (clast_to_gcc_expression_red): Same.
2767         (gcc_type_for_clast_expr): Same.
2768         (gcc_type_for_clast_eq): Same.
2769         (graphite_translate_clast_equation): Same.
2770         (graphite_create_guard_cond_expr): Same.
2771         (graphite_create_new_guard): Same.
2772         (graphite_create_new_loop): Same.
2773         (build_iv_mapping): Same.
2774         (translate_clast): Same.
2775         (gloog): Same.
2776         (loop_iv_stack_patch_for_consts): Removed.  *
2777         sese.c (iv_stack_entry_is_constant): Removed.
2778         (iv_stack_entry_is_iv): Removed.
2779         (loop_iv_stack_push_iv): Removed.
2780         (loop_iv_stack_insert_constant): Removed.
2781         (loop_iv_stack_pop): Removed.
2782         (loop_iv_stack_get_iv): Removed.
2783         (loop_iv_stack_get_iv_from_name): Removed.
2784         (debug_loop_iv_stack): Removed.
2785         (free_loop_iv_stack): Removed.
2786         (loop_iv_stack_remove_constants): Removed.  *
2787         sese.h (iv_stack_entry_kind): Removed.
2788         (iv_stack_entry_data_union): Removed.
2789         (iv_stack_entry_struct): Removed.
2790         (iv_stack_entry_p): Removed.
2791         (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
2792         loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
2793         loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
2794         loop_iv_stack_pop, free_loop_iv_stack): Removed.
2795         (gbb_loop_at_index): Fix indenting.
2796         (gbb_loop_index): Removed.
2797
2798 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2799
2800         * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
2801         Call clast_name_to_index.
2802
2803 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2804
2805         * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
2806         do not pass params.  Get params from SESE_PARAMS.
2807         (clast_to_gcc_expression): Same.
2808         (clast_to_gcc_expression_red): Same.
2809         (gcc_type_for_clast_eq): Same.
2810         (graphite_translate_clast_equation): Same.
2811         (graphite_create_new_loop): Same.
2812         * sese.c (rename_variables_in_stmt): Fix comment.
2813
2814 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2815
2816         * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
2817         newivs_index.
2818         Call save_clast_name_index.
2819         (translate_clast): Pass newivs_index.
2820         (gloog): Create and free newivs_index.
2821
2822 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2823
2824         * graphite-clast-to-gimple.c (clast_name_index): New structure.
2825         (clast_name_index_p): New type.
2826         (debug_clast_name_index): New.
2827         (debug_clast_name_indexes_1): New.
2828         (debug_clast_name_indexes): New.
2829         (clast_name_index_elt_info): New.
2830         (eq_clast_name_indexes): New.
2831         (clast_name_to_index): New.
2832         (new_clast_name_index): New.
2833         (save_clast_name_index): New.
2834         (init_sese_params_index): New.
2835         (gloog): Call init_sese_params_index.
2836         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
2837         * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
2838         (free_sese): Free SESE_PARAMS_INDEX.
2839         * sese.h (struct sese): Add params_index.
2840         (SESE_PARAMS_INDEX): New.
2841
2842 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2843
2844         * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
2845         (graphite_create_new_loop): Pass the newivs vector.  Push the
2846         newly created IV to newivs.
2847         (translate_clast): Pass the newivs vector.
2848         (gloog): Create and destroy the newivs vector.
2849
2850 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2851
2852         * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
2853         (graphite_loop_normal_form): Initialize loop->aux with the unique
2854         IV that has been created.
2855
2856 2009-05-13 Tobias Grosser  <grosser@fim.uni-passau.de>
2857
2858         * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
2859         scev with parameters in the base part. They where forbidden
2860         exidently.
2861
2862 2009-05-11  Li Feng  <nemokingdom@gmail.com>
2863
2864         * gcc.dg/graphite/graphite.exp: Set different default
2865         compile options by file names.
2866         * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
2867         * gcc.dg/graphite/id-{1-9}.c: Ditto.
2868         * gcc.dg/graphite/scop-{0-20}.c: Ditto.
2869         * gcc.dg/graphite/scop-matmult.c: Ditto.
2870
2871 2009-05-08  Li Feng <nemokingdom@gmail.com>
2872
2873         * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
2874         * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
2875         * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
2876         * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
2877
2878 2009-05-07  Tobias Grosser  <grosser@fim.uni-passau.de>
2879
2880         * graphite-scop-detection (build_scops_1): Fix little bug introduced
2881         by final cleanup.
2882
2883 2009-05-07  Tobias Grosser  <grosser@fim.uni-passau.de>
2884
2885         * graphite-scop-detection.c (graphite_can_represent_scev): Only
2886         allow integer constant strides.
2887         (graphite_can_represent_expr): Depend on outermost_loop.
2888         (stmt_simple_memref_p, graphite_cannot_represent_loop,
2889         harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
2890         build_scops_1): Same.
2891         (scopdet_basic_block_info): Same and insert layered SCoP
2892         detection.
2893         (try_generate_gimple_bb): Cleanup.
2894         (build_scops): Enable data references.
2895
2896         * gcc.dg/graphite/id-5.c: New.
2897         * gcc.dg/graphite/id-9.c: New.
2898         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
2899         * tree-chrec.h (evolution_function_right_is_integer_cst): New.
2900
2901 2009-05-06  Tobias Grosser  <grosser@fim.uni-passau.de>
2902
2903         * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
2904         that we have not yet built for this SCoP.
2905
2906 2009-05-06  Tobias Grosser  <grosser@fim.uni-passau.de>
2907
2908         * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
2909         for complex numbers.
2910
2911 2009-05-06  Tobias Grosser  <grosser@fim.uni-passau.de>
2912
2913         * graphite-ppl.c: Fix build if cloog is not available.
2914
2915 2009-05-04  Li Feng  <nemokingdom@gmail.com>
2916
2917         * tree-parloops.c (loop_parallel_p): Remove construction of
2918         NITER and REDUCTION_LIST.
2919         (try_get_loop_niter): New.
2920         (try_create_reduction_list): New.
2921         (parallelize_loops): Bypass the failed checkings in autopar
2922         when can_be_parallel in loop structure is set to true.
2923
2924 2009-05-01  Tobias Grosser  <grosser@fim.uni-passau.de>
2925
2926         * gcc.dg/graphite/id-6.c: Update testcase.
2927         * gcc.dg/graphite/scop-3.c: Dito.
2928
2929 2009-05-01  Tobias Grosser  <grosser@fim.uni-passau.de>
2930
2931         * graphite-scop-detection.c (stmt_simple_for_scop_p):
2932         Enable EQ_EXPR and NE_EXPR again.
2933
2934 2009-04-30  Tobias Grosser  <grosser@fim.uni-passau.de>
2935
2936         * graphite-scop-detection.c (graphite_can_represent_scev):
2937         Add check if scev is affine multivariate.
2938         (harmful_stmt_in_bb): Check if we can represent the conditions.
2939         (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
2940         harmful_stmt_in_bb.
2941         * gcc.dg/graphite/id-7.c: New.
2942
2943 2009-04-30  Tobias Grosser  <grosser@fim.uni-passau.de>
2944
2945         * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
2946         Check all bbs in region, not only the bbs that are represented in
2947         GRAPHITE.
2948         (build_poly_scop): Add newline.
2949         * gcc.dg/graphite/id-8.c: New.
2950
2951 2009-04-30  Li Feng  <nemokingdom@gmail.com>
2952
2953         * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
2954         when loop initialize.
2955         * cfgloop.h (struct loop): Introduce flag can_be_parallel.
2956         * common.opt: Declare flag_graphite_force_parallel.
2957         * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
2958         loop parallel.
2959         * graphite-poly.c (apply_poly_transforms): Introduce
2960         flag_graphite_force_parallel.
2961         * tree-ssa-loop.c (gate_graphite_transforms): ditto.
2962         * toplev.c (process_options): ditto and replace a not correctly
2963         encoded space.
2964
2965 2009-04-30  Li Feng  <nemokingdom@gmail.com>
2966
2967         * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
2968         Change the call of gbb_loop_at_index and/or gbb_loop_index due
2969         to the redefinition.
2970         (compute_cloog_iv_types_1): ditto.
2971         (build_iv_mapping): ditto.
2972         * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
2973         initialization.
2974         (free_gimple_bb): Removed GBB_LOOPS related free part.
2975         (build_bb_loops): Removed.
2976         * sese.h (struct gimple_bb): Removed loops.
2977         (GBB_LOOPS): Removed.
2978         (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
2979         (gbb_loop_index): ditto.
2980
2981 2009-04-24  Tobias Grosser  <grosser@fim.uni-passau.de>
2982
2983         * graphite-scop-detection.c (graphite_can_represent_scev): Do not
2984         allow non constant strides.
2985         * gcc.dg/graphite/scop-20.c: New.
2986
2987 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2988
2989         * graphite-scop-detection.c (dot_all_scops): Fix system call
2990         return value warning.
2991         (dot_scop): Same.
2992
2993 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2994
2995         * gcc.dg/graphite/id-6.c: Fix pattern.
2996         * gcc.dg/graphite/scop-3.c: Same.
2997
2998 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2999
3000         * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
3001         build_pairwise_constraint, dr_equality_constraints,
3002         build_pairwise_scheduling_equality,
3003         build_pairwise_scheduling_inequality, lexicographically_gt_p,
3004         build_lexicographically_gt_constraint, dependence_polyhedron,
3005         graphite_legal_transform_dr, graphite_legal_transform_bb,
3006         graphite_legal_transform): New.
3007         * graphite-poly.h (graphite_legal_transform): Declared.
3008         * graphite-sese-to-poly.c (build_poly_scop): Call to
3009         graphite_legal_transform is disabled for the moment.
3010
3011 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
3012
3013         * graphite-poly.h (pbb_nb_scattering_dims): New.
3014         (pbb_nb_scattering): Use it.
3015
3016 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
3017
3018         * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
3019         Pointset_Powerset version of ppl_insert_dimensions.
3020         * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
3021
3022 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
3023
3024         * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
3025
3026 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
3027
3028         * graphite-poly.h: Fix comment.
3029
3030 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
3031
3032         * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
3033
3034 2009-04-24  Tobias Grosser  <grosser@fim.uni-passau.de>
3035
3036         * sese.c (expand_scalar_variables_stmt): Only iterate over the old
3037         statements.
3038
3039 2009-04-24  Tobias Grosser  <grosser@fim.uni-passau.de>
3040
3041         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
3042         (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
3043         conditions.
3044
3045 2009-04-20  Sebastian Pop  <sebastian.pop@amd.com>
3046
3047         * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
3048         handle EQ_EXPR and NE_EXPR.
3049
3050 2009-04-17  Tobias Grosser  <grosser@fim.uni-passau.de>
3051
3052         * graphite-poly.h (poly_dr): Fix comment.
3053
3054 2009-04-09  Sebastian Pop  <sebastian.pop@amd.com>
3055             Tobias Grosser  <grosser@fim.uni-passau.de>
3056
3057         * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
3058         with a zero dimension polyhedron.
3059         (find_scop_parameters): Move the call to scop_set_nb_params here.
3060         (build_loop_iteration_domains): Store in loop->aux the iteration
3061         domain polyhedron.
3062         (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
3063         by any loop in scop.
3064         (build_poly_scop): Do not call scop_set_nb_params.
3065
3066 2009-04-09  Sebastian Pop  <sebastian.pop@amd.com>
3067             Tobias Grosser  <grosser@fim.uni-passau.de>
3068
3069         * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
3070         add_condition_to_domain not GT_EXPR.
3071
3072 2009-04-09  Tobias Grosser  <grosser@fim.uni-passau.de>
3073
3074         * graphite-ppl.c (debug_ppl_powerset_matrix): New.
3075         * graphite-ppl.h (debug_ppl_powerset_matrix): New.
3076         * graphite-sese-to-poly.c (add_condition_to_pbb): Use
3077         upper_bound_assign to calculate unions.
3078         * gcc.dg/graphite/id-6.c: New.
3079
3080 2009-04-09  Tobias Grosser  <grosser@fim.uni-passau.de>
3081
3082         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
3083         handle abnormal edges.
3084
3085 2009-04-09  Tobias Grosser  <grosser@fim.uni-passau.de>
3086
3087         * graphite-poly.c (new_poly_dr, free_poly_dr): New.
3088         (free_poly_bb): Also free poly_drs.
3089         * graphite-poly.h (new_poly_dr, free_poly_dr): New.
3090         (poly_dr): Polyhedron to Pointset_Powerset.
3091         (pdr_accessp_nb_subscripts): Same.
3092         * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
3093         poly_drs.
3094
3095 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
3096
3097         * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
3098         names into more meaningful names.
3099
3100 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
3101
3102         * gfortran.dg/graphite/interchange-1.c: New.
3103         * gfortran.dg/graphite/interchange-2.c: New.
3104
3105 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
3106
3107         * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
3108         the reduction_list.
3109         * tree-parloops.c (rewrite_phi_with_iv): New.
3110         (rewrite_all_phi_nodes_with_iv): New.
3111         (canonicalize_loop_ivs): Call them.
3112
3113 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
3114
3115         * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
3116         graphite_find_data_references_in_stmt.
3117         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
3118         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
3119
3120 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
3121
3122         * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
3123
3124 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
3125
3126         * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
3127         instead of bb_in_region.
3128         (flag_bb_in_region): Same.  Renamed flag_bb_in_sese.
3129         (build_sese_conditions): Use flag_bb_in_sese.
3130         * sese.c (register_bb_in_sese): Removed.
3131         (new_sese): Remove initialization of SESE_REGION_BBS.
3132         (free_sese): Do not free SESE_REGION_BBS.
3133         * sese.h (struct sese): Remove field region_basic_blocks.
3134         (SESE_REGION_BBS): Removed.
3135         (bb_in_sese_p): Implement in function of bb_in_region.
3136
3137 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
3138
3139         * graphite-scop-detection.c (limit_scops): Deal only with single exit
3140         loops.
3141
3142 2009-04-08  Tobias Grosser  <grosser@fim.uni-passau.de>
3143
3144         * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
3145         and EQ_EXPR.
3146         * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
3147         (add_condition_to_domain): New.
3148         (add_condition_to_pbb): New.
3149         (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
3150         * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
3151
3152 2009-04-08  Tobias Grosser  <grosser@fim.uni-passau.de>
3153
3154         * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
3155         ppl_Pointset_Powerset.
3156         * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
3157         * graphite-poly.h (poly_bb): poly_bb.domain Same.
3158         (pbb_nb_loops): Same.
3159         * graphite-sese-to-poly.c (build_loop_iteration_domains,
3160         add_conditions_to_domain): Same.
3161         * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3162         (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
3163         ppl_const_Polyhedron_t.
3164         (ppl_print_powerset_matrix): New.
3165         * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
3166         ppl_print_powerset_matrix): New.
3167         (ppl_print_polyhedron_matrix): Updated.
3168
3169 2009-04-07  Sebastian Pop  <sebastian.pop@amd.com>
3170
3171         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
3172
3173 2009-04-07  Sebastian Pop  <sebastian.pop@amd.com>
3174
3175         * graphite-poly.c (extend_scattering): Fix indenting.  Free cstr.
3176         (print_iteration_domains, debug_iteration_domain,
3177         debug_iteration_domains): New.
3178         * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
3179         debug_iteration_domains): Declared.
3180         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
3181         indenting.
3182
3183 2009-04-03  Tobias Grosser  <grosser@fim.uni-passau.de>
3184             Sebastian Pop  <sebastian.pop@amd.com>
3185
3186         * graphite-poly.h (print_iteration_domain): New.
3187         * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
3188         (build_sese_conditions_1, build_sese_conditions_after,
3189         build_sese_conditions_before): New.
3190         (build_sese_conditions): Rewritten.
3191
3192 2009-04-03  Sebastian Pop  <sebastian.pop@amd.com>
3193             Tobias Grosser  <grosser@fim.uni-passau.de>
3194
3195         Cleanup of code generation liveouts.
3196         * graphite-clast-to-gimple.c (translate_clast): Use a single
3197         rename_map instead of one per translated statement.
3198         Do not use SESE_LIVEOUT_RENAMES.
3199         (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
3200         (gloog): Do not use SESE_LIVEOUT_RENAMES.
3201         * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
3202         phi node of a reduction: when a loop contains a reduction used outside
3203         the loop, there should be a scalar close phi node on the exit block.
3204         * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
3205         SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
3206         (free_sese): Do not free them.
3207         (sese_build_liveouts_use): Do not use them.
3208         (sese_build_liveouts_bb): Same.
3209         (sese_build_liveouts): Same.
3210         (sese_insert_phis_for_liveouts): Same.
3211         (sese_adjust_phis_for_liveouts): Same.  Renamed sese_adjust_liveout_phis.
3212         (defined_in_loop_p): New.
3213         (alive_after_loop): New.
3214         (close_phi_not_yet_inserted_p): New.
3215         (struct alep, alep_p): New.
3216         (add_loop_exit_phis): Remove from the rename_map all the names defined
3217         in the code generated loop.
3218         (insert_loop_close_phis): Traverse the rename_map passed to it.
3219         Don't use SESE_LIVEOUT_RENAMES.
3220         (default_liveout_before_guard): Renamed default_before_guard.
3221         (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
3222         (graphite_copy_stmts_from_block): Do not directly call set_rename.
3223         (register_sese_liveout_renames): Removed.
3224         (copy_bb_and_scalar_dependences): Do not call it.
3225         * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
3226         reduction_list.
3227         (SESE_LIVEOUT): Removed.
3228         (SESE_LIVEOUT_RENAMES): Removed.
3229         (SESE_REDUCTION_LIST): Removed.
3230         (sese_build_liveouts): Removed.
3231         (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
3232         (insert_loop_close_phis): Pass a htab_t instead of a sese.
3233         (insert_guard_phis): Same.
3234         (rename_map_elt): Declare a VEC of them.
3235         * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
3236         trees not pointers to trees.
3237
3238         Rewrite in canonical close SSA form:
3239         * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
3240         (limit_scops): Close the scop after the block containing the close phi
3241         nodes.
3242         (canonicalize_loop_closed_ssa): New.
3243         (canonicalize_loop_closed_ssa_form): New.
3244         (build_scops): Call canonicalize_loop_closed_ssa_form.
3245
3246         * graphite-sese-to-poly.c: Fix typos.
3247
3248 2009-04-03  Sebastian Pop  <sebastian.pop@amd.com>
3249
3250         * graphite-poly.c (print_scattering_function, print_pbb_domain):
3251         Extended.
3252         (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
3253         (print_pbb): Add conditions.
3254
3255 2009-04-01  Tobias Grosser  <grosser@fim.uni-passau.de>
3256             Sebastian Pop  <sebastian.pop@amd.com>
3257
3258         * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
3259         * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
3260         (build_scop_bbs_1): New.
3261         (build_scop_bbs): Rewrite.
3262         * sese.h (bb_in_region): New.
3263
3264 2009-03-29  Tobias Grosser  <grosser@fim.uni-passau.de>
3265
3266         * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3267         poly_drs vector.
3268         (print_scop): Style.
3269         * graphite-poly.h (poly_bb): Add drs vector.
3270         (PBB_DRS): Add accessor.
3271         * graphite-sese-to-poly.c (build_poly_dr): New.
3272         (build_pbb_drs, build_scop_drs): New.
3273         (build_poly_scop): call build_scop_drs (Disabled at the moment).
3274
3275 2009-03-29  Tobias Grosser  <grosser@fim.uni-passau.de>
3276
3277         * tree-ssa-loop.c: Include forgotten toplev.h
3278
3279 2009-03-29  Tobias Grosser  <grosser@fim.uni-passau.de>
3280
3281         * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
3282         * gcc.dg/graphite/pr37883.c: Remove -floop-*
3283         * gcc.dg/graphite/pr37928.c: Same
3284         * gcc.dg/graphite/pr38409.c: Same
3285         * gcc.dg/graphite/pr38498.c: Same
3286         * gcc.dg/graphite/pr38559.c: Same
3287         * gcc.dg/graphite/pr39335.c: Same
3288         * gcc.dg/graphite/pr39335_1.c: Same
3289         * gfortran.dg/graphite/block-2.f: Same
3290         * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
3291         with -floop-*.
3292
3293 2009-03-28  Tobias Grosser  <grosser@fim.uni-passau.de>
3294
3295         * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
3296         build_access_matrix, build_scop_data_accesses): Remove access function
3297         building. (We get a new version soon).
3298         (build_bb_loops, scan_tree_for_params_right_scev): Update.
3299         * sese.h (nb_loops_around_loop_in_sese): Remove.
3300         (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
3301
3302 2009-03-27  Tobias Grosser  <grosser@fim.uni-passau.de>
3303             Sebastian Pop  <sebastian.pop@amd.com>
3304
3305         * graphite-scop-detection.c (struct scopdet_info): Rename last
3306         field to exit.
3307         (scopdet_basic_block_info, build_scops_1): Don't use
3308         CDI_POST_DOMINATORS.  CDI_POST_DOMINATORS should never be used.
3309
3310 2009-03-26  Tobias Grosser  <grosser@fim.uni-passau.de>
3311             Sebastian Pop  <sebastian.pop@amd.com>
3312
3313         * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
3314         * sese.c (sese_build_liveouts_use): Renamed from
3315         sese_build_livein_liveouts_use. Remove liveins.
3316         (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
3317         Call sese_build_liveouts_use.
3318         (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
3319         Call sese_build_liveouts_bb.
3320         (new_sese, free_sese): Remove liveins.
3321         (sese_add_exit_phis_var): Deleted.
3322         (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
3323         directly.
3324         (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
3325
3326         * sese.h (sese): Remove num_ver and livein.
3327         (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
3328
3329 2009-03-25  Tobias Grosser  <grosser@fim.uni-passau.de>
3330
3331         * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
3332
3333 2009-03-25  Tobias Grosser  <grosser@fim.uni-passau.de>
3334
3335         * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
3336         (build_scop_scattering): Do not use compare_prefix_loops any more.
3337         (nb_common_loops): New.
3338
3339 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
3340
3341         * sese.c (get_new_name_from_old_name): Renamed get_rename.
3342         (register_old_and_new_names): Renamed set_rename.
3343
3344 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
3345
3346         * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
3347         of the decl from the previous commit.
3348
3349 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
3350
3351         * graphite-scop-detection.c (dot_scop): New.
3352         * graphite-scop-detection.h (dot_scop): Declared.
3353
3354 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
3355
3356         * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
3357
3358 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
3359
3360         * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
3361         condition at the end of the loop.
3362         * graphite.c (graphite_initialize, graphite_finalize): Print to
3363         dump_file the compiled function.
3364         * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
3365         of create_empty_loop_on_edge.
3366         (translate_clast): Update the code generation of loops for the new
3367         shape of loops.
3368         * cfgloop.h (create_empty_loop_on_edge): Update declaration.
3369
3370 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
3371
3372         Reverted the patch from 2009-03-19.
3373
3374 2009-03-19  Tobias Grosser  <grosser@fim.uni-passau.de>
3375
3376         * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3377         poly_drs vector.
3378         (print_scop): Style.
3379         * graphite-poly.h (poly_bb): Add drs vector.
3380         (PBB_DRS): Add accessor.
3381         * graphite-sese-to-poly.c (ref_nb_loops): Remove.
3382         (build_access_matrix_with_af, build_access_matrix,
3383         build_scop_data_accesses): Delete.
3384         (build_poly_dr): New.
3385         (build_pbb_drs, build_scop_drs): New.
3386         (build_poly_scop): call build_scop_drs.
3387
3388 2009-03-13  Sebastian Pop  <sebastian.pop@amd.com>
3389
3390         * graphite-scop-detection.c (dot_all_scops_1): Close the table
3391         once per basic block.
3392
3393 2009-03-13  Tobias Grosser  <grosser@fim.uni-passau.de>
3394
3395         * graphite-scop-detection.c (graphite_can_represent_scev): New.
3396         (graphite_can_represent_expr): Renamed from loop_affine_expr
3397         and enhanced.
3398         (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
3399         (graphite_cannot_represent_loop): Add scop_entry to parameters.
3400         (scopdet_basic_block_info): Actually define entry_block.
3401         (stmt_simple_memref_p): Moved here from ...
3402
3403         * tree-data-ref.c (stmt_simple_memref_p): here.
3404         * tree-data-ref.h (stmt_simple_memref_p): Removed.
3405