OSDN Git Service

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