OSDN Git Service

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