OSDN Git Service

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