OSDN Git Service

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