OSDN Git Service

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