OSDN Git Service

2009-10-26 Sebastian Pop <sebastian.pop@amd.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog.graphite
1 2009-10-26  Sebastian Pop  <sebastian.pop@amd.com>
2
3         * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
4         (dependency_in_loop_p): Same.
5         (translate_clast): Do not use loop->aux.  Initialize
6         loop->can_be_parallel.
7         (mark_loops_parallel): Removed.
8         * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
9         * graphite.c (free_aux_in_new_loops): Removed.
10         (graphite_finalize): Do not call free_aux_in_new_loops.
11         (graphite_transform_loops): Do not call mark_loops_parallel.
12
13 2009-10-26  Li Feng  <nemokingdom@gmail.com>
14
15         * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
16         (translate_clast): Pass an extra parameter LEVEL.
17         Call get_scattering_level.
18         * graphite-clast-to-gimple.h (get_scattering_level): New.
19
20 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
21
22         * cfgloop.c (alloc_loop): Initialize loop->single_iv.
23         * cfgloop.h (struct loop): New field single_iv.
24
25         * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
26         loop->aux anymore: use loop->single_iv.
27         (graphite_loop_normal_form): Moved...
28         (build_graphite_loop_normal_form): Removed.
29         (gloog): Do not call build_graphite_loop_normal_form.
30         (free_aux_in_new_loops): Moved...
31         (mark_loops_parallel): Restructure.
32         * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
33         * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
34         (scop_canonicalize_loops): New.
35         (build_poly_scop): Call scop_canonicalize_loops.
36         * graphite.c (free_aux_in_new_loops): ...here.
37
38 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
39
40         * g++.dg/graphite/graphite.exp: Add the same rules as in
41         gcc.dg/graphite/graphite.exp.
42
43 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
44
45         * g++.dg/graphite/id-1.C: New.
46
47 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
48
49         * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
50         argument base_name.
51         (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
52         (rewrite_phi_out_of_ssa): Same.
53         (rewrite_cross_bb_scalar_deps): Same.
54         (translate_scalar_reduction_to_array): Same.
55
56 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
57
58         * graphite-sese-to-poly.c (build_scop_drs): Disable call to
59         dump_alias_graphs.
60
61 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
62
63         * graphite-sese-to-poly.c (dump_alias_graphs): New.
64         (build_scop_drs): Call dump_alias_graphs.
65
66 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
67
68         * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
69         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
70         (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
71         SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
72         * graphite-poly.h (free_lst): New.
73         (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
74         (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
75
76 2009-10-22  Sebastian Pop  <sebastian.pop@amd.com>
77
78         * graphite-poly.h (struct scop): Add a field saved_schedule.
79         (SCOP_SAVED_SCHEDULE): New.
80         (store_lst_schedule): New.
81         (restore_lst_schedule): New.
82         (store_scattering): Call store_lst_schedule.
83         (restore_scattering): Call restore_lst_schedule.
84
85 2009-10-20  Sebastian Pop  <sebastian.pop@amd.com>
86
87         * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
88         (pdr_add_alias_set): Same.
89         (build_poly_dr): Same.
90         (build_alias_set_optimal_p): Same.
91         (build_base_obj_set_for_drs): Same.  Do not store the result of
92         graphds_dfs.
93
94 2009-10-20  Sebastian Pop  <sebastian.pop@amd.com>
95
96         * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
97         all_components_are_cliques to 1.
98
99 2009-10-20  Li Feng  <nemokingdom@gmail.com>
100
101         * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
102         the new structure.
103         (pdr_add_alias_set): Update retrieving alias_set_num.
104         (build_poly_dr): Update retrieving dr_base_object_set.
105         (partition_drs_to_sets): Remove.
106         (build_alias_set_optimal_p): New.
107         (build_alias_set_for_drs): Rename.
108         (build_scop_drs): Update.
109         * graphite-sese-to-poly.h (struct base_alias_pair): New.
110         (ALIAS_SET_INDEX): Remove.
111         (BASE_OBJECT_SET_INDEX): Remove.
112
113 2009-10-20  Sebastian Pop  <sebastian.pop@amd.com>
114
115         * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
116
117 2009-10-20  Sebastian Pop  <sebastian.pop@amd.com>
118
119         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
120         loop upper bounds for 1-element arrays at end of structures.
121         * tree-flow.h (array_at_struct_end_p): Declared.
122         * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
123
124 2009-10-20  Sebastian Pop  <sebastian.pop@amd.com>
125
126         * g++.dg/graphite/pr41305.C: New.
127
128 2009-10-20  Alexander Monakov  <amonakov@ispras.ru>
129
130         * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
131         construction of parameter constraints from loop iteration analysis.
132         * gcc.dg/graphite/run-id-2.c: New test.
133
134 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
135
136         * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
137         and new_cstr.
138
139 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
140
141         * graphite-dependences.c (dependence_polyhedron_1): Remove
142         unused gdim dimensions from the DDR polyhedron.
143
144 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
145
146         * graphite-dependences.c (pddr_transformed_scattering): New.
147         (dot_original_deps_stmt_1): New.
148         (dot_transformed_deps_stmt_1): New.
149         (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
150         dot_transformed_deps_stmt_1.
151         (dot_original_deps): New.
152         (dot_transformed_deps): New.
153         (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
154
155 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
156
157         * graphite-dependences.c (reduction_dr_1): Remove wrong
158         assert: reduction BBs can have multiple reduction writes
159         to memory.  interchange-3.f90 is an example.
160
161 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
162
163         * gfortran.dg/graphite/interchange-3.f90: New.
164
165 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
166
167         * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
168
169 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
170
171         * graphite-dependences.c (dependence_polyhedron_1): Add the
172         context to the dependence polyhedron.
173
174 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
175
176         * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
177         PBB_PDR_DUPLICATES_REMOVED.
178         (new_poly_bb): Same.
179
180 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
181
182         * graphite-sese-to-poly.c (find_scop_parameters): Initialize
183         SCOP_CONTEXT.
184         (build_loop_iteration_domains): Extract bounds on parameters
185         based on the data size.
186         (build_scop_context): Do not initialize SCOP_CONTEXT;
187         add new constraints.
188
189 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
190
191         * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
192         * graphite-ppl.h (graphite-ppl.h): Declared.
193
194 2009-10-17  Sebastian Pop  <sebastian.pop@amd.com>
195
196         * graphite-ppl.c (ppl_print_linear_expr): New.
197         (debug_ppl_linear_expr): New.
198         * graphite-ppl.h (ppl_print_linear_expr): Declared.
199         (debug_ppl_linear_expr): Declared.
200
201 2009-10-16  Sebastian Pop  <sebastian.pop@amd.com>
202
203         * graphite-interchange.c: Fix comments.
204         * gcc.dg/graphite/block-1.c: Fix comments.
205
206 2009-10-16  Sebastian Pop  <sebastian.pop@amd.com>
207
208         * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
209         * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
210
211 2009-10-16  Sebastian Pop  <sebastian.pop@amd.com>
212
213         Reapply the patch from Alexander Monakov that disappeared during
214         the last merges from trunk.
215
216         2009-09-16  Alexander Monakov  <amonakov@ispras.ru>
217
218         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
219         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
220
221 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
222
223         * graphite-interchange.c (memory_stride_in_loop): The depth
224         argument corresponds to a dynamic time dimension, so use
225         psct_dynamic_dim to refer to the transformed scattering dimension.
226
227 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
228
229         * graphite-interchange.c (memory_stride_in_loop): Fix comments.
230
231 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
232
233         * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
234         root of the LST.
235         * graphite-interchange.c (lst_do_interchange): Avoid interchanging
236         the root of the LST.
237         * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
238         fake loop.
239         (print_lst): Print the root of LST in a different format.
240         * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
241
242 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
243
244         * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
245
246 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
247
248         * doc/passes.texi: Document the Graphite infrastructure.
249
250 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
251
252         * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
253         (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
254         and check the SSA representation.
255
256         * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
257
258 2009-10-15  Sebastian Pop  <sebastian.pop@amd.com>
259
260         * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
261
262 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
263
264         * gcc.dg/graphite/interchange-11.c: New.
265
266 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
267
268         * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
269
270 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
271
272         * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
273         Add -fno-loop-strip-mine and -fno-loop-interchange.
274         (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
275         -fno-loop-strip-mine.
276         * gfortran.dg/graphite/graphite.exp: Same.
277
278 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
279
280         * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
281         Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
282         (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
283         DEFAULT_FLAGS_GRAPHITE_IDENTITY.
284         (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
285         DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
286         (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
287         DEFAULT_FLAGS_GRAPHITE_SCOP.
288         (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
289         (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
290
291 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
292
293         * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
294
295 2009-10-14  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
296             Sebastian Pop  <sebastian.pop@amd.com>
297
298         * graphite-interchange.c (build_linearized_memory_access): Pass an
299         offset as parameter.
300         (memory_stride_in_loop): Include transform scattering in the
301         access functions to be able to querry the strides in the
302         transformed loops.
303         (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
304         not the psct_iterator_dim.
305
306 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
307
308         * graphite-blocking.c (pbb_do_strip_mine): Removed.
309         (lst_do_strip_mine_loop): New.
310         (lst_do_strip_mine): New.
311         (scop_do_strip_mine): Call lst_do_strip_mine.
312         * graphite-poly.h (lst_add_loop_under_loop): New.
313         (lst_find_first_pbb): New.
314
315 2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>
316
317         * graphite-poly.c (loop_to_lst): Fix LST creation.
318
319 2009-10-14  Tobias Grosser  <grosser@fim.uni-passau.de>
320
321         * testsuite/gcc.dg/graphite/id-15.c: (8 * 8) replaced with
322         sizeof(unsigned long) to make it run on 32bit systems.
323
324 2009-10-14  Tobias Grosser  <grosser@fim.uni-passau.de>
325
326         * testsuite/gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
327         SEGFAULT on 32bit.
328
329 2009-10-14  Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
330
331         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
332         Comment.
333         (write_alias_graph_to_ascii_dot): New.
334         (write_alias_graph_to_ascii_ecc): Ditto.
335         (partition_drs_to_sets): Add testing of optimality of current method
336         which assigns alias numbers according to DFS Comopnent number.  used
337         as heuristic for the upcoming ECC algorithm.
338         (build_scop_drs): Write to file also with the ecc and dot format.
339
340 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
341
342         * gfortran.dg/graphite/interchange-1.f: XFail.
343
344 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
345
346         * graphite.c (graphite_initialize): Do not handle functions with
347         more than 100 basic blocks.
348
349 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
350
351         * graphite-blocking.c (pbb_do_strip_mine): Use
352         PARAM_LOOP_BLOCK_TILE_SIZE.
353
354 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
355
356         * graphite-poly.c (dot_lst_1): New.
357         (dot_lst): New.
358         * graphite-poly.h (dot_lst): Declared.
359
360 2009-10-13  Sebastian Pop  <sebastian.pop@amd.com>
361
362         * graphite-dependences.c (dot_deps_stmt_1): New.
363         (dot_deps_stmt): New.
364         * graphite-dependences.h (dot_deps_stmt): Declared.
365
366 2009-10-09  Sebastian Pop  <sebastian.pop@amd.com>
367
368         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
369         not replace cross BB scalar dependences ending on PHI nodes.
370         (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
371
372 2009-10-09  Sebastian Pop  <sebastian.pop@amd.com>
373
374         * graphite-poly.c (apply_poly_transforms): Implement the high
375         level driver for flag_loop_block.
376         * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
377         flag_loop_block.
378
379         * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
380         -floop-block.
381         * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
382         Add -floop-block.
383
384 2009-10-09  Sebastian Pop  <sebastian.pop@amd.com>
385
386         * graphite-poly.h (lst_find_pbb): New.
387         (find_lst_loop): New.
388
389 2009-10-09  Sebastian Pop  <sebastian.pop@amd.com>
390
391         * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
392         * graphite-poly.h (struct scop): Remove dep_graph field.
393         (SCOP_DEP_GRAPH): Removed.
394
395 2009-10-09  Sebastian Pop  <sebastian.pop@amd.com>
396
397         * graphite-poly.h (copy_lst): Do full copy of LST.
398
399 2009-10-07  Sebastian Pop  <sebastian.pop@amd.com>
400
401         * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
402         when the loop stride is zero.
403
404         * gcc.dg/graphite/id-16.c: New.
405
406 2009-10-06  Sebastian Pop  <sebastian.pop@amd.com>
407
408         * graphite-dependences.c (reduction_dr_1): New.
409         (reduction_dr_p): New.
410         (graphite_legal_transform_dr): Call reduction_dr_p.
411         (reduction_ddr): Renamed reduction_ddr_p.
412         * graphite-poly.h (same_pdr_p): New.
413         (number_of_write_pdrs): New.
414         * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
415         (split_reduction_stmt): Do not split reduction statements
416         when there are no writes to memory.
417         (translate_scalar_reduction_to_array_for_stmt): Insert the
418         memory reduction statement just after the scalar reduction statement.
419
420         * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
421         Un-XFAIL-ed.
422         * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
423         * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
424
425 2009-10-06  Sebastian Pop  <sebastian.pop@amd.com>
426
427         * graphite-interchange.c (lst_apply_interchange): New.
428         (lst_interchange_profitable_p): New.
429         (lst_try_interchange_loops): New.
430         (lst_try_interchange): New.
431         (lst_do_interchange): New.
432         (pbb_do_interchange): Removed.
433         (scop_do_interchange): Call lst_do_interchange.
434
435 2009-10-06  Sebastian Pop  <sebastian.pop@amd.com>
436
437         * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
438         SCOP_TRANSFORMED_SCHEDULE.
439         (loop_to_lst): New.
440         (scop_to_lst): New.
441         (print_lst): New.
442         (debug_lst): New.
443         * graphite-poly.h (lst_p): New.
444         (struct lst): New.
445         (LST_LOOP_P): New.
446         (LST_LOOP_FATHER): New.
447         (LST_PBB): New.
448         (LST_SEQ): New.
449         (scop_to_lst): Declared.
450         (print_lst): Declared.
451         (debug_lst): Declared.
452         (new_lst_loop): New.
453         (new_lst_stmt): New.
454         (copy_lst): New.
455         (lst_depth): New.
456         (lst_dewey_number): New.
457         (struct scop): Add original_schedule and transformed_schedule fields.
458         (SCOP_ORIGINAL_SCHEDULE): New.
459         (SCOP_TRANSFORMED_SCHEDULE): New.
460         * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
461
462 2009-10-05  Sebastian Pop  <sebastian.pop@amd.com>
463
464         * graphite-dependences.c (reduction_ddr): New.
465         (graphite_legal_transform_bb): Call reduction_ddr.
466         * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
467         Initialize PBB_IS_REDUCTION.
468         * graphite-poly.h (struct poly_bb): New bool field is_reduction.
469         (PBB_IS_REDUCTION): New.
470         (new_poly_bb): Update declaration.
471         * graphite-scop-detection.h (build_scop_bbs): Removed.
472         (nb_reductions_in_loop): Removed.
473         * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
474         parameter for reductions.
475         (try_generate_gimple_bb): Update call to new_poly_bb.
476         (build_scop_bbs_1): Same.
477         (build_scop_bbs): Same.
478         (gsi_for_phi_node): New.
479         (scalar_close_phi_node_p): Remove gcc_assert.
480         (split_reduction_stmt): New.
481         (is_reduction_operation_p): New.
482         (phi_contains_arg): New.
483         (follow_ssa_with_commutative_ops): New.
484         (detect_commutative_reduction_arg): New.
485         (detect_commutative_reduction_assign): New.
486         (follow_inital_value_to_phi): New.
487         (edge_initial_value_for_loop_phi): New.
488         (initial_value_for_loop_phi): New.
489         (detect_commutative_reduction): New.
490         (translate_scalar_reduction_to_array_for_stmt): New.
491         (insert_copyout): New.
492         (insert_copyin): New.
493         (translate_scalar_reduction_to_array): New.
494         (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
495         (rewrite_commutative_reductions_out_of_ssa_loop): New.
496         (rewrite_commutative_reductions_out_of_ssa): New.
497         (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
498         * sese.h (split_region_for_bb): New.
499
500         * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
501         * gcc.dg/graphite/interchange-1.c: Fix format.
502         * gcc.dg/graphite/interchange-10.c: New.
503
504 2009-10-05  Sebastian Pop  <sebastian.pop@amd.com>
505
506         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
507         buggy assert.
508
509 2009-10-05  Sebastian Pop  <sebastian.pop@amd.com>
510
511         * graphite-sese-to-poly.c (scev_analyzable_p): New.
512         (rewrite_cross_bb_scalar_dependence): New.
513         (rewrite_cross_bb_scalar_deps): New.
514         (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
515         Call rewrite_cross_bb_scalar_deps.
516
517 2009-10-05  Sebastian Pop  <sebastian.pop@amd.com>
518
519         * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
520         (insert_out_of_ssa_copy): Directly use gsi_after_labels and
521         gsi_for_stmt.
522
523 2009-10-05  Sebastian Pop  <sebastian.pop@amd.com>
524
525         * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
526         * graphite-interchange.c (pbb_do_interchange): Same.
527         * graphite-poly.c (print_scattering_function): Same.
528         (debug_pdrs): Same.
529         * graphite-poly.h (pbb_loop): New.
530         * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
531
532 2009-09-27  Sebastian Pop  <sebastian.pop@amd.com>
533
534         * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
535
536 2009-09-27  Sebastian Pop  <sebastian.pop@amd.com>
537
538         * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
539         so don't pass a pointer to it.
540         (build_alias_set_for_drs): Same.
541         (build_base_obj_set_for_drs): Same.
542         (build_scop_drs): Same.
543
544 2009-09-26  Li Feng  <nemokingdom@gmail.com>
545
546         * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
547         the alias graph of data references.
548
549 2009-09-25  Li Feng  <nemokingdom@gmail.com>
550
551         * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
552         (build_scop_drs): When debugging, write the alias graph to file,
553         otherwise, should be disabled.
554
555 2009-09-17  Sebastian Pop  <sebastian.pop@amd.com>
556
557         * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
558         (is_simple_operand): Remove call to stmt_simple_memref_p.
559         (stmt_simple_for_scop_p): Update call to is_simple_operand.
560
561 2009-09-17  David Edelsohn  <edelsohn@gnu.org>
562
563         * testsuite/gcc.dg/graphite/interchange-mvt.c: New File.
564         * testsuite/gcc.dg/graphite/scop-dsyrk.c: New File.
565         * testsuite/gcc.dg/graphite/scop-dsyr2k.c: New File.
566         * testsuite/gcc.dg/graphite/scop-mvt.c: New File.
567         * testsuite/gcc.dg/graphite/scop-sor.c: New File.
568
569 2009-09-17 Li Feng  <nemokingdom@gmail.com>
570
571         PR middle-end/41118
572         * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
573         (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
574         (graphite_carried_dependence_level_k): Ditto.
575         * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
576         * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
577         (new_poly_dr): Adjust declaration.
578         * graphite-sese-to-poly.c (free_data_refs_aux): New.
579         (free_gimple_bb): Added free_data_refs_aux.
580         (build_poly_dr): Add dr_base_object_set.
581         (partition_drs_to_sets): New.
582         (dr_same_base_object_p): New.
583         (build_alias_set_for_drs): New.
584         (build_base_object_set_for_drs): New.
585         (build_scop_drs): Add build_base_obj_set_for_drs.
586         * graphite-sese-to-poly.h: Added #define for alias set number index and
587         base object set index.
588         * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
589         * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
590
591 2009-09-16  Alexander Monakov  <amonakov@ispras.ru>
592
593         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
594         for ARRAY_REFs.  Use array_ref_{low,up}_bound to determine bounds.
595
596 2009-09-14  Sebastian Pop  <sebastian.pop@amd.com>
597
598         * graphite-sese-to-poly.c (struct irp_data): Removed.
599         (idx_record_params): Removed.
600         (find_params_in_bb): Scan for parameters the access functions; don't
601         parse the tree representation.
602
603 2009-09-14  Sebastian Pop  <sebastian.pop@amd.com>
604
605         * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
606         passes at -O1 and below.
607
608 2009-09-14  Sebastian Pop  <sebastian.pop@amd.com>
609
610         * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
611         tree-scalar-evolution.h, and then tree-data-ref.h.
612         * graphite-clast-to-gimple.c: Same.
613         * graphite-dependences.c: Same.
614         * graphite-interchange.c: Same.
615         * graphite-poly.c: Same.
616         * graphite-scop-detection.c: Same.
617         * graphite-sese-to-poly.c: Same.
618         * graphite.c: Same.
619         * lambda-code.c: Same.
620         * matrix-reorg.c: Same.
621         * tree-data-ref.c: Same.
622         * tree-if-conv.c: Same.
623         * tree-loop-distribu: Same.: Same.
624         * tree-loop-linear.c: Same.
625         * tree-parloops.c: Same.
626         * tree-predcom.c: Same.
627         * tree-vect-patterns.c: Same.
628
629 2009-09-02  Sebastian Pop  <sebastian.pop@amd.com>
630
631         Partially revert the previous patch, except the following.
632         * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
633         as parameters the operands of the not expression.
634
635 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
636
637         * tree-scalar-evolution.c (instantiate_scev_assign): New.
638         Do not call analyze_scalar_evolution on assignments.
639         (instantiate_scev_phi): Call analyze_scalar_evolution.
640         (instantiate_scev_name): Call instantiate_scev_assign and
641         instantiate_scev_phi.
642         (instantiate_scev_not): Adapted to pass as parameters the operands
643         of the not expression.
644
645 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
646
647         * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
648         to pass as parameters the operands of the binary expression.
649
650 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
651
652         * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
653         instantiate_scev_not.  Handle NEGATE_EXPR.
654         (instantiate_scev_r): Handle NEGATE_EXPR.
655
656 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
657
658         * tree-scalar-evolution.c (instantiate_scev_1): Renamed
659         instantiate_scev_r.
660         (instantiate_scev_r): Move code in instantiate_scev_2
661         and instantiate_scev_1.
662
663 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
664
665         * tree-scalar-evolution.c (instantiate_scev_3): New.
666         (instantiate_scev_1): Move code in instantiate_scev_3.
667
668 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
669
670         * tree-scalar-evolution.c (instantiate_scev_poly): New.
671         (instantiate_scev_1): Move code in instantiate_scev_poly.
672
673 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
674
675         * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
676         (instantiate_scev_1): Move code in instantiate_scev_bitnot.
677
678 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
679
680         * tree-scalar-evolution.c (instantiate_scev_convert): New.
681         (instantiate_scev_1): Move code in instantiate_scev_convert.
682
683 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
684
685         * tree-scalar-evolution.c (instantiate_scev_binary): New.
686         (instantiate_scev_1): Move code in instantiate_scev_binary.
687
688 2009-09-01  Sebastian Pop  <sebastian.pop@amd.com>
689
690         * tree-scalar-evolution.c (instantiate_scev_name): New.
691         (instantiate_scev_1): Move code in instantiate_scev_name.
692
693 2009-08-28  Sebastian Pop  <sebastian.pop@amd.com>
694
695         * Merge from mainline (150992:151171).
696
697 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
698
699         * graphite-dependences.c (graphite_legal_transform_bb): Call
700         pbb_remove_duplicate_pdrs.
701         * graphite-poly.c (can_collapse_pdr): Removed.
702         (pdr_find_duplicate): Removed.
703         (can_collapse_pdrs): New.
704         (pbb_remove_duplicate_pdrs): New.
705         (new_poly_dr): Do not look for duplicates.
706         * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
707         (PBB_PDR_DUPLICATES_REMOVED): New.
708         (pbb_remove_duplicate_pdrs): Declared.
709
710 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
711
712         * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
713         the strides by multiplying by PDR_NB_REFS.
714         * graphite-poly.c (can_collapse_pdr): New.
715         (pdr_find_duplicate): New.
716         (new_poly_dr): Call pdr_find_duplicate.  Collapse duplicate PDRs.
717         Initialize PDR_NB_REFS.
718         * graphite-poly.h (struct poly_dr): Add field nb_refs.
719         (PDR_NB_REFS): New.
720         (new_poly_dr): Number of subscripts is a graphite_dim_t.
721
722 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
723
724         Revert one of the previous commits:
725         * graphite-dependences.c (graphite_legal_transform_bb): Avoid
726         the computation of symmetric data dependence relations.
727         (dependency_between_pbbs_p): Same.
728
729 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
730
731         PR middle-end/40965
732         * graphite-poly.c (apply_poly_transforms): Remove legality test before
733         any transform.
734
735 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
736
737         * graphite-dependences.c (pddr_original_scattering): Return NULL
738         for read-read dependence relations.
739         * graphite-poly.h (enum poly_dr_type): Fix comment.
740         (pdr_read_p): New.
741         (pdr_write_p): New.
742         (pdr_may_write_p): New.
743
744 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
745
746         * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
747         (struct poly_dr): Same.
748         (new_poly_dr): Same.
749         * graphite-poly.c (new_poly_dr): Same.
750
751 2009-08-25  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
752             Sebastian Pop  <sebastian.pop@amd.com>
753
754         * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
755         pbb_strip_mine_time_depth.  Changed the implementation so that
756         transformation is expressed as a transformation on
757         time (scatttering) dimensions.  Also, ensures that the 2d+1
758         scheduling format is preserved.
759         (pbb_strip_mine_profitable_p): Profitability is based on the
760         iteration number of a given time (scattering) dimension,
761         and not on a original loop depth dimension.
762         (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
763         (pbb_do_strip_mine): Call psct_dynamic_dim.
764         * graphite-poly.c (pbb_number_of_iterations_at_time): New.
765         * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
766         (pbb_nb_dynamic_scattering_transform): New.
767         (psct_dynamic_dim): New.
768
769 2009-08-25  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
770
771         * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
772         * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
773         * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
774         * graphite-interchange.c (build_linearized_memory_access): Same.
775         (memory_stride_in_loop): Same.
776
777 2009-08-25  Sebastian Pop  <sebastian.pop@amd.com>
778
779         * graphite-dependences.c (pddr_original_scattering): New.
780         (graphite_legal_transform_dr): Call pddr_original_scattering.
781         (dot_deps_1): New.
782         (dot_deps): New.
783         * graphite-dependences.h (dot_deps): Declared.
784         * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
785         (print_pdr): Print PDR_ID.
786         * graphite-poly.h (struct poly_dr): Add field id.
787         (PDR_ID): New.
788         (pbb_index): New.
789         * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
790
791 2009-08-22  Sebastian Pop  <sebastian.pop@amd.com>
792
793         * graphite-dependences.c (graphite_carried_dependence_level_k): Do
794         not delete the original dependence relation.
795
796 2009-08-21  Sebastian Pop  <sebastian.pop@amd.com>
797
798         * graphite-dependences.c (graphite_legal_transform_bb): Avoid
799         the computation of symmetric data dependence relations.
800         (dependency_between_pbbs_p): Same.
801
802 2009-08-21  Sebastian Pop  <sebastian.pop@amd.com>
803
804         * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
805         (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
806         (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
807         (free_poly_ddr): New.
808         (pddr_is_empty): New.
809         (dependence_polyhedron_1): Now returns a poly_ddr_p.
810         (dependence_polyhedron): Same.  Remove useless gcc_assert.
811         Remove fprintfs.
812         (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
813         (graphite_carried_dependence_level_k): Call pddr_is_empty.
814         * graphite-dependences.h (enum poly_dependence_kind): New.
815         (poly_dr_pair): Renamed poly_ddr.  Added a field kind.
816         (PDRP_SOURCE): Renamed PDDR_SOURCE.
817         (PDRP_SINK): Renamed PDDR_SINK.
818         (PDRP_DDP): Renamed PDDR_DDP.
819         (PDDR_KIND): New.
820         (free_poly_ddr): Declared.
821         * graphite-poly.c (new_scop): Use the new hash function names.
822         * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
823         into original_pddrs.
824         (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
825
826 2009-08-21  Sebastian Pop  <sebastian.pop@amd.com>
827
828         * Merge from mainline (150764:150992).
829
830 2009-08-18  Sebastian Pop  <sebastian.pop@amd.com>
831
832         * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
833         bounds with LT_EXPR to make niter analysis more precise on code
834         generated by Graphite.
835
836 2009-08-18  Sebastian Pop  <sebastian.pop@amd.com>
837
838         * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
839         (graphite_legal_transform_bb): Same.
840         (poly_drs_may_alias_p): Same.
841
842 2009-08-15  Sebastian Pop  <sebastian.pop@amd.com>
843
844         PR middle-end/40981
845         * graphite-ppl.c (ppl_max_for_le): Correct the use of
846         ppl_Pointset_Powerset_C_Polyhedron_maximize.
847
848 2009-08-13  Sebastian Pop  <sebastian.pop@amd.com>
849
850         * graphite-poly.c (print_pbb): Print PBB index.
851
852 2009-08-13  Sebastian Pop  <sebastian.pop@amd.com>
853
854         * Merge from mainline (r150672:150764).
855
856 2009-08-13  Sebastian Pop  <sebastian.pop@amd.com>
857
858         * graphite-interchange.c (ppl_max_for_le): Moved...
859         * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
860         * graphite-ppl.c (ppl_max_for_le): ... here.
861         * graphite-ppl.h (ppl_max_for_le): Declared.
862
863 2009-08-12  Sebastian Pop  <sebastian.pop@amd.com>
864
865         * Merge from mainline (r150372:150672).
866
867 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
868
869         PR middle-end/40980
870         * sese.c (convert_for_phi_arg): New.
871         (add_guard_exit_phis): Use convert_for_phi_arg.
872
873         * testsuite/gfortran.dg/graphite/id-17.f: New.
874
875 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
876
877         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
878         unknown subscript upper bounds.
879
880         * testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL.
881
882 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
883             Pranav Garg  <pranav.garg2107@gmail.com>
884
885         * graphite-interchange.c (gather_access_strides): Removed.
886         (ppl_max_for_le): New.
887         (build_linearized_memory_access): New.
888         (memory_stride_in_loop): New.
889         (pbb_interchange_profitable_p): Reimplemented.
890         * graphite-ppl.h (ppl_new_id_map): New.
891         (ppl_interchange): New.
892
893         * testsuite/gcc.dg/graphite/interchange-6.c: XFAILed.
894
895 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
896
897         * graphite-interchange.c (compute_subscript): Removed.
898         (compute_array_size_cstr): Removed.
899         (compute_array_size_poly): Removed.
900         (compute_array_size): Removed.
901         (gather_access_strides_poly): Removed.
902         (gather_access_strides): Empty.
903
904 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
905
906         * graphite-dependences.c (dependence_polyhedron_1): Replace
907         pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
908         (graphite_legal_transform_dr): Same.
909         (graphite_carried_dependence_level_k): Same.
910         * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
911         Initialize PDR_NB_SUBSCRIPTS.
912         (print_pdr_access_layout): Replace pdr_nb_subscripts with
913         PDR_NB_SUBSCRIPTS.
914         * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
915         (PDR_NB_SUBSCRIPTS): New.
916         (pdr_nb_subscripts): Removed.
917         (pdr_dim): Simplified.
918         * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
919         with PDR_NB_SUBSCRIPTS.
920
921 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
922
923         * graphite-interchange.c (compute_array_size): Remove use of
924         PDR_DATA_CONTAINER.
925         * graphite-poly.c (new_poly_dr): Remove argument data_container.
926         Do not initialize PDR_DATA_CONTAINER.
927         (print_pdr): Do not print PDR_DATA_CONTAINER.
928         * graphite-poly.h (struct poly_dr): Remove data_container field.
929         (PDR_DATA_CONTAINER): Removed.
930         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
931         PDR_DATA_CONTAINER.
932         (build_poly_dr): Same.
933
934 2009-08-11  Sebastian Pop  <sebastian.pop@amd.com>
935
936         * testsuite/gcc.dg/graphite/interchange-9.c: New.
937
938 2009-08-05  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
939             Sebastian Pop  <sebastian.pop@amd.com>
940
941         * graphite-dependences.c (graphite_legal_transform_dr): Work on a
942         copy of the dependence polyhedron.  Free the temporary objects.
943         (graphite_carried_dependence_level_k): Free unused objects before
944         returning.
945
946         * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
947         * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
948         * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
949         * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
950         * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
951
952 2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
953
954         * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
955         Early return without analyzing the data dependences if no
956         transform has been done.  Call restore_scattering if the transform
957         is not legal.
958         (graphite-interchange.c): Same.
959         * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
960         (graphite_read_transforms): Initialize PBB_TRANSFORMED.
961         (apply_poly_transforms): Do not gcc_assert that
962         the transform is legal.
963         (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
964         Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
965         PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
966         (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
967         * graphite-poly.h (struct poly_scattering): New.
968         (struct poly_bb): Add original, transformed, and saved fields.
969         Remove transformed_scattering, original_scattering, nb_local_variables,
970         and nb_scattering_transform fields.
971         (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
972         (poly_scattering_new): New.
973         (poly_scattering_free): New.
974         (poly_scattering_copy): New.
975         (store_scattering_pbb): New.
976         (store_scattering): New.
977         (restore_scattering_pbb): New.
978         (restore_scattering): New.
979         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
980         Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
981
982 2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
983
984         * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
985         (print_scop): Same.
986
987 2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
988
989         * Makefile.in (graphite.o): Depends on PREDICT_H.
990         * graphite.c: Include predict.h.
991         (graphite_finalize): Call tree_estimate_probability.
992         * predict.c (predict_loops): Do not call scev_initialize and
993         scev_finalize.
994         (tree_estimate_probability_bb): New.
995         (tree_estimate_probability): Do not initialize loops: move that
996         code to the driver.  Call tree_estimate_probability_bb.
997         (tree_estimate_probability_driver): New.
998         (pass_profile): Use tree_estimate_probability_driver.
999         * predict.h (tree_estimate_probability): Declared.
1000
1001 2009-08-05  Sebastian Pop  <sebastian.pop@amd.com>
1002
1003         * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
1004         * graphite-dependences.c (graphite_legal_transform): Add time to
1005         TV_GRAPHITE_DATA_DEPS.
1006         (dependency_between_pbbs_p): Same.
1007         * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
1008
1009 2009-08-03  Sebastian Pop  <sebastian.pop@amd.com>
1010
1011         * Merge from mainline (r149952:150372).
1012
1013 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1014
1015         * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
1016         * graphite-blocking.c: Same.
1017         * graphite-clast-to-gimple.c: Same.
1018         * graphite-dependences.c: Same.
1019         * graphite-poly.c: Same.
1020         * graphite-poly.h: Same.
1021         * graphite-ppl.c: Same.
1022         * graphite-scop-detection.c: Same.
1023         * graphite-sese-to-poly.c: Same.
1024         * graphite.c: Same.
1025
1026 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1027
1028         * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
1029         (remove_simple_copy_phi): New.
1030         (remove_invariant_phi): New.
1031         (simple_copy_phi_p): New.
1032         (reduction_phi_p): New.
1033         (gsi_for_ssa_name_def): New.
1034         (insert_out_of_ssa_copy): New.
1035         (insert_out_of_ssa_copy_on_edge): New.
1036         (create_zero_dim_array): New.
1037         (scalar_close_phi_node_p): New.
1038         (rewrite_close_phi_out_of_ssa): New.
1039         (rewrite_phi_out_of_ssa): New.
1040         (rewrite_reductions_out_of_ssa): New.
1041         (build_poly_scop): Call rewrite_reductions_out_of_ssa.
1042
1043         * testsuite/gcc.dg/graphite/id-11.c: New.
1044         * testsuite/gcc.dg/graphite/id-15.c: New.
1045         * testsuite/gcc.dg/graphite/interchange-1.c: Un-XFAIL.
1046         * testsuite/gcc.dg/graphite/interchange-2.c: Un-XFAIL.
1047         * testsuite/gcc.dg/graphite/interchange-3.c: Un-XFAIL.
1048         * testsuite/gcc.dg/graphite/interchange-4.c: Un-XFAIL.
1049         * testsuite/gcc.dg/graphite/interchange-7.c: Un-XFAIL.
1050         * testsuite/gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
1051         * testsuite/gfortran.dg/graphite/id-13.f: New.
1052         * testsuite/gfortran.dg/graphite/id-5.f: New.
1053
1054 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1055
1056         * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
1057         check that nb_reductions_in_loop is zero.
1058         * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
1059         reduction phi nodes.
1060         (nb_reductions_in_loop): Removed.
1061         (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
1062         * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
1063         (bb_contains_non_iv_scalar_phi_nodes): Removed.
1064         (scop_contains_non_iv_scalar_phi_nodes): Removed.
1065         (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
1066
1067 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1068
1069         * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
1070         statements that have an empty iteration domain.
1071         * testsuite/gfortran.dg/graphite/id-16.f: New.
1072
1073 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1074
1075         * tree-scalar-evolution.c (instantiate_scev_1): Return
1076         chrec_dont_know when the result is not above instantiate_below.
1077         * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
1078         * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
1079         the tree has a known scalar evolution.
1080         * testsuite/gfortran.dg/graphite/id-14.f: New.
1081         * testsuite/gfortran.dg/graphite/id-15.f: New.
1082
1083 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1084
1085         * sese.c (rename_variables_in_stmt): Pass in an extra parameter
1086         insert_gsi.
1087         (rename_variables): Keep inserting renames after the ones already
1088         inserted.
1089
1090 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1091
1092         * graphite-sese-to-poly.c (compare_bb_depths): New.
1093         (graphite_sort_dominated_info): New.
1094         (build_scop_bbs_1): Call graphite_sort_dominated_info.
1095         (build_scop_scattering): Fix comment.
1096
1097 2009-07-28  Sebastian Pop  <sebastian.pop@amd.com>
1098
1099         * graphite.c (graphite_finalize): Call print_loops instead of
1100         dump_function_to_file.
1101         * testsuite/gcc.dg/graphite/graphite.exp: Fix formatting.
1102         * testsuite/gcc.dg/graphite/pr35356-1.c: New.  Look for the number of
1103         loops generated in the graphite output file.
1104         * testsuite/gcc.dg/graphite/pr35356-2.c: New.
1105         * testsuite/gcc.dg/graphite/pr35356-3.c: New.  XFAILed for now.
1106         * testsuite/gfortran.dg/graphite/id-12.f: New.
1107
1108 2009-07-24  Li Feng  <nemokingdom@gmail.com>
1109
1110         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
1111         Remove 2 XFAIL.
1112
1113 2009-07-24  Li Feng  <nemokingdom@gmail.com>
1114             Tobias Grosser  <grosser@fim.uni-passau.de>
1115
1116         * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
1117         alias set number build alias in ACCESSES polyhedron.
1118         (build_alias_set_for_drs): New.
1119         (build_pbb_drs): Added build_alias_set_for_drs.
1120         * graphite-dependences.c (poly_drs_may_alias_p): New.
1121         (graphite_carried_dependence_level_k): Check alias information
1122         before building polyhedron.
1123
1124 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
1125
1126         * Makefile.in (lambda-code.o): Fix formatting.
1127
1128 2009-07-24  Tobias Grosser  <grosser@fim.uni-passau.de>
1129
1130         * Merge from mainline (r149350-149952)
1131
1132 2009-07-18  Tobias Grosser  <grosser@fim.uni-passau.de>
1133
1134         * graphite-poly.c (apply_poly_transforms): Move strip_mine
1135         before interchange to prepare for loop blocking.
1136
1137 2009-07-18  Tobias Grosser  <grosser@fim.uni-passau.de>
1138
1139         * graphite-poly.c (apply_poly_transforms): Add checks after every
1140         transformation.
1141         * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
1142         done in apply_poly_transforms.
1143
1144 2009-07-17  Konrad Trifunovic  <konrad.trifunovic@gmail.com>
1145
1146         * graphite-dependences.c (build_lexicographically_gt_constraint):
1147         Replace RES parameter with *RES.
1148         (dependence_polyhedron_1): Pass an address of the parameter RES
1149         instead of value of RES.
1150
1151 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1152
1153         * graphite.c (graphite_finalize): Fix comment.
1154         (graphite_transform_loops): Reset scev info after code generation
1155         of each scop.
1156
1157 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1158
1159         * graphite.c (graphite_finalize): Call scev_reset.
1160
1161 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1162
1163         * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
1164         GBB_CLOOG_IV_TYPES hash table twice.
1165         * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
1166         (add_condition_to_domain): Clear GMP values.
1167
1168 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1169
1170         * graphite-dependences.c: Fix formatting.
1171         * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
1172         (pbb_number_of_iterations): Free ppl_Linear_Expression.
1173         * graphite-sese-to-poly.c: Fix formatting.
1174         * graphite.c (graphite_transform_loops): Create the hash table
1175         after the early return.
1176
1177 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1178
1179         * testsuite/gcc.dg/graphite/id-14.c: New.
1180         * testsuite/gcc.dg/graphite/pr40157.c: New.
1181         * testsuite/gfortran.dg/graphite/id-11.f: New.
1182
1183 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1184
1185         * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
1186         (build_poly_scop): Return false when there are no pbbs within
1187         loops to avoid to pass to cloog scops with no loops.
1188
1189 2009-07-16  Sebastian Pop  <sebastian.pop@amd.com>
1190
1191         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
1192         useless test "i % 2".
1193         (build_pbb_scattering_polyhedrons): Fix formatting.
1194         (build_poly_dr): Same.
1195         * graphite.c (graphite_transform_loops): Restructure.
1196
1197 2009-07-14  Razya Ladelsky  <razya@il.ibm.com>
1198
1199         * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
1200         reduction_list parameter.
1201         (rewrite_all_phi_nodes_with_iv): Same.
1202         (canonicalize_loop_ivs): Same.
1203         * tree-parloops.c (struct brli): Removed.
1204         (build_reduction_list_info): Removed.
1205         (build_new_reduction): New.
1206         (analyze_reduction_list): Removed.
1207         (gather_scalar_reductions): Find reductions instead of phi
1208         nodes that can't be canonicalized.
1209         (try_create_reduction_list): Remove reduction_list parameter.
1210         (gen_parallel_loop): Same.
1211         (parallelize_loops): Remove analyze_reductions variable,
1212         initialization and free.
1213         Change reduction_list htab initialization to reduction_info
1214         elements instead of ssa names.
1215         Call try_create_reduction_list and gen_parallel_loop without
1216         analyzed_reduction argument.
1217         * graphite-clast-to-gimple (graphite_loop_normal_form): Call
1218         canonicalize_loop_ivs with one less argument.
1219         * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
1220
1221 2009-07-14  Konrad Trifunovic <konrad.trifunovic@gmail.com>
1222
1223         * graphite-dependences.c (new_poly_dr_pair): New.
1224         (dependence_polyhedron): Renamed into dependence_polyhedron_1.
1225         (new_poly_dr_pair): New.
1226         (eq_poly_dr_pair_p): New.
1227         (hash_poly_dr_pair_p): New.
1228         * graphite-dependences.h (struct poly_dr_pair): New.
1229         (eq_poly_dr_pair_p): Declared.
1230         (hash_poly_dr_pair_p): Declared.
1231         * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
1232         (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
1233         * graphite-poly.h (struct scop): Add original_pdr_pairs field.
1234         * Makefile.in (graphite-poly.o): Add dependence on
1235         graphite-dependences.h.
1236
1237 2009-07-14  Sebastian Pop  <sebastian.pop@amd.com>
1238
1239         * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
1240         polynomials of degree > 1 pass to Graphite.
1241         * tree-chrec.c (scev_is_linear_expression): Call
1242         evolution_function_is_affine_multivariate_p.
1243         * testsuite/gfortran.dg/graphite/id-10.f90: New.
1244
1245 2009-07-14  Sebastian Pop  <sebastian.pop@amd.com>
1246
1247         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
1248         Instantiate scevs varying in outer loops.
1249         * testsuite/gfortran.dg/graphite/id-9.f: Correct testcase.
1250
1251 2009-07-14  Sebastian Pop  <sebastian.pop@amd.com>
1252
1253         * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
1254         redundant constraint.
1255
1256 2009-07-14  Sebastian Pop  <sebastian.pop@amd.com>
1257
1258         * testsuite/gcc.dg/graphite/graphite.exp: Fix comments.
1259         * testsuite/gfortran.dg/graphite/graphite.exp: Trigger actions
1260         based on the file names as in the C testsuite.
1261         * testsuite/gfortran.dg/graphite/block-1.f90: Fix patterns.
1262         * testsuite/gfortran.dg/graphite/block-2.f: Same.
1263         * testsuite/gfortran.dg/graphite/block-3.f90: Same.
1264         * testsuite/gfortran.dg/graphite/block-4.f90: Same.
1265         * testsuite/gfortran.dg/graphite/id-1.f90: Same.
1266         * testsuite/gfortran.dg/graphite/id-2.f90: Same.
1267         * testsuite/gfortran.dg/graphite/id-3.f90: Same.
1268         * testsuite/gfortran.dg/graphite/id-4.f90: Same.
1269         * testsuite/gfortran.dg/graphite/id-6.f: Same.
1270         * testsuite/gfortran.dg/graphite/id-9.f: Same.
1271         * testsuite/gfortran.dg/graphite/interchange-1.f: Same.
1272         * testsuite/gfortran.dg/graphite/interchange-2.f: Same.
1273         * testsuite/gfortran.dg/graphite/scop-1.f: Same.
1274
1275 2009-07-14  Sebastian Pop  <sebastian.pop@amd.com>
1276
1277         * sese.c (expand_scalar_variables_call): New.
1278         (expand_scalar_variables_ssa_name): Handle calls in expander.
1279
1280 2009-07-13  Sebastian Pop  <sebastian.pop@amd.com>
1281
1282         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
1283         Expect to see the pattern twice.
1284         * testsuite/gcc.dg/graphite/interchange-0.c: Un-XFAIL.
1285         * testsuite/gcc.dg/graphite/interchange-5.c: Same.
1286         * testsuite/gcc.dg/graphite/interchange-6.c: Same.
1287
1288 2009-07-13  Sebastian Pop  <sebastian.pop@amd.com>
1289
1290         * testsuite/gcc.dg/graphite/id-10.c: New.
1291         * testsuite/gcc.dg/graphite/id-12.c: New.
1292         * testsuite/gfortran.dg/graphite/id-7.f: New.
1293         * testsuite/gfortran.dg/graphite/id-8.f: New.
1294
1295 2009-07-13  Sebastian Pop  <sebastian.pop@amd.com>
1296
1297         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
1298         zero.
1299
1300 2009-07-13  Sebastian Pop  <sebastian.pop@amd.com>
1301
1302         * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
1303
1304 2009-07-13  Sebastian Pop  <sebastian.pop@amd.com>
1305
1306         * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
1307
1308 2009-07-10  Sebastian Pop  <sebastian.pop@amd.com>
1309
1310         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
1311         building PDR subscripts.
1312
1313 2009-07-10  Sebastian Pop  <sebastian.pop@amd.com>
1314
1315         * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
1316         computation of array sizes.
1317
1318 2009-07-10  Sebastian Pop  <sebastian.pop@amd.com>
1319
1320         * graphite-sese-to-poly.c (add_param_constraints): Disabled.
1321
1322 2009-07-10  Tobias Grosser  <grosser@fim.uni-passau.de>
1323
1324         * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
1325         build_pairwise_constraint, dr_equality_constraints,
1326         build_pairwise_scheduling_equality,
1327         build_pairwise_scheduling_inequality, lexicographically_gt_p,
1328         build_lexicographically_gt_constraint, dependence_polyhedron,
1329         graphite_legal_transform_dr, graphite_carried_dependence_level_k):
1330         Move from NNC_Polyhedron to C_Polyhedron.
1331         * graphite-interchange.c (compute_array_size_poly,
1332         gather_access_strides): Dito.
1333         * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
1334         free_scop, pbb_number_of_iterations): Dito.
1335         * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
1336         pbb_dim_iter_domain, struct scop): Dito.
1337         * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
1338         new_Cloog_Domain_from_ppl_Polyhedron,
1339         new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
1340         ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
1341         ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
1342         ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
1343         debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
1344         * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
1345         new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
1346         debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
1347         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
1348         build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
1349         add_condition_to_domain, add_condition_to_pbb, build_scop_context,
1350         build_scop_iteration_domain, build_poly_dr): Dito
1351
1352 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
1353
1354         * testsuite/gcc.dg/graphite/graphite.exp: Added a rule to execute
1355         run-id-*.c files.
1356         * testsuite/gcc.dg/graphite/run-id-1.c: New.
1357
1358 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
1359
1360         * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
1361         positivity constraint on the symbolic number of iterations.
1362
1363 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
1364
1365         * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
1366
1367 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
1368             Tobias Grosser  <grosser@fim.uni-passau.de>
1369
1370         * graphite-clast-to-gimple.c (build_scop_context): Removed.
1371         (build_cloog_prog): Directly use SCOP_CONTEXT.
1372         * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
1373         (free_scop): Free SCOP_CONTEXT.
1374         (print_scop_context): New.
1375         (print_scop): Call print_scop_context.
1376         (debug_scop_context): New.
1377         * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
1378         (struct scop): Added field context.
1379         (SCOP_CONTEXT): New.
1380         * graphite-sese-to-poly.c (add_param_constraints): New.
1381         (build_scop_context): New.
1382         (build_poly_scop): Call build_scop_context.
1383
1384 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
1385
1386         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
1387         * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
1388         (ppl_set_inhomogeneous, ppl_set_coef): Moved...
1389         * graphite-ppl.h: Include double-int.h and tree.h.
1390         (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
1391         (ppl_set_inhomogeneous, ppl_set_coef): ...here.
1392         (gmp_cst_to_tree): ...here.  Reimplemented using mpz_get_double_int.
1393         (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
1394
1395 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
1396
1397         * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
1398         POINTER_PLUS_EXPR for pointer types.
1399         (clast_to_gcc_expression): Same.
1400
1401 2009-07-09  Sebastian Pop  <sebastian.pop@amd.com>
1402
1403         * graphite-poly.c (print_scattering_function): Early return when
1404         PBB_TRANSFORMED_SCATTERING is not initialized.
1405         (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
1406
1407 2009-07-08  Sebastian Pop  <sebastian.pop@amd.com>
1408
1409         * tree-parloops.c (analyze_reduction_list): Remove unused variable
1410         to fix bootstrap.
1411
1412 2009-07-08  Razya Ladelsky  <razya@il.ibm.com>
1413
1414         * tree-parloops.c (analyze_reduction_list): Change return
1415         value to void.
1416         (try_create_reduction_list): Move the call to
1417         analyze_reduction_list to the beginining.
1418         Call reduction_phi with analyzed_reductions as argument
1419         instead of reduction_list.
1420
1421 2009-07-08  Tobias Grosser  <grosser@fim.uni-passau.de>
1422
1423         *  Merge from mainline (r148296:149346)
1424
1425 2009-07-07  Sebastian Pop  <sebastian.pop@amd.com>
1426
1427         * graphite-scop-detection.c (graphite_can_represent_init): New.
1428         (graphite_can_represent_scev): Call graphite_can_represent_init:
1429         check that the initial value does not contain multiplications of
1430         parameters.
1431         (stmt_has_simple_data_refs_p): New.
1432         (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
1433         (is_simple_operand): Fix formatting.
1434         * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
1435
1436 2009-07-07  Sebastian Pop  <sebastian.pop@amd.com>
1437
1438         * testsuite/gcc.dg/graphite/id-13.c: New.
1439         * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
1440         analyze_scalar_evolution, use scalar_evolution_in_region.
1441         (scan_tree_for_params_right_scev): Add extra assert.
1442         (parameter_index_in_region_1): Split from parameter_index_in_region.
1443         (idx_record_params): Use scalar_evolution_in_region.
1444         (find_params_in_bb): Same.
1445         (find_scop_parameters): Same.
1446         (build_loop_iteration_domains): Same.
1447         (create_linear_expr_from_tree): Same.
1448         * sese.c (scalar_evolution_in_region): New.
1449         * sese.h (scalar_evolution_in_region): Declared.
1450         (defined_in_sese_p): New.
1451         * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
1452         static anymore.
1453         * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
1454         Declared.
1455
1456 2009-07-07  Sebastian Pop  <sebastian.pop@amd.com>
1457
1458         * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
1459         TREE_DATA_REF_H also implies SCEV_H.
1460
1461 2009-07-07  Sebastian Pop  <sebastian.pop@amd.com>
1462
1463         * graphite-poly.c (print_scop_params): New.
1464         (print_scop): Call print_scop_params.
1465         (debug_scop_params): New.
1466         * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
1467
1468 2009-07-07  Li Feng  <nemokingdom@gmail.com>
1469
1470         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
1471         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
1472         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
1473         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
1474         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
1475         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
1476
1477 2009-07-07  Li Feng  <nemokingdom@gmail.com>
1478
1479         * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
1480         for dependency checking part.
1481         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
1482         tests for dependency checking.
1483         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
1484         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
1485         * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
1486         flag -fdump-tree-graphite-all for autopar testsuites.
1487
1488 2009-07-06  Sebastian Pop  <sebastian.pop@amd.com>
1489
1490         * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
1491         * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
1492         canonicalize_loop_ivs): Moved...
1493         * tree-ssa-loop-manip.c: ... here.  Include langhooks.h.
1494
1495 2009-07-06  Sebastian Pop  <sebastian.pop@amd.com>
1496
1497         * tree-parloops.c (try_create_reduction_list): Pass an extra
1498         argument analyzed_reductions.  Call analyze_reduction_list.
1499         (gen_parallel_loop): Do not call analyze_reduction_list.
1500         (parallelize_loops): Init and finalize analyzed_reductions.
1501
1502 2009-07-06  Li Feng  <nemokingdom@gmail.com>
1503
1504         * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
1505         Added flag -fno-loop-strip-mine for autopar testcase.
1506
1507 2009-07-04  Li Feng  <nemokingdom@gmail.com>
1508
1509         * graphite-dependences.c (graphite_carried_dependence_level_k): Use
1510         transformed scattering dimension instead of unmatch orignal when
1511         calling dependence_polyhedron.
1512
1513 2009-06-30  Sebastian Pop  <sebastian.pop@amd.com>
1514
1515         * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
1516
1517 2009-06-30  Sebastian Pop  <sebastian.pop@amd.com>
1518
1519         * graphite-poly.c (pbb_number_of_iterations): Check for returned
1520         value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
1521
1522 2009-06-30  Sebastian Pop  <sebastian.pop@amd.com>
1523
1524         * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
1525         (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
1526         * graphite-poly.c (pbb_number_of_iterations): New.
1527         * graphite-poly.h (pbb_number_of_iterations): Declared.
1528         (pbb_iterator_dim, pbb_parameter_dim): New.
1529
1530 2009-06-29  Sebastian Pop  <sebastian.pop@amd.com>
1531
1532         * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
1533         last commit on type of lower and upper bound of loops.
1534
1535 2009-06-29  Li Feng  <nemokingdom@gmail.com>
1536
1537         * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
1538         graphite-dependences.h.
1539         * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
1540         (mark_bb_with_pbb): New.
1541         (get_stmtfor_depth): New.
1542         (find_pbb_via_hash): New.
1543         (dependency_in_loop_p): New.
1544         (mark_loops_parallel): New.
1545         (free_aux_in_new_loops): New.
1546         (translate_clast): Add parameter BB_PBB_MAPPING.  Mark newly created
1547         bb with it's relevant pbb. Mark newly created loops.  Remove mark
1548         innermost loop parallel without checking.
1549         (gloog): Add parameter BB_PBB_MAPPING.
1550         * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
1551         (gloog): Change declaration.
1552         (mark_loop_parallel): Make extern.
1553         (free_aux_in_new_loops): Declare.
1554         (bb_pbb_map_hash): New.
1555         (eq_bb_pbb_map): New.
1556         * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
1557         auto parallelization when flag_graphite_force_parallel is set.
1558         (graphite_finalize): Added free_aux_in_new_loops.
1559         * tree-parloops.c (parallelize_loops): Only generate parallel code for
1560         the innermost loop that marked parallel.  Use
1561         flag_graphite_force_parallel instead of loop->can_be_parallel.
1562         (loop_parallel_p): Move inner most checking out of function.
1563
1564 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
1565
1566         * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
1567         type of lower and upper bound of loops signed long int.
1568
1569 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
1570
1571         * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
1572         expression outside the loop.
1573
1574 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
1575
1576         * gcc.dg/graphite/interchange-8.c: New.
1577
1578 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
1579
1580         * gcc.dg/graphite/interchange-0.c: XFailed.
1581         * gcc.dg/graphite/interchange-5.c: XFailed.
1582         * gcc.dg/graphite/interchange-6.c: XFailed.
1583
1584 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
1585
1586         * graphite-interchange.c (compute_array_size_poly): The end of the
1587         recursion should return 1.
1588
1589 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
1590
1591         * graphite-interchange.c (compute_array_size_cstr): Allow the
1592         subscript multiplier to be -1.
1593         (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
1594         * graphite-poly.c (new_poly_dr): Takes an extra argument for the
1595         data_container.  Initializes PDR_DATA_CONTAINER.
1596         (print_pdr_access_layout): New.
1597         (print_pdr): Call print_pdr_access_layout.  Print PDR_DATA_CONTAINER.
1598         * graphite-poly.h (struct poly_dr): Adjust comment.  Add a new field
1599         data_container.
1600         (PDR_DATA_CONTAINER): New.
1601         (new_poly_dr): Update declaration.
1602         * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
1603         (build_poly_dr): Call pdr_add_data_dimensions.
1604
1605 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
1606
1607         * graphite-poly.h (struct poly_dr): Fix comment.
1608         * graphite-sese-to-poly.c (pdr_add_alias_set): New.
1609         (pdr_add_memory_accesses): New.
1610         (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
1611
1612 2009-06-26  Sebastian Pop  <sebastian.pop@amd.com>
1613
1614         * graphite-poly.c (print_pdrs, debug_pdrs): New.
1615         (print_pbb): Add call to print_pdrs.
1616         * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
1617
1618 2009-06-24  Konrad Trifunovic <konrad.trifunovic@gmail.com>
1619             Li Feng <nemokingdom@gmail.com>
1620
1621         * graphite-dependences.c (graphite_carried_dependence_level_k): New.
1622         (dependency_between_pbbs_p): New.
1623         (lexicographically_gt_p): Assure !empty_p before polyhedron
1624         intersection assign.
1625         (build_lexicographically_gt_constraint): Correct lexicographically
1626         judging.
1627         * graphite-dependences.h: New.
1628         * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
1629
1630 2009-06-24  Sebastian Pop  <sebastian.pop@amd.com>
1631
1632         * graphite-clast-to-gimple.c (print_clast_stmt): New.
1633         (gloog): Print to dump_file the generated clast.
1634         * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
1635         * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
1636
1637 2009-06-24  Sebastian Pop  <sebastian.pop@amd.com>
1638
1639         * graphite-poly.c (extend_scattering): Increment
1640         PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
1641
1642 2009-06-24  Sebastian Pop  <sebastian.pop@amd.com>
1643
1644         * graphite-interchange.c (compute_array_size_poly): Added exit of
1645         recursion condition.  Continue iterating even after the first equality.
1646         (compute_array_size): Same.
1647
1648 2009-06-24  Li Feng  <nemokingdom@gmail.com>
1649
1650         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
1651         -fdump-tree-final_cleanup to -fdump-tree-optimized.
1652         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
1653         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
1654         * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
1655
1656 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
1657
1658         * sese.c (expand_scalar_variables_stmt): Expand scalar variables
1659         only when the use verifies is_gimple_reg.
1660
1661 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
1662
1663         * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
1664         Allocate scaldims after call to unify_scattering_dimensions.
1665
1666 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
1667
1668         * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
1669
1670 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
1671             Albert Cohen  <albert.cohen@inria.fr>
1672
1673         * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
1674         variables for the strip mining.
1675
1676 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
1677             Pranav Garg  <pranav.garg2107@gmail.com>
1678
1679         * Makefile.in (OBJS-common): Added graphite-blocking.o.
1680         (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
1681         (graphite-blocking.o): New rule.
1682         (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
1683         * graphite-blocking.c: New.
1684         * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
1685         flag_loop_strip_mine.
1686         (psct_scattering_dim_for_loop_depth): New.
1687         * graphite-poly.h (scop_do_strip_mine): Declared.
1688         (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
1689         * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
1690         flag_loop_strip_mine.
1691
1692 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
1693
1694         * graphite-poly.c (extend_scattering): Avoid initializing and freeing
1695         a GMP value and a PPL coefficient at each iteration of a loop.
1696
1697 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
1698
1699         * graphite-dependences.c (dependence_polyhedron): Do not use
1700         pbb_nb_scattering_dims anymore.  Use pbb_nb_scattering_orig and
1701         pbb_nb_scattering_transform.
1702         (graphite_legal_transform_dr): Same.
1703         * graphite-poly.c (extend_scattering): Same.
1704         (unify_scattering_dimensions): Same.
1705         (print_scattering_function): Same.
1706         (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
1707         PBB_NB_LOCAL_VARIABLES.
1708         * graphite-poly.h (pbb_nb_scattering): Removed declaration.
1709         (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
1710         (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
1711         (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
1712         (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
1713         (pbb_nb_scattering_transform): New.
1714         (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
1715         (psco_scattering_dim): Add assert on parameters.
1716         (psct_scattering_dim): Same.
1717         (psct_scattering_dim_for_loop_depth): Declared.
1718         (psct_local_var_dim): New.
1719         (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
1720         (psct_iterator_dim, psct_parameter_dim): Same.  To maintain the
1721         correct layout, call pbb_nb_local_vars.
1722         (psct_add_local_variable, psct_add_scattering_dimension): New.
1723         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1724         Initialize PBB_NB_SCATTERING_TRANSFORM.
1725
1726 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
1727
1728         * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
1729         (set_coef): Renamed ppl_set_coef.
1730         * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
1731
1732 2009-06-23  Sebastian Pop  <sebastian.pop@amd.com>
1733
1734         * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
1735         test a boolean against 1.
1736         * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
1737         a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
1738         (pbb_do_interchange): Returns true when a transform has been performed.
1739         (scop_do_interchange): Same.
1740         * graphite-poly.c (apply_poly_transforms): Use the return value of
1741         scop_do_interchange.
1742         * graphite-poly.h (scop_do_interchange): Update declaration.
1743
1744 2009-06-23  Tobias Grosser  <grosser@fim.uni-passau.de>
1745
1746         * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
1747         after last use.
1748         * sese.c (sese_reset_aux_in_loops): New.
1749         * sese.h (sese_reset_aux_in_loops): New.
1750
1751 2009-06-19  Sebastian Pop  <sebastian.pop@amd.com>
1752
1753         * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
1754         multiplier and multiply the constant by the multiplier.
1755         (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
1756         (build_poly_dr): Do not use the multiplier to define the subscript.
1757
1758 2009-06-19  Sebastian Pop  <sebastian.pop@amd.com>
1759
1760         * graphite-poly.c (new_poly_dr): Pass an extra argument for the
1761         compiler's data reference.  Initialize PDR_CDR.
1762         (print_pdr): Call dump_data_reference.
1763         * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
1764         Add compiler_dr field.
1765         (PDR_BB): Renamed PDR_PBB.
1766         (PDR_CDR): New.
1767         * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
1768         GCC's data reference representation.
1769         * tree-data-ref.c (debug_data_references, debug_data_reference): New.
1770         * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
1771
1772 2009-06-19  Sebastian Pop  <sebastian.pop@amd.com>
1773
1774         * graphite-poly.c (print_scattering_function): Also print the layout.
1775         * graphite-poly.h (pbb_nb_local_vars): New.
1776
1777 2009-06-19  Sebastian Pop  <sebastian.pop@amd.com>
1778
1779         * graphite-poly.c (print_pbb_domain): Also print the layout names.
1780
1781 2009-06-19  Sebastian Pop  <sebastian.pop@amd.com>
1782
1783         * graphite-poly.c (print_pdr, debug_pdr): New.
1784         * graphite-poly.h (print_pdr, debug_pdr): Declared.
1785         (PDR_BASE): Removed.
1786
1787 2009-06-18  Sebastian Pop  <sebastian.pop@amd.com>
1788
1789         * gcc/testsuite/gcc.dg/graphite/interchange-{1..7}.c: New avatars of
1790         ltrans-{1..6,8}.c.
1791
1792 2009-06-18  Sebastian Pop  <sebastian.pop@amd.com>
1793
1794         * graphite-interchange.c (compute_subscript): Allow also -1 in the
1795         subscript identification column.
1796         (pbb_do_interchange): Print to dump_file that some loops "will be
1797         interchanged".  Rely on that chain of characters in the testcases.
1798         * gcc.dg/graphite/interchange-0.c: New.
1799         * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
1800         interchange-*.c files and compile them with -floop-interchange.
1801
1802 2009-06-18  Pranav Garg  <pranav.garg2107@gmail.com>
1803
1804         * graphite-interchange.c (interchange_profitable_p): Renamed
1805         pbb_interchange_profitable_p.
1806
1807 2009-06-18  Sebastian Pop  <sebastian.pop@amd.com>
1808             Harsha Jagasia  <harsha.jagasia@amd.com>
1809             Pranav Garg  <pranav.garg2107@gmail.com>
1810
1811         * graphite-interchange.c (interchange_profitable_p): Make static.
1812         (pbb_interchange_loop_depths, pbb_do_interchange,
1813         scop_do_interchange): New.
1814         * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
1815         for flag_loop_interchange.
1816         * graphite-poly.h (scop_do_interchange): Declared.
1817         * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
1818         flag_loop_interchange is used.
1819
1820 2009-06-18  Sebastian Pop  <sebastian.pop@amd.com>
1821
1822         * graphite-dependences.c (dependence_polyhedron): Update use of
1823         pbb_nb_scattering_dims.
1824         * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
1825         (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
1826         (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
1827         psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
1828
1829 2009-06-16  Sebastian Pop  <sebastian.pop@amd.com>
1830
1831         * graphite.c: Cleanup foo.
1832
1833 2009-06-16  Sebastian Pop  <sebastian.pop@amd.com>
1834
1835         * Merge from mainline (r143684:148293).
1836         * Disabled libpcp until it gets fixed.
1837
1838 2009-06-05  Sebastian Pop  <sebastian.pop@amd.com>
1839             Harsha Jagasia  <harsha.jagasia@amd.com>
1840
1841         * graphite-interchange.c: New.
1842         * Makefile.in (graphite-interchange.o): New.
1843         * graphite-poly.h (interchange_profitable_p): Declared.
1844         * graphite-ppl.h (value_max): New.
1845
1846 2009-06-04  Sebastian Pop  <sebastian.pop@amd.com>
1847
1848         * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
1849         * graphite-poly.h: Fix some comments.
1850         (pdr_dim): New.
1851         (pdr_scop): New.
1852
1853 2009-06-04  Sebastian Pop  <sebastian.pop@amd.com>
1854
1855         * graphite-poly.h
1856         (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
1857         (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
1858         (pdr_accessp_nb_params): Renamed pdr_nb_params.
1859         (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
1860         (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
1861         (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
1862         (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
1863         (pbb_nb_loops): Renamed pbb_dim_iter_domain.
1864         * graphite-clast-to-gimple.c: Same.
1865         * graphite-dependences.c: Same.
1866         * graphite-poly.c: Same.
1867         * graphite-sese-to-poly.c: Same.
1868
1869 2009-06-03  Sebastian Pop  <sebastian.pop@amd.com>
1870
1871         * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
1872         expressions for an IV rename, as returned by clast_to_gcc_expression.
1873         (copy_renames): Rename new_name to expr.
1874         * sese.c (debug_rename_elt): Same.
1875         (get_rename): Same.
1876         (set_rename): Same.
1877         (sese_adjust_liveout_phis): Call force_gimple_operand before using
1878         the information from the rename map.
1879         (rename_variables_in_stmt): Same.
1880         (add_loop_exit_phis): Rename new_name to expr.
1881         (insert_loop_close_phis): Same.
1882         (add_guard_exit_phis): Same.  Call force_gimple_operand.
1883         * sese.h (struct rename_map_elt): Rename new_name to expr.
1884         (new_rename_map_elt): Same.
1885
1886 2009-06-03  Sebastian Pop  <sebastian.pop@amd.com>
1887
1888         * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
1889         * sese.c (set_rename): Make it extern.
1890         * sese.h (set_rename): Declared.
1891
1892 2009-06-03  Sebastian Pop  <sebastian.pop@amd.com>
1893
1894         * graphite-poly.c (extend_scattering): Free values.
1895         * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
1896         Free iterators.
1897         (ppl_print_powerset_matrix): Same.
1898         * graphite-scop-detection.c (free_scops_1): New.
1899         (limit_scops): Call free_scops_1.
1900         * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
1901         (build_poly_dr): Free PPL coefficients.
1902         * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
1903
1904 2009-06-02  Sebastian Pop  <sebastian.pop@amd.com>
1905
1906         * graphite-dependences.c: New.
1907         * graphite-data-ref.c: Removed.
1908         * graphite-data-ref.h: Removed.
1909         * Makefile.in (graphite-data-ref.o): Removed.
1910         (graphite-dependences.o): Added.
1911         * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
1912         * graphite-poly.c: Same.
1913         Move the data dependence testing to graphite-dependences.c.
1914
1915 2009-05-19  Tobias Grosser  <grosser@fim.uni-passau.de>
1916
1917         * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
1918         from graphite_cannot_represent_loop. Code refactored.
1919         (scopdet_basic_block_info): Call graphite_can_represent_loop.
1920
1921 2009-05-17  Li Feng  <nemokingdom@gmail.com>
1922
1923         * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
1924         Cover all the testcases (not only the filtered ones).
1925
1926 2009-05-17  Tobias Grosser  <grosser@fim.uni-passau.de>
1927
1928         * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
1929         unnecessary check. Update comments. Move check for REAL_TYPE here.
1930         (harmful_stmt_in_bb): Remove checks for conditions. This is already
1931         done in (stmt_simple_for_scop_p).
1932
1933 2009-05-14 Tobias Grosser  <grosser@fim.uni-passau.de>
1934
1935         * graphite.c (print_global_statistics): New.
1936         (print_graphite_scop_statistic): New.
1937         (print_graphite_statistics): New.
1938         (graphite_initialize, graphite_transform_loops): Print statistics.
1939         * graphite-scop-detection (build_scops): Print statistics.
1940         (print_graphite_scop_statistics): New.
1941         (print_graphite_statistics): New.
1942
1943 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
1944
1945         * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
1946         (debug_clast_name_index): Removed.
1947         (debug_clast_name_indexes_1): Removed.
1948         (debug_clast_name_indexes): Removed.
1949         (clast_name_index_elt_info): Removed.
1950         (eq_clast_name_indexes): Removed.
1951         (clast_name_to_index): Removed.
1952         (new_clast_name_index): Removed.
1953         (save_clast_name_index): Removed.
1954         (save_var_name): Moved...
1955         (init_sese_params_index): Removed.
1956         (clast_name_to_gcc): Remove use of name_tree.
1957         (initialize_cloog_names): Same.
1958         (gloog): Do not call init_sese_params_index.
1959         * graphite-sese-to-poly.c (save_var_name): ...here.
1960         (parameter_index_in_region): New.
1961         * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
1962         (parameter_index_in_region): Removed.
1963         (is_parameter): Remove use of name_tree.
1964         * sese.h (struct name_tree): Removed.
1965         (struct sese): Remove use of name_tree.  New field params_names.
1966         (SESE_PARAMS_NAMES): New.
1967         (SESE_PARAMS): Remove duplicate.
1968         (parameter_index_in_region): Removed.
1969         (sese_nb_params): Remove use of name_tree.
1970         (struct clast_name_index): New.
1971         (new_clast_name_index): New.
1972         (clast_name_to_index): New.
1973         (save_clast_name_index): New.
1974         (debug_clast_name_index): New.
1975         (debug_clast_name_indexes_1): New.
1976         (debug_clast_name_indexes): New.
1977         (clast_name_index_elt_info): New.
1978         (eq_clast_name_indexes): New.
1979
1980 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
1981
1982         * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
1983         pbb_to_depth_to_oldiv.  Remove call to oldiv_for_loop.
1984         (graphite_loop_normal_form): Do not pass region.  Do not
1985         initialize SESE_OLDIVS.
1986         (build_graphite_loop_normal_form): Update call to
1987         graphite_loop_normal_form.
1988         * sese.c (debug_oldivs): Removed.
1989         (new_sese): Do not initialize SESE_OLDIVS.
1990         (free_sese): Do not free SESE_OLDIVS.
1991         (oldiv_for_loop): Removed.
1992         * sese.h (struct sese): Remove old_ivs.
1993         (SESE_OLDIVS): Removed.
1994         (oldiv_for_loop): Removed.
1995
1996 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
1997
1998         * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
1999         remove ivstack.  Remove call to loop_iv_stack_get_iv_from_name,
2000         replaced by a call to newivs_to_depth_to_newiv.
2001         (clast_to_gcc_expression): Pass newivs, remove ivstack.
2002         (clast_to_gcc_expression_red): Same.
2003         (gcc_type_for_clast_expr): Same.
2004         (gcc_type_for_clast_eq): Same.
2005         (graphite_translate_clast_equation): Same.
2006         (graphite_create_guard_cond_expr): Same.
2007         (graphite_create_new_guard): Same.
2008         (graphite_create_new_loop): Same.
2009         (build_iv_mapping): Same.
2010         (translate_clast): Same.
2011         (gloog): Same.
2012         (loop_iv_stack_patch_for_consts): Removed.  *
2013         sese.c (iv_stack_entry_is_constant): Removed.
2014         (iv_stack_entry_is_iv): Removed.
2015         (loop_iv_stack_push_iv): Removed.
2016         (loop_iv_stack_insert_constant): Removed.
2017         (loop_iv_stack_pop): Removed.
2018         (loop_iv_stack_get_iv): Removed.
2019         (loop_iv_stack_get_iv_from_name): Removed.
2020         (debug_loop_iv_stack): Removed.
2021         (free_loop_iv_stack): Removed.
2022         (loop_iv_stack_remove_constants): Removed.  *
2023         sese.h (iv_stack_entry_kind): Removed.
2024         (iv_stack_entry_data_union): Removed.
2025         (iv_stack_entry_struct): Removed.
2026         (iv_stack_entry_p): Removed.
2027         (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
2028         loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
2029         loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
2030         loop_iv_stack_pop, free_loop_iv_stack): Removed.
2031         (gbb_loop_at_index): Fix indenting.
2032         (gbb_loop_index): Removed.
2033
2034 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2035
2036         * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
2037         Call clast_name_to_index.
2038
2039 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2040
2041         * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
2042         do not pass params.  Get params from SESE_PARAMS.
2043         (clast_to_gcc_expression): Same.
2044         (clast_to_gcc_expression_red): Same.
2045         (gcc_type_for_clast_eq): Same.
2046         (graphite_translate_clast_equation): Same.
2047         (graphite_create_new_loop): Same.
2048         * sese.c (rename_variables_in_stmt): Fix comment.
2049
2050 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2051
2052         * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
2053         newivs_index.
2054         Call save_clast_name_index.
2055         (translate_clast): Pass newivs_index.
2056         (gloog): Create and free newivs_index.
2057
2058 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2059
2060         * graphite-clast-to-gimple.c (clast_name_index): New structure.
2061         (clast_name_index_p): New type.
2062         (debug_clast_name_index): New.
2063         (debug_clast_name_indexes_1): New.
2064         (debug_clast_name_indexes): New.
2065         (clast_name_index_elt_info): New.
2066         (eq_clast_name_indexes): New.
2067         (clast_name_to_index): New.
2068         (new_clast_name_index): New.
2069         (save_clast_name_index): New.
2070         (init_sese_params_index): New.
2071         (gloog): Call init_sese_params_index.
2072         * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
2073         * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
2074         (free_sese): Free SESE_PARAMS_INDEX.
2075         * sese.h (struct sese): Add params_index.
2076         (SESE_PARAMS_INDEX): New.
2077
2078 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2079
2080         * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
2081         (graphite_create_new_loop): Pass the newivs vector.  Push the
2082         newly created IV to newivs.
2083         (translate_clast): Pass the newivs vector.
2084         (gloog): Create and destroy the newivs vector.
2085
2086 2009-05-13  Sebastian Pop  <sebastian.pop@amd.com>
2087
2088         * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
2089         (graphite_loop_normal_form): Initialize loop->aux with the unique
2090         IV that has been created.
2091
2092 2009-05-13 Tobias Grosser  <grosser@fim.uni-passau.de>
2093
2094         * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
2095         scev with parameters in the base part. They where forbidden
2096         exidently.
2097
2098 2009-05-11  Li Feng  <nemokingdom@gmail.com>
2099
2100         * testsuite/gcc.dg/graphite/graphite.exp: Set different default
2101         compile options by file names.
2102         * testsuite/gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
2103         * testsuite/gcc.dg/graphite/id-{1-9}.c: Ditto.
2104         * testsuite/gcc.dg/graphite/scop-{0-20}.c: Ditto.
2105         * testsuite/gcc.dg/graphite/scop-matmult.c: Ditto.
2106
2107 2009-05-08  Li Feng <nemokingdom@gmail.com>
2108
2109         * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
2110         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
2111         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
2112         * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
2113
2114 2009-05-07  Tobias Grosser  <grosser@fim.uni-passau.de>
2115
2116         * graphite-scop-detection (build_scops_1): Fix little bug introduced
2117         by final cleanup.
2118
2119 2009-05-07  Tobias Grosser  <grosser@fim.uni-passau.de>
2120
2121         * graphite-scop-detection.c (graphite_can_represent_scev): Only
2122         allow integer constant strides.
2123         (graphite_can_represent_expr): Depend on outermost_loop.
2124         (stmt_simple_memref_p, graphite_cannot_represent_loop,
2125         harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
2126         build_scops_1): Same.
2127         (scopdet_basic_block_info): Same and insert layered SCoP
2128         detection.
2129         (try_generate_gimple_bb): Cleanup.
2130         (build_scops): Enable data references.
2131
2132         * testsuite/gcc.dg/graphite/id-5.c: New.
2133         * testsuite/gcc.dg/graphite/id-9.c: New.
2134         * tree-chrec.c (evolution_function_right_is_integer_cst): New.
2135         * tree-chrec.h (evolution_function_right_is_integer_cst): New.
2136
2137 2009-05-06  Tobias Grosser  <grosser@fim.uni-passau.de>
2138
2139         * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
2140         that we have not yet built for this SCoP.
2141
2142 2009-05-06  Tobias Grosser  <grosser@fim.uni-passau.de>
2143
2144         * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
2145         for complex numbers.
2146
2147 2009-05-06  Tobias Grosser  <grosser@fim.uni-passau.de>
2148
2149         * graphite-ppl.c: Fix build if cloog is not available.
2150
2151 2009-05-04  Li Feng  <nemokingdom@gmail.com>
2152
2153         * tree-parloops.c (loop_parallel_p): Remove construction of
2154         NITER and REDUCTION_LIST.
2155         (try_get_loop_niter): New.
2156         (try_create_reduction_list): New.
2157         (parallelize_loops): Bypass the failed checkings in autopar
2158         when can_be_parallel in loop structure is set to true.
2159
2160 2009-05-01  Tobias Grosser  <grosser@fim.uni-passau.de>
2161
2162         * testsuite/gcc.dg/graphite/id-6.c: Update testcase.
2163         * testsuite/gcc.dg/graphite/scop-3.c: Dito.
2164
2165 2009-05-01  Tobias Grosser  <grosser@fim.uni-passau.de>
2166
2167         * graphite-scop-detection.c (stmt_simple_for_scop_p):
2168         Enable EQ_EXPR and NE_EXPR again.
2169
2170 2009-04-30  Tobias Grosser  <grosser@fim.uni-passau.de>
2171
2172         * graphite-scop-detection.c (graphite_can_represent_scev):
2173         Add check if scev is affine multivariate.
2174         (harmful_stmt_in_bb): Check if we can represent the conditions.
2175         (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
2176         harmful_stmt_in_bb.
2177         * testsuite/gcc.dg/graphite/id-7.c: New.
2178
2179 2009-04-30  Tobias Grosser  <grosser@fim.uni-passau.de>
2180
2181         * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
2182         Check all bbs in region, not only the bbs that are represented in
2183         GRAPHITE.
2184         (build_poly_scop): Add newline.
2185         * testsuite/gcc.dg/graphite/id-8.c: New.
2186
2187 2009-04-30  Li Feng  <nemokingdom@gmail.com>
2188
2189         * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
2190         when loop initialize.
2191         * cfgloop.h (struct loop): Introduce flag can_be_parallel.
2192         * common.opt: Declare flag_graphite_force_parallel.
2193         * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
2194         loop parallel.
2195         * graphite-poly.c (apply_poly_transforms): Introduce
2196         flag_graphite_force_parallel.
2197         * tree-ssa-loop.c (gate_graphite_transforms): ditto.
2198         * toplev.c (process_options): ditto and replace a not correctly
2199         encoded space.
2200
2201 2009-04-30  Li Feng  <nemokingdom@gmail.com>
2202
2203         * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
2204         Change the call of gbb_loop_at_index and/or gbb_loop_index due
2205         to the redefinition.
2206         (compute_cloog_iv_types_1): ditto.
2207         (build_iv_mapping): ditto.
2208         * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
2209         initialization.
2210         (free_gimple_bb): Removed GBB_LOOPS related free part.
2211         (build_bb_loops): Removed.
2212         * sese.h (struct gimple_bb): Removed loops.
2213         (GBB_LOOPS): Removed.
2214         (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
2215         (gbb_loop_index): ditto.
2216
2217 2009-04-24  Tobias Grosser  <grosser@fim.uni-passau.de>
2218
2219         * graphite-scop-detection.c (graphite_can_represent_scev): Do not
2220         allow non constant strides.
2221         * testsuite/gcc.dg/graphite/scop-20.c: New.
2222
2223 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2224
2225         * graphite-scop-detection.c (dot_all_scops): Fix system call
2226         return value warning.
2227         (dot_scop): Same.
2228
2229 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2230
2231         * testsuite/gcc.dg/graphite/id-6.c: Fix pattern.
2232         * testsuite/gcc.dg/graphite/scop-3.c: Same.
2233
2234 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2235
2236         * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
2237         build_pairwise_constraint, dr_equality_constraints,
2238         build_pairwise_scheduling_equality,
2239         build_pairwise_scheduling_inequality, lexicographically_gt_p,
2240         build_lexicographically_gt_constraint, dependence_polyhedron,
2241         graphite_legal_transform_dr, graphite_legal_transform_bb,
2242         graphite_legal_transform): New.
2243         * graphite-poly.h (graphite_legal_transform): Declared.
2244         * graphite-sese-to-poly.c (build_poly_scop): Call to
2245         graphite_legal_transform is disabled for the moment.
2246
2247 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2248
2249         * graphite-poly.h (pbb_nb_scattering_dims): New.
2250         (pbb_nb_scattering): Use it.
2251
2252 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2253
2254         * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
2255         Pointset_Powerset version of ppl_insert_dimensions.
2256         * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
2257
2258 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2259
2260         * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
2261
2262 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2263
2264         * graphite-poly.h: Fix comment.
2265
2266 2009-04-24  Sebastian Pop  <sebastian.pop@amd.com>
2267
2268         * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
2269
2270 2009-04-24  Tobias Grosser  <grosser@fim.uni-passau.de>
2271
2272         * sese.c (expand_scalar_variables_stmt): Only iterate over the old
2273         statements.
2274
2275 2009-04-24  Tobias Grosser  <grosser@fim.uni-passau.de>
2276
2277         * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
2278         (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
2279         conditions.
2280
2281 2009-04-20  Sebastian Pop  <sebastian.pop@amd.com>
2282
2283         * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
2284         handle EQ_EXPR and NE_EXPR.
2285
2286 2009-04-17  Tobias Grosser  <grosser@fim.uni-passau.de>
2287
2288         * graphite-poly.h (poly_dr): Fix comment.
2289
2290 2009-04-09  Sebastian Pop  <sebastian.pop@amd.com>
2291             Tobias Grosser  <grosser@fim.uni-passau.de>
2292
2293         * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
2294         with a zero dimension polyhedron.
2295         (find_scop_parameters): Move the call to scop_set_nb_params here.
2296         (build_loop_iteration_domains): Store in loop->aux the iteration
2297         domain polyhedron.
2298         (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
2299         by any loop in scop.
2300         (build_poly_scop): Do not call scop_set_nb_params.
2301
2302 2009-04-09  Sebastian Pop  <sebastian.pop@amd.com>
2303             Tobias Grosser  <grosser@fim.uni-passau.de>
2304
2305         * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
2306         add_condition_to_domain not GT_EXPR.
2307
2308 2009-04-09  Tobias Grosser  <grosser@fim.uni-passau.de>
2309
2310         * graphite-ppl.c (debug_ppl_powerset_matrix): New.
2311         * graphite-ppl.h (debug_ppl_powerset_matrix): New.
2312         * graphite-sese-to-poly.c (add_condition_to_pbb): Use
2313         upper_bound_assign to calculate unions.
2314         * testsuite/gcc.dg/graphite/id-6.c: New.
2315
2316 2009-04-09  Tobias Grosser  <grosser@fim.uni-passau.de>
2317
2318         * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
2319         handle abnormal edges.
2320
2321 2009-04-09  Tobias Grosser  <grosser@fim.uni-passau.de>
2322
2323         * graphite-poly.c (new_poly_dr, free_poly_dr): New.
2324         (free_poly_bb): Also free poly_drs.
2325         * graphite-poly.h (new_poly_dr, free_poly_dr): New.
2326         (poly_dr): Polyhedron to Pointset_Powerset.
2327         (pdr_accessp_nb_subscripts): Same.
2328         * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
2329         poly_drs.
2330
2331 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2332
2333         * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
2334         names into more meaningful names.
2335
2336 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2337
2338         * testsuite/gfortran.dg/graphite/interchange-1.c: New.
2339         * testsuite/gfortran.dg/graphite/interchange-2.c: New.
2340
2341 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2342
2343         * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
2344         the reduction_list.
2345         * tree-parloops.c (rewrite_phi_with_iv): New.
2346         (rewrite_all_phi_nodes_with_iv): New.
2347         (canonicalize_loop_ivs): Call them.
2348
2349 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2350
2351         * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
2352         graphite_find_data_references_in_stmt.
2353         * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
2354         * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
2355
2356 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2357
2358         * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
2359
2360 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2361
2362         * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
2363         instead of bb_in_region.
2364         (flag_bb_in_region): Same.  Renamed flag_bb_in_sese.
2365         (build_sese_conditions): Use flag_bb_in_sese.
2366         * sese.c (register_bb_in_sese): Removed.
2367         (new_sese): Remove initialization of SESE_REGION_BBS.
2368         (free_sese): Do not free SESE_REGION_BBS.
2369         * sese.h (struct sese): Remove field region_basic_blocks.
2370         (SESE_REGION_BBS): Removed.
2371         (bb_in_sese_p): Implement in function of bb_in_region.
2372
2373 2009-04-08  Sebastian Pop  <sebastian.pop@amd.com>
2374
2375         * graphite-scop-detection.c (limit_scops): Deal only with single exit
2376         loops.
2377
2378 2009-04-08  Tobias Grosser  <grosser@fim.uni-passau.de>
2379
2380         * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
2381         and EQ_EXPR.
2382         * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
2383         (add_condition_to_domain): New.
2384         (add_condition_to_pbb): New.
2385         (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
2386         * testsuite/gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
2387
2388 2009-04-08  Tobias Grosser  <grosser@fim.uni-passau.de>
2389
2390         * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
2391         ppl_Pointset_Powerset.
2392         * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
2393         * graphite-poly.h (poly_bb): poly_bb.domain Same.
2394         (pbb_nb_loops): Same.
2395         * graphite-sese-to-poly.c (build_loop_iteration_domains,
2396         add_conditions_to_domain): Same.
2397         * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
2398         (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
2399         ppl_const_Polyhedron_t.
2400         (ppl_print_powerset_matrix): New.
2401         * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
2402         ppl_print_powerset_matrix): New.
2403         (ppl_print_polyhedron_matrix): Updated.
2404
2405 2009-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2406
2407         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
2408
2409 2009-04-07  Sebastian Pop  <sebastian.pop@amd.com>
2410
2411         * graphite-poly.c (extend_scattering): Fix indenting.  Free cstr.
2412         (print_iteration_domains, debug_iteration_domain,
2413         debug_iteration_domains): New.
2414         * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
2415         debug_iteration_domains): Declared.
2416         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
2417         indenting.
2418
2419 2009-04-03  Tobias Grosser  <grosser@fim.uni-passau.de>
2420             Sebastian Pop  <sebastian.pop@amd.com>
2421
2422         * graphite-poly.h (print_iteration_domain): New.
2423         * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
2424         (build_sese_conditions_1, build_sese_conditions_after,
2425         build_sese_conditions_before): New.
2426         (build_sese_conditions): Rewritten.
2427
2428 2009-04-03  Sebastian Pop  <sebastian.pop@amd.com>
2429             Tobias Grosser  <grosser@fim.uni-passau.de>
2430
2431         Cleanup of code generation liveouts.
2432         * graphite-clast-to-gimple.c (translate_clast): Use a single
2433         rename_map instead of one per translated statement.
2434         Do not use SESE_LIVEOUT_RENAMES.
2435         (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
2436         (gloog): Do not use SESE_LIVEOUT_RENAMES.
2437         * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
2438         phi node of a reduction: when a loop contains a reduction used outside
2439         the loop, there should be a scalar close phi node on the exit block.
2440         * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
2441         SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
2442         (free_sese): Do not free them.
2443         (sese_build_liveouts_use): Do not use them.
2444         (sese_build_liveouts_bb): Same.
2445         (sese_build_liveouts): Same.
2446         (sese_insert_phis_for_liveouts): Same.
2447         (sese_adjust_phis_for_liveouts): Same.  Renamed sese_adjust_liveout_phis.
2448         (defined_in_loop_p): New.
2449         (alive_after_loop): New.
2450         (close_phi_not_yet_inserted_p): New.
2451         (struct alep, alep_p): New.
2452         (add_loop_exit_phis): Remove from the rename_map all the names defined
2453         in the code generated loop.
2454         (insert_loop_close_phis): Traverse the rename_map passed to it.
2455         Don't use SESE_LIVEOUT_RENAMES.
2456         (default_liveout_before_guard): Renamed default_before_guard.
2457         (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
2458         (graphite_copy_stmts_from_block): Do not directly call set_rename.
2459         (register_sese_liveout_renames): Removed.
2460         (copy_bb_and_scalar_dependences): Do not call it.
2461         * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
2462         reduction_list.
2463         (SESE_LIVEOUT): Removed.
2464         (SESE_LIVEOUT_RENAMES): Removed.
2465         (SESE_REDUCTION_LIST): Removed.
2466         (sese_build_liveouts): Removed.
2467         (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
2468         (insert_loop_close_phis): Pass a htab_t instead of a sese.
2469         (insert_guard_phis): Same.
2470         (rename_map_elt): Declare a VEC of them.
2471         * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
2472         trees not pointers to trees.
2473
2474         Rewrite in canonical close SSA form:
2475         * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
2476         (limit_scops): Close the scop after the block containing the close phi
2477         nodes.
2478         (canonicalize_loop_closed_ssa): New.
2479         (canonicalize_loop_closed_ssa_form): New.
2480         (build_scops): Call canonicalize_loop_closed_ssa_form.
2481
2482         * graphite-sese-to-poly.c: Fix typos.
2483
2484 2009-04-03  Sebastian Pop  <sebastian.pop@amd.com>
2485
2486         * graphite-poly.c (print_scattering_function, print_pbb_domain):
2487         Extended.
2488         (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
2489         (print_pbb): Add conditions.
2490
2491 2009-04-01  Tobias Grosser  <grosser@fim.uni-passau.de>
2492             Sebastian Pop  <sebastian.pop@amd.com>
2493
2494         * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
2495         * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
2496         (build_scop_bbs_1): New.
2497         (build_scop_bbs): Rewrite.
2498         * sese.h (bb_in_region): New.
2499
2500 2009-03-29  Tobias Grosser  <grosser@fim.uni-passau.de>
2501
2502         * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
2503         poly_drs vector.
2504         (print_scop): Style.
2505         * graphite-poly.h (poly_bb): Add drs vector.
2506         (PBB_DRS): Add accessor.
2507         * graphite-sese-to-poly.c (build_poly_dr): New.
2508         (build_pbb_drs, build_scop_drs): New.
2509         (build_poly_scop): call build_scop_drs (Disabled at the moment).
2510
2511 2009-03-29  Tobias Grosser  <grosser@fim.uni-passau.de>
2512
2513         * tree-ssa-loop.c: Include forgotten toplev.h
2514
2515 2009-03-29  Tobias Grosser  <grosser@fim.uni-passau.de>
2516
2517         * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
2518         * testsuite/gcc.dg/graphite/pr37883.c: Remove -floop-*
2519         * testsuite/gcc.dg/graphite/pr37928.c: Same
2520         * testsuite/gcc.dg/graphite/pr38409.c: Same
2521         * testsuite/gcc.dg/graphite/pr38498.c: Same
2522         * testsuite/gcc.dg/graphite/pr38559.c: Same
2523         * testsuite/gcc.dg/graphite/pr39335.c: Same
2524         * testsuite/gcc.dg/graphite/pr39335_1.c: Same
2525         * testsuite/gfortran.dg/graphite/block-2.f: Same
2526         * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
2527         with -floop-*.
2528
2529 2009-03-28  Tobias Grosser  <grosser@fim.uni-passau.de>
2530
2531         * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
2532         build_access_matrix, build_scop_data_accesses): Remove access function
2533         building. (We get a new version soon).
2534         (build_bb_loops, scan_tree_for_params_right_scev): Update.
2535         * sese.h (nb_loops_around_loop_in_sese): Remove.
2536         (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
2537
2538 2009-03-27  Tobias Grosser  <grosser@fim.uni-passau.de>
2539             Sebastian Pop  <sebastian.pop@amd.com>
2540
2541         * graphite-scop-detection.c (struct scopdet_info): Rename last
2542         field to exit.
2543         (scopdet_basic_block_info, build_scops_1): Don't use
2544         CDI_POST_DOMINATORS.  CDI_POST_DOMINATORS should never be used.
2545
2546 2009-03-26  Tobias Grosser  <grosser@fim.uni-passau.de>
2547             Sebastian Pop  <sebastian.pop@amd.com>
2548
2549         * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
2550         * sese.c (sese_build_liveouts_use): Renamed from
2551         sese_build_livein_liveouts_use. Remove liveins.
2552         (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
2553         Call sese_build_liveouts_use.
2554         (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
2555         Call sese_build_liveouts_bb.
2556         (new_sese, free_sese): Remove liveins.
2557         (sese_add_exit_phis_var): Deleted.
2558         (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
2559         directly.
2560         (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
2561
2562         * sese.h (sese): Remove num_ver and livein.
2563         (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
2564
2565 2009-03-25  Tobias Grosser  <grosser@fim.uni-passau.de>
2566
2567         * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
2568
2569 2009-03-25  Tobias Grosser  <grosser@fim.uni-passau.de>
2570
2571         * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
2572         (build_scop_scattering): Do not use compare_prefix_loops any more.
2573         (nb_common_loops): New.
2574
2575 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
2576
2577         * sese.c (get_new_name_from_old_name): Renamed get_rename.
2578         (register_old_and_new_names): Renamed set_rename.
2579
2580 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
2581
2582         * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
2583         of the decl from the previous commit.
2584
2585 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
2586
2587         * graphite-scop-detection.c (dot_scop): New.
2588         * graphite-scop-detection.h (dot_scop): Declared.
2589
2590 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
2591
2592         * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
2593
2594 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
2595
2596         * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
2597         condition at the end of the loop.
2598         * graphite.c (graphite_initialize, graphite_finalize): Print to
2599         dump_file the compiled function.
2600         * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
2601         of create_empty_loop_on_edge.
2602         (translate_clast): Update the code generation of loops for the new
2603         shape of loops.
2604         * cfgloop.h (create_empty_loop_on_edge): Update declaration.
2605
2606 2009-03-24  Sebastian Pop  <sebastian.pop@amd.com>
2607
2608         Reverted the patch from 2009-03-19.
2609
2610 2009-03-19  Tobias Grosser  <grosser@fim.uni-passau.de>
2611
2612         * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
2613         poly_drs vector.
2614         (print_scop): Style.
2615         * graphite-poly.h (poly_bb): Add drs vector.
2616         (PBB_DRS): Add accessor.
2617         * graphite-sese-to-poly.c (ref_nb_loops): Remove.
2618         (build_access_matrix_with_af, build_access_matrix,
2619         build_scop_data_accesses): Delete.
2620         (build_poly_dr): New.
2621         (build_pbb_drs, build_scop_drs): New.
2622         (build_poly_scop): call build_scop_drs.
2623
2624 2009-03-13  Sebastian Pop  <sebastian.pop@amd.com>
2625
2626         * graphite-scop-detection.c (dot_all_scops_1): Close the table
2627         once per basic block.
2628
2629 2009-03-13  Tobias Grosser  <grosser@fim.uni-passau.de>
2630
2631         * graphite-scop-detection.c (graphite_can_represent_scev): New.
2632         (graphite_can_represent_expr): Renamed from loop_affine_expr
2633         and enhanced.
2634         (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
2635         (graphite_cannot_represent_loop): Add scop_entry to parameters.
2636         (scopdet_basic_block_info): Actually define entry_block.
2637         (stmt_simple_memref_p): Moved here from ...
2638
2639         * tree-data-ref.c (stmt_simple_memref_p): here.
2640         * tree-data-ref.h (stmt_simple_memref_p): Removed.
2641
2642 2009-03-13  Tobias Grosser  <grosser@fim.uni-passau.de>
2643
2644         * testsuite/gcc.dg/graphite/id-4.c: New.
2645
2646 2009-03-12  Sebastian Pop  <sebastian.pop@amd.com>
2647
2648         * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
2649         (register_old_and_new_names): Update the content of the map.
2650         When there was already a rename_map_elt in the map at that
2651         location, free it.
2652         (copy_bb_and_scalar_dependences): Do rename_variables after
2653         expand_scalar_variables.
2654         * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
2655         of the map.  When there was already a rename_map_elt in the
2656         map at that location, free it.
2657         (translate_clast): Pass the rename_map.  Do not initialize and free
2658         a rename_map per stmt_user.
2659         (gloog): Initialize and free one rename_map and pass it to
2660         translate_clast.
2661
2662 2009-03-12  Sebastian Pop  <sebastian.pop@amd.com>
2663
2664         * sese.c (expand_scalar_variables_stmt,
2665         expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
2666         parameter.
2667         (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
2668         (expand_scalar_variables): Pass to expand_scalar_variables_stmt
2669         the gimple_stmt_iterator of the statement to be expanded.
2670         * graphite-scop-detection.c (is_simple_operand): Do handle
2671         REALPART_EXPR.
2672
2673 2009-03-11  Tobias Grosser  <grosser@fim.uni-passau.de>
2674
2675         * graphite-scop-detection.c (is_simple_operand): Do not handle
2676         REALPART_EXPR.
2677         * testsuite/gcc.dg/graphite/id-2.c: New.
2678
2679         * graphite-sese-to-poly.c (build_bb_loops,
2680         add_value_to_dim, scan_tree_for_params_right_scev,
2681         scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
2682         find_params_in_bb, build_loop_iteration_domains,
2683         add_conditions_to_domain): Remove subtract.
2684
2685 2009-03-11  Tobias Grosser  <grosser@fim.uni-passau.de>
2686
2687         * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
2688         build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
2689         pbb_loop_at_index -> gbb_loop_at_index.
2690         * graphite-poly.c (new_poly_bb, new_scop): New accessors.
2691         (debug_loop_vec): Delete.
2692         * graphite-poly.h (poly_bb, scop): Change black_box and region to void
2693         pointer.  Move LOOPS to gimple_bb_p and insert nb_params.
2694         (PBB_LOOPS): Removed.
2695         (PBB_BLACK_BOX): Insert cast.
2696         (pbb_set_black_box): New setter.
2697         (pbb_loop_at_index, pbb_loop_index): Removed.
2698         (scop_set_region, scop_set_nb_params): New.
2699         * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
2700         build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
2701         (build_poly_scop): Use scop_set_nb_params.
2702         * sese.h (gimple_bb): Add LOOPS.
2703         (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
2704
2705 2009-03-11  Tobias Grosser  <grosser@fim.uni-passau.de>
2706
2707         Revert previous commit.
2708
2709 2009-03-11  Sebastian Pop  <sebastian.pop@amd.com>
2710
2711         * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
2712         (register_old_and_new_names): Update the content of the map.
2713         When there was already a rename_map_elt in the map at that
2714         location, free it.
2715         (copy_bb_and_scalar_dependences): Do rename_variables after
2716         expand_scalar_variables.
2717         * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
2718         of the map.  When there was already a rename_map_elt in the
2719         map at that location, free it.
2720         (translate_clast): Pass the rename_map.  Do not initialize and free
2721         a rename_map per stmt_user.
2722         (gloog): Initialize and free one rename_map and pass it to
2723         translate_clast.
2724
2725 2009-03-11  Tobias Grosser  <grosser@fim.uni-passau.de>
2726
2727         Remove forgotten line in revert.
2728
2729 2009-03-11  Sebastian Pop  <sebastian.pop@amd.com>
2730
2731         Revert previous commit.
2732
2733 2009-03-10  Sebastian Pop  <sebastian.pop@amd.com>
2734
2735         * sese.c (register_old_and_new_names): Update the content
2736         of the map.  When there was already a rename_map_elt in the
2737         map at that location, free it.
2738         (copy_bb_and_scalar_dependences): Do rename_variables after
2739         expand_scalar_variables.
2740         * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
2741         of the map.  When there was already a rename_map_elt in the
2742         map at that location, free it.
2743         (translate_clast): Pass the rename_map.  Do not initialize and free
2744         a rename_map per stmt_user.
2745         (gloog): Initialize and free one rename_map and pass it to
2746         translate_clast.
2747
2748 2009-03-10  Sebastian Pop  <sebastian.pop@amd.com>
2749
2750         * graphite-clast-to-gimple.c (translate_clast): context_loop
2751         is never NULL.
2752
2753 2009-03-10  Tobias Grosser  <grosser@fim.uni-passau.de>
2754             Sebastian Pop  <sebastian.pop@amd.com>
2755
2756         * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
2757         of the use of ppl_Polyhedron_map_space_dimensions.
2758
2759 2009-03-10  Tobias Grosser  <grosser@fim.uni-passau.de>
2760             Sebastian Pop  <sebastian.pop@amd.com>
2761
2762         * graphite-poly.c (unify_scattering_dimensions): Fix types.
2763         * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
2764         PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
2765         pdr_accessp_nb_iterators, pdr_accessp_nb_params,
2766         pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
2767         pdr_accessp_iterator_dim, pdr_accessp_param_dim,
2768         pbb_nb_params): New.
2769         (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
2770         nb_loops_around_pbb): Adapt return types.
2771
2772 2009-03-09  Tobias Grosser  <grosser@fim.uni-passau.de>
2773
2774         * Makefile.in (graphite.o, graphite-sese-to-poly.o,
2775         graphite-clast-to-gimple.o,  graphite-data-ref.o,
2776         graphite-scop-detection.o, graphite-poly.o): Add
2777         more headers.
2778
2779 2009-03-05  Tobias Grosser  <grosser@fim.uni-passau.de>
2780
2781         * Makefile.in (graphite.o, graphite-sese-to-poly.o,
2782         graphite-clast-to-gimple.o,  graphite-data-ref.o,
2783         graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
2784
2785 2009-03-04  Tobias Grosser  <grosser@fim.uni-passau.de>
2786
2787         * testsuite/gcc.dg/graphite/pr37485.c: Remove -floop-block
2788         * testsuite/gcc.dg/graphite/pr37828.c: Same.
2789         * testsuite/gcc.dg/graphite/pr37684.c: Same.
2790         * testsuite/gcc.dg/graphite/block-0.c: Same.
2791         * testsuite/gcc.dg/graphite/block-1.c: Same.
2792         * testsuite/gcc.dg/graphite/block-2.c: Same.
2793         * testsuite/gcc.dg/graphite/block-3.c: Same.
2794         * testsuite/gcc.dg/graphite/block-4.c: Same.
2795         * testsuite/gcc.dg/graphite/block-5.c: Same.
2796         * testsuite/gcc.dg/graphite/block-6.c: Same.
2797         * testsuite/gfortran.dg/graphite/pr38083.f90: Same.
2798         * testsuite/gfortran.dg/graphite/block-1.f90: Same.
2799         * testsuite/gfortran.dg/graphite/block-3.f90: Same.
2800         * testsuite/gfortran.dg/graphite/pr37852.f90: Same.
2801         * testsuite/gfortran.dg/graphite/block-4.f90: Same.
2802         * testsuite/gfortran.dg/graphite/pr37980.f90: Same.
2803         * testsuite/gfortran.dg/graphite/pr38953.f90: Same.
2804         * testsuite/gfortran.dg/graphite/pr37857.f90: Same.
2805         * opts.c: Remove -floop-block from -O2.
2806         * graphite-poly.c: Fail if -floop-block -floop-interchange or
2807         -floop-strip-mine are used.
2808
2809 2009-03-04  Tobias Grosser  <grosser@fim.uni-passau.de>
2810             Sebastian Pop  <sebastian.pop@amd.com>
2811
2812         * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
2813         dimensions.
2814         * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
2815         graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
2816         strip_mine_profitable_p, is_interchange_valid,
2817         graphite_trans_bb_block, graphite_trans_loop_block,
2818         graphite_trans_scop_block): Temporary removed.
2819         (extend_scattering, unify_scattering_dimensions): New.
2820         (print_scattering_function, graphite_read_transforms):
2821         PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
2822         (graphite_generate_scattering_fns): Removed.
2823         (apply_poly_transforms): Cleanup.
2824         (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
2825         (schedule_to_scattering): Moved.
2826         (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
2827         (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
2828         (pbb_nb_scattering): New.
2829         (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
2830         SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
2831         Removed.
2832         * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
2833         shift_poly.
2834         (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
2835         * graphite-scop-detection.c (dot_all_scops_1):  PBB_SCATTERING
2836         -> PBB_TRANSFORMED_SCATTERING.
2837         * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
2838         (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
2839         (build_scop_scattering): Renamed from build_scop_canonical_schedules.
2840         (check_poly_representation): Do not return bool.
2841         (graphite_transform_loops): Reformat.
2842         * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
2843
2844 2009-03-04  Sebastian Pop  <sebastian.pop@amd.com>
2845
2846         * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
2847         debug_pbb_domain, debug_pbb, debug_scop): New.
2848         * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
2849         debug_pbb_domain, debug_pbb, debug_scop): Declared.
2850
2851 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
2852
2853         PR middle-end/39335
2854         * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
2855         when the type precision of the induction variable should be
2856         larger than the type precision of nit.
2857         (gen_parallel_loop): Update use of canonicalize_loop_ivs.
2858         * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
2859         * tree-flow.h (canonicalize_loop_ivs): Update declaration.
2860
2861         * testsuite/gcc.dg/graphite/pr39335_1.c: New.
2862         * testsuite/gcc.dg/graphite/pr39335.c: New.
2863
2864 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
2865
2866         * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
2867         SSA_NAMES not struct reduction_info.
2868
2869 2009-03-02  Sebastian Pop  <sebastian.pop@amd.com>
2870
2871         * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
2872
2873 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
2874             Tobias Grosser  <grosser@fim.uni-passau.de>
2875
2876         * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
2877         (free_sese): Free SESE_REDUCTION_LIST.
2878         * sese.h (struct sese): Add field reduction_list.
2879         (SESE_REDUCTION_LIST): New.
2880         * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
2881         canonicalize_loop_ivs on SESE_REDUCTION_LIST.
2882
2883 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
2884             Tobias Grosser  <grosser@fim.uni-passau.de>
2885
2886         * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
2887         of loop_p.
2888
2889 2009-02-27  Sebastian Pop  <sebastian.pop@amd.com>
2890             Tobias Grosser  <grosser@fim.uni-passau.de>
2891
2892         * tree-parloops.c (struct brli, build_reduction_list_info,
2893         analyze_reduction_list, gather_scalar_reductions): New.
2894         (loop_parallel_p): Build a reduction list containing only
2895         PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
2896         (gen_parallel_loop): Call the analysis analyze_reduction_list.
2897         (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
2898         * tree-flow.h (gather_scalar_reductions): Declared.
2899
2900 2009-02-26  Sebastian Pop  <sebastian.pop@amd.com>
2901
2902         PR middle-end/39308
2903         * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
2904         number_of_iterations_exit from a gcc_assert.
2905
2906 2009-02-25  Sebastian Pop  <sebastian.pop@amd.com>
2907             Jan Sjodin  <jan.sjodin@amd.com>
2908
2909         * output.h (graphite_out_file, graphite_in_file): Declared.
2910         * toplev.c (graphite_out_file, graphite_in_file): New.
2911         (init_asm_output): Initialize graphite_in_file and graphite_out_file.
2912         * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
2913         Don't call schedule_to_scattering.
2914         * common.opt (fgraphite-write, fgraphite-read): New.
2915         * graphite-poly.c: Include output.h.
2916         (print_scattering_function, print_scattering_functions,
2917         debug_scattering_function, debug_scattering_functions,
2918         graphite_write_transforms, graphite_read_transforms,
2919         graphite_generate_scattering_fns): New.
2920         (apply_poly_transforms): Do not apply transform if flag_graphite_read.
2921         Call graphite_generate_scattering_fns, graphite_write_transforms,
2922         graphite_read_transforms.
2923         (new_poly_bb): Initialize PBB_SCATTERING.
2924         (free_poly_bb): Free PBB_SCATTERING.
2925         (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
2926         * graphite-poly.h (struct poly_bb): Add field scattering.
2927         (PBB_SCATTERING): New.
2928         (print_scattering_function, print_scattering_functions,
2929         debug_scattering_function, debug_scattering_functions): Declared.
2930         * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
2931         GMP values, not integers!
2932         (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
2933         ppl_read_polyhedron_matrix): New.
2934         * graphite-ppl.h (ppl_print_polyhedron_matrix,
2935         debug_ppl_polyhedron_matrix,
2936         ppl_read_polyhedron_matrix): Declared.
2937         * Makefile.in (graphite-poly.o): Depends on output.h.
2938
2939 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
2940             Tobias Grosser  <grosser@fim.uni-passau.de>
2941
2942         Revert this change:
2943         * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
2944         scalar evolutions in the scop_entry->loop_father.
2945
2946 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
2947             Tobias Grosser  <grosser@fim.uni-passau.de>
2948
2949         * graphite.h (ref_nb_loops): Remove declaration.
2950         (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
2951         GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
2952         debug_gbb): Moved to sese.h.
2953         * sese.h: As said.
2954
2955 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
2956             Tobias Grosser  <grosser@fim.uni-passau.de>
2957
2958         * graphite-data-ref.[ch]: Disable.
2959
2960 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
2961             Tobias Grosser  <grosser@fim.uni-passau.de>
2962
2963         * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
2964         scalar evolutions in the scop_entry->loop_father.
2965
2966 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
2967
2968         * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
2969         (graphite_cannot_represent_loop_niter): Renamed
2970         graphite_cannot_represent_loop.  Call nb_reductions_in_loop.
2971         (limit_scops): build_sese_loop_nests does not return a bool.
2972         * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
2973         * sese.c (nb_reductions_in_loop): ... from here.
2974         (graphite_loop_normal_form): ... from here.
2975         (sese_record_loop): Does not fail, so does not return a bool.
2976         (build_sese_loop_nests): Same.
2977         * sese.h (build_sese_loop_nests): Update declaration.
2978         * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
2979         (build_graphite_loop_normal_form): New.
2980         (gloog): Call build_graphite_loop_normal_form.
2981         * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
2982         build_sese_loop_nests.
2983
2984         * testsuite/gcc.dg/graphite/id-1.c: New.
2985
2986 2009-02-23  Sebastian Pop  <sebastian.pop@amd.com>
2987             Tobias Grosser  <grosser@fim.uni-passau.de>
2988
2989         * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
2990         The SCoP detection fix is sufficient.
2991
2992 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
2993
2994         PR tree-optimization/39260
2995         * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
2996         the basic block contains a condition with a real type.
2997         * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
2998
2999         * gcc.dg/graphite/pr39260.c: New.
3000
3001 2009-02-21  Sebastian Pop  <sebastian.pop@amd.com>
3002
3003         * graphite-poly.c: Inlcude params.h.
3004         (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
3005         the size of a tile.
3006         * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
3007         * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
3008
3009 2009-02-20  Sebastian Pop  <sebastian.pop@amd.com>
3010             Tobias Grosser  <grosser@fim.uni-passau.de>
3011
3012         * graphite-scop-detection.c (dot_all_scops_1,
3013         dot_all_scops): Moved here.
3014         * graphite-scop-detection.h (dot_all_scops): Declared here.
3015         * graphite.c (graphite_initialize, graphite_finalize): New.
3016         (graphite_transform_loops): Cleaned up.
3017         * sese.c (debug_oldivs): Moved here.
3018         * graphite-poly.c (graphite_apply_transformations): Renamed
3019         apply_poly_transforms.
3020         (debug_loop_vec): Moved here.
3021         * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
3022         scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
3023         find_scop_parameters, build_scop_iteration_domain,
3024         add_conditions_to_constraints, build_scop_canonical_schedules,
3025         build_scop_data_accesses): Now static.
3026         (build_poly_scop, check_poly_representation): New.
3027
3028 2009-02-20  Sebastian Pop  <sebastian.pop@amd.com>
3029
3030         * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
3031         remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
3032         build_scop_bbs, ref_nb_loops, compare_prefix_loops,
3033         build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
3034         scan_tree_for_params_right_scev, scan_tree_for_params_int,
3035         scan_tree_for_params, struct irp_data, dx_record_params,
3036         find_params_in_bb, find_scop_parameters, gbb_from_bb,
3037         build_loop_iteration_domains, add_conditions_to_domain,
3038         phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
3039         scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
3040         build_sese_conditions, add_conditions_to_constraints,
3041         build_scop_iteration_domain, build_access_matrix_with_af,
3042         build_access_matrix,
3043         build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
3044
3045         * graphite-sese-to-poly.c: New.
3046         * graphite-sese-to-poly.h: New.
3047
3048         * Makefile.in: Add new rule for graphite-sese-to-poly.o.
3049
3050 2009-02-20  Sebastian Pop  <sebastian.pop@amd.com>
3051
3052         * graphite.c: Split graphite code generation to a new file.
3053         (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
3054         max_precision_type, clast_to_gcc_expression_red,
3055         clast_to_gcc_expression, gcc_type_for_clast_expr,
3056         gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
3057         graphite_translate_clast_equation, graphite_create_guard_cond_expr,
3058         graphite_create_new_guard, clast_get_body_of_loop,
3059         gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
3060         graphite_create_new_loop, build_iv_mapping, copy_renames,
3061         translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
3062         compute_cloog_iv_types, free_scattering, save_var_name,
3063         initialize_cloog_names, build_scop_context, build_cloog_prog,
3064         set_cloog_options, debug_clast_stmt, scop_to_clast,
3065         print_generated_program, debug_generated_program,
3066         gloog): Moved to graphite-clast-to-gimple.c.
3067
3068         (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
3069
3070         (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
3071         loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
3072         loop_iv_stack_pop, loop_iv_stack_get_iv,
3073         loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
3074         free_loop_iv_stack, loop_iv_stack_remove_constants,
3075         debug_rename_elt, debug_rename_map_1, debug_rename_map,
3076         rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
3077         debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
3078         eq_ivtype_map_elts, sese_add_exit_phis_edge,
3079         sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
3080         get_vdef_before_sese, sese_adjust_vphi,
3081         get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
3082         oldiv_for_loop, rename_variables_in_stmt, is_parameter,
3083         is_iv, expand_scalar_variables_ssa_name,
3084         expand_scalar_variables_expr, expand_scalar_variables_stmt,
3085         expand_scalar_variables, rename_variables, remove_condition,
3086         get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
3087         add_loop_exit_phis, insert_loop_close_phis, struct igp,
3088         default_liveout_before_guard, add_guard_exit_phis,
3089         insert_guard_phis, register_old_and_new_names,
3090         graphite_copy_stmts_from_block, register_sese_liveout_renames,
3091         copy_bb_and_scalar_dependences, outermost_loop_in_sese,
3092         if_region_set_false_region, create_if_region_on_edge,
3093         move_sese_in_condition): Moved to sese.c.
3094
3095         (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
3096         if_region_exit, if_region_get_condition_block,
3097         struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
3098         union iv_stack_entry_data_union, struct iv_stack_entry_struct,
3099         iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
3100         ivtype_map_elt, new_ivtype_map_elt,
3101         recompute_all_dominators): Moved to sese.h.
3102
3103         * graphite-clast-to-gimple.c: New.
3104         * graphite-clast-to-gimple.h: New.
3105         * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
3106         * sese.c: Modified as said above.
3107         * sese.h: Same.
3108
3109 2009-02-20  Sebastian Pop  <sebastian.pop@amd.com>
3110
3111         * graphite.c: Split scop detection to a new file.
3112         (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
3113         move_sd_regions, loop_affine_expr, exclude_component_ref,
3114         is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
3115         graphite_cannot_represent_loop_niter, struct scopdet_info,
3116         scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
3117         find_single_entry_edge, find_single_exit_edge,
3118         create_single_entry_edge, sd_region_without_exit,
3119         create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
3120         create_sese_edges, build_graphite_scops, limit_scops, build_scops):
3121         Moved to graphite-scop-detection.c.
3122
3123         * graphite-scop-detection.c: New.
3124         * graphite-scop-detection.h: New.
3125         * Makefile.in: Add new rule for graphite-scop-detection.o.
3126
3127         * sese.c: Include tree-chrec.h, tree-data-ref.h, and
3128         tree-scalar-evolution.h.
3129         (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
3130         build_sese_loop_nests): Moved here from graphite.c.
3131         (param_index): Renamed parameter_index_in_region.
3132
3133 2009-02-18  Tobias Grosser  <grosser@fim.uni-passau.de>
3134             Sebastian Pop  <sebastian.pop@amd.com>
3135
3136         * gcc.dg/graphite/block-0.c: Expected to fail now.
3137         * gcc.dg/graphite/block-1.c: Same.
3138         * gcc.dg/graphite/block-5.c: Same.
3139         * gcc.dg/graphite/block-6.c: Same.
3140
3141 2009-02-18  Tobias Grosser  <grosser@fim.uni-passau.de>
3142             Sebastian Pop  <sebastian.pop@amd.com>
3143
3144         * graphite.h: Separate from graphite_bb_p the polyhedral
3145         representation in poly_bb_p and the GCC specifics in gimple_bb_p.
3146         (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
3147         graphite-data-ref.h.
3148         (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
3149         PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
3150         pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
3151         SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
3152         SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
3153         scop_nb_params): Moved to graphite-poly.h.
3154         * graphite-data-ref.c: Same.
3155         * graphite-data-ref.h: New.
3156         * graphite.c: Same.
3157         (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
3158         graphite_trans_bb_strip_mine, strip_mine_profitable_p,
3159         is_interchange_valid, graphite_trans_bb_block,
3160         graphite_trans_loop_block, scop_max_loop_depth,
3161         graphite_trans_scop_block, graphite_apply_transformations,
3162         new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
3163         graphite-poly.c.
3164         * graphite-poly.h: New.
3165         * graphite-poly.c: New.
3166         * Makefile.in (OBJS-common): Add graphite-poly.o.
3167         (graphite-poly.o): New rule.
3168         * tree-data-ref.h (struct data_reference): Remove unused scop field.
3169         (DR_SCOP): Removed.
3170
3171 2009-02-18  Sebastian Pop  <sebastian.pop@amd.com>
3172             Tobias Grosser  <grosser@fim.uni-passau.de>
3173
3174         * graphite.c: Replace gb -> gbb.
3175         * graphite.h: Same.
3176         * graphite-data-ref.c: Same.
3177
3178 2009-02-18  Sebastian Pop  <sebastian.pop@amd.com>
3179             Tobias Grosser  <grosser@fim.uni-passau.de>
3180
3181         * Makefile.in (OBJS-commmon): Add sese.o.
3182         (sese.o): New.
3183         (graphite.o): Add sese.h.
3184         * graphite.c (bb_in_ss_p, loop_in_sese_p,
3185         sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
3186         sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
3187         Move to sese.
3188         (block_before_scop): Add missing return.
3189         (new_scop, free_scop): Remove SESE data structures.
3190         (scop_record_loop, scan_tree_for_params, find_params_in_bb,
3191         find_scop_parameters, build_loop_iteration_domains,
3192         add_conditions_to_domain, register_scop_liveout_renames,
3193         copy_bb_and_scalar_dependences): Scop -> SESE.
3194
3195         (add_conditions_to_domain): SCoP -> SESE and remove check
3196         (scop_contains_non_iv_scalar_phi_nodes): New.
3197         (build_scop_conditions_1, build_scop_conditions): Remove check for
3198         non iv scalar phi nodes.
3199         (print_scop_statistics): New.
3200         (graphite_transform_loops): Cleanup.
3201
3202         * graphite.h: Move to sese & cleanup.
3203         * sese.c: New.
3204         * sese.h: New.
3205
3206 2009-02-16  Sebastian Pop  <sebastian.pop@amd.com>
3207             Tobias Grosser  <grosser@fim.uni-passau.de>
3208
3209         * graphite.c (build_scop_conditions_1): Conditions are only
3210         at the end of a basic block.
3211
3212 2009-02-16  Sebastian Pop  <sebastian.pop@amd.com>
3213             Tobias Grosser  <grosser@fim.uni-passau>
3214
3215         * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
3216         field.
3217         (GBB_ALPHA): Removed.
3218
3219 2009-02-16  Sebastian Pop  <sebastian.pop@amd.com>
3220             Tobias Grosser  <grosser@fim.uni-passau.de>
3221
3222         * graphite-data-ref.c (graphite_test_dependence): Don't use
3223         GBB_DYNAMIC_SCHEDULE.
3224         * graphite.c (new_graphite_bb): Same.
3225         (free_graphite_bb): Same.
3226         (build_scop_dynamic_schedules): Removed.
3227         (graphite_transform_loops): Don't call it.
3228         * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
3229         (GBB_DYNAMIC_SCHEDULE): Removed.
3230
3231 2009-02-16  Sebastian Pop  <sebastian.pop@amd.com>
3232             Tobias Grosser  <grosser@fim.uni-passau.de>
3233
3234         * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
3235         (print_graphite_bb): Same.
3236         (build_cloog_prog): Same.
3237
3238 2009-02-16  Sebastian Pop  <sebastian.pop@amd.com>
3239             Tobias Grosser  <grosser@fim.uni-passau.de>
3240
3241         * graphite.c (build_cloog_prog): Don't use CloogMatrix.
3242
3243 2009-02-16  Sebastian Pop  <sebastian.pop@amd.com>
3244             Tobias Grosser  <grosser@fim.uni-passau.de>
3245
3246         * graphite.c (build_scop_context): Don't use CloogMatrix.
3247         * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
3248         * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
3249
3250 2009-02-16  Sebastian Pop  <sebastian.pop@amd.com>
3251             Tobias Grosser  <grosser@fim.uni-passau.de>
3252
3253         * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
3254         liveout_renames, add_params fields...
3255         (struct sese): ... here.
3256         (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
3257         SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
3258
3259 2009-02-16  Sebastian Pop  <sebastian.pop@amd.com>
3260             Tobias Grosser  <grosser@fim.uni-passau.de>
3261
3262         * graphite.c (print_scop): Do not print the CLooG program.
3263         (new_scop, free_scop, initialize_cloog_names, build_scop_context,
3264         build_cloog_prog, gloog): Don't use SCOP_PROG.
3265         (find_transform): Renamed scop_to_clast.
3266         (print_generated_program, debug_generated_program): New.
3267         (graphite_transform_loops): Adapt to new interface.
3268         * graphite.h (struct scop): Remove program field.
3269         (SCOP_PROG): Removed.
3270         (print_generated_program, debug_generated_program): Declared.
3271
3272 2009-02-16  Sebastian Pop  <sebastian.pop@amd.com>
3273
3274         * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
3275         (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
3276         * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
3277         free_graphite_bb, build_scop_canonical_schedules,
3278         graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
3279         schedules are now represented using a ppl_Linear_Expression_t.
3280         * graphite.h (struct graphite_bb): Same.
3281         * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
3282         * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
3283
3284 2009-02-15  Sebastian Pop  <sebastian.pop@amd.com>
3285
3286         * graphite.c: Free local memory.
3287         * graphite-ppl.c: Same.
3288
3289 2009-02-15  Sebastian Pop  <sebastian.pop@amd.com>
3290
3291         * graphite.c (const_column_index, get_first_matching_sign_row_index,
3292         get_lower_bound_row, get_upper_bound_row, copy_constraint,
3293         swap_constraint_variables, scale_constraint_variable): Removed.
3294         (graphite_trans_bb_strip_mine): Remove pong.
3295         * graphite-ppl.c: Include missing header files.
3296         (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
3297         * graphite-ppl.h (ppl_strip_loop): Declared.
3298         * Makefile.in (graphite-ppl.o): Adjust dependences.
3299
3300 2009-02-14  Sebastian Pop  <sebastian.pop@amd.com>
3301
3302         * graphite.c (build_loop_iteration_domains): Remove ping pong.
3303         (build_scop_iteration_domain): Same.
3304
3305 2009-02-13  Sebastian Pop  <sebastian.pop@amd.com>
3306
3307         * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
3308         ping pong.
3309         (add_value_to_dim, scan_tree_for_params_right_scev,
3310         scan_tree_for_params_int): New.
3311         * graphite-ppl.c (oppose_constraint): New.
3312         (insert_constraint_into_matrix): Implement missing cases.
3313         * graphite-ppl.h (insert_constraint_into_matrix): Declared.
3314
3315 2009-02-13  Sebastian Pop  <sebastian.pop@amd.com>
3316
3317         * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
3318         use ppl_move_dimension.
3319
3320 2009-02-12  Sebastian Pop  <sebastian.pop@amd.com>
3321
3322         * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
3323         * graphite.c: Same.
3324         * graphite.h: Same.
3325         * graphite-ppl.c: Same.
3326         * graphite-ppl.h: Same.
3327
3328 2009-02-12  Sebastian Pop  <sebastian.pop@amd.com>
3329
3330         Revert last 3 commits.
3331
3332 2009-02-10  Sebastian Pop  <sebastian.pop@amd.com>
3333
3334         * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
3335         ping pong.
3336         (add_value_to_dim, scan_tree_for_params_right_scev,
3337         scan_tree_for_params_int): New.
3338         * graphite-ppl.c (oppose_constraint): New.
3339         (insert_constraint_into_matrix): Implement missing cases.
3340         * graphite-ppl.h (insert_constraint_into_matrix): Declared.
3341
3342 2009-02-10  Sebastian Pop  <sebastian.pop@amd.com>
3343
3344         * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
3345
3346 2009-02-10  Sebastian Pop  <sebastian.pop@amd.com>
3347             Tobias Grosser  <grosser@fim.uni-passau.de>
3348
3349         * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
3350         use ppl_move_dimension.
3351         * graphite-ppl.c (ppl_move_dimension): New.
3352         * graphite-ppl.h (ppl_move_dimension): Declared.
3353
3354 2009-02-10  Sebastian Pop  <sebastian.pop@amd.com>
3355
3356         * graphite.c: Do not include cloog/cloog.h.
3357         (print_graphite_bb): Remove ping pong, call PPL print function.
3358
3359 2009-02-10  Tobias Grosser  <grosser@fim.uni-passau.de>
3360
3361         * Makefile.in (OBJS-common): Add graphite-ppl.o.
3362         (graphite.o): Add dependence on graphite-ppl.h.
3363         (graphite-ppl.o): New.
3364         (graphite-data-ref.c): Ping pong between PPL data structures
3365         and matrices.
3366         * graphite-ppl.c: New.
3367         * graphite-ppl.h: New.
3368         * graphite.c: Include graphite-ppl.h.
3369         (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
3370         graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
3371         Ping pong between PPL data structures and matrices.
3372         (new_graphite_bb): Create a PPL constraint system.
3373         Call ppl_delete_Constraint_System instead of cloog_matrix_free.
3374         (build_loop_iteration_domains): Use PPL functions.
3375         * graphite.h: Include graphite-ppl.h.  Fix comments.
3376         (graphite_bb): Use a ppl_Constraint_System_t instead of
3377         CloogMatrix for representing the domain.
3378         (scop): Remove static_schedule.
3379         (gbb_nb_loops): Ping pong between PPL data structures and matrices.
3380
3381 2009-02-06  Sebastian Pop  <sebastian.pop@amd.com>
3382
3383         * graphite.c: Fix some comments.
3384
3385 2009-02-05  Sebastian Pop  <sebastian.pop@amd.com>
3386
3387         PR middle-end/38953
3388         * graphite.c (if_region_set_false_region): After moving a region
3389         in the false branch of a condition, remove the empty dummy
3390         basic block.
3391         (gloog): Remove wrong fix for PR38953.
3392
3393 2009-02-03  Tobias Grosser  <grosser@fim.uni-passau.de>
3394
3395         * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
3396         sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
3397         register_bb_in_sese, new_sese, free_sese): Moved.
3398         (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
3399         outermost_loop_in_scop, build_scop_iteration_domain,
3400         expand_scalar_variables_ssa_name, get_vdef_before_scop,
3401         limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
3402         Use loop_in_sese_p instead of loop_in_scop_p.
3403         (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
3404         (free_scop): Do not free SCOP_BBS_B.
3405         (nb_loops_around_loop_in_scop, nb_loops_around_gb,
3406         ref_nb_loops): Moved here...
3407         * graphite.h (ref_nb_loops): ... from here.
3408         (struct scop): Remove bbs_b bitmap.
3409         (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
3410         * testsuite/gcc.dg/graphite/scop-19.c: New
3411
3412 2009-02-03  Tobias Grosser  <grosser@fim.uni-passau.de>
3413
3414         * graphite.c (scopdet_basic_block_info): Fix bug in scop
3415         detection.
3416
3417 2009-01-30  Tobias Grosser  <grosser@fim.uni-passau.de>
3418
3419         * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
3420         eq_loop_to_cloog_loop): Remove.
3421         (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
3422         * graphite.h (struct scop): Remove loop2cloog_loop.
3423         (loop_domain_dim, loop_iteration_vector_dim): Remove.
3424
3425 2009-01-30  Tobias Grosser  <grosser@fim.uni-passau.de>
3426
3427         * opts.c (decode_options): Only add graphite options to O2
3428         if we compile with graphite enabled.
3429
3430 2009-01-26  Sebastian Pop  <sebastian.pop@amd.com>
3431
3432         * Merge from mainline (r143163:143684).
3433
3434 2009-01-26  Sebastian Pop  <sebastian.pop@amd.com>
3435
3436         * graphite.c (debug_value): Removed.
3437         * graphite.h (debug_value): Removed.
3438
3439 2009-01-23  Sebastian Pop  <sebastian.pop@amd.com>
3440
3441         * passes.c (init_optimization_passes): Do not call pass_copy_prop
3442         after graphite: pass_copy_prop does not maintain a proper loop closed
3443         SSA form.  pass_copy_prop should be fixed.
3444
3445 2009-01-23  Sebastian Pop  <sebastian.pop@amd.com>
3446
3447         * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
3448
3449 2009-01-23  Sebastian Pop  <sebastian.pop@amd.com>
3450
3451         * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
3452         (gloog): Split the exit of the scop when the scop exit is a loop exit.
3453         (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
3454         changed the CFG.
3455
3456 2009-01-20  Sebastian Pop  <sebastian.pop@amd.com>
3457
3458         * graphite.c (gloog): Return true when code gen succeeded.
3459         (graphite_transform_loops): Do not call cleanup_tree_cfg if
3460         the code of the function did not changed.  After cleanup_tree_cfg
3461         call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
3462         form.
3463
3464 2009-01-19  Sebastian Pop  <sebastian.pop@amd.com>
3465
3466         * graphite.c (stmt_simple_for_scop_p): Also handle cases when
3467         gimple_call_lhs is NULL.
3468
3469 2009-01-16  Sebastian Pop  <sebastian.pop@amd.com>
3470             Tobias Grosser  <tobi.grosser@amd.com>
3471
3472         * graphite.c (graphite_trans_scop_block): Do not block single
3473         nested loops.
3474
3475 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
3476             Tobias Grosser  <tobi.grosser@amd.com>
3477
3478         * graphite.c (build_scop_canonical_schedules): Start schedules at
3479         zero.
3480
3481 2009-01-15  Sebastian Pop  <sebastian.pop@amd.com>
3482             Tobias Grosser  <tobi.grosser@amd.com>
3483
3484         * graphite.c (compare_prefix_loops): New.
3485         (build_scop_canonical_schedules): Rewritten.
3486         (graphite_transform_loops): Move build_scop_canonical_schedules
3487         after build_scop_iteration_domain.
3488
3489 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
3490             Tobias Grosser  <tobi.grosser@amd.com>
3491
3492         * graphite.c (add_conditions_to_domain): Add the loops to
3493         the dimension of the iteration domain.  Do copy the domain
3494         only when it exists.
3495         (build_scop_conditions_1): Do not call add_conditions_to_domain.
3496         (add_conditions_to_constraints): New.
3497         (can_generate_code_stmt, can_generate_code): Removed.
3498         (gloog): Do not call can_generate_code.
3499         (graphite_transform_loops): Call add_conditions_to_constraints
3500         after building the iteration domain.
3501
3502 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
3503             Tobias Grosser  <tobi.grosser@amd.com>
3504             Jan Sjodin  <jan.sjodin@amd.com>
3505
3506         * graphite.c (scan_tree_for_params): On substractions negate
3507         all the coefficients of the term.
3508         (clast_to_gcc_expression_red): New.  Handle reduction expressions
3509         of more than two operands.
3510         (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
3511         (get_vdef_before_scop): Handle also the case of default definitions.
3512
3513 2009-01-14  Sebastian Pop  <sebastian.pop@amd.com>
3514
3515         PR middle-end/38431
3516         * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
3517         (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
3518         (gloog): Do not call cleanup_tree_cfg.
3519         (graphite_transform_loops): Call cleanup_tree_cfg after all
3520         scops have been code generated.
3521
3522 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
3523
3524         * passes.c (init_optimization_passes): Schedule after
3525         graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
3526
3527 2009-01-13  Sebastian Pop  <sebastian.pop@amd.com>
3528
3529         * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
3530         Fix comment.
3531         (expand_scalar_variables_ssa_name): Do not pass loop_p.  Fix comment.
3532         Set the type of an expression to the type of its assign statement.
3533         (expand_scalar_variables_expr):  Do not pass loop_p.
3534         Fix comment.  Stop recursion on tcc_constant or tcc_declaration.
3535         (copy_bb_and_scalar_dependences): Do not pass loop_p.
3536         (translate_clast): Update call to copy_bb_and_scalar_dependences.
3537
3538 2009-01-11  Sebastian Pop  <sebastian.pop@amd.com>
3539
3540         * graphite.c (expand_scalar_variables_ssa_name): Set the type of
3541         an expression to the gimple_expr_type of its assign statement.
3542         (expand_scalar_variables_expr): Stop recursion on tcc_constant
3543         or tcc_declaration.
3544
3545 2009-01-11  Sebastian Pop  <sebastian.pop@amd.com>
3546
3547         PR tree-optimization/38786
3548         * testsuite/gcc.dg/graphite/pr38786.c: New.
3549         * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
3550         the SSA_NAME case of expand_scalar_variables_expr.
3551         (expand_scalar_variables_expr): Also gather the scalar computation
3552         used to index the memory access.
3553         (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
3554         the gimple_stmt_iterator where it inserts new code.
3555
3556 2009-01-10  Sebastian Pop  <sebastian.pop@amd.com>
3557
3558         * testsuite/gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
3559
3560 2009-01-10  Sebastian Pop  <sebastian.pop@amd.com>
3561
3562         * opts.c (decode_options): Enable flag_graphite_identity and
3563         flag_loop_block in -O2 and above.
3564
3565 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
3566
3567         * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
3568         Fix merge problem: replace with the file from trunk.
3569
3570 2009-01-08  Sebastian Pop  <sebastian.pop@amd.com>
3571
3572         * Merge from mainline (r141727:143163).
3573
3574 2009-01-07  Sebastian Pop  <sebastian.pop@amd.com>
3575             Jan Sjodin  <jan.sjodin@amd.com>
3576
3577         PR tree-optimization/38559
3578         * testsuite/gcc.dg/graphite/pr38559.c: New.
3579
3580         * graphite.c (debug_value, copy_constraint,
3581         swap_constraint_variables, scale_constraint_variable, ): New.
3582         (get_lower_bound, get_upper_bound): Removed.
3583         (graphite_trans_bb_strip_mine): Clean up this code that works
3584         only for constant number of iterations.  Fully copy upper and
3585         lower bound constraints, not only the constant part of them.
3586         * graphite.h (debug_value): Declared.
3587
3588 2009-01-06  Jan Sjodin  <jan.sjodin@amd.com>
3589
3590         PR tree-optimization/38492
3591         PR tree-optimization/38498
3592         * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
3593         * tree-chrec.h (scev_is_linear_expression): Declared.
3594         * graphite.c (graphite_cannot_represent_loop_niter): New.
3595         (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
3596         (graphite_loop_normal_form): Use gcc_assert.
3597         (scan_tree_for_params): Use CASE_CONVERT.
3598         (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
3599         (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
3600         Use gcc_assert.  Discard scops that contain unhandled cases.
3601         (build_scop_conditions): Return a boolean status for unhandled cases.
3602         (strip_mine_profitable_p): Print the loop number, not its depth.
3603         (is_interchange_valid): Pass the depth of the loop nest, don't
3604         recompute it wrongly.
3605         (graphite_trans_bb_block): Same.
3606         (graphite_trans_bb_block): Print tentative of loop blocking.
3607         (graphite_trans_scop_block): Do not print that the loop has been
3608         blocked.
3609         (graphite_transform_loops): Do not handle scops that contain condition
3610         scalar phi nodes.
3611
3612         * testsuite/gcc.dg/graphite/pr38500.c: Fixed warning as committed
3613         in trunk.
3614         * testsuite/gcc.dg/graphite/block-0.c: Update test.
3615         * testsuite/gcc.dg/graphite/block-1.c: Same.
3616         * testsuite/gcc.dg/graphite/block-2.c: Remove xfail and test for
3617         blocking.
3618         * testsuite/gcc.dg/graphite/block-4.c: Remove test for strip mine.
3619         * testsuite/gcc.dg/graphite/block-3.c: New.
3620         * testsuite/gcc.dg/graphite/pr38498.c: New.
3621
3622 2008-12-22  Harsha Jagasia  <harsha.jagasia@amd.com>
3623
3624         PR tree-optimization/38510
3625         * gcc.dg/graphite/pr38510.c: New.
3626         * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
3627           (translate_clast): Call recompute_all_dominators before
3628           graphite_verify.
3629           (gloog): Call recompute_all_dominators before graphite_verify.
3630
3631 2008-12-12  Sebastian Pop  <sebastian.pop@amd.com>
3632
3633         PR tree-optimization/38492
3634         * graphite.c (rename_map_elt, debug_rename_elt,
3635         debug_rename_map_1, debug_rename_map, new_rename_map_elt,
3636         rename_map_elt_info, eq_rename_map_elts,
3637         get_new_name_from_old_name, bb_in_sese_p): Moved around.
3638         (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
3639         (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
3640         (sese_build_livein_liveouts): New.
3641         (new_sese, free_sese): New.
3642         (new_scop): Call new_sese.
3643         (free_scop): Call free_sese.
3644         (rename_variables_from_edge, rename_phis_end_scop): Removed.
3645         (register_old_new_names): Renamed register_old_and_new_names.
3646         (register_scop_liveout_renames, add_loop_exit_phis,
3647         insert_loop_close_phis, struct igp,
3648         default_liveout_before_guard, add_guard_exit_phis,
3649         insert_guard_phis, copy_renames): New.
3650         (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
3651         (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
3652         (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
3653         (scop_adjust_phis_for_liveouts): New.
3654         (gloog): Call scop_adjust_phis_for_liveouts.
3655
3656         * graphite.h (struct sese): Documented.  Added fields liveout,
3657         num_ver and livein.
3658         (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
3659         (new_sese, free_sese, sese_build_livein_liveouts): Declared.
3660         (struct scop): Added field liveout_renames.
3661         (SCOP_LIVEOUT_RENAMES): New.
3662
3663 2008-12-11  Sebastian Pop  <sebastian.pop@amd.com>
3664
3665         PR tree-optimization/38409
3666         * gcc.dg/graphite/pr38409.c: New.
3667         * graphite.c (nb_reductions_in_loop): Use simple_iv.
3668
3669 2008-12-11  Sebastian Pop  <sebastian.pop@amd.com>
3670
3671         * graphite.c (gcc_type_for_cloog_iv): By default return
3672         integer_type_node.
3673         (graphite_create_new_loop): Don't fold_convert the already
3674         fold_convert-ed expression.
3675
3676 2008-12-11  Harsha Jagasia  <harsha.jagasia@amd.com>
3677
3678         PR tree-optimization/38446
3679         * gcc.dg/graphite/pr38446.c: New.
3680         * graphite.c (register_bb_in_sese): New.
3681         (bb_in_sese_p): Check if bb belongs to sese region by explicitly
3682         looking at the bbs in the region.
3683         * graphite.h (sese): Add region_basic_blocks pointer set to
3684         structure and initialize at the time of defining new scop.
3685
3686 2008-12-11  Tobias Grosser  <grosser@fim.uni-passau.de>
3687
3688         * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
3689         (find_params_in_bb): Do not free data refs.
3690         (free_graphite_bb): Add FIXME on disabled free_data_refs.
3691
3692 2008-12-11  Sebastian Pop  <sebastian.pop@amd.com>
3693
3694         * testsuite/gcc.dg/graphite/scop-16.c: Test only scop specific info.
3695         * testsuite/gcc.dg/graphite/scop-17.c: Same.
3696         * testsuite/gcc.dg/graphite/block-5.c: New.
3697         * testsuite/gcc.dg/graphite/block-6.c: New.
3698         * testsuite/gcc.dg/graphite/pr37485.c: Clean dump file after.
3699         * testsuite/gcc.dg/graphite/pr37684.c: Same.
3700         * testsuite/gcc.dg/graphite/block-2.c: Same.
3701
3702         * graphite.c (struct ivtype_map_elt): New.
3703         (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
3704         new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
3705         gcc_type_for_cloog_iv): New.
3706         (loop_iv_stack_patch_for_consts): Use the type of the induction
3707         variable from the original loop, except for the automatically
3708         generated loops, i.e., in the case of a strip-mined loop, in
3709         which case there is no original loop: in that case just use
3710         integer_type_node.
3711         (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
3712         (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
3713         (clast_name_to_gcc): Accept params to be NULL.
3714         (clast_to_gcc_expression): Take an extra parameter for the type.
3715         Convert to that type all the expressions built by this function.
3716         (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
3717         (graphite_translate_clast_equation): Compute the type of the
3718         clast_equation before translating its LHS and RHS.
3719         (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
3720         (graphite_create_new_loop): Compute the type of the induction
3721         variable before translating the lower and upper bounds and before
3722         creating the induction variable.
3723         (rename_variables_from_edge, rename_phis_end_scop): New.
3724         (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
3725         (sese_add_exit_phis_edge): Do not use integer_zero_node.
3726         (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
3727         compute_cloog_iv_types): New.
3728         (gloog): Call compute_cloog_iv_types before starting the
3729         translation of the clast.
3730
3731         * graphite.h (struct graphite_bb): New field cloog_iv_types.
3732         (GBB_CLOOG_IV_TYPES): New.
3733         (debug_ivtype_map): Declared.
3734         (oldiv_for_loop): New.
3735
3736 2008-12-10  Tobias Grosser  <grosser@fim.uni-passau.de>
3737
3738         PR middle-end/38459
3739         * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
3740         (param_index): Assert if parameter is not know after parameter
3741         detection.
3742         (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
3743         (find_scop_parameters): Mark, that we have finished parameter
3744         detection.
3745         (graphite_transform_loops): Move condition detection before parameter
3746         detection.
3747         * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
3748         * testsuite/gfortran.dg/graphite/pr38459.f90: New.
3749
3750 2008-12-09  Tobias Grosser  <grosser@fim.uni-passau.de>
3751
3752         * graphite.c (graphite_transform_loops): Always call find_transform ()
3753         in ENABLE_CHECKING.  So we test these code paths, even if we do not
3754         generate code.
3755
3756 2008-12-09  Tobias Grosser  <grosser@fim.uni-passau.de>
3757
3758         * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
3759         (print_scop): Ditto.
3760
3761 2008-12-08  Tobias Grosser  <grosser@fim.uni-passau.de>
3762
3763         PR middle-end/38084
3764         Fix testsuite/gfortran.dg/graphite/id-3.f90.
3765         * graphite.c (scopdet_basic_block_info): Fix bug that found some
3766         regions more than once.
3767
3768 2008-12-03  Sebastian Pop  <sebastian.pop@amd.com>
3769
3770         Fix testsuite/gfortran.dg/graphite/id-4.f90.
3771         * graphite.c (scan_tree_for_params): Do not compute the multiplicand
3772         when not needed.
3773
3774 2008-12-03  Sebastian Pop  <sebastian.pop@amd.com>
3775
3776         Fix testsuite/gfortran.dg/graphite/id-1.f90.
3777         * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
3778         (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
3779         (max_precision_type): New.
3780         (value_clast): Removed.
3781         (clast_to_gcc_expression): Be more careful to types of expressions.
3782         Use max_precision_type and update use of gmp_cst_to_tree.
3783         (graphite_translate_clast_equation): Use max_precision_type.
3784         (graphite_create_guard_cond_expr): Do not use integer_type_node,
3785         use the type of the condition.
3786         (graphite_create_new_loop): Do not use integer_type_node, use the
3787         max_precision_type of lb and ub.
3788
3789 2008-12-03  Sebastian Pop  <sebastian.pop@amd.com>
3790
3791         * graphite.c (build_scops_1): Initialize open_scop.exit
3792         and sinfo.last.
3793
3794 2008-12-02  Sebastian Pop  <sebastian.pop@amd.com>
3795
3796         * testsuite/gcc.dg/graphite/pr38084.c: New.
3797         * testsuite/gfortran.dg/graphite/id-1.f90: New.
3798         * testsuite/gfortran.dg/graphite/id-2.f90: New.
3799         * testsuite/gfortran.dg/graphite/id-3.f90: New.
3800         * testsuite/gfortran.dg/graphite/id-4.f90: New.
3801         * testsuite/gfortran.dg/graphite/pr37857.f90: New.
3802
3803 2008-12-02  Sebastian Pop  <sebastian.pop@amd.com>
3804             Jan Sjodin  <jan.sjodin@amd.com>
3805             Harsha Jagasia  <harsha.jagasia@amd.com>
3806
3807         PR middle-end/37852
3808         PR middle-end/37883
3809         PR middle-end/37928
3810         PR middle-end/37980
3811         PR middle-end/38038
3812         PR middle-end/38039
3813         PR middle-end/38073
3814         PR middle-end/38083
3815         PR middle-end/38125
3816
3817         * testsuite/gcc.dg/graphite/pr38073.c: New.
3818         * testsuite/gcc.dg/graphite/pr37928.c: New.
3819         * testsuite/gcc.dg/graphite/pr37883.c: New.
3820         * testsuite/gcc.dg/graphite/pr38125.c: New.
3821         * testsuite/gfortran.dg/graphite/pr38083.f90: New.
3822         * testsuite/gfortran.dg/graphite/pr37852.f90: New.
3823         * testsuite/gfortran.dg/graphite/pr37980.f90: New.
3824
3825         * testsuite/gcc.dg/graphite/scop-18.c: Remove reduction, test for
3826         the number of detected scops.  Copy exact same test for loop
3827         blocking...
3828         * testsuite/gcc.dg/graphite/block-1.c: Fix the number of expected
3829         loops to be blocked as reductions are not handled.
3830         * testsuite/gcc.dg/graphite/block-4.c: ...here.  New.
3831
3832         * tree-phinodes.c (remove_phi_nodes): New, extracted from...
3833         * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
3834         ...here.
3835         * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
3836         * Makefile.in (graphite.o): Depend on value-prof.h.
3837         (graphite.o-warn): Removed -Wno-error.
3838         * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
3839         to be a NULL pointer.  Call update_stmt.  Return the newly created
3840         cannonical induction variable.
3841
3842         * graphite.h (debug_rename_map): Declared.  Fix some comments.
3843
3844         * graphite.c: Reimplement the code generation from graphite to gimple.
3845         Include value-prof.h.
3846         (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
3847         (get_old_iv_from_ssa_name): Removed.
3848         (graphite_stmt_p): New.
3849         (new_graphite_bb): Test for useful statements before building a
3850         graphite statement for the basic block.
3851         (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
3852         in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
3853         reason.
3854         (recompute_all_dominators, graphite_verify,
3855         nb_reductions_in_loop, graphite_loop_normal_form): New.
3856         (scop_record_loop): Call graphite_loop_normal_form.
3857         (build_scop_loop_nests): Iterate over all the blocks of the
3858         function instead of relying on the incomplete information from
3859         SCOP_BBS.  Return the success of the operation.
3860         (find_params_in_bb): Use the data from GBB_DATA_REFS.
3861         (add_bb_domains): Removed.
3862         (build_loop_iteration_domains): Don't call add_bb_domains.
3863         Add the iteration domain only to the basic blocks that have been
3864         translated to graphite.
3865         (build_scop_conditions_1): Add constraints only if the basic
3866         block have been translated to graphite.
3867         (build_scop_data_accesses): Completely disabled until data
3868         dependence is correctly implemented.
3869         (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
3870         (remove_all_edges_1, remove_all_edges): Removed.
3871         (get_new_name_from_old_name): New.
3872         (graphite_rename_variables_in_stmt): Renamed
3873         rename_variables_in_stmt.  Call get_new_name_from_old_name.
3874         Use replace_exp and update_stmt.
3875         (is_old_iv): Renamed is_iv.
3876         (expand_scalar_variables_stmt): Extra parameter for renaming map.
3877         Use replace_exp and update_stmt.
3878         (expand_scalar_variables_expr): Same.  Use the map to get the
3879         new names for the renaming of induction variables and for the
3880         renaming of variables after a basic block has been copied.
3881         (expand_scalar_variables): Same.
3882         (graphite_rename_variables): Renamed rename_variables.
3883         (move_phi_nodes): Removed.
3884         (get_false_edge_from_guard_bb): New.
3885         (build_iv_mapping): Do not insert the induction variable of a
3886         loop in the renaming iv map if the basic block does not belong
3887         to that loop.
3888         (register_old_new_names, graphite_copy_stmts_from_block,
3889         copy_bb_and_scalar_dependences): New.
3890         (translate_clast): Heavily reimplemented: copy basic blocks,
3891         do not move them.  Finally, in call cleanup_tree_cfg in gloog.
3892         At each translation step call graphite_verify ensuring the
3893         consistency of the SSA, loops and dominators information.
3894         (collect_virtual_phis, find_vdef_for_var_in_bb,
3895         find_vdef_for_var_1, find_vdef_for_var,
3896         patch_phis_for_virtual_defs): Removed huge hack.
3897         (mark_old_loops, remove_dead_loops, skip_phi_defs,
3898         collect_scop_exit_phi_args, patch_scop_exit_phi_args,
3899         gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
3900         (remove_sese_region, ifsese, if_region_entry, if_region_exit,
3901         if_region_get_condition_block, if_region_set_false_region,
3902         create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
3903         sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
3904         sese_add_exit_phis_edge, sese_add_exit_phis_var,
3905         rewrite_into_sese_closed_ssa): New.
3906         (gloog): Remove dead code.  Early return if code cannot be
3907         generated.  Call cleanup_tree_cfg once the scop has been code
3908         generated.
3909         (graphite_trans_scop_block, graphite_trans_loop_block): Do not
3910         block loops with less than two loops.
3911         (graphite_apply_transformations): Remove the call to
3912         scop_remove_ignoreable_gbbs.
3913         (limit_scops): When build_scop_loop_nests fails, continue on
3914         the next scop.  Fix open_scop.entry.
3915         (graphite_transform_loops): Call recompute_all_dominators: force the
3916         recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
3917         Call initialize_original_copy_tables and free_original_copy_tables
3918         to be able to copy basic blocks during code generation.
3919         When build_scop_loop_nests fails, continue on next scop.
3920         (value_clast): New union.
3921         (clast_to_gcc_expression): Fix type cast warning.
3922
3923 2008-11-09  Sebastian Pop  <sebastian.pop@amd.com>
3924
3925         * Merge from mainline (r140838:141727).
3926
3927 2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>
3928
3929         PR middle-end/37833
3930
3931         * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
3932
3933 2008-11-05  Tobias Grosser  <grosser@fim.uni-passau.de>
3934
3935         PR middle-end/37943
3936
3937         * graphite.c (scopdet_basic_block_info): Fix loops with multiple
3938         exits and conditions.
3939         * testsuite/gcc.dg/graphite/pr37943.c: New.
3940
3941 2008-10-23  Tobias Grosser  <grosser@fim.uni-passau.de>
3942
3943         PR middle-end/37886
3944         * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
3945
3946 2008-10-23  Tobias Grosser  <grosser@fim.uni-passau.de>
3947
3948         * doc/invoke.texi: Fix spaces.
3949
3950 2008-10-22  Sebastian Pop  <sebastian.pop@amd.com>
3951
3952         PR tree-optimization/37891
3953         Reverted last commit.
3954         * graphite.c (create_single_entry_edge): Set
3955         EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
3956
3957 2008-10-21  Sebastian Pop  <sebastian.pop@amd.com>
3958             Mitul Thakkar  <mitul.thakkar@amd.com>
3959
3960         * graphite.c (create_single_entry_edge): Set
3961         EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
3962
3963 2008-10-16  Tobias Grosser  <grosser@fim.uni-passau.de>
3964
3965         * doc/invoke.texi: Add -fgraphite-identity.
3966         * graphite.c (graphite_apply_transformations): Check for
3967         -fgraphite-identity.
3968         * toplev.c (process_options): Add flag_graphite_identity.
3969         * tree-ssa-loop.c: Add flag_graphite_identity.
3970
3971 2008-10-14  Sebastian Pop  <sebastian.pop@amd.com>
3972
3973         Undo changes from 2008-10-02:
3974         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
3975         operand type when copying the operand to a variable of different type.
3976         * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
3977         with the IV name after increment.
3978
3979 2008-10-14  Sebastian Pop  <sebastian.pop@amd.com>
3980             Harsha Jagasia  <harsha.jagasia@amd.com>
3981
3982         PR tree-optimization/37828
3983         * testsuite/gcc.dg/graphite/pr37828.c: New.
3984         * graphite.c (graphite_trans_loop_block): Do not loop block
3985         single nested loops.
3986
3987 2008-10-09  Harsha Jagasia  <harsha.jagasia@amd.com>
3988             Sebastian Pop  <sebastian.pop@amd.com>
3989
3990         * graphite.c (struct rename_map_elt, new_rename_map_elt,
3991         rename_map_elt_info, eq_rename_map_elts): New.
3992         (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
3993         (expand_scalar_variables_expr): Change parameters.
3994         (expand_scalar_variables_stmt): Same.
3995         (expand_scalar_variables): Same.
3996         (graphite_rename_ivs): Rename graphite_rename_variables.
3997         (build_iv_mapping): New.
3998         (translate_clast): Call build_iv_mapping.
3999         * graphite.h (gbb_p): New name.
4000
4001 2008-10-03  Harsha Jagasia  <harsha.jagasia@amd.com>
4002
4003         PR tree-optimization/37684
4004         * gcc.dg/graphite/pr37684.c: New.
4005         * graphite.c (exclude_component_ref): New.
4006         (is_simple_operand): Call exclude_component_ref.
4007
4008 2008-10-02  Jan Sjodin  <jan.sjodin@amd.com>
4009             Harsha Jagasia  <harsha.jagasia@amd.com>
4010
4011         PR tree-optimization/37485
4012         * gcc.dg/graphite/block-2.c: New
4013         * graphite.c (gmp_cst_to_tree): Moved.
4014         (iv_stack_entry_is_constant): New.
4015         (iv_stack_entry_is_iv): New.
4016         (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
4017         (loop_iv_stack_insert_constant): New.
4018         (loop_iv_stack_pop): Use new datatpype.
4019         (loop_iv_stack_get_iv): Same.
4020         (loop_iv_stack_get_iv_from_name): Same.
4021         (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
4022         (loop_iv_stack_patch_for_consts): New.
4023         (loop_iv_stack_remove_constants): New.
4024         (graphite_create_new_loop): Use loop_iv_stack_push_iv.
4025         (translate_clast): Call loop_iv_stack_patch_for_consts and
4026         loop_iv_stack_remove_constants.
4027         (gloog): Use new datatype.  Redirect construction edge to end
4028         block to avoid accidental deletion.
4029         * graphite.h (enum iv_stack_entry_kind): New.  Tag for data in
4030         iv stack entry.
4031         (union iv_stack_entry_data): New.  Data in iv stack entry.
4032         (struct iv_stack_entry): New.  Datatype for iv stack entries.
4033
4034 2008-10-02  Sebastian Pop  <sebastian.pop@amd.com>
4035
4036         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
4037         operand type when copying the operand to a variable of different type.
4038
4039 2008-10-02  Sebastian Pop  <sebastian.pop@amd.com>
4040
4041         * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
4042         with the IV name after increment.
4043
4044 2008-10-02  Sebastian Pop  <sebastian.pop@amd.com>
4045
4046         * Merge from mainline (r140164:140838).
4047
4048 2008-09-10  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
4049
4050         * graphite-data-ref.c: New.
4051         * graphite.c (print_scop): Also dump the dependence graph.
4052         (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
4053         (new_scop): Initialize SCOP_DEP_GRAPH.
4054         (build_scop_dynamic_schedules): New.
4055         (build_access_matrix_with_af): Fixed column numbering.
4056         (graphite_transform_loops): Call build_scop_dynamic_schedules.
4057         * graphite.h: Add ifndef/define guards against multiple inclusion.
4058         (struct scop): Add dep_graph field.
4059         (SCOP_DEP_GRAPH): Defined.
4060         (ref_nb_loops): Fixed and moved to other position.
4061         (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
4062         (nb_loops_around_loop_in_scop): New.
4063         (graphite_dump_dependence_graph): Declared.
4064         (graphite_build_rdg_all_levels): Declared.
4065         (graphite_test_dependence): Declared.
4066         * Makefile.in (graphite-data-ref.o): New target.
4067
4068 2008-09-09  Sebastian Pop  <sebastian.pop@amd.com>
4069
4070         * Merge from mainline (139870:140164).
4071
4072 2008-09-01  Sebastian Pop  <sebastian.pop@amd.com>
4073
4074         * Merge from mainline (138275:139870).
4075         * testsuite/gcc.dg/graphite/scop-matmult.c: XFailed as one of
4076         the commits from trunk broke the niter detection.
4077
4078 2008-09-01  Sebastian Pop  <sebastian.pop@amd.com>
4079
4080         * graphite.c: Add more documentation.  Fix formatting.
4081         (debug_loop_vec, debug_oldivs, loop_iv_stack,
4082         loop_iv_stack_debug): Moved...
4083         (schedule_to_scattering): Move before use.
4084         (dot_all_scops): Include in "#if 0" the code for system
4085         call dotty.
4086
4087         * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
4088         loop_iv_stack_debug): ...here.
4089
4090 2008-08-29  Jan Sjodin  <jan.sjodin@amd.com>
4091
4092         * tree-phinodes.c (make_phi_node): Extern.
4093         (add_phi_node_to_bb): New.
4094         (create_phi_node): Call add_phi_node_to_bb.
4095         * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
4096         (remove_statement): Handle case where stored phi was updated
4097         and is no longer the same.
4098         * graphite.c (is_parameter): New.
4099         (is_old_iv): New.
4100         (expand_scalar_variables_expr): New.
4101         (expand_scalar_variables_stmt): New.
4102         (expand_scalar_variables): New.
4103         (move_phi_nodes): Create new phi instead of moving old one.
4104         (translate_clast): Call expand_scalar_variables.
4105         (find_vdef_for_var_in_bb): Also scan regular definitions.
4106         (skip_phi_defs): New.
4107         (collect_scop_exit_phi_args): New.
4108         (patch_scop_exit_phi_args): New.
4109         (gloog): Patch phis after scop.
4110         * tree-flow.h: (add_phi_node_to_bb): Declared.
4111         (make_phi_node): Declared.
4112
4113 2008-08-26  Sebastian Pop  <sebastian.pop@amd.com>
4114
4115         * graphite.c (end_scop): Split the entry of the scop when it
4116         is the header of the loop in which the scop is ending.
4117         (build_scops_1, limit_scops): Update uses of end_scop.
4118
4119 2008-08-26  Sebastian Pop  <sebastian.pop@amd.com>
4120
4121         * graphite.c (dot_all_scops_1): Do not fail on uninitialized
4122         SCOP_ENTRY or SCOP_EXIT.
4123
4124 2008-08-25  Sebastian Pop  <sebastian.pop@amd.com>
4125
4126         * graphite.c (get_construction_edge): Removed.
4127         (gloog): Construction edge is the scop entry edge.
4128
4129 2008-08-25  Sebastian Pop  <sebastian.pop@amd.com>
4130
4131         * graphite.c (can_generate_for_scop): Removed.
4132         (gloog): Do not call it.
4133
4134 2008-08-25  Sebastian Pop  <sebastian.pop@amd.com>
4135
4136         * graphite.c (new_scop): Entry of a scop is an edge.
4137         Initialize SESE region.
4138         (free_scop): Free SESE region.
4139         (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
4140         (split_difficult_bb): New, split from end_scop.
4141         (end_scop): Exit of a scop is an edge.
4142         (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
4143         not automatically updated and thus is always wrong.
4144         * graphite.h (struct sese): New.
4145         (SESE_ENTRY): New.
4146         (SESE_EXIT): New.
4147         (struct scop): New field for a SESE region.  Remove entry, exit.
4148         (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
4149         semantics as before.  Moved comment around.
4150
4151 2008-08-25  Tobias Grosser  <grosser@fim.uni-passau.de>
4152             Sebastian Pop  <sebastian.pop@amd.com>
4153
4154         * graphite.c (graphite_transform_loops): Always enable gloog
4155         and find_transform when ENABLE_CHECKING.
4156
4157 2008-08-25  Sebastian Pop  <sebastian.pop@amd.com>
4158
4159         * graphite.c (graphite_transform_loops): Move pretty printer
4160         of SCOPs before doing any transform.  Remove call to print_scops
4161         and dot_all_scops_1.
4162
4163 2008-08-25  Sebastian Pop  <sebastian.pop@amd.com>
4164
4165         * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
4166         (print_graphite_bb): Same.
4167
4168 2008-08-25  Sebastian Pop  <sebastian.pop@amd.com>
4169
4170         * graphite.c (dot_all_scops_1): Cleanup.
4171         (move_scops): Fix comment.
4172
4173 2008-08-25  Sebastian Pop  <sebastian.pop@amd.com>
4174
4175         * graphite.c (build_scop_bbs): Revert commit 139355:
4176
4177         2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4178                     Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4179
4180                 * graphite.c (build_scop_bbs): Factor up code.
4181
4182 2008-08-25  Tobias Grosser  <grosser@fim.uni-passau.de>
4183
4184         * graphite.c (gloog): Update dominator info.
4185
4186 2008-08-25  Tobias Grosser  <grosser@fim.uni-passau.de>
4187
4188         * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
4189
4190 2008-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4191
4192         * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
4193         initialization.
4194         (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
4195         (translate_clast): Correct formatting.
4196         * graphite.h (struct num_map): Removed.
4197         (struct graphite_bb): Remove num_map field.
4198         (GBB_INDEX_TO_NUM_MAP): Removed.
4199
4200 2008-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4201
4202         * graphite.c (build_access_matrix_with_af): Fix comments.
4203         (build_scop_data_accesses): Same.
4204
4205 2008-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4206
4207         * graphite.c (build_scop_data_accesses): Don't construct
4208         access matrices.  Add a FIXME and an assert condition that
4209         should pass when the access matrices will be needed.
4210
4211 2008-08-24  Sebastian Pop  <sebastian.pop@amd.com>
4212
4213         * tree-data-ref.c (stmt_simple_memref_p): Don't call
4214         really_constant_p.
4215         * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
4216         Moved close by free_graphite_bb.
4217         (free_graphite_bb): Call free_data_refs.  Reset bb->aux.
4218         (new_scop): Move close by free_scop.
4219         (graphite_transform_loops): Avoid linear scan to reset bb->aux.
4220
4221 2008-08-22  Jan Sjodin  <jan.sjodin@amd.com>
4222
4223         * cfgloopmanip.c (create_empty_if_region_on_edge): New.
4224         * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
4225         instead of recursive call.
4226         (graphite_translate_clast_equation): New.
4227         (graphite_create_guard_cond_expr): New.
4228         (graphite_create_new_guard): New.
4229         (get_stack_index_from_iv): Removed.
4230         (graphite_rename_ivs_stmt): Use gbb_loop_index.
4231         (get_true_edge_from_guard_bb): New.
4232         (translate_clast): Handle stmt_guard in clast.
4233         (get_construction_edge): Allow construction edge detection for
4234         a scope entry with multiple predecessors if one predecessor is
4235         the immediate dominator of scope entry.
4236         (can_generate_code_stmt): Enable code generation for clast_guard.
4237         (gloog): Use correct context loop.  Removed check for post dominators.
4238         * cfgloop.h (create_empty_if_region_on_edge): Declared.
4239
4240 2008-08-21  Sebastian Pop  <sebastian.pop@amd.com>
4241
4242         * graphite.c (remove_dead_loops): Document better which
4243         loops are removed.
4244
4245 2008-08-21  Sebastian Pop  <sebastian.pop@amd.com>
4246
4247         * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
4248         and PPLINC.
4249         (graphite.o): Also depends on pointer-set.h.
4250
4251 2008-08-21  Sebastian Pop  <sebastian.pop@amd.com>
4252
4253         * graphite.c (scop_record_loop): Fix compile warning.
4254
4255 2008-08-21  Harsha Jagasia  <harsha.jagasia@amd.com>
4256             Sebastian Pop  <sebastian.pop@amd.com>
4257
4258         * graphite.c (scop_record_loop): DECL_NAME can be NULL.
4259
4260 2008-08-21  Sebastian Pop  <sebastian.pop@amd.com>
4261
4262         * graphite.c (build_graphite_bb): Initialize bb->aux to
4263         point to the graphite_bb_p.
4264         (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
4265         content of bb->aux.
4266         (add_bb_domains): Does not use the scop parameter.
4267         (graphite_transform_loops): Clean bb->aux at the end.
4268
4269 2008-08-20  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4270             Sebastian Pop  <sebastian.pop@amd.com>
4271
4272         * testsuite/lib/target-supports.exp
4273         (check_effective_target_fgraphite): New.
4274
4275         * testsuite/gcc.dg/graphite/graphite.exp: Early exit when
4276         check_effective_target_fgraphite returns false.
4277         Set dg-do-what-default to compile.
4278         (scan-graphite-dump-times): Removed.
4279         * testsuite/gfortran.dg/graphite/graphite.exp: Same.
4280
4281         * testsuite/gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
4282         Use scan-tree-dump-times instead of scan-graphite-dump-times.
4283         * testsuite/gcc.dg/graphite/scop-1.c: Same.
4284         * testsuite/gcc.dg/graphite/scop-2.c: Same.
4285         * testsuite/gcc.dg/graphite/scop-3.c: Same.
4286         * testsuite/gcc.dg/graphite/scop-4.c: Same.
4287         * testsuite/gcc.dg/graphite/scop-5.c: Same.
4288         * testsuite/gcc.dg/graphite/scop-6.c: Same.
4289         * testsuite/gcc.dg/graphite/scop-7.c: Same.
4290         * testsuite/gcc.dg/graphite/scop-8.c: Same.
4291         * testsuite/gcc.dg/graphite/scop-9.c: Same.
4292         * testsuite/gcc.dg/graphite/scop-10.c: Same.
4293         * testsuite/gcc.dg/graphite/scop-11.c: Same.
4294         * testsuite/gcc.dg/graphite/scop-12.c: Same.
4295         * testsuite/gcc.dg/graphite/scop-13.c: Same.
4296         * testsuite/gcc.dg/graphite/scop-matmult.c: Same.
4297         * testsuite/gcc.dg/graphite/scop-14.c: Same.
4298         * testsuite/gcc.dg/graphite/scop-15.c: Same.
4299         * testsuite/gcc.dg/graphite/block-0.c: Same.
4300         * testsuite/gcc.dg/graphite/scop-16.c: Same.
4301         * testsuite/gcc.dg/graphite/block-1.c: Same.
4302         * testsuite/gcc.dg/graphite/scop-17.c: Same.
4303         * testsuite/gcc.dg/graphite/scop-18.c: Same.
4304         * testsuite/gfortran.dg/graphite/block-1.f90: Same.
4305         * testsuite/gfortran.dg/graphite/scop-1.f: Same.
4306         * testsuite/gfortran.dg/graphite/block-2.f: Same.
4307
4308 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4309
4310         * graphite.c: Fix some XXX comments.
4311         (build_scop_dynamic_schedules): Removed.
4312
4313 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4314
4315         * graphite.h (scop_max_loop_depth): Moved...
4316         * graphite.c (scop_max_loop_depth): ...here.
4317         (remove_all_edges_1): New.
4318         (remove_all_edges): Factored code.
4319         (remove_cond_exprs): Check only the last statement for
4320         a GIMPLE_COND expression.
4321
4322 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4323
4324         * graphite.c (scan_tree_for_params): Early return when the
4325         expression is a chrec_dont_know.  Handle case NEGATE_EXPR.
4326         (find_scop_parameters): Factor out code.
4327         (graphite_trans_bb_strip_mine): Remove dead code.
4328
4329 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4330
4331         * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
4332         graphite_trans_bb_move_loop): Factor asserts.
4333         (gloog): Perform sanity checks only for ENABLE_CHECKING.
4334         Do not call calculate_dominance_info and estimate_bb_frequencies.
4335
4336 2008-08-20  Jan Sjodin  <jan.sjodin@amd.com>
4337
4338         * graphite.c (create_loops_mapping, free_loops_mapping,
4339         create_loops_mapping_num, debug_loop_mapping_1,
4340         debug_loop_mapping, graphite_loops_mapping_max_loop_num,
4341         get_loop_mapping_for_num, graphite_loops_mapping_add_child,
4342         graphite_loops_mapping_add_child_num,
4343         graphite_loops_mapping_insert_child,
4344         graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
4345         get_loop_mapped_depth, split_loop_mapped_depth_for_num,
4346         loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
4347         create_num_from_index, get_num_from_index,
4348         swap_loop_mapped_depth): Removed.
4349         (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
4350         (free_scop): Do not call free_loops_mapping.
4351         (graphite_get_new_iv_stack_index_from_old_iv): Renamed
4352         get_stack_index_from_iv.  Use GBB_LOOPS instead of calling
4353         get_loop_mapped_depth.
4354         (graphite_trans_bb_move_loop): Do not update the loop mapping.
4355         (graphite_trans_bb_strip_mine): Same.
4356         * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
4357         (struct scop): Remove field loops_mapping.
4358
4359 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4360             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4361
4362         * graphite.c (scop_record_loop): Factor out one level of the
4363         condition by early return.
4364         (build_scop_loop_nests): Format following FSF coding style.
4365         (build_scop_dynamic_schedules): Factor out code.
4366         (scopdet_bb_info): Reindent.  Default case should not be reachable.
4367
4368 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4369             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4370
4371         * graphite.c (loop_affine_expr): Check for DECL_P or struct
4372         assignments that are not handled as simple operands for now.
4373
4374 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4375             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4376
4377         * graphite.c (build_scop_bbs): Factor up code.
4378
4379 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4380             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4381
4382         * graphite.c (stmt_simple_for_scop_p): Factor code out
4383         of the loop.
4384         (enum gbb_type): New.  Group all the GBB_* types under it.
4385         (is_loop_exit): Moved...
4386         (end_scop): Enable BB spliting.
4387         * cfgloop.c (is_loop_exit): ...here.  Reimplemented.
4388         * cfgloop.h (is_loop_exit): Declared.
4389
4390 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4391
4392         * doc/invoke.texi: Remove strides from examples containing
4393         DO loops when the strides are equal to 1.
4394
4395 2008-08-20  Harsha Jagasia  <harsha.jagasia@amd.com>
4396             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4397
4398         * graphite.c (graphite_trans_scop_block): Or the result with
4399         the result from graphite_trans_loop_block.
4400         * testsuite/gcc.dg/graphite/block-1.c: New.
4401         * testsuite/gfortran.dg/graphite/block-1.f90: New.
4402         * testsuite/gfortran.dg/graphite/block-2.f: New.
4403
4404 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4405
4406         * graphite.c (graphite_transform_loops): Call cloog_initialize
4407         and cloog_finalize.
4408
4409 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4410
4411         * tree-data-ref.c) (stmt_simple_memref_p): New.
4412         * tree-data-ref.h (stmt_simple_memref_p): Declared.
4413         * graphite.c (stmt_simple_memref_for_scop_p): Removed.
4414         (is_simple_operand): Call stmt_simple_memref_p.
4415
4416         * testsuite/gcc.dg/graphite/scop-matmult.c: Updated for not
4417         using pointer arithmetic, as this is optimized by PRE and
4418         makes the code too difficult to analyze.
4419
4420         * testsuite/gcc.dg/graphite/scop-18.c: Same.
4421
4422 2008-08-20  Sebastian Pop  <sebastian.pop@amd.com>
4423
4424         * gdbinit.in (pgg): New.
4425
4426 2008-08-15  Tobias Grosser  <grosser@fim.uni-passau.de>
4427
4428         * graphite.c (graphite_trans_loop_block): Fix warning.
4429
4430 2008-08-15  Tobias Grosser  <grosser@fim.uni-passau.de>
4431
4432         * graphite.c (graphite_trans_loop_block): Fix my merge error.
4433
4434 2008-08-15  Tobias Grosser  <grosser@fim.uni-passau.de>
4435
4436         * graphite.c (graphite_trans_bb_block): Remove check for
4437         flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
4438         Check if loop blocking is profitable for every loop, before applying
4439         the changes.
4440         (graphite_apply_transformations): Call graphite_trans_bb_block only,
4441         if flag_loop_block is set.
4442
4443 2008-08-14  Sebastian Pop  <sebastian.pop@amd.com>
4444
4445         * graphite.c: Add some more documentation for the loop
4446         mapping.
4447
4448 2008-08-14  Sebastian Pop  <sebastian.pop@amd.com>
4449
4450         * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
4451         * graphite.c: Format on less than 80 columns.
4452         * graphite.h: Same.
4453
4454 2008-08-14  Sebastian Pop  <sebastian.pop@amd.com>
4455
4456         * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
4457
4458 2008-08-14  Sebastian Pop  <sebastian.pop@amd.com>
4459
4460         * doc/invoke.texi (floop-block, floop-strip-mine,
4461         floop-interchange): Update documentation with examples.
4462
4463 2008-08-13  Sebastian Pop  <sebastian.pop@amd.com>
4464
4465         * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
4466         add_referenced_var.
4467         * graphite.c (graphite_create_new_loop): Call add_referenced_var.
4468
4469 2008-08-13  Sebastian Pop  <sebastian.pop@amd.com>
4470
4471         * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
4472         Factor gcc_asserts into a single one.  Use force_gimple_operand_gsi.
4473         * tree-scalar-evolution.c: Revert useless changes.
4474         * tree-phinodes.c: Same.
4475         * cfghooks.c: Same.
4476         * vec.h: Same.
4477         * tree-vectorizer.h: Same.
4478         * tree-flow.h: Same.
4479         * tree-cfg.c: Same.
4480         * common.opt (fgraphite): Update documentation.
4481
4482 2008-08-12  Harsha Jagasia  <harsha.jagasia@amd.com>
4483
4484         * doc/invoke.texi (-floop-block, -floop-strip-mine,
4485         -floop-interchange): Add more text for explaining what each of these
4486         flags is doing.
4487         * tree-into-ssa.c (gimple_vec): Moved to...
4488         * graphite.c: Include gimple.h.
4489         (gimple_vec): Moved to...
4490         (del_loop_to_cloog_loop): Removed.
4491         (loop_affine_expr): Do not call create_data_ref when the
4492         operand is a constant.
4493         (new_scop): Use free instead of del_loop_to_cloog_loop.
4494         * Makefile.in (graphite.o): Depend on GIMPLE_H.
4495         * gimple.h (gimple_vec): ... here.
4496
4497 2008-08-11  Tobias Grosser  <grosser@fim.uni-passau.de>
4498
4499         * graphite.c (scopdet_bb_info): Only allow loops with known number of
4500         latch executions.
4501         (build_loop_iteration_domains): Fail, if latch executions unknown.
4502
4503 2008-08-11  Tobias Grosser  <grosser@fim.uni-passau.de>
4504
4505         * graphite.c (add_conditions_to_domain): New.
4506         (build_scop_conditions_1): Call add_conditions_to_domain.
4507         (set_cloog_options): Allow to disable optimizations.
4508
4509 2008-08-11  Tobias Grosser  <grosser@fim.uni-passau.de>
4510
4511         * graphite.c (find_params_in_bb): Look for parameters in conditions.
4512         Do not use walk_dominator_tree.
4513         (find_scop_parameters): Do not use walk_dominator_tree.
4514
4515 2008-08-11  Tobias Grosser  <grosser@fim.uni-passau.de>
4516
4517         * graphite.c (scan_tree_for_params) Add / Subtract inequality.
4518         (idx_record_params): Adapt.
4519         * graphite.h (scop_gimple_loop_depth): New.
4520
4521 2008-08-11  Tobias Grosser  <grosser@fim.uni-passau.de>
4522
4523         * graphite.c (build_scop_dynamic_schedules): Remove value_init.
4524         (scan_tree_for_params): Remove value_init.
4525         (build_scop_context): Remove value_init.
4526         (build_loop_iteration_domains): Remove value_init.
4527         (schedule_to_scattering): Remove value_init.
4528         (graphite_trans_bb_strip_mine): Remove value_init.
4529
4530 2008-08-11  Tobias Grosser  <grosser@fim.uni-passau.de>
4531
4532         * gcc/graphite.c (limit_scops): New.
4533         (graphite_transform_loops): Add limit SCoPs.
4534         * gcc/testsuite/gcc.dg/graphite/scop-0.c: Update number of SCoPs.
4535         * gcc/testsuite/gcc.dg/graphite/scop-1.c: Update number of SCoPs.
4536         * gcc/testsuite/gcc.dg/graphite/scop-10.c: Update number of SCoPs.
4537         * gcc/testsuite/gcc.dg/graphite/scop-11.c: Update number of SCoPs.
4538         * gcc/testsuite/gcc.dg/graphite/scop-12.c: Update number of SCoPs.
4539         * gcc/testsuite/gcc.dg/graphite/scop-13.c: Update number of SCoPs.
4540         * gcc/testsuite/gcc.dg/graphite/scop-14.c: Update number of SCoPs.
4541         * gcc/testsuite/gcc.dg/graphite/scop-15.c: Update number of SCoPs.
4542         * gcc/testsuite/gcc.dg/graphite/scop-16.c: Update number of SCoPs.
4543         Change loop numbers.
4544         * gcc/testsuite/gcc.dg/graphite/scop-17.c: Update number of SCoPs.
4545         Change loop numbers.
4546         * gcc/testsuite/gcc.dg/graphite/scop-18.c: Update number of SCoPs.
4547         * gcc/testsuite/gcc.dg/graphite/scop-2.c: Update number of SCoPs.
4548         * gcc/testsuite/gcc.dg/graphite/scop-3.c: Update number of SCoPs.
4549         * gcc/testsuite/gcc.dg/graphite/scop-4.c: Update number of SCoPs.
4550         * gcc/testsuite/gcc.dg/graphite/scop-5.c: Update number of SCoPs.
4551         * gcc/testsuite/gcc.dg/graphite/scop-6.c: Update number of SCoPs.
4552         * gcc/testsuite/gcc.dg/graphite/scop-7.c: Update number of SCoPs.
4553         * gcc/testsuite/gcc.dg/graphite/scop-8.c: Update number of SCoPs.
4554         * gcc/testsuite/gcc.dg/graphite/scop-9.c: Update number of SCoPs.
4555         * gcc/testsuite/gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
4556
4557 2008-08-11  Tobias Grosser  <grosser@fim.uni-passau.de>
4558
4559         * graphite.c (graphite_transform_loops): Call always find_transform.
4560
4561 2008-08-08  Tobias Grosser  <grosser@fim.uni-passau.de>
4562
4563         * graphite.c (free_loops_mapping): New.
4564         (stmt_simple_for_scop_p): Fix typo.
4565         (stmt_simple_for_scop_p): Fix tuples functions, that
4566         broke polyhedron.
4567         (free_graphite_bb): Fix some memleaks.
4568         (free_scop): Fix some memleaks.
4569         (scopdet_bb_info): Do not forget some tmp SCoPs.
4570         (find_params_in_bb): Fix some memleaks.
4571         (clast_to_gcc_expression): Fix warning.
4572
4573 2008-08-07  Tobias Grosser  <grosser@fim.uni-passau.de>
4574
4575         * testsuite/gcc.dg/graphite/scop-16.c: Fix for 32bit.
4576         * testsuite/gcc.dg/graphite/scop-17.c: Fix for 32bit.
4577
4578 2008-08-04  Sebastian Pop  <sebastian.pop@amd.com>
4579
4580         * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
4581         Move code ifdef-ed HAVE_cloog...
4582         * graphite.c: Include toplev.h.
4583         ... here.
4584         * Makefile.in (OBJS-common): Always build graphite.o.
4585         (BACKEND): Remove @GRAPHITE@.
4586         (tree-ssa-loop.o): Do not depend on TOPLEV_H.
4587         (graphite.o): Depend on TOPLEV_H.
4588
4589 2008-08-04  Sebastian Pop  <sebastian.pop@amd.com>
4590
4591         * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
4592         Remove typo left from polylib to ppl conversion.
4593         * graphite.c (graphite_transforms): Use sorry instead of fatal.
4594
4595 2008-08-03  Sebastian Pop  <sebastian.pop@amd.com>
4596
4597         * toplev.c (process_options): Move the graphite loop optimization
4598         flags...
4599         * tree-ssa-loop.c (graphite_transforms): ... here.
4600         When not configured with CLooG, print to dump_file that
4601         Graphite transforms were not performed.
4602         * testsuite/gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
4603         New.
4604         * testsuite/gcc.dg/graphite/*.c: Updated all testcases to use
4605         scan-graphite-dump-times.
4606
4607 2008-08-03  Sebastian Pop  <sebastian.pop@amd.com>
4608
4609         * graphite.c (dot_scop, dot_all_scops): Do not call system.
4610         Do not open /tmp/scop.dot and /tmp/allscops.dot.
4611
4612 2008-08-02  Sebastian Pop  <sebastian.pop@amd.com>
4613             Jan Sjodin  <jan.sjodin@amd.com>
4614
4615         * configure: Regenerated.
4616         * omp-low.c (expand_omp_sections): Remove now unused code.
4617         * config.in (HAVE_polylib): Removed.
4618         * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
4619         (PPLLIBS, PPLINC): Added.
4620         * graphite.c: Replace unsigned with int wherever possible.
4621         Don't access Cloog's data structures, but use accessor functions.
4622         Clast's stmt->type is now implemented as a vtable: change the
4623         switches of stmt->type into ifs.
4624         (polylib/polylibgmp.h): Don't include.
4625         (initialize_dependence_polyhedron,
4626         initialize_data_dependence_polyhedron, is_empty_polyhedron,
4627         statement_precedes_p, test_dependence, build_rdg_all_levels,
4628         dump_dependence_graph): Removed until this code is cleaned up
4629         or ported to Cloog.
4630         * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
4631         (POLYLIBINC): Renamed PPLINC.
4632
4633 2008-08-01  Harsha Jagasia  <harsha.jagasia@amd.com>
4634             Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4635             Jan Sjodin  <jan.sjodin@amd.com>
4636
4637         Finish the merge and tuplification of graphite.
4638
4639 2008-07-24  Sebastian Pop  <sebastian.pop@amd.com>
4640             Jan Sjodin  <jan.sjodin@amd.com>
4641
4642         Partial merge from mainline (138072:138275).
4643         * graphite.c still has to be tuplified.
4644
4645 2008-07-29  Jan Sjodin  <jan.sjodin@amd.com>
4646
4647         * graphite.c (graphite_loops_mapping_max_loop_num): New.
4648         (create_num_from_index): New.
4649         (get_num_from_index): Also pass in the graphite BB.
4650         (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
4651         (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
4652         (graphite_trans_bb_strip_mine): Call create_num_from_index.
4653         (is_interchange_valid): Return false when failing.
4654         * graphite.h (struct num_map): New.
4655         (struct graphite_bb): New field num_map.
4656         (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
4657
4658 2008-07-29  Tobias Grosser  <grosser@fim.uni-passau.de>
4659
4660         * graphite.c (dump_gbb_conditions): Print also conditions like
4661         "if (a)".  Remove dublicated code and use print_generic_expr ().
4662         (stmt_simple_for_scop_p): Only allow conditions we can handle
4663         {<, <=, >, >=}.
4664
4665 2008-07-25  Jan Sjodin  <jan.sjodin@amd.com>
4666
4667         * graphite.h (struct scop): Removed new_ivs field.
4668         (SCOP_NEWIVS): Deleted.
4669         * graphite.c (new_scop, free_scop, clast_name_to_gcc,
4670         clast_to_gcc_expression, graphite_create_new_loop):
4671         Removed use of new_ivs.
4672
4673 2008-07-25  Jan Sjodin  <jan.sjodin@amd.com>
4674
4675         * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
4676         create_loops_mapping_num, debug_loop_mapping_1): New.
4677         (debug_loop_mapping): Call debug_loop_mapping_1.
4678         (get_loop_mapping_for_num,
4679         graphite_loops_mapping_add_child,
4680         graphite_loops_mapping_add_child_num,
4681         graphite_loops_mapping_insert_child,
4682         graphite_loops_mapping_parent,
4683         split_loop_mapped_depth_for_num,
4684         loop_mapped_depth_split_loop): New.
4685         (increment_loop_mapped_depths): Removed.
4686         (swap_loop_mapped_depth_for_num): Reimplemented.
4687         (new_scop): Call create_loops_mapping.
4688         (scop_record_loop): Call graphite_loops_mapping_insert_child.
4689         (translate_clast): Pass the old loop father in parameter, and pass
4690         it to get_old_iv_from_ssa_name.
4691         (remove_edges_around_useless_blocks, can_generate_code_stmt,
4692         can_generate_code, can_generate_for_scop): New.
4693         (graphite_trans_bb_block): Returns false when it fails to transform.
4694         * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
4695
4696 2008-07-25  Sebastian Pop  <sebastian.pop@amd.com>
4697
4698         Reverted all the changes related to the streamization and
4699         loop fusion.
4700         These changes are now tracked in the streamization branch.
4701
4702 2008-07-25  Sebastian Pop  <sebastian.pop@amd.com>
4703             Jan Sjodin  <jan.sjodin@amd.com>
4704
4705         * graphite.c (gbb_compare): Correctly constify.
4706         (gbb_can_be_ignored): Indent.
4707         (graphite_trans_scop_swap_1and2): Add legality check.
4708         Remove dead FIXMEs.
4709
4710 2008-07-25  Sebastian Pop  <sebastian.pop@amd.com>
4711
4712         Remove fallouts from "Reverted the Condate changes".
4713         * tree.h: Remove unused decl.
4714         * testsuite/gcc.dg/tree-checker: Same.
4715         * timevar.def: Remove counter.
4716
4717 2008-07-24  Sebastian Pop  <sebastian.pop@amd.com>
4718
4719         * Merge from mainline (135673:138072).
4720
4721         Reverted the MIRO changes (from 2008-04-05) that are now
4722         tracked in the miro branch.
4723         * tree-bounds.c: Removed.
4724         * tree-bounds.h: Removed.
4725
4726         Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
4727         are now tracked in the condate branch.
4728         * tree-check.c: Removed.
4729         * tree-match.c: Removed.
4730         * condate.y: Removed.
4731
4732 2008-07-24  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4733
4734         * common.opt: New user flag -floop-block, -floop-strip-mine
4735         and -floop-interchange.
4736         * toplev.c (process_options): Enable -fgraphite pass if any one of the
4737         graphite loop optimization flags is turned on.
4738         * graphite.c (graphite_apply_transformations): Add flag_loop_block,
4739         flag_loop_strip_mine and flag_loop_interchange checks before
4740         optimizations.
4741         * doc/invoke.texi: Remove -fgraphite and add -floop-block,
4742         -floop-strip-mine and -floop-interchange.
4743         * testsuite/gcc.dg/graphite/block-0.c: Add -floop-block and remove
4744         -fgraphite.
4745         * testsuite/gcc.dg/graphite/scop-16.c: Ditto.
4746         * testsuite/gcc.dg/graphite/scop-17.c: Ditto.
4747         * testsuite/gcc.dg/graphite/scop-18.c: Ditto.
4748
4749 2008-07-23  Jan Sjodin  <jan.sjodin@amd.com>
4750             Sebastian Pop  <sebastian.pop@amd.com>
4751
4752         * cfgloopmanip.c (update_dominators_in_loop): Make it static.
4753         (create_empty_loop_on_edge): More fixes.
4754         * tree-phinodes.c (resize_phi_node): Extern.
4755         (unlink_phi_node, move_phi_node): New split from remove_phi_node.
4756         * cfghooks.c (update_dominator_information): New split from
4757         split_edge.
4758         * tree-vectorizer.c (rename_variables_in_bb): Extern.
4759         * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
4760         successor of the function entry block.
4761
4762         * graphite.c: Include pointer-set.h.
4763         (debug_loop_mapping, increment_loop_mapped_depths,
4764         get_loop_mapped_depth_for_num, get_loop_mapped_depth,
4765         set_loop_mapped_depth_for_num, set_loop_mapped_depth,
4766         swap_loop_mapped_depth_for_num, get_num_from_index,
4767         swap_loop_mapped_depth, loop_iv_stack_debug,
4768         loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
4769         loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
4770         get_old_iv_from_ssa_name): New.
4771         (new_scop): Initialize SCOP_LOOPS_MAPPING.
4772         (free_scop): Free SCOP_LOOPS_MAPPING.
4773         (scop_record_loop): Record old ivs.
4774         (create_var_name): Removed.
4775         (initialize_cloog_names): Allocate double space in case strip mine
4776         applies to all loops once.
4777         (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
4778         (clast_to_gcc_expression): Same.  Implement more clast to gimple
4779         translation.
4780         (graphite_create_new_loop): Pass in ivstack.
4781         (remove_all_edges): Pass in the construction_edge.
4782         (graphite_remove_iv): Removed.
4783         (graphite_rename_ivs, graphite_rename_ivs_stmt,
4784         remove_cond_exprs): Rewritten.
4785         (move_phi_nodes): New.
4786         (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
4787         (translate_clast): Pass in ivstack.  Rewrite some cases.
4788         (set_cloog_options, debug_clast_stmt): New.
4789         (find_transform): Use set_cloog_options.
4790         (outermost_loop_layer): Removed.
4791         (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
4792         find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
4793         mark_old_loops, remove_dead_loops): New.
4794         (gloog): Rewritten.
4795         (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
4796         (const_column_index, get_first_matching_sign_row_index,
4797         get_lower_bound_row, get_upper_bound_row, get_lower_bound,
4798         get_upper_bound): New.
4799         (graphite_trans_bb_strip_mine): Also update the iv map.
4800
4801         * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
4802         (struct name_tree): Add a loop field.
4803         (struct scop): Add a graphite_loops_mapping field.
4804         (SCOP_LOOPS_MAPPING): New.
4805         (debug_clast_stmt): Declare.
4806         * lambda.h (find_induction_var_from_exit_cond): Declare.
4807         (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
4808         * cfgloop.h (update_dominators_in_loop): Removed declaration.
4809         (create_empty_loop_on_edge): Updated.
4810         * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
4811         rename_variables_in_bb): Declare.
4812         * tree-cfg.c (remove_bb): Extern.
4813
4814         * testsuite/gcc.dg/graphite/block-0.c: New.
4815
4816 2008-07-21  Dwarakanath Rajagopal  <dwarak.rajagopal@amd.com>
4817             Sebastian Pop  <sebastian.pop@amd.com>
4818
4819         * graphite.c (strip_mine_profitable_p): New.
4820         (graphite_trans_bb_block): Disable strip mining if not profitable.
4821
4822         * testsuite/gcc.dg/graphite/scop-18.c: New.
4823         * testsuite/gcc.dg/graphite/scop-17.c: Fixed.
4824         * testsuite/gcc.dg/graphite/scop-16.c: Fixed.
4825
4826 2008-07-17  Harsha Jagasia  <harsha.jagasia@amd.com>
4827             Jan Sjodin  <jan.sjodin@amd.com>
4828             Sebastian Pop  <sebastian.pop@amd.com>
4829
4830         * graphite.c (is_interchange_valid): New.
4831         (graphite_trans_bb_block): Check loop nest of basic block for legality
4832         of interchange.
4833
4834         * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
4835         outer_most_loop, gbb_outer_most_loop_index): New.
4836
4837         * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
4838         * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
4839         * testsuite/gcc.dg/graphite/scop-16.c: New.
4840         * testsuite/gcc.dg/graphite/scop-17.c: New.
4841
4842 2008-07-11  Tobias Grosser  <grosser@fim.uni-passau.de>
4843
4844         * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
4845         (graphite_trans_scop_block): Ignore SCoPs without bbs.
4846
4847 2008-07-11  Tobias Grosser  <grosser@fim.uni-passau.de>
4848
4849         * graphite.c (new_scop): Initialize SCOP_EXIT.
4850         (scopdet_info): Add.
4851         (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
4852         (build_scops_1): Cleanup, bugfixes.
4853         (build_scops): Cleanup.
4854
4855         * testsuite/gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
4856         * testsuite/gcc.dg/graphite/scop-15.c: Add SCoP numbers.
4857
4858 2008-07-10  Harsha Jagasia  <harsha.jagasia@amd.com>
4859
4860         * testsuite/gfortran.dg/graphite/scop-1.f: Update to reduced test case.
4861
4862         * testsuite/gfortran.dg/graphite/graphite.exp: Use
4863         DEFAULT_GRAPHITE_FLAGS.
4864
4865         * testsuite/gcc.dg/graphite/scop-15.c: Update to reduced test case.
4866
4867 2008-07-10  Harsha Jagasia  <harsha.jagasia@amd.com>
4868
4869         * graphite.c (scan_tree_for_params): Do not assert any more if
4870         MULT_EXPR parameter is negative.
4871
4872         * testsuite/gfortran.dg/graphite/scop-1.f: New.
4873
4874         * testsuite/gfortran.dg/graphite/graphite.exp: New.
4875
4876         * testsuite/gcc.dg/graphite/scop-15.c: New.
4877
4878 2008-07-10  Harsha Jagasia  <harsha.jagasia@amd.com>
4879
4880         * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
4881
4882 2008-07-10  Tobias Grosser  <grosser@fim.uni-passau.de>
4883
4884         * graphite.c (graphite_trans_bb_swap_loops): Rename from
4885         graphite_swap_loops.
4886         (graphite_trans_bb_move_loop): New.
4887         (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
4888         (graphite_trans_bb_block): New.
4889         (graphite_trans_loop_block): New.
4890         (graphite_trans_scop_swap_1and2): Rename from
4891         graphite_trans_swap_1and2.
4892         (graphite_trans_scop_strip): Rename from graphite_trans_strip.
4893         (graphite_trans_scop_block): New.
4894         (graphite_apply_transformations): Rename from
4895         graphite_transformations.
4896
4897         * testsuite/gcc.dg/graphite/scop-matmult.c: New.
4898
4899 2008-07-10  Tobias Grosser  <grosser@fim.uni-passau.de>
4900
4901         * graphite.c (gbb_compare): New.
4902         (graphite_sort_gbbs): New.
4903         (gbb_can_be_ignored): New.
4904         (scop_remove_ignoreable_gbbs): New.
4905         (graphite_transformations): Cleanup and add
4906         scop_remove_ignoreable_gbbs.
4907         * lambda.h (lambda_vector_compare): New.
4908
4909 2008-07-09  Tobias Grosser  <grosser@fim.uni-passau.de>
4910
4911         * graphite.c (print_graphite_bb): Correct printing of static schedule.
4912         (graphite_swap_loops): int -> unsigned
4913         (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
4914         (graphite_transformations): New.
4915         (graphite_transform_loops): Move to graphite_transformations.
4916         * graphite.h (gbb_nb_loops): Return unsigned.
4917
4918 2008-07-04  Tobias Grosser  <grosser@fim.uni-passau.de>
4919
4920         * graphite.c (scan_tree_for_params): Fix insertion of parameters into
4921         the domain matrix.  This makes scop-0.c work again.
4922
4923 2008-06-20  Richard Guenther  <rguenther@suse.de>
4924
4925         * graphite.h: Adjust copyright to GPLv3.
4926         * graphite.c: Likewise.
4927         (stmt_simple_memref_for_scop_p): Split out from ...
4928         (stmt_simple_for_scop_p): ... here.  Fix handling of calls
4929         and simplify.
4930         (get_bb_type): Optimize.
4931         (is_pred): Remove.
4932         (is_bb_addable): Fix memleak, replace is_pred call with
4933         single_pred.
4934         (build_scops): Use current_loops.
4935         (param_index): Fix memleak.
4936
4937 2008-06-20  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
4938
4939         * graphite.c: Fix formatting.
4940
4941 2008-06-19  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
4942
4943         * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
4944         (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
4945         (create_var_name, save_var_name): Newly defined functions.
4946         (initialize_cloog_names): Part of the code factored out to
4947         save_var_name.
4948         (clast_to_gcc_expression): Now handles the case of clast_red_sum
4949         in clast_reduction statement.
4950         (graphite_create_new_loop): Now takes a new parameter
4951         for outer_loop.
4952         (translate_clast): Now also takes the context_loop and bb_exit
4953         parameters. Rewritten the code so that it creates a gimple code
4954         inside the given context.
4955         (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
4956         remove_cond_expr, disconnect_cond_expr,
4957         disconnect_virtual_phi_nodes): Newly defined functions.
4958         * graphite.h (struct scop): added old_ivs vector.
4959         SCOP_OLDIVS: New macro.
4960
4961 2008-06-19  Sebastian Pop  <sebastian.pop@amd.com>
4962
4963         * cfgloopmanip.c: Add missing function comments, fix formatting.
4964
4965 2008-06-18  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
4966
4967         * cfgloopmanip.c (update_dominators_in_loop): Defined.
4968         (create_empty_loop_on_edge): Defined.
4969         * tree-parloops.c (canonicalize_loop_ivs): Returns tree
4970         instead of void.
4971         * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
4972         (update_dominators_in_loop): Declared as extern
4973         * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
4974
4975 2008-06-16  Tobias Grosser  <grosser@fim.uni-passau.de>
4976
4977         * graphite.c (print_graphite_bb): Allow changing number of loops
4978         in SCoP domain.
4979         (initialize_cloog_names): Allow changing number of loops.
4980         (build_cloog_prog): Simplify.
4981         (find_transform): Enable cloog option --strides.
4982         (graphite_swap_loops): New.
4983         (graphite_strip_mine_loop): New.
4984         (graphite_trans_swap_1and2): New.
4985         (graphite_trans_strip): New.
4986         (graphite_transform_loops): Add graphite_trans_strip.
4987         * graphite.h (scop_max_loop_depth): New.
4988
4989 2008-06-15  Tobias Grosser  <grosser@fim.uni-passau.de>
4990
4991         * graphite.c (build_scop_iteration_domain): Remove forgotten
4992         line. (Fixes compile)
4993
4994 2008-06-15  Tobias Grosser  <grosser@fim.uni-passau.de>
4995
4996         * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
4997         (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
4998         (build_bb_loops): New.
4999         (graphite_transform_loops): Add build_bb_loops.
5000         (schedule_to_scattering): Use gbb_nb_loops to support changing loop
5001         numbers.
5002         * graphite.h (graphite_bb): Add loops.
5003         (gbb_nb_loops): New.
5004         (gbb_loop_at_index): New.
5005         (gbb_loop_index): New.
5006         (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
5007         using nb_params_in_scop.
5008
5009 2008-06-14  Tobias Grosser  <grosser@fim.uni-passau.de>
5010
5011         * graphite.c (print_graphite_bb): Adapt to minimized schedule.
5012         (build_scop_canonical_schedules): Build minimized schedule.
5013         (schedule_to_scattering): Adapt to minimized schedule.
5014         * graphite.h (graphite_bb): Add/Update descriptions.
5015
5016 2008-06-14  Adrien Eliche  <aeliche@isty.uvsq.fr>
5017             Tobias Grosser  <grosser@fim.uni-passau.de>
5018
5019         * graphite.c (print_graphite_bb): Add condition printing.
5020         (dump_value): New.
5021         (dump_gbb_conditions): New.
5022         (build_scop_conditions_1): New.
5023         (build_scop_conditions): New.
5024         * graphite.h (graphite_bb): Add conditions.
5025
5026 2008-06-14  Tobias Grosser  <grosser@fim.uni-passau.de>
5027
5028         * graphite.c (print_graphite_bb):
5029         (free_graphite_bb): New.
5030         (free_scop): Free bbs.
5031         (get_bb_type): Free doms.
5032         (build_scop_context): Free context matrix.
5033         (build_loop_iteration_domains): Remove unused code.
5034         (build_cloog_prog): Free scattering function and blocklist.
5035         (find_transform): Free options.
5036
5037 2008-06-13  Tobias Grosser  <grosser@fim.uni-passau.de>
5038
5039         * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
5040         Remove unnecessery cloog data structures. Make a copy of the domain
5041         (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
5042         unnecessary cloog data structures. Fix memory leaks. Remove insert
5043         into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
5044         used.
5045         (build_scop_iteration_domain): Remove unnecessary cloog
5046         data structures.  Fix memory leaks.
5047         (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
5048         uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
5049
5050 2008-06-12  Tobias Grosser  <grosser@fim.uni-passau.de>
5051
5052         * graphite.c (find_scop_params): Remove initialize_cloog_names.
5053
5054 2008-06-12  Tobias Grosser  <grosser@fim.uni-passau.de>
5055
5056         * graphite.c (end_scop): Style fix.
5057         (schedule_to_scattering): Style and comment fix.
5058
5059 2008-06-12  Tobias Grosser  <grosser@fim.uni-passau.de>
5060         * graphite.c (print_graphite_bb): Fix definiton of
5061         schedule_to_scattering.
5062         (initialize_cloog_names): Change nb_scattdims to max loop
5063         depth in SCoP.
5064         (schedule_to_scattering): Take parameter for number of scattering
5065         dimensions.
5066         (build_cloog_prog): Only build as much scattering dimensions as
5067         necessary.
5068
5069 2008-06-12  Tobias Grosser  <grosser@fim.uni-passau.de>
5070
5071         * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
5072         in polyhedron/aermod.f90.
5073
5074 2008-06-11  Tobias Grosser  <grosser@fim.uni-passau.de>
5075             Dwarak Rajagopal  <dwarak.rajagopal@amd.com>
5076             Harsha Jagasia  <harsha.jagasia@amd.com>
5077
5078         * graphite.c (is_bb_addable): Fix segfault.
5079
5080 2008-06-10  Tobias Grosser  <grosser@fim.uni-passau.de>
5081
5082         * graphite.c (is_bb_addable): Fix memory leak, handling of loops
5083         with multiple exits and conditional handling in edge cases.
5084         (is_loop_exit): Fix memory leak. (Forgotten in last commit)
5085
5086         * testsuite/gcc.dg/graphite/scop-14.c: New.
5087
5088 2008-06-06  Tobias Grosser  <grosser@fim.uni-passau.de>
5089             Adrien Eliche  <aeliche@isty.uvsq.fr>
5090
5091         * graphite.c (is_bb_addable): Add more comments and enhance
5092         readablity of the source code. Fix memory leak.
5093         (is_loop_exit): Fix memory leak.
5094
5095 2008-06-05  Tobias Grosser  <grosser@fim.uni-passau.de>
5096
5097         * graphite.c (first_loop_in_scop): Deleted.
5098         (setup_cloog_loop): Only walk the loop chain for inner loops.
5099         (build_scop_iteration_domain): Execute setup_cloog_loop for
5100         all loops in the first layer.
5101
5102 2008-06-05  Tobias Grosser  <grosser@fim.uni-passau.de>
5103
5104         * graphite.c (scan_tree_for_params): Change the way params are
5105         added to be indepenent of the number of loops.
5106         (setup_cloog_loop): Revert to short matrix format. Fix parameter
5107         handling.
5108         (build_cloog_prog): Revert to short matrix format.
5109
5110 2008-06-05  Sebastian Pop  <sebastian.pop@amd.com>
5111             Dwarak Rajagopal <dwarak.rajagopal@amd.com>
5112
5113         * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
5114         warning.
5115
5116 2008-06-05  Sebastian Pop  <sebastian.pop@amd.com>
5117
5118         * graphite.c (nb_data_refs_in_scop): New.
5119         (graphite_transform_loops): Print more stats: number of
5120         loops, basic blocks and data references per scop.
5121
5122 2008-06-04  Sebastian Pop  <sebastian.pop@amd.com>
5123             Jan Sjodin  <jan.sjodin@amd.com>
5124
5125         * graphite.c (loop_affine_expr, idx_record_params,
5126         find_scop_parameters, setup_cloog_loop): Use instantiate_scev
5127         instead of instantiate_parameters.
5128
5129 2008-06-04  Tobias Grosser  <grosser@fim.uni-passau.de>
5130
5131         * graphite.c (schedule_to_scattering): Fix scattering dimensions,
5132         add support for parameters, add STATIC_SCHEDULE at the right places,
5133         cleanup.
5134
5135 2008-06-04  Tobias Grosser  <grosser@fim.uni-passau.de>
5136
5137         * graphite.c (build_scop_loop_nests): Only add the loops, that
5138         are contained completely in the SCoP.
5139         (build_cloog_prog): Disable scattering, until schedule_to_scattering
5140         and the domains are fixed.
5141         (build_scop_canonical_schedules): Add support for bbs not contained
5142         in any SCoP.
5143
5144 2008-06-04  Tobias Grosser  <grosser@fim.uni-passau.de>
5145
5146         * graphite.h (scop_contains_loop): Update comments to match
5147         the actual behavior.
5148         (scop_contains_loop): New.
5149         * graphite.c (schedule_to_scattering): Use scop_contains_loop.
5150
5151 2008-06-04  Sebastian Pop  <sebastian.pop@amd.com>
5152
5153         * graphite.c (get_bb_type): On function body, i.e. loop_0,
5154         don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
5155         as GBB_COND_HEADER.
5156
5157 2008-06-04  Sebastian Pop  <sebastian.pop@amd.com>
5158             Tobias Grosser  <grosser@fim.uni-passau.de>
5159
5160         * graphite.c (graphite_transform_loops): Early return when
5161         there are no loops in the function.
5162
5163 2008-05-31  Sebastian Pop  <sebastian.pop@amd.com>
5164             Jan Sjodin  <jan.sjodin@amd.com>
5165
5166         * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
5167         offset of the last loop.
5168         (setup_cloog_loop): Copy the entire outer constraint matrix.
5169
5170 2008-05-31  Sebastian Pop  <sebastian.pop@amd.com>
5171             Jan Sjodin  <jan.sjodin@amd.com>
5172
5173         * graphite.c (stmt_in_scop_p, function_parameter_p,
5174         invariant_in_scop_p): Removed.
5175         (scan_tree_for_params): Can be used with no constraint
5176         matrix for gathering parameters.
5177         (idx_record_params): Don't use idx_record_param, instead use
5178         scan_tree_for_params.
5179         (find_scop_parameters): Same.
5180         (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
5181         Fix the size of loop domains.
5182         (schedule_to_scattering): Exit when the outer loop is not in scop.
5183         (find_transform): Enable build_cloog_prog.
5184
5185 2008-05-31  Sebastian Pop  <sebastian.pop@amd.com>
5186             Jan Sjodin  <jan.sjodin@amd.com>
5187
5188         * graphite.c (schedule_to_scattering): Make scattering domains
5189         uniformly of the same size, as required by CLooG 0.14.0 and before.
5190
5191 2008-05-31  Sebastian Pop  <sebastian.pop@amd.com>
5192             Jan Sjodin  <jan.sjodin@amd.com>
5193
5194         * graphite.c (schedule_to_scattering): Rewrite, correct the
5195         translation of the scheduling function to scattering.
5196         (build_cloog_prog): Call schedule_to_scattering only once.
5197         * graphite.h (scop_loop_index): Do not fail for loops not
5198         in the scop: return -1.
5199
5200 2008-05-30 Tobias Grosser  <grosser@fim.uni-passau.de>
5201
5202         * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
5203         (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
5204         (setup_cloog_loop): Export GBB_DOMAIN.
5205         (build_cloog_prog): New.  Create new CLOOG_PROG, which should be
5206         able to rebuild the original control flow.
5207         * graphite.h (graphite_bb): Add domain field and access macro.
5208         (GBB_DOMAIN): New.
5209
5210 2008-05-30  Sebastian Pop  <sebastian.pop@amd.com>
5211
5212         * graphite.c (debug_gbb): New.
5213         (print_scop, build_graphite_bb): Use SCOP_BBS.
5214         (build_scop_bbs): Reimplemented.
5215         (dfs_bb_in_scop_p): Removed.
5216         (build_scop_loop_nests): Reorder loops inserted in
5217         SCOP_LOOP_NEST: outer loops should come first.
5218         (build_scop_canonical_schedules): Reinitialize at zero
5219         the components of the SCOP_STATIC_SCHEDULE for the loops
5220         that have already been parsed.
5221
5222         * graphite.h (debug_gbb): Declared.
5223
5224 2008-05-30  Sebastian Pop  <sebastian.pop@amd.com>
5225             Jan Sjodin  <jan.sjodin@amd.com>
5226
5227         * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
5228         (graphite_loop_to_gcc_loop): Removed.
5229         (remove_all_edges): New.
5230         (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
5231         (gloog): Remove useless code.
5232
5233 2008-05-29  Tobias Grosser  <grosser@fim.uni-passau.de>
5234
5235         * graphite.c (get_bb_type): Reworked. We distinguish between
5236         loops with one or multiple exits.
5237         (is_loop_exit): New.
5238         (is_pred): New.
5239         (is_bb_addable): Rework condition handling, now support for case
5240         case statements and loops with multiple exits.
5241
5242         * testsuite/gcc.dg/graphite/scop-11.c: New.
5243         * testsuite/gcc.dg/graphite/scop-12.c: New.
5244         * testsuite/gcc.dg/graphite/scop-13.c: New.
5245
5246 2008-05-29  Tobias Grosser  <grosser@fim.uni-passau.de>
5247
5248         * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
5249         we have too many colors.
5250
5251 2008-05-22  Sandeep Maram <smaram_b04@iiita.ac.in>
5252
5253         * doc/invoke.texi (-ftree-loop-fusion): Document.
5254         * tree-pass.h (pass_loop_fusion): Declared.
5255         * tree-loop-fusion.c: New.
5256         * timevar.def (TV_TREE_LOOP_FUSION): Declared.
5257         * tree-data-ref.c (find_data_references_in_loop): Make extern.
5258         * tree-data-ref.h (find_data_references_in_loop): Declared.
5259         * common.opt (ftree-loop-fusion): Declared.
5260         * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
5261
5262 2008-05-21  Sebastian Pop  <sebastian.pop@amd.com>
5263
5264         * graphite.c (build_access_matrix): Fix typo from the merge.
5265
5266 2008-05-20  Sebastian Pop  <sebastian.pop@amd.com>
5267
5268         * Merge from mainline (130800:135673).
5269
5270 2008-05-07  Sebastian Pop  <sebastian.pop@amd.com>
5271
5272         * graphite.c (end_scop): The exit of the scop is not part of the scop.
5273         Update dominators after splitting.
5274
5275 2008-05-07  Sebastian Pop  <sebastian.pop@amd.com>
5276
5277         * graphite.c (is_bb_addable): Return the harmful statement.
5278         Factor up some code.
5279         (end_scop): New.  Splits end of scope bbs on a harmful statement.
5280         (build_scops_1): Call end_scop.
5281
5282 2008-05-07  Sebastian Pop  <sebastian.pop@amd.com>
5283
5284         * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
5285         all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
5286         add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
5287         build_scops_1): Removed.
5288         (build_scops_2): Renamed build_scops_1.
5289
5290 2008-05-06  Sebastian Pop  <sebastian.pop@amd.com>
5291
5292         * graphite.c: Fix formatting.
5293
5294 2008-05-06  Tobias Grosser  <grosser@fim.uni-passau.de>
5295
5296         * graphite.c (get_bb_type): New.
5297         (move_scops): New.
5298         (build_scops_2): New.
5299         (is_bb_addable): New.
5300         (build_scops): Switch the scop detection.
5301         (build_scop_bbs): Add entry bb to scop.
5302         * graphite.h (struct scop): Update comment.
5303
5304 2008-05-06  Tobias Grosser  <grosser@fim.uni-passau.de>
5305
5306         * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
5307         more colors.
5308
5309 2008-05-06  Tobias Grosser  <grosser@fim.uni-passau.de>
5310
5311         * testsuite/gcc.dg/graphite/scop-1.c: Update.
5312         * testsuite/gcc.dg/graphite/scop-2.c: Update.
5313         * testsuite/gcc.dg/graphite/scop-4.c: Update.
5314         * testsuite/gcc.dg/graphite/scop-5.c: Add.
5315         * testsuite/gcc.dg/graphite/scop-6.c: Add.
5316
5317 2008-05-06  Sebastian Pop  <sebastian.pop@amd.com>
5318
5319         * testsuite/gcc.dg/graphite/scop-0.c: Add.
5320         * testsuite/gcc.dg/graphite/scop-7.c: Add.
5321         * testsuite/gcc.dg/graphite/scop-8.c: Add.
5322         * testsuite/gcc.dg/graphite/scop-9.c: Add.
5323         * testsuite/gcc.dg/graphite/scop-10.c: Add.
5324
5325 2008-05-06  Tobias Grosser  <grosser@fim.uni-passau.de>
5326
5327         * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
5328         Check affine expressions depending on the outermost loop
5329         instead of a scop.
5330         (stmt_simple_for_scop_p): Same.
5331         (harmfule_stmt_in_scop): Same.
5332
5333 2008-04-28  Tobias Grosser  <grosser@fim.uni-passau.de>
5334
5335         * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
5336         mark entry and exit, that are not part of the SCoP and update HTML
5337         formatting.
5338
5339 2008-04-25  Sebastian Pop  <sebastian.pop@amd.com>
5340
5341         * graphite.c (basic_block_simple_for_scop_p): Renamed
5342         harmful_stmt_in_bb.
5343         (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
5344         (add_dominators_to_open_scops, build_scops_1): Reimplemented.
5345         (all_preds_visited_p, all_succs_visited_p,
5346         start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
5347         scop_end_loop): New.
5348         (build_scops): Do not use dfs_enumerate_from.
5349
5350         * testsuite/gcc.dg/graphite/scop-{1,2,4}.c: Updated.
5351
5352 2008-04-23  Sebastian Pop  <sebastian.pop@amd.com>
5353
5354         * graphite.c: Add comments to functions that are missing a
5355         description.
5356         (graphite_create_iv): Removed.  Merged in graphite_loop_to_gcc_loop.
5357
5358 2008-04-23  Sebastian Pop  <sebastian.pop@amd.com>
5359
5360         * graphite.c (nb_params_in_scop): Moved...
5361         (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
5362         (setup_cloog_loop): Call loop_body_to_cloog_stmts.
5363         (clast_to_gcc_expression): Reduce column size to less than 80.
5364         (graphite_create_iv): Return the new name of the IV.
5365         (find_transform): Set options->esp and options->cpp.
5366         (gloog): Comment out the invalidation of the old loop code.
5367         (initialize_dependence_polyhedron): Replace scop_nb_params with
5368         nb_params_in_scop.
5369
5370         * graphite.h (nb_params_in_scop): ... here.
5371         (scop_nb_params): Removed.
5372         (loop_domain_dim): Return something even when the loop was not
5373         found in the hash table: avoid ICEing on all the graphite.exp
5374         testcases.
5375
5376 2008-04-14  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
5377
5378         * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
5379
5380         * graphite.c (build_scop_dynamic_schedules): Schedule is built
5381         according to nesting level.
5382         (find_scop_parameters): Call instantiate_parameters.
5383         (scan_tree_for_params): Extend it to handle general affine bounds.
5384         Inner loop bound can depend on outer loop induction variable.
5385         (setup_cloog_loop): tmp variable is allocated on stack. Call
5386         instantiate_parameters with respect to outermost_loop_in_scop.
5387         (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
5388         graphite.h.
5389         (create_empty_loop): Function loopify should be given edge
5390         probability, instead of edge frequency. Dominance relation from
5391         switch_bb to loop_header.
5392         (clast_to_gcc_expression): Added handling of clast_reduction node.
5393         (gloog): New functionality for removing old loop.
5394         (test_dependence): Factored out from build_rdg_all_levels.
5395         (build_rdg_all_levels): Dependence testing factored out to
5396         test_dependence function.
5397
5398         * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
5399         (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
5400         from graphite.c
5401
5402 2008-04-07  Sebastian Pop  <sebastian.pop@amd.com>
5403
5404         * graphite.c (free_scop, param_index, initialize_cloog_names,
5405         nb_params_in_scop): Use name_tree map instead of just a tree
5406         for keeping track of the variable name associated to that tree.
5407         (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
5408         clast_to_gcc_expression, graphite_create_iv,
5409         graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
5410         graphite_stmt_to_gcc_stmt): New.
5411         (gloog): Call these.
5412         * graphite.h (struct name_tree): New.
5413         (struct scop): Use name_tree instead of tree for params.
5414         Store a vector of name_tree for new_ivs.
5415         (SCOP_NEWIVS): New.
5416         (scop_nb_params): Use name_tree instead of tree.
5417
5418 2008-04-05  Alexander Lamaison  <awl03@doc.ic.ac.uk>
5419             Sebastian Pop  <sebastian.pop@amd.com>
5420
5421         * tree-bounds.c: New.
5422         * tree-bounds.h: New.
5423         * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
5424         * passes.c: Schedule pass_bounds_early, pass_bounds_late.
5425         * builtins.c (expand_builtin_alloca): Add flag_bounds as for
5426         flag_mudflap.
5427         * gcc.c: Same.
5428         * toplev.c: Same.
5429         * c-cppbuiltin.c: Same.
5430         * c-pragma.c: Same.
5431         * common.opt: Same.
5432         * varasm.c: Same.
5433         * tree-outof-ssa.c: Same.
5434         * c-common.c: Same.
5435         * Makefile.in: Same.
5436
5437 2008-03-15  Antoniu Pop  <antoniu.pop@gmail.com>
5438             Sebastian Pop  <sebastian.pop@amd.com>
5439
5440         * tree-loop-distribution.c (remaining_stmts,
5441         upstream_mem_writes): Removed static variables.
5442         (copy_loop_before, create_bb_after_loop,
5443         mark_nodes_having_upstream_mem_writes, free_rdg_components,
5444         rdg_build_components, rdg_build_partitions,
5445         dump_rdg_partitions): Extern.
5446         (generate_loops_for_partition, generate_code_for_partition): Do not
5447         return a bool.
5448         (already_processed_vertex_p, predecessor_has_mem_write,
5449         mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
5450         rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
5451         rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
5452         build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
5453         Pass remaining_stmts and upstream_mem_writes as parameters.
5454         (rdg_component): Moved...
5455         (build_rdg_partition_for_component): Do not aggregate components when
5456         flag_streamize_loops is set.
5457         (gen_sequential_loops): New.
5458         (ldist_gen): Call gen_sequential_loops.
5459
5460         * tree-pass.h (pass_loop_streamization): Declared.
5461
5462         * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
5463         basic blocks when loops structures exist.
5464
5465         * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
5466
5467         * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
5468
5469         * tree-parloops.c (take_address_of, eliminate_local_variables_1,
5470         eliminate_local_variables_stmt, eliminate_local_variables,
5471         separate_decls_in_loop_name, separate_decls_in_loop_stmt,
5472         separate_decls_in_loop, gen_parallel_loop): Make them work on a region
5473         of code delimited by two edges in the CFG.
5474         (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
5475         (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
5476         (separate_decls_in_loop): Renamed separate_decls_in_region.  Isolate
5477         the case of parallelisation of reductions.
5478         (create_loop_fn): Extern.
5479         (create_omp_parallel_region): New.
5480
5481         * tree-data-ref.c (dump_data_dependence_relation): Don't call
5482         dump_data_reference for printing dra and drb.
5483         (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
5484         RDGE_RELATION.
5485         (build_rdg): Don't call free_dependence_relations for the moment, as
5486         we attach dependence relations on each edge of the RDG.
5487         To be fixed later.
5488
5489         * tree-data-ref.h (rdg_component): ...here.
5490         (struct rdg_edge): New field ddr_p relation.
5491         (RDGE_RELATION): New.
5492         (create_bb_after_loop, copy_loop_before,
5493         mark_nodes_having_upstream_mem_writes, rdg_build_components,
5494         rdg_build_partitions, dump_rdg_partitions,
5495         free_rdg_components): Declared.
5496
5497         * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
5498         BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
5499
5500         * tree-loop-streamization.c: New.
5501
5502         * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
5503         create_omp_parallel_region, expr_invariant_in_region_p): Declared.
5504
5505         * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
5506
5507         * tree-cfg.c (gather_blocks_in_sese_region): Extern.
5508
5509         * passes.c: Schedule pass_loop_streamization.
5510
5511 2008-03-08  Tobias Grosser  <grosser@fmi.uni-passau.de>
5512
5513         * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
5514         update comment.
5515
5516 2008-03-07  Tobias Grosser  <grosser@fim.uni-passau.de>
5517
5518         * graphite.c (dot_all_scops): Update formatting.
5519         Bbs can now be part of more than one SCoP.
5520
5521 2008-03-04  Sebastian Pop  <sebastian.pop@amd.com>
5522
5523         * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
5524         malloc problems.
5525         (loop_domain_dim): Check for unregistered toplev SCOP loop.
5526         * graphite.h (loop_to_cloog_loop): New.
5527
5528 2008-03-04  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
5529
5530         * graphite.c (loop_domain_dim, ref_nb_loops,
5531         loop_iteration_vector_dim): New.
5532         (build_access_matrix_with_af, build_access_matrix,
5533         initialize_dependence_polyhedron): Fixed for new matrix layout.
5534         No longer assume that all iteration domains are of the same
5535         dimensionality.
5536
5537 2008-03-02  Sebastian Pop  <sebastian.pop@amd.com>
5538
5539         * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
5540         defined in a loop at depth 0 is invariant.
5541         * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
5542         * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
5543         be called at loop depth 0.
5544
5545         * graphite.c (basic_block_simple_for_scop_p): Take the scop as
5546         a parameter.
5547         (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
5548         (down_open_scop): Removed.
5549         (loop_in_scop_p): Redefined.
5550         (scop_affine_expr): New argument: scop.
5551         (stmt_simple_for_scop_p): New argument: scop.  RETURN_EXPR is not
5552         a harmful statement ending a scop.
5553         (basic_block_simple_for_scop_p): New argument: scop.
5554         (get_loop_start): Removed.
5555         (new_scop): Initialize SCOP_LOOPS.
5556         (free_scop): Free SCOP_LOOPS.
5557         (succs_at_same_depth, preds_at_same_depth): New.
5558         (end_scop): Test the validity of a scop.
5559         (add_dominators_to_open_scops): New.
5560         (test_for_scop_bound): Call add_dominators_to_open_scops.
5561         Add cases for opening and closing multiple scops.
5562         (build_scops, build_scop_bbs): Iterate over basic blocks in
5563         depth first order.
5564         (build_graphite_bb): Pass scop directly.
5565         (dfs_bb_in_scop_p): New.
5566         (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
5567         several times.
5568         (nb_loops_around_gb): Use loop_in_scop_p.
5569         (schedule_to_scattering): Disabled for the moment the code computing
5570         the "textual order for outer loop".
5571
5572         * graphite.h (struct scop): New field loops.
5573         (SCOP_LOOPS): New.
5574         (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
5575
5576         * testsuite/gcc.dg/graphite/scop-{1,...,7}.c: Updated.
5577
5578 2008-02-27  Antoniu Pop  <antoniu.pop@gmail.com>
5579             Sebastian Pop  <sebastian.pop@amd.com>
5580
5581         * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
5582         * common.opt (fstreamize-loops): New.
5583         * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
5584         BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
5585         BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
5586         BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
5587
5588 2008-02-22  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
5589
5590         * tree-data-ref.c (build_empty_rdg): New.
5591         (build_rdg): Use it.
5592         * tree-data-ref.h (build_empty_rdg): Declared.
5593         * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
5594         (find_vertex_for_stmt): Removed.
5595         (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
5596
5597 2008-02-21  Sebastian Pop  <sebastian.pop@amd.com>
5598
5599         * tree-loop-distribution.c (generate_builtin): After cancelling the
5600         loop tree, also delete basic blocks.
5601         (rdg_flag_uses): Stop recursion when a vertex has already been
5602         processed.
5603
5604 2008-02-15  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
5605
5606         * graphite.c (build_scop_alpha): Removed.
5607         (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
5608         and dump_dependence_graph to avoid compiler warnings.
5609
5610 2008-02-14  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
5611
5612         * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
5613         * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
5614         * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
5615         eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
5616         (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
5617         (initialize_dependence_polyhedron, find_vertex_for_stmt,
5618         initialize_data_dependence_polyhedron, is_empty_polyhedron,
5619         statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
5620         dump_dependence_graph): New.
5621         * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
5622         (GBB_ALPHA): New.
5623         (struct scop): New field loop2cloog_loop.
5624         (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
5625         RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
5626
5627 2008-02-10  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
5628
5629         * graphite.c (build_graphite_bb): Fix initialization
5630         of the graphite basic block.
5631
5632 2008-02-05  Sebastian Pop  <sebastian.pop@amd.com>
5633
5634         * graphite.c (scan_tree_for_params): Rewrite for the new layout of
5635         loop domain matrix.  Pass in the number of loops contained in the
5636         constraint matrix.
5637         (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
5638         (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
5639         loops that are not surrounding the current loop are not represented
5640         in the domain constraint matrix.
5641         (build_scop_iteration_domain): Initial domain constraint matrix
5642         contains only the eq/ineq, cst, and scop parameters columns.
5643
5644 2008-01-29  Tobias Grosser  <grosser@fim.uni-passau.de>
5645
5646         * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
5647         (print_graphite_bb): Print scattering.
5648
5649 2008-01-29  Tobias Grosser  <grosser@fim.uni-passau.de>
5650
5651         * graphite.c (initialize_cloog_names): Initialize names of
5652         scattering variables.
5653
5654 2009-01-29  Tobias Grosser  <grosser@fim.uni-passau.de>
5655
5656         * graphite.c (dot_all_scops_1): Disable debug output while
5657         printing graph.
5658
5659 2008-01-29  Tobias Grosser  <grosser@fim.uni-passau.de>
5660
5661         * graphite.c (find_transform): Change cloog output language to C.
5662
5663 2008-01-27  Sebastian Pop  <sebastian.pop@amd.com>
5664
5665         * tree-loop-distribution.c (generate_memset_zero,
5666         generate_builtin, generate_code_for_partition,
5667         rdg_flag_all_uses): New.
5668         (rdg_flag_uses): Gather in the same partition the statements defining
5669         the VUSES of the current statement.
5670         (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
5671         Gather in the same partition not only the stores to the same memory
5672         access, but also the reads.
5673         (ldist_generate_loops): Renamed ldist_gen.
5674
5675 2008-01-24  Sebastian Pop  <sebastian.pop@amd.com>
5676             Tobias Grosser  <grosser@fmi.uni-passau.de>
5677
5678         * graphite.c (setup_cloog_loop): Chain all cloog loops with the
5679         next pointer, don't use the inner pointer.
5680
5681 2008-01-20  Tobias Grosser  <grosser@fmi.uni-passau.de>
5682
5683         * graphite.c (dot_all_scops, dot_all_scops_1): New.
5684         (find_transform): Call dot_all_1.
5685         * graphite.h (dot_all_scops): Declared.
5686
5687 2007-12-14  Sebastian Pop  <sebastian.pop@amd.com>
5688
5689         * tree-loop-distribution.c: Fix apsi.f ICE.
5690         (create_bb_after_loop): New.
5691         (generate_loops_for_partition): Use it.
5692         * testsuite/gfortran.dg/ldist-1.f90: New.
5693
5694         * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
5695         * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
5696
5697 2007-12-13  Tobias Grosser  <grosser@fmi.uni-passau.de>
5698
5699         * graphite.c (find_transform): Dump cloog program sent to cloog.
5700
5701 2007-12-13  Tobias Grosser  <grosser@fmi.uni-passau.de>
5702
5703         * graphite.c (initialize_cloog_names): Initialize cloog
5704         iterator names.
5705
5706 2007-12-13  Tobias Grosser  <grosser@fmi.uni-passau.de>
5707
5708         * graphite.c (build_scop_context): Fix typo, for the matrix
5709         format: insert '0 >= 0' instead of '-1 >= 0'.
5710
5711 2007-12-13  Sebastian Pop  <sebastian.pop@amd.com>
5712
5713         * Fix merge problems.
5714
5715 2007-12-13  Sebastian Pop  <sebastian.pop@amd.com>
5716
5717         * graphite.c (setup_cloog_loop): Fix typo.
5718
5719 2007-12-12  Sebastian Pop  <sebastian.pop@amd.com>
5720
5721         * doc/invoke.texi (-ftree-loop-distribution): Documented.
5722         * tree-loop-distribution.c: Reimplemented.
5723         * tree-pass.h (pass_loop_distribution): New.
5724         * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
5725         print_loops.
5726         * graphds.h (struct graph): New field indexes.
5727         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
5728
5729         * tree-vect-analyze.c: Remove declaration of static functions when not
5730         needed.
5731         * tree-vectorizer.c: Same.
5732         (rename_variables_in_loop): Now extern.
5733         (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
5734         tree_duplicate_loop_to_edge_cfg.  Reset PENDING_STMT for edges after
5735         calling redirect_edge_and_branch_force.
5736
5737         * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
5738
5739         * tree-data-ref.c: Don't include tree-chrec.h.
5740         (debug_data_dependence_relations): New.
5741         (dump_data_dependence_relation): Call dump_data_reference on data refs
5742         in the relation.
5743         (same_access_functions): Moved...
5744         (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
5745         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
5746         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
5747         struct rdg_vertex_info, ): New.
5748         (create_rdg_edge_for_ddr): Compute the dependence level before looking
5749         at DDR_REVERSED_P.
5750         (create_rdg_vertices): Initialize the htab of graph->indexes.
5751         Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
5752         (stmts_from_loop): Don't save LABEL_EXPR.
5753         (hash_stmt_vertex_info, eq_stmt_vertex_info,
5754         hash_stmt_vertex_del): New.
5755         (build_rdg): Initialize rdg->indexes.
5756         (free_rdg, stores_from_loop, ref_base_address,
5757         rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
5758         have_similar_memory_accesses_1, ref_base_address_1,
5759         remove_similar_memory_refs): New.
5760
5761         * tree-data-ref.h: Include tree-chrec.h.
5762         (debug_data_dependence_relations): Declared.
5763         (same_access_functions): ...here.  Now static inline.
5764         (ddr_is_anti_dependent, ddrs_have_anti_deps,
5765         ddr_dependence_level): New.
5766         (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
5767         (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
5768         RDG_MEM_READS_STMT): New.
5769         (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
5770         debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
5771         rdg_vertex_for_stmt): Declared.
5772         (struct rdg_edge): New field level.
5773         (RDGE_LEVEL, free_rdg): New.
5774         (stores_from_loop, remove_similar_memory_refs,
5775         rdg_defs_used_in_other_loops_p,
5776         have_similar_memory_accesses): Declared.
5777         (rdg_has_similar_memory_accesses): New.
5778
5779         * lambda.h (dependence_level): New.
5780         * common.opt (ftree-loop-distribution): New.
5781         * tree-flow.h (debug_loop_ir): Renamed debug_loops.
5782         (print_loop_ir): Renamed print_loops.
5783         (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
5784         tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
5785         * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
5786         (tree-loop-distribution.o): Added.
5787         * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
5788         (mark_virtual_ops_in_bb): New.
5789         (print_loops_bb, debug_loop_num, debug_loop): New.
5790         * passes.c: Scheduled pass_loop_distribution.
5791
5792 2007-12-12  Konrad Trifunovic  <konrad.trifunovic@inria.fr>
5793
5794         * graphite.c (scan_tree_for_params): Correct the number of columns
5795         for polylib format.
5796         (nb_flat_iterator): New.
5797         (setup_cloog_loop): Initialize to 1 the first column for inequalities.
5798         (build_scop_iteration_domain): Correct the number of columns for
5799         polylib format.
5800
5801 2007-12-12  Sebastian Pop  <sebastian.pop@amd.com>
5802
5803         * Merge from mainline (129697:130800).
5804
5805 2007-10-30  Sebastian Pop  <sebastian.pop@amd.com>
5806
5807         * graphite.c (build_graphite_bb): SCoP's basic blocks are post
5808         dominated by SCoP's exit.
5809         (graphite_transform_loops): Compute post dominators.
5810
5811 2007-10-28  Sebastian Pop  <sebastian.pop@amd.com>
5812
5813         * Merge from mainline (127169:129697).
5814
5815 2007-10-28  Sebastian Pop  <sebastian.pop@amd.com>
5816
5817         * graphite.c (affine_expr): Renamed scop_affine_expr.  Use an extra
5818         parameter for the basic block that contains the expression.  Use
5819         outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
5820         (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
5821         the expression.
5822         * graphite.h (gbb_loop): New.
5823         (GBB_LOOP): Removed.
5824
5825 2007-08-03  Sebastian Pop  <sebpop@gmail.com>
5826
5827         * Makefile.in: Fix merge problem.
5828
5829 2007-08-03  Sebastian Pop  <sebpop@gmail.com>
5830
5831         * Merge from mainline (125309:127169).
5832         * tree-loop-distribution.c: Disabled.
5833
5834 2007-06-05  Sebastian Pop  <sebpop@gmail.com>
5835
5836         * Merge from mainline (r123693:125309).
5837
5838 2007-05-30  Sebastian Pop  <sebpop@gmail.com>
5839
5840         * tree-loop-distribution.c (correct_modify_expr_p): Renamed
5841         correct_modify_p
5842         (correct_modify_p, check_statements, number_of_lvalue_uses,
5843         number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
5844         instead of MODIFY_EXPR.
5845         (update_edge_with_ddv): Don't pass index_of_edge.  Initialize
5846         and push new edges.
5847
5848 2007-05-24  Sebastian Pop  <sebpop@gmail.com>
5849
5850         * tree-loop-distribution.c (struct rdg): Replace arrays by
5851         VECs for edges and vertices.
5852         (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
5853         (RDGV_NB_PARTITIONS): New.
5854         (PRDG_NBV, PRDG_NBE): Removed.
5855         (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
5856         dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
5857         number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
5858
5859 2007-05-17  Georges-Andre Silber  <silber@cri.ensmp.fr>
5860             Sebastian Pop  <sebpop@gmail.com>
5861
5862         * doc/invoke.texi (-ftree-loop-distribution): Document.
5863         * tree-loop-distribution.c: New file.
5864         * tree-pass.h (pass_loop_distribution): Declared.
5865         * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
5866         * tree-data-ref.c (initialize_data_dependence_relation): Initialize
5867         and set reversed_p.
5868         * tree-data-ref.h (data_dependence_relation): Add reversed_p.
5869         (DDR_REVERSED_P): New.
5870         * common.opt (-ftree-loop-distribution): New.
5871         * tree-flow.h (distribute_loops): Declared.
5872         * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
5873         * passes.c (init_optimization_passes): Schedule loop distribution.
5874
5875 2007-05-12  Sebastian Pop  <sebastian.pop@inria.fr>
5876
5877         * graphite.c (print_graphite_bb): Don't call dump_data_references.
5878         (print_scop): Don't print when scop is NULL.
5879         (build_scop_context, find_transform): Don't output to stderr.
5880
5881 2007-05-09  Sebastian Pop  <sebastian.pop@inria.fr>
5882
5883         * tree-data-ref.c: Don't include graphite.h.
5884         Comment out the code for printing data reference's scop.
5885         (build_access_matrix_with_af): Moved...
5886         * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
5887         * graphite.c (build_access_matrix_with_af): ... here.  Now static.
5888         (print_graphite_bb): Print basic block's schedule.
5889         (print_scop): Don't print the schedule, call cloog's pretty printer.
5890         (bb_in_scop_p): A basic block is in a scop only if it is both
5891         dominated and postdominated by the scop's entry and exit basic blocks.
5892         (function_parameter_p): New.
5893         (invariant_in_scop_p): Use function_parameter_p.
5894         (new_scop, save_scop): New.
5895         (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
5896         save_scop.
5897         (scan_tree_for_params): Directly build the constraint as CloogMatrix.
5898         (loop_in_scop_p): New.
5899         (scop_record_loop): Use loop_in_scop_p.
5900         (build_scop_domain): Renamed build_scop_iteration_domain.
5901         (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
5902         nb_params_in_scop, build_scop_context, first_loop_in_scop,
5903         setup_cloog_loop, dot_scop_1, dot_scop): New.
5904         * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
5905         (struct scop): Add a pointer to cloog's representation of a program.
5906
5907 2007-04-14  Sebastian Pop  <sebastian.pop@inria.fr>
5908
5909         * doc/invoke.texi (-ftree-check-verbose): Renamed
5910         -ftree-checks-verbose.
5911         * common.opt (flag_tree_check_verbose): Renamed
5912         flag_tree_checks_verbose.
5913         * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
5914
5915 2007-04-14  Sebastian Pop  <sebastian.pop@inria.fr>
5916
5917         * configure: Regenerated.
5918         * config.in: Regenerated.
5919         * tree-ssa-loop.c (graphite_transforms): Execute
5920         graphite_transform_loops only when HAVE_cloog.
5921         * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
5922         * graphite.c: Include polylibgmp.h and cloog.h.
5923         (graphite_transform_loops): Removed loops parameter.
5924         * tree-flow.h (graphite_transform_loops): Update declaration.
5925         * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
5926         (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
5927         (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
5928         (OBJS-common): Remove dependence on graphite.o.
5929         (BACKEND): Depend on @GRAPHITE@.
5930
5931 2007-04-13  Sebastian Pop  <sebastian.pop@inria.fr>
5932
5933         * doc/invoke.texi (-ftree-check-verbose): Documented.
5934         * testsuite/gcc.dg/tree-checker/tree-checks-1.c: New.
5935         * testsuite/gcc.dg/tree-checker/tree-checks-2.c: New.
5936         * testsuite/gcc.dg/tree-checker/tree-checks-3.c: New.
5937         * testsuite/gcc.dg/tree-checker/tree-checks-4.c: New.
5938         * testsuite/gcc.dg/tree-checker/tree-checks.exp: New.
5939         * testsuite/gcc.dg/tree-checker/condates.crp: New.
5940         * common.opt (ftree-checks-verbose): New.
5941         * tree-check.c (tree_check_warning): Move extra stderr output
5942         under control of flag_tree_check_verbose.
5943
5944 2007-04-12  Sebastian Pop  <sebastian.pop@inria.fr>
5945
5946         * tree-match.c: Fix comments formatting.
5947         * tree-match.h: Fix comments formatting.
5948         * tree-check.c: Fix comments formatting.
5949         (tree_check_init): Restructure.
5950
5951 2007-04-12  Nic Volanschi  <nic.volanschi@free.fr>
5952
5953         * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
5954
5955 2007-04-10  Sebastian Pop  <sebastian.pop@inria.fr>
5956
5957         * Merge from mainline (r120733:123693).
5958
5959 2007-03-20  Nic Volanschi  <nic.volanschi@free.fr>
5960
5961         * condate.y: New file.
5962         * tree-match.h (struct patt_info_s): New field sign.
5963         (struct condate_s): New field msg.
5964         (normalize_condate, name_condate, add_condate): New.
5965         (conds[], condate_parse): Made extern.
5966         * tree-check.c (tree_check_warning): First arg changed to cond;
5967         warning reformatted.
5968         (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
5969         (tree_scan): New.
5970         (tree_check): Process trivial condates.
5971         (read_delimited_string): Removed.
5972         (print_cond): Print name and msg.
5973         (conds[]): Made extern.
5974         (parse_tree_check_file_once): Rewritten to use the parser in
5975         condate.y.
5976         Processing of option --tree_check_string moved to tree_scan().
5977         * Makefile.in: Added condate.y
5978
5979 2007-03-12  Sebastian Pop  <sebastian.pop@inria.fr>
5980
5981         * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
5982         Use VECs instead of varrays.
5983         * diagnostic.h (lazy_dump_generic_node): Update declaration.
5984         * Makefile.in (pretty-print.o): Depend on vec.h.
5985         * pretty-print.c: Include tree.h and vec.h.
5986         (pp_clear_state, pp_write_list_to_stream, pp_base_format,
5987         pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
5988         new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
5989         pp_free_list): Use VECs instead of varrays.
5990         * pretty-print.h: Do not include varray.h.
5991         (struct tree_chunk_s): Declaration moved before its use.
5992         (output_buffer): Rename varray field to chunks.
5993         * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
5994         tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
5995         save_global_holes): Use VECs instead of varrays.
5996         * tree-match.h: Declare VECs of cfg_node, and hole_p.
5997         * tree-check.c (scan_cfg_stmts, push_node,
5998         print_matching_stmt): Removed.
5999         (tree_check_instance, push_global_holes_if_new, tree_check,
6000         execute_tree_check): Use VECs instead of varrays.
6001         (gate_tree_check): Don't execute the CFG check when basic_block_info
6002         is not available.
6003
6004 2007-01-12  Sebastian Pop  <sebastian.pop@inria.fr>
6005
6006         * Merge from mainline (r115016:120733).
6007
6008 2007-01-12  Sebastian Pop  <sebastian.pop@inria.fr>
6009
6010         * Merge from mainline (r117632:117661).
6011
6012 2007-01-12  Sebastian Pop  <sebastian.pop@inria.fr>
6013
6014         * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
6015         * tree-pass.h (TDF_DEBUG, debug_p): New.
6016         * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
6017         get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
6018         get_loop_exit_condition, analyze_evolution_in_loop,
6019         analyze_initial_condition, analyze_scalar_evolution,
6020         instantiate_parameters, number_of_latch_executions): Use debug_p.
6021         * tree-chrec.c (chrec_apply): Use debug_p.
6022         * tree-data-ref.c: Include graphite.h.
6023         (dump_data_reference): Print also the access matrix.
6024         (analyze_array, analyze_indirect_ref, init_data_ref,
6025         analyze_offset_expr, address_analysis, object_analysis,
6026         create_data_ref, finalize_ddr_dependent,
6027         non_affine_dependence_relation, analyze_ziv_subscript,
6028         analyze_siv_subscript_cst_affine,
6029         compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
6030         can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
6031         analyze_miv_subscript, analyze_overlapping_iterations,
6032         build_classic_dist_vector, subscript_dependence_tester,
6033         compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
6034         (build_access_matrix_with_af): No longer static.
6035         * tree-data-ref.h (scop_p): ... declaration here.
6036         (data_reference.scop): New field.
6037         (DR_SCOP, DR_ACCESS_MATRIX): New.
6038         (build_access_matrix_with_af, dr_num_subscripts): Declared.
6039         * graphite.c (print_graphite_bb): Call dump_data_references.
6040         (print_scop): Use scop_nb_loops and scop_dim_domain.
6041         (test_for_scop_bound): Use debug_p.
6042         (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
6043         scop_nb_params.
6044         (scop_loop_index): Moved...
6045         (scop_record_loop): New.
6046         (build_scop_loop_nests): Use scop_record_loop.
6047         (build_scop_domain): Use scop_dim_domain.
6048         (build_access_matrix): Implemented.
6049         (build_scop_canonical_schedules): Use scop_nb_loops.
6050         (build_graphite_bb): Initialize GBB_SCOP.
6051         * graphite.h (scop_p): Moved...
6052         (graphite_bb.scop): New field.
6053         (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
6054         scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
6055         SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
6056         (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
6057         scop_loop_index): New.
6058         * Makefile.in (tree-data-ref.o): Depends on graphite.h.
6059
6060 2007-01-05  Sebastian Pop  <sebastian.pop@inria.fr>
6061
6062         * Merge from mainline (r117661:120450).
6063
6064 2006-10-12  Sebastian Pop  <sebastian.pop@inria.fr>
6065
6066         * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
6067         at the first declaration outside the varying loop, instantiate as
6068         far as possible.
6069         * tree-chrec.c (for_each_scev_op): New.
6070         * tree-chrec.h (for_each_scev_op): Declared.
6071         * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
6072         * tree-data-ref.c (get_references_in_stmt,
6073         find_data_references_in_stmt): New, from trunk.
6074         (find_data_references_in_loop): Use get_references_in_stmt
6075         and find_data_references_in_loop, modified as in trunk.
6076         (build_access_matrix_with_af): New.
6077         * tree-data-ref.h (data_reference): Add a field access_matrix.
6078         (data_ref_loc): New, as in trunk.
6079         * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
6080         invariant_in_scop_p, param_index, scan_tree_for_params,
6081         scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
6082         idx_record_param, idx_record_params, build_access_matrix,
6083         build_scop_data_accesses, build_scop_canonical_schedules,
6084         build_graphite_bb, build_scop_bbs, find_params_in_bb,
6085         build_scop_params): New.
6086         * graphite.h (graphite_bb): New.
6087         (scop): Add fields static_schedule, params, loop_nest,
6088         iteration_domain.
6089         * lambda.h: Declare vecs of lambda_matrix.
6090         * tree-flow.h (print_loop_ir_bb): Declared.
6091         * tree-cfg.c (print_loop_ir_bb): New.
6092         (print_loop): Use print_loop_ir_bb.
6093
6094 2006-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
6095
6096         * Merge from mainline (r115016:117632).
6097
6098 2006-10-11  Sebastian Pop  <pop@cri.ensmp.fr>
6099
6100         * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
6101         break due to a warning.
6102
6103 2006-10-10  Sebastian Pop  <pop@cri.ensmp.fr>
6104
6105         * graphite.c (print_scops, debug_scops): New.
6106         (graphite_transform): Renamed graphite_find_transform.
6107         * graphite.h (debug_scops): Declared.
6108
6109 2006-08-17  Sebastian Pop  <pop@cri.ensmp.fr>
6110
6111         * tree-match.c: Reformat following the GNU style.
6112         * tree-match.h: Reformat following the GNU style.
6113         * tree-pattern.h: Removed empty file.
6114         * Makefile.in: Remove references to tree-pattern.h.
6115         * tree-check.c: Reformat following the GNU style.
6116         (execute_tree_check): Move gate condition code to...
6117         (gate_tree_check): ...here.  New function.
6118         (pass_check): Use the gate function.
6119
6120 2006-07-04  Nic Volanschi <nic.volanschi@free.fr>
6121
6122         * tree-pattern.h: New. Tree pattern matching and checking using
6123         concrete syntax.
6124         * tree-check.c: New. Tree/CFG checking pass.
6125         * tree-match.c: New. Library for tree pattern matching.
6126         * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
6127         * toplev.c, flags.h: Add globals for tree-check pass.
6128         * Makefile.in: Integrate the files in tree-check pass.
6129         * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
6130         * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
6131         Introduce a "lazy" pretty-print mode.
6132         * tree.c, tree.h: Add tree_name.
6133
6134 2006-07-04  Sebastian Pop  <pop@cri.ensmp.fr>
6135
6136         * doc/invoke.texi (-fgraphite): Correct typo.
6137         * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
6138         use of print_loop_ir.
6139         * testsuite/gcc.dg/graphite/scop-1.c: New.
6140         * testsuite/gcc.dg/graphite/scop-2.c: New.
6141         * testsuite/gcc.dg/graphite/graphite.exp: New.
6142         * graphite.c: Include domwalk.h.
6143         (print_scop): Print only the entry and exit blocks.
6144         (debug_scop): No longer static.
6145         (affine_expr): Fix formating.  Return also true when the expression is
6146         constant.
6147         (stmt_simple_for_scop_p): Fix formating.
6148         (build_scops): Use domwalk.
6149         (get_loop_start, end_scop, test_for_scop_bound): New.
6150         (graphite_transform_loops): Avoid printing on stderr.
6151         * graphite.h (debug_scop): Declared.
6152         * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
6153         * Makefile.in (graphite.o): Depend on domwalk.h.
6154         * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
6155         declarations for static functions.
6156         (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
6157         controlling output verbosity.
6158
6159 2006-06-26  Sebastian Pop  <pop@cri.ensmp.fr>
6160             Plesco Alexandru  <shurikx@gmail.com>
6161
6162         * doc/invoke.texi (-fgraphite): Document.
6163         * tree-pass.h (pass_graphite_transforms): Declared.
6164         * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
6165         * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
6166         (pass_graphite_transforms): Defined.
6167         * tree-data-ref.c (free_data_ref, data_reference): Extern.
6168         * tree-data-ref.h (free_data_ref, data_reference): Declared.
6169         * graphite.c, graphite.h: New.
6170         * common.opt (fgraphite): Declared.
6171         * tree-flow.h (graphite_transform_loops): Declared.
6172         * Makefile.in (OBJS-common): Add graphite.o.
6173         (graphite.o): New rule.
6174         * passes.c (pass_graphite_transforms): Scheduled.
6175