]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog.graphite
Add necessary accessors for CloogMatrix (CLOOG_ORG).
[thirdparty/gcc.git] / gcc / ChangeLog.graphite
CommitLineData
f366948c 12010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
2
3 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
4 (cloog_matrix_nrows): New.
5
086610eb 62010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
7
8 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
9 from matrix lines.
10 * graphite-poly.c (openscop_print_scattering_function_1): Same.
11 (print_scattering_function_1): Same.
12 (openscop_print_pbb_domain): Same.
13 (openscop_print_scop_context): Same.
14 (print_scop_context): Same.
15
c8f5df71 162010-08-11 Riyadh Baghdadi <baghdadi.mr@gmail.com>
17
18 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
19 (openscop_print_pdr_polyhedron): Print pph.
20
650f2420 212010-07-29 Sebastian Pop <sebastian.pop@amd.com>
22
23 * gcc.dg/graphite/graphite.exp: Add compile rules for vect-* files.
24 * gfortran.dg/graphite/graphite.exp: Same.
25 * gcc.dg/graphite/vect-pr43423.c: New.
26
be90fd3f 272010-07-29 Sebastian Pop <sebastian.pop@amd.com>
28
29 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
30 priority signed types.
31
e84af3c1 322010-07-29 Sebastian Pop <sebastian.pop@amd.com>
33
34 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove the call
35 to lang_hooks.types.type_for_size. Call build_nonstandard_integer_type.
36
8c4b14b0 372010-07-29 Riyadh Baghdadi <baghdadi.mr@gmail.com>
38
39 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
40 (openscop_print_polyhedron_matrix): New.
41 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
42 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
43 (openscop_print_pdr_powerset): New.
44 (openscop_print_powerset_matrix): New.
45 (openscop_print_scattering_function_1): New.
46 (print_scattering_function): Add support for scattering names and
47 OpenScop format.
48 (graphite_write_transforms): Remove.
49 (apply_poly_transforms): Updated to call print_scop.
50 (print_pdr_access_layout): Updated to support OpenScop format.
51 (print_pdr): Same.
52 (openscop_print_pbb_domain): New.
53 (print_pbb_body): Added a parameter to allow indicating that pbb_body is
54 not provided.
55 (print_pbb): Updated to call the new print_pbb_body.
56 (openscop_print_scop_context): New.
57 (print_scop_header): New.
58 (print_scop): Updated to call print_scop_header.
59 * graphite-poly.h: Document OpenScop format.
60
68a6a8ba 612010-07-29 Sebastian Pop <sebastian.pop@amd.com>
62
63 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
64 the case removed in the previous patch, when the only phi argument
65 is defined in the same loop as the phi node itself. Handle it
66 separately from the invariant case by both propagating it outside
67 the region and replacing the phi node with an assign.
68
51ec8951 692010-07-28 Sebastian Pop <sebastian.pop@amd.com>
70
71 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
72 constant phi nodes with one argument are is_gimple_min_invariant
73 and SSA_NAME_IS_DEFAULT_DEF.
74
75 * gfortran.dg/graphite/id-22.f: New.
76
04b8cadb 772010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
78
f0fc00f2 79 * graphite.c (graphite_initialize): Do not initialize
80 CLooG and initialize the Parma Polyhedra Library
81 manually when using CLOOG_ORG.
82 (graphite_finalize): Do not finalize CLooG and finalize
83 the Parma Polyhedra Library manually when using CLOOG_ORG.
84 * graphite-cloog-compat.h (cloog_initialize): Hide function
85 when using CLOOG_ORG.
86 (cloog_finalize): Same.
87
a2c572ef 882010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
f0fc00f2 89
04b8cadb 90 * graphite-clast-to-gimple.c (free_scattering): Change
91 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
92 (CLOOG_ORG).
93 (build_cloog_prog): Same.
94 * graphite-cloog-compat.h (cloog_domain): Removed.
95 (cloog_scattering): New.
96 (cloog_set_domain): Removed.
97 (cloog_set_scattering): New.
98 (cloog_next_domain): Removed.
99 (cloog_next_scattering): New.
100 (cloog_set_next_domain): Removed.
101 (cloog_set_next_scattering): New.
102 (CloogScatteringList): New.
103 (CloogScattering): New.
104 (cloog_scattering_free): New.
105 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
106 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
107 New.
108
08a88144 1092010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
110
111 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
112 CloogState.
113 (set_cloog_options): Same.
114 (print_clast_stmt): Same.
115 (scop_to_clast): Same.
116 (print_generated_program): Same.
117 (gloog): Same.
118 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
119 (scop_to_clast): Extend with CloogState.
120 * graphite-cloog-util.c: Include graphite-cloog-compat.h
121 (new_Cloog_Domain_from_ppl_Polyhedron):
122 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
123 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
124 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
125 * graphite-cloog-util.h (build_cloog_prog): Same.
126 * graphite-cloog-copat.h (build_cloog_prog): New.
127 (CloogState): New.
128 (cloog_state_malloc): New.
129 (cloog_state_free): New.
130 (cloog_loop_malloc): New.
131 (cloog_options_malloc): New.
132 (cloog_statement_alloc): New.
133 (cloog_domain_from_cloog_matrix): New.
134 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
135 (new_Cloog_Domain_from_ppl_Polyhedron): New.
136
2e6bc1c7 1372010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
138
139 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
140 type of NAME now depends on used CLooG version.
141 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
142 (gcc_type_for_clast_expr): Same.
143 (print_clast_stmt): Replace pprint with clast_pprint.
144 * graphite-cloog-compat.h: Provide compatibility macros for
145 CLooG Legacy.
146 (clast_name_p): New.
147 (clast_expr_term): New.
148 (clast_expr_red): New.
149 (clast_expr_bin): New.
150 (clast_pprint): New.
151
ebd32a89 1522010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
153
154 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
155 compatible to newer CLooG releases (CLOOG_ORG).
156 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
157 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
158 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
159 (build_cloog_prog) : New.
160 (cloog_program_extract_scalars): New.
161 (cloog_program_scatter): New.
162
1b2c23d4 1632010-07-27 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
164
165 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
166 conditionally (CLOOG_ORG).
167 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
168 (cloog_statement_usr): New.
169 (cloog_domain): Same.
170 (cloog_set_domain): Same.
171 (cloog_next_domain): Same.
172 (cloog_set_next_domain): Same.
173 (cloog_program_nb_scattdims): Same.
174 (cloog_program_set_nb_scattdims): Same.
175 (cloog_program_names): Same.
176 (cloog_program_set_names): Same.
177 (cloog_program_set_context): Same.
178 (cloog_program_set_loop): Same.
179 (cloog_program_blocklist): Same.
180 (cloog_program_set_blocklist): Same.
181 (cloog_program_scaldims): Same.
182 (cloog_program_set_scaldims): Same.
183 (cloog_names_nb_parameters): Same.
184 (cloog_names_set_nb_parameters): Same.
185 (cloog_names_parameters): Same.
186 (cloog_names_set_parameters): Same.
187 (cloog_names_set_nb_iterators): Same.
188 (cloog_names_set_iterators): Same.
189 (cloog_names_set_nb_scattering): Same.
190 (cloog_names_set_scattering): Same.
191 (cloog_statement_set_usr): Same.
192 (cloog_loop_set_next): Same.
193 (cloog_loop_set_domain): Same.
194 (cloog_loop_set_block): Same.
195 (cloog_block_list_next): Same.
196 (cloog_block_list_set_next):
197 (cloog_block_list_set_block): Same.
198
c9a67530 1992010-07-27 Sebastian Pop <sebastian.pop@amd.com>
200
201 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
202 a bool.
203 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
204 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
205 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
206 when something has been changed.
207 (rewrite_commutative_reductions_out_of_ssa): Same.
208
209 * gcc.dg/graphite/id-26.c: New.
210
ed455480 2112010-07-26 Sebastian Pop <sebastian.pop@amd.com>
212
213 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
214 handle the case when def is in the sese region.
215 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
216 for invariant expressions.
217 (rewrite_cross_bb_phi_deps): Removed.
218 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
219 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
220 rewrite_cross_bb_phi_deps.
221
72085fb7 2222010-07-26 Sebastian Pop <sebastian.pop@amd.com>
223
224 * graphite-sese-to-poly.c
225 (rewrite_commutative_reductions_out_of_ssa_loop): Call
226 scev_analyzable_p only on is_gimple_reg
227
228 * gcc.dg/graphite/id-25.c: New.
229
5d21c24a 2302010-07-22 Sebastian Pop <sebastian.pop@amd.com>
231
232 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
233 (rewrite_close_phi_out_of_ssa): Propagate constant values or
234 parametric expressions outside the scop region.
235 (rewrite_cross_bb_scalar_deps): Same.
236 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
237
238 * gcc.dg/graphite/run-id-5.c: New.
239 * gcc.dg/graphite/run-id-6.c: New.
240 * gfortran.dg/graphite/id-21.f: New.
241
a865acd7 2422010-07-22 Sebastian Pop <sebastian.pop@amd.com>
243
244 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
245 SSA_NAME_DEF_STMT only on SSA_NAMEs.
246
247 * gcc.dg/graphite/id-24.c: New.
248
52f57b4e 2492010-07-22 Sebastian Pop <sebastian.pop@amd.com>
250
251 * tree-scalar-evolution.c (instantiate_scev_name): Do not
252 instantiate default definitions.
253
c07c57fb 2542010-07-20 Vladimir Kargov <kargov@gmail.com>
255
256 * graphite-scop-detection.c (is_valid_stmt_p): New.
257 (is_valid_bb_p): New.
258
259c0e44 2592010-07-20 Vladimir Kargov <kargov@gmail.com>
260 Sebastian Pop <sebastian.pop@amd.com>
261
262 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
263 (loop_exits_from_bb_p): New.
264 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
265 (loop_exits_from_bb_p): Declared.
266 * graphite-scop-detection.c (scopdet_basic_block_info): Call
267 loop_exits_to_bb_p.
268
000edd14 2692010-07-20 Vladimir Kargov <kargov@gmail.com>
270
271 * refined-regions.c: Include tree-pass.h, cfgloop.h, gimple.h, and
272 tree-data-ref.h.
273 (dot_regions_1): New.
274 (dot_regions): New.
275 * refined-regions.h (dot_regions): Declared.
276 * Makefile.in (refined-regions.o): Update dependences.
277
38f26d41 2782010-07-20 Sebastian Pop <sebastian.pop@amd.com>
279
280 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
281 extra parameter for the region. Call scev_analyzable_p.
282 (rewrite_reductions_out_of_ssa): Update call to
283 rewrite_close_phi_out_of_ssa.
284 (rewrite_cross_bb_phi_deps): Same.
285 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
286 parameter for the region. Call scev_analyzable_p.
287 (rewrite_commutative_reductions_out_of_ssa): Update call to
288 rewrite_commutative_reductions_out_of_ssa_loop.
289
e075a7a2 2902010-07-20 Sebastian Pop <sebastian.pop@amd.com>
291
292 * gcc.dg/tree-ssa/pr20742.c: New.
293
39888e8f 2942010-07-15 Sebastian Pop <sebastian.pop@amd.com>
295
296 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
297
298 * gcc.dg/graphite/id-23.c: New.
299
15822b8e 3002010-07-15 Sebastian Pop <sebastian.pop@amd.com>
301
302 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
303 SSA scalar phi nodes that can be scev_analyzable_p.
304
305 * gfortran.dg/graphite/id-20.f: Adjust testcase.
306
49253930 3072010-07-15 Sebastian Pop <sebastian.pop@amd.com>
308
309 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
310 handle SSA_NAME_IS_DEFAULT_DEF.
311
bac2de0b 3122010-07-15 Sebastian Pop <sebastian.pop@amd.com>
313
314 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
315
316 * gcc.dg/graphite/pr42729.c: New.
317
55c89f69 3182010-07-15 Sebastian Pop <sebastian.pop@amd.com>
319
320 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
321 case non close-phi nodes with one argument.
322
32a6e336 3232010-07-15 Sebastian Pop <sebastian.pop@amd.com>
324
325 * sese.h (scev_analyzable_p): Scevs could be expressions without
326 chrecs and still be scev_analyzable_p.
327
a73166c0 3282010-07-15 Sebastian Pop <sebastian.pop@amd.com>
329
330 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
331
18046220 3322010-07-15 Sebastian Pop <sebastian.pop@amd.com>
333
334 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
335 * cfgloop.h (struct loop): Remove single_iv field.
336 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
337 (scop_canonicalize_loops): Removed.
338 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
339 over all the loop phi nodes in loop->header.
340 (build_poly_scop): Remove use of scop_canonicalize_loops.
341
b19b9f62 3422010-07-15 Sebastian Pop <sebastian.pop@amd.com>
343
344 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
345 handle GIMPLE_CALL.
346
9e4cd968 3472010-07-15 Sebastian Pop <sebastian.pop@amd.com>
348
349 * tree-chrec.c (chrec_apply): Should only apply to the specified
350 variable. Also handle multivariate chains of recurrences that
351 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
352
4ed27c8e 3532010-07-15 Sebastian Pop <sebastian.pop@amd.com>
354
355 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
356 (debug_clast_name_indexes_1): Removed.
357 (debug_clast_name_indexes): Removed.
358 (pbb_to_depth_to_oldiv): Removed.
359 (build_iv_mapping): Replace the use of rename_map with iv_map.
360 (translate_clast_user): Remove uses of rename_map. Allocate and
361 free iv_map.
362 (translate_clast_for_loop): Remove uses of rename_map.
363 (translate_clast_for): Same.
364 (translate_clast_guard): Same.
365 (translate_clast): Same.
366 (gloog): Same.
367 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
368 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
369 * sese.c (set_rename): Now static.
370 (rename_variables_in_stmt): Removed.
371 (rename_uses): New.
372 (is_parameter): Removed.
373 (is_iv): Removed.
374 (expand_scalar_variables_call): Removed.
375 (expand_scalar_variables_ssa_name): Removed.
376 (expand_scalar_variables_expr): Removed.
377 (expand_scalar_variables_stmt): Removed.
378 (expand_scalar_variables): Removed.
379 (rename_variables): Removed.
380 (remove_condition): Removed.
381 (get_true_edge_from_guard_bb): Removed.
382 (get_false_edge_from_guard_bb): Removed.
383 (struct igp): Removed.
384 (default_before_guard): Removed.
385 (convert_for_phi_arg): Removed.
386 (add_guard_exit_phis): Removed.
387 (insert_guard_phis): Removed.
388 (graphite_copy_stmts_from_block): Now also uses iv_map and a
389 region. Do not copy conditions. Do not copy induction variables.
390 Call rename_uses.
391 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
392 the translated statement. Use the iv_map for the induction
393 variable renaming.
394 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
395 (set_rename): Removed declaration.
396 (scev_analyzable_p): ...here.
397 * tree-chrec.c (chrec_apply_map): New.
398 * tree-chrec.h (chrec_apply_map): Declared.
399
5b87c555 4002010-07-15 Sebastian Pop <sebastian.pop@amd.com>
401
402 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
403 insert_loop_close_phis.
404 * sese.c (name_defined_in_loop_p): Removed.
405 (expr_defined_in_loop_p): Removed.
406 (alive_after_loop): Removed.
407 (close_phi_not_yet_inserted_p): Removed.
408 (struct alep): Removed.
409 (add_loop_exit_phis): Removed.
410 (insert_loop_close_phis): Removed.
411
2c4340a8 4122010-07-15 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
413
5b87c555 414 * graphite-cloog-util.c (cloog_matrix_to_ppl_constraint): Fix flipped
415 condition.
416 * graphite-poly.c (psct_scattering_dim_for_loop_depth): Same.
2c4340a8 417
38df5b0a 4182010-07-07 Sebastian Pop <sebastian.pop@amd.com>
419
420 * gfortran.dg/graphite/id-20.f: New.
421
e0e27d35 4222010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
423
424 * graphite-cloog-util.h: Added cloog.h.
425 * graphite-blocking.c: Removed cloog.h.
426 * graphite-dependences.c: Same.
427 * graphite-interchange.c: Same.
428 * graphite-poly.c: Same.
429 * graphite-ppl.c: Same.
430 * graphite-scop-detection.c: Same.
431 * graphite-sese-to-poly.c:
432 Removed cloog.h.
433 Removed graphite-clast-to-gimple.h.
434 (check_poly_representation): Removed (unused).
435 * graphite-sese-to-poly.h
436 (check_poly_representation): Removed (unused).
437
30185452 4382010-07-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
439
440 * Makefile.in
441 (OBJS-common): Added graphite-cloog-util.o.
442 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
443 (graphite-cloog-util.o): New.
444 (graphite-ppl.o): Added graphite-cloog-util.h.
445 * graphite-clast-to-gimple.c:
446 Added graphite-cloog-util.h to include statements.
447 * graphite-cloog-util.c: New.
448 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
449 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
450 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
451 (new_C_Polyhedron_from_Cloog_Matrix): Same.
452 (ppl_Constrain_System_number_of_constraints): Same.
453 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
454 (oppose_constraint): Same.
455 (cloog_matrix_to_ppl_constraint): Same.
456 (new_Constraint_System_from_Cloog_Matrix): Same.
457 (insert_constraint_into_matrix): Same. Declared static.
458 * graphite-cloog-util.h: New.
459 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
460 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
461 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
462 (new_C_Polyhedron_from_Cloog_Matrix): Same.
463 (insert_constraint_into_matrix): Same.
464 * graphite-ppl.c:
465 Added graphite-cloog-util.h to include statements.
466 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
467 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
468 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
469 (new_C_Polyhedron_from_Cloog_Matrix): Same.
470 (insert_constraint_into_matrix): Same.
471 (ppl_Constrain_System_number_of_constraints): Same.
472 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
473 (oppose_constraint): Same.
474 (cloog_matrix_to_ppl_constraint): Same.
475 (new_Constraint_System_from_Cloog_Matrix): Same.
476 * graphite-ppl.h:
477 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
478 graphite-cloog-util.h.
479 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
480 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
481 (new_C_Polyhedron_from_Cloog_Matrix): Same.
482 (insert_constraint_into_matrix): Removed.
483
6955599b 4842010-07-04 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
485
486 * graphite-clast-to-gimple.c
487 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
488 (precision_for_interval): Same.
489 (gcc_type_for_interval): Same.
490 (compute_type_for_level): Same.
491 * graphite-interchange.c
492 (lst_interchange_profitable_p): Same.
493 * graphite-poly.c
494 (psct_scattering_dim_for_loop_depth): Same.
495 * graphite-ppl.c
496 (ppl_max_for_le_pointset): Same.
497 (ppl_min_for_le_pointset): Same.
498
6fba926c 4992010-06-25 Vladimir Kargov <kargov@gmail.com>
500
501 * refined-regions.c (bb_index_compare): New.
502 (get_bbs_in_region): New.
503 (print_bbs_in_region): New.
504 (print_refined_region): Add an argument that allows to print
505 all basic blocks contained in regions.
506 (debug_refined_region): Update call to print_refined_region.
507 * refined-regions.h (print_refined_region): Update declaration.
508 (get_bbs_in_region): Declared.
509 * graphite-scop-detection.c (build_scops_new): Print the refined
510 region tree into the Grahite dump file.
511
b8046a12 5122010-06-24 Sebastian Pop <sebastian.pop@amd.com>
513
514 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
515 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
516
dd966e1f 5172010-06-24 Sebastian Pop <sebastian.pop@amd.com>
518
519 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
520 rewrite_close_phi_out_of_ssa.
521
522 * gcc.dg/graphite/id-22.c: New.
523
0569d480 5242010-06-24 Sebastian Pop <sebastian.pop@amd.com>
525
526 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
527
97142493 5282010-06-24 Sebastian Pop <sebastian.pop@amd.com>
529
530 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
531 rename_map.
532 * sese.c (debug_rename_map): Same.
533 (get_rename): Same.
534 (set_rename): Same.
535 (rename_variables_in_stmt): Same.
536 (expand_scalar_variables_call): Same.
537 (expand_scalar_variables_ssa_name): Same.
538 (expand_scalar_variables_expr): Same.
539 (expand_scalar_variables_stmt): Same.
540 (expand_scalar_variables): Same.
541 (rename_variables): Same.
542 (graphite_copy_stmts_from_block): Same.
543 (copy_bb_and_scalar_dependences): Same.
544
0c663bd0 5452010-06-24 Sebastian Pop <sebastian.pop@amd.com>
546
547 * graphite-clast-to-gimple.c (copy_renames): Removed.
548 (translate_clast_for): Do not call copy_renames.
549 (translate_clast_guard): Same.
550
42ad5d61 5512010-06-23 Sebastian Pop <sebastian.pop@amd.com>
552
553 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
554 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
555 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
556 before rewrite_cross_bb_scalar_deps.
557
8643dd0a 5582010-06-23 Sebastian Pop <sebastian.pop@amd.com>
559
560 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
561 Early return in when flag_associative_math is not set.
562
9a34ebd6 5632010-06-23 Sebastian Pop <sebastian.pop@amd.com>
564
565 * gcc.dg/graphite/run-id-2.c: Call abort.
566
097e870c 5672010-06-23 Sebastian Pop <sebastian.pop@amd.com>
568
569 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
570 of SSA copies on edges except for loop->latch.
571
bf8b5699 5722010-06-23 Sebastian Pop <sebastian.pop@amd.com>
573
574 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
575 Split out of rewrite_reductions_out_of_ssa.
576 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
577 Declared.
578 * graphite.c (graphite_transform_loops): Call it.
579
e819c864 5802010-06-23 Sebastian Pop <sebastian.pop@amd.com>
581
582 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
583
b90bb125 5842010-06-15 Sebastian Pop <sebastian.pop@amd.com>
585
586 * passes.c (init_optimization_passes): Add pass_graphite.
587 Schedule a pass_copy_prop before pass_graphite_transforms.
588 * timevar.def (TV_GRAPHITE): Declared.
589 * tree-pass.h (pass_graphite): Declared.
590 * tree-ssa-loop.c (pass_graphite): New.
591
592 * gcc.dg/graphite/id-20.c: New.
593
93206bb0 5942010-06-12 Sebastian Pop <sebastian.pop@amd.com>
595
596 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
597 Remove calls to rename_nb_iterations and rename_sese_parameters.
598 * graphite-clast-to-gimple.h (gloog): Update declaration.
599 * graphite.c (graphite_transform_loops): Update call to gloog.
600 * sese.c (rename_variables_in_expr): Removed.
601 (rename_nb_iterations): Removed.
602 (rename_sese_parameters): Removed.
603 * sese.h (rename_nb_iterations): Removed.
604 (rename_sese_parameters): Removed.
605
88a551f1 6062010-06-12 Sebastian Pop <sebastian.pop@amd.com>
607
608 * graphite-clast-to-gimple.c (gloog): Remove call to
609 sese_adjust_liveout_phis.
610 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
611 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
612 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
613 rewrite_phi_out_of_ssa.
614 * sese.c (get_vdef_before_sese): Removed.
615 (sese_adjust_vphi): Removed.
616 (sese_adjust_liveout_phis): Removed.
617 * sese.h (sese_adjust_liveout_phis): Removed.
618
39a34dd8 6192010-06-12 Sebastian Pop <sebastian.pop@amd.com>
620
621 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
622 argument for the place after which to insert the out of SSA copy.
623 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
624 (rewrite_phi_out_of_ssa): Same.
625 (rewrite_cross_bb_scalar_deps): Same.
626 (insert_copyout): Removed.
627 (insert_copyin): Removed.
628 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
629 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
630 insert_copyin.
631
5d2603f9 6322010-06-12 Sebastian Pop <sebastian.pop@amd.com>
633
634 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
635 (rewrite_reductions_out_of_ssa): Same.
636 (rewrite_commutative_reductions_out_of_ssa): Same.
637 (build_poly_scop): Do not call these functions.
638 * graphite-sese-to-poly.h (build_poly_scop): Declared.
639 (rewrite_reductions_out_of_ssa): Declared.
640 (rewrite_commutative_reductions_out_of_ssa): Declared.
641 * graphite.c (graphite_transform_loops): Call on every scop
642 rewrite_commutative_reductions_out_of_ssa before calling
643 rewrite_reductions_out_of_ssa and build_scop_bbs.
644
189cea68 6452010-06-12 Sebastian Pop <sebastian.pop@amd.com>
646
647 * graphite-dependences.c (dot_deps): Make system call to dotty run
648 in background.
649 (dot_deps_stmt): Same.
650 * graphite-poly.c (dot_lst): Same.
651
1861e127 6522010-06-11 Sebastian Pop <sebastian.pop@amd.com>
653
654 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
655 old_type in parameter.
656 (gcc_type_for_value): Update call to gcc_type_for_interval.
657 (compute_type_for_level_1): Renamed compute_type_for_level.
658 Update call to gcc_type_for_interval.
659
f6a2a688 6602010-06-09 Sebastian Pop <sebastian.pop@amd.com>
661
662 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
663 the scev analysis when the variable is not used outside the loop
664 in a close phi node: call compute_overall_effect_of_inner_loop.
665
3662a419 6662010-06-09 Sebastian Pop <sebastian.pop@amd.com>
667
668 * graphite-sese-to-poly.c (single_pred_cond): Renamed
669 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
670 (build_sese_conditions_before): Renamed call to single_pred_cond.
671 (build_sese_conditions_after): Same.
672
a344bb22 6732010-06-09 Sebastian Pop <sebastian.pop@amd.com>
674
675 * graphite-poly.h: Fix comments and indentation.
676 * graphite-sese-to-poly.c: Same.
677 (build_sese_conditions_before): Compute stmt and gbb only when needed.
678 * tree-chrec.c: Fix comments and indentation.
679 (tree-ssa-loop-niter.c): Same.
680
9ac63ea9 6812010-06-08 Tobias Grosser <grosser@fim.uni-passau.de>
682
683 * refined-regions.c (create_region): Only initialize the region.
684 (find_regions_with_entry): Initialize parent relation and bbmap
685 correctly.
686 (build_regions_tree): Set outermost_region to region instead of
687 topmost_region.
688 (calculate_region_tree): Remove unneeded parameters.
689
441c9c1d 6902010-06-02 Tobias Grosser <grosser@fim.uni-passau.de>
691
692 * graphite-scop-detection.c (is_scop_p): New.
693 (build_scops_new): New. A skeleton for the new scop detection.
694 (build_scops_old): Renamed from build_scops.
695 (build_scops): New version. Call the new and the old scop
696 detection.
697
93bdb320 6982010-05-27 Tobias Grosser <grosser@fim.uni-passau.de>
699 Antoniu Pop <antoniu.pop@gmail.com>
700
701 * Makefile.in (OBJS-common): Add refined-regions.o.
702 (refined-regions.o): New.
703 (graphite-scop-detection.o): Use refined-regions.h.
704 * graphite-scop-detection.c: Include refined-regions.h
705 (build_scops): Also build the refined region tree.
706 * refined-regions.c: New. Adds an algorithm to detect refined
707 regions.
708 (print_refined_region): New.
709 (debug_refined_region): New.
710 (refined_region_contains_bb_p): New.
711 (refined_region_contains_region_p): New.
712 (is_common_df): New.
713 (struct find_regions_global_data): New.
714 (is_region): New.
715 (typedef struct bb_bb_def): New.
716 (new_bb_bb_def): New.
717 (bb_bb_map_hash): New.
718 (eq_bb_bb_map): New.
719 (find_new_bb): New.
720 (bb_reg_def): New.
721 (new_bb_reg_def): New.
722 (bb_reg_map_hash): New.
723 (eq_bb_reg_map): New.
724 (find_new_region): New.
725 (insert_new_reg): New.
726 (insert_new_bb): New.
727 (insert_shortcut): New.
728 (get_next_postdom): New.
729 (create_region): New.
730 (find_regions_with_entry): New.
731 (find_regions_adc): New.
732 (find_regions): New.
733 (get_topmost_parent): New.
734 (build_regions_tree): New.
735 (calculate_region_tree): New.
736 (free_region_tree): New.
737 * refined-regions.h: New.
738 (struct refined_region): New.
739 (calculate_region_tree): New.
740 (free_region_tree): New.
741 (refined_region_contains_bb_p): New.
742 (refined_region_contains_region_p): New.
743 (print_refined_region): New.
744 (debug_refined_region): New.
745
78b58940 7462010-05-26 Sebastian Pop <sebastian.pop@amd.com>
747
748 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
749 size_one_node.
750
9acb79e3 7512010-05-07 Sebastian Pop <sebastian.pop@amd.com>
752
753 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix
754 type of integer_one_node for fold_build of POINTER_PLUS_EXPR.
755
9d828157 7562010-05-07 Sebastian Pop <sebastian.pop@amd.com>
757
758 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
759 phi_arg_in_outermost_loop.
760 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
761 (remove_invariant_phi): Same.
762
0ef84e3b 7632010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
764
765 * graphite-blocking.c
766 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
767 * graphite-clast-to-gimple.c
768 (clast_to_gcc_expression): Same.
769 (precision_for_value): Same.
770 (precision_for_interval): Same.
771 (gcc_type_for_interval): Same.
772 (graphite_create_new_guard): Same.
773 (compute_bounds_for_level): Same.
774 (graphite_create_new_loop_guard): Same.
775 * graphite-interchange.c
776 (build_linearized_memory_access): Same.
777 (pdr_stride_in_loop): Same.
778 (memory_strides_in_loop_1): Same.
779 (memory_strides_in_loop): Same.
780 (extend_scattering): Same.
781 (psct_scattering_dim_for_loop_depth): Same.
782 (pbb_number_of_iterations): Same.
783 * graphite-poly.h
784 (debug_iteration_domains): Same.
785 * graphite-ppl.c
786 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
787 (ppl_set_inhomogeneous_gmp): Same.
788 (ppl_strip_loop): Same.
789 (ppl_lexico_compare_linear_expressions): Same.
790 (ppl_read_polyhedron_matrix): Same.
791 (ppl_max_for_le_pointset): Same.
792 * graphite-ppl.h
793 (ppl_read_polyhedron_matrix): Same.
794 (tree_int_to_gmp): Same.
795 (gmp_cst_to_tree): Same.
796 (ppl_set_inhomogeneous): Same.
797 (ppl_set_inhomogeneous_tree): Same.
798 (ppl_set_coef): Same.
799 (ppl_set_coef_tree): Same.
800 * graphite-sese-to-poly.c
801 (build_pbb_scattering_polyhedrons): Same.
802 (build_scop_scattering): Same.
803 (scan_tree_for_params_right_scev): Same.
804 (scan_tree_for_params): Same.
805 (find_params_in_bb): Same.
806 (find_scop_parameters): Same.
807 (add_upper_bounds_from_estimated_nit): Same.
808 (build_loop_iteration_domains): Same.
809 (add_condition_to_domain): Same.
810 (pdr_add_memory_accesses): Same.
811
2d6fe479 8122010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
813
a2c572ef 814 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
2d6fe479 815 CLooG's value_* macros to their respective mpz_* counterparts.
816 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
817 (graphite_create_new_loop_guard): Same.
818 * graphite-interchange.c (build_linearized_memory_access): Same.
819 (pdr_stride_in_loop): Same.
820 (memory_strides_in_loop_1): Same.
821 (1st_interchange_profitable_p): Same.
822 * graphite-poly.c (extend_scattering): Same.
823 (psct_scattering_dim_for_loop_depth): Same.
824 (pbb_number_of_iterations): Same.
825 (pbb_number_of_iterations_at_time): Same.
826 * graphite-poly.h (new_1st_loop): Same.
827 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
828 (oppose_constraint): Same.
829 (insert_constraint_into_matrix): Same.
830 (ppl_set_inhomogeneous_gmp): Same.
831 (ppl_set_coef_gmp): Same.
832 (ppl_strip_loop): Same.
833 (ppl_lexico_compare_linear_expressions): Same.
834 (ppl_max_for_le_pointset): Same.
835 (ppl_min_for_le_pointset): Same.
836 (ppl_build_realtion): Same.
837 * graphite-ppl.h (gmp_cst_to_tree): Same.
838 (ppl_set_inhomogeneous): Same.
839 (ppl_set_inhomogeneous_tree): Same.
840 (ppl_set_coef): Same.
841 (ppl_set_coef_tree): Same.
842 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
843 (build_scop_scattering): Same.
844 (add_value_to_dim): Same.
845 (scan_tree_for_params_right_scev): Same.
846 (scan_tree_for_params_int): Same.
847 (scan_tree_for_params): Same.
848 (find_params_in_bb): Same.
849 (find_scop_parameters): Same.
850 (add_upper_bounds_from_estimated_nit): Same.
851 (build_loop_iteration_domains): Same.
852 (create_linear_expr_from_tree): Same.
853 (add_condition_to_domain): Same.
854 (pdr_add_memory_accesses): Same.
855
7c0d15dc 8562010-04-05 Sebastian Pop <sebastian.pop@amd.com>
857
858 PR middle-end/43519
859 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
860 lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
861 When converting an unsigned type to signed, double its precision.
862 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
863 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
864 (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
865
8662010-04-05 Sebastian Pop <sebastian.pop@amd.com>
867
868 PR middle-end/43519
869 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
870 build_nonstandard_integer_type.
871 (gcc_type_for_interval): Same.
872
8732010-04-05 Sebastian Pop <sebastian.pop@amd.com>
7778680e 874
875 PR middle-end/43519
876 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
877 POINTER_PLUS_EXPR for pointer types.
878
879 * gcc.dg/graphite/id-19.c: New.
880
f20b6ea9 8812010-04-04 Sebastian Pop <sebastian.pop@amd.com>
882
883 PR middle-end/43519
884 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
885 * graphite-clast-to-gimple.c: Include langhooks.h.
886 (max_signed_precision_type): New.
887 (max_precision_type): Takes two types as arguments.
888 (precision_for_value): New.
889 (precision_for_interval): New.
890 (gcc_type_for_interval): New.
891 (gcc_type_for_value): New.
892 (gcc_type_for_clast_term): New.
893 (gcc_type_for_clast_red): New.
894 (gcc_type_for_clast_bin): New.
895 (gcc_type_for_clast_expr): Split up into several functions.
896 (gcc_type_for_clast_eq): Rewritten.
897 (compute_bounds_for_level): New.
898 (compute_type_for_level_1): New.
899 (compute_type_for_level): New.
900 (gcc_type_for_cloog_iv): Removed.
901 (gcc_type_for_iv_of_clast_loop): Rewritten.
902 (graphite_create_new_loop): Compute the lower and upper bound types
903 with gcc_type_for_clast_expr.
904 (graphite_create_new_loop_guard): Same.
905 (find_cloog_iv_in_expr): Removed.
906 (compute_cloog_iv_types_1): Removed.
907 (compute_cloog_iv_types): Removed.
908 (gloog): Do not call compute_cloog_iv_types.
909 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
910 GBB_CLOOG_IV_TYPES.
911 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
912 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
913 (GBB_CLOOG_IV_TYPES): Removed.
914
915 * gcc.dg/graphite/run-id-pr42644.c: Call abort.
916
03ce78db 9172010-04-02 Sebastian Pop <sebastian.pop@amd.com>
918
919 Reverted this commit: as at this point the loop closed SSA form
920 is under a canonical form respecting the single argument condition.
921 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
922 close phi nodes may have more than one argument.
923
9242010-04-01 Sebastian Pop <sebastian.pop@amd.com>
925
926 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
927 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
928 (detect_commutative_reduction): Same.
929
9302010-03-31 Sebastian Pop <sebastian.pop@amd.com>
931
932 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
933 close phi nodes may have more than one argument.
934
67e28d17 9352010-03-30 Richard Guenther <rguenther@suse.de>
936 Zdenek Dvorak <ook@ucw.cz>
937 Sebastian Pop <sebastian.pop@amd.com>
938
939 PR middle-end/43464
940 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
941 with multiple arguments.
942 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
943
ff4c7a5a 9442010-03-23 Sebastian Pop <sebastian.pop@amd.com>
945
946 * graphite-dependences.c (print_pddr): Call print_pdr with an
947 extra argument.
948 * graphite-poly.c (debug_pdr): Add an extra argument for the
949 verbosity level.
950 (print_pdr): Same.
951 (print_pbb_domain): Same.
952 (print_pbb): Same.
953 (print_scop_context): Same.
954 (print_scop): Same.
955 (print_cloog): Same.
956 (debug_pbb_domain): Same.
957 (debug_pbb): Same.
958 (print_pdrs): Same.
959 (debug_pdrs): Same.
960 (debug_scop_context): Same.
961 (debug_scop): Same.
962 (debug_cloog): Same.
963 (print_scop_params): Same.
964 (debug_scop_params): Same.
965 (print_iteration_domain): Same.
966 (print_iteration_domains): Same.
967 (debug_iteration_domain): Same.
968 (debug_iteration_domains): Same.
969 (print_scattering_function): Same.
970 (print_scattering_functions): Same.
971 (debug_scattering_function): Same.
972 (debug_scattering_functions): Same.
973 * graphite-poly.h (debug_pdr): Update declaration.
974 (print_pdr): Same.
975 (print_pbb_domain): Same.
976 (print_pbb): Same.
977 (print_scop_context): Same.
978 (print_scop): Same.
979 (print_cloog): Same.
980 (debug_pbb_domain): Same.
981 (debug_pbb): Same.
982 (print_pdrs): Same.
983 (debug_pdrs): Same.
984 (debug_scop_context): Same.
985 (debug_scop): Same.
986 (debug_cloog): Same.
987 (print_scop_params): Same.
988 (debug_scop_params): Same.
989 (print_iteration_domain): Same.
990 (print_iteration_domains): Same.
991 (debug_iteration_domain): Same.
992 (debug_iteration_domains): Same.
993 (print_scattering_function): Same.
994 (print_scattering_functions): Same.
995 (debug_scattering_function): Same.
996 (debug_scattering_functions): Same.
997
1f8d6d4d 9982010-03-23 Sebastian Pop <sebastian.pop@amd.com>
999
1000 * graphite-poly.c (print_scattering_function_1): New.
1001 (print_scattering_function): Call it.
1002 (print_scop_params): Remove spaces at the end of lines.
1003 (print_cloog): New.
1004 (debug_cloog): New.
1005 * graphite-poly.h (print_cloog): Declared.
1006 (debug_cloog): Declared.
1007
4de8824d 10082010-03-23 Sebastian Pop <sebastian.pop@amd.com>
1009
1010 * tree-ssa-copy.c: Revert this previous change:
1011 (init_copy_prop): Loop closed phi nodes cancontain more than one
1012 argument.
1013 (execute_copy_prop): Revert the previous change: do not call
1014 rewrite_into_loop_closed_ssa.
1015
10162010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1017 Richard Guenther <rguenther@suse.de>
1018
1019 PR middle-end/43464
1020 * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can
1021 contain more than one argument.
1022 (execute_copy_prop): Revert the previous change: do not call
1023 rewrite_into_loop_closed_ssa.
1024
1025 * gcc.dg/graphite/id-pr43464.c: Remove compile warning.
1026 * gcc.dg/graphite/id-pr43464-1.c: New.
1027
10282010-03-21 Sebastian Pop <sebastian.pop@amd.com>
1029
1030 PR middle-end/43464
1031 * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa
1032 and verify_loop_closed_ssa when copy prop is executed in the LNO.
1033
1034 * gcc.dg/graphite/id-pr43464.c: New.
1035
0207206d 10362010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1037
1038 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
1039 in loop->header.
1040 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
1041 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
1042 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
1043 to switch between adding the IV bump in loop->latch or in loop->header.
1044
a751953f 10452010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1046
1047 * passes.c (init_optimization_passes): Add pass_copy_prop
1048 after Graphite.
1049
5dc5fe13 10502010-03-16 Sebastian Pop <sebastian.pop@amd.com>
1051
1052 * graphite-poly.c (print_scattering_function): Pretty print following
1053 the scoplib format.
1054 (print_pdr): Same.
1055 (print_pbb_domain): Same.
1056 (dump_gbb_cases): Same.
1057 (dump_gbb_conditions): Same.
1058 (print_pdrs): Same.
1059 (print_pbb): Same.
1060 (print_scop_params): Same.
1061 (print_scop_context): Same.
1062 (print_scop): Same.
1063 (print_pbb_body): New.
1064 (lst_indent_to): New.
1065 (print_lst): Start new lines with a #.
1066 * graphite-poly.h (pbb_bb): New.
1067 (pbb_index): Use pbb_bb.
1068 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
1069 disjuncts.
1070 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
1071
9251755b 10722010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1073
1074 PR middle-end/43351
1075 * gcc.dg/graphite/id-pr43351.c
1076
5a644317 10772010-03-13 Sebastian Pop <sebastian.pop@amd.com>
1078
1079 PR middle-end/43354
1080 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
1081 call insert_out_of_ssa_copy for default definitions.
1082 * gfortran.dg/graphite/id-pr43354.f: New.
1083
10842010-03-13 Sebastian Pop <sebastian.pop@amd.com>
197de505 1085
1086 PR middle-end/43349
1087 * gfortran.dg/graphite/pr43349.f: New.
1088
119adb56 10892010-03-11 Sebastian Pop <sebastian.pop@amd.com>
1090
1091 * graphite-clast-to-gimple.c (my_long_long): Defined.
1092 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
1093 * graphite-sese-to-poly.c (my_long_long): Defined.
1094 (scop_ivs_can_be_represented): Use it.
1095
578e3456 10962010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1097
1098 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
1099 graphite-max-bbs-per-function, and loop-block-tile-size.
1100 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
1101 with "maximum".
1102 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
1103
5d92ac74 11042010-03-10 Sebastian Pop <sebastian.pop@amd.com>
1105
1106 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
1107 forward declaration.
1108 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
1109 (add_upper_bounds_from_estimated_nit): New.
1110 (build_loop_iteration_domains): Use it.
1111
89466e43 11122010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1113
1114 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
1115
c4ccbe87 11162010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1117
1118 PR middle-end/43306
1119 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
1120 should be an INTEGER_CST. Also handle CASE_CONVERT.
1121 * gcc.dg/graphite/pr43306.c: New.
1122
94ba21de 11232010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1124
1125 * graphite.c (graphite_initialize): To bound the number of bbs per
1126 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
1127 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
1128 * doc/invoke.texi: Document it.
1129
f49215ce 11302010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1131
1132 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
1133 * graphite-sese-to-poly.h (build_poly_scop): Same.
1134
c2e502a5 11352010-03-09 Sebastian Pop <sebastian.pop@amd.com>
1136
1137 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
1138 the number of parameters in the scop. Use as an upper bound
1139 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
1140 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
1141 * doc/invoke.texi: Document it.
1142
8424df5f 11432010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1144
1145 * graphite-sese-to-poly.c (add_param_constraints): Use
1146 lower_bound_in_type and upper_bound_in_type.
1147
d6ad5c2f 11482010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1149
1150 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
1151 instead of unsigned_type_node.
1152
88a62e9b 11532010-03-05 Sebastian Pop <sebastian.pop@amd.com>
1154 Reza Yazdani <reza.yazdani@amd.com>
1155
1156 PR middle-end/43065
1157 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
1158 on pointer type parameters.
1159
1160 * gcc.dg/graphite/run-id-4.c: New.
1161
11622010-03-05 Sebastian Pop <sebastian.pop@amd.com>
bc1b5a1d 1163
1164 PR middle-end/43065
1165 * gcc.dg/graphite/run-id-3.c: New.
1166
f6fb4255 11672010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
1168 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1169
1170 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
1171 handle conversions from pointer to integers.
1172 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
1173 induction variable, to be able to work with code generated by CLooG.
1174 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
1175 (build_poly_scop): Bail out if we cannot codegen a loop.
1176
2d0a2aaa 11772010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
1178
1179 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
1180 code generation with gloog_error.
1181
2996b712 11822010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1183
1184 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
1185 Call fold_convert on all the returned values.
1186 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
1187 the type of the resulting expression.
1188
c817e987 11892010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1190
1191 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
1192 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
1193 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
1194
5f2e51eb 11952010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1196
1197 * graphite-dependences.c (map_into_dep_poly): Removed.
1198 (dependence_polyhedron_1): Use combine_context_id_scat.
1199
7453bc3b 12002010-03-04 Sebastian Pop <sebastian.pop@amd.com>
1201
1202 * graphite-poly.h (struct poly_scattering): Add layout documentation.
1203 (struct poly_bb): Same.
1204 (combine_context_id_scat): New.
1205
13dca219 12062010-03-02 Sebastian Pop <sebastian.pop@amd.com>
1207
1208 PR middle-end/42326
1209 * sese.c (name_defined_in_loop_p): Return false for default
1210 definitions.
1211
1212 * gcc.dg/graphite/pr42326.c: New.
1213
fc830e2d 12142010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1215
1216 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
1217 and clean up the logic.
1218
bde82a01 12192010-02-23 Sebastian Pop <sebastian.pop@amd.com>
1220
1221 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
1222 early return.
1223
bbf92068 12242010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1225
1226 PR middle-end/43083
1227 * graphite-scop-detection.c (create_single_exit_edge): Move
1228 the call to find_single_exit_edge to....
1229 (create_sese_edges): ...here. Don't handle multiple edges
1230 exiting the function.
1231 (build_graphite_scops): Don't handle multiple edges
1232 exiting the function.
1233
1234 * gcc.dg/graphite/pr43083.c: New.
1235
27f9c4ff 12362010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1237
66bb96d4 1238 PR middle-end/43097
27f9c4ff 1239 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
1240 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
1241
1242 * gfortran.dg/graphite/pr43097.f: New.
1243
c3eecfcf 12442010-02-22 Sebastian Pop <sebastian.pop@amd.com>
1245 Manuel López-Ibáñez <manu@gcc.gnu.org>
1246
1247 PR middle-end/43140
1248 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
1249
12502010-02-22 Sebastian Pop <sebastian.pop@amd.com>
550c39c3 1251
1252 PR middle-end/43026
1253 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
1254
1255 * g++.dg/graphite/pr43026.C: New.
1256
3dc0020f 12572010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
1258
1259 * Merge from mainline (154736:156693).
1260
5b3c8b56 12612010-02-11 Sebastian Pop <sebastian.pop@amd.com>
1262
1263 PR middle-end/43012
1264 * gcc.dg/graphite/pr43012.c: New.
65084500 1265
5b3c8b56 12662010-02-10 Sebastian Pop <sebastian.pop@amd.com>
65084500 1267
5b3c8b56 1268 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
65084500 12692010-02-10 Sebastian Pop <sebastian.pop@amd.com>
1270
1271 * g++.dg/graphite/pr42930.C: New.
1272
5dcbb45f 12732010-02-10 Sebastian Pop <sebastian.pop@amd.com>
ce0ae3b6 1274
1275 PR middle-end/42930
1276 * graphite-scop-detection.c (graphite_can_represent_scev): Call
1277 graphite_can_represent_init for MULT_EXPR.
1278
5dcbb45f 12792010-02-10 Sebastian Pop <sebastian.pop@amd.com>
eae8f2a1 1280
1281 PR middle-end/42914
1282 PR middle-end/42530
1283 * graphite-sese-to-poly.c (remove_phi): New.
1284 (translate_scalar_reduction_to_array): Call remove_phi.
1285
1286 * gcc.dg/graphite/pr42530.c: New.
1287 * gcc.dg/graphite/pr42914.c: New.
1288
5dcbb45f 12892010-02-10 Sebastian Pop <sebastian.pop@amd.com>
94bdcd77 1290
1291 PR middle-end/42771
1292 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
1293 * graphite-clast-to-gimple.h (gloog): Update declaration.
1294 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
1295 * graphite-poly.h (struct poly_bb): Add missing comments.
1296 (struct scop): Add poly_scop_p field.
1297 (POLY_SCOP_P): New.
1298 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
1299 * graphite.c (graphite_transform_loops): Build the polyhedral
1300 representation for each scop before code generation.
1301 * sese.c (rename_variables_in_operand): Removed.
1302 (rename_variables_in_expr): Return the renamed expression.
1303 (rename_sese_parameters): New.
1304 * sese.h (rename_sese_parameters): Declared.
1305
1306 * gcc.dg/graphite/pr42771.c: New.
1307
9fe3fe75 13082010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1309
1310 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
1311 return 0 from main.
1312 * gcc.dg/graphite/block-1.c: Same.
1313 * gcc.dg/graphite/block-3.c: Same.
1314 * gcc.dg/graphite/block-4.c: Same.
1315 * gcc.dg/graphite/block-5.c: Same.
1316 * gcc.dg/graphite/block-6.c: Same.
1317 * gcc.dg/graphite/block-7.c: Same.
1318 * gcc.dg/graphite/interchange-0.c: Same.
1319 * gcc.dg/graphite/interchange-1.c: Same.
1320 * gcc.dg/graphite/interchange-10.c: Same.
1321 * gcc.dg/graphite/interchange-11.c: Same.
1322 * gcc.dg/graphite/interchange-12.c: Same.
1323 * gcc.dg/graphite/interchange-2.c: Same.
1324 * gcc.dg/graphite/interchange-3.c: Same.
1325 * gcc.dg/graphite/interchange-4.c: Same.
1326 * gcc.dg/graphite/interchange-5.c: Same.
1327 * gcc.dg/graphite/interchange-6.c: Same.
1328 * gcc.dg/graphite/interchange-7.c: Same.
1329 * gcc.dg/graphite/interchange-8.c: Same.
1330 * gcc.dg/graphite/interchange-9.c: Same.
1331 * gcc.dg/graphite/interchange-mvt.c: Same.
1332
422538b1 13332010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1334
1335 * gfortran.dg/graphite/id-19.f: New.
1336 * gfortran.dg/graphite/pr14741.f90: New.
1337 * gfortran.dg/graphite/pr41924.f90: New.
1338 * gfortran.dg/graphite/run-id-2.f90: New.
1339
8fe76250 13402010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1341
1342 PR middle-end/42988
1343 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
1344 to unknown_dependence.
1345 (graphite_legal_transform_dr): Handle the unknown_dependence.
1346 (graphite_carried_dependence_level_k): Same.
1347
6c9df8cb 13482010-02-07 Sebastian Pop <sebastian.pop@amd.com>
1349
1350 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
1351
b7ac929d 13522010-02-05 Sebastian Pop <sebastian.pop@amd.com>
1353 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1354
1355 PR middle-end/42637
1356 * graphite-dependences.c (build_lexicographical_constraint): Return
1357 a union of dependence polyhedra.
1358 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
1359
6c9df8cb 1360 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
1361 * gcc.dg/graphite/block-4.c: Same.
1362 * gcc.dg/graphite/block-7.c: Same.
1363 * gcc.dg/graphite/interchange-12.c: Same.
1364 * gcc.dg/graphite/interchange-mvt.c: Same.
1365 * gfortran.dg/graphite/interchange-1.f: XFAILed.
1366 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
1367 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
b7ac929d 1368
015d0b5c 13692010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1370
6c9df8cb 1371 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
015d0b5c 1372 the execution check to FAIL. This testcase is miscompiled by Graphite
1373 and the check should be re-enabled.
6c9df8cb 1374 * gcc.dg/graphite/interchange-mvt.c: Same.
1375 * gcc.dg/graphite/block-0.c: Same.
1376 * gcc.dg/graphite/block-4.c: Same.
1377 * gcc.dg/graphite/block-7.c: Same.
015d0b5c 1378
a5414f1f 13792010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1380
6c9df8cb 1381 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
1382 * gcc.dg/graphite/scop-0.c: Fix spaces.
1383 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
1384 * gfortran.dg/graphite/block-2.f: Same.
1385 * gfortran.dg/graphite/block-3.f90: Same.
1386 * gfortran.dg/graphite/block-4.f90: Same.
1387 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
1388 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
a5414f1f 1389
a071b80b 13902010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1391
1392 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
1393 PDDR_ORIGINAL_SCATTERING_P.
1394 (pddr_is_empty): Rewritten.
1395 (print_dependence_polyhedron_layout): New.
1396 (print_pddr): New.
1397 (debug_pddr): New.
1398 (build_alias_set_powerset): Moved up.
1399 (poly_drs_may_alias_p): Moved up.
1400 (lexicographically_gt_p): Removed.
1401 (build_lexicographically_gt_constraint): Renamed
1402 build_lexicographical_constraint, reimplemented.
1403 (dependence_polyhedron_1): Simplified parameters.
1404 (dependence_polyhedron): Same. Keep along empty PDDRs
1405 to make efficient use of the cache.
1406 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
1407 (graphite_legal_transform_dr): Rewritten.
1408 (graphite_legal_transform_bb): Pass fewer arguments to
1409 graphite_legal_transform_dr.
1410 (graphite_carried_dependence_level_k): Simplified implementation.
1411 (dot_original_deps_stmt_1): Call dependence_polyhedron.
1412 (dot_transformed_deps_stmt_1): Same.
1413 (dot_original_deps): Same.
1414 (dot_transformed_deps): Same.
1415 * graphite-dependences.h (struct poly_ddr): Added a new field
1416 original_scattering_p.
1417 (PDDR_ORIGINAL_SCATTERING_P): New.
1418 (print_pddr): Declared.
1419 (debug_pddr): Declared.
1420 * graphite-ppl.c: Clarify comment.
1421 * sese.h (print_gimple_bb): Removed unused declaration.
1422 (debug_gbb): Same.
1423
d0546b2e 14242010-02-03 Sebastian Pop <sebastian.pop@amd.com>
1425
6c9df8cb 1426 * g++.dg/graphite/graphite.exp: Rewritten.
1427 * gcc.dg/graphite/graphite.exp: Rewritten.
1428 * gfortran.dg/graphite/graphite.exp: Rewritten.
1429 * gcc.dg/graphite/block-0.c: Added runtime test.
1430 * gcc.dg/graphite/block-1.c: Same.
1431 * gcc.dg/graphite/block-3.c: Same.
1432 * gcc.dg/graphite/block-4.c: Same.
1433 * gcc.dg/graphite/block-5.c: Same.
1434 * gcc.dg/graphite/block-6.c: Same.
1435 * gcc.dg/graphite/block-7.c: Same.
1436 * gcc.dg/graphite/interchange-0.c: Same.
1437 * gcc.dg/graphite/interchange-1.c: Same.
1438 * gcc.dg/graphite/interchange-10.c: Same.
1439 * gcc.dg/graphite/interchange-11.c: Same.
1440 * gcc.dg/graphite/interchange-12.c: Same.
1441 * gcc.dg/graphite/interchange-2.c: Same.
1442 * gcc.dg/graphite/interchange-3.c: Same.
1443 * gcc.dg/graphite/interchange-4.c: Same.
1444 * gcc.dg/graphite/interchange-5.c: Same.
1445 * gcc.dg/graphite/interchange-6.c: Same.
1446 * gcc.dg/graphite/interchange-7.c: Same.
1447 * gcc.dg/graphite/interchange-8.c: Same.
1448 * gcc.dg/graphite/interchange-9.c: Same.
1449 * gcc.dg/graphite/interchange-mvt.c: Same.
1450 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
d0546b2e 1451
ce363cd5 14522010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1453
1454 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
1455 background.
1456
14572010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1458
1459 * common.opt: Add -fgraphite-cloog-opts.
1460 * graphite-clast-to-gimple.c (set_cloog_options): Same.
1461 * opts.c (decode_options): Same.
1462
7bcf2a47 14632010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1464
6c9df8cb 1465 * gcc.dg/graphite/id-17.c: New.
1466 * gcc.dg/graphite/pr41888.c: New.
1467 * gcc.dg/graphite/scop-22.c: New.
1468 * gfortran.dg/graphite/pr40982.f90: New.
7bcf2a47 1469
f21ef1e7 14702010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1471
1472 * graphite-dependences.c: Clarify comments.
1473 (build_pddr): Add an extra parameter direction.
1474 (graphite_legal_transform_dr): Use build_pddr.
1475 (dot_original_deps_stmt_1): Update use of build_pddr.
1476 (dot_transformed_deps_stmt_1): Same.
1477 (dot_original_deps): Same.
1478 (dot_transformed_deps): Same.
1479
6c9df8cb 1480 * gcc.dg/graphite/interchange-12.c: New.
1481 * gcc.dg/graphite/block-7.c: New.
f21ef1e7 1482
4f19d858 14832010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1484
1485 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
1486 (pddr_transformed_scattering): Removed.
1487 (graphite_legal_transform_dr): Use build_pddr.
1488 (dot_original_deps_stmt_1): Same.
1489 (dot_transformed_deps_stmt_1): Same.
1490 (dot_original_deps): Same.
1491 (dot_transformed_deps): Same.
1492
4fe30658 14932010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1494
1495 * graphite-dependences.c (lexicographically_gt_p): Add comments.
1496 (build_lexicographically_gt_constraint): Same.
1497 (dependence_polyhedron_1): Same.
1498 (dependence_polyhedron): Same.
1499
abc97125 15002010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1501
1502 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
1503 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
1504 (lexicographically_gt_p): Change type of direction to int.
1505 (build_lexicographically_gt_constraint): Same.
1506 (dependence_polyhedron_1): Same.
1507 (dependence_polyhedron): Same.
1508 (pddr_original_scattering): Use integers for direction.
1509 (pddr_transformed_scattering): Same.
1510 (graphite_legal_transform_dr): Same.
1511 (graphite_carried_dependence_level_k): Same.
1512
b57cb73e 15132010-01-20 Sebastian Pop <sebastian.pop@amd.com>
1514
1515 * graphite-dependences.c (build_pairwise_constraint): Renamed
1516 ppl_build_relation. Moved...
1517 (dr_equality_constraints): Use ppl_build_relation.
1518 (build_pairwise_scheduling_equality): Same.
1519 (build_pairwise_scheduling_inequality): Same.
1520 * graphite-ppl.c (ppl_build_relation): ...here.
1521 * graphite-ppl.h (ppl_build_relation): Declared.
1522
2487de19 15232010-01-14 Sebastian Pop <sebastian.pop@amd.com>
1524
1525 PR middle-end/42681
1526 * graphite-clast-to-gimple.c (gloog_error): New static variable.
1527 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
1528 Set gloog_error when such an expression failed to be built.
1529 (translate_clast): Early return when gloog_error is set.
1530 (gloog): Clear gloog_error. When gloog_error is set, call
1531 set_ifsese_condition to enable the original code. Return the status
1532 of the code generation based on gloog_error.
1533 * sese.c (set_ifsese_condition): New.
1534 * sese.h (set_ifsese_condition): Declared.
1535
6c9df8cb 1536 * g++.dg/graphite/pr42681.C: New.
2487de19 1537
efe339e3 15382010-01-14 Sebastian Pop <sebastian.pop@amd.com>
1539
1540 PR middle-end/42732
1541 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
1542 rename_nb_iterations.
1543 * sese.c (rename_variables_in_operand): New.
1544 (rename_variables_in_expr): New.
1545 (rename_nb_iterations): New.
1546 (sese_adjust_liveout_phis): Update the rename_map.
1547 * sese.h (rename_nb_iterations): Declared.
1548 * tree-scalar-evolution.c (scev_reset_htab): New.
1549 (scev_reset): Call scev_reset_htab.
1550 * tree-scalar-evolution.h (scev_reset_htab): Declared.
1551
6c9df8cb 1552 * gfortran.dg/graphite/pr42732.f: New.
efe339e3 1553
a77f6f84 15542010-01-08 Sebastian Pop <sebastian.pop@amd.com>
1555
1556 PR middle-end/42393
1557 * graphite-clast-to-gimple.c: Fix formatting.
1558 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
1559 (expr_defined_in_loop_p): New.
1560 (add_loop_exit_phis): Also handle full expressions: remove from
1561 the rename_map the expressions defined in the loop that we're closing.
1562
6c9df8cb 1563 * gfortran.dg/graphite/pr42393-1.f90: New.
1564 * gfortran.dg/graphite/pr42393.f90: Add new flags
a77f6f84 1565 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
1566 make this testcase useful in the Graphite branch.
1567
01e31b4b 15682010-01-08 Sebastian Pop <sebastian.pop@amd.com>
1569
1570 * graphite-scop-detection.c (exclude_component_ref): Removed.
1571 (is_simple_operand): Removed.
1572 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
1573
2379556f 15742010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1575
1576 PR middle-end/42221
1577 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
1578 the array indexing of ADDR_EXPRs.
1579
6c9df8cb 1580 * gcc.dg/graphite/pr42221.c: New.
2379556f 1581
d9458edc 15822010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1583
1584 PR middle-end/42521
1585 * graphite.c (graphite_finalize): Call scev_reset.
1586 (graphite_transform_loops): Do not call scev_reset between the code
1587 generation of scops.
1588
6c9df8cb 1589 * gcc.dg/graphite/pr42521.c: New.
d9458edc 1590
b33d4eb4 15912010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1592
1593 * graphite-interchange.c (memory_stride_in_loop): Renamed
1594 pdr_stride_in_loop.
1595 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
1596 (memory_strides_in_loop): Memoize the memory strides per loop.
1597 (lst_interchange_profitable_p): Do not initialize to zero the memory
1598 strides.
1599 * graphite-poly.h (struct lst): Add a field memory_strides.
1600 (LST_LOOP_MEMORY_STRIDES): New.
1601 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
1602 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
1603
a16e8346 16042010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1605
1606 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
1607 memory_strides_in_loop. Gather memory strides on a whole loop.
1608 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
1609 (lst_interchange_profitable_p): Removed.
1610 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
1611
2edfa860 16122010-01-07 Sebastian Pop <sebastian.pop@amd.com>
1613
1614 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1615 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
1616 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
1617 Remove context_loop and level.
1618
3f12432d 16192010-01-07 Richard Guenther <rguenther@suse.de>
1620
1621 PR tree-optimization/42641
1622 * sese.c (rename_map_elt_info): Use the SSA name version, do
1623 not hash pointers.
1624
16252010-01-06 Sebastian Pop <sebastian.pop@amd.com>
1626
1627 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
1628 blocked" only when both the strip mine and the interchange have
1629 been applied.
1630
6c9df8cb 1631 * gcc.dg/graphite/block-2.c: Removed.
1632 * gcc.dg/graphite/block-3.c: Add scan pattern.
1633 * gcc.dg/graphite/block-4.c: Same.
1634 * gcc.dg/graphite/block-5.c: Same.
1635 * gcc.dg/graphite/block-6.c: Same.
3f12432d 1636
cfd3faac 16372010-01-06 Sebastian Pop <sebastian.pop@amd.com>
1638
1639 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
1640 before allocating a new one.
1641 (copy_renames): Check that slot is not NULL.
1642 (mark_bb_with_pbb): Same.
1643 (compute_cloog_iv_types_1): Same.
1644 * graphite-interchange.c (lst_perfect_nestify): Free the before,
1645 nest, and after LSTs.
1646 (lst_try_interchange_loops): Same.
1647
a1a6700b 16482010-01-05 Sebastian Pop <sebastian.pop@amd.com>
1649
1650 PR middle-end/42178
1651 * graphite-interchange.c (lst_try_interchange_loops): Do not return
1652 the before, nest, and after LSTs.
1653 (lst_try_interchange): Removed.
1654 (lst_interchange_select_inner): Do not iterate over the LSTs if they
1655 were modified.
1656 (lst_interchange_select_outer): Apply interchange on the outer loop
1657 until there are no more changes in the inner loops.
1658
7f60ea7e 16592009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1660
1661 Revert patch fixing PR middle-end/42221.
1662
16632009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1664
1665 PR middle-end/42180
1666 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
1667 GIMPLE_CALL.
1668
6c9df8cb 1669 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
7f60ea7e 1670
c668dee5 16712009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1672
1673 PR middle-end/42180
1674 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
1675 that contain only one statement.
1676
6c9df8cb 1677 * gfortran.dg/graphite/pr42180.f90: New.
7f60ea7e 1678
a190b734 16792009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1680
1681 PR middle-end/42393
6c9df8cb 1682 * gfortran.dg/graphite/pr42393.f90: New.
a190b734 1683
1747b6ef 16842009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1685
1686 PR middle-end/42186
6c9df8cb 1687 * gfortran.dg/graphite/pr42186.f90: New.
1747b6ef 1688
36f22aa0 16892009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1690
1691 PR middle-end/42205
1692 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
1693 Insert the reduction copy in the same block as the phi node.
1694 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
1695
6c9df8cb 1696 * gcc.dg/graphite/pr42205-1.c: New.
1697 * gcc.dg/graphite/pr42205-2.c: New.
36f22aa0 1698
16992009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1700
1701 PR middle-end/42221
1702 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
1703 the array indexing of ADDR_EXPRs.
1704
6c9df8cb 1705 * gcc.dg/graphite/pr42221.c: New.
36f22aa0 1706
673c512e 17072009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1708
1709 PR middle-end/42178
1710 PR middle-end/42334
1711 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
1712 index. Call lst_interchange_select_inner only once.
1713 (lst_interchange_select_inner): Update use of lst_try_interchange.
1714 (lst_interchange_select_outer): Update.
1715
17162009-12-15 Sebastian Pop <sebastian.pop@amd.com>
1717
1718 PR middle-end/42178
1719 PR middle-end/42334
1720 * graphite-interchange.c (lst_try_interchange): Do not increment the
1721 the OUTER index when there is no AFTER kernel. Do not increment the
1722 OUTER index for after processing the AFTER kernel.
1723 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
1724 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
1725 index. Do not pass to lst_interchange_select_inner the OUTER index.
1726 (scop_do_interchange): Update use of lst_interchange_select_outer.
1727
6c9df8cb 1728 * gfortran.dg/graphite/graphite.exp
673c512e 1729 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
6c9df8cb 1730 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
673c512e 1731 the graphite dump file.
6c9df8cb 1732 * gfortran.dg/graphite/interchange-2.f: Same.
1733 * gfortran.dg/graphite/pr42334-1.f: New.
673c512e 1734
17352009-12-15 Sebastian Pop <sebastian.pop@amd.com>
1736
1737 PR middle-end/42178
1738 PR middle-end/42334
1739 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
1740 that are empty.
1741 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
1742 (lst_try_interchange): Reimplemented.
1743 (lst_interchange_select_inner): Same.
1744 (lst_do_interchange): Renamed lst_interchange_select_outer.
1745 Reimplemented.
1746 (scop_do_interchange): Update use of lst_interchange_select_outer.
1747
6c9df8cb 1748 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
1749 * gcc.dg/graphite/block-0.c: Un-XFAILed.
1750 * gcc.dg/graphite/pr42211.c: New.
1751 * gfortran.dg/graphite/pr42334.f90: New.
673c512e 1752
99c136a5 17532009-12-14 Sebastian Pop <sebastian.pop@amd.com>
1754
1755 PR middle-end/42181
1756 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
1757 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
1758
6c9df8cb 1759 * gfortran.dg/graphite/pr42181.f90: New.
99c136a5 1760
5184a05f 17612009-12-12 Sebastian Pop <sebpop@gmail.com>
1762
1763 PR middle-end/42284
1764 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
1765 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
1766 (detect_commutative_reduction_arg): Simplified.
1767 (detect_commutative_reduction): Early return when the argument of
1768 the close phi is not of an SSA_NAME.
1769
6c9df8cb 1770 * gcc.dg/graphite/pr42284.c: New.
5184a05f 1771
17722009-12-11 Alexander Monakov <amonakov@ispras.ru>
1773
1774 * dbgcnt.def (graphite_scop): New counter.
1775 * graphite.c: Include dbgcnt.h
1776 (graphite_transform_loops): Use new counter to limit transformations.
1777
7464e753 17782009-12-08 Sebastian Pop <sebpop@gmail.com>
1779
1780 PR middle-end/42285
1781 * graphite-scop-detection.c (graphite_can_represent_init): Also
1782 handle more complex MULT_EXPRs containing parameters by recursion
1783 on the structure.
1784
6c9df8cb 1785 * gfortran.dg/graphite/pr42285.f90: New.
7464e753 1786
17872009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
1788
6c9df8cb 1789 * g++.dg/graphite/pr42130.C: Fix type.
7464e753 1790
f96db528 17912009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
1792
6c9df8cb 1793 * g++.dg/graphite/pr42130.C: Correct testcase.
1794
17952009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
1796
1797 * Merge from mainline (154493:154734).
1798
17992009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
1800
1801 * Merge from mainline (151362:154491).
f96db528 1802
b7bde372 18032009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
1804
1805 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
1806 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
1807
32e78944 18082009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1809
1810 PR middle-end/42130
1811 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
1812 translate_clast_for_loop): New.
1813 (translate_clast_for): Add a condition around the loop, to do not
1814 execute loops with zero iterations.
6c9df8cb 1815 * g++.dg/graphite/pr42130.C: New.
1816 * gcc.dg/graphite/pr35356-2.c: Adapt.
32e78944 1817
bafaa7f6 18182009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1819
1820 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
1821 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
1822 Remove context_loop and level.
1823
0f5b569a 18242009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1825
1826 * graphite-clast-to-gimple.c (translate_clast_user,
1827 translate_clast_for, translate_clast_guard): Simplify and move common
1828 elements to translate_clast().
1829 (translate_clast): Simplify and get common elements.
1830
9a75e57c 18312009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1832
1833 * graphite-clast-to-gimple.c (translate_clast_user,
1834 translate_clast_for, translate_clast_guard): Split out of
1835 translate_clast.
1836
c9ef6b0e 18372009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
1838
1839 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
1840 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
1841 debug_clast_name_indexes_1, debug_clast_name_indexes,
1842 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
1843 (clast_name_to_gcc, clast_to_gcc_expression,
1844 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
1845 gcc_type_for_clast_eq, graphite_translate_clast_equation,
1846 graphite_create_guard_cond_expr, graphite_create_new_loop,
1847 translate_clast): Add params_index.
1848 (initialize_cloog_names): Create parameter strings from scratch, do
1849 not reference other strings.
1850 (create_params_index): New.
1851 (gloog): Initialize params_index.
1852 * graphite-scop-detection (free_scops_1): Removed.
1853 (limit_scops): Use normal free_scops.
1854 * graphite-sese-to-poly.c (save_var_names): Removed.
1855 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
1856 and SESE_PARAMS_INDEX.
1857 * sese.c (new_sese, free_sese): Dito.
1858 * sese.h (struct sese): Remove params_index, params_names.
1859 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
1860
a2a00920 18612009-11-20 Sebastian Pop <sebastian.pop@amd.com>
1862
1863 Revert the following patch from 2009-09-14:
1864 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1865 tree-scalar-evolution.h, and then tree-data-ref.h.
1866 * graphite-clast-to-gimple.c: Same.
1867 * graphite-dependences.c: Same.
1868 * graphite-interchange.c: Same.
1869 * graphite-poly.c: Same.
1870 * graphite-scop-detection.c: Same.
1871 * graphite-sese-to-poly.c: Same.
1872 * graphite.c: Same.
1873 * lambda-code.c: Same.
1874 * matrix-reorg.c: Same.
1875 * tree-data-ref.c: Same.
1876 * tree-if-conv.c: Same.
1877 * tree-loop-distribu: Same.: Same.
1878 * tree-loop-linear.c: Same.
1879 * tree-parloops.c: Same.
1880 * tree-predcom.c: Same.
1881 * tree-vect-patterns.c: Same.
1882
2bc59caa 18832009-11-20 Sebastian Pop <sebastian.pop@amd.com>
1884
1885 Revert patch from 2009-09-14.
1886 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
1887 passes at -O1 and below.
1888
1d4dd1ed 18892009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1890
1891 PR middle-end/40281
6c9df8cb 1892 * gcc.dg/graphite/pr40281.c: New.
1d4dd1ed 1893
1894 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
1895 evolutions should not variate in inner loops.
1896
efe7b64c 18972009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1898
1899 PR middle-end/42050
6c9df8cb 1900 * gfortran.dg/graphite/pr42050.f90: New.
efe7b64c 1901
acba5819 19022009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1903
1904 * graphite-interchange.c (memory_strides_in_loop_depth): New.
1905 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
1906
64d8f27a 19072009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1908
1909 * graphite-blocking.c (scop_do_block): New.
1910 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
1911 * graphite-poly.h (scop_do_block): Declared.
1912
9a0158f5 19132009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1914
1915 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
1916 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
1917 to transform depth into the time_depth before calling
1918 pbb_number_of_iterations_at_time.
1919 (lst_do_strip_mine): Use a scalar variable instead of recomputing
1920 lst_depth.
1921
9d274e75 19222009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1923
1924 Reverted the patch for "scattering permutations" from 2009-10-28.
1925
1926 * graphite-poly.c (print_permutation): New.
1927 (debug_permutation): New.
1928 (new_poly_bb): Initialize PBB_PERMUTATION.
1929 (free_poly_bb): Free PBB_PERMUTATION.
1930 * graphite-poly.h (pbb_permutation_elt_p): Declared.
1931 (struct pbb_permutation_elt): New.
1932 (PBB_PERMUTATION_ELT_STRIDE): New.
1933 (PBB_PERMUTATION_ELT_STRIDED_P): New.
1934 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
1935 (new_pbb_permutation_elt): New.
1936 (pbb_permutation_elt_free): New.
1937 (struct poly_bb): Add field permutation.
1938 (PBB_PERMUTATION): New.
1939 (print_permutation): Declared.
1940 (debug_permutation): Declared.
1941
3bcc3204 19422009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1943
1944 * graphite-interchange.c (build_partial_difference): New.
1945 (memory_stride_in_loop): Refactored the computation of
1946 equality constraints into build_partial_difference function.
1947 Added support for debugging stride computations.
1948
d996851c 19492009-11-03 Sebastian Pop <sebastian.pop@amd.com>
1950
1951 * graphite-clast-to-gimple.c (gloog): Free if_region,
1952 if_region->true_region, and if_region->region.
1953 * sese.c (if_region_set_false_region): Free if_region->false_region.
1954 (create_if_region_on_edge): Do not use GGC_NEW.
1955 (move_sese_in_condition): Remove useless initialization.
1956
87d25ca7 19572009-11-03 Sebastian Pop <sebastian.pop@amd.com>
1958
1959 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
1960 for the loops created by the loop distribution. Do not modify the
1961 input LSTs.
1962 (lst_try_interchange_loops): Same. Use a temporary LST for the
1963 transformed schedule. Call lst_update_scattering before data
1964 dependence analysis.
1965 (lst_try_interchange): Pass an extra parameter INDEX.
1966 (lst_do_interchange_1): New.
1967 (lst_do_interchange): Call lst_do_interchange_1.
1968 (scop_do_interchange): Call lst_update_scattering.
1969 * graphite-poly.c (apply_poly_transforms): Do not call
1970 lst_update_scattering.
1971 * graphite-poly.h (lst_pred): New.
1972 (lst_succ): New.
1973 (lst_find_first_pbb): Return NULL when not found.
1974 (lst_empty_p): New.
1975 (lst_insert_in_sequence): Allow LST1 to be NULL.
1976 (lst_replace): New.
1977 (lst_substitute_3): New.
1978 * gcc.dg/graphite/interchange-1.c: XFail.
1979 * gcc.dg/graphite/interchange-8.c: XFail.
1980 * gcc.dg/graphite/interchange-11.c: XFail.
1981
06ced013 19822009-10-30 Sebastian Pop <sebastian.pop@amd.com>
1983
1984 * graphite-interchange.c (lst_perfectly_nested_p): New.
1985 (lst_perfect_nestify): New.
1986 (lst_try_interchange_loops): Call store_lst_schedule,
1987 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
1988 (scop_do_interchange): Avoid redundant legality test.
1989 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
1990 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
1991 * graphite-poly.h (psct_static_dim): New.
1992 (lst_dewey_number_at_depth): New.
1993 (lst_find_pbb): Restructured.
1994 (lst_find_first_pbb): Restructured.
1995 (lst_find_last_pbb): New.
1996 (lst_contains_p): New.
1997 (lst_contains_pbb): New.
1998 (lst_create_nest): New.
1999 (lst_remove_from_sequence): New.
2000 (pbb_update_scattering): New.
2001 (lst_update_scattering_under): New.
2002 (lst_update_scattering_seq): New.
2003 (lst_update_scattering): New.
2004 (lst_insert_in_sequence): New.
2005 (lst_distribute_lst): New.
2006 (lst_remove_all_before_including_pbb): New.
2007 (lst_remove_all_before_excluding_pbb): New.
2008
bf3aab8f 20092009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2010
2011 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
2012 get_loop_exit_edges.
2013
06b1d38c 20142009-10-30 Sebastian Pop <sebastian.pop@amd.com>
2015
2016 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
2017
22467ffb 20182009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2019
2020 * graphite-poly.c (print_permutation): New.
2021 (debug_permutation): New.
2022 (new_poly_bb): Initialize PBB_PERMUTATION.
2023 (free_poly_bb): Free PBB_PERMUTATION.
2024 * graphite-poly.h (pbb_permutation_elt_p): Declared.
2025 (struct pbb_permutation_elt): New.
2026 (PBB_PERMUTATION_ELT_STRIDE): New.
2027 (PBB_PERMUTATION_ELT_STRIDED_P): New.
2028 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
2029 (new_pbb_permutation_elt): New.
2030 (pbb_permutation_elt_free): New.
2031 (struct poly_bb): Add field permutation.
2032 (PBB_PERMUTATION): New.
2033 (print_permutation): Declared.
2034 (debug_permutation): Declared.
2035
628eaf60 20362009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2037
2038 * graphite-clast-to-gimple.c (gloog): Do not call
2039 sese_reset_aux_in_loops.
2040 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
2041 extra argument for domains. Do not use loop->aux.
2042 (build_scop_iteration_domain): Initialize and free domains, pass it
2043 to build_loop_iteration_domains and extract the information from
2044 domains. Do not use loop->aux.
2045 * sese.c (sese_reset_aux_in_loops): Removed.
2046 * sese.h (sese_reset_aux_in_loops): Removed.
2047
2eb8c11d 20482009-10-26 Sebastian Pop <sebastian.pop@amd.com>
2049
2050 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
2051 (dependency_in_loop_p): Same.
2052 (translate_clast): Do not use loop->aux. Initialize
2053 loop->can_be_parallel.
2054 (mark_loops_parallel): Removed.
2055 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
2056 * graphite.c (free_aux_in_new_loops): Removed.
2057 (graphite_finalize): Do not call free_aux_in_new_loops.
2058 (graphite_transform_loops): Do not call mark_loops_parallel.
2059
20602009-10-26 Li Feng <nemokingdom@gmail.com>
86cbf617 2061
2062 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
2063 (translate_clast): Pass an extra parameter LEVEL.
2064 Call get_scattering_level.
2065 * graphite-clast-to-gimple.h (get_scattering_level): New.
2066
314c9614 20672009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2068
2069 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
2070 * cfgloop.h (struct loop): New field single_iv.
2071
2072 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
2073 loop->aux anymore: use loop->single_iv.
2074 (graphite_loop_normal_form): Moved...
2075 (build_graphite_loop_normal_form): Removed.
2076 (gloog): Do not call build_graphite_loop_normal_form.
2077 (free_aux_in_new_loops): Moved...
2078 (mark_loops_parallel): Restructure.
2079 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
2080 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
2081 (scop_canonicalize_loops): New.
2082 (build_poly_scop): Call scop_canonicalize_loops.
2083 * graphite.c (free_aux_in_new_loops): ...here.
2084
71bc7526 20852009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2086
2087 * g++.dg/graphite/graphite.exp: Add the same rules as in
2088 gcc.dg/graphite/graphite.exp.
2089
24af1ef8 20902009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2091
2092 * g++.dg/graphite/id-1.C: New.
2093
03c1327b 20942009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2095
2096 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
2097 argument base_name.
2098 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
2099 (rewrite_phi_out_of_ssa): Same.
2100 (rewrite_cross_bb_scalar_deps): Same.
2101 (translate_scalar_reduction_to_array): Same.
2102
8f9b64ca 21032009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2104
2105 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
2106 dump_alias_graphs.
2107
aa16918e 21082009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2109
2110 * graphite-sese-to-poly.c (dump_alias_graphs): New.
2111 (build_scop_drs): Call dump_alias_graphs.
2112
7e7ffe19 21132009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2114
2115 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
2116 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2117 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
2118 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
2119 * graphite-poly.h (free_lst): New.
2120 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
2121 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
2122
e2622b4f 21232009-10-22 Sebastian Pop <sebastian.pop@amd.com>
2124
2125 * graphite-poly.h (struct scop): Add a field saved_schedule.
2126 (SCOP_SAVED_SCHEDULE): New.
2127 (store_lst_schedule): New.
2128 (restore_lst_schedule): New.
2129 (store_scattering): Call store_lst_schedule.
2130 (restore_scattering): Call restore_lst_schedule.
2131
1a95516e 21322009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2133
2134 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
2135 (pdr_add_alias_set): Same.
2136 (build_poly_dr): Same.
2137 (build_alias_set_optimal_p): Same.
2138 (build_base_obj_set_for_drs): Same. Do not store the result of
2139 graphds_dfs.
2140
f289f81b 21412009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2142
2143 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
2144 all_components_are_cliques to 1.
2145
e9a3f95f 21462009-10-20 Li Feng <nemokingdom@gmail.com>
2147
2148 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
2149 the new structure.
2150 (pdr_add_alias_set): Update retrieving alias_set_num.
2151 (build_poly_dr): Update retrieving dr_base_object_set.
2152 (partition_drs_to_sets): Remove.
2153 (build_alias_set_optimal_p): New.
2154 (build_alias_set_for_drs): Rename.
2155 (build_scop_drs): Update.
2156 * graphite-sese-to-poly.h (struct base_alias_pair): New.
2157 (ALIAS_SET_INDEX): Remove.
2158 (BASE_OBJECT_SET_INDEX): Remove.
2159
a6457fb8 21602009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2161
2162 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
2163
3354e72e 21642009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2165
2166 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
2167 loop upper bounds for 1-element arrays at end of structures.
2168 * tree-flow.h (array_at_struct_end_p): Declared.
2169 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
2170
917c8e43 21712009-10-20 Sebastian Pop <sebastian.pop@amd.com>
2172
2173 * g++.dg/graphite/pr41305.C: New.
2174
b6410506 21752009-10-20 Alexander Monakov <amonakov@ispras.ru>
2176
2177 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
2178 construction of parameter constraints from loop iteration analysis.
2179 * gcc.dg/graphite/run-id-2.c: New test.
2180
a66257d5 21812009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2182
2183 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
2184 and new_cstr.
2185
38e3217b 21862009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2187
2188 * graphite-dependences.c (dependence_polyhedron_1): Remove
2189 unused gdim dimensions from the DDR polyhedron.
2190
de38f9c0 21912009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2192
2193 * graphite-dependences.c (pddr_transformed_scattering): New.
2194 (dot_original_deps_stmt_1): New.
2195 (dot_transformed_deps_stmt_1): New.
2196 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
2197 dot_transformed_deps_stmt_1.
2198 (dot_original_deps): New.
2199 (dot_transformed_deps): New.
2200 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
2201
ba01d66f 22022009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2203
2204 * graphite-dependences.c (reduction_dr_1): Remove wrong
2205 assert: reduction BBs can have multiple reduction writes
de38f9c0 2206 to memory. interchange-3.f90 is an example.
ba01d66f 2207
9050e62f 22082009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2209
2210 * gfortran.dg/graphite/interchange-3.f90: New.
2211
d26b2d30 22122009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2213
2214 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
2215
bff9278d 22162009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2217
2218 * graphite-dependences.c (dependence_polyhedron_1): Add the
2219 context to the dependence polyhedron.
2220
13d0cae2 22212009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2222
2223 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
2224 PBB_PDR_DUPLICATES_REMOVED.
2225 (new_poly_bb): Same.
2226
acb3969f 22272009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2228
2229 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
2230 SCOP_CONTEXT.
2231 (build_loop_iteration_domains): Extract bounds on parameters
2232 based on the data size.
2233 (build_scop_context): Do not initialize SCOP_CONTEXT;
2234 add new constraints.
2235
e6d78739 22362009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2237
2238 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
2239 * graphite-ppl.h (graphite-ppl.h): Declared.
2240
409f96c1 22412009-10-17 Sebastian Pop <sebastian.pop@amd.com>
2242
2243 * graphite-ppl.c (ppl_print_linear_expr): New.
2244 (debug_ppl_linear_expr): New.
2245 * graphite-ppl.h (ppl_print_linear_expr): Declared.
2246 (debug_ppl_linear_expr): Declared.
2247
3d695986 22482009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2249
2250 * graphite-interchange.c: Fix comments.
2251 * gcc.dg/graphite/block-1.c: Fix comments.
2252
ecab863e 22532009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2254
2255 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
2256 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
2257
3dfb9fc0 22582009-10-16 Sebastian Pop <sebastian.pop@amd.com>
2259
2260 Reapply the patch from Alexander Monakov that disappeared during
2261 the last merges from trunk.
2262
2263 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
2264
2265 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2266 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2267
a1190c1b 22682009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2269
2270 * graphite-interchange.c (memory_stride_in_loop): The depth
2271 argument corresponds to a dynamic time dimension, so use
2272 psct_dynamic_dim to refer to the transformed scattering dimension.
2273
dd3d3fae 22742009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2275
2276 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
2277
43217ce9 22782009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2279
2280 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
2281 root of the LST.
2282 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
2283 the root of the LST.
2284 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
2285 fake loop.
2286 (print_lst): Print the root of LST in a different format.
2287 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
2288
9b6c835c 22892009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2290
2291 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
2292
1e2a9aa7 22932009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2294
2295 * doc/passes.texi: Document the Graphite infrastructure.
2296
ff010926 22972009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2298
2299 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
2300 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
2301 and check the SSA representation.
2302
2303 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
2304
fa846ea9 23052009-10-15 Sebastian Pop <sebastian.pop@amd.com>
2306
2307 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
2308
fe45c436 23092009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2310
2311 * gcc.dg/graphite/interchange-11.c: New.
2312
2e3e5ac8 23132009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2314
2315 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
2316
93a95718 23172009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2318
2319 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2320 Add -fno-loop-strip-mine and -fno-loop-interchange.
2321 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
2322 -fno-loop-strip-mine.
2323 * gfortran.dg/graphite/graphite.exp: Same.
2324
196689e3 23252009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2326
2327 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2328 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
2329 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
2330 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
2331 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
2332 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
2333 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
2334 DEFAULT_FLAGS_GRAPHITE_SCOP.
2335 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
2336 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
2337
d9e94834 23382009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2339
2340 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
2341
5e18ab2b 23422009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2343 Sebastian Pop <sebastian.pop@amd.com>
2344
2345 * graphite-interchange.c (build_linearized_memory_access): Pass an
2346 offset as parameter.
2347 (memory_stride_in_loop): Include transform scattering in the
2348 access functions to be able to querry the strides in the
2349 transformed loops.
2350 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
2351 not the psct_iterator_dim.
2352
0befefcc 23532009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2354
2355 * graphite-blocking.c (pbb_do_strip_mine): Removed.
2356 (lst_do_strip_mine_loop): New.
2357 (lst_do_strip_mine): New.
2358 (scop_do_strip_mine): Call lst_do_strip_mine.
2359 * graphite-poly.h (lst_add_loop_under_loop): New.
2360 (lst_find_first_pbb): New.
2361
71b90bc3 23622009-10-14 Sebastian Pop <sebastian.pop@amd.com>
2363
2364 * graphite-poly.c (loop_to_lst): Fix LST creation.
2365
4d6599d0 23662009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2367
6c9df8cb 2368 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
4d6599d0 2369 sizeof(unsigned long) to make it run on 32bit systems.
2370
23712009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
2372
6c9df8cb 2373 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
4d6599d0 2374 SEGFAULT on 32bit.
2375
96233858 23762009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
2377
4d6599d0 2378 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
2379 Comment.
96233858 2380 (write_alias_graph_to_ascii_dot): New.
2381 (write_alias_graph_to_ascii_ecc): Ditto.
4d6599d0 2382 (partition_drs_to_sets): Add testing of optimality of current method
2383 which assigns alias numbers according to DFS Comopnent number. used
2384 as heuristic for the upcoming ECC algorithm.
96233858 2385 (build_scop_drs): Write to file also with the ecc and dot format.
2386
8eedbd74 23872009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2388
2389 * gfortran.dg/graphite/interchange-1.f: XFail.
2390
ef98ee10 23912009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2392
2393 * graphite.c (graphite_initialize): Do not handle functions with
2394 more than 100 basic blocks.
2395
b8ad26cc 23962009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2397
2398 * graphite-blocking.c (pbb_do_strip_mine): Use
2399 PARAM_LOOP_BLOCK_TILE_SIZE.
2400
4938b827 24012009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2402
2403 * graphite-poly.c (dot_lst_1): New.
2404 (dot_lst): New.
2405 * graphite-poly.h (dot_lst): Declared.
2406
a7d089ac 24072009-10-13 Sebastian Pop <sebastian.pop@amd.com>
2408
2409 * graphite-dependences.c (dot_deps_stmt_1): New.
2410 (dot_deps_stmt): New.
2411 * graphite-dependences.h (dot_deps_stmt): Declared.
2412
dd27e8aa 24132009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2414
2415 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
2416 not replace cross BB scalar dependences ending on PHI nodes.
2417 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
2418
dbe2e816 24192009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2420
2421 * graphite-poly.c (apply_poly_transforms): Implement the high
2422 level driver for flag_loop_block.
6c9df8cb 2423 * opts.c (decode_options): Enable flag_loop_block at -O2.
dbe2e816 2424 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
2425 flag_loop_block.
2426
2427 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
2428 -floop-block.
2429 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
2430 Add -floop-block.
2431
89d077e8 24322009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2433
2434 * graphite-poly.h (lst_find_pbb): New.
2435 (find_lst_loop): New.
2436
220b380e 24372009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2438
2439 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
2440 * graphite-poly.h (struct scop): Remove dep_graph field.
2441 (SCOP_DEP_GRAPH): Removed.
2442
554eeadb 24432009-10-09 Sebastian Pop <sebastian.pop@amd.com>
2444
2445 * graphite-poly.h (copy_lst): Do full copy of LST.
2446
30105622 24472009-10-07 Sebastian Pop <sebastian.pop@amd.com>
2448
2449 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
2450 when the loop stride is zero.
2451
2452 * gcc.dg/graphite/id-16.c: New.
2453
f007fe97 24542009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2455
2456 * graphite-dependences.c (reduction_dr_1): New.
2457 (reduction_dr_p): New.
2458 (graphite_legal_transform_dr): Call reduction_dr_p.
2459 (reduction_ddr): Renamed reduction_ddr_p.
2460 * graphite-poly.h (same_pdr_p): New.
2461 (number_of_write_pdrs): New.
2462 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
2463 (split_reduction_stmt): Do not split reduction statements
2464 when there are no writes to memory.
2465 (translate_scalar_reduction_to_array_for_stmt): Insert the
2466 memory reduction statement just after the scalar reduction statement.
2467
2468 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
2469 Un-XFAIL-ed.
2470 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
2471 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
2472
4d0382bc 24732009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2474
2475 * graphite-interchange.c (lst_apply_interchange): New.
2476 (lst_interchange_profitable_p): New.
2477 (lst_try_interchange_loops): New.
2478 (lst_try_interchange): New.
2479 (lst_do_interchange): New.
2480 (pbb_do_interchange): Removed.
2481 (scop_do_interchange): Call lst_do_interchange.
2482
f77385d3 24832009-10-06 Sebastian Pop <sebastian.pop@amd.com>
2484
2485 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
2486 SCOP_TRANSFORMED_SCHEDULE.
2487 (loop_to_lst): New.
2488 (scop_to_lst): New.
2489 (print_lst): New.
2490 (debug_lst): New.
2491 * graphite-poly.h (lst_p): New.
2492 (struct lst): New.
2493 (LST_LOOP_P): New.
2494 (LST_LOOP_FATHER): New.
2495 (LST_PBB): New.
2496 (LST_SEQ): New.
2497 (scop_to_lst): Declared.
2498 (print_lst): Declared.
2499 (debug_lst): Declared.
2500 (new_lst_loop): New.
2501 (new_lst_stmt): New.
2502 (copy_lst): New.
2503 (lst_depth): New.
2504 (lst_dewey_number): New.
2505 (struct scop): Add original_schedule and transformed_schedule fields.
2506 (SCOP_ORIGINAL_SCHEDULE): New.
2507 (SCOP_TRANSFORMED_SCHEDULE): New.
2508 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
2509
30f4f4a6 25102009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2511
2512 * graphite-dependences.c (reduction_ddr): New.
2513 (graphite_legal_transform_bb): Call reduction_ddr.
2514 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
2515 Initialize PBB_IS_REDUCTION.
2516 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
2517 (PBB_IS_REDUCTION): New.
2518 (new_poly_bb): Update declaration.
2519 * graphite-scop-detection.h (build_scop_bbs): Removed.
2520 (nb_reductions_in_loop): Removed.
2521 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
2522 parameter for reductions.
2523 (try_generate_gimple_bb): Update call to new_poly_bb.
2524 (build_scop_bbs_1): Same.
2525 (build_scop_bbs): Same.
2526 (gsi_for_phi_node): New.
2527 (scalar_close_phi_node_p): Remove gcc_assert.
2528 (split_reduction_stmt): New.
2529 (is_reduction_operation_p): New.
2530 (phi_contains_arg): New.
2531 (follow_ssa_with_commutative_ops): New.
2532 (detect_commutative_reduction_arg): New.
2533 (detect_commutative_reduction_assign): New.
2534 (follow_inital_value_to_phi): New.
2535 (edge_initial_value_for_loop_phi): New.
2536 (initial_value_for_loop_phi): New.
2537 (detect_commutative_reduction): New.
2538 (translate_scalar_reduction_to_array_for_stmt): New.
2539 (insert_copyout): New.
2540 (insert_copyin): New.
2541 (translate_scalar_reduction_to_array): New.
2542 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
2543 (rewrite_commutative_reductions_out_of_ssa_loop): New.
2544 (rewrite_commutative_reductions_out_of_ssa): New.
2545 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
2546 * sese.h (split_region_for_bb): New.
2547
2548 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
2549 * gcc.dg/graphite/interchange-1.c: Fix format.
2550 * gcc.dg/graphite/interchange-10.c: New.
2551
dcdff5dc 25522009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2553
2554 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
2555 buggy assert.
2556
5061777c 25572009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2558
2559 * graphite-sese-to-poly.c (scev_analyzable_p): New.
2560 (rewrite_cross_bb_scalar_dependence): New.
2561 (rewrite_cross_bb_scalar_deps): New.
2562 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
2563 Call rewrite_cross_bb_scalar_deps.
2564
52123e43 25652009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2566
2567 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
2568 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
2569 gsi_for_stmt.
2570
ef43e998 25712009-10-05 Sebastian Pop <sebastian.pop@amd.com>
2572
2573 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
2574 * graphite-interchange.c (pbb_do_interchange): Same.
2575 * graphite-poly.c (print_scattering_function): Same.
2576 (debug_pdrs): Same.
2577 * graphite-poly.h (pbb_loop): New.
2578 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
2579
7bf7d520 25802009-09-27 Sebastian Pop <sebastian.pop@amd.com>
2581
2582 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
2583
9c48819a 25842009-09-27 Sebastian Pop <sebastian.pop@amd.com>
2585
2586 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
2587 so don't pass a pointer to it.
2588 (build_alias_set_for_drs): Same.
2589 (build_base_obj_set_for_drs): Same.
2590 (build_scop_drs): Same.
2591
af3b89d1 25922009-09-26 Li Feng <nemokingdom@gmail.com>
2593
2594 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
2595 the alias graph of data references.
2596
8dee37ec 25972009-09-25 Li Feng <nemokingdom@gmail.com>
2598
2599 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
2600 (build_scop_drs): When debugging, write the alias graph to file,
2601 otherwise, should be disabled.
2602
6c9df8cb 26032009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2604
2605 * Merge from mainline (151310:151361).
2606
26072009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2608
2609 * Merge from mainline (151171:151310).
2610
26112009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2612
2613 * Merge from mainline (151171:151806).
2614
26152009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2616
2617 * Revert the last commit.
2618
26192009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2620
2621 * Merge from mainline (151171:151819).
2622
3cc56eaf 26232009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2624
2625 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
2626 (is_simple_operand): Remove call to stmt_simple_memref_p.
2627 (stmt_simple_for_scop_p): Update call to is_simple_operand.
2628
4d62cf0c 26292009-09-17 David Edelsohn <edelsohn@gnu.org>
2630
6c9df8cb 2631 * gcc.dg/graphite/interchange-mvt.c: New File.
2632 * gcc.dg/graphite/scop-dsyrk.c: New File.
2633 * gcc.dg/graphite/scop-dsyr2k.c: New File.
2634 * gcc.dg/graphite/scop-mvt.c: New File.
2635 * gcc.dg/graphite/scop-sor.c: New File.
4d62cf0c 2636
ae11f03b 26372009-09-17 Li Feng <nemokingdom@gmail.com>
2638
ae11f03b 2639 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
2640 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
2641 (graphite_carried_dependence_level_k): Ditto.
2642 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
2643 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
2644 (new_poly_dr): Adjust declaration.
2645 * graphite-sese-to-poly.c (free_data_refs_aux): New.
2646 (free_gimple_bb): Added free_data_refs_aux.
2647 (build_poly_dr): Add dr_base_object_set.
2648 (partition_drs_to_sets): New.
2649 (dr_same_base_object_p): New.
2650 (build_alias_set_for_drs): New.
2651 (build_base_object_set_for_drs): New.
2652 (build_scop_drs): Add build_base_obj_set_for_drs.
2653 * graphite-sese-to-poly.h: Added #define for alias set number index and
2654 base object set index.
2655 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
2656 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
2657
e5d72697 26582009-09-16 Alexander Monakov <amonakov@ispras.ru>
2659
2660 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2661 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2662
db899978 26632009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2664
2665 * graphite-sese-to-poly.c (struct irp_data): Removed.
2666 (idx_record_params): Removed.
2667 (find_params_in_bb): Scan for parameters the access functions; don't
2668 parse the tree representation.
2669
e5b6be5e 26702009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2671
2672 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
2673 passes at -O1 and below.
2674
f631009f 26752009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2676
2677 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
2678 tree-scalar-evolution.h, and then tree-data-ref.h.
2679 * graphite-clast-to-gimple.c: Same.
2680 * graphite-dependences.c: Same.
2681 * graphite-interchange.c: Same.
2682 * graphite-poly.c: Same.
2683 * graphite-scop-detection.c: Same.
2684 * graphite-sese-to-poly.c: Same.
2685 * graphite.c: Same.
2686 * lambda-code.c: Same.
2687 * matrix-reorg.c: Same.
2688 * tree-data-ref.c: Same.
2689 * tree-if-conv.c: Same.
2690 * tree-loop-distribu: Same.: Same.
2691 * tree-loop-linear.c: Same.
2692 * tree-parloops.c: Same.
2693 * tree-predcom.c: Same.
2694 * tree-vect-patterns.c: Same.
2695
5e803fbe 26962009-09-02 Sebastian Pop <sebastian.pop@amd.com>
2697
2698 Partially revert the previous patch, except the following.
2699 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
2700 as parameters the operands of the not expression.
2701
c43f1e90 27022009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2703
2704 * tree-scalar-evolution.c (instantiate_scev_assign): New.
2705 Do not call analyze_scalar_evolution on assignments.
2706 (instantiate_scev_phi): Call analyze_scalar_evolution.
2707 (instantiate_scev_name): Call instantiate_scev_assign and
2708 instantiate_scev_phi.
2709 (instantiate_scev_not): Adapted to pass as parameters the operands
2710 of the not expression.
2711
9e9aa0c6 27122009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2713
2714 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
2715 to pass as parameters the operands of the binary expression.
2716
9d206f16 27172009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2718
2719 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
2720 instantiate_scev_not. Handle NEGATE_EXPR.
2721 (instantiate_scev_r): Handle NEGATE_EXPR.
2722
d91a99f1 27232009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2724
2725 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
2726 instantiate_scev_r.
2727 (instantiate_scev_r): Move code in instantiate_scev_2
2728 and instantiate_scev_1.
2729
378a6626 27302009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2731
2732 * tree-scalar-evolution.c (instantiate_scev_3): New.
2733 (instantiate_scev_1): Move code in instantiate_scev_3.
2734
a819f845 27352009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2736
2737 * tree-scalar-evolution.c (instantiate_scev_poly): New.
2738 (instantiate_scev_1): Move code in instantiate_scev_poly.
2739
39251a91 27402009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2741
2742 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
2743 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
2744
7723692a 27452009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2746
2747 * tree-scalar-evolution.c (instantiate_scev_convert): New.
2748 (instantiate_scev_1): Move code in instantiate_scev_convert.
2749
5a10dfba 27502009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2751
2752 * tree-scalar-evolution.c (instantiate_scev_binary): New.
2753 (instantiate_scev_1): Move code in instantiate_scev_binary.
2754
0731d869 27552009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2756
2757 * tree-scalar-evolution.c (instantiate_scev_name): New.
2758 (instantiate_scev_1): Move code in instantiate_scev_name.
2759
27602009-08-28 Sebastian Pop <sebastian.pop@amd.com>
2761
2762 * Merge from mainline (150992:151171).
2763
6c9df8cb 27642009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2765
2766 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
2767
9e3531b5 27682009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2769
2770 * graphite-dependences.c (graphite_legal_transform_bb): Call
2771 pbb_remove_duplicate_pdrs.
2772 * graphite-poly.c (can_collapse_pdr): Removed.
2773 (pdr_find_duplicate): Removed.
2774 (can_collapse_pdrs): New.
2775 (pbb_remove_duplicate_pdrs): New.
2776 (new_poly_dr): Do not look for duplicates.
2777 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
2778 (PBB_PDR_DUPLICATES_REMOVED): New.
2779 (pbb_remove_duplicate_pdrs): Declared.
2780
11b2102e 27812009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2782
2783 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
2784 the strides by multiplying by PDR_NB_REFS.
2785 * graphite-poly.c (can_collapse_pdr): New.
2786 (pdr_find_duplicate): New.
2787 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
2788 Initialize PDR_NB_REFS.
2789 * graphite-poly.h (struct poly_dr): Add field nb_refs.
2790 (PDR_NB_REFS): New.
2791 (new_poly_dr): Number of subscripts is a graphite_dim_t.
2792
27932009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2794
2795 Revert one of the previous commits:
2796 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
2797 the computation of symmetric data dependence relations.
2798 (dependency_between_pbbs_p): Same.
2799
d0aaf399 28002009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2801
2802 PR middle-end/40965
2803 * graphite-poly.c (apply_poly_transforms): Remove legality test before
2804 any transform.
2805
79698ff3 28062009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2807
2808 * graphite-dependences.c (pddr_original_scattering): Return NULL
2809 for read-read dependence relations.
2810 * graphite-poly.h (enum poly_dr_type): Fix comment.
2811 (pdr_read_p): New.
2812 (pdr_write_p): New.
2813 (pdr_may_write_p): New.
2814
c04f2da7 28152009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2816
2817 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
2818 (struct poly_dr): Same.
2819 (new_poly_dr): Same.
2820 * graphite-poly.c (new_poly_dr): Same.
2821
ee0d08ad 28222009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2823 Sebastian Pop <sebastian.pop@amd.com>
2824
2825 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
2826 pbb_strip_mine_time_depth. Changed the implementation so that
2827 transformation is expressed as a transformation on
2828 time (scatttering) dimensions. Also, ensures that the 2d+1
2829 scheduling format is preserved.
2830 (pbb_strip_mine_profitable_p): Profitability is based on the
2831 iteration number of a given time (scattering) dimension,
2832 and not on a original loop depth dimension.
2833 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
2834 (pbb_do_strip_mine): Call psct_dynamic_dim.
2835 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
2836 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
2837 (pbb_nb_dynamic_scattering_transform): New.
2838 (psct_dynamic_dim): New.
2839
55c54afb 28402009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2841
2842 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
2843 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
2844 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
2845 * graphite-interchange.c (build_linearized_memory_access): Same.
2846 (memory_stride_in_loop): Same.
2847
96b6d5d7 28482009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2849
2850 * graphite-dependences.c (pddr_original_scattering): New.
2851 (graphite_legal_transform_dr): Call pddr_original_scattering.
2852 (dot_deps_1): New.
2853 (dot_deps): New.
2854 * graphite-dependences.h (dot_deps): Declared.
2855 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
2856 (print_pdr): Print PDR_ID.
2857 * graphite-poly.h (struct poly_dr): Add field id.
2858 (PDR_ID): New.
2859 (pbb_index): New.
2860 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
2861
2b3a572c 28622009-08-22 Sebastian Pop <sebastian.pop@amd.com>
2863
2864 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
2865 not delete the original dependence relation.
2866
28672009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2868
2869 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
2870 the computation of symmetric data dependence relations.
2871 (dependency_between_pbbs_p): Same.
2872
0d6b5db2 28732009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2874
2875 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
2876 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
2877 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
2878 (free_poly_ddr): New.
2879 (pddr_is_empty): New.
2880 (dependence_polyhedron_1): Now returns a poly_ddr_p.
2881 (dependence_polyhedron): Same. Remove useless gcc_assert.
2882 Remove fprintfs.
2883 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
2884 (graphite_carried_dependence_level_k): Call pddr_is_empty.
2885 * graphite-dependences.h (enum poly_dependence_kind): New.
2886 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
2887 (PDRP_SOURCE): Renamed PDDR_SOURCE.
2888 (PDRP_SINK): Renamed PDDR_SINK.
2889 (PDRP_DDP): Renamed PDDR_DDP.
2890 (PDDR_KIND): New.
2891 (free_poly_ddr): Declared.
2892 * graphite-poly.c (new_scop): Use the new hash function names.
2893 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
2894 into original_pddrs.
2895 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
2896
28972009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2898
2899 * Merge from mainline (150764:150992).
2900
02df46c6 29012009-08-18 Sebastian Pop <sebastian.pop@amd.com>
2902
2903 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
2904 bounds with LT_EXPR to make niter analysis more precise on code
2905 generated by Graphite.
2906
70a1a7a2 29072009-08-18 Sebastian Pop <sebastian.pop@amd.com>
2908
2909 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
2910 (graphite_legal_transform_bb): Same.
2911 (poly_drs_may_alias_p): Same.
2912
19eec579 29132009-08-15 Sebastian Pop <sebastian.pop@amd.com>
2914
2915 PR middle-end/40981
2916 * graphite-ppl.c (ppl_max_for_le): Correct the use of
2917 ppl_Pointset_Powerset_C_Polyhedron_maximize.
2918
29192009-08-13 Sebastian Pop <sebastian.pop@amd.com>
2920
2921 * graphite-poly.c (print_pbb): Print PBB index.
2922
29232009-08-13 Sebastian Pop <sebastian.pop@amd.com>
2924
2925 * Merge from mainline (r150672:150764).
2926
29272009-08-13 Sebastian Pop <sebastian.pop@amd.com>
2928
2929 * graphite-interchange.c (ppl_max_for_le): Moved...
2930 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
2931 * graphite-ppl.c (ppl_max_for_le): ... here.
2932 * graphite-ppl.h (ppl_max_for_le): Declared.
2933
29342009-08-12 Sebastian Pop <sebastian.pop@amd.com>
2935
2936 * Merge from mainline (r150372:150672).
2937
43f8b6ab 29382009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2939
2940 PR middle-end/40980
2941 * sese.c (convert_for_phi_arg): New.
2942 (add_guard_exit_phis): Use convert_for_phi_arg.
2943
6c9df8cb 2944 * gfortran.dg/graphite/id-17.f: New.
43f8b6ab 2945
96da1999 29462009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2947
2948 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
2949 unknown subscript upper bounds.
2950
6c9df8cb 2951 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
96da1999 2952
80020e9d 29532009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2954 Pranav Garg <pranav.garg2107@gmail.com>
2955
2956 * graphite-interchange.c (gather_access_strides): Removed.
2957 (ppl_max_for_le): New.
2958 (build_linearized_memory_access): New.
2959 (memory_stride_in_loop): New.
2960 (pbb_interchange_profitable_p): Reimplemented.
2961 * graphite-ppl.h (ppl_new_id_map): New.
2962 (ppl_interchange): New.
2963
6c9df8cb 2964 * gcc.dg/graphite/interchange-6.c: XFAILed.
80020e9d 2965
c9fce634 29662009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2967
2968 * graphite-interchange.c (compute_subscript): Removed.
2969 (compute_array_size_cstr): Removed.
2970 (compute_array_size_poly): Removed.
2971 (compute_array_size): Removed.
2972 (gather_access_strides_poly): Removed.
2973 (gather_access_strides): Empty.
2974
85f74b79 29752009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2976
2977 * graphite-dependences.c (dependence_polyhedron_1): Replace
2978 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
2979 (graphite_legal_transform_dr): Same.
2980 (graphite_carried_dependence_level_k): Same.
2981 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
2982 Initialize PDR_NB_SUBSCRIPTS.
2983 (print_pdr_access_layout): Replace pdr_nb_subscripts with
2984 PDR_NB_SUBSCRIPTS.
2985 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
2986 (PDR_NB_SUBSCRIPTS): New.
2987 (pdr_nb_subscripts): Removed.
2988 (pdr_dim): Simplified.
2989 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
2990 with PDR_NB_SUBSCRIPTS.
2991
19b42529 29922009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2993
2994 * graphite-interchange.c (compute_array_size): Remove use of
2995 PDR_DATA_CONTAINER.
2996 * graphite-poly.c (new_poly_dr): Remove argument data_container.
2997 Do not initialize PDR_DATA_CONTAINER.
2998 (print_pdr): Do not print PDR_DATA_CONTAINER.
2999 * graphite-poly.h (struct poly_dr): Remove data_container field.
3000 (PDR_DATA_CONTAINER): Removed.
3001 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
3002 PDR_DATA_CONTAINER.
3003 (build_poly_dr): Same.
3004
9daa8810 30052009-08-11 Sebastian Pop <sebastian.pop@amd.com>
3006
6c9df8cb 3007 * gcc.dg/graphite/interchange-9.c: New.
9daa8810 3008
0835eab6 30092009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3010 Sebastian Pop <sebastian.pop@amd.com>
3011
3012 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
3013 copy of the dependence polyhedron. Free the temporary objects.
3014 (graphite_carried_dependence_level_k): Free unused objects before
3015 returning.
3016
6c9df8cb 3017 * gcc.dg/graphite/interchange-1.c: XFAILed.
3018 * gcc.dg/graphite/interchange-2.c: XFAILed.
3019 * gcc.dg/graphite/interchange-3.c: XFAILed.
3020 * gcc.dg/graphite/interchange-4.c: XFAILed.
3021 * gcc.dg/graphite/interchange-7.c: XFAILed.
0835eab6 3022
a741358d 30232009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3024
3025 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
3026 Early return without analyzing the data dependences if no
3027 transform has been done. Call restore_scattering if the transform
3028 is not legal.
3029 (graphite-interchange.c): Same.
3030 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
3031 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
3032 (apply_poly_transforms): Do not gcc_assert that
3033 the transform is legal.
3034 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3035 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
3036 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
3037 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
3038 * graphite-poly.h (struct poly_scattering): New.
3039 (struct poly_bb): Add original, transformed, and saved fields.
3040 Remove transformed_scattering, original_scattering, nb_local_variables,
3041 and nb_scattering_transform fields.
3042 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
3043 (poly_scattering_new): New.
3044 (poly_scattering_free): New.
3045 (poly_scattering_copy): New.
3046 (store_scattering_pbb): New.
3047 (store_scattering): New.
3048 (restore_scattering_pbb): New.
3049 (restore_scattering): New.
3050 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3051 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
9daa8810 3052
95b2e0d3 30532009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3054
3055 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
3056 (print_scop): Same.
3057
675d86b2 30582009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3059
3060 * Makefile.in (graphite.o): Depends on PREDICT_H.
3061 * graphite.c: Include predict.h.
3062 (graphite_finalize): Call tree_estimate_probability.
3063 * predict.c (predict_loops): Do not call scev_initialize and
3064 scev_finalize.
3065 (tree_estimate_probability_bb): New.
3066 (tree_estimate_probability): Do not initialize loops: move that
3067 code to the driver. Call tree_estimate_probability_bb.
3068 (tree_estimate_probability_driver): New.
3069 (pass_profile): Use tree_estimate_probability_driver.
3070 * predict.h (tree_estimate_probability): Declared.
3071
525c22c4 30722009-08-05 Sebastian Pop <sebastian.pop@amd.com>
3073
3074 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
3075 * graphite-dependences.c (graphite_legal_transform): Add time to
3076 TV_GRAPHITE_DATA_DEPS.
3077 (dependency_between_pbbs_p): Same.
3078 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
3079
30802009-08-03 Sebastian Pop <sebastian.pop@amd.com>
3081
3082 * Merge from mainline (r149952:150372).
3083
c6bb733d 30842009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3085
3086 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
3087 * graphite-blocking.c: Same.
3088 * graphite-clast-to-gimple.c: Same.
3089 * graphite-dependences.c: Same.
3090 * graphite-poly.c: Same.
3091 * graphite-poly.h: Same.
3092 * graphite-ppl.c: Same.
3093 * graphite-scop-detection.c: Same.
3094 * graphite-sese-to-poly.c: Same.
3095 * graphite.c: Same.
3096
30972009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3098
3099 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
3100 (remove_simple_copy_phi): New.
3101 (remove_invariant_phi): New.
3102 (simple_copy_phi_p): New.
3103 (reduction_phi_p): New.
3104 (gsi_for_ssa_name_def): New.
3105 (insert_out_of_ssa_copy): New.
3106 (insert_out_of_ssa_copy_on_edge): New.
3107 (create_zero_dim_array): New.
3108 (scalar_close_phi_node_p): New.
3109 (rewrite_close_phi_out_of_ssa): New.
3110 (rewrite_phi_out_of_ssa): New.
3111 (rewrite_reductions_out_of_ssa): New.
3112 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
3113
6c9df8cb 3114 * gcc.dg/graphite/id-11.c: New.
3115 * gcc.dg/graphite/id-15.c: New.
3116 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
3117 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
3118 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
3119 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
3120 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
3121 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
3122 * gfortran.dg/graphite/id-13.f: New.
3123 * gfortran.dg/graphite/id-5.f: New.
c6bb733d 3124
31252009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3126
3127 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
3128 check that nb_reductions_in_loop is zero.
3129 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
3130 reduction phi nodes.
3131 (nb_reductions_in_loop): Removed.
3132 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
3133 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
3134 (bb_contains_non_iv_scalar_phi_nodes): Removed.
3135 (scop_contains_non_iv_scalar_phi_nodes): Removed.
3136 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
3137
31382009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3139
3140 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
3141 statements that have an empty iteration domain.
6c9df8cb 3142 * gfortran.dg/graphite/id-16.f: New.
c6bb733d 3143
31442009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3145
3146 * tree-scalar-evolution.c (instantiate_scev_1): Return
3147 chrec_dont_know when the result is not above instantiate_below.
3148 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
3149 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
3150 the tree has a known scalar evolution.
6c9df8cb 3151 * gfortran.dg/graphite/id-14.f: New.
3152 * gfortran.dg/graphite/id-15.f: New.
c6bb733d 3153
31542009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3155
3156 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
3157 insert_gsi.
3158 (rename_variables): Keep inserting renames after the ones already
3159 inserted.
3160
31612009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3162
3163 * graphite-sese-to-poly.c (compare_bb_depths): New.
3164 (graphite_sort_dominated_info): New.
3165 (build_scop_bbs_1): Call graphite_sort_dominated_info.
3166 (build_scop_scattering): Fix comment.
3167
31682009-07-28 Sebastian Pop <sebastian.pop@amd.com>
3169
3170 * graphite.c (graphite_finalize): Call print_loops instead of
3171 dump_function_to_file.
6c9df8cb 3172 * gcc.dg/graphite/graphite.exp: Fix formatting.
3173 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
c6bb733d 3174 loops generated in the graphite output file.
6c9df8cb 3175 * gcc.dg/graphite/pr35356-2.c: New.
3176 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
3177 * gfortran.dg/graphite/id-12.f: New.
c6bb733d 3178
31792009-07-24 Li Feng <nemokingdom@gmail.com>
3180
6c9df8cb 3181 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
c6bb733d 3182 Remove 2 XFAIL.
3183
31842009-07-24 Li Feng <nemokingdom@gmail.com>
3185 Tobias Grosser <grosser@fim.uni-passau.de>
3186
3187 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
3188 alias set number build alias in ACCESSES polyhedron.
3189 (build_alias_set_for_drs): New.
3190 (build_pbb_drs): Added build_alias_set_for_drs.
3191 * graphite-dependences.c (poly_drs_may_alias_p): New.
3192 (graphite_carried_dependence_level_k): Check alias information
3193 before building polyhedron.
3194
31952009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3196
3197 * Makefile.in (lambda-code.o): Fix formatting.
3198
31992009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
3200
3201 * Merge from mainline (r149350-149952)
3202
32032009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3204
3205 * graphite-poly.c (apply_poly_transforms): Move strip_mine
3206 before interchange to prepare for loop blocking.
3207
32082009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
3209
3210 * graphite-poly.c (apply_poly_transforms): Add checks after every
3211 transformation.
3212 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
3213 done in apply_poly_transforms.
3214
32152009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3216
3217 * graphite-dependences.c (build_lexicographically_gt_constraint):
3218 Replace RES parameter with *RES.
3219 (dependence_polyhedron_1): Pass an address of the parameter RES
3220 instead of value of RES.
3221
32222009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3223
3224 * graphite.c (graphite_finalize): Fix comment.
3225 (graphite_transform_loops): Reset scev info after code generation
3226 of each scop.
3227
32282009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3229
3230 * graphite.c (graphite_finalize): Call scev_reset.
3231
32322009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3233
3234 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
3235 GBB_CLOOG_IV_TYPES hash table twice.
3236 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
3237 (add_condition_to_domain): Clear GMP values.
3238
32392009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3240
3241 * graphite-dependences.c: Fix formatting.
3242 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
3243 (pbb_number_of_iterations): Free ppl_Linear_Expression.
3244 * graphite-sese-to-poly.c: Fix formatting.
3245 * graphite.c (graphite_transform_loops): Create the hash table
3246 after the early return.
3247
32482009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3249
6c9df8cb 3250 * gcc.dg/graphite/id-14.c: New.
3251 * gcc.dg/graphite/pr40157.c: New.
3252 * gfortran.dg/graphite/id-11.f: New.
c6bb733d 3253
32542009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3255
3256 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
3257 (build_poly_scop): Return false when there are no pbbs within
3258 loops to avoid to pass to cloog scops with no loops.
3259
32602009-07-16 Sebastian Pop <sebastian.pop@amd.com>
3261
3262 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
3263 useless test "i % 2".
3264 (build_pbb_scattering_polyhedrons): Fix formatting.
3265 (build_poly_dr): Same.
3266 * graphite.c (graphite_transform_loops): Restructure.
3267
32682009-07-14 Razya Ladelsky <razya@il.ibm.com>
3269
3270 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
3271 reduction_list parameter.
3272 (rewrite_all_phi_nodes_with_iv): Same.
3273 (canonicalize_loop_ivs): Same.
3274 * tree-parloops.c (struct brli): Removed.
3275 (build_reduction_list_info): Removed.
3276 (build_new_reduction): New.
3277 (analyze_reduction_list): Removed.
3278 (gather_scalar_reductions): Find reductions instead of phi
3279 nodes that can't be canonicalized.
3280 (try_create_reduction_list): Remove reduction_list parameter.
3281 (gen_parallel_loop): Same.
3282 (parallelize_loops): Remove analyze_reductions variable,
3283 initialization and free.
3284 Change reduction_list htab initialization to reduction_info
3285 elements instead of ssa names.
3286 Call try_create_reduction_list and gen_parallel_loop without
3287 analyzed_reduction argument.
3288 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
3289 canonicalize_loop_ivs with one less argument.
3290 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
3291
32922009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3293
3294 * graphite-dependences.c (new_poly_dr_pair): New.
3295 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
3296 (new_poly_dr_pair): New.
3297 (eq_poly_dr_pair_p): New.
3298 (hash_poly_dr_pair_p): New.
3299 * graphite-dependences.h (struct poly_dr_pair): New.
3300 (eq_poly_dr_pair_p): Declared.
3301 (hash_poly_dr_pair_p): Declared.
3302 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
3303 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
3304 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
3305 * Makefile.in (graphite-poly.o): Add dependence on
3306 graphite-dependences.h.
3307
33082009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3309
3310 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
3311 polynomials of degree > 1 pass to Graphite.
3312 * tree-chrec.c (scev_is_linear_expression): Call
3313 evolution_function_is_affine_multivariate_p.
6c9df8cb 3314 * gfortran.dg/graphite/id-10.f90: New.
c6bb733d 3315
33162009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3317
3318 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
3319 Instantiate scevs varying in outer loops.
6c9df8cb 3320 * gfortran.dg/graphite/id-9.f: Correct testcase.
c6bb733d 3321
33222009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3323
3324 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
3325 redundant constraint.
3326
33272009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3328
6c9df8cb 3329 * gcc.dg/graphite/graphite.exp: Fix comments.
3330 * gfortran.dg/graphite/graphite.exp: Trigger actions
c6bb733d 3331 based on the file names as in the C testsuite.
6c9df8cb 3332 * gfortran.dg/graphite/block-1.f90: Fix patterns.
3333 * gfortran.dg/graphite/block-2.f: Same.
3334 * gfortran.dg/graphite/block-3.f90: Same.
3335 * gfortran.dg/graphite/block-4.f90: Same.
3336 * gfortran.dg/graphite/id-1.f90: Same.
3337 * gfortran.dg/graphite/id-2.f90: Same.
3338 * gfortran.dg/graphite/id-3.f90: Same.
3339 * gfortran.dg/graphite/id-4.f90: Same.
3340 * gfortran.dg/graphite/id-6.f: Same.
3341 * gfortran.dg/graphite/id-9.f: Same.
3342 * gfortran.dg/graphite/interchange-1.f: Same.
3343 * gfortran.dg/graphite/interchange-2.f: Same.
3344 * gfortran.dg/graphite/scop-1.f: Same.
c6bb733d 3345
33462009-07-14 Sebastian Pop <sebastian.pop@amd.com>
3347
3348 * sese.c (expand_scalar_variables_call): New.
3349 (expand_scalar_variables_ssa_name): Handle calls in expander.
3350
33512009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3352
6c9df8cb 3353 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
c6bb733d 3354 Expect to see the pattern twice.
6c9df8cb 3355 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
3356 * gcc.dg/graphite/interchange-5.c: Same.
3357 * gcc.dg/graphite/interchange-6.c: Same.
c6bb733d 3358
33592009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3360
6c9df8cb 3361 * gcc.dg/graphite/id-10.c: New.
3362 * gcc.dg/graphite/id-12.c: New.
3363 * gfortran.dg/graphite/id-7.f: New.
3364 * gfortran.dg/graphite/id-8.f: New.
c6bb733d 3365
33662009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3367
3368 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
3369 zero.
3370
33712009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3372
3373 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
3374
33752009-07-13 Sebastian Pop <sebastian.pop@amd.com>
3376
3377 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
3378
33792009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3380
3381 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
3382 building PDR subscripts.
3383
33842009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3385
3386 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
3387 computation of array sizes.
3388
33892009-07-10 Sebastian Pop <sebastian.pop@amd.com>
3390
3391 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
3392
33932009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
3394
3395 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
3396 build_pairwise_constraint, dr_equality_constraints,
3397 build_pairwise_scheduling_equality,
3398 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3399 build_lexicographically_gt_constraint, dependence_polyhedron,
3400 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
3401 Move from NNC_Polyhedron to C_Polyhedron.
3402 * graphite-interchange.c (compute_array_size_poly,
3403 gather_access_strides): Dito.
3404 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
3405 free_scop, pbb_number_of_iterations): Dito.
3406 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
3407 pbb_dim_iter_domain, struct scop): Dito.
3408 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
3409 new_Cloog_Domain_from_ppl_Polyhedron,
3410 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
3411 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
3412 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
3413 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
3414 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
3415 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
3416 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
3417 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
3418 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
3419 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
3420 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
3421 build_scop_iteration_domain, build_poly_dr): Dito
3422
34232009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3424
6c9df8cb 3425 * gcc.dg/graphite/graphite.exp: Added a rule to execute
c6bb733d 3426 run-id-*.c files.
6c9df8cb 3427 * gcc.dg/graphite/run-id-1.c: New.
c6bb733d 3428
34292009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3430
3431 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
3432 positivity constraint on the symbolic number of iterations.
3433
34342009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3435
3436 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
3437
34382009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3439 Tobias Grosser <grosser@fim.uni-passau.de>
3440
3441 * graphite-clast-to-gimple.c (build_scop_context): Removed.
3442 (build_cloog_prog): Directly use SCOP_CONTEXT.
3443 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
3444 (free_scop): Free SCOP_CONTEXT.
3445 (print_scop_context): New.
3446 (print_scop): Call print_scop_context.
3447 (debug_scop_context): New.
3448 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
3449 (struct scop): Added field context.
3450 (SCOP_CONTEXT): New.
3451 * graphite-sese-to-poly.c (add_param_constraints): New.
3452 (build_scop_context): New.
3453 (build_poly_scop): Call build_scop_context.
3454
34552009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3456
3457 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
3458 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
3459 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
3460 * graphite-ppl.h: Include double-int.h and tree.h.
3461 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
3462 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
3463 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
3464 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
3465
34662009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3467
3468 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
3469 POINTER_PLUS_EXPR for pointer types.
3470 (clast_to_gcc_expression): Same.
3471
34722009-07-09 Sebastian Pop <sebastian.pop@amd.com>
3473
3474 * graphite-poly.c (print_scattering_function): Early return when
3475 PBB_TRANSFORMED_SCATTERING is not initialized.
3476 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
3477
34782009-07-08 Sebastian Pop <sebastian.pop@amd.com>
3479
3480 * tree-parloops.c (analyze_reduction_list): Remove unused variable
3481 to fix bootstrap.
3482
34832009-07-08 Razya Ladelsky <razya@il.ibm.com>
3484
3485 * tree-parloops.c (analyze_reduction_list): Change return
3486 value to void.
3487 (try_create_reduction_list): Move the call to
3488 analyze_reduction_list to the beginining.
3489 Call reduction_phi with analyzed_reductions as argument
3490 instead of reduction_list.
3491
34922009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
3493
3494 * Merge from mainline (r148296:149346)
3495
34962009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3497
3498 * graphite-scop-detection.c (graphite_can_represent_init): New.
3499 (graphite_can_represent_scev): Call graphite_can_represent_init:
3500 check that the initial value does not contain multiplications of
3501 parameters.
3502 (stmt_has_simple_data_refs_p): New.
3503 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
3504 (is_simple_operand): Fix formatting.
3505 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
3506
35072009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3508
6c9df8cb 3509 * gcc.dg/graphite/id-13.c: New.
c6bb733d 3510 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
3511 analyze_scalar_evolution, use scalar_evolution_in_region.
3512 (scan_tree_for_params_right_scev): Add extra assert.
3513 (parameter_index_in_region_1): Split from parameter_index_in_region.
3514 (idx_record_params): Use scalar_evolution_in_region.
3515 (find_params_in_bb): Same.
3516 (find_scop_parameters): Same.
3517 (build_loop_iteration_domains): Same.
3518 (create_linear_expr_from_tree): Same.
3519 * sese.c (scalar_evolution_in_region): New.
3520 * sese.h (scalar_evolution_in_region): Declared.
3521 (defined_in_sese_p): New.
3522 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
3523 static anymore.
3524 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
3525 Declared.
3526
35272009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3528
3529 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
3530 TREE_DATA_REF_H also implies SCEV_H.
3531
35322009-07-07 Sebastian Pop <sebastian.pop@amd.com>
3533
3534 * graphite-poly.c (print_scop_params): New.
3535 (print_scop): Call print_scop_params.
3536 (debug_scop_params): New.
3537 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
3538
35392009-07-07 Li Feng <nemokingdom@gmail.com>
3540
6c9df8cb 3541 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
3542 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
3543 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
3544 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
3545 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
3546 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
c6bb733d 3547
35482009-07-07 Li Feng <nemokingdom@gmail.com>
3549
3550 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
3551 for dependency checking part.
6c9df8cb 3552 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
c6bb733d 3553 tests for dependency checking.
6c9df8cb 3554 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
3555 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
3556 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
c6bb733d 3557 flag -fdump-tree-graphite-all for autopar testsuites.
3558
35592009-07-06 Sebastian Pop <sebastian.pop@amd.com>
3560
3561 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
3562 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
3563 canonicalize_loop_ivs): Moved...
3564 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
3565
35662009-07-06 Sebastian Pop <sebastian.pop@amd.com>
3567
3568 * tree-parloops.c (try_create_reduction_list): Pass an extra
3569 argument analyzed_reductions. Call analyze_reduction_list.
3570 (gen_parallel_loop): Do not call analyze_reduction_list.
3571 (parallelize_loops): Init and finalize analyzed_reductions.
3572
35732009-07-06 Li Feng <nemokingdom@gmail.com>
3574
6c9df8cb 3575 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
c6bb733d 3576 Added flag -fno-loop-strip-mine for autopar testcase.
3577
35782009-07-04 Li Feng <nemokingdom@gmail.com>
3579
3580 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
3581 transformed scattering dimension instead of unmatch orignal when
3582 calling dependence_polyhedron.
3583
35842009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3585
3586 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
3587
35882009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3589
3590 * graphite-poly.c (pbb_number_of_iterations): Check for returned
3591 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
3592
35932009-06-30 Sebastian Pop <sebastian.pop@amd.com>
3594
3595 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
3596 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
3597 * graphite-poly.c (pbb_number_of_iterations): New.
3598 * graphite-poly.h (pbb_number_of_iterations): Declared.
3599 (pbb_iterator_dim, pbb_parameter_dim): New.
3600
36012009-06-29 Sebastian Pop <sebastian.pop@amd.com>
3602
3603 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
3604 last commit on type of lower and upper bound of loops.
3605
36062009-06-29 Li Feng <nemokingdom@gmail.com>
3607
3608 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
3609 graphite-dependences.h.
3610 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
3611 (mark_bb_with_pbb): New.
3612 (get_stmtfor_depth): New.
3613 (find_pbb_via_hash): New.
3614 (dependency_in_loop_p): New.
3615 (mark_loops_parallel): New.
3616 (free_aux_in_new_loops): New.
3617 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
3618 bb with it's relevant pbb. Mark newly created loops. Remove mark
3619 innermost loop parallel without checking.
3620 (gloog): Add parameter BB_PBB_MAPPING.
3621 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
3622 (gloog): Change declaration.
3623 (mark_loop_parallel): Make extern.
3624 (free_aux_in_new_loops): Declare.
3625 (bb_pbb_map_hash): New.
3626 (eq_bb_pbb_map): New.
3627 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
3628 auto parallelization when flag_graphite_force_parallel is set.
3629 (graphite_finalize): Added free_aux_in_new_loops.
3630 * tree-parloops.c (parallelize_loops): Only generate parallel code for
3631 the innermost loop that marked parallel. Use
3632 flag_graphite_force_parallel instead of loop->can_be_parallel.
3633 (loop_parallel_p): Move inner most checking out of function.
3634
36352009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3636
3637 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
3638 type of lower and upper bound of loops signed long int.
3639
36402009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3641
3642 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
3643 expression outside the loop.
3644
36452009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3646
3647 * gcc.dg/graphite/interchange-8.c: New.
3648
36492009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3650
3651 * gcc.dg/graphite/interchange-0.c: XFailed.
3652 * gcc.dg/graphite/interchange-5.c: XFailed.
3653 * gcc.dg/graphite/interchange-6.c: XFailed.
3654
36552009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3656
3657 * graphite-interchange.c (compute_array_size_poly): The end of the
3658 recursion should return 1.
3659
36602009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3661
3662 * graphite-interchange.c (compute_array_size_cstr): Allow the
3663 subscript multiplier to be -1.
3664 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
3665 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
3666 data_container. Initializes PDR_DATA_CONTAINER.
3667 (print_pdr_access_layout): New.
3668 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
3669 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
3670 data_container.
3671 (PDR_DATA_CONTAINER): New.
3672 (new_poly_dr): Update declaration.
3673 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
3674 (build_poly_dr): Call pdr_add_data_dimensions.
3675
36762009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3677
3678 * graphite-poly.h (struct poly_dr): Fix comment.
3679 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
3680 (pdr_add_memory_accesses): New.
3681 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
3682
36832009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3684
3685 * graphite-poly.c (print_pdrs, debug_pdrs): New.
3686 (print_pbb): Add call to print_pdrs.
3687 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
3688
36892009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3690 Li Feng <nemokingdom@gmail.com>
3691
3692 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
3693 (dependency_between_pbbs_p): New.
3694 (lexicographically_gt_p): Assure !empty_p before polyhedron
3695 intersection assign.
3696 (build_lexicographically_gt_constraint): Correct lexicographically
3697 judging.
3698 * graphite-dependences.h: New.
3699 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
3700
37012009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3702
3703 * graphite-clast-to-gimple.c (print_clast_stmt): New.
3704 (gloog): Print to dump_file the generated clast.
3705 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
3706 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
3707
37082009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3709
3710 * graphite-poly.c (extend_scattering): Increment
3711 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
3712
37132009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3714
3715 * graphite-interchange.c (compute_array_size_poly): Added exit of
3716 recursion condition. Continue iterating even after the first equality.
3717 (compute_array_size): Same.
3718
37192009-06-24 Li Feng <nemokingdom@gmail.com>
3720
6c9df8cb 3721 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
c6bb733d 3722 -fdump-tree-final_cleanup to -fdump-tree-optimized.
6c9df8cb 3723 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
3724 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
3725 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
c6bb733d 3726
37272009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3728
3729 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
3730 only when the use verifies is_gimple_reg.
3731
37322009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3733
3734 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
3735 Allocate scaldims after call to unify_scattering_dimensions.
3736
37372009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3738
3739 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
3740
37412009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3742 Albert Cohen <albert.cohen@inria.fr>
3743
3744 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
3745 variables for the strip mining.
3746
37472009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3748 Pranav Garg <pranav.garg2107@gmail.com>
3749
3750 * Makefile.in (OBJS-common): Added graphite-blocking.o.
3751 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
3752 (graphite-blocking.o): New rule.
3753 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
3754 * graphite-blocking.c: New.
3755 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
3756 flag_loop_strip_mine.
3757 (psct_scattering_dim_for_loop_depth): New.
3758 * graphite-poly.h (scop_do_strip_mine): Declared.
3759 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
3760 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
3761 flag_loop_strip_mine.
3762
37632009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3764
3765 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
3766 a GMP value and a PPL coefficient at each iteration of a loop.
3767
37682009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3769
3770 * graphite-dependences.c (dependence_polyhedron): Do not use
3771 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
3772 pbb_nb_scattering_transform.
3773 (graphite_legal_transform_dr): Same.
3774 * graphite-poly.c (extend_scattering): Same.
3775 (unify_scattering_dimensions): Same.
3776 (print_scattering_function): Same.
3777 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
3778 PBB_NB_LOCAL_VARIABLES.
3779 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
3780 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
3781 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
3782 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
3783 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
3784 (pbb_nb_scattering_transform): New.
3785 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
3786 (psco_scattering_dim): Add assert on parameters.
3787 (psct_scattering_dim): Same.
3788 (psct_scattering_dim_for_loop_depth): Declared.
3789 (psct_local_var_dim): New.
3790 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
3791 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
3792 correct layout, call pbb_nb_local_vars.
3793 (psct_add_local_variable, psct_add_scattering_dimension): New.
3794 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3795 Initialize PBB_NB_SCATTERING_TRANSFORM.
3796
37972009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3798
3799 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
3800 (set_coef): Renamed ppl_set_coef.
3801 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
3802
38032009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3804
3805 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
3806 test a boolean against 1.
3807 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
3808 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
3809 (pbb_do_interchange): Returns true when a transform has been performed.
3810 (scop_do_interchange): Same.
3811 * graphite-poly.c (apply_poly_transforms): Use the return value of
3812 scop_do_interchange.
3813 * graphite-poly.h (scop_do_interchange): Update declaration.
3814
38152009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
3816
3817 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
3818 after last use.
3819 * sese.c (sese_reset_aux_in_loops): New.
3820 * sese.h (sese_reset_aux_in_loops): New.
3821
38222009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3823
3824 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
3825 multiplier and multiply the constant by the multiplier.
3826 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
3827 (build_poly_dr): Do not use the multiplier to define the subscript.
3828
38292009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3830
3831 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
3832 compiler's data reference. Initialize PDR_CDR.
3833 (print_pdr): Call dump_data_reference.
3834 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
3835 Add compiler_dr field.
3836 (PDR_BB): Renamed PDR_PBB.
3837 (PDR_CDR): New.
3838 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
3839 GCC's data reference representation.
3840 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
3841 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
3842
38432009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3844
3845 * graphite-poly.c (print_scattering_function): Also print the layout.
3846 * graphite-poly.h (pbb_nb_local_vars): New.
3847
38482009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3849
3850 * graphite-poly.c (print_pbb_domain): Also print the layout names.
3851
38522009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3853
3854 * graphite-poly.c (print_pdr, debug_pdr): New.
3855 * graphite-poly.h (print_pdr, debug_pdr): Declared.
3856 (PDR_BASE): Removed.
3857
38582009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3859
6c9df8cb 3860 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
c6bb733d 3861 ltrans-{1..6,8}.c.
3862
38632009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3864
3865 * graphite-interchange.c (compute_subscript): Allow also -1 in the
3866 subscript identification column.
3867 (pbb_do_interchange): Print to dump_file that some loops "will be
3868 interchanged". Rely on that chain of characters in the testcases.
3869 * gcc.dg/graphite/interchange-0.c: New.
3870 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
3871 interchange-*.c files and compile them with -floop-interchange.
3872
38732009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
3874
3875 * graphite-interchange.c (interchange_profitable_p): Renamed
3876 pbb_interchange_profitable_p.
3877
38782009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3879 Harsha Jagasia <harsha.jagasia@amd.com>
3880 Pranav Garg <pranav.garg2107@gmail.com>
3881
3882 * graphite-interchange.c (interchange_profitable_p): Make static.
3883 (pbb_interchange_loop_depths, pbb_do_interchange,
3884 scop_do_interchange): New.
3885 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
3886 for flag_loop_interchange.
3887 * graphite-poly.h (scop_do_interchange): Declared.
3888 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
3889 flag_loop_interchange is used.
3890
38912009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3892
3893 * graphite-dependences.c (dependence_polyhedron): Update use of
3894 pbb_nb_scattering_dims.
3895 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
3896 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
3897 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
3898 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
3899
39002009-06-16 Sebastian Pop <sebastian.pop@amd.com>
3901
3902 * graphite.c: Cleanup foo.
3903
39042009-06-16 Sebastian Pop <sebastian.pop@amd.com>
3905
3906 * Merge from mainline (r143684:148293).
3907 * Disabled libpcp until it gets fixed.
3908
39092009-06-05 Sebastian Pop <sebastian.pop@amd.com>
3910 Harsha Jagasia <harsha.jagasia@amd.com>
3911
3912 * graphite-interchange.c: New.
3913 * Makefile.in (graphite-interchange.o): New.
3914 * graphite-poly.h (interchange_profitable_p): Declared.
3915 * graphite-ppl.h (value_max): New.
3916
39172009-06-04 Sebastian Pop <sebastian.pop@amd.com>
3918
3919 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
3920 * graphite-poly.h: Fix some comments.
3921 (pdr_dim): New.
3922 (pdr_scop): New.
3923
39242009-06-04 Sebastian Pop <sebastian.pop@amd.com>
3925
3926 * graphite-poly.h
3927 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
3928 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
3929 (pdr_accessp_nb_params): Renamed pdr_nb_params.
3930 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
3931 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
3932 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
3933 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
3934 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
3935 * graphite-clast-to-gimple.c: Same.
3936 * graphite-dependences.c: Same.
3937 * graphite-poly.c: Same.
3938 * graphite-sese-to-poly.c: Same.
3939
39402009-06-03 Sebastian Pop <sebastian.pop@amd.com>
3941
3942 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
3943 expressions for an IV rename, as returned by clast_to_gcc_expression.
3944 (copy_renames): Rename new_name to expr.
3945 * sese.c (debug_rename_elt): Same.
3946 (get_rename): Same.
3947 (set_rename): Same.
3948 (sese_adjust_liveout_phis): Call force_gimple_operand before using
3949 the information from the rename map.
3950 (rename_variables_in_stmt): Same.
3951 (add_loop_exit_phis): Rename new_name to expr.
3952 (insert_loop_close_phis): Same.
3953 (add_guard_exit_phis): Same. Call force_gimple_operand.
3954 * sese.h (struct rename_map_elt): Rename new_name to expr.
3955 (new_rename_map_elt): Same.
3956
39572009-06-03 Sebastian Pop <sebastian.pop@amd.com>
3958
3959 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
3960 * sese.c (set_rename): Make it extern.
3961 * sese.h (set_rename): Declared.
3962
39632009-06-03 Sebastian Pop <sebastian.pop@amd.com>
3964
3965 * graphite-poly.c (extend_scattering): Free values.
3966 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
3967 Free iterators.
3968 (ppl_print_powerset_matrix): Same.
3969 * graphite-scop-detection.c (free_scops_1): New.
3970 (limit_scops): Call free_scops_1.
3971 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
3972 (build_poly_dr): Free PPL coefficients.
3973 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
3974
39752009-06-02 Sebastian Pop <sebastian.pop@amd.com>
3976
3977 * graphite-dependences.c: New.
3978 * graphite-data-ref.c: Removed.
3979 * graphite-data-ref.h: Removed.
3980 * Makefile.in (graphite-data-ref.o): Removed.
3981 (graphite-dependences.o): Added.
3982 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
3983 * graphite-poly.c: Same.
3984 Move the data dependence testing to graphite-dependences.c.
3985
39862009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
3987
3988 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
3989 from graphite_cannot_represent_loop. Code refactored.
3990 (scopdet_basic_block_info): Call graphite_can_represent_loop.
3991
39922009-05-17 Li Feng <nemokingdom@gmail.com>
3993
6c9df8cb 3994 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
c6bb733d 3995 Cover all the testcases (not only the filtered ones).
3996
39972009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
3998
3999 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
4000 unnecessary check. Update comments. Move check for REAL_TYPE here.
4001 (harmful_stmt_in_bb): Remove checks for conditions. This is already
4002 done in (stmt_simple_for_scop_p).
4003
40042009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
4005
4006 * graphite.c (print_global_statistics): New.
4007 (print_graphite_scop_statistic): New.
4008 (print_graphite_statistics): New.
4009 (graphite_initialize, graphite_transform_loops): Print statistics.
4010 * graphite-scop-detection (build_scops): Print statistics.
4011 (print_graphite_scop_statistics): New.
4012 (print_graphite_statistics): New.
4013
40142009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4015
4016 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
4017 (debug_clast_name_index): Removed.
4018 (debug_clast_name_indexes_1): Removed.
4019 (debug_clast_name_indexes): Removed.
4020 (clast_name_index_elt_info): Removed.
4021 (eq_clast_name_indexes): Removed.
4022 (clast_name_to_index): Removed.
4023 (new_clast_name_index): Removed.
4024 (save_clast_name_index): Removed.
4025 (save_var_name): Moved...
4026 (init_sese_params_index): Removed.
4027 (clast_name_to_gcc): Remove use of name_tree.
4028 (initialize_cloog_names): Same.
4029 (gloog): Do not call init_sese_params_index.
4030 * graphite-sese-to-poly.c (save_var_name): ...here.
4031 (parameter_index_in_region): New.
4032 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
4033 (parameter_index_in_region): Removed.
4034 (is_parameter): Remove use of name_tree.
4035 * sese.h (struct name_tree): Removed.
4036 (struct sese): Remove use of name_tree. New field params_names.
4037 (SESE_PARAMS_NAMES): New.
4038 (SESE_PARAMS): Remove duplicate.
4039 (parameter_index_in_region): Removed.
4040 (sese_nb_params): Remove use of name_tree.
4041 (struct clast_name_index): New.
4042 (new_clast_name_index): New.
4043 (clast_name_to_index): New.
4044 (save_clast_name_index): New.
4045 (debug_clast_name_index): New.
4046 (debug_clast_name_indexes_1): New.
4047 (debug_clast_name_indexes): New.
4048 (clast_name_index_elt_info): New.
4049 (eq_clast_name_indexes): New.
4050
40512009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4052
4053 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
4054 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
4055 (graphite_loop_normal_form): Do not pass region. Do not
4056 initialize SESE_OLDIVS.
4057 (build_graphite_loop_normal_form): Update call to
4058 graphite_loop_normal_form.
4059 * sese.c (debug_oldivs): Removed.
4060 (new_sese): Do not initialize SESE_OLDIVS.
4061 (free_sese): Do not free SESE_OLDIVS.
4062 (oldiv_for_loop): Removed.
4063 * sese.h (struct sese): Remove old_ivs.
4064 (SESE_OLDIVS): Removed.
4065 (oldiv_for_loop): Removed.
4066
40672009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4068
4069 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
4070 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
4071 replaced by a call to newivs_to_depth_to_newiv.
4072 (clast_to_gcc_expression): Pass newivs, remove ivstack.
4073 (clast_to_gcc_expression_red): Same.
4074 (gcc_type_for_clast_expr): Same.
4075 (gcc_type_for_clast_eq): Same.
4076 (graphite_translate_clast_equation): Same.
4077 (graphite_create_guard_cond_expr): Same.
4078 (graphite_create_new_guard): Same.
4079 (graphite_create_new_loop): Same.
4080 (build_iv_mapping): Same.
4081 (translate_clast): Same.
4082 (gloog): Same.
4083 (loop_iv_stack_patch_for_consts): Removed. *
4084 sese.c (iv_stack_entry_is_constant): Removed.
4085 (iv_stack_entry_is_iv): Removed.
4086 (loop_iv_stack_push_iv): Removed.
4087 (loop_iv_stack_insert_constant): Removed.
4088 (loop_iv_stack_pop): Removed.
4089 (loop_iv_stack_get_iv): Removed.
4090 (loop_iv_stack_get_iv_from_name): Removed.
4091 (debug_loop_iv_stack): Removed.
4092 (free_loop_iv_stack): Removed.
4093 (loop_iv_stack_remove_constants): Removed. *
4094 sese.h (iv_stack_entry_kind): Removed.
4095 (iv_stack_entry_data_union): Removed.
4096 (iv_stack_entry_struct): Removed.
4097 (iv_stack_entry_p): Removed.
4098 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
4099 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
4100 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
4101 loop_iv_stack_pop, free_loop_iv_stack): Removed.
4102 (gbb_loop_at_index): Fix indenting.
4103 (gbb_loop_index): Removed.
4104
41052009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4106
4107 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
4108 Call clast_name_to_index.
4109
41102009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4111
4112 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
4113 do not pass params. Get params from SESE_PARAMS.
4114 (clast_to_gcc_expression): Same.
4115 (clast_to_gcc_expression_red): Same.
4116 (gcc_type_for_clast_eq): Same.
4117 (graphite_translate_clast_equation): Same.
4118 (graphite_create_new_loop): Same.
4119 * sese.c (rename_variables_in_stmt): Fix comment.
4120
41212009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4122
4123 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
4124 newivs_index.
4125 Call save_clast_name_index.
4126 (translate_clast): Pass newivs_index.
4127 (gloog): Create and free newivs_index.
4128
41292009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4130
4131 * graphite-clast-to-gimple.c (clast_name_index): New structure.
4132 (clast_name_index_p): New type.
4133 (debug_clast_name_index): New.
4134 (debug_clast_name_indexes_1): New.
4135 (debug_clast_name_indexes): New.
4136 (clast_name_index_elt_info): New.
4137 (eq_clast_name_indexes): New.
4138 (clast_name_to_index): New.
4139 (new_clast_name_index): New.
4140 (save_clast_name_index): New.
4141 (init_sese_params_index): New.
4142 (gloog): Call init_sese_params_index.
4143 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
4144 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
4145 (free_sese): Free SESE_PARAMS_INDEX.
4146 * sese.h (struct sese): Add params_index.
4147 (SESE_PARAMS_INDEX): New.
4148
41492009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4150
4151 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
4152 (graphite_create_new_loop): Pass the newivs vector. Push the
4153 newly created IV to newivs.
4154 (translate_clast): Pass the newivs vector.
4155 (gloog): Create and destroy the newivs vector.
4156
41572009-05-13 Sebastian Pop <sebastian.pop@amd.com>
4158
4159 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
4160 (graphite_loop_normal_form): Initialize loop->aux with the unique
4161 IV that has been created.
4162
41632009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
4164
4165 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
4166 scev with parameters in the base part. They where forbidden
4167 exidently.
4168
41692009-05-11 Li Feng <nemokingdom@gmail.com>
4170
6c9df8cb 4171 * gcc.dg/graphite/graphite.exp: Set different default
c6bb733d 4172 compile options by file names.
6c9df8cb 4173 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
4174 * gcc.dg/graphite/id-{1-9}.c: Ditto.
4175 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
4176 * gcc.dg/graphite/scop-matmult.c: Ditto.
c6bb733d 4177
41782009-05-08 Li Feng <nemokingdom@gmail.com>
4179
6c9df8cb 4180 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
4181 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
4182 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
4183 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
c6bb733d 4184
41852009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4186
4187 * graphite-scop-detection (build_scops_1): Fix little bug introduced
4188 by final cleanup.
4189
41902009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
4191
4192 * graphite-scop-detection.c (graphite_can_represent_scev): Only
4193 allow integer constant strides.
4194 (graphite_can_represent_expr): Depend on outermost_loop.
4195 (stmt_simple_memref_p, graphite_cannot_represent_loop,
4196 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
4197 build_scops_1): Same.
4198 (scopdet_basic_block_info): Same and insert layered SCoP
4199 detection.
4200 (try_generate_gimple_bb): Cleanup.
4201 (build_scops): Enable data references.
4202
6c9df8cb 4203 * gcc.dg/graphite/id-5.c: New.
4204 * gcc.dg/graphite/id-9.c: New.
c6bb733d 4205 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
4206 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
4207
42082009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4209
4210 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
4211 that we have not yet built for this SCoP.
4212
42132009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4214
4215 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
4216 for complex numbers.
4217
42182009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
4219
4220 * graphite-ppl.c: Fix build if cloog is not available.
4221
42222009-05-04 Li Feng <nemokingdom@gmail.com>
4223
4224 * tree-parloops.c (loop_parallel_p): Remove construction of
4225 NITER and REDUCTION_LIST.
4226 (try_get_loop_niter): New.
4227 (try_create_reduction_list): New.
4228 (parallelize_loops): Bypass the failed checkings in autopar
4229 when can_be_parallel in loop structure is set to true.
4230
42312009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4232
6c9df8cb 4233 * gcc.dg/graphite/id-6.c: Update testcase.
4234 * gcc.dg/graphite/scop-3.c: Dito.
c6bb733d 4235
42362009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
4237
4238 * graphite-scop-detection.c (stmt_simple_for_scop_p):
4239 Enable EQ_EXPR and NE_EXPR again.
4240
42412009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4242
4243 * graphite-scop-detection.c (graphite_can_represent_scev):
4244 Add check if scev is affine multivariate.
4245 (harmful_stmt_in_bb): Check if we can represent the conditions.
4246 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
4247 harmful_stmt_in_bb.
6c9df8cb 4248 * gcc.dg/graphite/id-7.c: New.
c6bb733d 4249
42502009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
4251
4252 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
4253 Check all bbs in region, not only the bbs that are represented in
4254 GRAPHITE.
4255 (build_poly_scop): Add newline.
6c9df8cb 4256 * gcc.dg/graphite/id-8.c: New.
c6bb733d 4257
42582009-04-30 Li Feng <nemokingdom@gmail.com>
4259
4260 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
4261 when loop initialize.
4262 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
4263 * common.opt: Declare flag_graphite_force_parallel.
4264 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
4265 loop parallel.
4266 * graphite-poly.c (apply_poly_transforms): Introduce
4267 flag_graphite_force_parallel.
4268 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
4269 * toplev.c (process_options): ditto and replace a not correctly
4270 encoded space.
4271
42722009-04-30 Li Feng <nemokingdom@gmail.com>
4273
4274 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
4275 Change the call of gbb_loop_at_index and/or gbb_loop_index due
4276 to the redefinition.
4277 (compute_cloog_iv_types_1): ditto.
4278 (build_iv_mapping): ditto.
4279 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
4280 initialization.
4281 (free_gimple_bb): Removed GBB_LOOPS related free part.
4282 (build_bb_loops): Removed.
4283 * sese.h (struct gimple_bb): Removed loops.
4284 (GBB_LOOPS): Removed.
4285 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
4286 (gbb_loop_index): ditto.
4287
42882009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4289
4290 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
4291 allow non constant strides.
6c9df8cb 4292 * gcc.dg/graphite/scop-20.c: New.
c6bb733d 4293
42942009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4295
4296 * graphite-scop-detection.c (dot_all_scops): Fix system call
4297 return value warning.
4298 (dot_scop): Same.
4299
43002009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4301
6c9df8cb 4302 * gcc.dg/graphite/id-6.c: Fix pattern.
4303 * gcc.dg/graphite/scop-3.c: Same.
c6bb733d 4304
43052009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4306
4307 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
4308 build_pairwise_constraint, dr_equality_constraints,
4309 build_pairwise_scheduling_equality,
4310 build_pairwise_scheduling_inequality, lexicographically_gt_p,
4311 build_lexicographically_gt_constraint, dependence_polyhedron,
4312 graphite_legal_transform_dr, graphite_legal_transform_bb,
4313 graphite_legal_transform): New.
4314 * graphite-poly.h (graphite_legal_transform): Declared.
4315 * graphite-sese-to-poly.c (build_poly_scop): Call to
4316 graphite_legal_transform is disabled for the moment.
4317
43182009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4319
4320 * graphite-poly.h (pbb_nb_scattering_dims): New.
4321 (pbb_nb_scattering): Use it.
4322
43232009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4324
4325 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
4326 Pointset_Powerset version of ppl_insert_dimensions.
4327 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
4328
43292009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4330
4331 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
4332
43332009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4334
4335 * graphite-poly.h: Fix comment.
4336
43372009-04-24 Sebastian Pop <sebastian.pop@amd.com>
4338
4339 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
4340
43412009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4342
4343 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
4344 statements.
4345
43462009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
4347
4348 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
4349 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
4350 conditions.
4351
43522009-04-20 Sebastian Pop <sebastian.pop@amd.com>
4353
4354 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
4355 handle EQ_EXPR and NE_EXPR.
4356
43572009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
4358
4359 * graphite-poly.h (poly_dr): Fix comment.
4360
43612009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4362 Tobias Grosser <grosser@fim.uni-passau.de>
4363
4364 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
4365 with a zero dimension polyhedron.
4366 (find_scop_parameters): Move the call to scop_set_nb_params here.
4367 (build_loop_iteration_domains): Store in loop->aux the iteration
4368 domain polyhedron.
4369 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
4370 by any loop in scop.
4371 (build_poly_scop): Do not call scop_set_nb_params.
4372
43732009-04-09 Sebastian Pop <sebastian.pop@amd.com>
4374 Tobias Grosser <grosser@fim.uni-passau.de>
4375
4376 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
4377 add_condition_to_domain not GT_EXPR.
4378
43792009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4380
4381 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
4382 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
4383 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
4384 upper_bound_assign to calculate unions.
6c9df8cb 4385 * gcc.dg/graphite/id-6.c: New.
c6bb733d 4386
43872009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4388
4389 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
4390 handle abnormal edges.
4391
43922009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
4393
4394 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
4395 (free_poly_bb): Also free poly_drs.
4396 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
4397 (poly_dr): Polyhedron to Pointset_Powerset.
4398 (pdr_accessp_nb_subscripts): Same.
4399 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
4400 poly_drs.
4401
44022009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4403
4404 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
4405 names into more meaningful names.
4406
44072009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4408
6c9df8cb 4409 * gfortran.dg/graphite/interchange-1.c: New.
4410 * gfortran.dg/graphite/interchange-2.c: New.
c6bb733d 4411
44122009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4413
4414 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
4415 the reduction_list.
4416 * tree-parloops.c (rewrite_phi_with_iv): New.
4417 (rewrite_all_phi_nodes_with_iv): New.
4418 (canonicalize_loop_ivs): Call them.
4419
44202009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4421
4422 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
4423 graphite_find_data_references_in_stmt.
4424 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
4425 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
4426
44272009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4428
4429 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
4430
44312009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4432
4433 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
4434 instead of bb_in_region.
4435 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
4436 (build_sese_conditions): Use flag_bb_in_sese.
4437 * sese.c (register_bb_in_sese): Removed.
4438 (new_sese): Remove initialization of SESE_REGION_BBS.
4439 (free_sese): Do not free SESE_REGION_BBS.
4440 * sese.h (struct sese): Remove field region_basic_blocks.
4441 (SESE_REGION_BBS): Removed.
4442 (bb_in_sese_p): Implement in function of bb_in_region.
4443
44442009-04-08 Sebastian Pop <sebastian.pop@amd.com>
4445
4446 * graphite-scop-detection.c (limit_scops): Deal only with single exit
4447 loops.
4448
44492009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
4450
4451 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
4452 and EQ_EXPR.
4453 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
4454 (add_condition_to_domain): New.
4455 (add_condition_to_pbb): New.
4456 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
6c9df8cb 4457 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
c6bb733d 4458
44592009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
4460
4461 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
4462 ppl_Pointset_Powerset.
4463 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
4464 * graphite-poly.h (poly_bb): poly_bb.domain Same.
4465 (pbb_nb_loops): Same.
4466 * graphite-sese-to-poly.c (build_loop_iteration_domains,
4467 add_conditions_to_domain): Same.
4468 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
4469 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
4470 ppl_const_Polyhedron_t.
4471 (ppl_print_powerset_matrix): New.
4472 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
4473 ppl_print_powerset_matrix): New.
4474 (ppl_print_polyhedron_matrix): Updated.
4475
44762009-04-07 Sebastian Pop <sebastian.pop@amd.com>
4477
4478 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
4479
44802009-04-07 Sebastian Pop <sebastian.pop@amd.com>
4481
4482 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
4483 (print_iteration_domains, debug_iteration_domain,
4484 debug_iteration_domains): New.
4485 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
4486 debug_iteration_domains): Declared.
4487 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
4488 indenting.
4489
44902009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
4491 Sebastian Pop <sebastian.pop@amd.com>
4492
4493 * graphite-poly.h (print_iteration_domain): New.
4494 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
4495 (build_sese_conditions_1, build_sese_conditions_after,
4496 build_sese_conditions_before): New.
4497 (build_sese_conditions): Rewritten.
4498
44992009-04-03 Sebastian Pop <sebastian.pop@amd.com>
4500 Tobias Grosser <grosser@fim.uni-passau.de>
4501
4502 Cleanup of code generation liveouts.
4503 * graphite-clast-to-gimple.c (translate_clast): Use a single
4504 rename_map instead of one per translated statement.
4505 Do not use SESE_LIVEOUT_RENAMES.
4506 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
4507 (gloog): Do not use SESE_LIVEOUT_RENAMES.
4508 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
4509 phi node of a reduction: when a loop contains a reduction used outside
4510 the loop, there should be a scalar close phi node on the exit block.
4511 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
4512 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
4513 (free_sese): Do not free them.
4514 (sese_build_liveouts_use): Do not use them.
4515 (sese_build_liveouts_bb): Same.
4516 (sese_build_liveouts): Same.
4517 (sese_insert_phis_for_liveouts): Same.
4518 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
4519 (defined_in_loop_p): New.
4520 (alive_after_loop): New.
4521 (close_phi_not_yet_inserted_p): New.
4522 (struct alep, alep_p): New.
4523 (add_loop_exit_phis): Remove from the rename_map all the names defined
4524 in the code generated loop.
4525 (insert_loop_close_phis): Traverse the rename_map passed to it.
4526 Don't use SESE_LIVEOUT_RENAMES.
4527 (default_liveout_before_guard): Renamed default_before_guard.
4528 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
4529 (graphite_copy_stmts_from_block): Do not directly call set_rename.
4530 (register_sese_liveout_renames): Removed.
4531 (copy_bb_and_scalar_dependences): Do not call it.
4532 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
4533 reduction_list.
4534 (SESE_LIVEOUT): Removed.
4535 (SESE_LIVEOUT_RENAMES): Removed.
4536 (SESE_REDUCTION_LIST): Removed.
4537 (sese_build_liveouts): Removed.
4538 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
4539 (insert_loop_close_phis): Pass a htab_t instead of a sese.
4540 (insert_guard_phis): Same.
4541 (rename_map_elt): Declare a VEC of them.
4542 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
4543 trees not pointers to trees.
4544
4545 Rewrite in canonical close SSA form:
4546 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
4547 (limit_scops): Close the scop after the block containing the close phi
4548 nodes.
4549 (canonicalize_loop_closed_ssa): New.
4550 (canonicalize_loop_closed_ssa_form): New.
4551 (build_scops): Call canonicalize_loop_closed_ssa_form.
4552
4553 * graphite-sese-to-poly.c: Fix typos.
4554
45552009-04-03 Sebastian Pop <sebastian.pop@amd.com>
4556
4557 * graphite-poly.c (print_scattering_function, print_pbb_domain):
4558 Extended.
4559 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
4560 (print_pbb): Add conditions.
4561
45622009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
4563 Sebastian Pop <sebastian.pop@amd.com>
4564
4565 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
4566 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
4567 (build_scop_bbs_1): New.
4568 (build_scop_bbs): Rewrite.
4569 * sese.h (bb_in_region): New.
4570
45712009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4572
4573 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
4574 poly_drs vector.
4575 (print_scop): Style.
4576 * graphite-poly.h (poly_bb): Add drs vector.
4577 (PBB_DRS): Add accessor.
4578 * graphite-sese-to-poly.c (build_poly_dr): New.
4579 (build_pbb_drs, build_scop_drs): New.
4580 (build_poly_scop): call build_scop_drs (Disabled at the moment).
4581
45822009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4583
4584 * tree-ssa-loop.c: Include forgotten toplev.h
4585
45862009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
4587
4588 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
6c9df8cb 4589 * gcc.dg/graphite/pr37883.c: Remove -floop-*
4590 * gcc.dg/graphite/pr37928.c: Same
4591 * gcc.dg/graphite/pr38409.c: Same
4592 * gcc.dg/graphite/pr38498.c: Same
4593 * gcc.dg/graphite/pr38559.c: Same
4594 * gcc.dg/graphite/pr39335.c: Same
4595 * gcc.dg/graphite/pr39335_1.c: Same
4596 * gfortran.dg/graphite/block-2.f: Same
c6bb733d 4597 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
4598 with -floop-*.
4599
46002009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
4601
4602 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
4603 build_access_matrix, build_scop_data_accesses): Remove access function
4604 building. (We get a new version soon).
4605 (build_bb_loops, scan_tree_for_params_right_scev): Update.
4606 * sese.h (nb_loops_around_loop_in_sese): Remove.
4607 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
4608
46092009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
4610 Sebastian Pop <sebastian.pop@amd.com>
4611
4612 * graphite-scop-detection.c (struct scopdet_info): Rename last
4613 field to exit.
4614 (scopdet_basic_block_info, build_scops_1): Don't use
4615 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
4616
46172009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
4618 Sebastian Pop <sebastian.pop@amd.com>
4619
4620 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
4621 * sese.c (sese_build_liveouts_use): Renamed from
4622 sese_build_livein_liveouts_use. Remove liveins.
4623 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
4624 Call sese_build_liveouts_use.
4625 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
4626 Call sese_build_liveouts_bb.
4627 (new_sese, free_sese): Remove liveins.
4628 (sese_add_exit_phis_var): Deleted.
4629 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
4630 directly.
4631 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
4632
4633 * sese.h (sese): Remove num_ver and livein.
4634 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
4635
46362009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
4637
4638 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
4639
46402009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
4641
4642 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
4643 (build_scop_scattering): Do not use compare_prefix_loops any more.
4644 (nb_common_loops): New.
4645
46462009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4647
4648 * sese.c (get_new_name_from_old_name): Renamed get_rename.
4649 (register_old_and_new_names): Renamed set_rename.
4650
46512009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4652
4653 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
4654 of the decl from the previous commit.
4655
46562009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4657
4658 * graphite-scop-detection.c (dot_scop): New.
4659 * graphite-scop-detection.h (dot_scop): Declared.
4660
46612009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4662
4663 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
4664
46652009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4666
4667 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
4668 condition at the end of the loop.
4669 * graphite.c (graphite_initialize, graphite_finalize): Print to
4670 dump_file the compiled function.
4671 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
4672 of create_empty_loop_on_edge.
4673 (translate_clast): Update the code generation of loops for the new
4674 shape of loops.
4675 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
4676
46772009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4678
4679 Reverted the patch from 2009-03-19.
4680
46812009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
4682
4683 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
4684 poly_drs vector.
4685 (print_scop): Style.
4686 * graphite-poly.h (poly_bb): Add drs vector.
4687 (PBB_DRS): Add accessor.
4688 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
4689 (build_access_matrix_with_af, build_access_matrix,
4690 build_scop_data_accesses): Delete.
4691 (build_poly_dr): New.
4692 (build_pbb_drs, build_scop_drs): New.
4693 (build_poly_scop): call build_scop_drs.
4694
46952009-03-13 Sebastian Pop <sebastian.pop@amd.com>
4696
4697 * graphite-scop-detection.c (dot_all_scops_1): Close the table
4698 once per basic block.
4699
47002009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
4701
4702 * graphite-scop-detection.c (graphite_can_represent_scev): New.
4703 (graphite_can_represent_expr): Renamed from loop_affine_expr
4704 and enhanced.
4705 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
4706 (graphite_cannot_represent_loop): Add scop_entry to parameters.
4707 (scopdet_basic_block_info): Actually define entry_block.
4708 (stmt_simple_memref_p): Moved here from ...
4709
4710 * tree-data-ref.c (stmt_simple_memref_p): here.
4711 * tree-data-ref.h (stmt_simple_memref_p): Removed.
4712
47132009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
4714
6c9df8cb 4715 * gcc.dg/graphite/id-4.c: New.
c6bb733d 4716
47172009-03-12 Sebastian Pop <sebastian.pop@amd.com>
4718
4719 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
4720 (register_old_and_new_names): Update the content of the map.
4721 When there was already a rename_map_elt in the map at that
4722 location, free it.
4723 (copy_bb_and_scalar_dependences): Do rename_variables after
4724 expand_scalar_variables.
4725 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4726 of the map. When there was already a rename_map_elt in the
4727 map at that location, free it.
4728 (translate_clast): Pass the rename_map. Do not initialize and free
4729 a rename_map per stmt_user.
4730 (gloog): Initialize and free one rename_map and pass it to
4731 translate_clast.
4732
47332009-03-12 Sebastian Pop <sebastian.pop@amd.com>
4734
4735 * sese.c (expand_scalar_variables_stmt,
4736 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
4737 parameter.
4738 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
4739 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
4740 the gimple_stmt_iterator of the statement to be expanded.
4741 * graphite-scop-detection.c (is_simple_operand): Do handle
4742 REALPART_EXPR.
4743
47442009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4745
4746 * graphite-scop-detection.c (is_simple_operand): Do not handle
4747 REALPART_EXPR.
6c9df8cb 4748 * gcc.dg/graphite/id-2.c: New.
c6bb733d 4749
4750 * graphite-sese-to-poly.c (build_bb_loops,
4751 add_value_to_dim, scan_tree_for_params_right_scev,
4752 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
4753 find_params_in_bb, build_loop_iteration_domains,
4754 add_conditions_to_domain): Remove subtract.
4755
47562009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4757
4758 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
4759 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
4760 pbb_loop_at_index -> gbb_loop_at_index.
4761 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
4762 (debug_loop_vec): Delete.
4763 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
4764 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
4765 (PBB_LOOPS): Removed.
4766 (PBB_BLACK_BOX): Insert cast.
4767 (pbb_set_black_box): New setter.
4768 (pbb_loop_at_index, pbb_loop_index): Removed.
4769 (scop_set_region, scop_set_nb_params): New.
4770 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
4771 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
4772 (build_poly_scop): Use scop_set_nb_params.
4773 * sese.h (gimple_bb): Add LOOPS.
4774 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
4775
47762009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4777
4778 Revert previous commit.
4779
47802009-03-11 Sebastian Pop <sebastian.pop@amd.com>
4781
4782 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
4783 (register_old_and_new_names): Update the content of the map.
4784 When there was already a rename_map_elt in the map at that
4785 location, free it.
4786 (copy_bb_and_scalar_dependences): Do rename_variables after
4787 expand_scalar_variables.
4788 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4789 of the map. When there was already a rename_map_elt in the
4790 map at that location, free it.
4791 (translate_clast): Pass the rename_map. Do not initialize and free
4792 a rename_map per stmt_user.
4793 (gloog): Initialize and free one rename_map and pass it to
4794 translate_clast.
4795
47962009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4797
4798 Remove forgotten line in revert.
4799
48002009-03-11 Sebastian Pop <sebastian.pop@amd.com>
4801
4802 Revert previous commit.
4803
48042009-03-10 Sebastian Pop <sebastian.pop@amd.com>
4805
4806 * sese.c (register_old_and_new_names): Update the content
4807 of the map. When there was already a rename_map_elt in the
4808 map at that location, free it.
4809 (copy_bb_and_scalar_dependences): Do rename_variables after
4810 expand_scalar_variables.
4811 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4812 of the map. When there was already a rename_map_elt in the
4813 map at that location, free it.
4814 (translate_clast): Pass the rename_map. Do not initialize and free
4815 a rename_map per stmt_user.
4816 (gloog): Initialize and free one rename_map and pass it to
4817 translate_clast.
4818
48192009-03-10 Sebastian Pop <sebastian.pop@amd.com>
4820
4821 * graphite-clast-to-gimple.c (translate_clast): context_loop
4822 is never NULL.
4823
48242009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
4825 Sebastian Pop <sebastian.pop@amd.com>
4826
4827 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
4828 of the use of ppl_Polyhedron_map_space_dimensions.
4829
48302009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
4831 Sebastian Pop <sebastian.pop@amd.com>
4832
4833 * graphite-poly.c (unify_scattering_dimensions): Fix types.
4834 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
4835 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
4836 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
4837 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
4838 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
4839 pbb_nb_params): New.
4840 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
4841 nb_loops_around_pbb): Adapt return types.
4842
48432009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
4844
4845 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
4846 graphite-clast-to-gimple.o, graphite-data-ref.o,
4847 graphite-scop-detection.o, graphite-poly.o): Add
4848 more headers.
4849
48502009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
4851
4852 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
4853 graphite-clast-to-gimple.o, graphite-data-ref.o,
4854 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
4855
48562009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
4857
6c9df8cb 4858 * gcc.dg/graphite/pr37485.c: Remove -floop-block
4859 * gcc.dg/graphite/pr37828.c: Same.
4860 * gcc.dg/graphite/pr37684.c: Same.
4861 * gcc.dg/graphite/block-0.c: Same.
4862 * gcc.dg/graphite/block-1.c: Same.
4863 * gcc.dg/graphite/block-2.c: Same.
4864 * gcc.dg/graphite/block-3.c: Same.
4865 * gcc.dg/graphite/block-4.c: Same.
4866 * gcc.dg/graphite/block-5.c: Same.
4867 * gcc.dg/graphite/block-6.c: Same.
4868 * gfortran.dg/graphite/pr38083.f90: Same.
4869 * gfortran.dg/graphite/block-1.f90: Same.
4870 * gfortran.dg/graphite/block-3.f90: Same.
4871 * gfortran.dg/graphite/pr37852.f90: Same.
4872 * gfortran.dg/graphite/block-4.f90: Same.
4873 * gfortran.dg/graphite/pr37980.f90: Same.
4874 * gfortran.dg/graphite/pr38953.f90: Same.
4875 * gfortran.dg/graphite/pr37857.f90: Same.
c6bb733d 4876 * opts.c: Remove -floop-block from -O2.
4877 * graphite-poly.c: Fail if -floop-block -floop-interchange or
4878 -floop-strip-mine are used.
4879
48802009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
4881 Sebastian Pop <sebastian.pop@amd.com>
4882
4883 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
4884 dimensions.
4885 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
4886 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
4887 strip_mine_profitable_p, is_interchange_valid,
4888 graphite_trans_bb_block, graphite_trans_loop_block,
4889 graphite_trans_scop_block): Temporary removed.
4890 (extend_scattering, unify_scattering_dimensions): New.
4891 (print_scattering_function, graphite_read_transforms):
4892 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4893 (graphite_generate_scattering_fns): Removed.
4894 (apply_poly_transforms): Cleanup.
4895 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4896 (schedule_to_scattering): Moved.
4897 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
4898 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
4899 (pbb_nb_scattering): New.
4900 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
4901 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
4902 Removed.
4903 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
4904 shift_poly.
4905 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4906 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
4907 -> PBB_TRANSFORMED_SCATTERING.
4908 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
4909 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
4910 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
4911 (check_poly_representation): Do not return bool.
4912 (graphite_transform_loops): Reformat.
4913 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
4914
49152009-03-04 Sebastian Pop <sebastian.pop@amd.com>
4916
4917 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
4918 debug_pbb_domain, debug_pbb, debug_scop): New.
4919 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
4920 debug_pbb_domain, debug_pbb, debug_scop): Declared.
4921
49222009-03-02 Sebastian Pop <sebastian.pop@amd.com>
4923
4924 PR middle-end/39335
4925 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
4926 when the type precision of the induction variable should be
4927 larger than the type precision of nit.
4928 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
4929 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
4930 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
4931
6c9df8cb 4932 * gcc.dg/graphite/pr39335_1.c: New.
4933 * gcc.dg/graphite/pr39335.c: New.
c6bb733d 4934
49352009-03-02 Sebastian Pop <sebastian.pop@amd.com>
4936
4937 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
4938 SSA_NAMES not struct reduction_info.
4939
49402009-03-02 Sebastian Pop <sebastian.pop@amd.com>
4941
4942 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
4943
49442009-02-27 Sebastian Pop <sebastian.pop@amd.com>
4945 Tobias Grosser <grosser@fim.uni-passau.de>
4946
4947 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
4948 (free_sese): Free SESE_REDUCTION_LIST.
4949 * sese.h (struct sese): Add field reduction_list.
4950 (SESE_REDUCTION_LIST): New.
4951 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
4952 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
4953
49542009-02-27 Sebastian Pop <sebastian.pop@amd.com>
4955 Tobias Grosser <grosser@fim.uni-passau.de>
4956
4957 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
4958 of loop_p.
4959
49602009-02-27 Sebastian Pop <sebastian.pop@amd.com>
4961 Tobias Grosser <grosser@fim.uni-passau.de>
4962
4963 * tree-parloops.c (struct brli, build_reduction_list_info,
4964 analyze_reduction_list, gather_scalar_reductions): New.
4965 (loop_parallel_p): Build a reduction list containing only
4966 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
4967 (gen_parallel_loop): Call the analysis analyze_reduction_list.
4968 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
4969 * tree-flow.h (gather_scalar_reductions): Declared.
4970
49712009-02-26 Sebastian Pop <sebastian.pop@amd.com>
4972
4973 PR middle-end/39308
4974 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
4975 number_of_iterations_exit from a gcc_assert.
4976
49772009-02-25 Sebastian Pop <sebastian.pop@amd.com>
4978 Jan Sjodin <jan.sjodin@amd.com>
4979
4980 * output.h (graphite_out_file, graphite_in_file): Declared.
4981 * toplev.c (graphite_out_file, graphite_in_file): New.
4982 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
4983 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
4984 Don't call schedule_to_scattering.
4985 * common.opt (fgraphite-write, fgraphite-read): New.
4986 * graphite-poly.c: Include output.h.
4987 (print_scattering_function, print_scattering_functions,
4988 debug_scattering_function, debug_scattering_functions,
4989 graphite_write_transforms, graphite_read_transforms,
4990 graphite_generate_scattering_fns): New.
4991 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
4992 Call graphite_generate_scattering_fns, graphite_write_transforms,
4993 graphite_read_transforms.
4994 (new_poly_bb): Initialize PBB_SCATTERING.
4995 (free_poly_bb): Free PBB_SCATTERING.
4996 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
4997 * graphite-poly.h (struct poly_bb): Add field scattering.
4998 (PBB_SCATTERING): New.
4999 (print_scattering_function, print_scattering_functions,
5000 debug_scattering_function, debug_scattering_functions): Declared.
5001 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
5002 GMP values, not integers!
5003 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
5004 ppl_read_polyhedron_matrix): New.
5005 * graphite-ppl.h (ppl_print_polyhedron_matrix,
5006 debug_ppl_polyhedron_matrix,
5007 ppl_read_polyhedron_matrix): Declared.
5008 * Makefile.in (graphite-poly.o): Depends on output.h.
5009
50102009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5011 Tobias Grosser <grosser@fim.uni-passau.de>
5012
5013 Revert this change:
5014 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5015 scalar evolutions in the scop_entry->loop_father.
5016
50172009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5018 Tobias Grosser <grosser@fim.uni-passau.de>
5019
5020 * graphite.h (ref_nb_loops): Remove declaration.
5021 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
5022 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
5023 debug_gbb): Moved to sese.h.
5024 * sese.h: As said.
5025
50262009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5027 Tobias Grosser <grosser@fim.uni-passau.de>
5028
5029 * graphite-data-ref.[ch]: Disable.
5030
50312009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5032 Tobias Grosser <grosser@fim.uni-passau.de>
5033
5034 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
5035 scalar evolutions in the scop_entry->loop_father.
5036
50372009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5038
5039 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
5040 (graphite_cannot_represent_loop_niter): Renamed
5041 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
5042 (limit_scops): build_sese_loop_nests does not return a bool.
5043 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
5044 * sese.c (nb_reductions_in_loop): ... from here.
5045 (graphite_loop_normal_form): ... from here.
5046 (sese_record_loop): Does not fail, so does not return a bool.
5047 (build_sese_loop_nests): Same.
5048 * sese.h (build_sese_loop_nests): Update declaration.
5049 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
5050 (build_graphite_loop_normal_form): New.
5051 (gloog): Call build_graphite_loop_normal_form.
5052 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
5053 build_sese_loop_nests.
5054
6c9df8cb 5055 * gcc.dg/graphite/id-1.c: New.
c6bb733d 5056
50572009-02-23 Sebastian Pop <sebastian.pop@amd.com>
5058 Tobias Grosser <grosser@fim.uni-passau.de>
5059
5060 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
5061 The SCoP detection fix is sufficient.
5062
50632009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5064
5065 PR tree-optimization/39260
5066 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
5067 the basic block contains a condition with a real type.
5068 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
5069
5070 * gcc.dg/graphite/pr39260.c: New.
5071
50722009-02-21 Sebastian Pop <sebastian.pop@amd.com>
5073
5074 * graphite-poly.c: Inlcude params.h.
5075 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
5076 the size of a tile.
5077 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
5078 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
5079
50802009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5081 Tobias Grosser <grosser@fim.uni-passau.de>
5082
5083 * graphite-scop-detection.c (dot_all_scops_1,
5084 dot_all_scops): Moved here.
5085 * graphite-scop-detection.h (dot_all_scops): Declared here.
5086 * graphite.c (graphite_initialize, graphite_finalize): New.
5087 (graphite_transform_loops): Cleaned up.
5088 * sese.c (debug_oldivs): Moved here.
5089 * graphite-poly.c (graphite_apply_transformations): Renamed
5090 apply_poly_transforms.
5091 (debug_loop_vec): Moved here.
5092 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
5093 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
5094 find_scop_parameters, build_scop_iteration_domain,
5095 add_conditions_to_constraints, build_scop_canonical_schedules,
5096 build_scop_data_accesses): Now static.
5097 (build_poly_scop, check_poly_representation): New.
5098
50992009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5100
5101 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
5102 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
5103 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
5104 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
5105 scan_tree_for_params_right_scev, scan_tree_for_params_int,
5106 scan_tree_for_params, struct irp_data, dx_record_params,
5107 find_params_in_bb, find_scop_parameters, gbb_from_bb,
5108 build_loop_iteration_domains, add_conditions_to_domain,
5109 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
5110 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
5111 build_sese_conditions, add_conditions_to_constraints,
5112 build_scop_iteration_domain, build_access_matrix_with_af,
5113 build_access_matrix,
5114 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
5115
5116 * graphite-sese-to-poly.c: New.
5117 * graphite-sese-to-poly.h: New.
5118
5119 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
5120
51212009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5122
5123 * graphite.c: Split graphite code generation to a new file.
5124 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
5125 max_precision_type, clast_to_gcc_expression_red,
5126 clast_to_gcc_expression, gcc_type_for_clast_expr,
5127 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
5128 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
5129 graphite_create_new_guard, clast_get_body_of_loop,
5130 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
5131 graphite_create_new_loop, build_iv_mapping, copy_renames,
5132 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5133 compute_cloog_iv_types, free_scattering, save_var_name,
5134 initialize_cloog_names, build_scop_context, build_cloog_prog,
5135 set_cloog_options, debug_clast_stmt, scop_to_clast,
5136 print_generated_program, debug_generated_program,
5137 gloog): Moved to graphite-clast-to-gimple.c.
5138
5139 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
5140
5141 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
5142 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
5143 loop_iv_stack_pop, loop_iv_stack_get_iv,
5144 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
5145 free_loop_iv_stack, loop_iv_stack_remove_constants,
5146 debug_rename_elt, debug_rename_map_1, debug_rename_map,
5147 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
5148 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
5149 eq_ivtype_map_elts, sese_add_exit_phis_edge,
5150 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
5151 get_vdef_before_sese, sese_adjust_vphi,
5152 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
5153 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
5154 is_iv, expand_scalar_variables_ssa_name,
5155 expand_scalar_variables_expr, expand_scalar_variables_stmt,
5156 expand_scalar_variables, rename_variables, remove_condition,
5157 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
5158 add_loop_exit_phis, insert_loop_close_phis, struct igp,
5159 default_liveout_before_guard, add_guard_exit_phis,
5160 insert_guard_phis, register_old_and_new_names,
5161 graphite_copy_stmts_from_block, register_sese_liveout_renames,
5162 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
5163 if_region_set_false_region, create_if_region_on_edge,
5164 move_sese_in_condition): Moved to sese.c.
5165
5166 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
5167 if_region_exit, if_region_get_condition_block,
5168 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
5169 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
5170 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
5171 ivtype_map_elt, new_ivtype_map_elt,
5172 recompute_all_dominators): Moved to sese.h.
5173
5174 * graphite-clast-to-gimple.c: New.
5175 * graphite-clast-to-gimple.h: New.
5176 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
5177 * sese.c: Modified as said above.
5178 * sese.h: Same.
5179
51802009-02-20 Sebastian Pop <sebastian.pop@amd.com>
5181
5182 * graphite.c: Split scop detection to a new file.
5183 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
5184 move_sd_regions, loop_affine_expr, exclude_component_ref,
5185 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
5186 graphite_cannot_represent_loop_niter, struct scopdet_info,
5187 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
5188 find_single_entry_edge, find_single_exit_edge,
5189 create_single_entry_edge, sd_region_without_exit,
5190 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
5191 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
5192 Moved to graphite-scop-detection.c.
5193
5194 * graphite-scop-detection.c: New.
5195 * graphite-scop-detection.h: New.
5196 * Makefile.in: Add new rule for graphite-scop-detection.o.
5197
5198 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
5199 tree-scalar-evolution.h.
5200 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
5201 build_sese_loop_nests): Moved here from graphite.c.
5202 (param_index): Renamed parameter_index_in_region.
5203
52042009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5205 Sebastian Pop <sebastian.pop@amd.com>
5206
5207 * gcc.dg/graphite/block-0.c: Expected to fail now.
5208 * gcc.dg/graphite/block-1.c: Same.
5209 * gcc.dg/graphite/block-5.c: Same.
5210 * gcc.dg/graphite/block-6.c: Same.
5211
52122009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
5213 Sebastian Pop <sebastian.pop@amd.com>
5214
5215 * graphite.h: Separate from graphite_bb_p the polyhedral
5216 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
5217 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
5218 graphite-data-ref.h.
5219 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
5220 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
5221 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
5222 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
5223 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
5224 scop_nb_params): Moved to graphite-poly.h.
5225 * graphite-data-ref.c: Same.
5226 * graphite-data-ref.h: New.
5227 * graphite.c: Same.
5228 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
5229 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
5230 is_interchange_valid, graphite_trans_bb_block,
5231 graphite_trans_loop_block, scop_max_loop_depth,
5232 graphite_trans_scop_block, graphite_apply_transformations,
5233 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
5234 graphite-poly.c.
5235 * graphite-poly.h: New.
5236 * graphite-poly.c: New.
5237 * Makefile.in (OBJS-common): Add graphite-poly.o.
5238 (graphite-poly.o): New rule.
5239 * tree-data-ref.h (struct data_reference): Remove unused scop field.
5240 (DR_SCOP): Removed.
5241
52422009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5243 Tobias Grosser <grosser@fim.uni-passau.de>
5244
5245 * graphite.c: Replace gb -> gbb.
5246 * graphite.h: Same.
5247 * graphite-data-ref.c: Same.
5248
52492009-02-18 Sebastian Pop <sebastian.pop@amd.com>
5250 Tobias Grosser <grosser@fim.uni-passau.de>
5251
5252 * Makefile.in (OBJS-commmon): Add sese.o.
5253 (sese.o): New.
5254 (graphite.o): Add sese.h.
5255 * graphite.c (bb_in_ss_p, loop_in_sese_p,
5256 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
5257 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
5258 Move to sese.
5259 (block_before_scop): Add missing return.
5260 (new_scop, free_scop): Remove SESE data structures.
5261 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
5262 find_scop_parameters, build_loop_iteration_domains,
5263 add_conditions_to_domain, register_scop_liveout_renames,
5264 copy_bb_and_scalar_dependences): Scop -> SESE.
5265
5266 (add_conditions_to_domain): SCoP -> SESE and remove check
5267 (scop_contains_non_iv_scalar_phi_nodes): New.
5268 (build_scop_conditions_1, build_scop_conditions): Remove check for
5269 non iv scalar phi nodes.
5270 (print_scop_statistics): New.
5271 (graphite_transform_loops): Cleanup.
5272
5273 * graphite.h: Move to sese & cleanup.
5274 * sese.c: New.
5275 * sese.h: New.
5276
52772009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5278 Tobias Grosser <grosser@fim.uni-passau.de>
5279
5280 * graphite.c (build_scop_conditions_1): Conditions are only
5281 at the end of a basic block.
5282
52832009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5284 Tobias Grosser <grosser@fim.uni-passau>
5285
5286 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
5287 field.
5288 (GBB_ALPHA): Removed.
5289
52902009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5291 Tobias Grosser <grosser@fim.uni-passau.de>
5292
5293 * graphite-data-ref.c (graphite_test_dependence): Don't use
5294 GBB_DYNAMIC_SCHEDULE.
5295 * graphite.c (new_graphite_bb): Same.
5296 (free_graphite_bb): Same.
5297 (build_scop_dynamic_schedules): Removed.
5298 (graphite_transform_loops): Don't call it.
5299 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
5300 (GBB_DYNAMIC_SCHEDULE): Removed.
5301
53022009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5303 Tobias Grosser <grosser@fim.uni-passau.de>
5304
5305 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
5306 (print_graphite_bb): Same.
5307 (build_cloog_prog): Same.
5308
53092009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5310 Tobias Grosser <grosser@fim.uni-passau.de>
5311
5312 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
5313
53142009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5315 Tobias Grosser <grosser@fim.uni-passau.de>
5316
5317 * graphite.c (build_scop_context): Don't use CloogMatrix.
5318 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
5319 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
5320
53212009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5322 Tobias Grosser <grosser@fim.uni-passau.de>
5323
5324 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
5325 liveout_renames, add_params fields...
5326 (struct sese): ... here.
5327 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
5328 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
5329
53302009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5331 Tobias Grosser <grosser@fim.uni-passau.de>
5332
5333 * graphite.c (print_scop): Do not print the CLooG program.
5334 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
5335 build_cloog_prog, gloog): Don't use SCOP_PROG.
5336 (find_transform): Renamed scop_to_clast.
5337 (print_generated_program, debug_generated_program): New.
5338 (graphite_transform_loops): Adapt to new interface.
5339 * graphite.h (struct scop): Remove program field.
5340 (SCOP_PROG): Removed.
5341 (print_generated_program, debug_generated_program): Declared.
5342
53432009-02-16 Sebastian Pop <sebastian.pop@amd.com>
5344
5345 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
5346 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
5347 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
5348 free_graphite_bb, build_scop_canonical_schedules,
5349 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
5350 schedules are now represented using a ppl_Linear_Expression_t.
5351 * graphite.h (struct graphite_bb): Same.
5352 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
5353 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
5354
53552009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5356
5357 * graphite.c: Free local memory.
5358 * graphite-ppl.c: Same.
5359
53602009-02-15 Sebastian Pop <sebastian.pop@amd.com>
5361
5362 * graphite.c (const_column_index, get_first_matching_sign_row_index,
5363 get_lower_bound_row, get_upper_bound_row, copy_constraint,
5364 swap_constraint_variables, scale_constraint_variable): Removed.
5365 (graphite_trans_bb_strip_mine): Remove pong.
5366 * graphite-ppl.c: Include missing header files.
5367 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
5368 * graphite-ppl.h (ppl_strip_loop): Declared.
5369 * Makefile.in (graphite-ppl.o): Adjust dependences.
5370
53712009-02-14 Sebastian Pop <sebastian.pop@amd.com>
5372
5373 * graphite.c (build_loop_iteration_domains): Remove ping pong.
5374 (build_scop_iteration_domain): Same.
5375
53762009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5377
5378 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5379 ping pong.
5380 (add_value_to_dim, scan_tree_for_params_right_scev,
5381 scan_tree_for_params_int): New.
5382 * graphite-ppl.c (oppose_constraint): New.
5383 (insert_constraint_into_matrix): Implement missing cases.
5384 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5385
53862009-02-13 Sebastian Pop <sebastian.pop@amd.com>
5387
5388 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
5389 use ppl_move_dimension.
5390
53912009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5392
5393 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
5394 * graphite.c: Same.
5395 * graphite.h: Same.
5396 * graphite-ppl.c: Same.
5397 * graphite-ppl.h: Same.
5398
53992009-02-12 Sebastian Pop <sebastian.pop@amd.com>
5400
5401 Revert last 3 commits.
5402
54032009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5404
5405 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
5406 ping pong.
5407 (add_value_to_dim, scan_tree_for_params_right_scev,
5408 scan_tree_for_params_int): New.
5409 * graphite-ppl.c (oppose_constraint): New.
5410 (insert_constraint_into_matrix): Implement missing cases.
5411 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
5412
54132009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5414
5415 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
5416
54172009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5418 Tobias Grosser <grosser@fim.uni-passau.de>
5419
5420 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
5421 use ppl_move_dimension.
5422 * graphite-ppl.c (ppl_move_dimension): New.
5423 * graphite-ppl.h (ppl_move_dimension): Declared.
5424
54252009-02-10 Sebastian Pop <sebastian.pop@amd.com>
5426
5427 * graphite.c: Do not include cloog/cloog.h.
5428 (print_graphite_bb): Remove ping pong, call PPL print function.
5429
54302009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
5431
5432 * Makefile.in (OBJS-common): Add graphite-ppl.o.
5433 (graphite.o): Add dependence on graphite-ppl.h.
5434 (graphite-ppl.o): New.
5435 (graphite-data-ref.c): Ping pong between PPL data structures
5436 and matrices.
5437 * graphite-ppl.c: New.
5438 * graphite-ppl.h: New.
5439 * graphite.c: Include graphite-ppl.h.
5440 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
5441 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
5442 Ping pong between PPL data structures and matrices.
5443 (new_graphite_bb): Create a PPL constraint system.
5444 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
5445 (build_loop_iteration_domains): Use PPL functions.
5446 * graphite.h: Include graphite-ppl.h. Fix comments.
5447 (graphite_bb): Use a ppl_Constraint_System_t instead of
5448 CloogMatrix for representing the domain.
5449 (scop): Remove static_schedule.
5450 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
5451
54522009-02-06 Sebastian Pop <sebastian.pop@amd.com>
5453
5454 * graphite.c: Fix some comments.
5455
54562009-02-05 Sebastian Pop <sebastian.pop@amd.com>
5457
5458 PR middle-end/38953
5459 * graphite.c (if_region_set_false_region): After moving a region
5460 in the false branch of a condition, remove the empty dummy
5461 basic block.
5462 (gloog): Remove wrong fix for PR38953.
5463
54642009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
5465
5466 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
5467 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
5468 register_bb_in_sese, new_sese, free_sese): Moved.
5469 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
5470 outermost_loop_in_scop, build_scop_iteration_domain,
5471 expand_scalar_variables_ssa_name, get_vdef_before_scop,
5472 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
5473 Use loop_in_sese_p instead of loop_in_scop_p.
5474 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
5475 (free_scop): Do not free SCOP_BBS_B.
5476 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
5477 ref_nb_loops): Moved here...
5478 * graphite.h (ref_nb_loops): ... from here.
5479 (struct scop): Remove bbs_b bitmap.
5480 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
6c9df8cb 5481 * gcc.dg/graphite/scop-19.c: New
c6bb733d 5482
54832009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
5484
5485 * graphite.c (scopdet_basic_block_info): Fix bug in scop
5486 detection.
5487
54882009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
5489
5490 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
5491 eq_loop_to_cloog_loop): Remove.
5492 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
5493 * graphite.h (struct scop): Remove loop2cloog_loop.
5494 (loop_domain_dim, loop_iteration_vector_dim): Remove.
5495
54962009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
5497
5498 * opts.c (decode_options): Only add graphite options to O2
5499 if we compile with graphite enabled.
5500
55012009-01-26 Sebastian Pop <sebastian.pop@amd.com>
5502
5503 * Merge from mainline (r143163:143684).
5504
55052009-01-26 Sebastian Pop <sebastian.pop@amd.com>
5506
5507 * graphite.c (debug_value): Removed.
5508 * graphite.h (debug_value): Removed.
5509
55102009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5511
5512 * passes.c (init_optimization_passes): Do not call pass_copy_prop
5513 after graphite: pass_copy_prop does not maintain a proper loop closed
5514 SSA form. pass_copy_prop should be fixed.
5515
55162009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5517
5518 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
5519
55202009-01-23 Sebastian Pop <sebastian.pop@amd.com>
5521
5522 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
5523 (gloog): Split the exit of the scop when the scop exit is a loop exit.
5524 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
5525 changed the CFG.
5526
55272009-01-20 Sebastian Pop <sebastian.pop@amd.com>
5528
5529 * graphite.c (gloog): Return true when code gen succeeded.
5530 (graphite_transform_loops): Do not call cleanup_tree_cfg if
5531 the code of the function did not changed. After cleanup_tree_cfg
5532 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
5533 form.
5534
55352009-01-19 Sebastian Pop <sebastian.pop@amd.com>
5536
5537 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
5538 gimple_call_lhs is NULL.
5539
55402009-01-16 Sebastian Pop <sebastian.pop@amd.com>
5541 Tobias Grosser <tobi.grosser@amd.com>
5542
5543 * graphite.c (graphite_trans_scop_block): Do not block single
5544 nested loops.
5545
55462009-01-15 Sebastian Pop <sebastian.pop@amd.com>
5547 Tobias Grosser <tobi.grosser@amd.com>
5548
5549 * graphite.c (build_scop_canonical_schedules): Start schedules at
5550 zero.
5551
55522009-01-15 Sebastian Pop <sebastian.pop@amd.com>
5553 Tobias Grosser <tobi.grosser@amd.com>
5554
5555 * graphite.c (compare_prefix_loops): New.
5556 (build_scop_canonical_schedules): Rewritten.
5557 (graphite_transform_loops): Move build_scop_canonical_schedules
5558 after build_scop_iteration_domain.
5559
55602009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5561 Tobias Grosser <tobi.grosser@amd.com>
5562
5563 * graphite.c (add_conditions_to_domain): Add the loops to
5564 the dimension of the iteration domain. Do copy the domain
5565 only when it exists.
5566 (build_scop_conditions_1): Do not call add_conditions_to_domain.
5567 (add_conditions_to_constraints): New.
5568 (can_generate_code_stmt, can_generate_code): Removed.
5569 (gloog): Do not call can_generate_code.
5570 (graphite_transform_loops): Call add_conditions_to_constraints
5571 after building the iteration domain.
5572
55732009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5574 Tobias Grosser <tobi.grosser@amd.com>
5575 Jan Sjodin <jan.sjodin@amd.com>
5576
5577 * graphite.c (scan_tree_for_params): On substractions negate
5578 all the coefficients of the term.
5579 (clast_to_gcc_expression_red): New. Handle reduction expressions
5580 of more than two operands.
5581 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
5582 (get_vdef_before_scop): Handle also the case of default definitions.
5583
55842009-01-14 Sebastian Pop <sebastian.pop@amd.com>
5585
5586 PR middle-end/38431
5587 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
5588 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
5589 (gloog): Do not call cleanup_tree_cfg.
5590 (graphite_transform_loops): Call cleanup_tree_cfg after all
5591 scops have been code generated.
5592
55932009-01-13 Sebastian Pop <sebastian.pop@amd.com>
5594
5595 * passes.c (init_optimization_passes): Schedule after
5596 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
5597
55982009-01-13 Sebastian Pop <sebastian.pop@amd.com>
5599
5600 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
5601 Fix comment.
5602 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
5603 Set the type of an expression to the type of its assign statement.
5604 (expand_scalar_variables_expr): Do not pass loop_p.
5605 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
5606 (copy_bb_and_scalar_dependences): Do not pass loop_p.
5607 (translate_clast): Update call to copy_bb_and_scalar_dependences.
5608
56092009-01-11 Sebastian Pop <sebastian.pop@amd.com>
5610
5611 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
5612 an expression to the gimple_expr_type of its assign statement.
5613 (expand_scalar_variables_expr): Stop recursion on tcc_constant
5614 or tcc_declaration.
5615
56162009-01-11 Sebastian Pop <sebastian.pop@amd.com>
5617
5618 PR tree-optimization/38786
6c9df8cb 5619 * gcc.dg/graphite/pr38786.c: New.
c6bb733d 5620 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
5621 the SSA_NAME case of expand_scalar_variables_expr.
5622 (expand_scalar_variables_expr): Also gather the scalar computation
5623 used to index the memory access.
5624 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
5625 the gimple_stmt_iterator where it inserts new code.
5626
56272009-01-10 Sebastian Pop <sebastian.pop@amd.com>
5628
6c9df8cb 5629 * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
c6bb733d 5630
56312009-01-10 Sebastian Pop <sebastian.pop@amd.com>
5632
5633 * opts.c (decode_options): Enable flag_graphite_identity and
5634 flag_loop_block in -O2 and above.
5635
56362009-01-08 Sebastian Pop <sebastian.pop@amd.com>
5637
5638 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
5639 Fix merge problem: replace with the file from trunk.
5640
56412009-01-08 Sebastian Pop <sebastian.pop@amd.com>
5642
5643 * Merge from mainline (r141727:143163).
5644
56452009-01-07 Sebastian Pop <sebastian.pop@amd.com>
5646 Jan Sjodin <jan.sjodin@amd.com>
5647
5648 PR tree-optimization/38559
6c9df8cb 5649 * gcc.dg/graphite/pr38559.c: New.
c6bb733d 5650
5651 * graphite.c (debug_value, copy_constraint,
5652 swap_constraint_variables, scale_constraint_variable, ): New.
5653 (get_lower_bound, get_upper_bound): Removed.
5654 (graphite_trans_bb_strip_mine): Clean up this code that works
5655 only for constant number of iterations. Fully copy upper and
5656 lower bound constraints, not only the constant part of them.
5657 * graphite.h (debug_value): Declared.
5658
56592009-01-06 Jan Sjodin <jan.sjodin@amd.com>
5660
5661 PR tree-optimization/38492
5662 PR tree-optimization/38498
5663 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
5664 * tree-chrec.h (scev_is_linear_expression): Declared.
5665 * graphite.c (graphite_cannot_represent_loop_niter): New.
5666 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
5667 (graphite_loop_normal_form): Use gcc_assert.
5668 (scan_tree_for_params): Use CASE_CONVERT.
5669 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
5670 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
5671 Use gcc_assert. Discard scops that contain unhandled cases.
5672 (build_scop_conditions): Return a boolean status for unhandled cases.
5673 (strip_mine_profitable_p): Print the loop number, not its depth.
5674 (is_interchange_valid): Pass the depth of the loop nest, don't
5675 recompute it wrongly.
5676 (graphite_trans_bb_block): Same.
5677 (graphite_trans_bb_block): Print tentative of loop blocking.
5678 (graphite_trans_scop_block): Do not print that the loop has been
5679 blocked.
5680 (graphite_transform_loops): Do not handle scops that contain condition
5681 scalar phi nodes.
5682
6c9df8cb 5683 * gcc.dg/graphite/pr38500.c: Fixed warning as committed
c6bb733d 5684 in trunk.
6c9df8cb 5685 * gcc.dg/graphite/block-0.c: Update test.
5686 * gcc.dg/graphite/block-1.c: Same.
5687 * gcc.dg/graphite/block-2.c: Remove xfail and test for
c6bb733d 5688 blocking.
6c9df8cb 5689 * gcc.dg/graphite/block-4.c: Remove test for strip mine.
5690 * gcc.dg/graphite/block-3.c: New.
5691 * gcc.dg/graphite/pr38498.c: New.
c6bb733d 5692
56932008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
5694
5695 PR tree-optimization/38510
5696 * gcc.dg/graphite/pr38510.c: New.
5697 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
5698 (translate_clast): Call recompute_all_dominators before
5699 graphite_verify.
5700 (gloog): Call recompute_all_dominators before graphite_verify.
5701
57022008-12-12 Sebastian Pop <sebastian.pop@amd.com>
5703
5704 PR tree-optimization/38492
5705 * graphite.c (rename_map_elt, debug_rename_elt,
5706 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
5707 rename_map_elt_info, eq_rename_map_elts,
5708 get_new_name_from_old_name, bb_in_sese_p): Moved around.
5709 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
5710 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
5711 (sese_build_livein_liveouts): New.
5712 (new_sese, free_sese): New.
5713 (new_scop): Call new_sese.
5714 (free_scop): Call free_sese.
5715 (rename_variables_from_edge, rename_phis_end_scop): Removed.
5716 (register_old_new_names): Renamed register_old_and_new_names.
5717 (register_scop_liveout_renames, add_loop_exit_phis,
5718 insert_loop_close_phis, struct igp,
5719 default_liveout_before_guard, add_guard_exit_phis,
5720 insert_guard_phis, copy_renames): New.
5721 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
5722 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
5723 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
5724 (scop_adjust_phis_for_liveouts): New.
5725 (gloog): Call scop_adjust_phis_for_liveouts.
5726
5727 * graphite.h (struct sese): Documented. Added fields liveout,
5728 num_ver and livein.
5729 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
5730 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
5731 (struct scop): Added field liveout_renames.
5732 (SCOP_LIVEOUT_RENAMES): New.
5733
57342008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5735
5736 PR tree-optimization/38409
5737 * gcc.dg/graphite/pr38409.c: New.
5738 * graphite.c (nb_reductions_in_loop): Use simple_iv.
5739
57402008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5741
5742 * graphite.c (gcc_type_for_cloog_iv): By default return
5743 integer_type_node.
5744 (graphite_create_new_loop): Don't fold_convert the already
5745 fold_convert-ed expression.
5746
57472008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
5748
5749 PR tree-optimization/38446
5750 * gcc.dg/graphite/pr38446.c: New.
5751 * graphite.c (register_bb_in_sese): New.
5752 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
5753 looking at the bbs in the region.
5754 * graphite.h (sese): Add region_basic_blocks pointer set to
5755 structure and initialize at the time of defining new scop.
5756
57572008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
5758
5759 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
5760 (find_params_in_bb): Do not free data refs.
5761 (free_graphite_bb): Add FIXME on disabled free_data_refs.
5762
57632008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5764
6c9df8cb 5765 * gcc.dg/graphite/scop-16.c: Test only scop specific info.
5766 * gcc.dg/graphite/scop-17.c: Same.
5767 * gcc.dg/graphite/block-5.c: New.
5768 * gcc.dg/graphite/block-6.c: New.
5769 * gcc.dg/graphite/pr37485.c: Clean dump file after.
5770 * gcc.dg/graphite/pr37684.c: Same.
5771 * gcc.dg/graphite/block-2.c: Same.
c6bb733d 5772
5773 * graphite.c (struct ivtype_map_elt): New.
5774 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
5775 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
5776 gcc_type_for_cloog_iv): New.
5777 (loop_iv_stack_patch_for_consts): Use the type of the induction
5778 variable from the original loop, except for the automatically
5779 generated loops, i.e., in the case of a strip-mined loop, in
5780 which case there is no original loop: in that case just use
5781 integer_type_node.
5782 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
5783 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
5784 (clast_name_to_gcc): Accept params to be NULL.
5785 (clast_to_gcc_expression): Take an extra parameter for the type.
5786 Convert to that type all the expressions built by this function.
5787 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
5788 (graphite_translate_clast_equation): Compute the type of the
5789 clast_equation before translating its LHS and RHS.
5790 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
5791 (graphite_create_new_loop): Compute the type of the induction
5792 variable before translating the lower and upper bounds and before
5793 creating the induction variable.
5794 (rename_variables_from_edge, rename_phis_end_scop): New.
5795 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
5796 (sese_add_exit_phis_edge): Do not use integer_zero_node.
5797 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5798 compute_cloog_iv_types): New.
5799 (gloog): Call compute_cloog_iv_types before starting the
5800 translation of the clast.
5801
5802 * graphite.h (struct graphite_bb): New field cloog_iv_types.
5803 (GBB_CLOOG_IV_TYPES): New.
5804 (debug_ivtype_map): Declared.
5805 (oldiv_for_loop): New.
5806
58072008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
5808
5809 PR middle-end/38459
5810 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
5811 (param_index): Assert if parameter is not know after parameter
5812 detection.
5813 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
5814 (find_scop_parameters): Mark, that we have finished parameter
5815 detection.
5816 (graphite_transform_loops): Move condition detection before parameter
5817 detection.
5818 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
6c9df8cb 5819 * gfortran.dg/graphite/pr38459.f90: New.
c6bb733d 5820
58212008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
5822
5823 * graphite.c (graphite_transform_loops): Always call find_transform ()
5824 in ENABLE_CHECKING. So we test these code paths, even if we do not
5825 generate code.
5826
58272008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
5828
5829 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
5830 (print_scop): Ditto.
5831
58322008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
5833
5834 PR middle-end/38084
6c9df8cb 5835 Fix gfortran.dg/graphite/id-3.f90.
c6bb733d 5836 * graphite.c (scopdet_basic_block_info): Fix bug that found some
5837 regions more than once.
5838
58392008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5840
6c9df8cb 5841 Fix gfortran.dg/graphite/id-4.f90.
c6bb733d 5842 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
5843 when not needed.
5844
58452008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5846
6c9df8cb 5847 Fix gfortran.dg/graphite/id-1.f90.
c6bb733d 5848 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
5849 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
5850 (max_precision_type): New.
5851 (value_clast): Removed.
5852 (clast_to_gcc_expression): Be more careful to types of expressions.
5853 Use max_precision_type and update use of gmp_cst_to_tree.
5854 (graphite_translate_clast_equation): Use max_precision_type.
5855 (graphite_create_guard_cond_expr): Do not use integer_type_node,
5856 use the type of the condition.
5857 (graphite_create_new_loop): Do not use integer_type_node, use the
5858 max_precision_type of lb and ub.
5859
58602008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5861
5862 * graphite.c (build_scops_1): Initialize open_scop.exit
5863 and sinfo.last.
5864
58652008-12-02 Sebastian Pop <sebastian.pop@amd.com>
5866
6c9df8cb 5867 * gcc.dg/graphite/pr38084.c: New.
5868 * gfortran.dg/graphite/id-1.f90: New.
5869 * gfortran.dg/graphite/id-2.f90: New.
5870 * gfortran.dg/graphite/id-3.f90: New.
5871 * gfortran.dg/graphite/id-4.f90: New.
5872 * gfortran.dg/graphite/pr37857.f90: New.
c6bb733d 5873
58742008-12-02 Sebastian Pop <sebastian.pop@amd.com>
5875 Jan Sjodin <jan.sjodin@amd.com>
5876 Harsha Jagasia <harsha.jagasia@amd.com>
5877
5878 PR middle-end/37852
5879 PR middle-end/37883
5880 PR middle-end/37928
5881 PR middle-end/37980
5882 PR middle-end/38038
5883 PR middle-end/38039
5884 PR middle-end/38073
5885 PR middle-end/38083
5886 PR middle-end/38125
5887
6c9df8cb 5888 * gcc.dg/graphite/pr38073.c: New.
5889 * gcc.dg/graphite/pr37928.c: New.
5890 * gcc.dg/graphite/pr37883.c: New.
5891 * gcc.dg/graphite/pr38125.c: New.
5892 * gfortran.dg/graphite/pr38083.f90: New.
5893 * gfortran.dg/graphite/pr37852.f90: New.
5894 * gfortran.dg/graphite/pr37980.f90: New.
c6bb733d 5895
6c9df8cb 5896 * gcc.dg/graphite/scop-18.c: Remove reduction, test for
c6bb733d 5897 the number of detected scops. Copy exact same test for loop
5898 blocking...
6c9df8cb 5899 * gcc.dg/graphite/block-1.c: Fix the number of expected
c6bb733d 5900 loops to be blocked as reductions are not handled.
6c9df8cb 5901 * gcc.dg/graphite/block-4.c: ...here. New.
c6bb733d 5902
5903 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
5904 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
5905 ...here.
5906 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
5907 * Makefile.in (graphite.o): Depend on value-prof.h.
5908 (graphite.o-warn): Removed -Wno-error.
5909 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
5910 to be a NULL pointer. Call update_stmt. Return the newly created
5911 cannonical induction variable.
5912
5913 * graphite.h (debug_rename_map): Declared. Fix some comments.
5914
5915 * graphite.c: Reimplement the code generation from graphite to gimple.
5916 Include value-prof.h.
5917 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
5918 (get_old_iv_from_ssa_name): Removed.
5919 (graphite_stmt_p): New.
5920 (new_graphite_bb): Test for useful statements before building a
5921 graphite statement for the basic block.
5922 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
5923 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
5924 reason.
5925 (recompute_all_dominators, graphite_verify,
5926 nb_reductions_in_loop, graphite_loop_normal_form): New.
5927 (scop_record_loop): Call graphite_loop_normal_form.
5928 (build_scop_loop_nests): Iterate over all the blocks of the
5929 function instead of relying on the incomplete information from
5930 SCOP_BBS. Return the success of the operation.
5931 (find_params_in_bb): Use the data from GBB_DATA_REFS.
5932 (add_bb_domains): Removed.
5933 (build_loop_iteration_domains): Don't call add_bb_domains.
5934 Add the iteration domain only to the basic blocks that have been
5935 translated to graphite.
5936 (build_scop_conditions_1): Add constraints only if the basic
5937 block have been translated to graphite.
5938 (build_scop_data_accesses): Completely disabled until data
5939 dependence is correctly implemented.
5940 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
5941 (remove_all_edges_1, remove_all_edges): Removed.
5942 (get_new_name_from_old_name): New.
5943 (graphite_rename_variables_in_stmt): Renamed
5944 rename_variables_in_stmt. Call get_new_name_from_old_name.
5945 Use replace_exp and update_stmt.
5946 (is_old_iv): Renamed is_iv.
5947 (expand_scalar_variables_stmt): Extra parameter for renaming map.
5948 Use replace_exp and update_stmt.
5949 (expand_scalar_variables_expr): Same. Use the map to get the
5950 new names for the renaming of induction variables and for the
5951 renaming of variables after a basic block has been copied.
5952 (expand_scalar_variables): Same.
5953 (graphite_rename_variables): Renamed rename_variables.
5954 (move_phi_nodes): Removed.
5955 (get_false_edge_from_guard_bb): New.
5956 (build_iv_mapping): Do not insert the induction variable of a
5957 loop in the renaming iv map if the basic block does not belong
5958 to that loop.
5959 (register_old_new_names, graphite_copy_stmts_from_block,
5960 copy_bb_and_scalar_dependences): New.
5961 (translate_clast): Heavily reimplemented: copy basic blocks,
5962 do not move them. Finally, in call cleanup_tree_cfg in gloog.
5963 At each translation step call graphite_verify ensuring the
5964 consistency of the SSA, loops and dominators information.
5965 (collect_virtual_phis, find_vdef_for_var_in_bb,
5966 find_vdef_for_var_1, find_vdef_for_var,
5967 patch_phis_for_virtual_defs): Removed huge hack.
5968 (mark_old_loops, remove_dead_loops, skip_phi_defs,
5969 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
5970 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
5971 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
5972 if_region_get_condition_block, if_region_set_false_region,
5973 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
5974 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
5975 sese_add_exit_phis_edge, sese_add_exit_phis_var,
5976 rewrite_into_sese_closed_ssa): New.
5977 (gloog): Remove dead code. Early return if code cannot be
5978 generated. Call cleanup_tree_cfg once the scop has been code
5979 generated.
5980 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
5981 block loops with less than two loops.
5982 (graphite_apply_transformations): Remove the call to
5983 scop_remove_ignoreable_gbbs.
5984 (limit_scops): When build_scop_loop_nests fails, continue on
5985 the next scop. Fix open_scop.entry.
5986 (graphite_transform_loops): Call recompute_all_dominators: force the
5987 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
5988 Call initialize_original_copy_tables and free_original_copy_tables
5989 to be able to copy basic blocks during code generation.
5990 When build_scop_loop_nests fails, continue on next scop.
5991 (value_clast): New union.
5992 (clast_to_gcc_expression): Fix type cast warning.
5993
59942008-11-09 Sebastian Pop <sebastian.pop@amd.com>
5995
5996 * Merge from mainline (r140838:141727).
5997
59982008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
5999
6000 PR middle-end/37833
6001
6002 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
6003
60042008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
6005
6006 PR middle-end/37943
6007
6008 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
6009 exits and conditions.
6c9df8cb 6010 * gcc.dg/graphite/pr37943.c: New.
c6bb733d 6011
60122008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6013
6014 PR middle-end/37886
6015 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
6016
60172008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
6018
6019 * doc/invoke.texi: Fix spaces.
6020
60212008-10-22 Sebastian Pop <sebastian.pop@amd.com>
6022
6023 PR tree-optimization/37891
6024 Reverted last commit.
6025 * graphite.c (create_single_entry_edge): Set
6026 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6027
60282008-10-21 Sebastian Pop <sebastian.pop@amd.com>
6029 Mitul Thakkar <mitul.thakkar@amd.com>
6030
6031 * graphite.c (create_single_entry_edge): Set
6032 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
6033
60342008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
6035
6036 * doc/invoke.texi: Add -fgraphite-identity.
6037 * graphite.c (graphite_apply_transformations): Check for
6038 -fgraphite-identity.
6039 * toplev.c (process_options): Add flag_graphite_identity.
6040 * tree-ssa-loop.c: Add flag_graphite_identity.
6041
60422008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6043
6044 Undo changes from 2008-10-02:
6045 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6046 operand type when copying the operand to a variable of different type.
6047 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6048 with the IV name after increment.
6049
60502008-10-14 Sebastian Pop <sebastian.pop@amd.com>
6051 Harsha Jagasia <harsha.jagasia@amd.com>
6052
6053 PR tree-optimization/37828
6c9df8cb 6054 * gcc.dg/graphite/pr37828.c: New.
c6bb733d 6055 * graphite.c (graphite_trans_loop_block): Do not loop block
6056 single nested loops.
6057
60582008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
6059 Sebastian Pop <sebastian.pop@amd.com>
6060
6061 * graphite.c (struct rename_map_elt, new_rename_map_elt,
6062 rename_map_elt_info, eq_rename_map_elts): New.
6063 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
6064 (expand_scalar_variables_expr): Change parameters.
6065 (expand_scalar_variables_stmt): Same.
6066 (expand_scalar_variables): Same.
6067 (graphite_rename_ivs): Rename graphite_rename_variables.
6068 (build_iv_mapping): New.
6069 (translate_clast): Call build_iv_mapping.
6070 * graphite.h (gbb_p): New name.
6071
60722008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
6073
6074 PR tree-optimization/37684
6075 * gcc.dg/graphite/pr37684.c: New.
6076 * graphite.c (exclude_component_ref): New.
6077 (is_simple_operand): Call exclude_component_ref.
6078
60792008-10-02 Jan Sjodin <jan.sjodin@amd.com>
6080 Harsha Jagasia <harsha.jagasia@amd.com>
6081
6082 PR tree-optimization/37485
6083 * gcc.dg/graphite/block-2.c: New
6084 * graphite.c (gmp_cst_to_tree): Moved.
6085 (iv_stack_entry_is_constant): New.
6086 (iv_stack_entry_is_iv): New.
6087 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
6088 (loop_iv_stack_insert_constant): New.
6089 (loop_iv_stack_pop): Use new datatpype.
6090 (loop_iv_stack_get_iv): Same.
6091 (loop_iv_stack_get_iv_from_name): Same.
6092 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
6093 (loop_iv_stack_patch_for_consts): New.
6094 (loop_iv_stack_remove_constants): New.
6095 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
6096 (translate_clast): Call loop_iv_stack_patch_for_consts and
6097 loop_iv_stack_remove_constants.
6098 (gloog): Use new datatype. Redirect construction edge to end
6099 block to avoid accidental deletion.
6100 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
6101 iv stack entry.
6102 (union iv_stack_entry_data): New. Data in iv stack entry.
6103 (struct iv_stack_entry): New. Datatype for iv stack entries.
6104
61052008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6106
6107 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
6108 operand type when copying the operand to a variable of different type.
6109
61102008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6111
6112 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
6113 with the IV name after increment.
6114
61152008-10-02 Sebastian Pop <sebastian.pop@amd.com>
6116
6117 * Merge from mainline (r140164:140838).
6118
61192008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6120
6121 * graphite-data-ref.c: New.
6122 * graphite.c (print_scop): Also dump the dependence graph.
6123 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
6124 (new_scop): Initialize SCOP_DEP_GRAPH.
6125 (build_scop_dynamic_schedules): New.
6126 (build_access_matrix_with_af): Fixed column numbering.
6127 (graphite_transform_loops): Call build_scop_dynamic_schedules.
6128 * graphite.h: Add ifndef/define guards against multiple inclusion.
6129 (struct scop): Add dep_graph field.
6130 (SCOP_DEP_GRAPH): Defined.
6131 (ref_nb_loops): Fixed and moved to other position.
6132 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
6133 (nb_loops_around_loop_in_scop): New.
6134 (graphite_dump_dependence_graph): Declared.
6135 (graphite_build_rdg_all_levels): Declared.
6136 (graphite_test_dependence): Declared.
6137 * Makefile.in (graphite-data-ref.o): New target.
6138
61392008-09-09 Sebastian Pop <sebastian.pop@amd.com>
6140
6141 * Merge from mainline (139870:140164).
6142
61432008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6144
6145 * Merge from mainline (138275:139870).
6c9df8cb 6146 * gcc.dg/graphite/scop-matmult.c: XFailed as one of
c6bb733d 6147 the commits from trunk broke the niter detection.
6148
61492008-09-01 Sebastian Pop <sebastian.pop@amd.com>
6150
6151 * graphite.c: Add more documentation. Fix formatting.
6152 (debug_loop_vec, debug_oldivs, loop_iv_stack,
6153 loop_iv_stack_debug): Moved...
6154 (schedule_to_scattering): Move before use.
6155 (dot_all_scops): Include in "#if 0" the code for system
6156 call dotty.
6157
6158 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
6159 loop_iv_stack_debug): ...here.
6160
61612008-08-29 Jan Sjodin <jan.sjodin@amd.com>
6162
6163 * tree-phinodes.c (make_phi_node): Extern.
6164 (add_phi_node_to_bb): New.
6165 (create_phi_node): Call add_phi_node_to_bb.
6166 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
6167 (remove_statement): Handle case where stored phi was updated
6168 and is no longer the same.
6169 * graphite.c (is_parameter): New.
6170 (is_old_iv): New.
6171 (expand_scalar_variables_expr): New.
6172 (expand_scalar_variables_stmt): New.
6173 (expand_scalar_variables): New.
6174 (move_phi_nodes): Create new phi instead of moving old one.
6175 (translate_clast): Call expand_scalar_variables.
6176 (find_vdef_for_var_in_bb): Also scan regular definitions.
6177 (skip_phi_defs): New.
6178 (collect_scop_exit_phi_args): New.
6179 (patch_scop_exit_phi_args): New.
6180 (gloog): Patch phis after scop.
6181 * tree-flow.h: (add_phi_node_to_bb): Declared.
6182 (make_phi_node): Declared.
6183
61842008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6185
6186 * graphite.c (end_scop): Split the entry of the scop when it
6187 is the header of the loop in which the scop is ending.
6188 (build_scops_1, limit_scops): Update uses of end_scop.
6189
61902008-08-26 Sebastian Pop <sebastian.pop@amd.com>
6191
6192 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
6193 SCOP_ENTRY or SCOP_EXIT.
6194
61952008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6196
6197 * graphite.c (get_construction_edge): Removed.
6198 (gloog): Construction edge is the scop entry edge.
6199
62002008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6201
6202 * graphite.c (can_generate_for_scop): Removed.
6203 (gloog): Do not call it.
6204
62052008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6206
6207 * graphite.c (new_scop): Entry of a scop is an edge.
6208 Initialize SESE region.
6209 (free_scop): Free SESE region.
6210 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
6211 (split_difficult_bb): New, split from end_scop.
6212 (end_scop): Exit of a scop is an edge.
6213 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
6214 not automatically updated and thus is always wrong.
6215 * graphite.h (struct sese): New.
6216 (SESE_ENTRY): New.
6217 (SESE_EXIT): New.
6218 (struct scop): New field for a SESE region. Remove entry, exit.
6219 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
6220 semantics as before. Moved comment around.
6221
62222008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6223 Sebastian Pop <sebastian.pop@amd.com>
6224
6225 * graphite.c (graphite_transform_loops): Always enable gloog
6226 and find_transform when ENABLE_CHECKING.
6227
62282008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6229
6230 * graphite.c (graphite_transform_loops): Move pretty printer
6231 of SCOPs before doing any transform. Remove call to print_scops
6232 and dot_all_scops_1.
6233
62342008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6235
6236 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
6237 (print_graphite_bb): Same.
6238
62392008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6240
6241 * graphite.c (dot_all_scops_1): Cleanup.
6242 (move_scops): Fix comment.
6243
62442008-08-25 Sebastian Pop <sebastian.pop@amd.com>
6245
6246 * graphite.c (build_scop_bbs): Revert commit 139355:
6247
6248 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6249 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6250
6251 * graphite.c (build_scop_bbs): Factor up code.
6252
62532008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6254
6255 * graphite.c (gloog): Update dominator info.
6256
62572008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
6258
6259 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
6260
62612008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6262
6263 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
6264 initialization.
6265 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
6266 (translate_clast): Correct formatting.
6267 * graphite.h (struct num_map): Removed.
6268 (struct graphite_bb): Remove num_map field.
6269 (GBB_INDEX_TO_NUM_MAP): Removed.
6270
62712008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6272
6273 * graphite.c (build_access_matrix_with_af): Fix comments.
6274 (build_scop_data_accesses): Same.
6275
62762008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6277
6278 * graphite.c (build_scop_data_accesses): Don't construct
6279 access matrices. Add a FIXME and an assert condition that
6280 should pass when the access matrices will be needed.
6281
62822008-08-24 Sebastian Pop <sebastian.pop@amd.com>
6283
6284 * tree-data-ref.c (stmt_simple_memref_p): Don't call
6285 really_constant_p.
6286 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
6287 Moved close by free_graphite_bb.
6288 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
6289 (new_scop): Move close by free_scop.
6290 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
6291
62922008-08-22 Jan Sjodin <jan.sjodin@amd.com>
6293
6294 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
6295 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
6296 instead of recursive call.
6297 (graphite_translate_clast_equation): New.
6298 (graphite_create_guard_cond_expr): New.
6299 (graphite_create_new_guard): New.
6300 (get_stack_index_from_iv): Removed.
6301 (graphite_rename_ivs_stmt): Use gbb_loop_index.
6302 (get_true_edge_from_guard_bb): New.
6303 (translate_clast): Handle stmt_guard in clast.
6304 (get_construction_edge): Allow construction edge detection for
6305 a scope entry with multiple predecessors if one predecessor is
6306 the immediate dominator of scope entry.
6307 (can_generate_code_stmt): Enable code generation for clast_guard.
6308 (gloog): Use correct context loop. Removed check for post dominators.
6309 * cfgloop.h (create_empty_if_region_on_edge): Declared.
6310
63112008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6312
6313 * graphite.c (remove_dead_loops): Document better which
6314 loops are removed.
6315
63162008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6317
6318 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
6319 and PPLINC.
6320 (graphite.o): Also depends on pointer-set.h.
6321
63222008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6323
6324 * graphite.c (scop_record_loop): Fix compile warning.
6325
63262008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
6327 Sebastian Pop <sebastian.pop@amd.com>
6328
6329 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
6330
63312008-08-21 Sebastian Pop <sebastian.pop@amd.com>
6332
6333 * graphite.c (build_graphite_bb): Initialize bb->aux to
6334 point to the graphite_bb_p.
6335 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
6336 content of bb->aux.
6337 (add_bb_domains): Does not use the scop parameter.
6338 (graphite_transform_loops): Clean bb->aux at the end.
6339
63402008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6341 Sebastian Pop <sebastian.pop@amd.com>
6342
6c9df8cb 6343 * lib/target-supports.exp
c6bb733d 6344 (check_effective_target_fgraphite): New.
6345
6c9df8cb 6346 * gcc.dg/graphite/graphite.exp: Early exit when
c6bb733d 6347 check_effective_target_fgraphite returns false.
6348 Set dg-do-what-default to compile.
6349 (scan-graphite-dump-times): Removed.
6c9df8cb 6350 * gfortran.dg/graphite/graphite.exp: Same.
c6bb733d 6351
6c9df8cb 6352 * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
c6bb733d 6353 Use scan-tree-dump-times instead of scan-graphite-dump-times.
6c9df8cb 6354 * gcc.dg/graphite/scop-1.c: Same.
6355 * gcc.dg/graphite/scop-2.c: Same.
6356 * gcc.dg/graphite/scop-3.c: Same.
6357 * gcc.dg/graphite/scop-4.c: Same.
6358 * gcc.dg/graphite/scop-5.c: Same.
6359 * gcc.dg/graphite/scop-6.c: Same.
6360 * gcc.dg/graphite/scop-7.c: Same.
6361 * gcc.dg/graphite/scop-8.c: Same.
6362 * gcc.dg/graphite/scop-9.c: Same.
6363 * gcc.dg/graphite/scop-10.c: Same.
6364 * gcc.dg/graphite/scop-11.c: Same.
6365 * gcc.dg/graphite/scop-12.c: Same.
6366 * gcc.dg/graphite/scop-13.c: Same.
6367 * gcc.dg/graphite/scop-matmult.c: Same.
6368 * gcc.dg/graphite/scop-14.c: Same.
6369 * gcc.dg/graphite/scop-15.c: Same.
6370 * gcc.dg/graphite/block-0.c: Same.
6371 * gcc.dg/graphite/scop-16.c: Same.
6372 * gcc.dg/graphite/block-1.c: Same.
6373 * gcc.dg/graphite/scop-17.c: Same.
6374 * gcc.dg/graphite/scop-18.c: Same.
6375 * gfortran.dg/graphite/block-1.f90: Same.
6376 * gfortran.dg/graphite/scop-1.f: Same.
6377 * gfortran.dg/graphite/block-2.f: Same.
c6bb733d 6378
63792008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6380
6381 * graphite.c: Fix some XXX comments.
6382 (build_scop_dynamic_schedules): Removed.
6383
63842008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6385
6386 * graphite.h (scop_max_loop_depth): Moved...
6387 * graphite.c (scop_max_loop_depth): ...here.
6388 (remove_all_edges_1): New.
6389 (remove_all_edges): Factored code.
6390 (remove_cond_exprs): Check only the last statement for
6391 a GIMPLE_COND expression.
6392
63932008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6394
6395 * graphite.c (scan_tree_for_params): Early return when the
6396 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
6397 (find_scop_parameters): Factor out code.
6398 (graphite_trans_bb_strip_mine): Remove dead code.
6399
64002008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6401
6402 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
6403 graphite_trans_bb_move_loop): Factor asserts.
6404 (gloog): Perform sanity checks only for ENABLE_CHECKING.
6405 Do not call calculate_dominance_info and estimate_bb_frequencies.
6406
64072008-08-20 Jan Sjodin <jan.sjodin@amd.com>
6408
6409 * graphite.c (create_loops_mapping, free_loops_mapping,
6410 create_loops_mapping_num, debug_loop_mapping_1,
6411 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
6412 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
6413 graphite_loops_mapping_add_child_num,
6414 graphite_loops_mapping_insert_child,
6415 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
6416 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
6417 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
6418 create_num_from_index, get_num_from_index,
6419 swap_loop_mapped_depth): Removed.
6420 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
6421 (free_scop): Do not call free_loops_mapping.
6422 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
6423 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
6424 get_loop_mapped_depth.
6425 (graphite_trans_bb_move_loop): Do not update the loop mapping.
6426 (graphite_trans_bb_strip_mine): Same.
6427 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
6428 (struct scop): Remove field loops_mapping.
6429
64302008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6431 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6432
6433 * graphite.c (scop_record_loop): Factor out one level of the
6434 condition by early return.
6435 (build_scop_loop_nests): Format following FSF coding style.
6436 (build_scop_dynamic_schedules): Factor out code.
6437 (scopdet_bb_info): Reindent. Default case should not be reachable.
6438
64392008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6440 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6441
6442 * graphite.c (loop_affine_expr): Check for DECL_P or struct
6443 assignments that are not handled as simple operands for now.
6444
64452008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6446 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6447
6448 * graphite.c (build_scop_bbs): Factor up code.
6449
64502008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6451 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6452
6453 * graphite.c (stmt_simple_for_scop_p): Factor code out
6454 of the loop.
6455 (enum gbb_type): New. Group all the GBB_* types under it.
6456 (is_loop_exit): Moved...
6457 (end_scop): Enable BB spliting.
6458 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
6459 * cfgloop.h (is_loop_exit): Declared.
6460
64612008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6462
6463 * doc/invoke.texi: Remove strides from examples containing
6464 DO loops when the strides are equal to 1.
6465
64662008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
6467 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6468
6469 * graphite.c (graphite_trans_scop_block): Or the result with
6470 the result from graphite_trans_loop_block.
6c9df8cb 6471 * gcc.dg/graphite/block-1.c: New.
6472 * gfortran.dg/graphite/block-1.f90: New.
6473 * gfortran.dg/graphite/block-2.f: New.
c6bb733d 6474
64752008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6476
6477 * graphite.c (graphite_transform_loops): Call cloog_initialize
6478 and cloog_finalize.
6479
64802008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6481
6482 * tree-data-ref.c) (stmt_simple_memref_p): New.
6483 * tree-data-ref.h (stmt_simple_memref_p): Declared.
6484 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
6485 (is_simple_operand): Call stmt_simple_memref_p.
6486
6c9df8cb 6487 * gcc.dg/graphite/scop-matmult.c: Updated for not
c6bb733d 6488 using pointer arithmetic, as this is optimized by PRE and
6489 makes the code too difficult to analyze.
6490
6c9df8cb 6491 * gcc.dg/graphite/scop-18.c: Same.
c6bb733d 6492
64932008-08-20 Sebastian Pop <sebastian.pop@amd.com>
6494
6495 * gdbinit.in (pgg): New.
6496
64972008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6498
6499 * graphite.c (graphite_trans_loop_block): Fix warning.
6500
65012008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6502
6503 * graphite.c (graphite_trans_loop_block): Fix my merge error.
6504
65052008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
6506
6507 * graphite.c (graphite_trans_bb_block): Remove check for
6508 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
6509 Check if loop blocking is profitable for every loop, before applying
6510 the changes.
6511 (graphite_apply_transformations): Call graphite_trans_bb_block only,
6512 if flag_loop_block is set.
6513
65142008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6515
6516 * graphite.c: Add some more documentation for the loop
6517 mapping.
6518
65192008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6520
6521 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
6522 * graphite.c: Format on less than 80 columns.
6523 * graphite.h: Same.
6524
65252008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6526
6527 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
6528
65292008-08-14 Sebastian Pop <sebastian.pop@amd.com>
6530
6531 * doc/invoke.texi (floop-block, floop-strip-mine,
6532 floop-interchange): Update documentation with examples.
6533
65342008-08-13 Sebastian Pop <sebastian.pop@amd.com>
6535
6536 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
6537 add_referenced_var.
6538 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
6539
65402008-08-13 Sebastian Pop <sebastian.pop@amd.com>
6541
6542 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
6543 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
6544 * tree-scalar-evolution.c: Revert useless changes.
6545 * tree-phinodes.c: Same.
6546 * cfghooks.c: Same.
6547 * vec.h: Same.
6548 * tree-vectorizer.h: Same.
6549 * tree-flow.h: Same.
6550 * tree-cfg.c: Same.
6551 * common.opt (fgraphite): Update documentation.
6552
65532008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
6554
6555 * doc/invoke.texi (-floop-block, -floop-strip-mine,
6556 -floop-interchange): Add more text for explaining what each of these
6557 flags is doing.
6558 * tree-into-ssa.c (gimple_vec): Moved to...
6559 * graphite.c: Include gimple.h.
6560 (gimple_vec): Moved to...
6561 (del_loop_to_cloog_loop): Removed.
6562 (loop_affine_expr): Do not call create_data_ref when the
6563 operand is a constant.
6564 (new_scop): Use free instead of del_loop_to_cloog_loop.
6565 * Makefile.in (graphite.o): Depend on GIMPLE_H.
6566 * gimple.h (gimple_vec): ... here.
6567
65682008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6569
6570 * graphite.c (scopdet_bb_info): Only allow loops with known number of
6571 latch executions.
6572 (build_loop_iteration_domains): Fail, if latch executions unknown.
6573
65742008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6575
6576 * graphite.c (add_conditions_to_domain): New.
6577 (build_scop_conditions_1): Call add_conditions_to_domain.
6578 (set_cloog_options): Allow to disable optimizations.
6579
65802008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6581
6582 * graphite.c (find_params_in_bb): Look for parameters in conditions.
6583 Do not use walk_dominator_tree.
6584 (find_scop_parameters): Do not use walk_dominator_tree.
6585
65862008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6587
6588 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
6589 (idx_record_params): Adapt.
6590 * graphite.h (scop_gimple_loop_depth): New.
6591
65922008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6593
6594 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
6595 (scan_tree_for_params): Remove value_init.
6596 (build_scop_context): Remove value_init.
6597 (build_loop_iteration_domains): Remove value_init.
6598 (schedule_to_scattering): Remove value_init.
6599 (graphite_trans_bb_strip_mine): Remove value_init.
6600
66012008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6602
6603 * gcc/graphite.c (limit_scops): New.
6604 (graphite_transform_loops): Add limit SCoPs.
6c9df8cb 6605 * gcc.dg/graphite/scop-0.c: Update number of SCoPs.
6606 * gcc.dg/graphite/scop-1.c: Update number of SCoPs.
6607 * gcc.dg/graphite/scop-10.c: Update number of SCoPs.
6608 * gcc.dg/graphite/scop-11.c: Update number of SCoPs.
6609 * gcc.dg/graphite/scop-12.c: Update number of SCoPs.
6610 * gcc.dg/graphite/scop-13.c: Update number of SCoPs.
6611 * gcc.dg/graphite/scop-14.c: Update number of SCoPs.
6612 * gcc.dg/graphite/scop-15.c: Update number of SCoPs.
6613 * gcc.dg/graphite/scop-16.c: Update number of SCoPs.
c6bb733d 6614 Change loop numbers.
6c9df8cb 6615 * gcc.dg/graphite/scop-17.c: Update number of SCoPs.
c6bb733d 6616 Change loop numbers.
6c9df8cb 6617 * gcc.dg/graphite/scop-18.c: Update number of SCoPs.
6618 * gcc.dg/graphite/scop-2.c: Update number of SCoPs.
6619 * gcc.dg/graphite/scop-3.c: Update number of SCoPs.
6620 * gcc.dg/graphite/scop-4.c: Update number of SCoPs.
6621 * gcc.dg/graphite/scop-5.c: Update number of SCoPs.
6622 * gcc.dg/graphite/scop-6.c: Update number of SCoPs.
6623 * gcc.dg/graphite/scop-7.c: Update number of SCoPs.
6624 * gcc.dg/graphite/scop-8.c: Update number of SCoPs.
6625 * gcc.dg/graphite/scop-9.c: Update number of SCoPs.
6626 * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
c6bb733d 6627
66282008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6629
6630 * graphite.c (graphite_transform_loops): Call always find_transform.
6631
66322008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
6633
6634 * graphite.c (free_loops_mapping): New.
6635 (stmt_simple_for_scop_p): Fix typo.
6636 (stmt_simple_for_scop_p): Fix tuples functions, that
6637 broke polyhedron.
6638 (free_graphite_bb): Fix some memleaks.
6639 (free_scop): Fix some memleaks.
6640 (scopdet_bb_info): Do not forget some tmp SCoPs.
6641 (find_params_in_bb): Fix some memleaks.
6642 (clast_to_gcc_expression): Fix warning.
6643
66442008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
6645
6c9df8cb 6646 * gcc.dg/graphite/scop-16.c: Fix for 32bit.
6647 * gcc.dg/graphite/scop-17.c: Fix for 32bit.
c6bb733d 6648
66492008-08-04 Sebastian Pop <sebastian.pop@amd.com>
6650
6651 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
6652 Move code ifdef-ed HAVE_cloog...
6653 * graphite.c: Include toplev.h.
6654 ... here.
6655 * Makefile.in (OBJS-common): Always build graphite.o.
6656 (BACKEND): Remove @GRAPHITE@.
6657 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
6658 (graphite.o): Depend on TOPLEV_H.
6659
66602008-08-04 Sebastian Pop <sebastian.pop@amd.com>
6661
6662 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
6663 Remove typo left from polylib to ppl conversion.
6664 * graphite.c (graphite_transforms): Use sorry instead of fatal.
6665
66662008-08-03 Sebastian Pop <sebastian.pop@amd.com>
6667
6668 * toplev.c (process_options): Move the graphite loop optimization
6669 flags...
6670 * tree-ssa-loop.c (graphite_transforms): ... here.
6671 When not configured with CLooG, print to dump_file that
6672 Graphite transforms were not performed.
6c9df8cb 6673 * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
c6bb733d 6674 New.
6c9df8cb 6675 * gcc.dg/graphite/*.c: Updated all testcases to use
c6bb733d 6676 scan-graphite-dump-times.
6677
66782008-08-03 Sebastian Pop <sebastian.pop@amd.com>
6679
6680 * graphite.c (dot_scop, dot_all_scops): Do not call system.
6681 Do not open /tmp/scop.dot and /tmp/allscops.dot.
6682
66832008-08-02 Sebastian Pop <sebastian.pop@amd.com>
6684 Jan Sjodin <jan.sjodin@amd.com>
6685
6686 * configure: Regenerated.
6687 * omp-low.c (expand_omp_sections): Remove now unused code.
6688 * config.in (HAVE_polylib): Removed.
6689 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
6690 (PPLLIBS, PPLINC): Added.
6691 * graphite.c: Replace unsigned with int wherever possible.
6692 Don't access Cloog's data structures, but use accessor functions.
6693 Clast's stmt->type is now implemented as a vtable: change the
6694 switches of stmt->type into ifs.
6695 (polylib/polylibgmp.h): Don't include.
6696 (initialize_dependence_polyhedron,
6697 initialize_data_dependence_polyhedron, is_empty_polyhedron,
6698 statement_precedes_p, test_dependence, build_rdg_all_levels,
6699 dump_dependence_graph): Removed until this code is cleaned up
6700 or ported to Cloog.
6701 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
6702 (POLYLIBINC): Renamed PPLINC.
6703
67042008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
6705 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6706 Jan Sjodin <jan.sjodin@amd.com>
6707
6708 Finish the merge and tuplification of graphite.
6709
67102008-07-24 Sebastian Pop <sebastian.pop@amd.com>
6711 Jan Sjodin <jan.sjodin@amd.com>
6712
6713 Partial merge from mainline (138072:138275).
6714 * graphite.c still has to be tuplified.
6715
67162008-07-29 Jan Sjodin <jan.sjodin@amd.com>
6717
6718 * graphite.c (graphite_loops_mapping_max_loop_num): New.
6719 (create_num_from_index): New.
6720 (get_num_from_index): Also pass in the graphite BB.
6721 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
6722 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
6723 (graphite_trans_bb_strip_mine): Call create_num_from_index.
6724 (is_interchange_valid): Return false when failing.
6725 * graphite.h (struct num_map): New.
6726 (struct graphite_bb): New field num_map.
6727 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
6728
67292008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
6730
6731 * graphite.c (dump_gbb_conditions): Print also conditions like
6732 "if (a)". Remove dublicated code and use print_generic_expr ().
6733 (stmt_simple_for_scop_p): Only allow conditions we can handle
6734 {<, <=, >, >=}.
6735
67362008-07-25 Jan Sjodin <jan.sjodin@amd.com>
6737
6738 * graphite.h (struct scop): Removed new_ivs field.
6739 (SCOP_NEWIVS): Deleted.
6740 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
6741 clast_to_gcc_expression, graphite_create_new_loop):
6742 Removed use of new_ivs.
6743
67442008-07-25 Jan Sjodin <jan.sjodin@amd.com>
6745
6746 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
6747 create_loops_mapping_num, debug_loop_mapping_1): New.
6748 (debug_loop_mapping): Call debug_loop_mapping_1.
6749 (get_loop_mapping_for_num,
6750 graphite_loops_mapping_add_child,
6751 graphite_loops_mapping_add_child_num,
6752 graphite_loops_mapping_insert_child,
6753 graphite_loops_mapping_parent,
6754 split_loop_mapped_depth_for_num,
6755 loop_mapped_depth_split_loop): New.
6756 (increment_loop_mapped_depths): Removed.
6757 (swap_loop_mapped_depth_for_num): Reimplemented.
6758 (new_scop): Call create_loops_mapping.
6759 (scop_record_loop): Call graphite_loops_mapping_insert_child.
6760 (translate_clast): Pass the old loop father in parameter, and pass
6761 it to get_old_iv_from_ssa_name.
6762 (remove_edges_around_useless_blocks, can_generate_code_stmt,
6763 can_generate_code, can_generate_for_scop): New.
6764 (graphite_trans_bb_block): Returns false when it fails to transform.
6765 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
6766
67672008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6768
6769 Reverted all the changes related to the streamization and
6770 loop fusion.
6771 These changes are now tracked in the streamization branch.
6772
67732008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6774 Jan Sjodin <jan.sjodin@amd.com>
6775
6776 * graphite.c (gbb_compare): Correctly constify.
6777 (gbb_can_be_ignored): Indent.
6778 (graphite_trans_scop_swap_1and2): Add legality check.
6779 Remove dead FIXMEs.
6780
67812008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6782
6783 Remove fallouts from "Reverted the Condate changes".
6784 * tree.h: Remove unused decl.
6c9df8cb 6785 * gcc.dg/tree-checker: Same.
c6bb733d 6786 * timevar.def: Remove counter.
6787
67882008-07-24 Sebastian Pop <sebastian.pop@amd.com>
6789
6790 * Merge from mainline (135673:138072).
6791
6792 Reverted the MIRO changes (from 2008-04-05) that are now
6793 tracked in the miro branch.
6794 * tree-bounds.c: Removed.
6795 * tree-bounds.h: Removed.
6796
6797 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
6798 are now tracked in the condate branch.
6799 * tree-check.c: Removed.
6800 * tree-match.c: Removed.
6801 * condate.y: Removed.
6802
68032008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6804
6805 * common.opt: New user flag -floop-block, -floop-strip-mine
6806 and -floop-interchange.
6807 * toplev.c (process_options): Enable -fgraphite pass if any one of the
6808 graphite loop optimization flags is turned on.
6809 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
6810 flag_loop_strip_mine and flag_loop_interchange checks before
6811 optimizations.
6812 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
6813 -floop-strip-mine and -floop-interchange.
6c9df8cb 6814 * gcc.dg/graphite/block-0.c: Add -floop-block and remove
c6bb733d 6815 -fgraphite.
6c9df8cb 6816 * gcc.dg/graphite/scop-16.c: Ditto.
6817 * gcc.dg/graphite/scop-17.c: Ditto.
6818 * gcc.dg/graphite/scop-18.c: Ditto.
c6bb733d 6819
68202008-07-23 Jan Sjodin <jan.sjodin@amd.com>
6821 Sebastian Pop <sebastian.pop@amd.com>
6822
6823 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
6824 (create_empty_loop_on_edge): More fixes.
6825 * tree-phinodes.c (resize_phi_node): Extern.
6826 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
6827 * cfghooks.c (update_dominator_information): New split from
6828 split_edge.
6829 * tree-vectorizer.c (rename_variables_in_bb): Extern.
6830 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
6831 successor of the function entry block.
6832
6833 * graphite.c: Include pointer-set.h.
6834 (debug_loop_mapping, increment_loop_mapped_depths,
6835 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
6836 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
6837 swap_loop_mapped_depth_for_num, get_num_from_index,
6838 swap_loop_mapped_depth, loop_iv_stack_debug,
6839 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
6840 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
6841 get_old_iv_from_ssa_name): New.
6842 (new_scop): Initialize SCOP_LOOPS_MAPPING.
6843 (free_scop): Free SCOP_LOOPS_MAPPING.
6844 (scop_record_loop): Record old ivs.
6845 (create_var_name): Removed.
6846 (initialize_cloog_names): Allocate double space in case strip mine
6847 applies to all loops once.
6848 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
6849 (clast_to_gcc_expression): Same. Implement more clast to gimple
6850 translation.
6851 (graphite_create_new_loop): Pass in ivstack.
6852 (remove_all_edges): Pass in the construction_edge.
6853 (graphite_remove_iv): Removed.
6854 (graphite_rename_ivs, graphite_rename_ivs_stmt,
6855 remove_cond_exprs): Rewritten.
6856 (move_phi_nodes): New.
6857 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
6858 (translate_clast): Pass in ivstack. Rewrite some cases.
6859 (set_cloog_options, debug_clast_stmt): New.
6860 (find_transform): Use set_cloog_options.
6861 (outermost_loop_layer): Removed.
6862 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
6863 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
6864 mark_old_loops, remove_dead_loops): New.
6865 (gloog): Rewritten.
6866 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
6867 (const_column_index, get_first_matching_sign_row_index,
6868 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
6869 get_upper_bound): New.
6870 (graphite_trans_bb_strip_mine): Also update the iv map.
6871
6872 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
6873 (struct name_tree): Add a loop field.
6874 (struct scop): Add a graphite_loops_mapping field.
6875 (SCOP_LOOPS_MAPPING): New.
6876 (debug_clast_stmt): Declare.
6877 * lambda.h (find_induction_var_from_exit_cond): Declare.
6878 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
6879 * cfgloop.h (update_dominators_in_loop): Removed declaration.
6880 (create_empty_loop_on_edge): Updated.
6881 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
6882 rename_variables_in_bb): Declare.
6883 * tree-cfg.c (remove_bb): Extern.
6884
6c9df8cb 6885 * gcc.dg/graphite/block-0.c: New.
c6bb733d 6886
68872008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6888 Sebastian Pop <sebastian.pop@amd.com>
6889
6890 * graphite.c (strip_mine_profitable_p): New.
6891 (graphite_trans_bb_block): Disable strip mining if not profitable.
6892
6c9df8cb 6893 * gcc.dg/graphite/scop-18.c: New.
6894 * gcc.dg/graphite/scop-17.c: Fixed.
6895 * gcc.dg/graphite/scop-16.c: Fixed.
c6bb733d 6896
68972008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
6898 Jan Sjodin <jan.sjodin@amd.com>
6899 Sebastian Pop <sebastian.pop@amd.com>
6900
6901 * graphite.c (is_interchange_valid): New.
6902 (graphite_trans_bb_block): Check loop nest of basic block for legality
6903 of interchange.
6904
6905 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
6906 outer_most_loop, gbb_outer_most_loop_index): New.
6907
6908 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
6909 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
6c9df8cb 6910 * gcc.dg/graphite/scop-16.c: New.
6911 * gcc.dg/graphite/scop-17.c: New.
c6bb733d 6912
69132008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
6914
6915 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
6916 (graphite_trans_scop_block): Ignore SCoPs without bbs.
6917
69182008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
6919
6920 * graphite.c (new_scop): Initialize SCOP_EXIT.
6921 (scopdet_info): Add.
6922 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
6923 (build_scops_1): Cleanup, bugfixes.
6924 (build_scops): Cleanup.
6925
6c9df8cb 6926 * gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
6927 * gcc.dg/graphite/scop-15.c: Add SCoP numbers.
c6bb733d 6928
69292008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
6930
6c9df8cb 6931 * gfortran.dg/graphite/scop-1.f: Update to reduced test case.
c6bb733d 6932
6c9df8cb 6933 * gfortran.dg/graphite/graphite.exp: Use
c6bb733d 6934 DEFAULT_GRAPHITE_FLAGS.
6935
6c9df8cb 6936 * gcc.dg/graphite/scop-15.c: Update to reduced test case.
c6bb733d 6937
69382008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
6939
6940 * graphite.c (scan_tree_for_params): Do not assert any more if
6941 MULT_EXPR parameter is negative.
6942
6c9df8cb 6943 * gfortran.dg/graphite/scop-1.f: New.
c6bb733d 6944
6c9df8cb 6945 * gfortran.dg/graphite/graphite.exp: New.
c6bb733d 6946
6c9df8cb 6947 * gcc.dg/graphite/scop-15.c: New.
c6bb733d 6948
69492008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
6950
6951 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
6952
69532008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
6954
6955 * graphite.c (graphite_trans_bb_swap_loops): Rename from
6956 graphite_swap_loops.
6957 (graphite_trans_bb_move_loop): New.
6958 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
6959 (graphite_trans_bb_block): New.
6960 (graphite_trans_loop_block): New.
6961 (graphite_trans_scop_swap_1and2): Rename from
6962 graphite_trans_swap_1and2.
6963 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
6964 (graphite_trans_scop_block): New.
6965 (graphite_apply_transformations): Rename from
6966 graphite_transformations.
6967
6c9df8cb 6968 * gcc.dg/graphite/scop-matmult.c: New.
c6bb733d 6969
69702008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
6971
6972 * graphite.c (gbb_compare): New.
6973 (graphite_sort_gbbs): New.
6974 (gbb_can_be_ignored): New.
6975 (scop_remove_ignoreable_gbbs): New.
6976 (graphite_transformations): Cleanup and add
6977 scop_remove_ignoreable_gbbs.
6978 * lambda.h (lambda_vector_compare): New.
6979
69802008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
6981
6982 * graphite.c (print_graphite_bb): Correct printing of static schedule.
6983 (graphite_swap_loops): int -> unsigned
6984 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
6985 (graphite_transformations): New.
6986 (graphite_transform_loops): Move to graphite_transformations.
6987 * graphite.h (gbb_nb_loops): Return unsigned.
6988
69892008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
6990
6991 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
6992 the domain matrix. This makes scop-0.c work again.
6993
69942008-06-20 Richard Guenther <rguenther@suse.de>
6995
6996 * graphite.h: Adjust copyright to GPLv3.
6997 * graphite.c: Likewise.
6998 (stmt_simple_memref_for_scop_p): Split out from ...
6999 (stmt_simple_for_scop_p): ... here. Fix handling of calls
7000 and simplify.
7001 (get_bb_type): Optimize.
7002 (is_pred): Remove.
7003 (is_bb_addable): Fix memleak, replace is_pred call with
7004 single_pred.
7005 (build_scops): Use current_loops.
7006 (param_index): Fix memleak.
7007
70082008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7009
7010 * graphite.c: Fix formatting.
7011
70122008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7013
7014 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
7015 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
7016 (create_var_name, save_var_name): Newly defined functions.
7017 (initialize_cloog_names): Part of the code factored out to
7018 save_var_name.
7019 (clast_to_gcc_expression): Now handles the case of clast_red_sum
7020 in clast_reduction statement.
7021 (graphite_create_new_loop): Now takes a new parameter
7022 for outer_loop.
7023 (translate_clast): Now also takes the context_loop and bb_exit
7024 parameters. Rewritten the code so that it creates a gimple code
7025 inside the given context.
7026 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
7027 remove_cond_expr, disconnect_cond_expr,
7028 disconnect_virtual_phi_nodes): Newly defined functions.
7029 * graphite.h (struct scop): added old_ivs vector.
7030 SCOP_OLDIVS: New macro.
7031
70322008-06-19 Sebastian Pop <sebastian.pop@amd.com>
7033
7034 * cfgloopmanip.c: Add missing function comments, fix formatting.
7035
70362008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7037
7038 * cfgloopmanip.c (update_dominators_in_loop): Defined.
7039 (create_empty_loop_on_edge): Defined.
7040 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
7041 instead of void.
7042 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
7043 (update_dominators_in_loop): Declared as extern
7044 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
7045
70462008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
7047
7048 * graphite.c (print_graphite_bb): Allow changing number of loops
7049 in SCoP domain.
7050 (initialize_cloog_names): Allow changing number of loops.
7051 (build_cloog_prog): Simplify.
7052 (find_transform): Enable cloog option --strides.
7053 (graphite_swap_loops): New.
7054 (graphite_strip_mine_loop): New.
7055 (graphite_trans_swap_1and2): New.
7056 (graphite_trans_strip): New.
7057 (graphite_transform_loops): Add graphite_trans_strip.
7058 * graphite.h (scop_max_loop_depth): New.
7059
70602008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7061
7062 * graphite.c (build_scop_iteration_domain): Remove forgotten
7063 line. (Fixes compile)
7064
70652008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
7066
7067 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
7068 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
7069 (build_bb_loops): New.
7070 (graphite_transform_loops): Add build_bb_loops.
7071 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
7072 numbers.
7073 * graphite.h (graphite_bb): Add loops.
7074 (gbb_nb_loops): New.
7075 (gbb_loop_at_index): New.
7076 (gbb_loop_index): New.
7077 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
7078 using nb_params_in_scop.
7079
70802008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7081
7082 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
7083 (build_scop_canonical_schedules): Build minimized schedule.
7084 (schedule_to_scattering): Adapt to minimized schedule.
7085 * graphite.h (graphite_bb): Add/Update descriptions.
7086
70872008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
7088 Tobias Grosser <grosser@fim.uni-passau.de>
7089
7090 * graphite.c (print_graphite_bb): Add condition printing.
7091 (dump_value): New.
7092 (dump_gbb_conditions): New.
7093 (build_scop_conditions_1): New.
7094 (build_scop_conditions): New.
7095 * graphite.h (graphite_bb): Add conditions.
7096
70972008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
7098
7099 * graphite.c (print_graphite_bb):
7100 (free_graphite_bb): New.
7101 (free_scop): Free bbs.
7102 (get_bb_type): Free doms.
7103 (build_scop_context): Free context matrix.
7104 (build_loop_iteration_domains): Remove unused code.
7105 (build_cloog_prog): Free scattering function and blocklist.
7106 (find_transform): Free options.
7107
71082008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
7109
7110 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
7111 Remove unnecessery cloog data structures. Make a copy of the domain
7112 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
7113 unnecessary cloog data structures. Fix memory leaks. Remove insert
7114 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
7115 used.
7116 (build_scop_iteration_domain): Remove unnecessary cloog
7117 data structures. Fix memory leaks.
7118 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
7119 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
7120
71212008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7122
7123 * graphite.c (find_scop_params): Remove initialize_cloog_names.
7124
71252008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7126
7127 * graphite.c (end_scop): Style fix.
7128 (schedule_to_scattering): Style and comment fix.
7129
71302008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7131 * graphite.c (print_graphite_bb): Fix definiton of
7132 schedule_to_scattering.
7133 (initialize_cloog_names): Change nb_scattdims to max loop
7134 depth in SCoP.
7135 (schedule_to_scattering): Take parameter for number of scattering
7136 dimensions.
7137 (build_cloog_prog): Only build as much scattering dimensions as
7138 necessary.
7139
71402008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
7141
7142 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
7143 in polyhedron/aermod.f90.
7144
71452008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
7146 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7147 Harsha Jagasia <harsha.jagasia@amd.com>
7148
7149 * graphite.c (is_bb_addable): Fix segfault.
7150
71512008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
7152
7153 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
7154 with multiple exits and conditional handling in edge cases.
7155 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
7156
6c9df8cb 7157 * gcc.dg/graphite/scop-14.c: New.
c6bb733d 7158
71592008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
7160 Adrien Eliche <aeliche@isty.uvsq.fr>
7161
7162 * graphite.c (is_bb_addable): Add more comments and enhance
7163 readablity of the source code. Fix memory leak.
7164 (is_loop_exit): Fix memory leak.
7165
71662008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7167
7168 * graphite.c (first_loop_in_scop): Deleted.
7169 (setup_cloog_loop): Only walk the loop chain for inner loops.
7170 (build_scop_iteration_domain): Execute setup_cloog_loop for
7171 all loops in the first layer.
7172
71732008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
7174
7175 * graphite.c (scan_tree_for_params): Change the way params are
7176 added to be indepenent of the number of loops.
7177 (setup_cloog_loop): Revert to short matrix format. Fix parameter
7178 handling.
7179 (build_cloog_prog): Revert to short matrix format.
7180
71812008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7182 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
7183
7184 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
7185 warning.
7186
71872008-06-05 Sebastian Pop <sebastian.pop@amd.com>
7188
7189 * graphite.c (nb_data_refs_in_scop): New.
7190 (graphite_transform_loops): Print more stats: number of
7191 loops, basic blocks and data references per scop.
7192
71932008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7194 Jan Sjodin <jan.sjodin@amd.com>
7195
7196 * graphite.c (loop_affine_expr, idx_record_params,
7197 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
7198 instead of instantiate_parameters.
7199
72002008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7201
7202 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
7203 add support for parameters, add STATIC_SCHEDULE at the right places,
7204 cleanup.
7205
72062008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7207
7208 * graphite.c (build_scop_loop_nests): Only add the loops, that
7209 are contained completely in the SCoP.
7210 (build_cloog_prog): Disable scattering, until schedule_to_scattering
7211 and the domains are fixed.
7212 (build_scop_canonical_schedules): Add support for bbs not contained
7213 in any SCoP.
7214
72152008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
7216
7217 * graphite.h (scop_contains_loop): Update comments to match
7218 the actual behavior.
7219 (scop_contains_loop): New.
7220 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
7221
72222008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7223
7224 * graphite.c (get_bb_type): On function body, i.e. loop_0,
7225 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
7226 as GBB_COND_HEADER.
7227
72282008-06-04 Sebastian Pop <sebastian.pop@amd.com>
7229 Tobias Grosser <grosser@fim.uni-passau.de>
7230
7231 * graphite.c (graphite_transform_loops): Early return when
7232 there are no loops in the function.
7233
72342008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7235 Jan Sjodin <jan.sjodin@amd.com>
7236
7237 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
7238 offset of the last loop.
7239 (setup_cloog_loop): Copy the entire outer constraint matrix.
7240
72412008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7242 Jan Sjodin <jan.sjodin@amd.com>
7243
7244 * graphite.c (stmt_in_scop_p, function_parameter_p,
7245 invariant_in_scop_p): Removed.
7246 (scan_tree_for_params): Can be used with no constraint
7247 matrix for gathering parameters.
7248 (idx_record_params): Don't use idx_record_param, instead use
7249 scan_tree_for_params.
7250 (find_scop_parameters): Same.
7251 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
7252 Fix the size of loop domains.
7253 (schedule_to_scattering): Exit when the outer loop is not in scop.
7254 (find_transform): Enable build_cloog_prog.
7255
72562008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7257 Jan Sjodin <jan.sjodin@amd.com>
7258
7259 * graphite.c (schedule_to_scattering): Make scattering domains
7260 uniformly of the same size, as required by CLooG 0.14.0 and before.
7261
72622008-05-31 Sebastian Pop <sebastian.pop@amd.com>
7263 Jan Sjodin <jan.sjodin@amd.com>
7264
7265 * graphite.c (schedule_to_scattering): Rewrite, correct the
7266 translation of the scheduling function to scattering.
7267 (build_cloog_prog): Call schedule_to_scattering only once.
7268 * graphite.h (scop_loop_index): Do not fail for loops not
7269 in the scop: return -1.
7270
72712008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
7272
7273 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
7274 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
7275 (setup_cloog_loop): Export GBB_DOMAIN.
7276 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
7277 able to rebuild the original control flow.
7278 * graphite.h (graphite_bb): Add domain field and access macro.
7279 (GBB_DOMAIN): New.
7280
72812008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7282
7283 * graphite.c (debug_gbb): New.
7284 (print_scop, build_graphite_bb): Use SCOP_BBS.
7285 (build_scop_bbs): Reimplemented.
7286 (dfs_bb_in_scop_p): Removed.
7287 (build_scop_loop_nests): Reorder loops inserted in
7288 SCOP_LOOP_NEST: outer loops should come first.
7289 (build_scop_canonical_schedules): Reinitialize at zero
7290 the components of the SCOP_STATIC_SCHEDULE for the loops
7291 that have already been parsed.
7292
7293 * graphite.h (debug_gbb): Declared.
7294
72952008-05-30 Sebastian Pop <sebastian.pop@amd.com>
7296 Jan Sjodin <jan.sjodin@amd.com>
7297
7298 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
7299 (graphite_loop_to_gcc_loop): Removed.
7300 (remove_all_edges): New.
7301 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
7302 (gloog): Remove useless code.
7303
73042008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7305
7306 * graphite.c (get_bb_type): Reworked. We distinguish between
7307 loops with one or multiple exits.
7308 (is_loop_exit): New.
7309 (is_pred): New.
7310 (is_bb_addable): Rework condition handling, now support for case
7311 case statements and loops with multiple exits.
7312
6c9df8cb 7313 * gcc.dg/graphite/scop-11.c: New.
7314 * gcc.dg/graphite/scop-12.c: New.
7315 * gcc.dg/graphite/scop-13.c: New.
c6bb733d 7316
73172008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
7318
7319 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
7320 we have too many colors.
7321
73222008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
7323
7324 * doc/invoke.texi (-ftree-loop-fusion): Document.
7325 * tree-pass.h (pass_loop_fusion): Declared.
7326 * tree-loop-fusion.c: New.
7327 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
7328 * tree-data-ref.c (find_data_references_in_loop): Make extern.
7329 * tree-data-ref.h (find_data_references_in_loop): Declared.
7330 * common.opt (ftree-loop-fusion): Declared.
7331 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
7332
73332008-05-21 Sebastian Pop <sebastian.pop@amd.com>
7334
7335 * graphite.c (build_access_matrix): Fix typo from the merge.
7336
73372008-05-20 Sebastian Pop <sebastian.pop@amd.com>
7338
7339 * Merge from mainline (130800:135673).
7340
73412008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7342
7343 * graphite.c (end_scop): The exit of the scop is not part of the scop.
7344 Update dominators after splitting.
7345
73462008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7347
7348 * graphite.c (is_bb_addable): Return the harmful statement.
7349 Factor up some code.
7350 (end_scop): New. Splits end of scope bbs on a harmful statement.
7351 (build_scops_1): Call end_scop.
7352
73532008-05-07 Sebastian Pop <sebastian.pop@amd.com>
7354
7355 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
7356 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
7357 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
7358 build_scops_1): Removed.
7359 (build_scops_2): Renamed build_scops_1.
7360
73612008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7362
7363 * graphite.c: Fix formatting.
7364
73652008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7366
7367 * graphite.c (get_bb_type): New.
7368 (move_scops): New.
7369 (build_scops_2): New.
7370 (is_bb_addable): New.
7371 (build_scops): Switch the scop detection.
7372 (build_scop_bbs): Add entry bb to scop.
7373 * graphite.h (struct scop): Update comment.
7374
73752008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7376
7377 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
7378 more colors.
7379
73802008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7381
6c9df8cb 7382 * gcc.dg/graphite/scop-1.c: Update.
7383 * gcc.dg/graphite/scop-2.c: Update.
7384 * gcc.dg/graphite/scop-4.c: Update.
7385 * gcc.dg/graphite/scop-5.c: Add.
7386 * gcc.dg/graphite/scop-6.c: Add.
c6bb733d 7387
73882008-05-06 Sebastian Pop <sebastian.pop@amd.com>
7389
6c9df8cb 7390 * gcc.dg/graphite/scop-0.c: Add.
7391 * gcc.dg/graphite/scop-7.c: Add.
7392 * gcc.dg/graphite/scop-8.c: Add.
7393 * gcc.dg/graphite/scop-9.c: Add.
7394 * gcc.dg/graphite/scop-10.c: Add.
c6bb733d 7395
73962008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
7397
7398 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
7399 Check affine expressions depending on the outermost loop
7400 instead of a scop.
7401 (stmt_simple_for_scop_p): Same.
7402 (harmfule_stmt_in_scop): Same.
7403
74042008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
7405
7406 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
7407 mark entry and exit, that are not part of the SCoP and update HTML
7408 formatting.
7409
74102008-04-25 Sebastian Pop <sebastian.pop@amd.com>
7411
7412 * graphite.c (basic_block_simple_for_scop_p): Renamed
7413 harmful_stmt_in_bb.
7414 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
7415 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
7416 (all_preds_visited_p, all_succs_visited_p,
7417 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
7418 scop_end_loop): New.
7419 (build_scops): Do not use dfs_enumerate_from.
7420
6c9df8cb 7421 * gcc.dg/graphite/scop-{1,2,4}.c: Updated.
c6bb733d 7422
74232008-04-23 Sebastian Pop <sebastian.pop@amd.com>
7424
7425 * graphite.c: Add comments to functions that are missing a
7426 description.
7427 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
7428
74292008-04-23 Sebastian Pop <sebastian.pop@amd.com>
7430
7431 * graphite.c (nb_params_in_scop): Moved...
7432 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
7433 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
7434 (clast_to_gcc_expression): Reduce column size to less than 80.
7435 (graphite_create_iv): Return the new name of the IV.
7436 (find_transform): Set options->esp and options->cpp.
7437 (gloog): Comment out the invalidation of the old loop code.
7438 (initialize_dependence_polyhedron): Replace scop_nb_params with
7439 nb_params_in_scop.
7440
7441 * graphite.h (nb_params_in_scop): ... here.
7442 (scop_nb_params): Removed.
7443 (loop_domain_dim): Return something even when the loop was not
7444 found in the hash table: avoid ICEing on all the graphite.exp
7445 testcases.
7446
74472008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7448
7449 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
7450
7451 * graphite.c (build_scop_dynamic_schedules): Schedule is built
7452 according to nesting level.
7453 (find_scop_parameters): Call instantiate_parameters.
7454 (scan_tree_for_params): Extend it to handle general affine bounds.
7455 Inner loop bound can depend on outer loop induction variable.
7456 (setup_cloog_loop): tmp variable is allocated on stack. Call
7457 instantiate_parameters with respect to outermost_loop_in_scop.
7458 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
7459 graphite.h.
7460 (create_empty_loop): Function loopify should be given edge
7461 probability, instead of edge frequency. Dominance relation from
7462 switch_bb to loop_header.
7463 (clast_to_gcc_expression): Added handling of clast_reduction node.
7464 (gloog): New functionality for removing old loop.
7465 (test_dependence): Factored out from build_rdg_all_levels.
7466 (build_rdg_all_levels): Dependence testing factored out to
7467 test_dependence function.
7468
7469 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
7470 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
7471 from graphite.c
7472
74732008-04-07 Sebastian Pop <sebastian.pop@amd.com>
7474
7475 * graphite.c (free_scop, param_index, initialize_cloog_names,
7476 nb_params_in_scop): Use name_tree map instead of just a tree
7477 for keeping track of the variable name associated to that tree.
7478 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
7479 clast_to_gcc_expression, graphite_create_iv,
7480 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
7481 graphite_stmt_to_gcc_stmt): New.
7482 (gloog): Call these.
7483 * graphite.h (struct name_tree): New.
7484 (struct scop): Use name_tree instead of tree for params.
7485 Store a vector of name_tree for new_ivs.
7486 (SCOP_NEWIVS): New.
7487 (scop_nb_params): Use name_tree instead of tree.
7488
74892008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
7490 Sebastian Pop <sebastian.pop@amd.com>
7491
7492 * tree-bounds.c: New.
7493 * tree-bounds.h: New.
7494 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
7495 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
7496 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
7497 flag_mudflap.
7498 * gcc.c: Same.
7499 * toplev.c: Same.
7500 * c-cppbuiltin.c: Same.
7501 * c-pragma.c: Same.
7502 * common.opt: Same.
7503 * varasm.c: Same.
7504 * tree-outof-ssa.c: Same.
7505 * c-common.c: Same.
7506 * Makefile.in: Same.
7507
75082008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
7509 Sebastian Pop <sebastian.pop@amd.com>
7510
7511 * tree-loop-distribution.c (remaining_stmts,
7512 upstream_mem_writes): Removed static variables.
7513 (copy_loop_before, create_bb_after_loop,
7514 mark_nodes_having_upstream_mem_writes, free_rdg_components,
7515 rdg_build_components, rdg_build_partitions,
7516 dump_rdg_partitions): Extern.
7517 (generate_loops_for_partition, generate_code_for_partition): Do not
7518 return a bool.
7519 (already_processed_vertex_p, predecessor_has_mem_write,
7520 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
7521 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
7522 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
7523 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
7524 Pass remaining_stmts and upstream_mem_writes as parameters.
7525 (rdg_component): Moved...
7526 (build_rdg_partition_for_component): Do not aggregate components when
7527 flag_streamize_loops is set.
7528 (gen_sequential_loops): New.
7529 (ldist_gen): Call gen_sequential_loops.
7530
7531 * tree-pass.h (pass_loop_streamization): Declared.
7532
7533 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
7534 basic blocks when loops structures exist.
7535
7536 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
7537
7538 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
7539
7540 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
7541 eliminate_local_variables_stmt, eliminate_local_variables,
7542 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
7543 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
7544 of code delimited by two edges in the CFG.
7545 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
7546 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
7547 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
7548 the case of parallelisation of reductions.
7549 (create_loop_fn): Extern.
7550 (create_omp_parallel_region): New.
7551
7552 * tree-data-ref.c (dump_data_dependence_relation): Don't call
7553 dump_data_reference for printing dra and drb.
7554 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
7555 RDGE_RELATION.
7556 (build_rdg): Don't call free_dependence_relations for the moment, as
7557 we attach dependence relations on each edge of the RDG.
7558 To be fixed later.
7559
7560 * tree-data-ref.h (rdg_component): ...here.
7561 (struct rdg_edge): New field ddr_p relation.
7562 (RDGE_RELATION): New.
7563 (create_bb_after_loop, copy_loop_before,
7564 mark_nodes_having_upstream_mem_writes, rdg_build_components,
7565 rdg_build_partitions, dump_rdg_partitions,
7566 free_rdg_components): Declared.
7567
7568 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
7569 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
7570
7571 * tree-loop-streamization.c: New.
7572
7573 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
7574 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
7575
7576 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
7577
7578 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
7579
7580 * passes.c: Schedule pass_loop_streamization.
7581
75822008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
7583
7584 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
7585 update comment.
7586
75872008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
7588
7589 * graphite.c (dot_all_scops): Update formatting.
7590 Bbs can now be part of more than one SCoP.
7591
75922008-03-04 Sebastian Pop <sebastian.pop@amd.com>
7593
7594 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
7595 malloc problems.
7596 (loop_domain_dim): Check for unregistered toplev SCOP loop.
7597 * graphite.h (loop_to_cloog_loop): New.
7598
75992008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7600
7601 * graphite.c (loop_domain_dim, ref_nb_loops,
7602 loop_iteration_vector_dim): New.
7603 (build_access_matrix_with_af, build_access_matrix,
7604 initialize_dependence_polyhedron): Fixed for new matrix layout.
7605 No longer assume that all iteration domains are of the same
7606 dimensionality.
7607
76082008-03-02 Sebastian Pop <sebastian.pop@amd.com>
7609
7610 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
7611 defined in a loop at depth 0 is invariant.
7612 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
7613 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
7614 be called at loop depth 0.
7615
7616 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
7617 a parameter.
7618 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
7619 (down_open_scop): Removed.
7620 (loop_in_scop_p): Redefined.
7621 (scop_affine_expr): New argument: scop.
7622 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
7623 a harmful statement ending a scop.
7624 (basic_block_simple_for_scop_p): New argument: scop.
7625 (get_loop_start): Removed.
7626 (new_scop): Initialize SCOP_LOOPS.
7627 (free_scop): Free SCOP_LOOPS.
7628 (succs_at_same_depth, preds_at_same_depth): New.
7629 (end_scop): Test the validity of a scop.
7630 (add_dominators_to_open_scops): New.
7631 (test_for_scop_bound): Call add_dominators_to_open_scops.
7632 Add cases for opening and closing multiple scops.
7633 (build_scops, build_scop_bbs): Iterate over basic blocks in
7634 depth first order.
7635 (build_graphite_bb): Pass scop directly.
7636 (dfs_bb_in_scop_p): New.
7637 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
7638 several times.
7639 (nb_loops_around_gb): Use loop_in_scop_p.
7640 (schedule_to_scattering): Disabled for the moment the code computing
7641 the "textual order for outer loop".
7642
7643 * graphite.h (struct scop): New field loops.
7644 (SCOP_LOOPS): New.
7645 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
7646
6c9df8cb 7647 * gcc.dg/graphite/scop-{1,...,7}.c: Updated.
c6bb733d 7648
76492008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
7650 Sebastian Pop <sebastian.pop@amd.com>
7651
7652 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
7653 * common.opt (fstreamize-loops): New.
7654 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
7655 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
7656 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
7657 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
7658
76592008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7660
7661 * tree-data-ref.c (build_empty_rdg): New.
7662 (build_rdg): Use it.
7663 * tree-data-ref.h (build_empty_rdg): Declared.
7664 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
7665 (find_vertex_for_stmt): Removed.
7666 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
7667
76682008-02-21 Sebastian Pop <sebastian.pop@amd.com>
7669
7670 * tree-loop-distribution.c (generate_builtin): After cancelling the
7671 loop tree, also delete basic blocks.
7672 (rdg_flag_uses): Stop recursion when a vertex has already been
7673 processed.
7674
76752008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7676
7677 * graphite.c (build_scop_alpha): Removed.
7678 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
7679 and dump_dependence_graph to avoid compiler warnings.
7680
76812008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7682
7683 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
7684 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
7685 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
7686 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
7687 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
7688 (initialize_dependence_polyhedron, find_vertex_for_stmt,
7689 initialize_data_dependence_polyhedron, is_empty_polyhedron,
7690 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
7691 dump_dependence_graph): New.
7692 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
7693 (GBB_ALPHA): New.
7694 (struct scop): New field loop2cloog_loop.
7695 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
7696 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
7697
76982008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7699
7700 * graphite.c (build_graphite_bb): Fix initialization
7701 of the graphite basic block.
7702
77032008-02-05 Sebastian Pop <sebastian.pop@amd.com>
7704
7705 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
7706 loop domain matrix. Pass in the number of loops contained in the
7707 constraint matrix.
7708 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
7709 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
7710 loops that are not surrounding the current loop are not represented
7711 in the domain constraint matrix.
7712 (build_scop_iteration_domain): Initial domain constraint matrix
7713 contains only the eq/ineq, cst, and scop parameters columns.
7714
77152008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7716
7717 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
7718 (print_graphite_bb): Print scattering.
7719
77202008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7721
7722 * graphite.c (initialize_cloog_names): Initialize names of
7723 scattering variables.
7724
77252009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7726
7727 * graphite.c (dot_all_scops_1): Disable debug output while
7728 printing graph.
7729
77302008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7731
7732 * graphite.c (find_transform): Change cloog output language to C.
7733
77342008-01-27 Sebastian Pop <sebastian.pop@amd.com>
7735
7736 * tree-loop-distribution.c (generate_memset_zero,
7737 generate_builtin, generate_code_for_partition,
7738 rdg_flag_all_uses): New.
7739 (rdg_flag_uses): Gather in the same partition the statements defining
7740 the VUSES of the current statement.
7741 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
7742 Gather in the same partition not only the stores to the same memory
7743 access, but also the reads.
7744 (ldist_generate_loops): Renamed ldist_gen.
7745
77462008-01-24 Sebastian Pop <sebastian.pop@amd.com>
7747 Tobias Grosser <grosser@fmi.uni-passau.de>
7748
7749 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
7750 next pointer, don't use the inner pointer.
7751
77522008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
7753
7754 * graphite.c (dot_all_scops, dot_all_scops_1): New.
7755 (find_transform): Call dot_all_1.
7756 * graphite.h (dot_all_scops): Declared.
7757
77582007-12-14 Sebastian Pop <sebastian.pop@amd.com>
7759
7760 * tree-loop-distribution.c: Fix apsi.f ICE.
7761 (create_bb_after_loop): New.
7762 (generate_loops_for_partition): Use it.
6c9df8cb 7763 * gfortran.dg/ldist-1.f90: New.
c6bb733d 7764
7765 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
7766 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
7767
77682007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7769
7770 * graphite.c (find_transform): Dump cloog program sent to cloog.
7771
77722007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7773
7774 * graphite.c (initialize_cloog_names): Initialize cloog
7775 iterator names.
7776
77772007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7778
7779 * graphite.c (build_scop_context): Fix typo, for the matrix
7780 format: insert '0 >= 0' instead of '-1 >= 0'.
7781
77822007-12-13 Sebastian Pop <sebastian.pop@amd.com>
7783
7784 * Fix merge problems.
7785
77862007-12-13 Sebastian Pop <sebastian.pop@amd.com>
7787
7788 * graphite.c (setup_cloog_loop): Fix typo.
7789
77902007-12-12 Sebastian Pop <sebastian.pop@amd.com>
7791
7792 * doc/invoke.texi (-ftree-loop-distribution): Documented.
7793 * tree-loop-distribution.c: Reimplemented.
7794 * tree-pass.h (pass_loop_distribution): New.
7795 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
7796 print_loops.
7797 * graphds.h (struct graph): New field indexes.
7798 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7799
7800 * tree-vect-analyze.c: Remove declaration of static functions when not
7801 needed.
7802 * tree-vectorizer.c: Same.
7803 (rename_variables_in_loop): Now extern.
7804 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
7805 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
7806 calling redirect_edge_and_branch_force.
7807
7808 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
7809
7810 * tree-data-ref.c: Don't include tree-chrec.h.
7811 (debug_data_dependence_relations): New.
7812 (dump_data_dependence_relation): Call dump_data_reference on data refs
7813 in the relation.
7814 (same_access_functions): Moved...
7815 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
7816 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7817 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
7818 struct rdg_vertex_info, ): New.
7819 (create_rdg_edge_for_ddr): Compute the dependence level before looking
7820 at DDR_REVERSED_P.
7821 (create_rdg_vertices): Initialize the htab of graph->indexes.
7822 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
7823 (stmts_from_loop): Don't save LABEL_EXPR.
7824 (hash_stmt_vertex_info, eq_stmt_vertex_info,
7825 hash_stmt_vertex_del): New.
7826 (build_rdg): Initialize rdg->indexes.
7827 (free_rdg, stores_from_loop, ref_base_address,
7828 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
7829 have_similar_memory_accesses_1, ref_base_address_1,
7830 remove_similar_memory_refs): New.
7831
7832 * tree-data-ref.h: Include tree-chrec.h.
7833 (debug_data_dependence_relations): Declared.
7834 (same_access_functions): ...here. Now static inline.
7835 (ddr_is_anti_dependent, ddrs_have_anti_deps,
7836 ddr_dependence_level): New.
7837 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
7838 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
7839 RDG_MEM_READS_STMT): New.
7840 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7841 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
7842 rdg_vertex_for_stmt): Declared.
7843 (struct rdg_edge): New field level.
7844 (RDGE_LEVEL, free_rdg): New.
7845 (stores_from_loop, remove_similar_memory_refs,
7846 rdg_defs_used_in_other_loops_p,
7847 have_similar_memory_accesses): Declared.
7848 (rdg_has_similar_memory_accesses): New.
7849
7850 * lambda.h (dependence_level): New.
7851 * common.opt (ftree-loop-distribution): New.
7852 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
7853 (print_loop_ir): Renamed print_loops.
7854 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
7855 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
7856 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
7857 (tree-loop-distribution.o): Added.
7858 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
7859 (mark_virtual_ops_in_bb): New.
7860 (print_loops_bb, debug_loop_num, debug_loop): New.
7861 * passes.c: Scheduled pass_loop_distribution.
7862
78632007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7864
7865 * graphite.c (scan_tree_for_params): Correct the number of columns
7866 for polylib format.
7867 (nb_flat_iterator): New.
7868 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
7869 (build_scop_iteration_domain): Correct the number of columns for
7870 polylib format.
7871
78722007-12-12 Sebastian Pop <sebastian.pop@amd.com>
7873
7874 * Merge from mainline (129697:130800).
7875
78762007-10-30 Sebastian Pop <sebastian.pop@amd.com>
7877
7878 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
7879 dominated by SCoP's exit.
7880 (graphite_transform_loops): Compute post dominators.
7881
78822007-10-28 Sebastian Pop <sebastian.pop@amd.com>
7883
7884 * Merge from mainline (127169:129697).
7885
78862007-10-28 Sebastian Pop <sebastian.pop@amd.com>
7887
7888 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
7889 parameter for the basic block that contains the expression. Use
7890 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
7891 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
7892 the expression.
7893 * graphite.h (gbb_loop): New.
7894 (GBB_LOOP): Removed.
7895
78962007-08-03 Sebastian Pop <sebpop@gmail.com>
7897
7898 * Makefile.in: Fix merge problem.
7899
79002007-08-03 Sebastian Pop <sebpop@gmail.com>
7901
7902 * Merge from mainline (125309:127169).
7903 * tree-loop-distribution.c: Disabled.
7904
79052007-06-05 Sebastian Pop <sebpop@gmail.com>
7906
7907 * Merge from mainline (r123693:125309).
7908
79092007-05-30 Sebastian Pop <sebpop@gmail.com>
7910
7911 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
7912 correct_modify_p
7913 (correct_modify_p, check_statements, number_of_lvalue_uses,
7914 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
7915 instead of MODIFY_EXPR.
7916 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
7917 and push new edges.
7918
79192007-05-24 Sebastian Pop <sebpop@gmail.com>
7920
7921 * tree-loop-distribution.c (struct rdg): Replace arrays by
7922 VECs for edges and vertices.
7923 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
7924 (RDGV_NB_PARTITIONS): New.
7925 (PRDG_NBV, PRDG_NBE): Removed.
7926 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
7927 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
7928 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
7929
79302007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
7931 Sebastian Pop <sebpop@gmail.com>
7932
7933 * doc/invoke.texi (-ftree-loop-distribution): Document.
7934 * tree-loop-distribution.c: New file.
7935 * tree-pass.h (pass_loop_distribution): Declared.
7936 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7937 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
7938 and set reversed_p.
7939 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
7940 (DDR_REVERSED_P): New.
7941 * common.opt (-ftree-loop-distribution): New.
7942 * tree-flow.h (distribute_loops): Declared.
7943 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
7944 * passes.c (init_optimization_passes): Schedule loop distribution.
7945
79462007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
7947
7948 * graphite.c (print_graphite_bb): Don't call dump_data_references.
7949 (print_scop): Don't print when scop is NULL.
7950 (build_scop_context, find_transform): Don't output to stderr.
7951
79522007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
7953
7954 * tree-data-ref.c: Don't include graphite.h.
7955 Comment out the code for printing data reference's scop.
7956 (build_access_matrix_with_af): Moved...
7957 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
7958 * graphite.c (build_access_matrix_with_af): ... here. Now static.
7959 (print_graphite_bb): Print basic block's schedule.
7960 (print_scop): Don't print the schedule, call cloog's pretty printer.
7961 (bb_in_scop_p): A basic block is in a scop only if it is both
7962 dominated and postdominated by the scop's entry and exit basic blocks.
7963 (function_parameter_p): New.
7964 (invariant_in_scop_p): Use function_parameter_p.
7965 (new_scop, save_scop): New.
7966 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
7967 save_scop.
7968 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
7969 (loop_in_scop_p): New.
7970 (scop_record_loop): Use loop_in_scop_p.
7971 (build_scop_domain): Renamed build_scop_iteration_domain.
7972 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
7973 nb_params_in_scop, build_scop_context, first_loop_in_scop,
7974 setup_cloog_loop, dot_scop_1, dot_scop): New.
7975 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
7976 (struct scop): Add a pointer to cloog's representation of a program.
7977
79782007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
7979
7980 * doc/invoke.texi (-ftree-check-verbose): Renamed
7981 -ftree-checks-verbose.
7982 * common.opt (flag_tree_check_verbose): Renamed
7983 flag_tree_checks_verbose.
7984 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
7985
79862007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
7987
7988 * configure: Regenerated.
7989 * config.in: Regenerated.
7990 * tree-ssa-loop.c (graphite_transforms): Execute
7991 graphite_transform_loops only when HAVE_cloog.
7992 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
7993 * graphite.c: Include polylibgmp.h and cloog.h.
7994 (graphite_transform_loops): Removed loops parameter.
7995 * tree-flow.h (graphite_transform_loops): Update declaration.
7996 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
7997 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
7998 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
7999 (OBJS-common): Remove dependence on graphite.o.
8000 (BACKEND): Depend on @GRAPHITE@.
8001
80022007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
8003
8004 * doc/invoke.texi (-ftree-check-verbose): Documented.
6c9df8cb 8005 * gcc.dg/tree-checker/tree-checks-1.c: New.
8006 * gcc.dg/tree-checker/tree-checks-2.c: New.
8007 * gcc.dg/tree-checker/tree-checks-3.c: New.
8008 * gcc.dg/tree-checker/tree-checks-4.c: New.
8009 * gcc.dg/tree-checker/tree-checks.exp: New.
8010 * gcc.dg/tree-checker/condates.crp: New.
c6bb733d 8011 * common.opt (ftree-checks-verbose): New.
8012 * tree-check.c (tree_check_warning): Move extra stderr output
8013 under control of flag_tree_check_verbose.
8014
80152007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
8016
8017 * tree-match.c: Fix comments formatting.
8018 * tree-match.h: Fix comments formatting.
8019 * tree-check.c: Fix comments formatting.
8020 (tree_check_init): Restructure.
8021
80222007-04-12 Nic Volanschi <nic.volanschi@free.fr>
8023
8024 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
8025
80262007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
8027
8028 * Merge from mainline (r120733:123693).
8029
80302007-03-20 Nic Volanschi <nic.volanschi@free.fr>
8031
8032 * condate.y: New file.
8033 * tree-match.h (struct patt_info_s): New field sign.
8034 (struct condate_s): New field msg.
8035 (normalize_condate, name_condate, add_condate): New.
8036 (conds[], condate_parse): Made extern.
8037 * tree-check.c (tree_check_warning): First arg changed to cond;
8038 warning reformatted.
8039 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
8040 (tree_scan): New.
8041 (tree_check): Process trivial condates.
8042 (read_delimited_string): Removed.
8043 (print_cond): Print name and msg.
8044 (conds[]): Made extern.
8045 (parse_tree_check_file_once): Rewritten to use the parser in
8046 condate.y.
8047 Processing of option --tree_check_string moved to tree_scan().
8048 * Makefile.in: Added condate.y
8049
80502007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
8051
8052 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
8053 Use VECs instead of varrays.
8054 * diagnostic.h (lazy_dump_generic_node): Update declaration.
8055 * Makefile.in (pretty-print.o): Depend on vec.h.
8056 * pretty-print.c: Include tree.h and vec.h.
8057 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
8058 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
8059 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
8060 pp_free_list): Use VECs instead of varrays.
8061 * pretty-print.h: Do not include varray.h.
8062 (struct tree_chunk_s): Declaration moved before its use.
8063 (output_buffer): Rename varray field to chunks.
8064 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
8065 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
8066 save_global_holes): Use VECs instead of varrays.
8067 * tree-match.h: Declare VECs of cfg_node, and hole_p.
8068 * tree-check.c (scan_cfg_stmts, push_node,
8069 print_matching_stmt): Removed.
8070 (tree_check_instance, push_global_holes_if_new, tree_check,
8071 execute_tree_check): Use VECs instead of varrays.
8072 (gate_tree_check): Don't execute the CFG check when basic_block_info
8073 is not available.
8074
80752007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8076
8077 * Merge from mainline (r115016:120733).
8078
80792007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8080
8081 * Merge from mainline (r117632:117661).
8082
80832007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
8084
8085 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
8086 * tree-pass.h (TDF_DEBUG, debug_p): New.
8087 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
8088 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
8089 get_loop_exit_condition, analyze_evolution_in_loop,
8090 analyze_initial_condition, analyze_scalar_evolution,
8091 instantiate_parameters, number_of_latch_executions): Use debug_p.
8092 * tree-chrec.c (chrec_apply): Use debug_p.
8093 * tree-data-ref.c: Include graphite.h.
8094 (dump_data_reference): Print also the access matrix.
8095 (analyze_array, analyze_indirect_ref, init_data_ref,
8096 analyze_offset_expr, address_analysis, object_analysis,
8097 create_data_ref, finalize_ddr_dependent,
8098 non_affine_dependence_relation, analyze_ziv_subscript,
8099 analyze_siv_subscript_cst_affine,
8100 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
8101 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
8102 analyze_miv_subscript, analyze_overlapping_iterations,
8103 build_classic_dist_vector, subscript_dependence_tester,
8104 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
8105 (build_access_matrix_with_af): No longer static.
8106 * tree-data-ref.h (scop_p): ... declaration here.
8107 (data_reference.scop): New field.
8108 (DR_SCOP, DR_ACCESS_MATRIX): New.
8109 (build_access_matrix_with_af, dr_num_subscripts): Declared.
8110 * graphite.c (print_graphite_bb): Call dump_data_references.
8111 (print_scop): Use scop_nb_loops and scop_dim_domain.
8112 (test_for_scop_bound): Use debug_p.
8113 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
8114 scop_nb_params.
8115 (scop_loop_index): Moved...
8116 (scop_record_loop): New.
8117 (build_scop_loop_nests): Use scop_record_loop.
8118 (build_scop_domain): Use scop_dim_domain.
8119 (build_access_matrix): Implemented.
8120 (build_scop_canonical_schedules): Use scop_nb_loops.
8121 (build_graphite_bb): Initialize GBB_SCOP.
8122 * graphite.h (scop_p): Moved...
8123 (graphite_bb.scop): New field.
8124 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
8125 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
8126 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
8127 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
8128 scop_loop_index): New.
8129 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
8130
81312007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
8132
8133 * Merge from mainline (r117661:120450).
8134
81352006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
8136
8137 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
8138 at the first declaration outside the varying loop, instantiate as
8139 far as possible.
8140 * tree-chrec.c (for_each_scev_op): New.
8141 * tree-chrec.h (for_each_scev_op): Declared.
8142 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
8143 * tree-data-ref.c (get_references_in_stmt,
8144 find_data_references_in_stmt): New, from trunk.
8145 (find_data_references_in_loop): Use get_references_in_stmt
8146 and find_data_references_in_loop, modified as in trunk.
8147 (build_access_matrix_with_af): New.
8148 * tree-data-ref.h (data_reference): Add a field access_matrix.
8149 (data_ref_loc): New, as in trunk.
8150 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
8151 invariant_in_scop_p, param_index, scan_tree_for_params,
8152 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
8153 idx_record_param, idx_record_params, build_access_matrix,
8154 build_scop_data_accesses, build_scop_canonical_schedules,
8155 build_graphite_bb, build_scop_bbs, find_params_in_bb,
8156 build_scop_params): New.
8157 * graphite.h (graphite_bb): New.
8158 (scop): Add fields static_schedule, params, loop_nest,
8159 iteration_domain.
8160 * lambda.h: Declare vecs of lambda_matrix.
8161 * tree-flow.h (print_loop_ir_bb): Declared.
8162 * tree-cfg.c (print_loop_ir_bb): New.
8163 (print_loop): Use print_loop_ir_bb.
8164
81652006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
8166
8167 * Merge from mainline (r115016:117632).
8168
81692006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
8170
8171 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
8172 break due to a warning.
8173
81742006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
8175
8176 * graphite.c (print_scops, debug_scops): New.
8177 (graphite_transform): Renamed graphite_find_transform.
8178 * graphite.h (debug_scops): Declared.
8179
81802006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
8181
8182 * tree-match.c: Reformat following the GNU style.
8183 * tree-match.h: Reformat following the GNU style.
8184 * tree-pattern.h: Removed empty file.
8185 * Makefile.in: Remove references to tree-pattern.h.
8186 * tree-check.c: Reformat following the GNU style.
8187 (execute_tree_check): Move gate condition code to...
8188 (gate_tree_check): ...here. New function.
8189 (pass_check): Use the gate function.
8190
81912006-07-04 Nic Volanschi <nic.volanschi@free.fr>
8192
8193 * tree-pattern.h: New. Tree pattern matching and checking using
8194 concrete syntax.
8195 * tree-check.c: New. Tree/CFG checking pass.
8196 * tree-match.c: New. Library for tree pattern matching.
8197 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
8198 * toplev.c, flags.h: Add globals for tree-check pass.
8199 * Makefile.in: Integrate the files in tree-check pass.
8200 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
8201 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
8202 Introduce a "lazy" pretty-print mode.
8203 * tree.c, tree.h: Add tree_name.
8204
82052006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
8206
8207 * doc/invoke.texi (-fgraphite): Correct typo.
8208 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
8209 use of print_loop_ir.
6c9df8cb 8210 * gcc.dg/graphite/scop-1.c: New.
8211 * gcc.dg/graphite/scop-2.c: New.
8212 * gcc.dg/graphite/graphite.exp: New.
c6bb733d 8213 * graphite.c: Include domwalk.h.
8214 (print_scop): Print only the entry and exit blocks.
8215 (debug_scop): No longer static.
8216 (affine_expr): Fix formating. Return also true when the expression is
8217 constant.
8218 (stmt_simple_for_scop_p): Fix formating.
8219 (build_scops): Use domwalk.
8220 (get_loop_start, end_scop, test_for_scop_bound): New.
8221 (graphite_transform_loops): Avoid printing on stderr.
8222 * graphite.h (debug_scop): Declared.
8223 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
8224 * Makefile.in (graphite.o): Depend on domwalk.h.
8225 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
8226 declarations for static functions.
8227 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
8228 controlling output verbosity.
8229
82302006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
8231 Plesco Alexandru <shurikx@gmail.com>
8232
8233 * doc/invoke.texi (-fgraphite): Document.
8234 * tree-pass.h (pass_graphite_transforms): Declared.
8235 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
8236 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
8237 (pass_graphite_transforms): Defined.
8238 * tree-data-ref.c (free_data_ref, data_reference): Extern.
8239 * tree-data-ref.h (free_data_ref, data_reference): Declared.
8240 * graphite.c, graphite.h: New.
8241 * common.opt (fgraphite): Declared.
8242 * tree-flow.h (graphite_transform_loops): Declared.
8243 * Makefile.in (OBJS-common): Add graphite.o.
8244 (graphite.o): New rule.
8245 * passes.c (pass_graphite_transforms): Scheduled.
8246