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