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