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