]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog.graphite
Add runtime tests for interchange and blocking.
[thirdparty/gcc.git] / gcc / ChangeLog.graphite
CommitLineData
64630e61
SP
12010-02-03 Sebastian Pop <sebastian.pop@amd.com>
2
3 * testsuite/g++.dg/graphite/graphite.exp: Rewritten.
4 * testsuite/gcc.dg/graphite/graphite.exp: Rewritten.
5 * testsuite/gfortran.dg/graphite/graphite.exp: Rewritten.
6 * gcc/testsuite/gcc.dg/graphite/block-0.c: Added runtime test.
7 * testsuite/gcc.dg/graphite/block-1.c: Same.
8 * testsuite/gcc.dg/graphite/block-3.c: Same.
9 * testsuite/gcc.dg/graphite/block-4.c: Same.
10 * testsuite/gcc.dg/graphite/block-5.c: Same.
11 * testsuite/gcc.dg/graphite/block-6.c: Same.
12 * testsuite/gcc.dg/graphite/block-7.c: Same.
13 * testsuite/gcc.dg/graphite/interchange-0.c: Same.
14 * testsuite/gcc.dg/graphite/interchange-1.c: Same.
15 * testsuite/gcc.dg/graphite/interchange-10.c: Same.
16 * testsuite/gcc.dg/graphite/interchange-11.c: Same.
17 * testsuite/gcc.dg/graphite/interchange-12.c: Same.
18 * testsuite/gcc.dg/graphite/interchange-2.c: Same.
19 * testsuite/gcc.dg/graphite/interchange-3.c: Same.
20 * testsuite/gcc.dg/graphite/interchange-4.c: Same.
21 * testsuite/gcc.dg/graphite/interchange-5.c: Same.
22 * testsuite/gcc.dg/graphite/interchange-6.c: Same.
23 * testsuite/gcc.dg/graphite/interchange-7.c: Same.
24 * testsuite/gcc.dg/graphite/interchange-8.c: Same.
25 * testsuite/gcc.dg/graphite/interchange-9.c: Same.
26 * testsuite/gcc.dg/graphite/interchange-mvt.c: Same.
27 * testsuite/gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
28
4c8f3c48
RU
292010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
30
31 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
32 background.
33
342010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
35
36 * common.opt: Add -fgraphite-cloog-opts.
37 * graphite-clast-to-gimple.c (set_cloog_options): Same.
38 * opts.c (decode_options): Same.
39
86e4d552
SP
402010-01-20 Sebastian Pop <sebastian.pop@amd.com>
41
42 * testsuite/gcc.dg/graphite/id-17.c: New.
43 * testsuite/gcc.dg/graphite/pr41888.c: New.
44 * testsuite/gcc.dg/graphite/scop-22.c: New.
45 * testsuite/gfortran.dg/graphite/pr40982.f90: New.
46
3070ac15
SP
472010-01-20 Sebastian Pop <sebastian.pop@amd.com>
48
49 * graphite-dependences.c: Clarify comments.
50 (build_pddr): Add an extra parameter direction.
51 (graphite_legal_transform_dr): Use build_pddr.
52 (dot_original_deps_stmt_1): Update use of build_pddr.
53 (dot_transformed_deps_stmt_1): Same.
54 (dot_original_deps): Same.
55 (dot_transformed_deps): Same.
56
57 * testsuite/gcc.dg/graphite/interchange-12.c: New.
58 * testsuite/gcc.dg/graphite/block-7.c: New.
59
a7ed6c90
SP
602010-01-20 Sebastian Pop <sebastian.pop@amd.com>
61
62 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
63 (pddr_transformed_scattering): Removed.
64 (graphite_legal_transform_dr): Use build_pddr.
65 (dot_original_deps_stmt_1): Same.
66 (dot_transformed_deps_stmt_1): Same.
67 (dot_original_deps): Same.
68 (dot_transformed_deps): Same.
69
e65a7579
SP
702010-01-20 Sebastian Pop <sebastian.pop@amd.com>
71
72 * graphite-dependences.c (lexicographically_gt_p): Add comments.
73 (build_lexicographically_gt_constraint): Same.
74 (dependence_polyhedron_1): Same.
75 (dependence_polyhedron): Same.
76
7cbd4c5e
SP
772010-01-20 Sebastian Pop <sebastian.pop@amd.com>
78
79 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
80 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
81 (lexicographically_gt_p): Change type of direction to int.
82 (build_lexicographically_gt_constraint): Same.
83 (dependence_polyhedron_1): Same.
84 (dependence_polyhedron): Same.
85 (pddr_original_scattering): Use integers for direction.
86 (pddr_transformed_scattering): Same.
87 (graphite_legal_transform_dr): Same.
88 (graphite_carried_dependence_level_k): Same.
89
429ba740
SP
902010-01-20 Sebastian Pop <sebastian.pop@amd.com>
91
92 * graphite-dependences.c (build_pairwise_constraint): Renamed
93 ppl_build_relation. Moved...
94 (dr_equality_constraints): Use ppl_build_relation.
95 (build_pairwise_scheduling_equality): Same.
96 (build_pairwise_scheduling_inequality): Same.
97 * graphite-ppl.c (ppl_build_relation): ...here.
98 * graphite-ppl.h (ppl_build_relation): Declared.
99
3c7c0158
SP
1002010-01-14 Sebastian Pop <sebastian.pop@amd.com>
101
102 PR middle-end/42681
103 * graphite-clast-to-gimple.c (gloog_error): New static variable.
104 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
105 Set gloog_error when such an expression failed to be built.
106 (translate_clast): Early return when gloog_error is set.
107 (gloog): Clear gloog_error. When gloog_error is set, call
108 set_ifsese_condition to enable the original code. Return the status
109 of the code generation based on gloog_error.
110 * sese.c (set_ifsese_condition): New.
111 * sese.h (set_ifsese_condition): Declared.
112
113 * testsuite/g++.dg/graphite/pr42681.C: New.
114
a7bf45de
SP
1152010-01-14 Sebastian Pop <sebastian.pop@amd.com>
116
117 PR middle-end/42732
118 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
119 rename_nb_iterations.
120 * sese.c (rename_variables_in_operand): New.
121 (rename_variables_in_expr): New.
122 (rename_nb_iterations): New.
123 (sese_adjust_liveout_phis): Update the rename_map.
124 * sese.h (rename_nb_iterations): Declared.
125 * tree-scalar-evolution.c (scev_reset_htab): New.
126 (scev_reset): Call scev_reset_htab.
127 * tree-scalar-evolution.h (scev_reset_htab): Declared.
128
129 * testsuite/gfortran.dg/graphite/pr42732.f: New.
130
e1496917
SP
1312010-01-08 Sebastian Pop <sebastian.pop@amd.com>
132
133 PR middle-end/42393
134 * graphite-clast-to-gimple.c: Fix formatting.
135 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
136 (expr_defined_in_loop_p): New.
137 (add_loop_exit_phis): Also handle full expressions: remove from
138 the rename_map the expressions defined in the loop that we're closing.
139
140 * testsuite/gfortran.dg/graphite/pr42393-1.f90: New.
141 * testsuite/gfortran.dg/graphite/pr42393.f90: Add new flags
142 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
143 make this testcase useful in the Graphite branch.
144
c8ae0613
SP
1452010-01-08 Sebastian Pop <sebastian.pop@amd.com>
146
147 * graphite-scop-detection.c (exclude_component_ref): Removed.
148 (is_simple_operand): Removed.
149 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
150
4e98c66c
SP
1512010-01-07 Sebastian Pop <sebastian.pop@amd.com>
152
153 PR middle-end/42221
154 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
155 the array indexing of ADDR_EXPRs.
156
157 * testsuite/gcc.dg/graphite/pr42221.c: New.
158
fd4a56ff
SP
1592010-01-07 Sebastian Pop <sebastian.pop@amd.com>
160
161 PR middle-end/42521
162 * graphite.c (graphite_finalize): Call scev_reset.
163 (graphite_transform_loops): Do not call scev_reset between the code
164 generation of scops.
165
166 * testsuite/gcc.dg/graphite/pr42521.c: New.
167
eaffa762
SP
1682010-01-07 Sebastian Pop <sebastian.pop@amd.com>
169
170 * graphite-interchange.c (memory_stride_in_loop): Renamed
171 pdr_stride_in_loop.
172 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
173 (memory_strides_in_loop): Memoize the memory strides per loop.
174 (lst_interchange_profitable_p): Do not initialize to zero the memory
175 strides.
176 * graphite-poly.h (struct lst): Add a field memory_strides.
177 (LST_LOOP_MEMORY_STRIDES): New.
178 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
179 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
180
bf69e754
SP
1812010-01-07 Sebastian Pop <sebastian.pop@amd.com>
182
183 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
184 memory_strides_in_loop. Gather memory strides on a whole loop.
185 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
186 (lst_interchange_profitable_p): Removed.
187 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
188
9fa29a09
SP
1892010-01-07 Sebastian Pop <sebastian.pop@amd.com>
190
191 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
192 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
193 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
194 Remove context_loop and level.
195
11d6ea5e
SP
1962010-01-07 Richard Guenther <rguenther@suse.de>
197
198 PR tree-optimization/42641
199 * sese.c (rename_map_elt_info): Use the SSA name version, do
200 not hash pointers.
201
2022010-01-06 Sebastian Pop <sebastian.pop@amd.com>
203
204 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
205 blocked" only when both the strip mine and the interchange have
206 been applied.
207
208 * testsuite/gcc.dg/graphite/block-2.c: Removed.
209 * testsuite/gcc.dg/graphite/block-3.c: Add scan pattern.
210 * testsuite/gcc.dg/graphite/block-4.c: Same.
211 * testsuite/gcc.dg/graphite/block-5.c: Same.
212 * testsuite/gcc.dg/graphite/block-6.c: Same.
213
556afcdc
SP
2142010-01-06 Sebastian Pop <sebastian.pop@amd.com>
215
216 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
217 before allocating a new one.
218 (copy_renames): Check that slot is not NULL.
219 (mark_bb_with_pbb): Same.
220 (compute_cloog_iv_types_1): Same.
221 * graphite-interchange.c (lst_perfect_nestify): Free the before,
222 nest, and after LSTs.
223 (lst_try_interchange_loops): Same.
224
e68c3c6c
SP
2252010-01-05 Sebastian Pop <sebastian.pop@amd.com>
226
227 PR middle-end/42178
228 * graphite-interchange.c (lst_try_interchange_loops): Do not return
229 the before, nest, and after LSTs.
230 (lst_try_interchange): Removed.
231 (lst_interchange_select_inner): Do not iterate over the LSTs if they
232 were modified.
233 (lst_interchange_select_outer): Apply interchange on the outer loop
234 until there are no more changes in the inner loops.
235
a84a556d
SP
2362009-12-18 Sebastian Pop <sebastian.pop@amd.com>
237
238 Revert patch fixing PR middle-end/42221.
239
2402009-12-18 Sebastian Pop <sebastian.pop@amd.com>
241
242 PR middle-end/42180
243 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
244 GIMPLE_CALL.
245
246 * testsuite/gfortran.dg/graphite/pr42180.f90: Add compile flags.
247
b147df0b
SP
2482009-12-18 Sebastian Pop <sebastian.pop@amd.com>
249
250 PR middle-end/42180
251 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
252 that contain only one statement.
253
a84a556d
SP
254 * testsuite/gfortran.dg/graphite/pr42180.f90: New.
255
ce20f9d6
SP
2562009-12-17 Sebastian Pop <sebastian.pop@amd.com>
257
258 PR middle-end/42393
259 * testsuite/gfortran.dg/graphite/pr42393.f90: New.
260
d2a271ac
SP
2612009-12-17 Sebastian Pop <sebastian.pop@amd.com>
262
263 PR middle-end/42186
264 * testsuite/gfortran.dg/graphite/pr42186.f90: New.
265
403ebc7e
SP
2662009-12-17 Sebastian Pop <sebastian.pop@amd.com>
267
268 PR middle-end/42205
269 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
270 Insert the reduction copy in the same block as the phi node.
271 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
272
273 * testsuite/gcc.dg/graphite/pr42205-1.c: New.
274 * testsuite/gcc.dg/graphite/pr42205-2.c: New.
275
2762009-12-17 Sebastian Pop <sebastian.pop@amd.com>
277
278 PR middle-end/42221
279 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
280 the array indexing of ADDR_EXPRs.
281
282 * testsuite/gcc.dg/graphite/pr42221.c: New.
283
070ba483
SP
2842009-12-17 Sebastian Pop <sebastian.pop@amd.com>
285
286 PR middle-end/42178
287 PR middle-end/42334
288 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
289 index. Call lst_interchange_select_inner only once.
290 (lst_interchange_select_inner): Update use of lst_try_interchange.
291 (lst_interchange_select_outer): Update.
292
2932009-12-15 Sebastian Pop <sebastian.pop@amd.com>
294
295 PR middle-end/42178
296 PR middle-end/42334
297 * graphite-interchange.c (lst_try_interchange): Do not increment the
298 the OUTER index when there is no AFTER kernel. Do not increment the
299 OUTER index for after processing the AFTER kernel.
300 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
301 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
302 index. Do not pass to lst_interchange_select_inner the OUTER index.
303 (scop_do_interchange): Update use of lst_interchange_select_outer.
304
305 * testsuite/gfortran.dg/graphite/graphite.exp
306 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
307 * testsuite/gfortran.dg/graphite/interchange-1.f: Add comment. Clean
308 the graphite dump file.
309 * testsuite/gfortran.dg/graphite/interchange-2.f: Same.
310 * testsuite/gfortran.dg/graphite/pr42334-1.f: New.
311
3122009-12-15 Sebastian Pop <sebastian.pop@amd.com>
313
314 PR middle-end/42178
315 PR middle-end/42334
316 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
317 that are empty.
318 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
319 (lst_try_interchange): Reimplemented.
320 (lst_interchange_select_inner): Same.
321 (lst_do_interchange): Renamed lst_interchange_select_outer.
322 Reimplemented.
323 (scop_do_interchange): Update use of lst_interchange_select_outer.
324
325 * testsuite/g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
326 * testsuite/gcc.dg/graphite/block-0.c: Un-XFAILed.
327 * testsuite/gcc.dg/graphite/pr42211.c: New.
328 * testsuite/gfortran.dg/graphite/pr42334.f90: New.
329
4b216ab0
SP
3302009-12-14 Sebastian Pop <sebastian.pop@amd.com>
331
332 PR middle-end/42181
333 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
334 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
335
336 * testsuite/gfortran.dg/graphite/pr42181.f90: New.
337
c880097d
SP
3382009-12-12 Sebastian Pop <sebpop@gmail.com>
339
340 PR middle-end/42284
341 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
342 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
343 (detect_commutative_reduction_arg): Simplified.
344 (detect_commutative_reduction): Early return when the argument of
345 the close phi is not of an SSA_NAME.
346
347 * testsuite/gcc.dg/graphite/pr42284.c: New.
348
3492009-12-11 Alexander Monakov <amonakov@ispras.ru>
350
351 * dbgcnt.def (graphite_scop): New counter.
352 * graphite.c: Include dbgcnt.h
353 (graphite_transform_loops): Use new counter to limit transformations.
354
d505015a
SP
3552009-12-08 Sebastian Pop <sebpop@gmail.com>
356
357 PR middle-end/42285
358 * graphite-scop-detection.c (graphite_can_represent_init): Also
359 handle more complex MULT_EXPRs containing parameters by recursion
360 on the structure.
361
362 * testsuite/gfortran.dg/graphite/pr42285.f90: New.
363
3642009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
365
366 * testsuite/g++.dg/graphite/pr42130.C: Fix type.
367
ed807d06
AM
3682009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
369
370 * testsuite/g++.dg/graphite/pr42130.C: Correct testcase.
371
7c246f5e
TG
3722009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
373
374 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
375 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
376
0dd91484
TG
3772009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
378
379 PR middle-end/42130
380 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
381 translate_clast_for_loop): New.
382 (translate_clast_for): Add a condition around the loop, to do not
383 execute loops with zero iterations.
384 * testsuite/g++.dg/graphite/pr42130.C: New.
385 * testsuite/gcc.dg/graphite/pr35356-2.c: Adapt.
386
fd2d813d
TG
3872009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
388
389 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
390 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
391 Remove context_loop and level.
392
9016166f
TG
3932009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
394
395 * graphite-clast-to-gimple.c (translate_clast_user,
396 translate_clast_for, translate_clast_guard): Simplify and move common
397 elements to translate_clast().
398 (translate_clast): Simplify and get common elements.
399
e1f9c1cd
TG
4002009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
401
402 * graphite-clast-to-gimple.c (translate_clast_user,
403 translate_clast_for, translate_clast_guard): Split out of
404 translate_clast.
405
7a521ff2
TG
4062009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
407
408 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
409 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
410 debug_clast_name_indexes_1, debug_clast_name_indexes,
411 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
412 (clast_name_to_gcc, clast_to_gcc_expression,
413 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
414 gcc_type_for_clast_eq, graphite_translate_clast_equation,
415 graphite_create_guard_cond_expr, graphite_create_new_loop,
416 translate_clast): Add params_index.
417 (initialize_cloog_names): Create parameter strings from scratch, do
418 not reference other strings.
419 (create_params_index): New.
420 (gloog): Initialize params_index.
421 * graphite-scop-detection (free_scops_1): Removed.
422 (limit_scops): Use normal free_scops.
423 * graphite-sese-to-poly.c (save_var_names): Removed.
424 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
425 and SESE_PARAMS_INDEX.
426 * sese.c (new_sese, free_sese): Dito.
427 * sese.h (struct sese): Remove params_index, params_names.
428 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
429
ca11b093
SP
4302009-11-20 Sebastian Pop <sebastian.pop@amd.com>
431
432 Revert the following patch from 2009-09-14:
433 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
434 tree-scalar-evolution.h, and then tree-data-ref.h.
435 * graphite-clast-to-gimple.c: Same.
436 * graphite-dependences.c: Same.
437 * graphite-interchange.c: Same.
438 * graphite-poly.c: Same.
439 * graphite-scop-detection.c: Same.
440 * graphite-sese-to-poly.c: Same.
441 * graphite.c: Same.
442 * lambda-code.c: Same.
443 * matrix-reorg.c: Same.
444 * tree-data-ref.c: Same.
445 * tree-if-conv.c: Same.
446 * tree-loop-distribu: Same.: Same.
447 * tree-loop-linear.c: Same.
448 * tree-parloops.c: Same.
449 * tree-predcom.c: Same.
450 * tree-vect-patterns.c: Same.
451
8a9e9475
SP
4522009-11-20 Sebastian Pop <sebastian.pop@amd.com>
453
454 Revert patch from 2009-09-14.
455 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
456 passes at -O1 and below.
457
4bf4e169
SP
4582009-11-18 Sebastian Pop <sebastian.pop@amd.com>
459
460 PR middle-end/40281
461 * testsuite/gcc.dg/graphite/pr40281.c: New.
462
463 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
464 evolutions should not variate in inner loops.
465
12aec731
SP
4662009-11-18 Sebastian Pop <sebastian.pop@amd.com>
467
468 PR middle-end/42050
469 * testsuite/gfortran.dg/graphite/pr42050.f90: New.
470
aec12420
SP
4712009-11-18 Sebastian Pop <sebastian.pop@amd.com>
472
473 * graphite-interchange.c (memory_strides_in_loop_depth): New.
474 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
475
25e20d33
SP
4762009-11-18 Sebastian Pop <sebastian.pop@amd.com>
477
478 * graphite-blocking.c (scop_do_block): New.
479 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
480 * graphite-poly.h (scop_do_block): Declared.
481
e3bde9f4
SP
4822009-11-18 Sebastian Pop <sebastian.pop@amd.com>
483
484 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
485 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
486 to transform depth into the time_depth before calling
487 pbb_number_of_iterations_at_time.
488 (lst_do_strip_mine): Use a scalar variable instead of recomputing
489 lst_depth.
490
27e432be
SP
4912009-11-18 Sebastian Pop <sebastian.pop@amd.com>
492
493 Reverted the patch for "scattering permutations" from 2009-10-28.
494
495 * graphite-poly.c (print_permutation): New.
496 (debug_permutation): New.
497 (new_poly_bb): Initialize PBB_PERMUTATION.
498 (free_poly_bb): Free PBB_PERMUTATION.
499 * graphite-poly.h (pbb_permutation_elt_p): Declared.
500 (struct pbb_permutation_elt): New.
501 (PBB_PERMUTATION_ELT_STRIDE): New.
502 (PBB_PERMUTATION_ELT_STRIDED_P): New.
503 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
504 (new_pbb_permutation_elt): New.
505 (pbb_permutation_elt_free): New.
506 (struct poly_bb): Add field permutation.
507 (PBB_PERMUTATION): New.
508 (print_permutation): Declared.
509 (debug_permutation): Declared.
510
2bc529bf
KT
5112009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
512
513 * graphite-interchange.c (build_partial_difference): New.
514 (memory_stride_in_loop): Refactored the computation of
515 equality constraints into build_partial_difference function.
516 Added support for debugging stride computations.
517
8c54631d
SP
5182009-11-03 Sebastian Pop <sebastian.pop@amd.com>
519
520 * graphite-clast-to-gimple.c (gloog): Free if_region,
521 if_region->true_region, and if_region->region.
522 * sese.c (if_region_set_false_region): Free if_region->false_region.
523 (create_if_region_on_edge): Do not use GGC_NEW.
524 (move_sese_in_condition): Remove useless initialization.
525
7b7f2ca7
SP
5262009-11-03 Sebastian Pop <sebastian.pop@amd.com>
527
528 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
529 for the loops created by the loop distribution. Do not modify the
530 input LSTs.
531 (lst_try_interchange_loops): Same. Use a temporary LST for the
532 transformed schedule. Call lst_update_scattering before data
533 dependence analysis.
534 (lst_try_interchange): Pass an extra parameter INDEX.
535 (lst_do_interchange_1): New.
536 (lst_do_interchange): Call lst_do_interchange_1.
537 (scop_do_interchange): Call lst_update_scattering.
538 * graphite-poly.c (apply_poly_transforms): Do not call
539 lst_update_scattering.
540 * graphite-poly.h (lst_pred): New.
541 (lst_succ): New.
542 (lst_find_first_pbb): Return NULL when not found.
543 (lst_empty_p): New.
544 (lst_insert_in_sequence): Allow LST1 to be NULL.
545 (lst_replace): New.
546 (lst_substitute_3): New.
547 * gcc.dg/graphite/interchange-1.c: XFail.
548 * gcc.dg/graphite/interchange-8.c: XFail.
549 * gcc.dg/graphite/interchange-11.c: XFail.
550
6119e7d5
SP
5512009-10-30 Sebastian Pop <sebastian.pop@amd.com>
552
553 * graphite-interchange.c (lst_perfectly_nested_p): New.
554 (lst_perfect_nestify): New.
555 (lst_try_interchange_loops): Call store_lst_schedule,
556 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
557 (scop_do_interchange): Avoid redundant legality test.
558 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
559 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
560 * graphite-poly.h (psct_static_dim): New.
561 (lst_dewey_number_at_depth): New.
562 (lst_find_pbb): Restructured.
563 (lst_find_first_pbb): Restructured.
564 (lst_find_last_pbb): New.
565 (lst_contains_p): New.
566 (lst_contains_pbb): New.
567 (lst_create_nest): New.
568 (lst_remove_from_sequence): New.
569 (pbb_update_scattering): New.
570 (lst_update_scattering_under): New.
571 (lst_update_scattering_seq): New.
572 (lst_update_scattering): New.
573 (lst_insert_in_sequence): New.
574 (lst_distribute_lst): New.
575 (lst_remove_all_before_including_pbb): New.
576 (lst_remove_all_before_excluding_pbb): New.
577
431f3f22
SP
5782009-10-30 Sebastian Pop <sebastian.pop@amd.com>
579
580 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
581 get_loop_exit_edges.
582
4c768046
SP
5832009-10-30 Sebastian Pop <sebastian.pop@amd.com>
584
585 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
586
5fa8514e
SP
5872009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
588
589 * graphite-poly.c (print_permutation): New.
590 (debug_permutation): New.
591 (new_poly_bb): Initialize PBB_PERMUTATION.
592 (free_poly_bb): Free PBB_PERMUTATION.
593 * graphite-poly.h (pbb_permutation_elt_p): Declared.
594 (struct pbb_permutation_elt): New.
595 (PBB_PERMUTATION_ELT_STRIDE): New.
596 (PBB_PERMUTATION_ELT_STRIDED_P): New.
597 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
598 (new_pbb_permutation_elt): New.
599 (pbb_permutation_elt_free): New.
600 (struct poly_bb): Add field permutation.
601 (PBB_PERMUTATION): New.
602 (print_permutation): Declared.
603 (debug_permutation): Declared.
604
6c6f84d7
SP
6052009-10-26 Sebastian Pop <sebastian.pop@amd.com>
606
607 * graphite-clast-to-gimple.c (gloog): Do not call
608 sese_reset_aux_in_loops.
609 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
610 extra argument for domains. Do not use loop->aux.
611 (build_scop_iteration_domain): Initialize and free domains, pass it
612 to build_loop_iteration_domains and extract the information from
613 domains. Do not use loop->aux.
614 * sese.c (sese_reset_aux_in_loops): Removed.
615 * sese.h (sese_reset_aux_in_loops): Removed.
616
585b3e19
SP
6172009-10-26 Sebastian Pop <sebastian.pop@amd.com>
618
619 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
620 (dependency_in_loop_p): Same.
621 (translate_clast): Do not use loop->aux. Initialize
622 loop->can_be_parallel.
623 (mark_loops_parallel): Removed.
624 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
625 * graphite.c (free_aux_in_new_loops): Removed.
626 (graphite_finalize): Do not call free_aux_in_new_loops.
627 (graphite_transform_loops): Do not call mark_loops_parallel.
628
6292009-10-26 Li Feng <nemokingdom@gmail.com>
a7ed27ac
LF
630
631 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
632 (translate_clast): Pass an extra parameter LEVEL.
633 Call get_scattering_level.
634 * graphite-clast-to-gimple.h (get_scattering_level): New.
635
8e6ef139
SP
6362009-10-22 Sebastian Pop <sebastian.pop@amd.com>
637
638 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
639 * cfgloop.h (struct loop): New field single_iv.
640
641 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
642 loop->aux anymore: use loop->single_iv.
643 (graphite_loop_normal_form): Moved...
644 (build_graphite_loop_normal_form): Removed.
645 (gloog): Do not call build_graphite_loop_normal_form.
646 (free_aux_in_new_loops): Moved...
647 (mark_loops_parallel): Restructure.
648 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
649 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
650 (scop_canonicalize_loops): New.
651 (build_poly_scop): Call scop_canonicalize_loops.
652 * graphite.c (free_aux_in_new_loops): ...here.
653
e6dd91b2
SP
6542009-10-22 Sebastian Pop <sebastian.pop@amd.com>
655
656 * g++.dg/graphite/graphite.exp: Add the same rules as in
657 gcc.dg/graphite/graphite.exp.
658
47fb473f
SP
6592009-10-22 Sebastian Pop <sebastian.pop@amd.com>
660
661 * g++.dg/graphite/id-1.C: New.
662
63858ac6
SP
6632009-10-22 Sebastian Pop <sebastian.pop@amd.com>
664
665 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
666 argument base_name.
667 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
668 (rewrite_phi_out_of_ssa): Same.
669 (rewrite_cross_bb_scalar_deps): Same.
670 (translate_scalar_reduction_to_array): Same.
671
decfe536
SP
6722009-10-22 Sebastian Pop <sebastian.pop@amd.com>
673
674 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
675 dump_alias_graphs.
676
0d5ef2a9
SP
6772009-10-22 Sebastian Pop <sebastian.pop@amd.com>
678
679 * graphite-sese-to-poly.c (dump_alias_graphs): New.
680 (build_scop_drs): Call dump_alias_graphs.
681
f70de156
SP
6822009-10-22 Sebastian Pop <sebastian.pop@amd.com>
683
684 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
685 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
686 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
687 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
688 * graphite-poly.h (free_lst): New.
689 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
690 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
691
74715a9b
SP
6922009-10-22 Sebastian Pop <sebastian.pop@amd.com>
693
694 * graphite-poly.h (struct scop): Add a field saved_schedule.
695 (SCOP_SAVED_SCHEDULE): New.
696 (store_lst_schedule): New.
697 (restore_lst_schedule): New.
698 (store_scattering): Call store_lst_schedule.
699 (restore_scattering): Call restore_lst_schedule.
700
fb00d28e
SP
7012009-10-20 Sebastian Pop <sebastian.pop@amd.com>
702
703 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
704 (pdr_add_alias_set): Same.
705 (build_poly_dr): Same.
706 (build_alias_set_optimal_p): Same.
707 (build_base_obj_set_for_drs): Same. Do not store the result of
708 graphds_dfs.
709
917f481a
SP
7102009-10-20 Sebastian Pop <sebastian.pop@amd.com>
711
712 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
713 all_components_are_cliques to 1.
714
2b178a5f
LF
7152009-10-20 Li Feng <nemokingdom@gmail.com>
716
717 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
718 the new structure.
719 (pdr_add_alias_set): Update retrieving alias_set_num.
720 (build_poly_dr): Update retrieving dr_base_object_set.
721 (partition_drs_to_sets): Remove.
722 (build_alias_set_optimal_p): New.
723 (build_alias_set_for_drs): Rename.
724 (build_scop_drs): Update.
725 * graphite-sese-to-poly.h (struct base_alias_pair): New.
726 (ALIAS_SET_INDEX): Remove.
727 (BASE_OBJECT_SET_INDEX): Remove.
728
e8af4842
SP
7292009-10-20 Sebastian Pop <sebastian.pop@amd.com>
730
731 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
732
3899a0b2
SP
7332009-10-20 Sebastian Pop <sebastian.pop@amd.com>
734
735 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
736 loop upper bounds for 1-element arrays at end of structures.
737 * tree-flow.h (array_at_struct_end_p): Declared.
738 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
739
e34e5835
SP
7402009-10-20 Sebastian Pop <sebastian.pop@amd.com>
741
742 * g++.dg/graphite/pr41305.C: New.
743
07b0d0e2
AM
7442009-10-20 Alexander Monakov <amonakov@ispras.ru>
745
746 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
747 construction of parameter constraints from loop iteration analysis.
748 * gcc.dg/graphite/run-id-2.c: New test.
749
67255edf
SP
7502009-10-17 Sebastian Pop <sebastian.pop@amd.com>
751
752 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
753 and new_cstr.
754
14ba996b
SP
7552009-10-17 Sebastian Pop <sebastian.pop@amd.com>
756
757 * graphite-dependences.c (dependence_polyhedron_1): Remove
758 unused gdim dimensions from the DDR polyhedron.
759
4454141a
SP
7602009-10-17 Sebastian Pop <sebastian.pop@amd.com>
761
762 * graphite-dependences.c (pddr_transformed_scattering): New.
763 (dot_original_deps_stmt_1): New.
764 (dot_transformed_deps_stmt_1): New.
765 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
766 dot_transformed_deps_stmt_1.
767 (dot_original_deps): New.
768 (dot_transformed_deps): New.
769 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
770
dd61070d
SP
7712009-10-17 Sebastian Pop <sebastian.pop@amd.com>
772
773 * graphite-dependences.c (reduction_dr_1): Remove wrong
774 assert: reduction BBs can have multiple reduction writes
4454141a 775 to memory. interchange-3.f90 is an example.
dd61070d 776
65421bcc
SP
7772009-10-17 Sebastian Pop <sebastian.pop@amd.com>
778
779 * gfortran.dg/graphite/interchange-3.f90: New.
780
3e9f43ee
SP
7812009-10-17 Sebastian Pop <sebastian.pop@amd.com>
782
783 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
784
16bf8ab1
SP
7852009-10-17 Sebastian Pop <sebastian.pop@amd.com>
786
787 * graphite-dependences.c (dependence_polyhedron_1): Add the
788 context to the dependence polyhedron.
789
d422adfa
SP
7902009-10-17 Sebastian Pop <sebastian.pop@amd.com>
791
792 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
793 PBB_PDR_DUPLICATES_REMOVED.
794 (new_poly_bb): Same.
795
62e475c5
SP
7962009-10-17 Sebastian Pop <sebastian.pop@amd.com>
797
798 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
799 SCOP_CONTEXT.
800 (build_loop_iteration_domains): Extract bounds on parameters
801 based on the data size.
802 (build_scop_context): Do not initialize SCOP_CONTEXT;
803 add new constraints.
804
3ecbce7e
SP
8052009-10-17 Sebastian Pop <sebastian.pop@amd.com>
806
807 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
808 * graphite-ppl.h (graphite-ppl.h): Declared.
809
04863400
SP
8102009-10-17 Sebastian Pop <sebastian.pop@amd.com>
811
812 * graphite-ppl.c (ppl_print_linear_expr): New.
813 (debug_ppl_linear_expr): New.
814 * graphite-ppl.h (ppl_print_linear_expr): Declared.
815 (debug_ppl_linear_expr): Declared.
816
009150e1
SP
8172009-10-16 Sebastian Pop <sebastian.pop@amd.com>
818
819 * graphite-interchange.c: Fix comments.
820 * gcc.dg/graphite/block-1.c: Fix comments.
821
9b196c93
SP
8222009-10-16 Sebastian Pop <sebastian.pop@amd.com>
823
824 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
825 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
826
caa675f8
SP
8272009-10-16 Sebastian Pop <sebastian.pop@amd.com>
828
829 Reapply the patch from Alexander Monakov that disappeared during
830 the last merges from trunk.
831
832 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
833
834 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
835 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
836
92d92abb
SP
8372009-10-15 Sebastian Pop <sebastian.pop@amd.com>
838
839 * graphite-interchange.c (memory_stride_in_loop): The depth
840 argument corresponds to a dynamic time dimension, so use
841 psct_dynamic_dim to refer to the transformed scattering dimension.
842
23159c56
SP
8432009-10-15 Sebastian Pop <sebastian.pop@amd.com>
844
845 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
846
5c6c42c9
SP
8472009-10-15 Sebastian Pop <sebastian.pop@amd.com>
848
849 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
850 root of the LST.
851 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
852 the root of the LST.
853 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
854 fake loop.
855 (print_lst): Print the root of LST in a different format.
856 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
857
f58be90e
SP
8582009-10-15 Sebastian Pop <sebastian.pop@amd.com>
859
860 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
861
4e4ee197
SP
8622009-10-15 Sebastian Pop <sebastian.pop@amd.com>
863
864 * doc/passes.texi: Document the Graphite infrastructure.
865
6c4499b6
SP
8662009-10-15 Sebastian Pop <sebastian.pop@amd.com>
867
868 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
869 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
870 and check the SSA representation.
871
872 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
873
8e49fe91
SP
8742009-10-15 Sebastian Pop <sebastian.pop@amd.com>
875
876 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
877
bb2b2dfc
SP
8782009-10-14 Sebastian Pop <sebastian.pop@amd.com>
879
880 * gcc.dg/graphite/interchange-11.c: New.
881
e7ed4a64
SP
8822009-10-14 Sebastian Pop <sebastian.pop@amd.com>
883
884 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
885
d7f25aa6
SP
8862009-10-14 Sebastian Pop <sebastian.pop@amd.com>
887
888 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
889 Add -fno-loop-strip-mine and -fno-loop-interchange.
890 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
891 -fno-loop-strip-mine.
892 * gfortran.dg/graphite/graphite.exp: Same.
893
6231cf49
SP
8942009-10-14 Sebastian Pop <sebastian.pop@amd.com>
895
896 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
897 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
898 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
899 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
900 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
901 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
902 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
903 DEFAULT_FLAGS_GRAPHITE_SCOP.
904 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
905 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
906
2b7c09a8
SP
9072009-10-14 Sebastian Pop <sebastian.pop@amd.com>
908
909 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
910
b0c7a278
KT
9112009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
912 Sebastian Pop <sebastian.pop@amd.com>
913
914 * graphite-interchange.c (build_linearized_memory_access): Pass an
915 offset as parameter.
916 (memory_stride_in_loop): Include transform scattering in the
917 access functions to be able to querry the strides in the
918 transformed loops.
919 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
920 not the psct_iterator_dim.
921
13ae6f91
SP
9222009-10-14 Sebastian Pop <sebastian.pop@amd.com>
923
924 * graphite-blocking.c (pbb_do_strip_mine): Removed.
925 (lst_do_strip_mine_loop): New.
926 (lst_do_strip_mine): New.
927 (scop_do_strip_mine): Call lst_do_strip_mine.
928 * graphite-poly.h (lst_add_loop_under_loop): New.
929 (lst_find_first_pbb): New.
930
c0fe753b
SP
9312009-10-14 Sebastian Pop <sebastian.pop@amd.com>
932
933 * graphite-poly.c (loop_to_lst): Fix LST creation.
934
8d75ec87
TG
9352009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
936
937 * testsuite/gcc.dg/graphite/id-15.c: (8 * 8) replaced with
938 sizeof(unsigned long) to make it run on 32bit systems.
939
9402009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
941
942 * testsuite/gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
943 SEGFAULT on 32bit.
944
2e5a7cbf
RU
9452009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
946
8d75ec87
TG
947 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
948 Comment.
2e5a7cbf
RU
949 (write_alias_graph_to_ascii_dot): New.
950 (write_alias_graph_to_ascii_ecc): Ditto.
8d75ec87
TG
951 (partition_drs_to_sets): Add testing of optimality of current method
952 which assigns alias numbers according to DFS Comopnent number. used
953 as heuristic for the upcoming ECC algorithm.
2e5a7cbf
RU
954 (build_scop_drs): Write to file also with the ecc and dot format.
955
1e82de2a
SP
9562009-10-13 Sebastian Pop <sebastian.pop@amd.com>
957
958 * gfortran.dg/graphite/interchange-1.f: XFail.
959
9bf13085
SP
9602009-10-13 Sebastian Pop <sebastian.pop@amd.com>
961
962 * graphite.c (graphite_initialize): Do not handle functions with
963 more than 100 basic blocks.
964
e797c5f2
SP
9652009-10-13 Sebastian Pop <sebastian.pop@amd.com>
966
967 * graphite-blocking.c (pbb_do_strip_mine): Use
968 PARAM_LOOP_BLOCK_TILE_SIZE.
969
bfa00f48
SP
9702009-10-13 Sebastian Pop <sebastian.pop@amd.com>
971
972 * graphite-poly.c (dot_lst_1): New.
973 (dot_lst): New.
974 * graphite-poly.h (dot_lst): Declared.
975
3c7bdeb8
SP
9762009-10-13 Sebastian Pop <sebastian.pop@amd.com>
977
978 * graphite-dependences.c (dot_deps_stmt_1): New.
979 (dot_deps_stmt): New.
980 * graphite-dependences.h (dot_deps_stmt): Declared.
981
c7dc2fab
SP
9822009-10-09 Sebastian Pop <sebastian.pop@amd.com>
983
984 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
985 not replace cross BB scalar dependences ending on PHI nodes.
986 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
987
24c79709
SP
9882009-10-09 Sebastian Pop <sebastian.pop@amd.com>
989
990 * graphite-poly.c (apply_poly_transforms): Implement the high
991 level driver for flag_loop_block.
992 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
993 flag_loop_block.
994
995 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
996 -floop-block.
997 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
998 Add -floop-block.
999
a0517b76
SP
10002009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1001
1002 * graphite-poly.h (lst_find_pbb): New.
1003 (find_lst_loop): New.
1004
9d077835
SP
10052009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1006
1007 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
1008 * graphite-poly.h (struct scop): Remove dep_graph field.
1009 (SCOP_DEP_GRAPH): Removed.
1010
75b63a91
SP
10112009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1012
1013 * graphite-poly.h (copy_lst): Do full copy of LST.
1014
7cc4ff8d
SP
10152009-10-07 Sebastian Pop <sebastian.pop@amd.com>
1016
1017 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
1018 when the loop stride is zero.
1019
1020 * gcc.dg/graphite/id-16.c: New.
1021
60d2a8c3
SP
10222009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1023
1024 * graphite-dependences.c (reduction_dr_1): New.
1025 (reduction_dr_p): New.
1026 (graphite_legal_transform_dr): Call reduction_dr_p.
1027 (reduction_ddr): Renamed reduction_ddr_p.
1028 * graphite-poly.h (same_pdr_p): New.
1029 (number_of_write_pdrs): New.
1030 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
1031 (split_reduction_stmt): Do not split reduction statements
1032 when there are no writes to memory.
1033 (translate_scalar_reduction_to_array_for_stmt): Insert the
1034 memory reduction statement just after the scalar reduction statement.
1035
1036 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
1037 Un-XFAIL-ed.
1038 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
1039 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
1040
95baeff8
SP
10412009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1042
1043 * graphite-interchange.c (lst_apply_interchange): New.
1044 (lst_interchange_profitable_p): New.
1045 (lst_try_interchange_loops): New.
1046 (lst_try_interchange): New.
1047 (lst_do_interchange): New.
1048 (pbb_do_interchange): Removed.
1049 (scop_do_interchange): Call lst_do_interchange.
1050
a36d12e2
SP
10512009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1052
1053 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
1054 SCOP_TRANSFORMED_SCHEDULE.
1055 (loop_to_lst): New.
1056 (scop_to_lst): New.
1057 (print_lst): New.
1058 (debug_lst): New.
1059 * graphite-poly.h (lst_p): New.
1060 (struct lst): New.
1061 (LST_LOOP_P): New.
1062 (LST_LOOP_FATHER): New.
1063 (LST_PBB): New.
1064 (LST_SEQ): New.
1065 (scop_to_lst): Declared.
1066 (print_lst): Declared.
1067 (debug_lst): Declared.
1068 (new_lst_loop): New.
1069 (new_lst_stmt): New.
1070 (copy_lst): New.
1071 (lst_depth): New.
1072 (lst_dewey_number): New.
1073 (struct scop): Add original_schedule and transformed_schedule fields.
1074 (SCOP_ORIGINAL_SCHEDULE): New.
1075 (SCOP_TRANSFORMED_SCHEDULE): New.
1076 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
1077
a0dd1440
SP
10782009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1079
1080 * graphite-dependences.c (reduction_ddr): New.
1081 (graphite_legal_transform_bb): Call reduction_ddr.
1082 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
1083 Initialize PBB_IS_REDUCTION.
1084 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
1085 (PBB_IS_REDUCTION): New.
1086 (new_poly_bb): Update declaration.
1087 * graphite-scop-detection.h (build_scop_bbs): Removed.
1088 (nb_reductions_in_loop): Removed.
1089 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
1090 parameter for reductions.
1091 (try_generate_gimple_bb): Update call to new_poly_bb.
1092 (build_scop_bbs_1): Same.
1093 (build_scop_bbs): Same.
1094 (gsi_for_phi_node): New.
1095 (scalar_close_phi_node_p): Remove gcc_assert.
1096 (split_reduction_stmt): New.
1097 (is_reduction_operation_p): New.
1098 (phi_contains_arg): New.
1099 (follow_ssa_with_commutative_ops): New.
1100 (detect_commutative_reduction_arg): New.
1101 (detect_commutative_reduction_assign): New.
1102 (follow_inital_value_to_phi): New.
1103 (edge_initial_value_for_loop_phi): New.
1104 (initial_value_for_loop_phi): New.
1105 (detect_commutative_reduction): New.
1106 (translate_scalar_reduction_to_array_for_stmt): New.
1107 (insert_copyout): New.
1108 (insert_copyin): New.
1109 (translate_scalar_reduction_to_array): New.
1110 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
1111 (rewrite_commutative_reductions_out_of_ssa_loop): New.
1112 (rewrite_commutative_reductions_out_of_ssa): New.
1113 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
1114 * sese.h (split_region_for_bb): New.
1115
1116 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
1117 * gcc.dg/graphite/interchange-1.c: Fix format.
1118 * gcc.dg/graphite/interchange-10.c: New.
1119
db7e9485
SP
11202009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1121
1122 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
1123 buggy assert.
1124
5dcc64d9
SP
11252009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1126
1127 * graphite-sese-to-poly.c (scev_analyzable_p): New.
1128 (rewrite_cross_bb_scalar_dependence): New.
1129 (rewrite_cross_bb_scalar_deps): New.
1130 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
1131 Call rewrite_cross_bb_scalar_deps.
1132
947121b8
SP
11332009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1134
1135 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
1136 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
1137 gsi_for_stmt.
1138
d48e288d
SP
11392009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1140
1141 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
1142 * graphite-interchange.c (pbb_do_interchange): Same.
1143 * graphite-poly.c (print_scattering_function): Same.
1144 (debug_pdrs): Same.
1145 * graphite-poly.h (pbb_loop): New.
1146 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
1147
d17286f6
SP
11482009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1149
1150 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
1151
ee03cd20
SP
11522009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1153
1154 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
1155 so don't pass a pointer to it.
1156 (build_alias_set_for_drs): Same.
1157 (build_base_obj_set_for_drs): Same.
1158 (build_scop_drs): Same.
1159
888beba1
LF
11602009-09-26 Li Feng <nemokingdom@gmail.com>
1161
1162 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
1163 the alias graph of data references.
1164
cd43e5d7
LF
11652009-09-25 Li Feng <nemokingdom@gmail.com>
1166
1167 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
1168 (build_scop_drs): When debugging, write the alias graph to file,
1169 otherwise, should be disabled.
1170
aeda6535
SP
11712009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1172
1173 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
1174 (is_simple_operand): Remove call to stmt_simple_memref_p.
1175 (stmt_simple_for_scop_p): Update call to is_simple_operand.
1176
8b6b8570
DE
11772009-09-17 David Edelsohn <edelsohn@gnu.org>
1178
8971eb91 1179 * testsuite/gcc.dg/graphite/interchange-mvt.c: New File.
8b6b8570
DE
1180 * testsuite/gcc.dg/graphite/scop-dsyrk.c: New File.
1181 * testsuite/gcc.dg/graphite/scop-dsyr2k.c: New File.
1182 * testsuite/gcc.dg/graphite/scop-mvt.c: New File.
1183 * testsuite/gcc.dg/graphite/scop-sor.c: New File.
1184
1825f9a2
LF
11852009-09-17 Li Feng <nemokingdom@gmail.com>
1186
1187 PR middle-end/41118
1188 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
1189 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
1190 (graphite_carried_dependence_level_k): Ditto.
1191 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
1192 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
1193 (new_poly_dr): Adjust declaration.
1194 * graphite-sese-to-poly.c (free_data_refs_aux): New.
1195 (free_gimple_bb): Added free_data_refs_aux.
1196 (build_poly_dr): Add dr_base_object_set.
1197 (partition_drs_to_sets): New.
1198 (dr_same_base_object_p): New.
1199 (build_alias_set_for_drs): New.
1200 (build_base_object_set_for_drs): New.
1201 (build_scop_drs): Add build_base_obj_set_for_drs.
1202 * graphite-sese-to-poly.h: Added #define for alias set number index and
1203 base object set index.
1204 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
1205 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
1206
ac90803f
SP
12072009-09-16 Alexander Monakov <amonakov@ispras.ru>
1208
1209 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1210 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1211
54fc808a
SP
12122009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1213
1214 * graphite-sese-to-poly.c (struct irp_data): Removed.
1215 (idx_record_params): Removed.
1216 (find_params_in_bb): Scan for parameters the access functions; don't
1217 parse the tree representation.
1218
e88e021f
SP
12192009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1220
1221 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
1222 passes at -O1 and below.
1223
3690f8d7
SP
12242009-09-14 Sebastian Pop <sebastian.pop@amd.com>
1225
1226 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1227 tree-scalar-evolution.h, and then tree-data-ref.h.
1228 * graphite-clast-to-gimple.c: Same.
1229 * graphite-dependences.c: Same.
1230 * graphite-interchange.c: Same.
1231 * graphite-poly.c: Same.
1232 * graphite-scop-detection.c: Same.
1233 * graphite-sese-to-poly.c: Same.
1234 * graphite.c: Same.
1235 * lambda-code.c: Same.
1236 * matrix-reorg.c: Same.
1237 * tree-data-ref.c: Same.
1238 * tree-if-conv.c: Same.
1239 * tree-loop-distribu: Same.: Same.
1240 * tree-loop-linear.c: Same.
1241 * tree-parloops.c: Same.
1242 * tree-predcom.c: Same.
1243 * tree-vect-patterns.c: Same.
1244
2495a183
SP
12452009-09-02 Sebastian Pop <sebastian.pop@amd.com>
1246
1247 Partially revert the previous patch, except the following.
1248 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
1249 as parameters the operands of the not expression.
1250
20179b0d
SP
12512009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1252
1253 * tree-scalar-evolution.c (instantiate_scev_assign): New.
1254 Do not call analyze_scalar_evolution on assignments.
1255 (instantiate_scev_phi): Call analyze_scalar_evolution.
1256 (instantiate_scev_name): Call instantiate_scev_assign and
1257 instantiate_scev_phi.
1258 (instantiate_scev_not): Adapted to pass as parameters the operands
1259 of the not expression.
1260
ffa34f4b
SP
12612009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1262
1263 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
1264 to pass as parameters the operands of the binary expression.
1265
4b9d48a1
SP
12662009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1267
1268 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
1269 instantiate_scev_not. Handle NEGATE_EXPR.
1270 (instantiate_scev_r): Handle NEGATE_EXPR.
1271
9e5dc77f
SP
12722009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1273
1274 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
1275 instantiate_scev_r.
1276 (instantiate_scev_r): Move code in instantiate_scev_2
1277 and instantiate_scev_1.
1278
d814176c
SP
12792009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1280
1281 * tree-scalar-evolution.c (instantiate_scev_3): New.
1282 (instantiate_scev_1): Move code in instantiate_scev_3.
1283
ec6636eb
SP
12842009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1285
1286 * tree-scalar-evolution.c (instantiate_scev_poly): New.
1287 (instantiate_scev_1): Move code in instantiate_scev_poly.
1288
7ec0665d
SP
12892009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1290
1291 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
1292 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
1293
9c382ce9
SP
12942009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1295
1296 * tree-scalar-evolution.c (instantiate_scev_convert): New.
1297 (instantiate_scev_1): Move code in instantiate_scev_convert.
1298
15fda317
SP
12992009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1300
1301 * tree-scalar-evolution.c (instantiate_scev_binary): New.
1302 (instantiate_scev_1): Move code in instantiate_scev_binary.
1303
320f5a78
SP
13042009-09-01 Sebastian Pop <sebastian.pop@amd.com>
1305
1306 * tree-scalar-evolution.c (instantiate_scev_name): New.
1307 (instantiate_scev_1): Move code in instantiate_scev_name.
1308
13092009-08-28 Sebastian Pop <sebastian.pop@amd.com>
1310
1311 * Merge from mainline (150992:151171).
1312
211694b6
SP
13132009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1314
1315 * graphite-dependences.c (graphite_legal_transform_bb): Call
1316 pbb_remove_duplicate_pdrs.
1317 * graphite-poly.c (can_collapse_pdr): Removed.
1318 (pdr_find_duplicate): Removed.
1319 (can_collapse_pdrs): New.
1320 (pbb_remove_duplicate_pdrs): New.
1321 (new_poly_dr): Do not look for duplicates.
1322 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
1323 (PBB_PDR_DUPLICATES_REMOVED): New.
1324 (pbb_remove_duplicate_pdrs): Declared.
1325
7bd2a8a7
SP
13262009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1327
1328 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
1329 the strides by multiplying by PDR_NB_REFS.
1330 * graphite-poly.c (can_collapse_pdr): New.
1331 (pdr_find_duplicate): New.
1332 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
1333 Initialize PDR_NB_REFS.
1334 * graphite-poly.h (struct poly_dr): Add field nb_refs.
1335 (PDR_NB_REFS): New.
1336 (new_poly_dr): Number of subscripts is a graphite_dim_t.
1337
13382009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1339
1340 Revert one of the previous commits:
1341 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1342 the computation of symmetric data dependence relations.
1343 (dependency_between_pbbs_p): Same.
1344
93b2db87
SP
13452009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1346
1347 PR middle-end/40965
1348 * graphite-poly.c (apply_poly_transforms): Remove legality test before
1349 any transform.
1350
d8eeb078
SP
13512009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1352
1353 * graphite-dependences.c (pddr_original_scattering): Return NULL
1354 for read-read dependence relations.
1355 * graphite-poly.h (enum poly_dr_type): Fix comment.
1356 (pdr_read_p): New.
1357 (pdr_write_p): New.
1358 (pdr_may_write_p): New.
1359
e6dec0fb
SP
13602009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1361
1362 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
1363 (struct poly_dr): Same.
1364 (new_poly_dr): Same.
1365 * graphite-poly.c (new_poly_dr): Same.
1366
baf4b881
KT
13672009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1368 Sebastian Pop <sebastian.pop@amd.com>
1369
1370 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
1371 pbb_strip_mine_time_depth. Changed the implementation so that
1372 transformation is expressed as a transformation on
1373 time (scatttering) dimensions. Also, ensures that the 2d+1
1374 scheduling format is preserved.
1375 (pbb_strip_mine_profitable_p): Profitability is based on the
1376 iteration number of a given time (scattering) dimension,
1377 and not on a original loop depth dimension.
1378 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
1379 (pbb_do_strip_mine): Call psct_dynamic_dim.
1380 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
1381 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
1382 (pbb_nb_dynamic_scattering_transform): New.
1383 (psct_dynamic_dim): New.
1384
059a5f9f
KT
13852009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1386
1387 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1388 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
1389 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
1390 * graphite-interchange.c (build_linearized_memory_access): Same.
1391 (memory_stride_in_loop): Same.
1392
afae0207
SP
13932009-08-25 Sebastian Pop <sebastian.pop@amd.com>
1394
1395 * graphite-dependences.c (pddr_original_scattering): New.
1396 (graphite_legal_transform_dr): Call pddr_original_scattering.
1397 (dot_deps_1): New.
1398 (dot_deps): New.
1399 * graphite-dependences.h (dot_deps): Declared.
1400 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
1401 (print_pdr): Print PDR_ID.
1402 * graphite-poly.h (struct poly_dr): Add field id.
1403 (PDR_ID): New.
1404 (pbb_index): New.
1405 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
1406
f8e0bb8b
SP
14072009-08-22 Sebastian Pop <sebastian.pop@amd.com>
1408
1409 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
1410 not delete the original dependence relation.
1411
14122009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1413
1414 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
1415 the computation of symmetric data dependence relations.
1416 (dependency_between_pbbs_p): Same.
1417
e37f165f
SP
14182009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1419
1420 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
1421 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
1422 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
1423 (free_poly_ddr): New.
1424 (pddr_is_empty): New.
1425 (dependence_polyhedron_1): Now returns a poly_ddr_p.
1426 (dependence_polyhedron): Same. Remove useless gcc_assert.
1427 Remove fprintfs.
1428 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
1429 (graphite_carried_dependence_level_k): Call pddr_is_empty.
1430 * graphite-dependences.h (enum poly_dependence_kind): New.
1431 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
1432 (PDRP_SOURCE): Renamed PDDR_SOURCE.
1433 (PDRP_SINK): Renamed PDDR_SINK.
1434 (PDRP_DDP): Renamed PDDR_DDP.
1435 (PDDR_KIND): New.
1436 (free_poly_ddr): Declared.
1437 * graphite-poly.c (new_scop): Use the new hash function names.
1438 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
1439 into original_pddrs.
1440 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
1441
14422009-08-21 Sebastian Pop <sebastian.pop@amd.com>
1443
1444 * Merge from mainline (150764:150992).
1445
45e76e9f
SP
14462009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1447
1448 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
1449 bounds with LT_EXPR to make niter analysis more precise on code
1450 generated by Graphite.
1451
66b466c3
SP
14522009-08-18 Sebastian Pop <sebastian.pop@amd.com>
1453
1454 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
1455 (graphite_legal_transform_bb): Same.
1456 (poly_drs_may_alias_p): Same.
1457
f263917c
SP
14582009-08-15 Sebastian Pop <sebastian.pop@amd.com>
1459
1460 PR middle-end/40981
1461 * graphite-ppl.c (ppl_max_for_le): Correct the use of
1462 ppl_Pointset_Powerset_C_Polyhedron_maximize.
1463
14642009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1465
1466 * graphite-poly.c (print_pbb): Print PBB index.
1467
14682009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1469
1470 * Merge from mainline (r150672:150764).
1471
14722009-08-13 Sebastian Pop <sebastian.pop@amd.com>
1473
1474 * graphite-interchange.c (ppl_max_for_le): Moved...
1475 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
1476 * graphite-ppl.c (ppl_max_for_le): ... here.
1477 * graphite-ppl.h (ppl_max_for_le): Declared.
1478
14792009-08-12 Sebastian Pop <sebastian.pop@amd.com>
1480
1481 * Merge from mainline (r150372:150672).
1482
30de1632
SP
14832009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1484
1485 PR middle-end/40980
1486 * sese.c (convert_for_phi_arg): New.
1487 (add_guard_exit_phis): Use convert_for_phi_arg.
1488
1489 * testsuite/gfortran.dg/graphite/id-17.f: New.
1490
8c31ebfa
SP
14912009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1492
1493 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
1494 unknown subscript upper bounds.
1495
1496 * testsuite/gcc.dg/graphite/interchange-6.c: Un-XFAIL.
1497
fb9fb290
SP
14982009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1499 Pranav Garg <pranav.garg2107@gmail.com>
1500
1501 * graphite-interchange.c (gather_access_strides): Removed.
1502 (ppl_max_for_le): New.
1503 (build_linearized_memory_access): New.
1504 (memory_stride_in_loop): New.
1505 (pbb_interchange_profitable_p): Reimplemented.
1506 * graphite-ppl.h (ppl_new_id_map): New.
1507 (ppl_interchange): New.
1508
1509 * testsuite/gcc.dg/graphite/interchange-6.c: XFAILed.
1510
312aea7f
SP
15112009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1512
1513 * graphite-interchange.c (compute_subscript): Removed.
1514 (compute_array_size_cstr): Removed.
1515 (compute_array_size_poly): Removed.
1516 (compute_array_size): Removed.
1517 (gather_access_strides_poly): Removed.
1518 (gather_access_strides): Empty.
1519
25d7cc15
SP
15202009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1521
1522 * graphite-dependences.c (dependence_polyhedron_1): Replace
1523 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
1524 (graphite_legal_transform_dr): Same.
1525 (graphite_carried_dependence_level_k): Same.
1526 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
1527 Initialize PDR_NB_SUBSCRIPTS.
1528 (print_pdr_access_layout): Replace pdr_nb_subscripts with
1529 PDR_NB_SUBSCRIPTS.
1530 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
1531 (PDR_NB_SUBSCRIPTS): New.
1532 (pdr_nb_subscripts): Removed.
1533 (pdr_dim): Simplified.
1534 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
1535 with PDR_NB_SUBSCRIPTS.
1536
66096911
SP
15372009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1538
1539 * graphite-interchange.c (compute_array_size): Remove use of
1540 PDR_DATA_CONTAINER.
1541 * graphite-poly.c (new_poly_dr): Remove argument data_container.
1542 Do not initialize PDR_DATA_CONTAINER.
1543 (print_pdr): Do not print PDR_DATA_CONTAINER.
1544 * graphite-poly.h (struct poly_dr): Remove data_container field.
1545 (PDR_DATA_CONTAINER): Removed.
1546 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
1547 PDR_DATA_CONTAINER.
1548 (build_poly_dr): Same.
1549
273c5dd3
SP
15502009-08-11 Sebastian Pop <sebastian.pop@amd.com>
1551
1552 * testsuite/gcc.dg/graphite/interchange-9.c: New.
1553
7491e5f0
KT
15542009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1555 Sebastian Pop <sebastian.pop@amd.com>
1556
1557 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
1558 copy of the dependence polyhedron. Free the temporary objects.
1559 (graphite_carried_dependence_level_k): Free unused objects before
1560 returning.
1561
1562 * testsuite/gcc.dg/graphite/interchange-1.c: XFAILed.
1563 * testsuite/gcc.dg/graphite/interchange-2.c: XFAILed.
1564 * testsuite/gcc.dg/graphite/interchange-3.c: XFAILed.
1565 * testsuite/gcc.dg/graphite/interchange-4.c: XFAILed.
1566 * testsuite/gcc.dg/graphite/interchange-7.c: XFAILed.
1567
f4648ed1
SP
15682009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1569
1570 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
1571 Early return without analyzing the data dependences if no
1572 transform has been done. Call restore_scattering if the transform
1573 is not legal.
1574 (graphite-interchange.c): Same.
1575 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
1576 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
1577 (apply_poly_transforms): Do not gcc_assert that
1578 the transform is legal.
1579 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1580 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
1581 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
1582 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
1583 * graphite-poly.h (struct poly_scattering): New.
1584 (struct poly_bb): Add original, transformed, and saved fields.
1585 Remove transformed_scattering, original_scattering, nb_local_variables,
1586 and nb_scattering_transform fields.
1587 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
1588 (poly_scattering_new): New.
1589 (poly_scattering_free): New.
1590 (poly_scattering_copy): New.
1591 (store_scattering_pbb): New.
1592 (store_scattering): New.
1593 (restore_scattering_pbb): New.
1594 (restore_scattering): New.
1595 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
1596 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
273c5dd3 1597
e31a5bd4
SP
15982009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1599
1600 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
1601 (print_scop): Same.
1602
8e88f9fd
SP
16032009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1604
1605 * Makefile.in (graphite.o): Depends on PREDICT_H.
1606 * graphite.c: Include predict.h.
1607 (graphite_finalize): Call tree_estimate_probability.
1608 * predict.c (predict_loops): Do not call scev_initialize and
1609 scev_finalize.
1610 (tree_estimate_probability_bb): New.
1611 (tree_estimate_probability): Do not initialize loops: move that
1612 code to the driver. Call tree_estimate_probability_bb.
1613 (tree_estimate_probability_driver): New.
1614 (pass_profile): Use tree_estimate_probability_driver.
1615 * predict.h (tree_estimate_probability): Declared.
1616
87d4d0ee
SP
16172009-08-05 Sebastian Pop <sebastian.pop@amd.com>
1618
1619 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
1620 * graphite-dependences.c (graphite_legal_transform): Add time to
1621 TV_GRAPHITE_DATA_DEPS.
1622 (dependency_between_pbbs_p): Same.
1623 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
1624
16252009-08-03 Sebastian Pop <sebastian.pop@amd.com>
1626
1627 * Merge from mainline (r149952:150372).
1628
2abae5f1
SP
16292009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1630
1631 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
1632 * graphite-blocking.c: Same.
1633 * graphite-clast-to-gimple.c: Same.
1634 * graphite-dependences.c: Same.
1635 * graphite-poly.c: Same.
1636 * graphite-poly.h: Same.
1637 * graphite-ppl.c: Same.
1638 * graphite-scop-detection.c: Same.
1639 * graphite-sese-to-poly.c: Same.
1640 * graphite.c: Same.
1641
16422009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1643
1644 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
1645 (remove_simple_copy_phi): New.
1646 (remove_invariant_phi): New.
1647 (simple_copy_phi_p): New.
1648 (reduction_phi_p): New.
1649 (gsi_for_ssa_name_def): New.
1650 (insert_out_of_ssa_copy): New.
1651 (insert_out_of_ssa_copy_on_edge): New.
1652 (create_zero_dim_array): New.
1653 (scalar_close_phi_node_p): New.
1654 (rewrite_close_phi_out_of_ssa): New.
1655 (rewrite_phi_out_of_ssa): New.
1656 (rewrite_reductions_out_of_ssa): New.
1657 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
1658
1659 * testsuite/gcc.dg/graphite/id-11.c: New.
1660 * testsuite/gcc.dg/graphite/id-15.c: New.
1661 * testsuite/gcc.dg/graphite/interchange-1.c: Un-XFAIL.
1662 * testsuite/gcc.dg/graphite/interchange-2.c: Un-XFAIL.
1663 * testsuite/gcc.dg/graphite/interchange-3.c: Un-XFAIL.
1664 * testsuite/gcc.dg/graphite/interchange-4.c: Un-XFAIL.
1665 * testsuite/gcc.dg/graphite/interchange-7.c: Un-XFAIL.
1666 * testsuite/gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
1667 * testsuite/gfortran.dg/graphite/id-13.f: New.
1668 * testsuite/gfortran.dg/graphite/id-5.f: New.
1669
16702009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1671
1672 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
1673 check that nb_reductions_in_loop is zero.
1674 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
1675 reduction phi nodes.
1676 (nb_reductions_in_loop): Removed.
1677 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
1678 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
1679 (bb_contains_non_iv_scalar_phi_nodes): Removed.
1680 (scop_contains_non_iv_scalar_phi_nodes): Removed.
1681 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
1682
16832009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1684
1685 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
1686 statements that have an empty iteration domain.
1687 * testsuite/gfortran.dg/graphite/id-16.f: New.
1688
16892009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1690
1691 * tree-scalar-evolution.c (instantiate_scev_1): Return
1692 chrec_dont_know when the result is not above instantiate_below.
1693 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
1694 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
1695 the tree has a known scalar evolution.
1696 * testsuite/gfortran.dg/graphite/id-14.f: New.
1697 * testsuite/gfortran.dg/graphite/id-15.f: New.
1698
16992009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1700
1701 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
1702 insert_gsi.
1703 (rename_variables): Keep inserting renames after the ones already
1704 inserted.
1705
17062009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1707
1708 * graphite-sese-to-poly.c (compare_bb_depths): New.
1709 (graphite_sort_dominated_info): New.
1710 (build_scop_bbs_1): Call graphite_sort_dominated_info.
1711 (build_scop_scattering): Fix comment.
1712
17132009-07-28 Sebastian Pop <sebastian.pop@amd.com>
1714
1715 * graphite.c (graphite_finalize): Call print_loops instead of
1716 dump_function_to_file.
1717 * testsuite/gcc.dg/graphite/graphite.exp: Fix formatting.
1718 * testsuite/gcc.dg/graphite/pr35356-1.c: New. Look for the number of
1719 loops generated in the graphite output file.
1720 * testsuite/gcc.dg/graphite/pr35356-2.c: New.
1721 * testsuite/gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
1722 * testsuite/gfortran.dg/graphite/id-12.f: New.
1723
17242009-07-24 Li Feng <nemokingdom@gmail.com>
1725
1726 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
1727 Remove 2 XFAIL.
1728
17292009-07-24 Li Feng <nemokingdom@gmail.com>
1730 Tobias Grosser <grosser@fim.uni-passau.de>
1731
1732 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
1733 alias set number build alias in ACCESSES polyhedron.
1734 (build_alias_set_for_drs): New.
1735 (build_pbb_drs): Added build_alias_set_for_drs.
1736 * graphite-dependences.c (poly_drs_may_alias_p): New.
1737 (graphite_carried_dependence_level_k): Check alias information
1738 before building polyhedron.
1739
17402009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
1741
1742 * Makefile.in (lambda-code.o): Fix formatting.
1743
17442009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
1745
1746 * Merge from mainline (r149350-149952)
1747
17482009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
1749
1750 * graphite-poly.c (apply_poly_transforms): Move strip_mine
1751 before interchange to prepare for loop blocking.
1752
17532009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
1754
1755 * graphite-poly.c (apply_poly_transforms): Add checks after every
1756 transformation.
1757 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
1758 done in apply_poly_transforms.
1759
17602009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1761
1762 * graphite-dependences.c (build_lexicographically_gt_constraint):
1763 Replace RES parameter with *RES.
1764 (dependence_polyhedron_1): Pass an address of the parameter RES
1765 instead of value of RES.
1766
17672009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1768
1769 * graphite.c (graphite_finalize): Fix comment.
1770 (graphite_transform_loops): Reset scev info after code generation
1771 of each scop.
1772
17732009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1774
1775 * graphite.c (graphite_finalize): Call scev_reset.
1776
17772009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1778
1779 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
1780 GBB_CLOOG_IV_TYPES hash table twice.
1781 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
1782 (add_condition_to_domain): Clear GMP values.
1783
17842009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1785
1786 * graphite-dependences.c: Fix formatting.
1787 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
1788 (pbb_number_of_iterations): Free ppl_Linear_Expression.
1789 * graphite-sese-to-poly.c: Fix formatting.
1790 * graphite.c (graphite_transform_loops): Create the hash table
1791 after the early return.
1792
17932009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1794
1795 * testsuite/gcc.dg/graphite/id-14.c: New.
1796 * testsuite/gcc.dg/graphite/pr40157.c: New.
1797 * testsuite/gfortran.dg/graphite/id-11.f: New.
1798
17992009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1800
1801 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
1802 (build_poly_scop): Return false when there are no pbbs within
1803 loops to avoid to pass to cloog scops with no loops.
1804
18052009-07-16 Sebastian Pop <sebastian.pop@amd.com>
1806
1807 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
1808 useless test "i % 2".
1809 (build_pbb_scattering_polyhedrons): Fix formatting.
1810 (build_poly_dr): Same.
1811 * graphite.c (graphite_transform_loops): Restructure.
1812
18132009-07-14 Razya Ladelsky <razya@il.ibm.com>
1814
1815 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
1816 reduction_list parameter.
1817 (rewrite_all_phi_nodes_with_iv): Same.
1818 (canonicalize_loop_ivs): Same.
1819 * tree-parloops.c (struct brli): Removed.
1820 (build_reduction_list_info): Removed.
1821 (build_new_reduction): New.
1822 (analyze_reduction_list): Removed.
1823 (gather_scalar_reductions): Find reductions instead of phi
1824 nodes that can't be canonicalized.
1825 (try_create_reduction_list): Remove reduction_list parameter.
1826 (gen_parallel_loop): Same.
1827 (parallelize_loops): Remove analyze_reductions variable,
1828 initialization and free.
1829 Change reduction_list htab initialization to reduction_info
1830 elements instead of ssa names.
1831 Call try_create_reduction_list and gen_parallel_loop without
1832 analyzed_reduction argument.
1833 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
1834 canonicalize_loop_ivs with one less argument.
1835 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
1836
18372009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1838
1839 * graphite-dependences.c (new_poly_dr_pair): New.
1840 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
1841 (new_poly_dr_pair): New.
1842 (eq_poly_dr_pair_p): New.
1843 (hash_poly_dr_pair_p): New.
1844 * graphite-dependences.h (struct poly_dr_pair): New.
1845 (eq_poly_dr_pair_p): Declared.
1846 (hash_poly_dr_pair_p): Declared.
1847 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
1848 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
1849 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
1850 * Makefile.in (graphite-poly.o): Add dependence on
1851 graphite-dependences.h.
1852
18532009-07-14 Sebastian Pop <sebastian.pop@amd.com>
1854
1855 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
1856 polynomials of degree > 1 pass to Graphite.
1857 * tree-chrec.c (scev_is_linear_expression): Call
1858 evolution_function_is_affine_multivariate_p.
1859 * testsuite/gfortran.dg/graphite/id-10.f90: New.
1860
18612009-07-14 Sebastian Pop <sebastian.pop@amd.com>
1862
1863 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
1864 Instantiate scevs varying in outer loops.
1865 * testsuite/gfortran.dg/graphite/id-9.f: Correct testcase.
1866
18672009-07-14 Sebastian Pop <sebastian.pop@amd.com>
1868
1869 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
1870 redundant constraint.
1871
18722009-07-14 Sebastian Pop <sebastian.pop@amd.com>
1873
1874 * testsuite/gcc.dg/graphite/graphite.exp: Fix comments.
1875 * testsuite/gfortran.dg/graphite/graphite.exp: Trigger actions
1876 based on the file names as in the C testsuite.
1877 * testsuite/gfortran.dg/graphite/block-1.f90: Fix patterns.
1878 * testsuite/gfortran.dg/graphite/block-2.f: Same.
1879 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
1880 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
1881 * testsuite/gfortran.dg/graphite/id-1.f90: Same.
1882 * testsuite/gfortran.dg/graphite/id-2.f90: Same.
1883 * testsuite/gfortran.dg/graphite/id-3.f90: Same.
1884 * testsuite/gfortran.dg/graphite/id-4.f90: Same.
1885 * testsuite/gfortran.dg/graphite/id-6.f: Same.
1886 * testsuite/gfortran.dg/graphite/id-9.f: Same.
1887 * testsuite/gfortran.dg/graphite/interchange-1.f: Same.
1888 * testsuite/gfortran.dg/graphite/interchange-2.f: Same.
1889 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
1890
18912009-07-14 Sebastian Pop <sebastian.pop@amd.com>
1892
1893 * sese.c (expand_scalar_variables_call): New.
1894 (expand_scalar_variables_ssa_name): Handle calls in expander.
1895
18962009-07-13 Sebastian Pop <sebastian.pop@amd.com>
1897
1898 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
1899 Expect to see the pattern twice.
1900 * testsuite/gcc.dg/graphite/interchange-0.c: Un-XFAIL.
1901 * testsuite/gcc.dg/graphite/interchange-5.c: Same.
1902 * testsuite/gcc.dg/graphite/interchange-6.c: Same.
1903
19042009-07-13 Sebastian Pop <sebastian.pop@amd.com>
1905
1906 * testsuite/gcc.dg/graphite/id-10.c: New.
1907 * testsuite/gcc.dg/graphite/id-12.c: New.
1908 * testsuite/gfortran.dg/graphite/id-7.f: New.
1909 * testsuite/gfortran.dg/graphite/id-8.f: New.
1910
19112009-07-13 Sebastian Pop <sebastian.pop@amd.com>
1912
1913 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
1914 zero.
1915
19162009-07-13 Sebastian Pop <sebastian.pop@amd.com>
1917
1918 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
1919
19202009-07-13 Sebastian Pop <sebastian.pop@amd.com>
1921
1922 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
1923
19242009-07-10 Sebastian Pop <sebastian.pop@amd.com>
1925
1926 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
1927 building PDR subscripts.
1928
19292009-07-10 Sebastian Pop <sebastian.pop@amd.com>
1930
1931 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
1932 computation of array sizes.
1933
19342009-07-10 Sebastian Pop <sebastian.pop@amd.com>
1935
1936 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
1937
19382009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
1939
1940 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
1941 build_pairwise_constraint, dr_equality_constraints,
1942 build_pairwise_scheduling_equality,
1943 build_pairwise_scheduling_inequality, lexicographically_gt_p,
1944 build_lexicographically_gt_constraint, dependence_polyhedron,
1945 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
1946 Move from NNC_Polyhedron to C_Polyhedron.
1947 * graphite-interchange.c (compute_array_size_poly,
1948 gather_access_strides): Dito.
1949 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
1950 free_scop, pbb_number_of_iterations): Dito.
1951 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
1952 pbb_dim_iter_domain, struct scop): Dito.
1953 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
1954 new_Cloog_Domain_from_ppl_Polyhedron,
1955 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
1956 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
1957 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
1958 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
1959 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
1960 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
1961 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
1962 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
1963 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
1964 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
1965 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
1966 build_scop_iteration_domain, build_poly_dr): Dito
1967
19682009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1969
1970 * testsuite/gcc.dg/graphite/graphite.exp: Added a rule to execute
1971 run-id-*.c files.
1972 * testsuite/gcc.dg/graphite/run-id-1.c: New.
1973
19742009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1975
1976 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
1977 positivity constraint on the symbolic number of iterations.
1978
19792009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1980
1981 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
1982
19832009-07-09 Sebastian Pop <sebastian.pop@amd.com>
1984 Tobias Grosser <grosser@fim.uni-passau.de>
1985
1986 * graphite-clast-to-gimple.c (build_scop_context): Removed.
1987 (build_cloog_prog): Directly use SCOP_CONTEXT.
1988 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
1989 (free_scop): Free SCOP_CONTEXT.
1990 (print_scop_context): New.
1991 (print_scop): Call print_scop_context.
1992 (debug_scop_context): New.
1993 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
1994 (struct scop): Added field context.
1995 (SCOP_CONTEXT): New.
1996 * graphite-sese-to-poly.c (add_param_constraints): New.
1997 (build_scop_context): New.
1998 (build_poly_scop): Call build_scop_context.
1999
20002009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2001
2002 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
2003 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
2004 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
2005 * graphite-ppl.h: Include double-int.h and tree.h.
2006 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
2007 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
2008 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
2009 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
2010
20112009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2012
2013 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
2014 POINTER_PLUS_EXPR for pointer types.
2015 (clast_to_gcc_expression): Same.
2016
20172009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2018
2019 * graphite-poly.c (print_scattering_function): Early return when
2020 PBB_TRANSFORMED_SCATTERING is not initialized.
2021 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
2022
20232009-07-08 Sebastian Pop <sebastian.pop@amd.com>
2024
2025 * tree-parloops.c (analyze_reduction_list): Remove unused variable
2026 to fix bootstrap.
2027
20282009-07-08 Razya Ladelsky <razya@il.ibm.com>
2029
2030 * tree-parloops.c (analyze_reduction_list): Change return
2031 value to void.
2032 (try_create_reduction_list): Move the call to
2033 analyze_reduction_list to the beginining.
2034 Call reduction_phi with analyzed_reductions as argument
2035 instead of reduction_list.
2036
20372009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
2038
2039 * Merge from mainline (r148296:149346)
2040
20412009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2042
2043 * graphite-scop-detection.c (graphite_can_represent_init): New.
2044 (graphite_can_represent_scev): Call graphite_can_represent_init:
2045 check that the initial value does not contain multiplications of
2046 parameters.
2047 (stmt_has_simple_data_refs_p): New.
2048 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
2049 (is_simple_operand): Fix formatting.
2050 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
2051
20522009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2053
2054 * testsuite/gcc.dg/graphite/id-13.c: New.
2055 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
2056 analyze_scalar_evolution, use scalar_evolution_in_region.
2057 (scan_tree_for_params_right_scev): Add extra assert.
2058 (parameter_index_in_region_1): Split from parameter_index_in_region.
2059 (idx_record_params): Use scalar_evolution_in_region.
2060 (find_params_in_bb): Same.
2061 (find_scop_parameters): Same.
2062 (build_loop_iteration_domains): Same.
2063 (create_linear_expr_from_tree): Same.
2064 * sese.c (scalar_evolution_in_region): New.
2065 * sese.h (scalar_evolution_in_region): Declared.
2066 (defined_in_sese_p): New.
2067 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
2068 static anymore.
2069 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
2070 Declared.
2071
20722009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2073
2074 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
2075 TREE_DATA_REF_H also implies SCEV_H.
2076
20772009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2078
2079 * graphite-poly.c (print_scop_params): New.
2080 (print_scop): Call print_scop_params.
2081 (debug_scop_params): New.
2082 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
2083
20842009-07-07 Li Feng <nemokingdom@gmail.com>
2085
2086 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
2087 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
2088 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
2089 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
2090 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
2091 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
2092
20932009-07-07 Li Feng <nemokingdom@gmail.com>
2094
2095 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
2096 for dependency checking part.
2097 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
2098 tests for dependency checking.
2099 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2100 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2101 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
2102 flag -fdump-tree-graphite-all for autopar testsuites.
2103
21042009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2105
2106 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
2107 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
2108 canonicalize_loop_ivs): Moved...
2109 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
2110
21112009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2112
2113 * tree-parloops.c (try_create_reduction_list): Pass an extra
2114 argument analyzed_reductions. Call analyze_reduction_list.
2115 (gen_parallel_loop): Do not call analyze_reduction_list.
2116 (parallelize_loops): Init and finalize analyzed_reductions.
2117
21182009-07-06 Li Feng <nemokingdom@gmail.com>
2119
2120 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2121 Added flag -fno-loop-strip-mine for autopar testcase.
2122
21232009-07-04 Li Feng <nemokingdom@gmail.com>
2124
2125 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
2126 transformed scattering dimension instead of unmatch orignal when
2127 calling dependence_polyhedron.
2128
21292009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2130
2131 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
2132
21332009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2134
2135 * graphite-poly.c (pbb_number_of_iterations): Check for returned
2136 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
2137
21382009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2139
2140 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
2141 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
2142 * graphite-poly.c (pbb_number_of_iterations): New.
2143 * graphite-poly.h (pbb_number_of_iterations): Declared.
2144 (pbb_iterator_dim, pbb_parameter_dim): New.
2145
21462009-06-29 Sebastian Pop <sebastian.pop@amd.com>
2147
2148 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
2149 last commit on type of lower and upper bound of loops.
2150
21512009-06-29 Li Feng <nemokingdom@gmail.com>
2152
2153 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
2154 graphite-dependences.h.
2155 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
2156 (mark_bb_with_pbb): New.
2157 (get_stmtfor_depth): New.
2158 (find_pbb_via_hash): New.
2159 (dependency_in_loop_p): New.
2160 (mark_loops_parallel): New.
2161 (free_aux_in_new_loops): New.
2162 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
2163 bb with it's relevant pbb. Mark newly created loops. Remove mark
2164 innermost loop parallel without checking.
2165 (gloog): Add parameter BB_PBB_MAPPING.
2166 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
2167 (gloog): Change declaration.
2168 (mark_loop_parallel): Make extern.
2169 (free_aux_in_new_loops): Declare.
2170 (bb_pbb_map_hash): New.
2171 (eq_bb_pbb_map): New.
2172 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
2173 auto parallelization when flag_graphite_force_parallel is set.
2174 (graphite_finalize): Added free_aux_in_new_loops.
2175 * tree-parloops.c (parallelize_loops): Only generate parallel code for
2176 the innermost loop that marked parallel. Use
2177 flag_graphite_force_parallel instead of loop->can_be_parallel.
2178 (loop_parallel_p): Move inner most checking out of function.
2179
21802009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2181
2182 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
2183 type of lower and upper bound of loops signed long int.
2184
21852009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2186
2187 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
2188 expression outside the loop.
2189
21902009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2191
2192 * gcc.dg/graphite/interchange-8.c: New.
2193
21942009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2195
2196 * gcc.dg/graphite/interchange-0.c: XFailed.
2197 * gcc.dg/graphite/interchange-5.c: XFailed.
2198 * gcc.dg/graphite/interchange-6.c: XFailed.
2199
22002009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2201
2202 * graphite-interchange.c (compute_array_size_poly): The end of the
2203 recursion should return 1.
2204
22052009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2206
2207 * graphite-interchange.c (compute_array_size_cstr): Allow the
2208 subscript multiplier to be -1.
2209 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
2210 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
2211 data_container. Initializes PDR_DATA_CONTAINER.
2212 (print_pdr_access_layout): New.
2213 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
2214 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
2215 data_container.
2216 (PDR_DATA_CONTAINER): New.
2217 (new_poly_dr): Update declaration.
2218 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
2219 (build_poly_dr): Call pdr_add_data_dimensions.
2220
22212009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2222
2223 * graphite-poly.h (struct poly_dr): Fix comment.
2224 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
2225 (pdr_add_memory_accesses): New.
2226 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
2227
22282009-06-26 Sebastian Pop <sebastian.pop@amd.com>
2229
2230 * graphite-poly.c (print_pdrs, debug_pdrs): New.
2231 (print_pbb): Add call to print_pdrs.
2232 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
2233
22342009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2235 Li Feng <nemokingdom@gmail.com>
2236
2237 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
2238 (dependency_between_pbbs_p): New.
2239 (lexicographically_gt_p): Assure !empty_p before polyhedron
2240 intersection assign.
2241 (build_lexicographically_gt_constraint): Correct lexicographically
2242 judging.
2243 * graphite-dependences.h: New.
2244 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
2245
22462009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2247
2248 * graphite-clast-to-gimple.c (print_clast_stmt): New.
2249 (gloog): Print to dump_file the generated clast.
2250 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
2251 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
2252
22532009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2254
2255 * graphite-poly.c (extend_scattering): Increment
2256 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
2257
22582009-06-24 Sebastian Pop <sebastian.pop@amd.com>
2259
2260 * graphite-interchange.c (compute_array_size_poly): Added exit of
2261 recursion condition. Continue iterating even after the first equality.
2262 (compute_array_size): Same.
2263
22642009-06-24 Li Feng <nemokingdom@gmail.com>
2265
2266 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
2267 -fdump-tree-final_cleanup to -fdump-tree-optimized.
2268 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2269 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2270 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
2271
22722009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2273
2274 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
2275 only when the use verifies is_gimple_reg.
2276
22772009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2278
2279 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
2280 Allocate scaldims after call to unify_scattering_dimensions.
2281
22822009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2283
2284 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
2285
22862009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2287 Albert Cohen <albert.cohen@inria.fr>
2288
2289 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
2290 variables for the strip mining.
2291
22922009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2293 Pranav Garg <pranav.garg2107@gmail.com>
2294
2295 * Makefile.in (OBJS-common): Added graphite-blocking.o.
2296 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
2297 (graphite-blocking.o): New rule.
2298 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
2299 * graphite-blocking.c: New.
2300 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
2301 flag_loop_strip_mine.
2302 (psct_scattering_dim_for_loop_depth): New.
2303 * graphite-poly.h (scop_do_strip_mine): Declared.
2304 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
2305 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
2306 flag_loop_strip_mine.
2307
23082009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2309
2310 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
2311 a GMP value and a PPL coefficient at each iteration of a loop.
2312
23132009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2314
2315 * graphite-dependences.c (dependence_polyhedron): Do not use
2316 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
2317 pbb_nb_scattering_transform.
2318 (graphite_legal_transform_dr): Same.
2319 * graphite-poly.c (extend_scattering): Same.
2320 (unify_scattering_dimensions): Same.
2321 (print_scattering_function): Same.
2322 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
2323 PBB_NB_LOCAL_VARIABLES.
2324 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
2325 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
2326 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
2327 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
2328 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
2329 (pbb_nb_scattering_transform): New.
2330 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
2331 (psco_scattering_dim): Add assert on parameters.
2332 (psct_scattering_dim): Same.
2333 (psct_scattering_dim_for_loop_depth): Declared.
2334 (psct_local_var_dim): New.
2335 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
2336 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
2337 correct layout, call pbb_nb_local_vars.
2338 (psct_add_local_variable, psct_add_scattering_dimension): New.
2339 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2340 Initialize PBB_NB_SCATTERING_TRANSFORM.
2341
23422009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2343
2344 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
2345 (set_coef): Renamed ppl_set_coef.
2346 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
2347
23482009-06-23 Sebastian Pop <sebastian.pop@amd.com>
2349
2350 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
2351 test a boolean against 1.
2352 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
2353 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
2354 (pbb_do_interchange): Returns true when a transform has been performed.
2355 (scop_do_interchange): Same.
2356 * graphite-poly.c (apply_poly_transforms): Use the return value of
2357 scop_do_interchange.
2358 * graphite-poly.h (scop_do_interchange): Update declaration.
2359
23602009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
2361
2362 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
2363 after last use.
2364 * sese.c (sese_reset_aux_in_loops): New.
2365 * sese.h (sese_reset_aux_in_loops): New.
2366
23672009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2368
2369 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
2370 multiplier and multiply the constant by the multiplier.
2371 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
2372 (build_poly_dr): Do not use the multiplier to define the subscript.
2373
23742009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2375
2376 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
2377 compiler's data reference. Initialize PDR_CDR.
2378 (print_pdr): Call dump_data_reference.
2379 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
2380 Add compiler_dr field.
2381 (PDR_BB): Renamed PDR_PBB.
2382 (PDR_CDR): New.
2383 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
2384 GCC's data reference representation.
2385 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
2386 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
2387
23882009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2389
2390 * graphite-poly.c (print_scattering_function): Also print the layout.
2391 * graphite-poly.h (pbb_nb_local_vars): New.
2392
23932009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2394
2395 * graphite-poly.c (print_pbb_domain): Also print the layout names.
2396
23972009-06-19 Sebastian Pop <sebastian.pop@amd.com>
2398
2399 * graphite-poly.c (print_pdr, debug_pdr): New.
2400 * graphite-poly.h (print_pdr, debug_pdr): Declared.
2401 (PDR_BASE): Removed.
2402
24032009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2404
2405 * gcc/testsuite/gcc.dg/graphite/interchange-{1..7}.c: New avatars of
2406 ltrans-{1..6,8}.c.
2407
24082009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2409
2410 * graphite-interchange.c (compute_subscript): Allow also -1 in the
2411 subscript identification column.
2412 (pbb_do_interchange): Print to dump_file that some loops "will be
2413 interchanged". Rely on that chain of characters in the testcases.
2414 * gcc.dg/graphite/interchange-0.c: New.
2415 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
2416 interchange-*.c files and compile them with -floop-interchange.
2417
24182009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
2419
2420 * graphite-interchange.c (interchange_profitable_p): Renamed
2421 pbb_interchange_profitable_p.
2422
24232009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2424 Harsha Jagasia <harsha.jagasia@amd.com>
2425 Pranav Garg <pranav.garg2107@gmail.com>
2426
2427 * graphite-interchange.c (interchange_profitable_p): Make static.
2428 (pbb_interchange_loop_depths, pbb_do_interchange,
2429 scop_do_interchange): New.
2430 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
2431 for flag_loop_interchange.
2432 * graphite-poly.h (scop_do_interchange): Declared.
2433 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
2434 flag_loop_interchange is used.
2435
24362009-06-18 Sebastian Pop <sebastian.pop@amd.com>
2437
2438 * graphite-dependences.c (dependence_polyhedron): Update use of
2439 pbb_nb_scattering_dims.
2440 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
2441 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
2442 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
2443 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
2444
24452009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2446
2447 * graphite.c: Cleanup foo.
2448
24492009-06-16 Sebastian Pop <sebastian.pop@amd.com>
2450
2451 * Merge from mainline (r143684:148293).
2452 * Disabled libpcp until it gets fixed.
2453
24542009-06-05 Sebastian Pop <sebastian.pop@amd.com>
2455 Harsha Jagasia <harsha.jagasia@amd.com>
2456
2457 * graphite-interchange.c: New.
2458 * Makefile.in (graphite-interchange.o): New.
2459 * graphite-poly.h (interchange_profitable_p): Declared.
2460 * graphite-ppl.h (value_max): New.
2461
24622009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2463
2464 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
2465 * graphite-poly.h: Fix some comments.
2466 (pdr_dim): New.
2467 (pdr_scop): New.
2468
24692009-06-04 Sebastian Pop <sebastian.pop@amd.com>
2470
2471 * graphite-poly.h
2472 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
2473 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
2474 (pdr_accessp_nb_params): Renamed pdr_nb_params.
2475 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
2476 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
2477 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
2478 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
2479 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
2480 * graphite-clast-to-gimple.c: Same.
2481 * graphite-dependences.c: Same.
2482 * graphite-poly.c: Same.
2483 * graphite-sese-to-poly.c: Same.
2484
24852009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2486
2487 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
2488 expressions for an IV rename, as returned by clast_to_gcc_expression.
2489 (copy_renames): Rename new_name to expr.
2490 * sese.c (debug_rename_elt): Same.
2491 (get_rename): Same.
2492 (set_rename): Same.
2493 (sese_adjust_liveout_phis): Call force_gimple_operand before using
2494 the information from the rename map.
2495 (rename_variables_in_stmt): Same.
2496 (add_loop_exit_phis): Rename new_name to expr.
2497 (insert_loop_close_phis): Same.
2498 (add_guard_exit_phis): Same. Call force_gimple_operand.
2499 * sese.h (struct rename_map_elt): Rename new_name to expr.
2500 (new_rename_map_elt): Same.
2501
25022009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2503
2504 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
2505 * sese.c (set_rename): Make it extern.
2506 * sese.h (set_rename): Declared.
2507
25082009-06-03 Sebastian Pop <sebastian.pop@amd.com>
2509
2510 * graphite-poly.c (extend_scattering): Free values.
2511 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
2512 Free iterators.
2513 (ppl_print_powerset_matrix): Same.
2514 * graphite-scop-detection.c (free_scops_1): New.
2515 (limit_scops): Call free_scops_1.
2516 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
2517 (build_poly_dr): Free PPL coefficients.
2518 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
2519
25202009-06-02 Sebastian Pop <sebastian.pop@amd.com>
2521
2522 * graphite-dependences.c: New.
2523 * graphite-data-ref.c: Removed.
2524 * graphite-data-ref.h: Removed.
2525 * Makefile.in (graphite-data-ref.o): Removed.
2526 (graphite-dependences.o): Added.
2527 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
2528 * graphite-poly.c: Same.
2529 Move the data dependence testing to graphite-dependences.c.
2530
25312009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
2532
2533 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
2534 from graphite_cannot_represent_loop. Code refactored.
2535 (scopdet_basic_block_info): Call graphite_can_represent_loop.
2536
25372009-05-17 Li Feng <nemokingdom@gmail.com>
2538
2539 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2540 Cover all the testcases (not only the filtered ones).
2541
25422009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
2543
2544 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
2545 unnecessary check. Update comments. Move check for REAL_TYPE here.
2546 (harmful_stmt_in_bb): Remove checks for conditions. This is already
2547 done in (stmt_simple_for_scop_p).
2548
25492009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
2550
2551 * graphite.c (print_global_statistics): New.
2552 (print_graphite_scop_statistic): New.
2553 (print_graphite_statistics): New.
2554 (graphite_initialize, graphite_transform_loops): Print statistics.
2555 * graphite-scop-detection (build_scops): Print statistics.
2556 (print_graphite_scop_statistics): New.
2557 (print_graphite_statistics): New.
2558
25592009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2560
2561 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
2562 (debug_clast_name_index): Removed.
2563 (debug_clast_name_indexes_1): Removed.
2564 (debug_clast_name_indexes): Removed.
2565 (clast_name_index_elt_info): Removed.
2566 (eq_clast_name_indexes): Removed.
2567 (clast_name_to_index): Removed.
2568 (new_clast_name_index): Removed.
2569 (save_clast_name_index): Removed.
2570 (save_var_name): Moved...
2571 (init_sese_params_index): Removed.
2572 (clast_name_to_gcc): Remove use of name_tree.
2573 (initialize_cloog_names): Same.
2574 (gloog): Do not call init_sese_params_index.
2575 * graphite-sese-to-poly.c (save_var_name): ...here.
2576 (parameter_index_in_region): New.
2577 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
2578 (parameter_index_in_region): Removed.
2579 (is_parameter): Remove use of name_tree.
2580 * sese.h (struct name_tree): Removed.
2581 (struct sese): Remove use of name_tree. New field params_names.
2582 (SESE_PARAMS_NAMES): New.
2583 (SESE_PARAMS): Remove duplicate.
2584 (parameter_index_in_region): Removed.
2585 (sese_nb_params): Remove use of name_tree.
2586 (struct clast_name_index): New.
2587 (new_clast_name_index): New.
2588 (clast_name_to_index): New.
2589 (save_clast_name_index): New.
2590 (debug_clast_name_index): New.
2591 (debug_clast_name_indexes_1): New.
2592 (debug_clast_name_indexes): New.
2593 (clast_name_index_elt_info): New.
2594 (eq_clast_name_indexes): New.
2595
25962009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2597
2598 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
2599 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
2600 (graphite_loop_normal_form): Do not pass region. Do not
2601 initialize SESE_OLDIVS.
2602 (build_graphite_loop_normal_form): Update call to
2603 graphite_loop_normal_form.
2604 * sese.c (debug_oldivs): Removed.
2605 (new_sese): Do not initialize SESE_OLDIVS.
2606 (free_sese): Do not free SESE_OLDIVS.
2607 (oldiv_for_loop): Removed.
2608 * sese.h (struct sese): Remove old_ivs.
2609 (SESE_OLDIVS): Removed.
2610 (oldiv_for_loop): Removed.
2611
26122009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2613
2614 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
2615 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
2616 replaced by a call to newivs_to_depth_to_newiv.
2617 (clast_to_gcc_expression): Pass newivs, remove ivstack.
2618 (clast_to_gcc_expression_red): Same.
2619 (gcc_type_for_clast_expr): Same.
2620 (gcc_type_for_clast_eq): Same.
2621 (graphite_translate_clast_equation): Same.
2622 (graphite_create_guard_cond_expr): Same.
2623 (graphite_create_new_guard): Same.
2624 (graphite_create_new_loop): Same.
2625 (build_iv_mapping): Same.
2626 (translate_clast): Same.
2627 (gloog): Same.
2628 (loop_iv_stack_patch_for_consts): Removed. *
2629 sese.c (iv_stack_entry_is_constant): Removed.
2630 (iv_stack_entry_is_iv): Removed.
2631 (loop_iv_stack_push_iv): Removed.
2632 (loop_iv_stack_insert_constant): Removed.
2633 (loop_iv_stack_pop): Removed.
2634 (loop_iv_stack_get_iv): Removed.
2635 (loop_iv_stack_get_iv_from_name): Removed.
2636 (debug_loop_iv_stack): Removed.
2637 (free_loop_iv_stack): Removed.
2638 (loop_iv_stack_remove_constants): Removed. *
2639 sese.h (iv_stack_entry_kind): Removed.
2640 (iv_stack_entry_data_union): Removed.
2641 (iv_stack_entry_struct): Removed.
2642 (iv_stack_entry_p): Removed.
2643 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
2644 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
2645 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
2646 loop_iv_stack_pop, free_loop_iv_stack): Removed.
2647 (gbb_loop_at_index): Fix indenting.
2648 (gbb_loop_index): Removed.
2649
26502009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2651
2652 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
2653 Call clast_name_to_index.
2654
26552009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2656
2657 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
2658 do not pass params. Get params from SESE_PARAMS.
2659 (clast_to_gcc_expression): Same.
2660 (clast_to_gcc_expression_red): Same.
2661 (gcc_type_for_clast_eq): Same.
2662 (graphite_translate_clast_equation): Same.
2663 (graphite_create_new_loop): Same.
2664 * sese.c (rename_variables_in_stmt): Fix comment.
2665
26662009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2667
2668 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
2669 newivs_index.
2670 Call save_clast_name_index.
2671 (translate_clast): Pass newivs_index.
2672 (gloog): Create and free newivs_index.
2673
26742009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2675
2676 * graphite-clast-to-gimple.c (clast_name_index): New structure.
2677 (clast_name_index_p): New type.
2678 (debug_clast_name_index): New.
2679 (debug_clast_name_indexes_1): New.
2680 (debug_clast_name_indexes): New.
2681 (clast_name_index_elt_info): New.
2682 (eq_clast_name_indexes): New.
2683 (clast_name_to_index): New.
2684 (new_clast_name_index): New.
2685 (save_clast_name_index): New.
2686 (init_sese_params_index): New.
2687 (gloog): Call init_sese_params_index.
2688 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
2689 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
2690 (free_sese): Free SESE_PARAMS_INDEX.
2691 * sese.h (struct sese): Add params_index.
2692 (SESE_PARAMS_INDEX): New.
2693
26942009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2695
2696 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
2697 (graphite_create_new_loop): Pass the newivs vector. Push the
2698 newly created IV to newivs.
2699 (translate_clast): Pass the newivs vector.
2700 (gloog): Create and destroy the newivs vector.
2701
27022009-05-13 Sebastian Pop <sebastian.pop@amd.com>
2703
2704 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
2705 (graphite_loop_normal_form): Initialize loop->aux with the unique
2706 IV that has been created.
2707
27082009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
2709
2710 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
2711 scev with parameters in the base part. They where forbidden
2712 exidently.
2713
27142009-05-11 Li Feng <nemokingdom@gmail.com>
2715
2716 * testsuite/gcc.dg/graphite/graphite.exp: Set different default
2717 compile options by file names.
2718 * testsuite/gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
2719 * testsuite/gcc.dg/graphite/id-{1-9}.c: Ditto.
2720 * testsuite/gcc.dg/graphite/scop-{0-20}.c: Ditto.
2721 * testsuite/gcc.dg/graphite/scop-matmult.c: Ditto.
2722
27232009-05-08 Li Feng <nemokingdom@gmail.com>
2724
2725 * testsuite/gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
2726 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
2727 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
2728 * testsuite/gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
2729
27302009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
2731
2732 * graphite-scop-detection (build_scops_1): Fix little bug introduced
2733 by final cleanup.
2734
27352009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
2736
2737 * graphite-scop-detection.c (graphite_can_represent_scev): Only
2738 allow integer constant strides.
2739 (graphite_can_represent_expr): Depend on outermost_loop.
2740 (stmt_simple_memref_p, graphite_cannot_represent_loop,
2741 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
2742 build_scops_1): Same.
2743 (scopdet_basic_block_info): Same and insert layered SCoP
2744 detection.
2745 (try_generate_gimple_bb): Cleanup.
2746 (build_scops): Enable data references.
2747
2748 * testsuite/gcc.dg/graphite/id-5.c: New.
2749 * testsuite/gcc.dg/graphite/id-9.c: New.
2750 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
2751 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
2752
27532009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
2754
2755 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
2756 that we have not yet built for this SCoP.
2757
27582009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
2759
2760 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
2761 for complex numbers.
2762
27632009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
2764
2765 * graphite-ppl.c: Fix build if cloog is not available.
2766
27672009-05-04 Li Feng <nemokingdom@gmail.com>
2768
2769 * tree-parloops.c (loop_parallel_p): Remove construction of
2770 NITER and REDUCTION_LIST.
2771 (try_get_loop_niter): New.
2772 (try_create_reduction_list): New.
2773 (parallelize_loops): Bypass the failed checkings in autopar
2774 when can_be_parallel in loop structure is set to true.
2775
27762009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
2777
2778 * testsuite/gcc.dg/graphite/id-6.c: Update testcase.
2779 * testsuite/gcc.dg/graphite/scop-3.c: Dito.
2780
27812009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
2782
2783 * graphite-scop-detection.c (stmt_simple_for_scop_p):
2784 Enable EQ_EXPR and NE_EXPR again.
2785
27862009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
2787
2788 * graphite-scop-detection.c (graphite_can_represent_scev):
2789 Add check if scev is affine multivariate.
2790 (harmful_stmt_in_bb): Check if we can represent the conditions.
2791 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
2792 harmful_stmt_in_bb.
2793 * testsuite/gcc.dg/graphite/id-7.c: New.
2794
27952009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
2796
2797 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
2798 Check all bbs in region, not only the bbs that are represented in
2799 GRAPHITE.
2800 (build_poly_scop): Add newline.
2801 * testsuite/gcc.dg/graphite/id-8.c: New.
2802
28032009-04-30 Li Feng <nemokingdom@gmail.com>
2804
2805 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
2806 when loop initialize.
2807 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
2808 * common.opt: Declare flag_graphite_force_parallel.
2809 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
2810 loop parallel.
2811 * graphite-poly.c (apply_poly_transforms): Introduce
2812 flag_graphite_force_parallel.
2813 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
2814 * toplev.c (process_options): ditto and replace a not correctly
2815 encoded space.
2816
28172009-04-30 Li Feng <nemokingdom@gmail.com>
2818
2819 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
2820 Change the call of gbb_loop_at_index and/or gbb_loop_index due
2821 to the redefinition.
2822 (compute_cloog_iv_types_1): ditto.
2823 (build_iv_mapping): ditto.
2824 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
2825 initialization.
2826 (free_gimple_bb): Removed GBB_LOOPS related free part.
2827 (build_bb_loops): Removed.
2828 * sese.h (struct gimple_bb): Removed loops.
2829 (GBB_LOOPS): Removed.
2830 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
2831 (gbb_loop_index): ditto.
2832
28332009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
2834
2835 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
2836 allow non constant strides.
2837 * testsuite/gcc.dg/graphite/scop-20.c: New.
2838
28392009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2840
2841 * graphite-scop-detection.c (dot_all_scops): Fix system call
2842 return value warning.
2843 (dot_scop): Same.
2844
28452009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2846
2847 * testsuite/gcc.dg/graphite/id-6.c: Fix pattern.
2848 * testsuite/gcc.dg/graphite/scop-3.c: Same.
2849
28502009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2851
2852 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
2853 build_pairwise_constraint, dr_equality_constraints,
2854 build_pairwise_scheduling_equality,
2855 build_pairwise_scheduling_inequality, lexicographically_gt_p,
2856 build_lexicographically_gt_constraint, dependence_polyhedron,
2857 graphite_legal_transform_dr, graphite_legal_transform_bb,
2858 graphite_legal_transform): New.
2859 * graphite-poly.h (graphite_legal_transform): Declared.
2860 * graphite-sese-to-poly.c (build_poly_scop): Call to
2861 graphite_legal_transform is disabled for the moment.
2862
28632009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2864
2865 * graphite-poly.h (pbb_nb_scattering_dims): New.
2866 (pbb_nb_scattering): Use it.
2867
28682009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2869
2870 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
2871 Pointset_Powerset version of ppl_insert_dimensions.
2872 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
2873
28742009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2875
2876 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
2877
28782009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2879
2880 * graphite-poly.h: Fix comment.
2881
28822009-04-24 Sebastian Pop <sebastian.pop@amd.com>
2883
2884 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
2885
28862009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
2887
2888 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
2889 statements.
2890
28912009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
2892
2893 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
2894 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
2895 conditions.
2896
28972009-04-20 Sebastian Pop <sebastian.pop@amd.com>
2898
2899 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
2900 handle EQ_EXPR and NE_EXPR.
2901
29022009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
2903
2904 * graphite-poly.h (poly_dr): Fix comment.
2905
29062009-04-09 Sebastian Pop <sebastian.pop@amd.com>
2907 Tobias Grosser <grosser@fim.uni-passau.de>
2908
2909 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
2910 with a zero dimension polyhedron.
2911 (find_scop_parameters): Move the call to scop_set_nb_params here.
2912 (build_loop_iteration_domains): Store in loop->aux the iteration
2913 domain polyhedron.
2914 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
2915 by any loop in scop.
2916 (build_poly_scop): Do not call scop_set_nb_params.
2917
29182009-04-09 Sebastian Pop <sebastian.pop@amd.com>
2919 Tobias Grosser <grosser@fim.uni-passau.de>
2920
2921 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
2922 add_condition_to_domain not GT_EXPR.
2923
29242009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
2925
2926 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
2927 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
2928 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
2929 upper_bound_assign to calculate unions.
2930 * testsuite/gcc.dg/graphite/id-6.c: New.
2931
29322009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
2933
2934 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
2935 handle abnormal edges.
2936
29372009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
2938
2939 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
2940 (free_poly_bb): Also free poly_drs.
2941 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
2942 (poly_dr): Polyhedron to Pointset_Powerset.
2943 (pdr_accessp_nb_subscripts): Same.
2944 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
2945 poly_drs.
2946
29472009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2948
2949 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
2950 names into more meaningful names.
2951
29522009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2953
2954 * testsuite/gfortran.dg/graphite/interchange-1.c: New.
2955 * testsuite/gfortran.dg/graphite/interchange-2.c: New.
2956
29572009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2958
2959 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
2960 the reduction_list.
2961 * tree-parloops.c (rewrite_phi_with_iv): New.
2962 (rewrite_all_phi_nodes_with_iv): New.
2963 (canonicalize_loop_ivs): Call them.
2964
29652009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2966
2967 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
2968 graphite_find_data_references_in_stmt.
2969 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
2970 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
2971
29722009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2973
2974 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
2975
29762009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2977
2978 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
2979 instead of bb_in_region.
2980 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
2981 (build_sese_conditions): Use flag_bb_in_sese.
2982 * sese.c (register_bb_in_sese): Removed.
2983 (new_sese): Remove initialization of SESE_REGION_BBS.
2984 (free_sese): Do not free SESE_REGION_BBS.
2985 * sese.h (struct sese): Remove field region_basic_blocks.
2986 (SESE_REGION_BBS): Removed.
2987 (bb_in_sese_p): Implement in function of bb_in_region.
2988
29892009-04-08 Sebastian Pop <sebastian.pop@amd.com>
2990
2991 * graphite-scop-detection.c (limit_scops): Deal only with single exit
2992 loops.
2993
29942009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
2995
2996 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
2997 and EQ_EXPR.
2998 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
2999 (add_condition_to_domain): New.
3000 (add_condition_to_pbb): New.
3001 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
3002 * testsuite/gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
3003
30042009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3005
3006 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
3007 ppl_Pointset_Powerset.
3008 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
3009 * graphite-poly.h (poly_bb): poly_bb.domain Same.
3010 (pbb_nb_loops): Same.
3011 * graphite-sese-to-poly.c (build_loop_iteration_domains,
3012 add_conditions_to_domain): Same.
3013 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3014 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
3015 ppl_const_Polyhedron_t.
3016 (ppl_print_powerset_matrix): New.
3017 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
3018 ppl_print_powerset_matrix): New.
3019 (ppl_print_polyhedron_matrix): Updated.
3020
30212009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3022
3023 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
3024
30252009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3026
3027 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
3028 (print_iteration_domains, debug_iteration_domain,
3029 debug_iteration_domains): New.
3030 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
3031 debug_iteration_domains): Declared.
3032 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
3033 indenting.
3034
30352009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
3036 Sebastian Pop <sebastian.pop@amd.com>
3037
3038 * graphite-poly.h (print_iteration_domain): New.
3039 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
3040 (build_sese_conditions_1, build_sese_conditions_after,
3041 build_sese_conditions_before): New.
3042 (build_sese_conditions): Rewritten.
3043
30442009-04-03 Sebastian Pop <sebastian.pop@amd.com>
3045 Tobias Grosser <grosser@fim.uni-passau.de>
3046
3047 Cleanup of code generation liveouts.
3048 * graphite-clast-to-gimple.c (translate_clast): Use a single
3049 rename_map instead of one per translated statement.
3050 Do not use SESE_LIVEOUT_RENAMES.
3051 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
3052 (gloog): Do not use SESE_LIVEOUT_RENAMES.
3053 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
3054 phi node of a reduction: when a loop contains a reduction used outside
3055 the loop, there should be a scalar close phi node on the exit block.
3056 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
3057 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
3058 (free_sese): Do not free them.
3059 (sese_build_liveouts_use): Do not use them.
3060 (sese_build_liveouts_bb): Same.
3061 (sese_build_liveouts): Same.
3062 (sese_insert_phis_for_liveouts): Same.
3063 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
3064 (defined_in_loop_p): New.
3065 (alive_after_loop): New.
3066 (close_phi_not_yet_inserted_p): New.
3067 (struct alep, alep_p): New.
3068 (add_loop_exit_phis): Remove from the rename_map all the names defined
3069 in the code generated loop.
3070 (insert_loop_close_phis): Traverse the rename_map passed to it.
3071 Don't use SESE_LIVEOUT_RENAMES.
3072 (default_liveout_before_guard): Renamed default_before_guard.
3073 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
3074 (graphite_copy_stmts_from_block): Do not directly call set_rename.
3075 (register_sese_liveout_renames): Removed.
3076 (copy_bb_and_scalar_dependences): Do not call it.
3077 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
3078 reduction_list.
3079 (SESE_LIVEOUT): Removed.
3080 (SESE_LIVEOUT_RENAMES): Removed.
3081 (SESE_REDUCTION_LIST): Removed.
3082 (sese_build_liveouts): Removed.
3083 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
3084 (insert_loop_close_phis): Pass a htab_t instead of a sese.
3085 (insert_guard_phis): Same.
3086 (rename_map_elt): Declare a VEC of them.
3087 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
3088 trees not pointers to trees.
3089
3090 Rewrite in canonical close SSA form:
3091 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
3092 (limit_scops): Close the scop after the block containing the close phi
3093 nodes.
3094 (canonicalize_loop_closed_ssa): New.
3095 (canonicalize_loop_closed_ssa_form): New.
3096 (build_scops): Call canonicalize_loop_closed_ssa_form.
3097
3098 * graphite-sese-to-poly.c: Fix typos.
3099
31002009-04-03 Sebastian Pop <sebastian.pop@amd.com>
3101
3102 * graphite-poly.c (print_scattering_function, print_pbb_domain):
3103 Extended.
3104 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
3105 (print_pbb): Add conditions.
3106
31072009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
3108 Sebastian Pop <sebastian.pop@amd.com>
3109
3110 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
3111 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
3112 (build_scop_bbs_1): New.
3113 (build_scop_bbs): Rewrite.
3114 * sese.h (bb_in_region): New.
3115
31162009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3117
3118 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3119 poly_drs vector.
3120 (print_scop): Style.
3121 * graphite-poly.h (poly_bb): Add drs vector.
3122 (PBB_DRS): Add accessor.
3123 * graphite-sese-to-poly.c (build_poly_dr): New.
3124 (build_pbb_drs, build_scop_drs): New.
3125 (build_poly_scop): call build_scop_drs (Disabled at the moment).
3126
31272009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3128
3129 * tree-ssa-loop.c: Include forgotten toplev.h
3130
31312009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3132
3133 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
3134 * testsuite/gcc.dg/graphite/pr37883.c: Remove -floop-*
3135 * testsuite/gcc.dg/graphite/pr37928.c: Same
3136 * testsuite/gcc.dg/graphite/pr38409.c: Same
3137 * testsuite/gcc.dg/graphite/pr38498.c: Same
3138 * testsuite/gcc.dg/graphite/pr38559.c: Same
3139 * testsuite/gcc.dg/graphite/pr39335.c: Same
3140 * testsuite/gcc.dg/graphite/pr39335_1.c: Same
3141 * testsuite/gfortran.dg/graphite/block-2.f: Same
3142 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
3143 with -floop-*.
3144
31452009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
3146
3147 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
3148 build_access_matrix, build_scop_data_accesses): Remove access function
3149 building. (We get a new version soon).
3150 (build_bb_loops, scan_tree_for_params_right_scev): Update.
3151 * sese.h (nb_loops_around_loop_in_sese): Remove.
3152 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
3153
31542009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
3155 Sebastian Pop <sebastian.pop@amd.com>
3156
3157 * graphite-scop-detection.c (struct scopdet_info): Rename last
3158 field to exit.
3159 (scopdet_basic_block_info, build_scops_1): Don't use
3160 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
3161
31622009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
3163 Sebastian Pop <sebastian.pop@amd.com>
3164
3165 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
3166 * sese.c (sese_build_liveouts_use): Renamed from
3167 sese_build_livein_liveouts_use. Remove liveins.
3168 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
3169 Call sese_build_liveouts_use.
3170 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
3171 Call sese_build_liveouts_bb.
3172 (new_sese, free_sese): Remove liveins.
3173 (sese_add_exit_phis_var): Deleted.
3174 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
3175 directly.
3176 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
3177
3178 * sese.h (sese): Remove num_ver and livein.
3179 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
3180
31812009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
3182
3183 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
3184
31852009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
3186
3187 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
3188 (build_scop_scattering): Do not use compare_prefix_loops any more.
3189 (nb_common_loops): New.
3190
31912009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3192
3193 * sese.c (get_new_name_from_old_name): Renamed get_rename.
3194 (register_old_and_new_names): Renamed set_rename.
3195
31962009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3197
3198 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
3199 of the decl from the previous commit.
3200
32012009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3202
3203 * graphite-scop-detection.c (dot_scop): New.
3204 * graphite-scop-detection.h (dot_scop): Declared.
3205
32062009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3207
3208 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
3209
32102009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3211
3212 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
3213 condition at the end of the loop.
3214 * graphite.c (graphite_initialize, graphite_finalize): Print to
3215 dump_file the compiled function.
3216 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
3217 of create_empty_loop_on_edge.
3218 (translate_clast): Update the code generation of loops for the new
3219 shape of loops.
3220 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
3221
32222009-03-24 Sebastian Pop <sebastian.pop@amd.com>
3223
3224 Reverted the patch from 2009-03-19.
3225
32262009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
3227
3228 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3229 poly_drs vector.
3230 (print_scop): Style.
3231 * graphite-poly.h (poly_bb): Add drs vector.
3232 (PBB_DRS): Add accessor.
3233 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
3234 (build_access_matrix_with_af, build_access_matrix,
3235 build_scop_data_accesses): Delete.
3236 (build_poly_dr): New.
3237 (build_pbb_drs, build_scop_drs): New.
3238 (build_poly_scop): call build_scop_drs.
3239
32402009-03-13 Sebastian Pop <sebastian.pop@amd.com>
3241
3242 * graphite-scop-detection.c (dot_all_scops_1): Close the table
3243 once per basic block.
3244
32452009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
3246
3247 * graphite-scop-detection.c (graphite_can_represent_scev): New.
3248 (graphite_can_represent_expr): Renamed from loop_affine_expr
3249 and enhanced.
3250 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
3251 (graphite_cannot_represent_loop): Add scop_entry to parameters.
3252 (scopdet_basic_block_info): Actually define entry_block.
3253 (stmt_simple_memref_p): Moved here from ...
3254
3255 * tree-data-ref.c (stmt_simple_memref_p): here.
3256 * tree-data-ref.h (stmt_simple_memref_p): Removed.
3257
32582009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
3259
3260 * testsuite/gcc.dg/graphite/id-4.c: New.
3261
32622009-03-12 Sebastian Pop <sebastian.pop@amd.com>
3263
3264 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
3265 (register_old_and_new_names): Update the content of the map.
3266 When there was already a rename_map_elt in the map at that
3267 location, free it.
3268 (copy_bb_and_scalar_dependences): Do rename_variables after
3269 expand_scalar_variables.
3270 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3271 of the map. When there was already a rename_map_elt in the
3272 map at that location, free it.
3273 (translate_clast): Pass the rename_map. Do not initialize and free
3274 a rename_map per stmt_user.
3275 (gloog): Initialize and free one rename_map and pass it to
3276 translate_clast.
3277
32782009-03-12 Sebastian Pop <sebastian.pop@amd.com>
3279
3280 * sese.c (expand_scalar_variables_stmt,
3281 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
3282 parameter.
3283 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
3284 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
3285 the gimple_stmt_iterator of the statement to be expanded.
3286 * graphite-scop-detection.c (is_simple_operand): Do handle
3287 REALPART_EXPR.
3288
32892009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3290
3291 * graphite-scop-detection.c (is_simple_operand): Do not handle
3292 REALPART_EXPR.
3293 * testsuite/gcc.dg/graphite/id-2.c: New.
3294
3295 * graphite-sese-to-poly.c (build_bb_loops,
3296 add_value_to_dim, scan_tree_for_params_right_scev,
3297 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
3298 find_params_in_bb, build_loop_iteration_domains,
3299 add_conditions_to_domain): Remove subtract.
3300
33012009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3302
3303 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
3304 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
3305 pbb_loop_at_index -> gbb_loop_at_index.
3306 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
3307 (debug_loop_vec): Delete.
3308 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
3309 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
3310 (PBB_LOOPS): Removed.
3311 (PBB_BLACK_BOX): Insert cast.
3312 (pbb_set_black_box): New setter.
3313 (pbb_loop_at_index, pbb_loop_index): Removed.
3314 (scop_set_region, scop_set_nb_params): New.
3315 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
3316 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
3317 (build_poly_scop): Use scop_set_nb_params.
3318 * sese.h (gimple_bb): Add LOOPS.
3319 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
3320
33212009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3322
3323 Revert previous commit.
3324
33252009-03-11 Sebastian Pop <sebastian.pop@amd.com>
3326
3327 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
3328 (register_old_and_new_names): Update the content of the map.
3329 When there was already a rename_map_elt in the map at that
3330 location, free it.
3331 (copy_bb_and_scalar_dependences): Do rename_variables after
3332 expand_scalar_variables.
3333 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3334 of the map. When there was already a rename_map_elt in the
3335 map at that location, free it.
3336 (translate_clast): Pass the rename_map. Do not initialize and free
3337 a rename_map per stmt_user.
3338 (gloog): Initialize and free one rename_map and pass it to
3339 translate_clast.
3340
33412009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
3342
3343 Remove forgotten line in revert.
3344
33452009-03-11 Sebastian Pop <sebastian.pop@amd.com>
3346
3347 Revert previous commit.
3348
33492009-03-10 Sebastian Pop <sebastian.pop@amd.com>
3350
3351 * sese.c (register_old_and_new_names): Update the content
3352 of the map. When there was already a rename_map_elt in the
3353 map at that location, free it.
3354 (copy_bb_and_scalar_dependences): Do rename_variables after
3355 expand_scalar_variables.
3356 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
3357 of the map. When there was already a rename_map_elt in the
3358 map at that location, free it.
3359 (translate_clast): Pass the rename_map. Do not initialize and free
3360 a rename_map per stmt_user.
3361 (gloog): Initialize and free one rename_map and pass it to
3362 translate_clast.
3363
33642009-03-10 Sebastian Pop <sebastian.pop@amd.com>
3365
3366 * graphite-clast-to-gimple.c (translate_clast): context_loop
3367 is never NULL.
3368
33692009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
3370 Sebastian Pop <sebastian.pop@amd.com>
3371
3372 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
3373 of the use of ppl_Polyhedron_map_space_dimensions.
3374
33752009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
3376 Sebastian Pop <sebastian.pop@amd.com>
3377
3378 * graphite-poly.c (unify_scattering_dimensions): Fix types.
3379 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
3380 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
3381 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
3382 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
3383 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
3384 pbb_nb_params): New.
3385 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
3386 nb_loops_around_pbb): Adapt return types.
3387
33882009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
3389
3390 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
3391 graphite-clast-to-gimple.o, graphite-data-ref.o,
3392 graphite-scop-detection.o, graphite-poly.o): Add
3393 more headers.
3394
33952009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
3396
3397 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
3398 graphite-clast-to-gimple.o, graphite-data-ref.o,
3399 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
3400
34012009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
3402
3403 * testsuite/gcc.dg/graphite/pr37485.c: Remove -floop-block
3404 * testsuite/gcc.dg/graphite/pr37828.c: Same.
3405 * testsuite/gcc.dg/graphite/pr37684.c: Same.
3406 * testsuite/gcc.dg/graphite/block-0.c: Same.
3407 * testsuite/gcc.dg/graphite/block-1.c: Same.
3408 * testsuite/gcc.dg/graphite/block-2.c: Same.
3409 * testsuite/gcc.dg/graphite/block-3.c: Same.
3410 * testsuite/gcc.dg/graphite/block-4.c: Same.
3411 * testsuite/gcc.dg/graphite/block-5.c: Same.
3412 * testsuite/gcc.dg/graphite/block-6.c: Same.
3413 * testsuite/gfortran.dg/graphite/pr38083.f90: Same.
3414 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
3415 * testsuite/gfortran.dg/graphite/block-3.f90: Same.
3416 * testsuite/gfortran.dg/graphite/pr37852.f90: Same.
3417 * testsuite/gfortran.dg/graphite/block-4.f90: Same.
3418 * testsuite/gfortran.dg/graphite/pr37980.f90: Same.
3419 * testsuite/gfortran.dg/graphite/pr38953.f90: Same.
3420 * testsuite/gfortran.dg/graphite/pr37857.f90: Same.
3421 * opts.c: Remove -floop-block from -O2.
3422 * graphite-poly.c: Fail if -floop-block -floop-interchange or
3423 -floop-strip-mine are used.
3424
34252009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
3426 Sebastian Pop <sebastian.pop@amd.com>
3427
3428 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
3429 dimensions.
3430 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
3431 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
3432 strip_mine_profitable_p, is_interchange_valid,
3433 graphite_trans_bb_block, graphite_trans_loop_block,
3434 graphite_trans_scop_block): Temporary removed.
3435 (extend_scattering, unify_scattering_dimensions): New.
3436 (print_scattering_function, graphite_read_transforms):
3437 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3438 (graphite_generate_scattering_fns): Removed.
3439 (apply_poly_transforms): Cleanup.
3440 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3441 (schedule_to_scattering): Moved.
3442 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
3443 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
3444 (pbb_nb_scattering): New.
3445 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
3446 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
3447 Removed.
3448 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
3449 shift_poly.
3450 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
3451 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
3452 -> PBB_TRANSFORMED_SCATTERING.
3453 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
3454 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
3455 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
3456 (check_poly_representation): Do not return bool.
3457 (graphite_transform_loops): Reformat.
3458 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
3459
34602009-03-04 Sebastian Pop <sebastian.pop@amd.com>
3461
3462 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
3463 debug_pbb_domain, debug_pbb, debug_scop): New.
3464 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
3465 debug_pbb_domain, debug_pbb, debug_scop): Declared.
3466
34672009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3468
3469 PR middle-end/39335
3470 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
3471 when the type precision of the induction variable should be
3472 larger than the type precision of nit.
3473 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
3474 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
3475 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
3476
3477 * testsuite/gcc.dg/graphite/pr39335_1.c: New.
3478 * testsuite/gcc.dg/graphite/pr39335.c: New.
3479
34802009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3481
3482 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
3483 SSA_NAMES not struct reduction_info.
3484
34852009-03-02 Sebastian Pop <sebastian.pop@amd.com>
3486
3487 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
3488
34892009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3490 Tobias Grosser <grosser@fim.uni-passau.de>
3491
3492 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
3493 (free_sese): Free SESE_REDUCTION_LIST.
3494 * sese.h (struct sese): Add field reduction_list.
3495 (SESE_REDUCTION_LIST): New.
3496 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
3497 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
3498
34992009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3500 Tobias Grosser <grosser@fim.uni-passau.de>
3501
3502 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
3503 of loop_p.
3504
35052009-02-27 Sebastian Pop <sebastian.pop@amd.com>
3506 Tobias Grosser <grosser@fim.uni-passau.de>
3507
3508 * tree-parloops.c (struct brli, build_reduction_list_info,
3509 analyze_reduction_list, gather_scalar_reductions): New.
3510 (loop_parallel_p): Build a reduction list containing only
3511 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
3512 (gen_parallel_loop): Call the analysis analyze_reduction_list.
3513 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
3514 * tree-flow.h (gather_scalar_reductions): Declared.
3515
35162009-02-26 Sebastian Pop <sebastian.pop@amd.com>
3517
3518 PR middle-end/39308
3519 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
3520 number_of_iterations_exit from a gcc_assert.
3521
35222009-02-25 Sebastian Pop <sebastian.pop@amd.com>
3523 Jan Sjodin <jan.sjodin@amd.com>
3524
3525 * output.h (graphite_out_file, graphite_in_file): Declared.
3526 * toplev.c (graphite_out_file, graphite_in_file): New.
3527 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
3528 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
3529 Don't call schedule_to_scattering.
3530 * common.opt (fgraphite-write, fgraphite-read): New.
3531 * graphite-poly.c: Include output.h.
3532 (print_scattering_function, print_scattering_functions,
3533 debug_scattering_function, debug_scattering_functions,
3534 graphite_write_transforms, graphite_read_transforms,
3535 graphite_generate_scattering_fns): New.
3536 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
3537 Call graphite_generate_scattering_fns, graphite_write_transforms,
3538 graphite_read_transforms.
3539 (new_poly_bb): Initialize PBB_SCATTERING.
3540 (free_poly_bb): Free PBB_SCATTERING.
3541 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
3542 * graphite-poly.h (struct poly_bb): Add field scattering.
3543 (PBB_SCATTERING): New.
3544 (print_scattering_function, print_scattering_functions,
3545 debug_scattering_function, debug_scattering_functions): Declared.
3546 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
3547 GMP values, not integers!
3548 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
3549 ppl_read_polyhedron_matrix): New.
3550 * graphite-ppl.h (ppl_print_polyhedron_matrix,
3551 debug_ppl_polyhedron_matrix,
3552 ppl_read_polyhedron_matrix): Declared.
3553 * Makefile.in (graphite-poly.o): Depends on output.h.
3554
35552009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3556 Tobias Grosser <grosser@fim.uni-passau.de>
3557
3558 Revert this change:
3559 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
3560 scalar evolutions in the scop_entry->loop_father.
3561
35622009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3563 Tobias Grosser <grosser@fim.uni-passau.de>
3564
3565 * graphite.h (ref_nb_loops): Remove declaration.
3566 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
3567 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
3568 debug_gbb): Moved to sese.h.
3569 * sese.h: As said.
3570
35712009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3572 Tobias Grosser <grosser@fim.uni-passau.de>
3573
3574 * graphite-data-ref.[ch]: Disable.
3575
35762009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3577 Tobias Grosser <grosser@fim.uni-passau.de>
3578
3579 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
3580 scalar evolutions in the scop_entry->loop_father.
3581
35822009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3583
3584 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
3585 (graphite_cannot_represent_loop_niter): Renamed
3586 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
3587 (limit_scops): build_sese_loop_nests does not return a bool.
3588 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
3589 * sese.c (nb_reductions_in_loop): ... from here.
3590 (graphite_loop_normal_form): ... from here.
3591 (sese_record_loop): Does not fail, so does not return a bool.
3592 (build_sese_loop_nests): Same.
3593 * sese.h (build_sese_loop_nests): Update declaration.
3594 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
3595 (build_graphite_loop_normal_form): New.
3596 (gloog): Call build_graphite_loop_normal_form.
3597 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
3598 build_sese_loop_nests.
3599
3600 * testsuite/gcc.dg/graphite/id-1.c: New.
3601
36022009-02-23 Sebastian Pop <sebastian.pop@amd.com>
3603 Tobias Grosser <grosser@fim.uni-passau.de>
3604
3605 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
3606 The SCoP detection fix is sufficient.
3607
36082009-02-21 Sebastian Pop <sebastian.pop@amd.com>
3609
3610 PR tree-optimization/39260
3611 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
3612 the basic block contains a condition with a real type.
3613 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
3614
3615 * gcc.dg/graphite/pr39260.c: New.
3616
36172009-02-21 Sebastian Pop <sebastian.pop@amd.com>
3618
3619 * graphite-poly.c: Inlcude params.h.
3620 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
3621 the size of a tile.
3622 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
3623 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
3624
36252009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3626 Tobias Grosser <grosser@fim.uni-passau.de>
3627
3628 * graphite-scop-detection.c (dot_all_scops_1,
3629 dot_all_scops): Moved here.
3630 * graphite-scop-detection.h (dot_all_scops): Declared here.
3631 * graphite.c (graphite_initialize, graphite_finalize): New.
3632 (graphite_transform_loops): Cleaned up.
3633 * sese.c (debug_oldivs): Moved here.
3634 * graphite-poly.c (graphite_apply_transformations): Renamed
3635 apply_poly_transforms.
3636 (debug_loop_vec): Moved here.
3637 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
3638 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
3639 find_scop_parameters, build_scop_iteration_domain,
3640 add_conditions_to_constraints, build_scop_canonical_schedules,
3641 build_scop_data_accesses): Now static.
3642 (build_poly_scop, check_poly_representation): New.
3643
36442009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3645
3646 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
3647 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
3648 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
3649 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
3650 scan_tree_for_params_right_scev, scan_tree_for_params_int,
3651 scan_tree_for_params, struct irp_data, dx_record_params,
3652 find_params_in_bb, find_scop_parameters, gbb_from_bb,
3653 build_loop_iteration_domains, add_conditions_to_domain,
3654 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
3655 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
3656 build_sese_conditions, add_conditions_to_constraints,
3657 build_scop_iteration_domain, build_access_matrix_with_af,
3658 build_access_matrix,
3659 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
3660
3661 * graphite-sese-to-poly.c: New.
3662 * graphite-sese-to-poly.h: New.
3663
3664 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
3665
36662009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3667
3668 * graphite.c: Split graphite code generation to a new file.
3669 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
3670 max_precision_type, clast_to_gcc_expression_red,
3671 clast_to_gcc_expression, gcc_type_for_clast_expr,
3672 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
3673 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
3674 graphite_create_new_guard, clast_get_body_of_loop,
3675 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
3676 graphite_create_new_loop, build_iv_mapping, copy_renames,
3677 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
3678 compute_cloog_iv_types, free_scattering, save_var_name,
3679 initialize_cloog_names, build_scop_context, build_cloog_prog,
3680 set_cloog_options, debug_clast_stmt, scop_to_clast,
3681 print_generated_program, debug_generated_program,
3682 gloog): Moved to graphite-clast-to-gimple.c.
3683
3684 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
3685
3686 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
3687 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
3688 loop_iv_stack_pop, loop_iv_stack_get_iv,
3689 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
3690 free_loop_iv_stack, loop_iv_stack_remove_constants,
3691 debug_rename_elt, debug_rename_map_1, debug_rename_map,
3692 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
3693 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
3694 eq_ivtype_map_elts, sese_add_exit_phis_edge,
3695 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
3696 get_vdef_before_sese, sese_adjust_vphi,
3697 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
3698 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
3699 is_iv, expand_scalar_variables_ssa_name,
3700 expand_scalar_variables_expr, expand_scalar_variables_stmt,
3701 expand_scalar_variables, rename_variables, remove_condition,
3702 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
3703 add_loop_exit_phis, insert_loop_close_phis, struct igp,
3704 default_liveout_before_guard, add_guard_exit_phis,
3705 insert_guard_phis, register_old_and_new_names,
3706 graphite_copy_stmts_from_block, register_sese_liveout_renames,
3707 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
3708 if_region_set_false_region, create_if_region_on_edge,
3709 move_sese_in_condition): Moved to sese.c.
3710
3711 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
3712 if_region_exit, if_region_get_condition_block,
3713 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
3714 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
3715 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
3716 ivtype_map_elt, new_ivtype_map_elt,
3717 recompute_all_dominators): Moved to sese.h.
3718
3719 * graphite-clast-to-gimple.c: New.
3720 * graphite-clast-to-gimple.h: New.
3721 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
3722 * sese.c: Modified as said above.
3723 * sese.h: Same.
3724
37252009-02-20 Sebastian Pop <sebastian.pop@amd.com>
3726
3727 * graphite.c: Split scop detection to a new file.
3728 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
3729 move_sd_regions, loop_affine_expr, exclude_component_ref,
3730 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
3731 graphite_cannot_represent_loop_niter, struct scopdet_info,
3732 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
3733 find_single_entry_edge, find_single_exit_edge,
3734 create_single_entry_edge, sd_region_without_exit,
3735 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
3736 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
3737 Moved to graphite-scop-detection.c.
3738
3739 * graphite-scop-detection.c: New.
3740 * graphite-scop-detection.h: New.
3741 * Makefile.in: Add new rule for graphite-scop-detection.o.
3742
3743 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
3744 tree-scalar-evolution.h.
3745 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
3746 build_sese_loop_nests): Moved here from graphite.c.
3747 (param_index): Renamed parameter_index_in_region.
3748
37492009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
3750 Sebastian Pop <sebastian.pop@amd.com>
3751
3752 * gcc.dg/graphite/block-0.c: Expected to fail now.
3753 * gcc.dg/graphite/block-1.c: Same.
3754 * gcc.dg/graphite/block-5.c: Same.
3755 * gcc.dg/graphite/block-6.c: Same.
3756
37572009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
3758 Sebastian Pop <sebastian.pop@amd.com>
3759
3760 * graphite.h: Separate from graphite_bb_p the polyhedral
3761 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
3762 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
3763 graphite-data-ref.h.
3764 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
3765 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
3766 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
3767 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
3768 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
3769 scop_nb_params): Moved to graphite-poly.h.
3770 * graphite-data-ref.c: Same.
3771 * graphite-data-ref.h: New.
3772 * graphite.c: Same.
3773 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
3774 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
3775 is_interchange_valid, graphite_trans_bb_block,
3776 graphite_trans_loop_block, scop_max_loop_depth,
3777 graphite_trans_scop_block, graphite_apply_transformations,
3778 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
3779 graphite-poly.c.
3780 * graphite-poly.h: New.
3781 * graphite-poly.c: New.
3782 * Makefile.in (OBJS-common): Add graphite-poly.o.
3783 (graphite-poly.o): New rule.
3784 * tree-data-ref.h (struct data_reference): Remove unused scop field.
3785 (DR_SCOP): Removed.
3786
37872009-02-18 Sebastian Pop <sebastian.pop@amd.com>
3788 Tobias Grosser <grosser@fim.uni-passau.de>
3789
3790 * graphite.c: Replace gb -> gbb.
3791 * graphite.h: Same.
3792 * graphite-data-ref.c: Same.
3793
37942009-02-18 Sebastian Pop <sebastian.pop@amd.com>
3795 Tobias Grosser <grosser@fim.uni-passau.de>
3796
3797 * Makefile.in (OBJS-commmon): Add sese.o.
3798 (sese.o): New.
3799 (graphite.o): Add sese.h.
3800 * graphite.c (bb_in_ss_p, loop_in_sese_p,
3801 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
3802 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
3803 Move to sese.
3804 (block_before_scop): Add missing return.
3805 (new_scop, free_scop): Remove SESE data structures.
3806 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
3807 find_scop_parameters, build_loop_iteration_domains,
3808 add_conditions_to_domain, register_scop_liveout_renames,
3809 copy_bb_and_scalar_dependences): Scop -> SESE.
3810
3811 (add_conditions_to_domain): SCoP -> SESE and remove check
3812 (scop_contains_non_iv_scalar_phi_nodes): New.
3813 (build_scop_conditions_1, build_scop_conditions): Remove check for
3814 non iv scalar phi nodes.
3815 (print_scop_statistics): New.
3816 (graphite_transform_loops): Cleanup.
3817
3818 * graphite.h: Move to sese & cleanup.
3819 * sese.c: New.
3820 * sese.h: New.
3821
38222009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3823 Tobias Grosser <grosser@fim.uni-passau.de>
3824
3825 * graphite.c (build_scop_conditions_1): Conditions are only
3826 at the end of a basic block.
3827
38282009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3829 Tobias Grosser <grosser@fim.uni-passau>
3830
3831 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
3832 field.
3833 (GBB_ALPHA): Removed.
3834
38352009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3836 Tobias Grosser <grosser@fim.uni-passau.de>
3837
3838 * graphite-data-ref.c (graphite_test_dependence): Don't use
3839 GBB_DYNAMIC_SCHEDULE.
3840 * graphite.c (new_graphite_bb): Same.
3841 (free_graphite_bb): Same.
3842 (build_scop_dynamic_schedules): Removed.
3843 (graphite_transform_loops): Don't call it.
3844 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
3845 (GBB_DYNAMIC_SCHEDULE): Removed.
3846
38472009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3848 Tobias Grosser <grosser@fim.uni-passau.de>
3849
3850 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
3851 (print_graphite_bb): Same.
3852 (build_cloog_prog): Same.
3853
38542009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3855 Tobias Grosser <grosser@fim.uni-passau.de>
3856
3857 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
3858
38592009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3860 Tobias Grosser <grosser@fim.uni-passau.de>
3861
3862 * graphite.c (build_scop_context): Don't use CloogMatrix.
3863 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
3864 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
3865
38662009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3867 Tobias Grosser <grosser@fim.uni-passau.de>
3868
3869 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
3870 liveout_renames, add_params fields...
3871 (struct sese): ... here.
3872 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
3873 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
3874
38752009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3876 Tobias Grosser <grosser@fim.uni-passau.de>
3877
3878 * graphite.c (print_scop): Do not print the CLooG program.
3879 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
3880 build_cloog_prog, gloog): Don't use SCOP_PROG.
3881 (find_transform): Renamed scop_to_clast.
3882 (print_generated_program, debug_generated_program): New.
3883 (graphite_transform_loops): Adapt to new interface.
3884 * graphite.h (struct scop): Remove program field.
3885 (SCOP_PROG): Removed.
3886 (print_generated_program, debug_generated_program): Declared.
3887
38882009-02-16 Sebastian Pop <sebastian.pop@amd.com>
3889
3890 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
3891 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
3892 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
3893 free_graphite_bb, build_scop_canonical_schedules,
3894 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
3895 schedules are now represented using a ppl_Linear_Expression_t.
3896 * graphite.h (struct graphite_bb): Same.
3897 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
3898 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
3899
39002009-02-15 Sebastian Pop <sebastian.pop@amd.com>
3901
3902 * graphite.c: Free local memory.
3903 * graphite-ppl.c: Same.
3904
39052009-02-15 Sebastian Pop <sebastian.pop@amd.com>
3906
3907 * graphite.c (const_column_index, get_first_matching_sign_row_index,
3908 get_lower_bound_row, get_upper_bound_row, copy_constraint,
3909 swap_constraint_variables, scale_constraint_variable): Removed.
3910 (graphite_trans_bb_strip_mine): Remove pong.
3911 * graphite-ppl.c: Include missing header files.
3912 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
3913 * graphite-ppl.h (ppl_strip_loop): Declared.
3914 * Makefile.in (graphite-ppl.o): Adjust dependences.
3915
39162009-02-14 Sebastian Pop <sebastian.pop@amd.com>
3917
3918 * graphite.c (build_loop_iteration_domains): Remove ping pong.
3919 (build_scop_iteration_domain): Same.
3920
39212009-02-13 Sebastian Pop <sebastian.pop@amd.com>
3922
3923 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
3924 ping pong.
3925 (add_value_to_dim, scan_tree_for_params_right_scev,
3926 scan_tree_for_params_int): New.
3927 * graphite-ppl.c (oppose_constraint): New.
3928 (insert_constraint_into_matrix): Implement missing cases.
3929 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
3930
39312009-02-13 Sebastian Pop <sebastian.pop@amd.com>
3932
3933 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
3934 use ppl_move_dimension.
3935
39362009-02-12 Sebastian Pop <sebastian.pop@amd.com>
3937
3938 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
3939 * graphite.c: Same.
3940 * graphite.h: Same.
3941 * graphite-ppl.c: Same.
3942 * graphite-ppl.h: Same.
3943
39442009-02-12 Sebastian Pop <sebastian.pop@amd.com>
3945
3946 Revert last 3 commits.
3947
39482009-02-10 Sebastian Pop <sebastian.pop@amd.com>
3949
3950 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
3951 ping pong.
3952 (add_value_to_dim, scan_tree_for_params_right_scev,
3953 scan_tree_for_params_int): New.
3954 * graphite-ppl.c (oppose_constraint): New.
3955 (insert_constraint_into_matrix): Implement missing cases.
3956 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
3957
39582009-02-10 Sebastian Pop <sebastian.pop@amd.com>
3959
3960 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
3961
39622009-02-10 Sebastian Pop <sebastian.pop@amd.com>
3963 Tobias Grosser <grosser@fim.uni-passau.de>
3964
3965 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
3966 use ppl_move_dimension.
3967 * graphite-ppl.c (ppl_move_dimension): New.
3968 * graphite-ppl.h (ppl_move_dimension): Declared.
3969
39702009-02-10 Sebastian Pop <sebastian.pop@amd.com>
3971
3972 * graphite.c: Do not include cloog/cloog.h.
3973 (print_graphite_bb): Remove ping pong, call PPL print function.
3974
39752009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
3976
3977 * Makefile.in (OBJS-common): Add graphite-ppl.o.
3978 (graphite.o): Add dependence on graphite-ppl.h.
3979 (graphite-ppl.o): New.
3980 (graphite-data-ref.c): Ping pong between PPL data structures
3981 and matrices.
3982 * graphite-ppl.c: New.
3983 * graphite-ppl.h: New.
3984 * graphite.c: Include graphite-ppl.h.
3985 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
3986 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
3987 Ping pong between PPL data structures and matrices.
3988 (new_graphite_bb): Create a PPL constraint system.
3989 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
3990 (build_loop_iteration_domains): Use PPL functions.
3991 * graphite.h: Include graphite-ppl.h. Fix comments.
3992 (graphite_bb): Use a ppl_Constraint_System_t instead of
3993 CloogMatrix for representing the domain.
3994 (scop): Remove static_schedule.
3995 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
3996
39972009-02-06 Sebastian Pop <sebastian.pop@amd.com>
3998
3999 * graphite.c: Fix some comments.
4000
40012009-02-05 Sebastian Pop <sebastian.pop@amd.com>
4002
4003 PR middle-end/38953
4004 * graphite.c (if_region_set_false_region): After moving a region
4005 in the false branch of a condition, remove the empty dummy
4006 basic block.
4007 (gloog): Remove wrong fix for PR38953.
4008
40092009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
4010
4011 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
4012 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
4013 register_bb_in_sese, new_sese, free_sese): Moved.
4014 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
4015 outermost_loop_in_scop, build_scop_iteration_domain,
4016 expand_scalar_variables_ssa_name, get_vdef_before_scop,
4017 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
4018 Use loop_in_sese_p instead of loop_in_scop_p.
4019 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
4020 (free_scop): Do not free SCOP_BBS_B.
4021 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
4022 ref_nb_loops): Moved here...
4023 * graphite.h (ref_nb_loops): ... from here.
4024 (struct scop): Remove bbs_b bitmap.
4025 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
4026 * testsuite/gcc.dg/graphite/scop-19.c: New
4027
40282009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
4029
4030 * graphite.c (scopdet_basic_block_info): Fix bug in scop
4031 detection.
4032
40332009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
4034
4035 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
4036 eq_loop_to_cloog_loop): Remove.
4037 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
4038 * graphite.h (struct scop): Remove loop2cloog_loop.
4039 (loop_domain_dim, loop_iteration_vector_dim): Remove.
4040
40412009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
4042
4043 * opts.c (decode_options): Only add graphite options to O2
4044 if we compile with graphite enabled.
4045
40462009-01-26 Sebastian Pop <sebastian.pop@amd.com>
4047
4048 * Merge from mainline (r143163:143684).
4049
40502009-01-26 Sebastian Pop <sebastian.pop@amd.com>
4051
4052 * graphite.c (debug_value): Removed.
4053 * graphite.h (debug_value): Removed.
4054
40552009-01-23 Sebastian Pop <sebastian.pop@amd.com>
4056
4057 * passes.c (init_optimization_passes): Do not call pass_copy_prop
4058 after graphite: pass_copy_prop does not maintain a proper loop closed
4059 SSA form. pass_copy_prop should be fixed.
4060
40612009-01-23 Sebastian Pop <sebastian.pop@amd.com>
4062
4063 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
4064
40652009-01-23 Sebastian Pop <sebastian.pop@amd.com>
4066
4067 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
4068 (gloog): Split the exit of the scop when the scop exit is a loop exit.
4069 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
4070 changed the CFG.
4071
40722009-01-20 Sebastian Pop <sebastian.pop@amd.com>
4073
4074 * graphite.c (gloog): Return true when code gen succeeded.
4075 (graphite_transform_loops): Do not call cleanup_tree_cfg if
4076 the code of the function did not changed. After cleanup_tree_cfg
4077 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
4078 form.
4079
40802009-01-19 Sebastian Pop <sebastian.pop@amd.com>
4081
4082 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
4083 gimple_call_lhs is NULL.
4084
40852009-01-16 Sebastian Pop <sebastian.pop@amd.com>
4086 Tobias Grosser <tobi.grosser@amd.com>
4087
4088 * graphite.c (graphite_trans_scop_block): Do not block single
4089 nested loops.
4090
40912009-01-15 Sebastian Pop <sebastian.pop@amd.com>
4092 Tobias Grosser <tobi.grosser@amd.com>
4093
4094 * graphite.c (build_scop_canonical_schedules): Start schedules at
4095 zero.
4096
40972009-01-15 Sebastian Pop <sebastian.pop@amd.com>
4098 Tobias Grosser <tobi.grosser@amd.com>
4099
4100 * graphite.c (compare_prefix_loops): New.
4101 (build_scop_canonical_schedules): Rewritten.
4102 (graphite_transform_loops): Move build_scop_canonical_schedules
4103 after build_scop_iteration_domain.
4104
41052009-01-14 Sebastian Pop <sebastian.pop@amd.com>
4106 Tobias Grosser <tobi.grosser@amd.com>
4107
4108 * graphite.c (add_conditions_to_domain): Add the loops to
4109 the dimension of the iteration domain. Do copy the domain
4110 only when it exists.
4111 (build_scop_conditions_1): Do not call add_conditions_to_domain.
4112 (add_conditions_to_constraints): New.
4113 (can_generate_code_stmt, can_generate_code): Removed.
4114 (gloog): Do not call can_generate_code.
4115 (graphite_transform_loops): Call add_conditions_to_constraints
4116 after building the iteration domain.
4117
41182009-01-14 Sebastian Pop <sebastian.pop@amd.com>
4119 Tobias Grosser <tobi.grosser@amd.com>
4120 Jan Sjodin <jan.sjodin@amd.com>
4121
4122 * graphite.c (scan_tree_for_params): On substractions negate
4123 all the coefficients of the term.
4124 (clast_to_gcc_expression_red): New. Handle reduction expressions
4125 of more than two operands.
4126 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
4127 (get_vdef_before_scop): Handle also the case of default definitions.
4128
41292009-01-14 Sebastian Pop <sebastian.pop@amd.com>
4130
4131 PR middle-end/38431
4132 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
4133 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
4134 (gloog): Do not call cleanup_tree_cfg.
4135 (graphite_transform_loops): Call cleanup_tree_cfg after all
4136 scops have been code generated.
4137
41382009-01-13 Sebastian Pop <sebastian.pop@amd.com>
4139
4140 * passes.c (init_optimization_passes): Schedule after
4141 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
4142
41432009-01-13 Sebastian Pop <sebastian.pop@amd.com>
4144
4145 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
4146 Fix comment.
4147 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
4148 Set the type of an expression to the type of its assign statement.
4149 (expand_scalar_variables_expr): Do not pass loop_p.
4150 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
4151 (copy_bb_and_scalar_dependences): Do not pass loop_p.
4152 (translate_clast): Update call to copy_bb_and_scalar_dependences.
4153
41542009-01-11 Sebastian Pop <sebastian.pop@amd.com>
4155
4156 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
4157 an expression to the gimple_expr_type of its assign statement.
4158 (expand_scalar_variables_expr): Stop recursion on tcc_constant
4159 or tcc_declaration.
4160
41612009-01-11 Sebastian Pop <sebastian.pop@amd.com>
4162
4163 PR tree-optimization/38786
4164 * testsuite/gcc.dg/graphite/pr38786.c: New.
4165 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
4166 the SSA_NAME case of expand_scalar_variables_expr.
4167 (expand_scalar_variables_expr): Also gather the scalar computation
4168 used to index the memory access.
4169 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
4170 the gimple_stmt_iterator where it inserts new code.
4171
41722009-01-10 Sebastian Pop <sebastian.pop@amd.com>
4173
4174 * testsuite/gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
4175
41762009-01-10 Sebastian Pop <sebastian.pop@amd.com>
4177
4178 * opts.c (decode_options): Enable flag_graphite_identity and
4179 flag_loop_block in -O2 and above.
4180
41812009-01-08 Sebastian Pop <sebastian.pop@amd.com>
4182
4183 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
4184 Fix merge problem: replace with the file from trunk.
4185
41862009-01-08 Sebastian Pop <sebastian.pop@amd.com>
4187
4188 * Merge from mainline (r141727:143163).
4189
41902009-01-07 Sebastian Pop <sebastian.pop@amd.com>
4191 Jan Sjodin <jan.sjodin@amd.com>
4192
4193 PR tree-optimization/38559
4194 * testsuite/gcc.dg/graphite/pr38559.c: New.
4195
4196 * graphite.c (debug_value, copy_constraint,
4197 swap_constraint_variables, scale_constraint_variable, ): New.
4198 (get_lower_bound, get_upper_bound): Removed.
4199 (graphite_trans_bb_strip_mine): Clean up this code that works
4200 only for constant number of iterations. Fully copy upper and
4201 lower bound constraints, not only the constant part of them.
4202 * graphite.h (debug_value): Declared.
4203
42042009-01-06 Jan Sjodin <jan.sjodin@amd.com>
4205
4206 PR tree-optimization/38492
4207 PR tree-optimization/38498
4208 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
4209 * tree-chrec.h (scev_is_linear_expression): Declared.
4210 * graphite.c (graphite_cannot_represent_loop_niter): New.
4211 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
4212 (graphite_loop_normal_form): Use gcc_assert.
4213 (scan_tree_for_params): Use CASE_CONVERT.
4214 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
4215 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
4216 Use gcc_assert. Discard scops that contain unhandled cases.
4217 (build_scop_conditions): Return a boolean status for unhandled cases.
4218 (strip_mine_profitable_p): Print the loop number, not its depth.
4219 (is_interchange_valid): Pass the depth of the loop nest, don't
4220 recompute it wrongly.
4221 (graphite_trans_bb_block): Same.
4222 (graphite_trans_bb_block): Print tentative of loop blocking.
4223 (graphite_trans_scop_block): Do not print that the loop has been
4224 blocked.
4225 (graphite_transform_loops): Do not handle scops that contain condition
4226 scalar phi nodes.
4227
4228 * testsuite/gcc.dg/graphite/pr38500.c: Fixed warning as committed
4229 in trunk.
4230 * testsuite/gcc.dg/graphite/block-0.c: Update test.
4231 * testsuite/gcc.dg/graphite/block-1.c: Same.
4232 * testsuite/gcc.dg/graphite/block-2.c: Remove xfail and test for
4233 blocking.
4234 * testsuite/gcc.dg/graphite/block-4.c: Remove test for strip mine.
4235 * testsuite/gcc.dg/graphite/block-3.c: New.
4236 * testsuite/gcc.dg/graphite/pr38498.c: New.
4237
42382008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
4239
4240 PR tree-optimization/38510
4241 * gcc.dg/graphite/pr38510.c: New.
4242 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
4243 (translate_clast): Call recompute_all_dominators before
4244 graphite_verify.
4245 (gloog): Call recompute_all_dominators before graphite_verify.
4246
42472008-12-12 Sebastian Pop <sebastian.pop@amd.com>
4248
4249 PR tree-optimization/38492
4250 * graphite.c (rename_map_elt, debug_rename_elt,
4251 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
4252 rename_map_elt_info, eq_rename_map_elts,
4253 get_new_name_from_old_name, bb_in_sese_p): Moved around.
4254 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
4255 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
4256 (sese_build_livein_liveouts): New.
4257 (new_sese, free_sese): New.
4258 (new_scop): Call new_sese.
4259 (free_scop): Call free_sese.
4260 (rename_variables_from_edge, rename_phis_end_scop): Removed.
4261 (register_old_new_names): Renamed register_old_and_new_names.
4262 (register_scop_liveout_renames, add_loop_exit_phis,
4263 insert_loop_close_phis, struct igp,
4264 default_liveout_before_guard, add_guard_exit_phis,
4265 insert_guard_phis, copy_renames): New.
4266 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
4267 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
4268 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
4269 (scop_adjust_phis_for_liveouts): New.
4270 (gloog): Call scop_adjust_phis_for_liveouts.
4271
4272 * graphite.h (struct sese): Documented. Added fields liveout,
4273 num_ver and livein.
4274 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
4275 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
4276 (struct scop): Added field liveout_renames.
4277 (SCOP_LIVEOUT_RENAMES): New.
4278
42792008-12-11 Sebastian Pop <sebastian.pop@amd.com>
4280
4281 PR tree-optimization/38409
4282 * gcc.dg/graphite/pr38409.c: New.
4283 * graphite.c (nb_reductions_in_loop): Use simple_iv.
4284
42852008-12-11 Sebastian Pop <sebastian.pop@amd.com>
4286
4287 * graphite.c (gcc_type_for_cloog_iv): By default return
4288 integer_type_node.
4289 (graphite_create_new_loop): Don't fold_convert the already
4290 fold_convert-ed expression.
4291
42922008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
4293
4294 PR tree-optimization/38446
4295 * gcc.dg/graphite/pr38446.c: New.
4296 * graphite.c (register_bb_in_sese): New.
4297 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
4298 looking at the bbs in the region.
4299 * graphite.h (sese): Add region_basic_blocks pointer set to
4300 structure and initialize at the time of defining new scop.
4301
43022008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
4303
4304 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
4305 (find_params_in_bb): Do not free data refs.
4306 (free_graphite_bb): Add FIXME on disabled free_data_refs.
4307
43082008-12-11 Sebastian Pop <sebastian.pop@amd.com>
4309
4310 * testsuite/gcc.dg/graphite/scop-16.c: Test only scop specific info.
4311 * testsuite/gcc.dg/graphite/scop-17.c: Same.
4312 * testsuite/gcc.dg/graphite/block-5.c: New.
4313 * testsuite/gcc.dg/graphite/block-6.c: New.
4314 * testsuite/gcc.dg/graphite/pr37485.c: Clean dump file after.
4315 * testsuite/gcc.dg/graphite/pr37684.c: Same.
4316 * testsuite/gcc.dg/graphite/block-2.c: Same.
4317
4318 * graphite.c (struct ivtype_map_elt): New.
4319 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
4320 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
4321 gcc_type_for_cloog_iv): New.
4322 (loop_iv_stack_patch_for_consts): Use the type of the induction
4323 variable from the original loop, except for the automatically
4324 generated loops, i.e., in the case of a strip-mined loop, in
4325 which case there is no original loop: in that case just use
4326 integer_type_node.
4327 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
4328 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
4329 (clast_name_to_gcc): Accept params to be NULL.
4330 (clast_to_gcc_expression): Take an extra parameter for the type.
4331 Convert to that type all the expressions built by this function.
4332 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
4333 (graphite_translate_clast_equation): Compute the type of the
4334 clast_equation before translating its LHS and RHS.
4335 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
4336 (graphite_create_new_loop): Compute the type of the induction
4337 variable before translating the lower and upper bounds and before
4338 creating the induction variable.
4339 (rename_variables_from_edge, rename_phis_end_scop): New.
4340 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
4341 (sese_add_exit_phis_edge): Do not use integer_zero_node.
4342 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
4343 compute_cloog_iv_types): New.
4344 (gloog): Call compute_cloog_iv_types before starting the
4345 translation of the clast.
4346
4347 * graphite.h (struct graphite_bb): New field cloog_iv_types.
4348 (GBB_CLOOG_IV_TYPES): New.
4349 (debug_ivtype_map): Declared.
4350 (oldiv_for_loop): New.
4351
43522008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
4353
4354 PR middle-end/38459
4355 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
4356 (param_index): Assert if parameter is not know after parameter
4357 detection.
4358 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
4359 (find_scop_parameters): Mark, that we have finished parameter
4360 detection.
4361 (graphite_transform_loops): Move condition detection before parameter
4362 detection.
4363 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
4364 * testsuite/gfortran.dg/graphite/pr38459.f90: New.
4365
43662008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
4367
4368 * graphite.c (graphite_transform_loops): Always call find_transform ()
4369 in ENABLE_CHECKING. So we test these code paths, even if we do not
4370 generate code.
4371
43722008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
4373
4374 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
4375 (print_scop): Ditto.
4376
43772008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
4378
4379 PR middle-end/38084
4380 Fix testsuite/gfortran.dg/graphite/id-3.f90.
4381 * graphite.c (scopdet_basic_block_info): Fix bug that found some
4382 regions more than once.
4383
43842008-12-03 Sebastian Pop <sebastian.pop@amd.com>
4385
4386 Fix testsuite/gfortran.dg/graphite/id-4.f90.
4387 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
4388 when not needed.
4389
43902008-12-03 Sebastian Pop <sebastian.pop@amd.com>
4391
4392 Fix testsuite/gfortran.dg/graphite/id-1.f90.
4393 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
4394 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
4395 (max_precision_type): New.
4396 (value_clast): Removed.
4397 (clast_to_gcc_expression): Be more careful to types of expressions.
4398 Use max_precision_type and update use of gmp_cst_to_tree.
4399 (graphite_translate_clast_equation): Use max_precision_type.
4400 (graphite_create_guard_cond_expr): Do not use integer_type_node,
4401 use the type of the condition.
4402 (graphite_create_new_loop): Do not use integer_type_node, use the
4403 max_precision_type of lb and ub.
4404
44052008-12-03 Sebastian Pop <sebastian.pop@amd.com>
4406
4407 * graphite.c (build_scops_1): Initialize open_scop.exit
4408 and sinfo.last.
4409
44102008-12-02 Sebastian Pop <sebastian.pop@amd.com>
4411
4412 * testsuite/gcc.dg/graphite/pr38084.c: New.
4413 * testsuite/gfortran.dg/graphite/id-1.f90: New.
4414 * testsuite/gfortran.dg/graphite/id-2.f90: New.
4415 * testsuite/gfortran.dg/graphite/id-3.f90: New.
4416 * testsuite/gfortran.dg/graphite/id-4.f90: New.
4417 * testsuite/gfortran.dg/graphite/pr37857.f90: New.
4418
44192008-12-02 Sebastian Pop <sebastian.pop@amd.com>
4420 Jan Sjodin <jan.sjodin@amd.com>
4421 Harsha Jagasia <harsha.jagasia@amd.com>
4422
4423 PR middle-end/37852
4424 PR middle-end/37883
4425 PR middle-end/37928
4426 PR middle-end/37980
4427 PR middle-end/38038
4428 PR middle-end/38039
4429 PR middle-end/38073
4430 PR middle-end/38083
4431 PR middle-end/38125
4432
4433 * testsuite/gcc.dg/graphite/pr38073.c: New.
4434 * testsuite/gcc.dg/graphite/pr37928.c: New.
4435 * testsuite/gcc.dg/graphite/pr37883.c: New.
4436 * testsuite/gcc.dg/graphite/pr38125.c: New.
4437 * testsuite/gfortran.dg/graphite/pr38083.f90: New.
4438 * testsuite/gfortran.dg/graphite/pr37852.f90: New.
4439 * testsuite/gfortran.dg/graphite/pr37980.f90: New.
4440
4441 * testsuite/gcc.dg/graphite/scop-18.c: Remove reduction, test for
4442 the number of detected scops. Copy exact same test for loop
4443 blocking...
4444 * testsuite/gcc.dg/graphite/block-1.c: Fix the number of expected
4445 loops to be blocked as reductions are not handled.
4446 * testsuite/gcc.dg/graphite/block-4.c: ...here. New.
4447
4448 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
4449 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
4450 ...here.
4451 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
4452 * Makefile.in (graphite.o): Depend on value-prof.h.
4453 (graphite.o-warn): Removed -Wno-error.
4454 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
4455 to be a NULL pointer. Call update_stmt. Return the newly created
4456 cannonical induction variable.
4457
4458 * graphite.h (debug_rename_map): Declared. Fix some comments.
4459
4460 * graphite.c: Reimplement the code generation from graphite to gimple.
4461 Include value-prof.h.
4462 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
4463 (get_old_iv_from_ssa_name): Removed.
4464 (graphite_stmt_p): New.
4465 (new_graphite_bb): Test for useful statements before building a
4466 graphite statement for the basic block.
4467 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
4468 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
4469 reason.
4470 (recompute_all_dominators, graphite_verify,
4471 nb_reductions_in_loop, graphite_loop_normal_form): New.
4472 (scop_record_loop): Call graphite_loop_normal_form.
4473 (build_scop_loop_nests): Iterate over all the blocks of the
4474 function instead of relying on the incomplete information from
4475 SCOP_BBS. Return the success of the operation.
4476 (find_params_in_bb): Use the data from GBB_DATA_REFS.
4477 (add_bb_domains): Removed.
4478 (build_loop_iteration_domains): Don't call add_bb_domains.
4479 Add the iteration domain only to the basic blocks that have been
4480 translated to graphite.
4481 (build_scop_conditions_1): Add constraints only if the basic
4482 block have been translated to graphite.
4483 (build_scop_data_accesses): Completely disabled until data
4484 dependence is correctly implemented.
4485 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
4486 (remove_all_edges_1, remove_all_edges): Removed.
4487 (get_new_name_from_old_name): New.
4488 (graphite_rename_variables_in_stmt): Renamed
4489 rename_variables_in_stmt. Call get_new_name_from_old_name.
4490 Use replace_exp and update_stmt.
4491 (is_old_iv): Renamed is_iv.
4492 (expand_scalar_variables_stmt): Extra parameter for renaming map.
4493 Use replace_exp and update_stmt.
4494 (expand_scalar_variables_expr): Same. Use the map to get the
4495 new names for the renaming of induction variables and for the
4496 renaming of variables after a basic block has been copied.
4497 (expand_scalar_variables): Same.
4498 (graphite_rename_variables): Renamed rename_variables.
4499 (move_phi_nodes): Removed.
4500 (get_false_edge_from_guard_bb): New.
4501 (build_iv_mapping): Do not insert the induction variable of a
4502 loop in the renaming iv map if the basic block does not belong
4503 to that loop.
4504 (register_old_new_names, graphite_copy_stmts_from_block,
4505 copy_bb_and_scalar_dependences): New.
4506 (translate_clast): Heavily reimplemented: copy basic blocks,
4507 do not move them. Finally, in call cleanup_tree_cfg in gloog.
4508 At each translation step call graphite_verify ensuring the
4509 consistency of the SSA, loops and dominators information.
4510 (collect_virtual_phis, find_vdef_for_var_in_bb,
4511 find_vdef_for_var_1, find_vdef_for_var,
4512 patch_phis_for_virtual_defs): Removed huge hack.
4513 (mark_old_loops, remove_dead_loops, skip_phi_defs,
4514 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
4515 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
4516 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
4517 if_region_get_condition_block, if_region_set_false_region,
4518 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
4519 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
4520 sese_add_exit_phis_edge, sese_add_exit_phis_var,
4521 rewrite_into_sese_closed_ssa): New.
4522 (gloog): Remove dead code. Early return if code cannot be
4523 generated. Call cleanup_tree_cfg once the scop has been code
4524 generated.
4525 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
4526 block loops with less than two loops.
4527 (graphite_apply_transformations): Remove the call to
4528 scop_remove_ignoreable_gbbs.
4529 (limit_scops): When build_scop_loop_nests fails, continue on
4530 the next scop. Fix open_scop.entry.
4531 (graphite_transform_loops): Call recompute_all_dominators: force the
4532 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
4533 Call initialize_original_copy_tables and free_original_copy_tables
4534 to be able to copy basic blocks during code generation.
4535 When build_scop_loop_nests fails, continue on next scop.
4536 (value_clast): New union.
4537 (clast_to_gcc_expression): Fix type cast warning.
4538
45392008-11-09 Sebastian Pop <sebastian.pop@amd.com>
4540
4541 * Merge from mainline (r140838:141727).
4542
45432008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
4544
4545 PR middle-end/37833
4546
4547 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
4548
45492008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
4550
4551 PR middle-end/37943
4552
4553 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
4554 exits and conditions.
4555 * testsuite/gcc.dg/graphite/pr37943.c: New.
4556
45572008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
4558
4559 PR middle-end/37886
4560 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
4561
45622008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
4563
4564 * doc/invoke.texi: Fix spaces.
4565
45662008-10-22 Sebastian Pop <sebastian.pop@amd.com>
4567
4568 PR tree-optimization/37891
4569 Reverted last commit.
4570 * graphite.c (create_single_entry_edge): Set
4571 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
4572
45732008-10-21 Sebastian Pop <sebastian.pop@amd.com>
4574 Mitul Thakkar <mitul.thakkar@amd.com>
4575
4576 * graphite.c (create_single_entry_edge): Set
4577 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
4578
45792008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
4580
4581 * doc/invoke.texi: Add -fgraphite-identity.
4582 * graphite.c (graphite_apply_transformations): Check for
4583 -fgraphite-identity.
4584 * toplev.c (process_options): Add flag_graphite_identity.
4585 * tree-ssa-loop.c: Add flag_graphite_identity.
4586
45872008-10-14 Sebastian Pop <sebastian.pop@amd.com>
4588
4589 Undo changes from 2008-10-02:
4590 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
4591 operand type when copying the operand to a variable of different type.
4592 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
4593 with the IV name after increment.
4594
45952008-10-14 Sebastian Pop <sebastian.pop@amd.com>
4596 Harsha Jagasia <harsha.jagasia@amd.com>
4597
4598 PR tree-optimization/37828
4599 * testsuite/gcc.dg/graphite/pr37828.c: New.
4600 * graphite.c (graphite_trans_loop_block): Do not loop block
4601 single nested loops.
4602
46032008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
4604 Sebastian Pop <sebastian.pop@amd.com>
4605
4606 * graphite.c (struct rename_map_elt, new_rename_map_elt,
4607 rename_map_elt_info, eq_rename_map_elts): New.
4608 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
4609 (expand_scalar_variables_expr): Change parameters.
4610 (expand_scalar_variables_stmt): Same.
4611 (expand_scalar_variables): Same.
4612 (graphite_rename_ivs): Rename graphite_rename_variables.
4613 (build_iv_mapping): New.
4614 (translate_clast): Call build_iv_mapping.
4615 * graphite.h (gbb_p): New name.
4616
46172008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
4618
4619 PR tree-optimization/37684
4620 * gcc.dg/graphite/pr37684.c: New.
4621 * graphite.c (exclude_component_ref): New.
4622 (is_simple_operand): Call exclude_component_ref.
4623
46242008-10-02 Jan Sjodin <jan.sjodin@amd.com>
4625 Harsha Jagasia <harsha.jagasia@amd.com>
4626
4627 PR tree-optimization/37485
4628 * gcc.dg/graphite/block-2.c: New
4629 * graphite.c (gmp_cst_to_tree): Moved.
4630 (iv_stack_entry_is_constant): New.
4631 (iv_stack_entry_is_iv): New.
4632 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
4633 (loop_iv_stack_insert_constant): New.
4634 (loop_iv_stack_pop): Use new datatpype.
4635 (loop_iv_stack_get_iv): Same.
4636 (loop_iv_stack_get_iv_from_name): Same.
4637 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
4638 (loop_iv_stack_patch_for_consts): New.
4639 (loop_iv_stack_remove_constants): New.
4640 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
4641 (translate_clast): Call loop_iv_stack_patch_for_consts and
4642 loop_iv_stack_remove_constants.
4643 (gloog): Use new datatype. Redirect construction edge to end
4644 block to avoid accidental deletion.
4645 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
4646 iv stack entry.
4647 (union iv_stack_entry_data): New. Data in iv stack entry.
4648 (struct iv_stack_entry): New. Datatype for iv stack entries.
4649
46502008-10-02 Sebastian Pop <sebastian.pop@amd.com>
4651
4652 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
4653 operand type when copying the operand to a variable of different type.
4654
46552008-10-02 Sebastian Pop <sebastian.pop@amd.com>
4656
4657 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
4658 with the IV name after increment.
4659
46602008-10-02 Sebastian Pop <sebastian.pop@amd.com>
4661
4662 * Merge from mainline (r140164:140838).
4663
46642008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
4665
4666 * graphite-data-ref.c: New.
4667 * graphite.c (print_scop): Also dump the dependence graph.
4668 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
4669 (new_scop): Initialize SCOP_DEP_GRAPH.
4670 (build_scop_dynamic_schedules): New.
4671 (build_access_matrix_with_af): Fixed column numbering.
4672 (graphite_transform_loops): Call build_scop_dynamic_schedules.
4673 * graphite.h: Add ifndef/define guards against multiple inclusion.
4674 (struct scop): Add dep_graph field.
4675 (SCOP_DEP_GRAPH): Defined.
4676 (ref_nb_loops): Fixed and moved to other position.
4677 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
4678 (nb_loops_around_loop_in_scop): New.
4679 (graphite_dump_dependence_graph): Declared.
4680 (graphite_build_rdg_all_levels): Declared.
4681 (graphite_test_dependence): Declared.
4682 * Makefile.in (graphite-data-ref.o): New target.
4683
46842008-09-09 Sebastian Pop <sebastian.pop@amd.com>
4685
4686 * Merge from mainline (139870:140164).
4687
46882008-09-01 Sebastian Pop <sebastian.pop@amd.com>
4689
4690 * Merge from mainline (138275:139870).
4691 * testsuite/gcc.dg/graphite/scop-matmult.c: XFailed as one of
4692 the commits from trunk broke the niter detection.
4693
46942008-09-01 Sebastian Pop <sebastian.pop@amd.com>
4695
4696 * graphite.c: Add more documentation. Fix formatting.
4697 (debug_loop_vec, debug_oldivs, loop_iv_stack,
4698 loop_iv_stack_debug): Moved...
4699 (schedule_to_scattering): Move before use.
4700 (dot_all_scops): Include in "#if 0" the code for system
4701 call dotty.
4702
4703 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
4704 loop_iv_stack_debug): ...here.
4705
47062008-08-29 Jan Sjodin <jan.sjodin@amd.com>
4707
4708 * tree-phinodes.c (make_phi_node): Extern.
4709 (add_phi_node_to_bb): New.
4710 (create_phi_node): Call add_phi_node_to_bb.
4711 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
4712 (remove_statement): Handle case where stored phi was updated
4713 and is no longer the same.
4714 * graphite.c (is_parameter): New.
4715 (is_old_iv): New.
4716 (expand_scalar_variables_expr): New.
4717 (expand_scalar_variables_stmt): New.
4718 (expand_scalar_variables): New.
4719 (move_phi_nodes): Create new phi instead of moving old one.
4720 (translate_clast): Call expand_scalar_variables.
4721 (find_vdef_for_var_in_bb): Also scan regular definitions.
4722 (skip_phi_defs): New.
4723 (collect_scop_exit_phi_args): New.
4724 (patch_scop_exit_phi_args): New.
4725 (gloog): Patch phis after scop.
4726 * tree-flow.h: (add_phi_node_to_bb): Declared.
4727 (make_phi_node): Declared.
4728
47292008-08-26 Sebastian Pop <sebastian.pop@amd.com>
4730
4731 * graphite.c (end_scop): Split the entry of the scop when it
4732 is the header of the loop in which the scop is ending.
4733 (build_scops_1, limit_scops): Update uses of end_scop.
4734
47352008-08-26 Sebastian Pop <sebastian.pop@amd.com>
4736
4737 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
4738 SCOP_ENTRY or SCOP_EXIT.
4739
47402008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4741
4742 * graphite.c (get_construction_edge): Removed.
4743 (gloog): Construction edge is the scop entry edge.
4744
47452008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4746
4747 * graphite.c (can_generate_for_scop): Removed.
4748 (gloog): Do not call it.
4749
47502008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4751
4752 * graphite.c (new_scop): Entry of a scop is an edge.
4753 Initialize SESE region.
4754 (free_scop): Free SESE region.
4755 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
4756 (split_difficult_bb): New, split from end_scop.
4757 (end_scop): Exit of a scop is an edge.
4758 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
4759 not automatically updated and thus is always wrong.
4760 * graphite.h (struct sese): New.
4761 (SESE_ENTRY): New.
4762 (SESE_EXIT): New.
4763 (struct scop): New field for a SESE region. Remove entry, exit.
4764 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
4765 semantics as before. Moved comment around.
4766
47672008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
4768 Sebastian Pop <sebastian.pop@amd.com>
4769
4770 * graphite.c (graphite_transform_loops): Always enable gloog
4771 and find_transform when ENABLE_CHECKING.
4772
47732008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4774
4775 * graphite.c (graphite_transform_loops): Move pretty printer
4776 of SCOPs before doing any transform. Remove call to print_scops
4777 and dot_all_scops_1.
4778
47792008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4780
4781 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
4782 (print_graphite_bb): Same.
4783
47842008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4785
4786 * graphite.c (dot_all_scops_1): Cleanup.
4787 (move_scops): Fix comment.
4788
47892008-08-25 Sebastian Pop <sebastian.pop@amd.com>
4790
4791 * graphite.c (build_scop_bbs): Revert commit 139355:
4792
4793 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4794 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4795
4796 * graphite.c (build_scop_bbs): Factor up code.
4797
47982008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
4799
4800 * graphite.c (gloog): Update dominator info.
4801
48022008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
4803
4804 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
4805
48062008-08-24 Sebastian Pop <sebastian.pop@amd.com>
4807
4808 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
4809 initialization.
4810 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
4811 (translate_clast): Correct formatting.
4812 * graphite.h (struct num_map): Removed.
4813 (struct graphite_bb): Remove num_map field.
4814 (GBB_INDEX_TO_NUM_MAP): Removed.
4815
48162008-08-24 Sebastian Pop <sebastian.pop@amd.com>
4817
4818 * graphite.c (build_access_matrix_with_af): Fix comments.
4819 (build_scop_data_accesses): Same.
4820
48212008-08-24 Sebastian Pop <sebastian.pop@amd.com>
4822
4823 * graphite.c (build_scop_data_accesses): Don't construct
4824 access matrices. Add a FIXME and an assert condition that
4825 should pass when the access matrices will be needed.
4826
48272008-08-24 Sebastian Pop <sebastian.pop@amd.com>
4828
4829 * tree-data-ref.c (stmt_simple_memref_p): Don't call
4830 really_constant_p.
4831 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
4832 Moved close by free_graphite_bb.
4833 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
4834 (new_scop): Move close by free_scop.
4835 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
4836
48372008-08-22 Jan Sjodin <jan.sjodin@amd.com>
4838
4839 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
4840 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
4841 instead of recursive call.
4842 (graphite_translate_clast_equation): New.
4843 (graphite_create_guard_cond_expr): New.
4844 (graphite_create_new_guard): New.
4845 (get_stack_index_from_iv): Removed.
4846 (graphite_rename_ivs_stmt): Use gbb_loop_index.
4847 (get_true_edge_from_guard_bb): New.
4848 (translate_clast): Handle stmt_guard in clast.
4849 (get_construction_edge): Allow construction edge detection for
4850 a scope entry with multiple predecessors if one predecessor is
4851 the immediate dominator of scope entry.
4852 (can_generate_code_stmt): Enable code generation for clast_guard.
4853 (gloog): Use correct context loop. Removed check for post dominators.
4854 * cfgloop.h (create_empty_if_region_on_edge): Declared.
4855
48562008-08-21 Sebastian Pop <sebastian.pop@amd.com>
4857
4858 * graphite.c (remove_dead_loops): Document better which
4859 loops are removed.
4860
48612008-08-21 Sebastian Pop <sebastian.pop@amd.com>
4862
4863 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
4864 and PPLINC.
4865 (graphite.o): Also depends on pointer-set.h.
4866
48672008-08-21 Sebastian Pop <sebastian.pop@amd.com>
4868
4869 * graphite.c (scop_record_loop): Fix compile warning.
4870
48712008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
4872 Sebastian Pop <sebastian.pop@amd.com>
4873
4874 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
4875
48762008-08-21 Sebastian Pop <sebastian.pop@amd.com>
4877
4878 * graphite.c (build_graphite_bb): Initialize bb->aux to
4879 point to the graphite_bb_p.
4880 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
4881 content of bb->aux.
4882 (add_bb_domains): Does not use the scop parameter.
4883 (graphite_transform_loops): Clean bb->aux at the end.
4884
48852008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4886 Sebastian Pop <sebastian.pop@amd.com>
4887
4888 * testsuite/lib/target-supports.exp
4889 (check_effective_target_fgraphite): New.
4890
4891 * testsuite/gcc.dg/graphite/graphite.exp: Early exit when
4892 check_effective_target_fgraphite returns false.
4893 Set dg-do-what-default to compile.
4894 (scan-graphite-dump-times): Removed.
4895 * testsuite/gfortran.dg/graphite/graphite.exp: Same.
4896
4897 * testsuite/gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
4898 Use scan-tree-dump-times instead of scan-graphite-dump-times.
4899 * testsuite/gcc.dg/graphite/scop-1.c: Same.
4900 * testsuite/gcc.dg/graphite/scop-2.c: Same.
4901 * testsuite/gcc.dg/graphite/scop-3.c: Same.
4902 * testsuite/gcc.dg/graphite/scop-4.c: Same.
4903 * testsuite/gcc.dg/graphite/scop-5.c: Same.
4904 * testsuite/gcc.dg/graphite/scop-6.c: Same.
4905 * testsuite/gcc.dg/graphite/scop-7.c: Same.
4906 * testsuite/gcc.dg/graphite/scop-8.c: Same.
4907 * testsuite/gcc.dg/graphite/scop-9.c: Same.
4908 * testsuite/gcc.dg/graphite/scop-10.c: Same.
4909 * testsuite/gcc.dg/graphite/scop-11.c: Same.
4910 * testsuite/gcc.dg/graphite/scop-12.c: Same.
4911 * testsuite/gcc.dg/graphite/scop-13.c: Same.
4912 * testsuite/gcc.dg/graphite/scop-matmult.c: Same.
4913 * testsuite/gcc.dg/graphite/scop-14.c: Same.
4914 * testsuite/gcc.dg/graphite/scop-15.c: Same.
4915 * testsuite/gcc.dg/graphite/block-0.c: Same.
4916 * testsuite/gcc.dg/graphite/scop-16.c: Same.
4917 * testsuite/gcc.dg/graphite/block-1.c: Same.
4918 * testsuite/gcc.dg/graphite/scop-17.c: Same.
4919 * testsuite/gcc.dg/graphite/scop-18.c: Same.
4920 * testsuite/gfortran.dg/graphite/block-1.f90: Same.
4921 * testsuite/gfortran.dg/graphite/scop-1.f: Same.
4922 * testsuite/gfortran.dg/graphite/block-2.f: Same.
4923
49242008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4925
4926 * graphite.c: Fix some XXX comments.
4927 (build_scop_dynamic_schedules): Removed.
4928
49292008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4930
4931 * graphite.h (scop_max_loop_depth): Moved...
4932 * graphite.c (scop_max_loop_depth): ...here.
4933 (remove_all_edges_1): New.
4934 (remove_all_edges): Factored code.
4935 (remove_cond_exprs): Check only the last statement for
4936 a GIMPLE_COND expression.
4937
49382008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4939
4940 * graphite.c (scan_tree_for_params): Early return when the
4941 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
4942 (find_scop_parameters): Factor out code.
4943 (graphite_trans_bb_strip_mine): Remove dead code.
4944
49452008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4946
4947 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
4948 graphite_trans_bb_move_loop): Factor asserts.
4949 (gloog): Perform sanity checks only for ENABLE_CHECKING.
4950 Do not call calculate_dominance_info and estimate_bb_frequencies.
4951
49522008-08-20 Jan Sjodin <jan.sjodin@amd.com>
4953
4954 * graphite.c (create_loops_mapping, free_loops_mapping,
4955 create_loops_mapping_num, debug_loop_mapping_1,
4956 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
4957 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
4958 graphite_loops_mapping_add_child_num,
4959 graphite_loops_mapping_insert_child,
4960 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
4961 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
4962 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
4963 create_num_from_index, get_num_from_index,
4964 swap_loop_mapped_depth): Removed.
4965 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
4966 (free_scop): Do not call free_loops_mapping.
4967 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
4968 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
4969 get_loop_mapped_depth.
4970 (graphite_trans_bb_move_loop): Do not update the loop mapping.
4971 (graphite_trans_bb_strip_mine): Same.
4972 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
4973 (struct scop): Remove field loops_mapping.
4974
49752008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4976 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4977
4978 * graphite.c (scop_record_loop): Factor out one level of the
4979 condition by early return.
4980 (build_scop_loop_nests): Format following FSF coding style.
4981 (build_scop_dynamic_schedules): Factor out code.
4982 (scopdet_bb_info): Reindent. Default case should not be reachable.
4983
49842008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4985 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4986
4987 * graphite.c (loop_affine_expr): Check for DECL_P or struct
4988 assignments that are not handled as simple operands for now.
4989
49902008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4991 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4992
4993 * graphite.c (build_scop_bbs): Factor up code.
4994
49952008-08-20 Sebastian Pop <sebastian.pop@amd.com>
4996 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
4997
4998 * graphite.c (stmt_simple_for_scop_p): Factor code out
4999 of the loop.
5000 (enum gbb_type): New. Group all the GBB_* types under it.
5001 (is_loop_exit): Moved...
5002 (end_scop): Enable BB spliting.
5003 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
5004 * cfgloop.h (is_loop_exit): Declared.
5005
50062008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5007
5008 * doc/invoke.texi: Remove strides from examples containing
5009 DO loops when the strides are equal to 1.
5010
50112008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
5012 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5013
5014 * graphite.c (graphite_trans_scop_block): Or the result with
5015 the result from graphite_trans_loop_block.
5016 * testsuite/gcc.dg/graphite/block-1.c: New.
5017 * testsuite/gfortran.dg/graphite/block-1.f90: New.
5018 * testsuite/gfortran.dg/graphite/block-2.f: New.
5019
50202008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5021
5022 * graphite.c (graphite_transform_loops): Call cloog_initialize
5023 and cloog_finalize.
5024
50252008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5026
5027 * tree-data-ref.c) (stmt_simple_memref_p): New.
5028 * tree-data-ref.h (stmt_simple_memref_p): Declared.
5029 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
5030 (is_simple_operand): Call stmt_simple_memref_p.
5031
5032 * testsuite/gcc.dg/graphite/scop-matmult.c: Updated for not
5033 using pointer arithmetic, as this is optimized by PRE and
5034 makes the code too difficult to analyze.
5035
5036 * testsuite/gcc.dg/graphite/scop-18.c: Same.
5037
50382008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5039
5040 * gdbinit.in (pgg): New.
5041
50422008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
5043
5044 * graphite.c (graphite_trans_loop_block): Fix warning.
5045
50462008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
5047
5048 * graphite.c (graphite_trans_loop_block): Fix my merge error.
5049
50502008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
5051
5052 * graphite.c (graphite_trans_bb_block): Remove check for
5053 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
5054 Check if loop blocking is profitable for every loop, before applying
5055 the changes.
5056 (graphite_apply_transformations): Call graphite_trans_bb_block only,
5057 if flag_loop_block is set.
5058
50592008-08-14 Sebastian Pop <sebastian.pop@amd.com>
5060
5061 * graphite.c: Add some more documentation for the loop
5062 mapping.
5063
50642008-08-14 Sebastian Pop <sebastian.pop@amd.com>
5065
5066 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
5067 * graphite.c: Format on less than 80 columns.
5068 * graphite.h: Same.
5069
50702008-08-14 Sebastian Pop <sebastian.pop@amd.com>
5071
5072 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
5073
50742008-08-14 Sebastian Pop <sebastian.pop@amd.com>
5075
5076 * doc/invoke.texi (floop-block, floop-strip-mine,
5077 floop-interchange): Update documentation with examples.
5078
50792008-08-13 Sebastian Pop <sebastian.pop@amd.com>
5080
5081 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
5082 add_referenced_var.
5083 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
5084
50852008-08-13 Sebastian Pop <sebastian.pop@amd.com>
5086
5087 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
5088 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
5089 * tree-scalar-evolution.c: Revert useless changes.
5090 * tree-phinodes.c: Same.
5091 * cfghooks.c: Same.
5092 * vec.h: Same.
5093 * tree-vectorizer.h: Same.
5094 * tree-flow.h: Same.
5095 * tree-cfg.c: Same.
5096 * common.opt (fgraphite): Update documentation.
5097
50982008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
5099
5100 * doc/invoke.texi (-floop-block, -floop-strip-mine,
5101 -floop-interchange): Add more text for explaining what each of these
5102 flags is doing.
5103 * tree-into-ssa.c (gimple_vec): Moved to...
5104 * graphite.c: Include gimple.h.
5105 (gimple_vec): Moved to...
5106 (del_loop_to_cloog_loop): Removed.
5107 (loop_affine_expr): Do not call create_data_ref when the
5108 operand is a constant.
5109 (new_scop): Use free instead of del_loop_to_cloog_loop.
5110 * Makefile.in (graphite.o): Depend on GIMPLE_H.
5111 * gimple.h (gimple_vec): ... here.
5112
51132008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5114
5115 * graphite.c (scopdet_bb_info): Only allow loops with known number of
5116 latch executions.
5117 (build_loop_iteration_domains): Fail, if latch executions unknown.
5118
51192008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5120
5121 * graphite.c (add_conditions_to_domain): New.
5122 (build_scop_conditions_1): Call add_conditions_to_domain.
5123 (set_cloog_options): Allow to disable optimizations.
5124
51252008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5126
5127 * graphite.c (find_params_in_bb): Look for parameters in conditions.
5128 Do not use walk_dominator_tree.
5129 (find_scop_parameters): Do not use walk_dominator_tree.
5130
51312008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5132
5133 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
5134 (idx_record_params): Adapt.
5135 * graphite.h (scop_gimple_loop_depth): New.
5136
51372008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5138
5139 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
5140 (scan_tree_for_params): Remove value_init.
5141 (build_scop_context): Remove value_init.
5142 (build_loop_iteration_domains): Remove value_init.
5143 (schedule_to_scattering): Remove value_init.
5144 (graphite_trans_bb_strip_mine): Remove value_init.
5145
51462008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5147
5148 * gcc/graphite.c (limit_scops): New.
5149 (graphite_transform_loops): Add limit SCoPs.
5150 * gcc/testsuite/gcc.dg/graphite/scop-0.c: Update number of SCoPs.
5151 * gcc/testsuite/gcc.dg/graphite/scop-1.c: Update number of SCoPs.
5152 * gcc/testsuite/gcc.dg/graphite/scop-10.c: Update number of SCoPs.
5153 * gcc/testsuite/gcc.dg/graphite/scop-11.c: Update number of SCoPs.
5154 * gcc/testsuite/gcc.dg/graphite/scop-12.c: Update number of SCoPs.
5155 * gcc/testsuite/gcc.dg/graphite/scop-13.c: Update number of SCoPs.
5156 * gcc/testsuite/gcc.dg/graphite/scop-14.c: Update number of SCoPs.
5157 * gcc/testsuite/gcc.dg/graphite/scop-15.c: Update number of SCoPs.
5158 * gcc/testsuite/gcc.dg/graphite/scop-16.c: Update number of SCoPs.
5159 Change loop numbers.
5160 * gcc/testsuite/gcc.dg/graphite/scop-17.c: Update number of SCoPs.
5161 Change loop numbers.
5162 * gcc/testsuite/gcc.dg/graphite/scop-18.c: Update number of SCoPs.
5163 * gcc/testsuite/gcc.dg/graphite/scop-2.c: Update number of SCoPs.
5164 * gcc/testsuite/gcc.dg/graphite/scop-3.c: Update number of SCoPs.
5165 * gcc/testsuite/gcc.dg/graphite/scop-4.c: Update number of SCoPs.
5166 * gcc/testsuite/gcc.dg/graphite/scop-5.c: Update number of SCoPs.
5167 * gcc/testsuite/gcc.dg/graphite/scop-6.c: Update number of SCoPs.
5168 * gcc/testsuite/gcc.dg/graphite/scop-7.c: Update number of SCoPs.
5169 * gcc/testsuite/gcc.dg/graphite/scop-8.c: Update number of SCoPs.
5170 * gcc/testsuite/gcc.dg/graphite/scop-9.c: Update number of SCoPs.
5171 * gcc/testsuite/gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
5172
51732008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5174
5175 * graphite.c (graphite_transform_loops): Call always find_transform.
5176
51772008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
5178
5179 * graphite.c (free_loops_mapping): New.
5180 (stmt_simple_for_scop_p): Fix typo.
5181 (stmt_simple_for_scop_p): Fix tuples functions, that
5182 broke polyhedron.
5183 (free_graphite_bb): Fix some memleaks.
5184 (free_scop): Fix some memleaks.
5185 (scopdet_bb_info): Do not forget some tmp SCoPs.
5186 (find_params_in_bb): Fix some memleaks.
5187 (clast_to_gcc_expression): Fix warning.
5188
51892008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
5190
5191 * testsuite/gcc.dg/graphite/scop-16.c: Fix for 32bit.
5192 * testsuite/gcc.dg/graphite/scop-17.c: Fix for 32bit.
5193
51942008-08-04 Sebastian Pop <sebastian.pop@amd.com>
5195
5196 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
5197 Move code ifdef-ed HAVE_cloog...
5198 * graphite.c: Include toplev.h.
5199 ... here.
5200 * Makefile.in (OBJS-common): Always build graphite.o.
5201 (BACKEND): Remove @GRAPHITE@.
5202 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
5203 (graphite.o): Depend on TOPLEV_H.
5204
52052008-08-04 Sebastian Pop <sebastian.pop@amd.com>
5206
5207 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
5208 Remove typo left from polylib to ppl conversion.
5209 * graphite.c (graphite_transforms): Use sorry instead of fatal.
5210
52112008-08-03 Sebastian Pop <sebastian.pop@amd.com>
5212
5213 * toplev.c (process_options): Move the graphite loop optimization
5214 flags...
5215 * tree-ssa-loop.c (graphite_transforms): ... here.
5216 When not configured with CLooG, print to dump_file that
5217 Graphite transforms were not performed.
5218 * testsuite/gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
5219 New.
5220 * testsuite/gcc.dg/graphite/*.c: Updated all testcases to use
5221 scan-graphite-dump-times.
5222
52232008-08-03 Sebastian Pop <sebastian.pop@amd.com>
5224
5225 * graphite.c (dot_scop, dot_all_scops): Do not call system.
5226 Do not open /tmp/scop.dot and /tmp/allscops.dot.
5227
52282008-08-02 Sebastian Pop <sebastian.pop@amd.com>
5229 Jan Sjodin <jan.sjodin@amd.com>
5230
5231 * configure: Regenerated.
5232 * omp-low.c (expand_omp_sections): Remove now unused code.
5233 * config.in (HAVE_polylib): Removed.
5234 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
5235 (PPLLIBS, PPLINC): Added.
5236 * graphite.c: Replace unsigned with int wherever possible.
5237 Don't access Cloog's data structures, but use accessor functions.
5238 Clast's stmt->type is now implemented as a vtable: change the
5239 switches of stmt->type into ifs.
5240 (polylib/polylibgmp.h): Don't include.
5241 (initialize_dependence_polyhedron,
5242 initialize_data_dependence_polyhedron, is_empty_polyhedron,
5243 statement_precedes_p, test_dependence, build_rdg_all_levels,
5244 dump_dependence_graph): Removed until this code is cleaned up
5245 or ported to Cloog.
5246 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
5247 (POLYLIBINC): Renamed PPLINC.
5248
52492008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
5250 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5251 Jan Sjodin <jan.sjodin@amd.com>
5252
5253 Finish the merge and tuplification of graphite.
5254
52552008-07-24 Sebastian Pop <sebastian.pop@amd.com>
5256 Jan Sjodin <jan.sjodin@amd.com>
5257
5258 Partial merge from mainline (138072:138275).
5259 * graphite.c still has to be tuplified.
5260
52612008-07-29 Jan Sjodin <jan.sjodin@amd.com>
5262
5263 * graphite.c (graphite_loops_mapping_max_loop_num): New.
5264 (create_num_from_index): New.
5265 (get_num_from_index): Also pass in the graphite BB.
5266 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
5267 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
5268 (graphite_trans_bb_strip_mine): Call create_num_from_index.
5269 (is_interchange_valid): Return false when failing.
5270 * graphite.h (struct num_map): New.
5271 (struct graphite_bb): New field num_map.
5272 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
5273
52742008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
5275
5276 * graphite.c (dump_gbb_conditions): Print also conditions like
5277 "if (a)". Remove dublicated code and use print_generic_expr ().
5278 (stmt_simple_for_scop_p): Only allow conditions we can handle
5279 {<, <=, >, >=}.
5280
52812008-07-25 Jan Sjodin <jan.sjodin@amd.com>
5282
5283 * graphite.h (struct scop): Removed new_ivs field.
5284 (SCOP_NEWIVS): Deleted.
5285 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
5286 clast_to_gcc_expression, graphite_create_new_loop):
5287 Removed use of new_ivs.
5288
52892008-07-25 Jan Sjodin <jan.sjodin@amd.com>
5290
5291 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
5292 create_loops_mapping_num, debug_loop_mapping_1): New.
5293 (debug_loop_mapping): Call debug_loop_mapping_1.
5294 (get_loop_mapping_for_num,
5295 graphite_loops_mapping_add_child,
5296 graphite_loops_mapping_add_child_num,
5297 graphite_loops_mapping_insert_child,
5298 graphite_loops_mapping_parent,
5299 split_loop_mapped_depth_for_num,
5300 loop_mapped_depth_split_loop): New.
5301 (increment_loop_mapped_depths): Removed.
5302 (swap_loop_mapped_depth_for_num): Reimplemented.
5303 (new_scop): Call create_loops_mapping.
5304 (scop_record_loop): Call graphite_loops_mapping_insert_child.
5305 (translate_clast): Pass the old loop father in parameter, and pass
5306 it to get_old_iv_from_ssa_name.
5307 (remove_edges_around_useless_blocks, can_generate_code_stmt,
5308 can_generate_code, can_generate_for_scop): New.
5309 (graphite_trans_bb_block): Returns false when it fails to transform.
5310 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
5311
53122008-07-25 Sebastian Pop <sebastian.pop@amd.com>
5313
5314 Reverted all the changes related to the streamization and
5315 loop fusion.
5316 These changes are now tracked in the streamization branch.
5317
53182008-07-25 Sebastian Pop <sebastian.pop@amd.com>
5319 Jan Sjodin <jan.sjodin@amd.com>
5320
5321 * graphite.c (gbb_compare): Correctly constify.
5322 (gbb_can_be_ignored): Indent.
5323 (graphite_trans_scop_swap_1and2): Add legality check.
5324 Remove dead FIXMEs.
5325
53262008-07-25 Sebastian Pop <sebastian.pop@amd.com>
5327
5328 Remove fallouts from "Reverted the Condate changes".
5329 * tree.h: Remove unused decl.
5330 * testsuite/gcc.dg/tree-checker: Same.
5331 * timevar.def: Remove counter.
5332
53332008-07-24 Sebastian Pop <sebastian.pop@amd.com>
5334
5335 * Merge from mainline (135673:138072).
5336
5337 Reverted the MIRO changes (from 2008-04-05) that are now
5338 tracked in the miro branch.
5339 * tree-bounds.c: Removed.
5340 * tree-bounds.h: Removed.
5341
5342 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
5343 are now tracked in the condate branch.
5344 * tree-check.c: Removed.
5345 * tree-match.c: Removed.
5346 * condate.y: Removed.
5347
53482008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5349
5350 * common.opt: New user flag -floop-block, -floop-strip-mine
5351 and -floop-interchange.
5352 * toplev.c (process_options): Enable -fgraphite pass if any one of the
5353 graphite loop optimization flags is turned on.
5354 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
5355 flag_loop_strip_mine and flag_loop_interchange checks before
5356 optimizations.
5357 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
5358 -floop-strip-mine and -floop-interchange.
5359 * testsuite/gcc.dg/graphite/block-0.c: Add -floop-block and remove
5360 -fgraphite.
5361 * testsuite/gcc.dg/graphite/scop-16.c: Ditto.
5362 * testsuite/gcc.dg/graphite/scop-17.c: Ditto.
5363 * testsuite/gcc.dg/graphite/scop-18.c: Ditto.
5364
53652008-07-23 Jan Sjodin <jan.sjodin@amd.com>
5366 Sebastian Pop <sebastian.pop@amd.com>
5367
5368 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
5369 (create_empty_loop_on_edge): More fixes.
5370 * tree-phinodes.c (resize_phi_node): Extern.
5371 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
5372 * cfghooks.c (update_dominator_information): New split from
5373 split_edge.
5374 * tree-vectorizer.c (rename_variables_in_bb): Extern.
5375 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
5376 successor of the function entry block.
5377
5378 * graphite.c: Include pointer-set.h.
5379 (debug_loop_mapping, increment_loop_mapped_depths,
5380 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
5381 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
5382 swap_loop_mapped_depth_for_num, get_num_from_index,
5383 swap_loop_mapped_depth, loop_iv_stack_debug,
5384 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
5385 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
5386 get_old_iv_from_ssa_name): New.
5387 (new_scop): Initialize SCOP_LOOPS_MAPPING.
5388 (free_scop): Free SCOP_LOOPS_MAPPING.
5389 (scop_record_loop): Record old ivs.
5390 (create_var_name): Removed.
5391 (initialize_cloog_names): Allocate double space in case strip mine
5392 applies to all loops once.
5393 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
5394 (clast_to_gcc_expression): Same. Implement more clast to gimple
5395 translation.
5396 (graphite_create_new_loop): Pass in ivstack.
5397 (remove_all_edges): Pass in the construction_edge.
5398 (graphite_remove_iv): Removed.
5399 (graphite_rename_ivs, graphite_rename_ivs_stmt,
5400 remove_cond_exprs): Rewritten.
5401 (move_phi_nodes): New.
5402 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
5403 (translate_clast): Pass in ivstack. Rewrite some cases.
5404 (set_cloog_options, debug_clast_stmt): New.
5405 (find_transform): Use set_cloog_options.
5406 (outermost_loop_layer): Removed.
5407 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
5408 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
5409 mark_old_loops, remove_dead_loops): New.
5410 (gloog): Rewritten.
5411 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
5412 (const_column_index, get_first_matching_sign_row_index,
5413 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
5414 get_upper_bound): New.
5415 (graphite_trans_bb_strip_mine): Also update the iv map.
5416
5417 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
5418 (struct name_tree): Add a loop field.
5419 (struct scop): Add a graphite_loops_mapping field.
5420 (SCOP_LOOPS_MAPPING): New.
5421 (debug_clast_stmt): Declare.
5422 * lambda.h (find_induction_var_from_exit_cond): Declare.
5423 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
5424 * cfgloop.h (update_dominators_in_loop): Removed declaration.
5425 (create_empty_loop_on_edge): Updated.
5426 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
5427 rename_variables_in_bb): Declare.
5428 * tree-cfg.c (remove_bb): Extern.
5429
5430 * testsuite/gcc.dg/graphite/block-0.c: New.
5431
54322008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5433 Sebastian Pop <sebastian.pop@amd.com>
5434
5435 * graphite.c (strip_mine_profitable_p): New.
5436 (graphite_trans_bb_block): Disable strip mining if not profitable.
5437
5438 * testsuite/gcc.dg/graphite/scop-18.c: New.
5439 * testsuite/gcc.dg/graphite/scop-17.c: Fixed.
5440 * testsuite/gcc.dg/graphite/scop-16.c: Fixed.
5441
54422008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
5443 Jan Sjodin <jan.sjodin@amd.com>
5444 Sebastian Pop <sebastian.pop@amd.com>
5445
5446 * graphite.c (is_interchange_valid): New.
5447 (graphite_trans_bb_block): Check loop nest of basic block for legality
5448 of interchange.
5449
5450 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
5451 outer_most_loop, gbb_outer_most_loop_index): New.
5452
5453 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
5454 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
5455 * testsuite/gcc.dg/graphite/scop-16.c: New.
5456 * testsuite/gcc.dg/graphite/scop-17.c: New.
5457
54582008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
5459
5460 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
5461 (graphite_trans_scop_block): Ignore SCoPs without bbs.
5462
54632008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
5464
5465 * graphite.c (new_scop): Initialize SCOP_EXIT.
5466 (scopdet_info): Add.
5467 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
5468 (build_scops_1): Cleanup, bugfixes.
5469 (build_scops): Cleanup.
5470
5471 * testsuite/gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
5472 * testsuite/gcc.dg/graphite/scop-15.c: Add SCoP numbers.
5473
54742008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
5475
5476 * testsuite/gfortran.dg/graphite/scop-1.f: Update to reduced test case.
5477
5478 * testsuite/gfortran.dg/graphite/graphite.exp: Use
5479 DEFAULT_GRAPHITE_FLAGS.
5480
5481 * testsuite/gcc.dg/graphite/scop-15.c: Update to reduced test case.
5482
54832008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
5484
5485 * graphite.c (scan_tree_for_params): Do not assert any more if
5486 MULT_EXPR parameter is negative.
5487
5488 * testsuite/gfortran.dg/graphite/scop-1.f: New.
5489
5490 * testsuite/gfortran.dg/graphite/graphite.exp: New.
5491
5492 * testsuite/gcc.dg/graphite/scop-15.c: New.
5493
54942008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
5495
5496 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
5497
54982008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
5499
5500 * graphite.c (graphite_trans_bb_swap_loops): Rename from
5501 graphite_swap_loops.
5502 (graphite_trans_bb_move_loop): New.
5503 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
5504 (graphite_trans_bb_block): New.
5505 (graphite_trans_loop_block): New.
5506 (graphite_trans_scop_swap_1and2): Rename from
5507 graphite_trans_swap_1and2.
5508 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
5509 (graphite_trans_scop_block): New.
5510 (graphite_apply_transformations): Rename from
5511 graphite_transformations.
5512
5513 * testsuite/gcc.dg/graphite/scop-matmult.c: New.
5514
55152008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
5516
5517 * graphite.c (gbb_compare): New.
5518 (graphite_sort_gbbs): New.
5519 (gbb_can_be_ignored): New.
5520 (scop_remove_ignoreable_gbbs): New.
5521 (graphite_transformations): Cleanup and add
5522 scop_remove_ignoreable_gbbs.
5523 * lambda.h (lambda_vector_compare): New.
5524
55252008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
5526
5527 * graphite.c (print_graphite_bb): Correct printing of static schedule.
5528 (graphite_swap_loops): int -> unsigned
5529 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
5530 (graphite_transformations): New.
5531 (graphite_transform_loops): Move to graphite_transformations.
5532 * graphite.h (gbb_nb_loops): Return unsigned.
5533
55342008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
5535
5536 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
5537 the domain matrix. This makes scop-0.c work again.
5538
55392008-06-20 Richard Guenther <rguenther@suse.de>
5540
5541 * graphite.h: Adjust copyright to GPLv3.
5542 * graphite.c: Likewise.
5543 (stmt_simple_memref_for_scop_p): Split out from ...
5544 (stmt_simple_for_scop_p): ... here. Fix handling of calls
5545 and simplify.
5546 (get_bb_type): Optimize.
5547 (is_pred): Remove.
5548 (is_bb_addable): Fix memleak, replace is_pred call with
5549 single_pred.
5550 (build_scops): Use current_loops.
5551 (param_index): Fix memleak.
5552
55532008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5554
5555 * graphite.c: Fix formatting.
5556
55572008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5558
5559 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
5560 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
5561 (create_var_name, save_var_name): Newly defined functions.
5562 (initialize_cloog_names): Part of the code factored out to
5563 save_var_name.
5564 (clast_to_gcc_expression): Now handles the case of clast_red_sum
5565 in clast_reduction statement.
5566 (graphite_create_new_loop): Now takes a new parameter
5567 for outer_loop.
5568 (translate_clast): Now also takes the context_loop and bb_exit
5569 parameters. Rewritten the code so that it creates a gimple code
5570 inside the given context.
5571 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
5572 remove_cond_expr, disconnect_cond_expr,
5573 disconnect_virtual_phi_nodes): Newly defined functions.
5574 * graphite.h (struct scop): added old_ivs vector.
5575 SCOP_OLDIVS: New macro.
5576
55772008-06-19 Sebastian Pop <sebastian.pop@amd.com>
5578
5579 * cfgloopmanip.c: Add missing function comments, fix formatting.
5580
55812008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5582
5583 * cfgloopmanip.c (update_dominators_in_loop): Defined.
5584 (create_empty_loop_on_edge): Defined.
5585 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
5586 instead of void.
5587 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
5588 (update_dominators_in_loop): Declared as extern
5589 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
5590
55912008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
5592
5593 * graphite.c (print_graphite_bb): Allow changing number of loops
5594 in SCoP domain.
5595 (initialize_cloog_names): Allow changing number of loops.
5596 (build_cloog_prog): Simplify.
5597 (find_transform): Enable cloog option --strides.
5598 (graphite_swap_loops): New.
5599 (graphite_strip_mine_loop): New.
5600 (graphite_trans_swap_1and2): New.
5601 (graphite_trans_strip): New.
5602 (graphite_transform_loops): Add graphite_trans_strip.
5603 * graphite.h (scop_max_loop_depth): New.
5604
56052008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
5606
5607 * graphite.c (build_scop_iteration_domain): Remove forgotten
5608 line. (Fixes compile)
5609
56102008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
5611
5612 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
5613 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
5614 (build_bb_loops): New.
5615 (graphite_transform_loops): Add build_bb_loops.
5616 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
5617 numbers.
5618 * graphite.h (graphite_bb): Add loops.
5619 (gbb_nb_loops): New.
5620 (gbb_loop_at_index): New.
5621 (gbb_loop_index): New.
5622 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
5623 using nb_params_in_scop.
5624
56252008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
5626
5627 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
5628 (build_scop_canonical_schedules): Build minimized schedule.
5629 (schedule_to_scattering): Adapt to minimized schedule.
5630 * graphite.h (graphite_bb): Add/Update descriptions.
5631
56322008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
5633 Tobias Grosser <grosser@fim.uni-passau.de>
5634
5635 * graphite.c (print_graphite_bb): Add condition printing.
5636 (dump_value): New.
5637 (dump_gbb_conditions): New.
5638 (build_scop_conditions_1): New.
5639 (build_scop_conditions): New.
5640 * graphite.h (graphite_bb): Add conditions.
5641
56422008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
5643
5644 * graphite.c (print_graphite_bb):
5645 (free_graphite_bb): New.
5646 (free_scop): Free bbs.
5647 (get_bb_type): Free doms.
5648 (build_scop_context): Free context matrix.
5649 (build_loop_iteration_domains): Remove unused code.
5650 (build_cloog_prog): Free scattering function and blocklist.
5651 (find_transform): Free options.
5652
56532008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
5654
5655 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
5656 Remove unnecessery cloog data structures. Make a copy of the domain
5657 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
5658 unnecessary cloog data structures. Fix memory leaks. Remove insert
5659 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
5660 used.
5661 (build_scop_iteration_domain): Remove unnecessary cloog
5662 data structures. Fix memory leaks.
5663 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
5664 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
5665
56662008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
5667
5668 * graphite.c (find_scop_params): Remove initialize_cloog_names.
5669
56702008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
5671
5672 * graphite.c (end_scop): Style fix.
5673 (schedule_to_scattering): Style and comment fix.
5674
56752008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
5676 * graphite.c (print_graphite_bb): Fix definiton of
5677 schedule_to_scattering.
5678 (initialize_cloog_names): Change nb_scattdims to max loop
5679 depth in SCoP.
5680 (schedule_to_scattering): Take parameter for number of scattering
5681 dimensions.
5682 (build_cloog_prog): Only build as much scattering dimensions as
5683 necessary.
5684
56852008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
5686
5687 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
5688 in polyhedron/aermod.f90.
5689
56902008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
5691 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
5692 Harsha Jagasia <harsha.jagasia@amd.com>
5693
5694 * graphite.c (is_bb_addable): Fix segfault.
5695
56962008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
5697
5698 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
5699 with multiple exits and conditional handling in edge cases.
5700 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
5701
5702 * testsuite/gcc.dg/graphite/scop-14.c: New.
5703
57042008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
5705 Adrien Eliche <aeliche@isty.uvsq.fr>
5706
5707 * graphite.c (is_bb_addable): Add more comments and enhance
5708 readablity of the source code. Fix memory leak.
5709 (is_loop_exit): Fix memory leak.
5710
57112008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
5712
5713 * graphite.c (first_loop_in_scop): Deleted.
5714 (setup_cloog_loop): Only walk the loop chain for inner loops.
5715 (build_scop_iteration_domain): Execute setup_cloog_loop for
5716 all loops in the first layer.
5717
57182008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
5719
5720 * graphite.c (scan_tree_for_params): Change the way params are
5721 added to be indepenent of the number of loops.
5722 (setup_cloog_loop): Revert to short matrix format. Fix parameter
5723 handling.
5724 (build_cloog_prog): Revert to short matrix format.
5725
57262008-06-05 Sebastian Pop <sebastian.pop@amd.com>
5727 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
5728
5729 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
5730 warning.
5731
57322008-06-05 Sebastian Pop <sebastian.pop@amd.com>
5733
5734 * graphite.c (nb_data_refs_in_scop): New.
5735 (graphite_transform_loops): Print more stats: number of
5736 loops, basic blocks and data references per scop.
5737
57382008-06-04 Sebastian Pop <sebastian.pop@amd.com>
5739 Jan Sjodin <jan.sjodin@amd.com>
5740
5741 * graphite.c (loop_affine_expr, idx_record_params,
5742 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
5743 instead of instantiate_parameters.
5744
57452008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
5746
5747 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
5748 add support for parameters, add STATIC_SCHEDULE at the right places,
5749 cleanup.
5750
57512008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
5752
5753 * graphite.c (build_scop_loop_nests): Only add the loops, that
5754 are contained completely in the SCoP.
5755 (build_cloog_prog): Disable scattering, until schedule_to_scattering
5756 and the domains are fixed.
5757 (build_scop_canonical_schedules): Add support for bbs not contained
5758 in any SCoP.
5759
57602008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
5761
5762 * graphite.h (scop_contains_loop): Update comments to match
5763 the actual behavior.
5764 (scop_contains_loop): New.
5765 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
5766
57672008-06-04 Sebastian Pop <sebastian.pop@amd.com>
5768
5769 * graphite.c (get_bb_type): On function body, i.e. loop_0,
5770 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
5771 as GBB_COND_HEADER.
5772
57732008-06-04 Sebastian Pop <sebastian.pop@amd.com>
5774 Tobias Grosser <grosser@fim.uni-passau.de>
5775
5776 * graphite.c (graphite_transform_loops): Early return when
5777 there are no loops in the function.
5778
57792008-05-31 Sebastian Pop <sebastian.pop@amd.com>
5780 Jan Sjodin <jan.sjodin@amd.com>
5781
5782 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
5783 offset of the last loop.
5784 (setup_cloog_loop): Copy the entire outer constraint matrix.
5785
57862008-05-31 Sebastian Pop <sebastian.pop@amd.com>
5787 Jan Sjodin <jan.sjodin@amd.com>
5788
5789 * graphite.c (stmt_in_scop_p, function_parameter_p,
5790 invariant_in_scop_p): Removed.
5791 (scan_tree_for_params): Can be used with no constraint
5792 matrix for gathering parameters.
5793 (idx_record_params): Don't use idx_record_param, instead use
5794 scan_tree_for_params.
5795 (find_scop_parameters): Same.
5796 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
5797 Fix the size of loop domains.
5798 (schedule_to_scattering): Exit when the outer loop is not in scop.
5799 (find_transform): Enable build_cloog_prog.
5800
58012008-05-31 Sebastian Pop <sebastian.pop@amd.com>
5802 Jan Sjodin <jan.sjodin@amd.com>
5803
5804 * graphite.c (schedule_to_scattering): Make scattering domains
5805 uniformly of the same size, as required by CLooG 0.14.0 and before.
5806
58072008-05-31 Sebastian Pop <sebastian.pop@amd.com>
5808 Jan Sjodin <jan.sjodin@amd.com>
5809
5810 * graphite.c (schedule_to_scattering): Rewrite, correct the
5811 translation of the scheduling function to scattering.
5812 (build_cloog_prog): Call schedule_to_scattering only once.
5813 * graphite.h (scop_loop_index): Do not fail for loops not
5814 in the scop: return -1.
5815
58162008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
5817
5818 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
5819 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
5820 (setup_cloog_loop): Export GBB_DOMAIN.
5821 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
5822 able to rebuild the original control flow.
5823 * graphite.h (graphite_bb): Add domain field and access macro.
5824 (GBB_DOMAIN): New.
5825
58262008-05-30 Sebastian Pop <sebastian.pop@amd.com>
5827
5828 * graphite.c (debug_gbb): New.
5829 (print_scop, build_graphite_bb): Use SCOP_BBS.
5830 (build_scop_bbs): Reimplemented.
5831 (dfs_bb_in_scop_p): Removed.
5832 (build_scop_loop_nests): Reorder loops inserted in
5833 SCOP_LOOP_NEST: outer loops should come first.
5834 (build_scop_canonical_schedules): Reinitialize at zero
5835 the components of the SCOP_STATIC_SCHEDULE for the loops
5836 that have already been parsed.
5837
5838 * graphite.h (debug_gbb): Declared.
5839
58402008-05-30 Sebastian Pop <sebastian.pop@amd.com>
5841 Jan Sjodin <jan.sjodin@amd.com>
5842
5843 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
5844 (graphite_loop_to_gcc_loop): Removed.
5845 (remove_all_edges): New.
5846 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
5847 (gloog): Remove useless code.
5848
58492008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
5850
5851 * graphite.c (get_bb_type): Reworked. We distinguish between
5852 loops with one or multiple exits.
5853 (is_loop_exit): New.
5854 (is_pred): New.
5855 (is_bb_addable): Rework condition handling, now support for case
5856 case statements and loops with multiple exits.
5857
5858 * testsuite/gcc.dg/graphite/scop-11.c: New.
5859 * testsuite/gcc.dg/graphite/scop-12.c: New.
5860 * testsuite/gcc.dg/graphite/scop-13.c: New.
5861
58622008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
5863
5864 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
5865 we have too many colors.
5866
58672008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
5868
5869 * doc/invoke.texi (-ftree-loop-fusion): Document.
5870 * tree-pass.h (pass_loop_fusion): Declared.
5871 * tree-loop-fusion.c: New.
5872 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
5873 * tree-data-ref.c (find_data_references_in_loop): Make extern.
5874 * tree-data-ref.h (find_data_references_in_loop): Declared.
5875 * common.opt (ftree-loop-fusion): Declared.
5876 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
5877
58782008-05-21 Sebastian Pop <sebastian.pop@amd.com>
5879
5880 * graphite.c (build_access_matrix): Fix typo from the merge.
5881
58822008-05-20 Sebastian Pop <sebastian.pop@amd.com>
5883
5884 * Merge from mainline (130800:135673).
5885
58862008-05-07 Sebastian Pop <sebastian.pop@amd.com>
5887
5888 * graphite.c (end_scop): The exit of the scop is not part of the scop.
5889 Update dominators after splitting.
5890
58912008-05-07 Sebastian Pop <sebastian.pop@amd.com>
5892
5893 * graphite.c (is_bb_addable): Return the harmful statement.
5894 Factor up some code.
5895 (end_scop): New. Splits end of scope bbs on a harmful statement.
5896 (build_scops_1): Call end_scop.
5897
58982008-05-07 Sebastian Pop <sebastian.pop@amd.com>
5899
5900 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
5901 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
5902 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
5903 build_scops_1): Removed.
5904 (build_scops_2): Renamed build_scops_1.
5905
59062008-05-06 Sebastian Pop <sebastian.pop@amd.com>
5907
5908 * graphite.c: Fix formatting.
5909
59102008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
5911
5912 * graphite.c (get_bb_type): New.
5913 (move_scops): New.
5914 (build_scops_2): New.
5915 (is_bb_addable): New.
5916 (build_scops): Switch the scop detection.
5917 (build_scop_bbs): Add entry bb to scop.
5918 * graphite.h (struct scop): Update comment.
5919
59202008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
5921
5922 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
5923 more colors.
5924
59252008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
5926
5927 * testsuite/gcc.dg/graphite/scop-1.c: Update.
5928 * testsuite/gcc.dg/graphite/scop-2.c: Update.
5929 * testsuite/gcc.dg/graphite/scop-4.c: Update.
5930 * testsuite/gcc.dg/graphite/scop-5.c: Add.
5931 * testsuite/gcc.dg/graphite/scop-6.c: Add.
5932
59332008-05-06 Sebastian Pop <sebastian.pop@amd.com>
5934
5935 * testsuite/gcc.dg/graphite/scop-0.c: Add.
5936 * testsuite/gcc.dg/graphite/scop-7.c: Add.
5937 * testsuite/gcc.dg/graphite/scop-8.c: Add.
5938 * testsuite/gcc.dg/graphite/scop-9.c: Add.
5939 * testsuite/gcc.dg/graphite/scop-10.c: Add.
5940
59412008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
5942
5943 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
5944 Check affine expressions depending on the outermost loop
5945 instead of a scop.
5946 (stmt_simple_for_scop_p): Same.
5947 (harmfule_stmt_in_scop): Same.
5948
59492008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
5950
5951 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
5952 mark entry and exit, that are not part of the SCoP and update HTML
5953 formatting.
5954
59552008-04-25 Sebastian Pop <sebastian.pop@amd.com>
5956
5957 * graphite.c (basic_block_simple_for_scop_p): Renamed
5958 harmful_stmt_in_bb.
5959 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
5960 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
5961 (all_preds_visited_p, all_succs_visited_p,
5962 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
5963 scop_end_loop): New.
5964 (build_scops): Do not use dfs_enumerate_from.
5965
5966 * testsuite/gcc.dg/graphite/scop-{1,2,4}.c: Updated.
5967
59682008-04-23 Sebastian Pop <sebastian.pop@amd.com>
5969
5970 * graphite.c: Add comments to functions that are missing a
5971 description.
5972 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
5973
59742008-04-23 Sebastian Pop <sebastian.pop@amd.com>
5975
5976 * graphite.c (nb_params_in_scop): Moved...
5977 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
5978 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
5979 (clast_to_gcc_expression): Reduce column size to less than 80.
5980 (graphite_create_iv): Return the new name of the IV.
5981 (find_transform): Set options->esp and options->cpp.
5982 (gloog): Comment out the invalidation of the old loop code.
5983 (initialize_dependence_polyhedron): Replace scop_nb_params with
5984 nb_params_in_scop.
5985
5986 * graphite.h (nb_params_in_scop): ... here.
5987 (scop_nb_params): Removed.
5988 (loop_domain_dim): Return something even when the loop was not
5989 found in the hash table: avoid ICEing on all the graphite.exp
5990 testcases.
5991
59922008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5993
5994 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
5995
5996 * graphite.c (build_scop_dynamic_schedules): Schedule is built
5997 according to nesting level.
5998 (find_scop_parameters): Call instantiate_parameters.
5999 (scan_tree_for_params): Extend it to handle general affine bounds.
6000 Inner loop bound can depend on outer loop induction variable.
6001 (setup_cloog_loop): tmp variable is allocated on stack. Call
6002 instantiate_parameters with respect to outermost_loop_in_scop.
6003 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
6004 graphite.h.
6005 (create_empty_loop): Function loopify should be given edge
6006 probability, instead of edge frequency. Dominance relation from
6007 switch_bb to loop_header.
6008 (clast_to_gcc_expression): Added handling of clast_reduction node.
6009 (gloog): New functionality for removing old loop.
6010 (test_dependence): Factored out from build_rdg_all_levels.
6011 (build_rdg_all_levels): Dependence testing factored out to
6012 test_dependence function.
6013
6014 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
6015 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
6016 from graphite.c
6017
60182008-04-07 Sebastian Pop <sebastian.pop@amd.com>
6019
6020 * graphite.c (free_scop, param_index, initialize_cloog_names,
6021 nb_params_in_scop): Use name_tree map instead of just a tree
6022 for keeping track of the variable name associated to that tree.
6023 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
6024 clast_to_gcc_expression, graphite_create_iv,
6025 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
6026 graphite_stmt_to_gcc_stmt): New.
6027 (gloog): Call these.
6028 * graphite.h (struct name_tree): New.
6029 (struct scop): Use name_tree instead of tree for params.
6030 Store a vector of name_tree for new_ivs.
6031 (SCOP_NEWIVS): New.
6032 (scop_nb_params): Use name_tree instead of tree.
6033
60342008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
6035 Sebastian Pop <sebastian.pop@amd.com>
6036
6037 * tree-bounds.c: New.
6038 * tree-bounds.h: New.
6039 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
6040 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
6041 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
6042 flag_mudflap.
6043 * gcc.c: Same.
6044 * toplev.c: Same.
6045 * c-cppbuiltin.c: Same.
6046 * c-pragma.c: Same.
6047 * common.opt: Same.
6048 * varasm.c: Same.
6049 * tree-outof-ssa.c: Same.
6050 * c-common.c: Same.
6051 * Makefile.in: Same.
6052
60532008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
6054 Sebastian Pop <sebastian.pop@amd.com>
6055
6056 * tree-loop-distribution.c (remaining_stmts,
6057 upstream_mem_writes): Removed static variables.
6058 (copy_loop_before, create_bb_after_loop,
6059 mark_nodes_having_upstream_mem_writes, free_rdg_components,
6060 rdg_build_components, rdg_build_partitions,
6061 dump_rdg_partitions): Extern.
6062 (generate_loops_for_partition, generate_code_for_partition): Do not
6063 return a bool.
6064 (already_processed_vertex_p, predecessor_has_mem_write,
6065 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
6066 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
6067 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
6068 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
6069 Pass remaining_stmts and upstream_mem_writes as parameters.
6070 (rdg_component): Moved...
6071 (build_rdg_partition_for_component): Do not aggregate components when
6072 flag_streamize_loops is set.
6073 (gen_sequential_loops): New.
6074 (ldist_gen): Call gen_sequential_loops.
6075
6076 * tree-pass.h (pass_loop_streamization): Declared.
6077
6078 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
6079 basic blocks when loops structures exist.
6080
6081 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
6082
6083 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
6084
6085 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
6086 eliminate_local_variables_stmt, eliminate_local_variables,
6087 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
6088 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
6089 of code delimited by two edges in the CFG.
6090 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
6091 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
6092 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
6093 the case of parallelisation of reductions.
6094 (create_loop_fn): Extern.
6095 (create_omp_parallel_region): New.
6096
6097 * tree-data-ref.c (dump_data_dependence_relation): Don't call
6098 dump_data_reference for printing dra and drb.
6099 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
6100 RDGE_RELATION.
6101 (build_rdg): Don't call free_dependence_relations for the moment, as
6102 we attach dependence relations on each edge of the RDG.
6103 To be fixed later.
6104
6105 * tree-data-ref.h (rdg_component): ...here.
6106 (struct rdg_edge): New field ddr_p relation.
6107 (RDGE_RELATION): New.
6108 (create_bb_after_loop, copy_loop_before,
6109 mark_nodes_having_upstream_mem_writes, rdg_build_components,
6110 rdg_build_partitions, dump_rdg_partitions,
6111 free_rdg_components): Declared.
6112
6113 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
6114 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
6115
6116 * tree-loop-streamization.c: New.
6117
6118 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
6119 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
6120
6121 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
6122
6123 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
6124
6125 * passes.c: Schedule pass_loop_streamization.
6126
61272008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
6128
6129 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
6130 update comment.
6131
61322008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
6133
6134 * graphite.c (dot_all_scops): Update formatting.
6135 Bbs can now be part of more than one SCoP.
6136
61372008-03-04 Sebastian Pop <sebastian.pop@amd.com>
6138
6139 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
6140 malloc problems.
6141 (loop_domain_dim): Check for unregistered toplev SCOP loop.
6142 * graphite.h (loop_to_cloog_loop): New.
6143
61442008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6145
6146 * graphite.c (loop_domain_dim, ref_nb_loops,
6147 loop_iteration_vector_dim): New.
6148 (build_access_matrix_with_af, build_access_matrix,
6149 initialize_dependence_polyhedron): Fixed for new matrix layout.
6150 No longer assume that all iteration domains are of the same
6151 dimensionality.
6152
61532008-03-02 Sebastian Pop <sebastian.pop@amd.com>
6154
6155 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
6156 defined in a loop at depth 0 is invariant.
6157 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
6158 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
6159 be called at loop depth 0.
6160
6161 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
6162 a parameter.
6163 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
6164 (down_open_scop): Removed.
6165 (loop_in_scop_p): Redefined.
6166 (scop_affine_expr): New argument: scop.
6167 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
6168 a harmful statement ending a scop.
6169 (basic_block_simple_for_scop_p): New argument: scop.
6170 (get_loop_start): Removed.
6171 (new_scop): Initialize SCOP_LOOPS.
6172 (free_scop): Free SCOP_LOOPS.
6173 (succs_at_same_depth, preds_at_same_depth): New.
6174 (end_scop): Test the validity of a scop.
6175 (add_dominators_to_open_scops): New.
6176 (test_for_scop_bound): Call add_dominators_to_open_scops.
6177 Add cases for opening and closing multiple scops.
6178 (build_scops, build_scop_bbs): Iterate over basic blocks in
6179 depth first order.
6180 (build_graphite_bb): Pass scop directly.
6181 (dfs_bb_in_scop_p): New.
6182 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
6183 several times.
6184 (nb_loops_around_gb): Use loop_in_scop_p.
6185 (schedule_to_scattering): Disabled for the moment the code computing
6186 the "textual order for outer loop".
6187
6188 * graphite.h (struct scop): New field loops.
6189 (SCOP_LOOPS): New.
6190 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
6191
6192 * testsuite/gcc.dg/graphite/scop-{1,...,7}.c: Updated.
6193
61942008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
6195 Sebastian Pop <sebastian.pop@amd.com>
6196
6197 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
6198 * common.opt (fstreamize-loops): New.
6199 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
6200 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
6201 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
6202 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
6203
62042008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6205
6206 * tree-data-ref.c (build_empty_rdg): New.
6207 (build_rdg): Use it.
6208 * tree-data-ref.h (build_empty_rdg): Declared.
6209 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
6210 (find_vertex_for_stmt): Removed.
6211 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
6212
62132008-02-21 Sebastian Pop <sebastian.pop@amd.com>
6214
6215 * tree-loop-distribution.c (generate_builtin): After cancelling the
6216 loop tree, also delete basic blocks.
6217 (rdg_flag_uses): Stop recursion when a vertex has already been
6218 processed.
6219
62202008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6221
6222 * graphite.c (build_scop_alpha): Removed.
6223 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
6224 and dump_dependence_graph to avoid compiler warnings.
6225
62262008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6227
6228 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
6229 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
6230 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
6231 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
6232 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
6233 (initialize_dependence_polyhedron, find_vertex_for_stmt,
6234 initialize_data_dependence_polyhedron, is_empty_polyhedron,
6235 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
6236 dump_dependence_graph): New.
6237 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
6238 (GBB_ALPHA): New.
6239 (struct scop): New field loop2cloog_loop.
6240 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
6241 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
6242
62432008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6244
6245 * graphite.c (build_graphite_bb): Fix initialization
6246 of the graphite basic block.
6247
62482008-02-05 Sebastian Pop <sebastian.pop@amd.com>
6249
6250 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
6251 loop domain matrix. Pass in the number of loops contained in the
6252 constraint matrix.
6253 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
6254 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
6255 loops that are not surrounding the current loop are not represented
6256 in the domain constraint matrix.
6257 (build_scop_iteration_domain): Initial domain constraint matrix
6258 contains only the eq/ineq, cst, and scop parameters columns.
6259
62602008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
6261
6262 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
6263 (print_graphite_bb): Print scattering.
6264
62652008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
6266
6267 * graphite.c (initialize_cloog_names): Initialize names of
6268 scattering variables.
6269
62702009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
6271
6272 * graphite.c (dot_all_scops_1): Disable debug output while
6273 printing graph.
6274
62752008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
6276
6277 * graphite.c (find_transform): Change cloog output language to C.
6278
62792008-01-27 Sebastian Pop <sebastian.pop@amd.com>
6280
6281 * tree-loop-distribution.c (generate_memset_zero,
6282 generate_builtin, generate_code_for_partition,
6283 rdg_flag_all_uses): New.
6284 (rdg_flag_uses): Gather in the same partition the statements defining
6285 the VUSES of the current statement.
6286 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
6287 Gather in the same partition not only the stores to the same memory
6288 access, but also the reads.
6289 (ldist_generate_loops): Renamed ldist_gen.
6290
62912008-01-24 Sebastian Pop <sebastian.pop@amd.com>
6292 Tobias Grosser <grosser@fmi.uni-passau.de>
6293
6294 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
6295 next pointer, don't use the inner pointer.
6296
62972008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
6298
6299 * graphite.c (dot_all_scops, dot_all_scops_1): New.
6300 (find_transform): Call dot_all_1.
6301 * graphite.h (dot_all_scops): Declared.
6302
63032007-12-14 Sebastian Pop <sebastian.pop@amd.com>
6304
6305 * tree-loop-distribution.c: Fix apsi.f ICE.
6306 (create_bb_after_loop): New.
6307 (generate_loops_for_partition): Use it.
6308 * testsuite/gfortran.dg/ldist-1.f90: New.
6309
6310 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
6311 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
6312
63132007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
6314
6315 * graphite.c (find_transform): Dump cloog program sent to cloog.
6316
63172007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
6318
6319 * graphite.c (initialize_cloog_names): Initialize cloog
6320 iterator names.
6321
63222007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
6323
6324 * graphite.c (build_scop_context): Fix typo, for the matrix
6325 format: insert '0 >= 0' instead of '-1 >= 0'.
6326
63272007-12-13 Sebastian Pop <sebastian.pop@amd.com>
6328
6329 * Fix merge problems.
6330
63312007-12-13 Sebastian Pop <sebastian.pop@amd.com>
6332
6333 * graphite.c (setup_cloog_loop): Fix typo.
6334
63352007-12-12 Sebastian Pop <sebastian.pop@amd.com>
6336
6337 * doc/invoke.texi (-ftree-loop-distribution): Documented.
6338 * tree-loop-distribution.c: Reimplemented.
6339 * tree-pass.h (pass_loop_distribution): New.
6340 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
6341 print_loops.
6342 * graphds.h (struct graph): New field indexes.
6343 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
6344
6345 * tree-vect-analyze.c: Remove declaration of static functions when not
6346 needed.
6347 * tree-vectorizer.c: Same.
6348 (rename_variables_in_loop): Now extern.
6349 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
6350 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
6351 calling redirect_edge_and_branch_force.
6352
6353 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
6354
6355 * tree-data-ref.c: Don't include tree-chrec.h.
6356 (debug_data_dependence_relations): New.
6357 (dump_data_dependence_relation): Call dump_data_reference on data refs
6358 in the relation.
6359 (same_access_functions): Moved...
6360 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
6361 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6362 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
6363 struct rdg_vertex_info, ): New.
6364 (create_rdg_edge_for_ddr): Compute the dependence level before looking
6365 at DDR_REVERSED_P.
6366 (create_rdg_vertices): Initialize the htab of graph->indexes.
6367 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
6368 (stmts_from_loop): Don't save LABEL_EXPR.
6369 (hash_stmt_vertex_info, eq_stmt_vertex_info,
6370 hash_stmt_vertex_del): New.
6371 (build_rdg): Initialize rdg->indexes.
6372 (free_rdg, stores_from_loop, ref_base_address,
6373 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
6374 have_similar_memory_accesses_1, ref_base_address_1,
6375 remove_similar_memory_refs): New.
6376
6377 * tree-data-ref.h: Include tree-chrec.h.
6378 (debug_data_dependence_relations): Declared.
6379 (same_access_functions): ...here. Now static inline.
6380 (ddr_is_anti_dependent, ddrs_have_anti_deps,
6381 ddr_dependence_level): New.
6382 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
6383 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
6384 RDG_MEM_READS_STMT): New.
6385 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
6386 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
6387 rdg_vertex_for_stmt): Declared.
6388 (struct rdg_edge): New field level.
6389 (RDGE_LEVEL, free_rdg): New.
6390 (stores_from_loop, remove_similar_memory_refs,
6391 rdg_defs_used_in_other_loops_p,
6392 have_similar_memory_accesses): Declared.
6393 (rdg_has_similar_memory_accesses): New.
6394
6395 * lambda.h (dependence_level): New.
6396 * common.opt (ftree-loop-distribution): New.
6397 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
6398 (print_loop_ir): Renamed print_loops.
6399 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
6400 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
6401 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
6402 (tree-loop-distribution.o): Added.
6403 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
6404 (mark_virtual_ops_in_bb): New.
6405 (print_loops_bb, debug_loop_num, debug_loop): New.
6406 * passes.c: Scheduled pass_loop_distribution.
6407
64082007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6409
6410 * graphite.c (scan_tree_for_params): Correct the number of columns
6411 for polylib format.
6412 (nb_flat_iterator): New.
6413 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
6414 (build_scop_iteration_domain): Correct the number of columns for
6415 polylib format.
6416
64172007-12-12 Sebastian Pop <sebastian.pop@amd.com>
6418
6419 * Merge from mainline (129697:130800).
6420
64212007-10-30 Sebastian Pop <sebastian.pop@amd.com>
6422
6423 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
6424 dominated by SCoP's exit.
6425 (graphite_transform_loops): Compute post dominators.
6426
64272007-10-28 Sebastian Pop <sebastian.pop@amd.com>
6428
6429 * Merge from mainline (127169:129697).
6430
64312007-10-28 Sebastian Pop <sebastian.pop@amd.com>
6432
6433 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
6434 parameter for the basic block that contains the expression. Use
6435 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
6436 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
6437 the expression.
6438 * graphite.h (gbb_loop): New.
6439 (GBB_LOOP): Removed.
6440
64412007-08-03 Sebastian Pop <sebpop@gmail.com>
6442
6443 * Makefile.in: Fix merge problem.
6444
64452007-08-03 Sebastian Pop <sebpop@gmail.com>
6446
6447 * Merge from mainline (125309:127169).
6448 * tree-loop-distribution.c: Disabled.
6449
64502007-06-05 Sebastian Pop <sebpop@gmail.com>
6451
6452 * Merge from mainline (r123693:125309).
6453
64542007-05-30 Sebastian Pop <sebpop@gmail.com>
6455
6456 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
6457 correct_modify_p
6458 (correct_modify_p, check_statements, number_of_lvalue_uses,
6459 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
6460 instead of MODIFY_EXPR.
6461 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
6462 and push new edges.
6463
64642007-05-24 Sebastian Pop <sebpop@gmail.com>
6465
6466 * tree-loop-distribution.c (struct rdg): Replace arrays by
6467 VECs for edges and vertices.
6468 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
6469 (RDGV_NB_PARTITIONS): New.
6470 (PRDG_NBV, PRDG_NBE): Removed.
6471 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
6472 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
6473 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
6474
64752007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
6476 Sebastian Pop <sebpop@gmail.com>
6477
6478 * doc/invoke.texi (-ftree-loop-distribution): Document.
6479 * tree-loop-distribution.c: New file.
6480 * tree-pass.h (pass_loop_distribution): Declared.
6481 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
6482 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
6483 and set reversed_p.
6484 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
6485 (DDR_REVERSED_P): New.
6486 * common.opt (-ftree-loop-distribution): New.
6487 * tree-flow.h (distribute_loops): Declared.
6488 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
6489 * passes.c (init_optimization_passes): Schedule loop distribution.
6490
64912007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
6492
6493 * graphite.c (print_graphite_bb): Don't call dump_data_references.
6494 (print_scop): Don't print when scop is NULL.
6495 (build_scop_context, find_transform): Don't output to stderr.
6496
64972007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
6498
6499 * tree-data-ref.c: Don't include graphite.h.
6500 Comment out the code for printing data reference's scop.
6501 (build_access_matrix_with_af): Moved...
6502 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
6503 * graphite.c (build_access_matrix_with_af): ... here. Now static.
6504 (print_graphite_bb): Print basic block's schedule.
6505 (print_scop): Don't print the schedule, call cloog's pretty printer.
6506 (bb_in_scop_p): A basic block is in a scop only if it is both
6507 dominated and postdominated by the scop's entry and exit basic blocks.
6508 (function_parameter_p): New.
6509 (invariant_in_scop_p): Use function_parameter_p.
6510 (new_scop, save_scop): New.
6511 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
6512 save_scop.
6513 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
6514 (loop_in_scop_p): New.
6515 (scop_record_loop): Use loop_in_scop_p.
6516 (build_scop_domain): Renamed build_scop_iteration_domain.
6517 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
6518 nb_params_in_scop, build_scop_context, first_loop_in_scop,
6519 setup_cloog_loop, dot_scop_1, dot_scop): New.
6520 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
6521 (struct scop): Add a pointer to cloog's representation of a program.
6522
65232007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
6524
6525 * doc/invoke.texi (-ftree-check-verbose): Renamed
6526 -ftree-checks-verbose.
6527 * common.opt (flag_tree_check_verbose): Renamed
6528 flag_tree_checks_verbose.
6529 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
6530
65312007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
6532
6533 * configure: Regenerated.
6534 * config.in: Regenerated.
6535 * tree-ssa-loop.c (graphite_transforms): Execute
6536 graphite_transform_loops only when HAVE_cloog.
6537 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
6538 * graphite.c: Include polylibgmp.h and cloog.h.
6539 (graphite_transform_loops): Removed loops parameter.
6540 * tree-flow.h (graphite_transform_loops): Update declaration.
6541 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
6542 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
6543 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
6544 (OBJS-common): Remove dependence on graphite.o.
6545 (BACKEND): Depend on @GRAPHITE@.
6546
65472007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
6548
6549 * doc/invoke.texi (-ftree-check-verbose): Documented.
6550 * testsuite/gcc.dg/tree-checker/tree-checks-1.c: New.
6551 * testsuite/gcc.dg/tree-checker/tree-checks-2.c: New.
6552 * testsuite/gcc.dg/tree-checker/tree-checks-3.c: New.
6553 * testsuite/gcc.dg/tree-checker/tree-checks-4.c: New.
6554 * testsuite/gcc.dg/tree-checker/tree-checks.exp: New.
6555 * testsuite/gcc.dg/tree-checker/condates.crp: New.
6556 * common.opt (ftree-checks-verbose): New.
6557 * tree-check.c (tree_check_warning): Move extra stderr output
6558 under control of flag_tree_check_verbose.
6559
65602007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
6561
6562 * tree-match.c: Fix comments formatting.
6563 * tree-match.h: Fix comments formatting.
6564 * tree-check.c: Fix comments formatting.
6565 (tree_check_init): Restructure.
6566
65672007-04-12 Nic Volanschi <nic.volanschi@free.fr>
6568
6569 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
6570
65712007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
6572
6573 * Merge from mainline (r120733:123693).
6574
65752007-03-20 Nic Volanschi <nic.volanschi@free.fr>
6576
6577 * condate.y: New file.
6578 * tree-match.h (struct patt_info_s): New field sign.
6579 (struct condate_s): New field msg.
6580 (normalize_condate, name_condate, add_condate): New.
6581 (conds[], condate_parse): Made extern.
6582 * tree-check.c (tree_check_warning): First arg changed to cond;
6583 warning reformatted.
6584 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
6585 (tree_scan): New.
6586 (tree_check): Process trivial condates.
6587 (read_delimited_string): Removed.
6588 (print_cond): Print name and msg.
6589 (conds[]): Made extern.
6590 (parse_tree_check_file_once): Rewritten to use the parser in
6591 condate.y.
6592 Processing of option --tree_check_string moved to tree_scan().
6593 * Makefile.in: Added condate.y
6594
65952007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
6596
6597 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
6598 Use VECs instead of varrays.
6599 * diagnostic.h (lazy_dump_generic_node): Update declaration.
6600 * Makefile.in (pretty-print.o): Depend on vec.h.
6601 * pretty-print.c: Include tree.h and vec.h.
6602 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
6603 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
6604 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
6605 pp_free_list): Use VECs instead of varrays.
6606 * pretty-print.h: Do not include varray.h.
6607 (struct tree_chunk_s): Declaration moved before its use.
6608 (output_buffer): Rename varray field to chunks.
6609 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
6610 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
6611 save_global_holes): Use VECs instead of varrays.
6612 * tree-match.h: Declare VECs of cfg_node, and hole_p.
6613 * tree-check.c (scan_cfg_stmts, push_node,
6614 print_matching_stmt): Removed.
6615 (tree_check_instance, push_global_holes_if_new, tree_check,
6616 execute_tree_check): Use VECs instead of varrays.
6617 (gate_tree_check): Don't execute the CFG check when basic_block_info
6618 is not available.
6619
66202007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
6621
6622 * Merge from mainline (r115016:120733).
6623
66242007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
6625
6626 * Merge from mainline (r117632:117661).
6627
66282007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
6629
6630 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
6631 * tree-pass.h (TDF_DEBUG, debug_p): New.
6632 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
6633 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
6634 get_loop_exit_condition, analyze_evolution_in_loop,
6635 analyze_initial_condition, analyze_scalar_evolution,
6636 instantiate_parameters, number_of_latch_executions): Use debug_p.
6637 * tree-chrec.c (chrec_apply): Use debug_p.
6638 * tree-data-ref.c: Include graphite.h.
6639 (dump_data_reference): Print also the access matrix.
6640 (analyze_array, analyze_indirect_ref, init_data_ref,
6641 analyze_offset_expr, address_analysis, object_analysis,
6642 create_data_ref, finalize_ddr_dependent,
6643 non_affine_dependence_relation, analyze_ziv_subscript,
6644 analyze_siv_subscript_cst_affine,
6645 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
6646 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
6647 analyze_miv_subscript, analyze_overlapping_iterations,
6648 build_classic_dist_vector, subscript_dependence_tester,
6649 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
6650 (build_access_matrix_with_af): No longer static.
6651 * tree-data-ref.h (scop_p): ... declaration here.
6652 (data_reference.scop): New field.
6653 (DR_SCOP, DR_ACCESS_MATRIX): New.
6654 (build_access_matrix_with_af, dr_num_subscripts): Declared.
6655 * graphite.c (print_graphite_bb): Call dump_data_references.
6656 (print_scop): Use scop_nb_loops and scop_dim_domain.
6657 (test_for_scop_bound): Use debug_p.
6658 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
6659 scop_nb_params.
6660 (scop_loop_index): Moved...
6661 (scop_record_loop): New.
6662 (build_scop_loop_nests): Use scop_record_loop.
6663 (build_scop_domain): Use scop_dim_domain.
6664 (build_access_matrix): Implemented.
6665 (build_scop_canonical_schedules): Use scop_nb_loops.
6666 (build_graphite_bb): Initialize GBB_SCOP.
6667 * graphite.h (scop_p): Moved...
6668 (graphite_bb.scop): New field.
6669 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
6670 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
6671 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
6672 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
6673 scop_loop_index): New.
6674 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
6675
66762007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
6677
6678 * Merge from mainline (r117661:120450).
6679
66802006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
6681
6682 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
6683 at the first declaration outside the varying loop, instantiate as
6684 far as possible.
6685 * tree-chrec.c (for_each_scev_op): New.
6686 * tree-chrec.h (for_each_scev_op): Declared.
6687 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
6688 * tree-data-ref.c (get_references_in_stmt,
6689 find_data_references_in_stmt): New, from trunk.
6690 (find_data_references_in_loop): Use get_references_in_stmt
6691 and find_data_references_in_loop, modified as in trunk.
6692 (build_access_matrix_with_af): New.
6693 * tree-data-ref.h (data_reference): Add a field access_matrix.
6694 (data_ref_loc): New, as in trunk.
6695 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
6696 invariant_in_scop_p, param_index, scan_tree_for_params,
6697 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
6698 idx_record_param, idx_record_params, build_access_matrix,
6699 build_scop_data_accesses, build_scop_canonical_schedules,
6700 build_graphite_bb, build_scop_bbs, find_params_in_bb,
6701 build_scop_params): New.
6702 * graphite.h (graphite_bb): New.
6703 (scop): Add fields static_schedule, params, loop_nest,
6704 iteration_domain.
6705 * lambda.h: Declare vecs of lambda_matrix.
6706 * tree-flow.h (print_loop_ir_bb): Declared.
6707 * tree-cfg.c (print_loop_ir_bb): New.
6708 (print_loop): Use print_loop_ir_bb.
6709
67102006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
6711
6712 * Merge from mainline (r115016:117632).
6713
67142006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
6715
6716 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
6717 break due to a warning.
6718
67192006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
6720
6721 * graphite.c (print_scops, debug_scops): New.
6722 (graphite_transform): Renamed graphite_find_transform.
6723 * graphite.h (debug_scops): Declared.
6724
67252006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
6726
6727 * tree-match.c: Reformat following the GNU style.
6728 * tree-match.h: Reformat following the GNU style.
6729 * tree-pattern.h: Removed empty file.
6730 * Makefile.in: Remove references to tree-pattern.h.
6731 * tree-check.c: Reformat following the GNU style.
6732 (execute_tree_check): Move gate condition code to...
6733 (gate_tree_check): ...here. New function.
6734 (pass_check): Use the gate function.
6735
67362006-07-04 Nic Volanschi <nic.volanschi@free.fr>
6737
6738 * tree-pattern.h: New. Tree pattern matching and checking using
6739 concrete syntax.
6740 * tree-check.c: New. Tree/CFG checking pass.
6741 * tree-match.c: New. Library for tree pattern matching.
6742 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
6743 * toplev.c, flags.h: Add globals for tree-check pass.
6744 * Makefile.in: Integrate the files in tree-check pass.
6745 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
6746 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
6747 Introduce a "lazy" pretty-print mode.
6748 * tree.c, tree.h: Add tree_name.
6749
67502006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
6751
6752 * doc/invoke.texi (-fgraphite): Correct typo.
6753 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
6754 use of print_loop_ir.
6755 * testsuite/gcc.dg/graphite/scop-1.c: New.
6756 * testsuite/gcc.dg/graphite/scop-2.c: New.
6757 * testsuite/gcc.dg/graphite/graphite.exp: New.
6758 * graphite.c: Include domwalk.h.
6759 (print_scop): Print only the entry and exit blocks.
6760 (debug_scop): No longer static.
6761 (affine_expr): Fix formating. Return also true when the expression is
6762 constant.
6763 (stmt_simple_for_scop_p): Fix formating.
6764 (build_scops): Use domwalk.
6765 (get_loop_start, end_scop, test_for_scop_bound): New.
6766 (graphite_transform_loops): Avoid printing on stderr.
6767 * graphite.h (debug_scop): Declared.
6768 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
6769 * Makefile.in (graphite.o): Depend on domwalk.h.
6770 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
6771 declarations for static functions.
6772 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
6773 controlling output verbosity.
6774
67752006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
6776 Plesco Alexandru <shurikx@gmail.com>
6777
6778 * doc/invoke.texi (-fgraphite): Document.
6779 * tree-pass.h (pass_graphite_transforms): Declared.
6780 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
6781 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
6782 (pass_graphite_transforms): Defined.
6783 * tree-data-ref.c (free_data_ref, data_reference): Extern.
6784 * tree-data-ref.h (free_data_ref, data_reference): Declared.
6785 * graphite.c, graphite.h: New.
6786 * common.opt (fgraphite): Declared.
6787 * tree-flow.h (graphite_transform_loops): Declared.
6788 * Makefile.in (OBJS-common): Add graphite.o.
6789 (graphite.o): New rule.
6790 * passes.c (pass_graphite_transforms): Scheduled.
6791