]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog.graphite
Remove insert_copyout and insert_copyin.
[thirdparty/gcc.git] / gcc / ChangeLog.graphite
CommitLineData
5fed5769
SP
12010-06-12 Sebastian Pop <sebastian.pop@amd.com>
2
3 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
4 argument for the place after which to insert the out of SSA copy.
5 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
6 (rewrite_phi_out_of_ssa): Same.
7 (rewrite_cross_bb_scalar_deps): Same.
8 (insert_copyout): Removed.
9 (insert_copyin): Removed.
10 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
11 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
12 insert_copyin.
13
3a7086cc
SP
142010-06-12 Sebastian Pop <sebastian.pop@amd.com>
15
16 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
17 (rewrite_reductions_out_of_ssa): Same.
18 (rewrite_commutative_reductions_out_of_ssa): Same.
19 (build_poly_scop): Do not call these functions.
20 * graphite-sese-to-poly.h (build_poly_scop): Declared.
21 (rewrite_reductions_out_of_ssa): Declared.
22 (rewrite_commutative_reductions_out_of_ssa): Declared.
23 * graphite.c (graphite_transform_loops): Call on every scop
24 rewrite_commutative_reductions_out_of_ssa before calling
25 rewrite_reductions_out_of_ssa and build_scop_bbs.
26
61ca46ce
SP
272010-06-12 Sebastian Pop <sebastian.pop@amd.com>
28
29 * graphite-dependences.c (dot_deps): Make system call to dotty run
30 in background.
31 (dot_deps_stmt): Same.
32 * graphite-poly.c (dot_lst): Same.
33
f5f50480
SP
342010-06-11 Sebastian Pop <sebastian.pop@amd.com>
35
36 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
37 old_type in parameter.
38 (gcc_type_for_value): Update call to gcc_type_for_interval.
39 (compute_type_for_level_1): Renamed compute_type_for_level.
40 Update call to gcc_type_for_interval.
41
081970eb
SP
422010-06-09 Sebastian Pop <sebastian.pop@amd.com>
43
44 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
45 the scev analysis when the variable is not used outside the loop
46 in a close phi node: call compute_overall_effect_of_inner_loop.
47
bb17c851
SP
482010-06-09 Sebastian Pop <sebastian.pop@amd.com>
49
50 * graphite-sese-to-poly.c (single_pred_cond): Renamed
51 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
52 (build_sese_conditions_before): Renamed call to single_pred_cond.
53 (build_sese_conditions_after): Same.
54
86e40af7
SP
552010-06-09 Sebastian Pop <sebastian.pop@amd.com>
56
57 * graphite-poly.h: Fix comments and indentation.
58 * graphite-sese-to-poly.c: Same.
59 (build_sese_conditions_before): Compute stmt and gbb only when needed.
60 * tree-chrec.c: Fix comments and indentation.
61 (tree-ssa-loop-niter.c): Same.
62
5599dea7
TG
632010-06-08 Tobias Grosser <grosser@fim.uni-passau.de>
64
65 * refined-regions.c (create_region): Only initialize the region.
66 (find_regions_with_entry): Initialize parent relation and bbmap
67 correctly.
68 (build_regions_tree): Set outermost_region to region instead of
69 topmost_region.
70 (calculate_region_tree): Remove unneeded parameters.
71
2a6909ec
TG
722010-06-02 Tobias Grosser <grosser@fim.uni-passau.de>
73
74 * graphite-scop-detection.c (is_scop_p): New.
75 (build_scops_new): New. A skeleton for the new scop detection.
76 (build_scops_old): Renamed from build_scops.
77 (build_scops): New version. Call the new and the old scop
78 detection.
79
25c57e83
TG
802010-05-27 Tobias Grosser <grosser@fim.uni-passau.de>
81 Antoniu Pop <antoniu.pop@gmail.com>
82
83 * Makefile.in (OBJS-common): Add refined-regions.o.
84 (refined-regions.o): New.
85 (graphite-scop-detection.o): Use refined-regions.h.
86 * graphite-scop-detection.c: Include refined-regions.h
87 (build_scops): Also build the refined region tree.
88 * refined-regions.c: New. Adds an algorithm to detect refined
89 regions.
90 (print_refined_region): New.
91 (debug_refined_region): New.
92 (refined_region_contains_bb_p): New.
93 (refined_region_contains_region_p): New.
94 (is_common_df): New.
95 (struct find_regions_global_data): New.
96 (is_region): New.
97 (typedef struct bb_bb_def): New.
98 (new_bb_bb_def): New.
99 (bb_bb_map_hash): New.
100 (eq_bb_bb_map): New.
101 (find_new_bb): New.
102 (bb_reg_def): New.
103 (new_bb_reg_def): New.
104 (bb_reg_map_hash): New.
105 (eq_bb_reg_map): New.
106 (find_new_region): New.
107 (insert_new_reg): New.
108 (insert_new_bb): New.
109 (insert_shortcut): New.
110 (get_next_postdom): New.
111 (create_region): New.
112 (find_regions_with_entry): New.
113 (find_regions_adc): New.
114 (find_regions): New.
115 (get_topmost_parent): New.
116 (build_regions_tree): New.
117 (calculate_region_tree): New.
118 (free_region_tree): New.
119 * refined-regions.h: New.
120 (struct refined_region): New.
121 (calculate_region_tree): New.
122 (free_region_tree): New.
123 (refined_region_contains_bb_p): New.
124 (refined_region_contains_region_p): New.
125 (print_refined_region): New.
126 (debug_refined_region): New.
127
8c131b3b
SP
1282010-05-26 Sebastian Pop <sebastian.pop@amd.com>
129
130 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
131 size_one_node.
132
d91949fa
SP
1332010-05-07 Sebastian Pop <sebastian.pop@amd.com>
134
135 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Fix
136 type of integer_one_node for fold_build of POINTER_PLUS_EXPR.
137
159e4616
SP
1382010-05-07 Sebastian Pop <sebastian.pop@amd.com>
139
140 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
141 phi_arg_in_outermost_loop.
142 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
143 (remove_invariant_phi): Same.
144
e262fdda
AS
1452010-04-12 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
146
147 * graphite-blocking.c
148 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
149 * graphite-clast-to-gimple.c
150 (clast_to_gcc_expression): Same.
151 (precision_for_value): Same.
152 (precision_for_interval): Same.
153 (gcc_type_for_interval): Same.
154 (graphite_create_new_guard): Same.
155 (compute_bounds_for_level): Same.
156 (graphite_create_new_loop_guard): Same.
157 * graphite-interchange.c
158 (build_linearized_memory_access): Same.
159 (pdr_stride_in_loop): Same.
160 (memory_strides_in_loop_1): Same.
161 (memory_strides_in_loop): Same.
162 (extend_scattering): Same.
163 (psct_scattering_dim_for_loop_depth): Same.
164 (pbb_number_of_iterations): Same.
165 * graphite-poly.h
166 (debug_iteration_domains): Same.
167 * graphite-ppl.c
168 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
169 (ppl_set_inhomogeneous_gmp): Same.
170 (ppl_strip_loop): Same.
171 (ppl_lexico_compare_linear_expressions): Same.
172 (ppl_read_polyhedron_matrix): Same.
173 (ppl_max_for_le_pointset): Same.
174 * graphite-ppl.h
175 (ppl_read_polyhedron_matrix): Same.
176 (tree_int_to_gmp): Same.
177 (gmp_cst_to_tree): Same.
178 (ppl_set_inhomogeneous): Same.
179 (ppl_set_inhomogeneous_tree): Same.
180 (ppl_set_coef): Same.
181 (ppl_set_coef_tree): Same.
182 * graphite-sese-to-poly.c
183 (build_pbb_scattering_polyhedrons): Same.
184 (build_scop_scattering): Same.
185 (scan_tree_for_params_right_scev): Same.
186 (scan_tree_for_params): Same.
187 (find_params_in_bb): Same.
188 (find_scop_parameters): Same.
189 (add_upper_bounds_from_estimated_nit): Same.
190 (build_loop_iteration_domains): Same.
191 (add_condition_to_domain): Same.
192 (pdr_add_memory_accesses): Same.
193
a0bb35c7
AS
1942010-04-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
195
196 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
197 CLooG's value_* macros to their respective mpz_* counterparts.
198 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
199 (graphite_create_new_loop_guard): Same.
200 * graphite-interchange.c (build_linearized_memory_access): Same.
201 (pdr_stride_in_loop): Same.
202 (memory_strides_in_loop_1): Same.
203 (1st_interchange_profitable_p): Same.
204 * graphite-poly.c (extend_scattering): Same.
205 (psct_scattering_dim_for_loop_depth): Same.
206 (pbb_number_of_iterations): Same.
207 (pbb_number_of_iterations_at_time): Same.
208 * graphite-poly.h (new_1st_loop): Same.
209 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
210 (oppose_constraint): Same.
211 (insert_constraint_into_matrix): Same.
212 (ppl_set_inhomogeneous_gmp): Same.
213 (ppl_set_coef_gmp): Same.
214 (ppl_strip_loop): Same.
215 (ppl_lexico_compare_linear_expressions): Same.
216 (ppl_max_for_le_pointset): Same.
217 (ppl_min_for_le_pointset): Same.
218 (ppl_build_realtion): Same.
219 * graphite-ppl.h (gmp_cst_to_tree): Same.
220 (ppl_set_inhomogeneous): Same.
221 (ppl_set_inhomogeneous_tree): Same.
222 (ppl_set_coef): Same.
223 (ppl_set_coef_tree): Same.
224 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
225 (build_scop_scattering): Same.
226 (add_value_to_dim): Same.
227 (scan_tree_for_params_right_scev): Same.
228 (scan_tree_for_params_int): Same.
229 (scan_tree_for_params): Same.
230 (find_params_in_bb): Same.
231 (find_scop_parameters): Same.
232 (add_upper_bounds_from_estimated_nit): Same.
233 (build_loop_iteration_domains): Same.
234 (create_linear_expr_from_tree): Same.
235 (add_condition_to_domain): Same.
236 (pdr_add_memory_accesses): Same.
237
b8132a7d
SP
2382010-04-05 Sebastian Pop <sebastian.pop@amd.com>
239
240 PR middle-end/43519
241 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
242 lang_hooks.types.type_for_size instead of build_nonstandard_integer_type.
243 When converting an unsigned type to signed, double its precision.
244 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
245 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
246 (graphite_create_new_loop_guard): When ub + 1 wraps around, use lb <= ub.
247
2482010-04-05 Sebastian Pop <sebastian.pop@amd.com>
249
250 PR middle-end/43519
251 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
252 build_nonstandard_integer_type.
253 (gcc_type_for_interval): Same.
254
2552010-04-05 Sebastian Pop <sebastian.pop@amd.com>
dbe0d652
SP
256
257 PR middle-end/43519
258 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
259 POINTER_PLUS_EXPR for pointer types.
260
261 * gcc.dg/graphite/id-19.c: New.
262
bd32f344
SP
2632010-04-04 Sebastian Pop <sebastian.pop@amd.com>
264
265 PR middle-end/43519
266 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
267 * graphite-clast-to-gimple.c: Include langhooks.h.
268 (max_signed_precision_type): New.
269 (max_precision_type): Takes two types as arguments.
270 (precision_for_value): New.
271 (precision_for_interval): New.
272 (gcc_type_for_interval): New.
273 (gcc_type_for_value): New.
274 (gcc_type_for_clast_term): New.
275 (gcc_type_for_clast_red): New.
276 (gcc_type_for_clast_bin): New.
277 (gcc_type_for_clast_expr): Split up into several functions.
278 (gcc_type_for_clast_eq): Rewritten.
279 (compute_bounds_for_level): New.
280 (compute_type_for_level_1): New.
281 (compute_type_for_level): New.
282 (gcc_type_for_cloog_iv): Removed.
283 (gcc_type_for_iv_of_clast_loop): Rewritten.
284 (graphite_create_new_loop): Compute the lower and upper bound types
285 with gcc_type_for_clast_expr.
286 (graphite_create_new_loop_guard): Same.
287 (find_cloog_iv_in_expr): Removed.
288 (compute_cloog_iv_types_1): Removed.
289 (compute_cloog_iv_types): Removed.
290 (gloog): Do not call compute_cloog_iv_types.
291 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
292 GBB_CLOOG_IV_TYPES.
293 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
294 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
295 (GBB_CLOOG_IV_TYPES): Removed.
296
297 * gcc.dg/graphite/run-id-pr42644.c: Call abort.
298
79d03cf8
SP
2992010-04-02 Sebastian Pop <sebastian.pop@amd.com>
300
301 Reverted this commit: as at this point the loop closed SSA form
302 is under a canonical form respecting the single argument condition.
303 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
304 close phi nodes may have more than one argument.
305
3062010-04-01 Sebastian Pop <sebastian.pop@amd.com>
307
308 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
309 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
310 (detect_commutative_reduction): Same.
311
3122010-03-31 Sebastian Pop <sebastian.pop@amd.com>
313
314 * graphite-sese-to-poly.c (scalar_close_phi_node_p): Loop
315 close phi nodes may have more than one argument.
316
3cbf7085
RG
3172010-03-30 Richard Guenther <rguenther@suse.de>
318 Zdenek Dvorak <ook@ucw.cz>
319 Sebastian Pop <sebastian.pop@amd.com>
320
321 PR middle-end/43464
322 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
323 with multiple arguments.
324 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
325
40bf935e
SP
3262010-03-23 Sebastian Pop <sebastian.pop@amd.com>
327
328 * graphite-dependences.c (print_pddr): Call print_pdr with an
329 extra argument.
330 * graphite-poly.c (debug_pdr): Add an extra argument for the
331 verbosity level.
332 (print_pdr): Same.
333 (print_pbb_domain): Same.
334 (print_pbb): Same.
335 (print_scop_context): Same.
336 (print_scop): Same.
337 (print_cloog): Same.
338 (debug_pbb_domain): Same.
339 (debug_pbb): Same.
340 (print_pdrs): Same.
341 (debug_pdrs): Same.
342 (debug_scop_context): Same.
343 (debug_scop): Same.
344 (debug_cloog): Same.
345 (print_scop_params): Same.
346 (debug_scop_params): Same.
347 (print_iteration_domain): Same.
348 (print_iteration_domains): Same.
349 (debug_iteration_domain): Same.
350 (debug_iteration_domains): Same.
351 (print_scattering_function): Same.
352 (print_scattering_functions): Same.
353 (debug_scattering_function): Same.
354 (debug_scattering_functions): Same.
355 * graphite-poly.h (debug_pdr): Update declaration.
356 (print_pdr): Same.
357 (print_pbb_domain): Same.
358 (print_pbb): Same.
359 (print_scop_context): Same.
360 (print_scop): Same.
361 (print_cloog): Same.
362 (debug_pbb_domain): Same.
363 (debug_pbb): Same.
364 (print_pdrs): Same.
365 (debug_pdrs): Same.
366 (debug_scop_context): Same.
367 (debug_scop): Same.
368 (debug_cloog): Same.
369 (print_scop_params): Same.
370 (debug_scop_params): Same.
371 (print_iteration_domain): Same.
372 (print_iteration_domains): Same.
373 (debug_iteration_domain): Same.
374 (debug_iteration_domains): Same.
375 (print_scattering_function): Same.
376 (print_scattering_functions): Same.
377 (debug_scattering_function): Same.
378 (debug_scattering_functions): Same.
379
730a9846
SP
3802010-03-23 Sebastian Pop <sebastian.pop@amd.com>
381
382 * graphite-poly.c (print_scattering_function_1): New.
383 (print_scattering_function): Call it.
384 (print_scop_params): Remove spaces at the end of lines.
385 (print_cloog): New.
386 (debug_cloog): New.
387 * graphite-poly.h (print_cloog): Declared.
388 (debug_cloog): Declared.
389
9c0c34c2
SP
3902010-03-23 Sebastian Pop <sebastian.pop@amd.com>
391
392 * tree-ssa-copy.c: Revert this previous change:
393 (init_copy_prop): Loop closed phi nodes cancontain more than one
394 argument.
395 (execute_copy_prop): Revert the previous change: do not call
396 rewrite_into_loop_closed_ssa.
397
3982010-03-21 Sebastian Pop <sebastian.pop@amd.com>
399 Richard Guenther <rguenther@suse.de>
400
401 PR middle-end/43464
402 * tree-ssa-copy.c (init_copy_prop): Loop closed phi nodes can
403 contain more than one argument.
404 (execute_copy_prop): Revert the previous change: do not call
405 rewrite_into_loop_closed_ssa.
406
407 * gcc.dg/graphite/id-pr43464.c: Remove compile warning.
408 * gcc.dg/graphite/id-pr43464-1.c: New.
409
4102010-03-21 Sebastian Pop <sebastian.pop@amd.com>
411
412 PR middle-end/43464
413 * tree-ssa-copy.c (execute_copy_prop): Call rewrite_into_loop_closed_ssa
414 and verify_loop_closed_ssa when copy prop is executed in the LNO.
415
416 * gcc.dg/graphite/id-pr43464.c: New.
417
c80a5403
SP
4182010-03-16 Sebastian Pop <sebastian.pop@amd.com>
419
420 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
421 in loop->header.
422 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
423 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
424 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
425 to switch between adding the IV bump in loop->latch or in loop->header.
426
caaf41d0
SP
4272010-03-16 Sebastian Pop <sebastian.pop@amd.com>
428
429 * passes.c (init_optimization_passes): Add pass_copy_prop
430 after Graphite.
431
03922af3
SP
4322010-03-16 Sebastian Pop <sebastian.pop@amd.com>
433
434 * graphite-poly.c (print_scattering_function): Pretty print following
435 the scoplib format.
436 (print_pdr): Same.
437 (print_pbb_domain): Same.
438 (dump_gbb_cases): Same.
439 (dump_gbb_conditions): Same.
440 (print_pdrs): Same.
441 (print_pbb): Same.
442 (print_scop_params): Same.
443 (print_scop_context): Same.
444 (print_scop): Same.
445 (print_pbb_body): New.
446 (lst_indent_to): New.
447 (print_lst): Start new lines with a #.
448 * graphite-poly.h (pbb_bb): New.
449 (pbb_index): Use pbb_bb.
450 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
451 disjuncts.
452 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
453
7da9e6ed
SP
4542010-03-13 Sebastian Pop <sebastian.pop@amd.com>
455
456 PR middle-end/43351
457 * gcc.dg/graphite/id-pr43351.c
458
6492b694
SP
4592010-03-13 Sebastian Pop <sebastian.pop@amd.com>
460
461 PR middle-end/43354
462 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
463 call insert_out_of_ssa_copy for default definitions.
464 * gfortran.dg/graphite/id-pr43354.f: New.
465
4662010-03-13 Sebastian Pop <sebastian.pop@amd.com>
113081e4
SP
467
468 PR middle-end/43349
469 * gfortran.dg/graphite/pr43349.f: New.
470
248081bc
SP
4712010-03-11 Sebastian Pop <sebastian.pop@amd.com>
472
473 * graphite-clast-to-gimple.c (my_long_long): Defined.
474 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
475 * graphite-sese-to-poly.c (my_long_long): Defined.
476 (scop_ivs_can_be_represented): Use it.
477
d97c90ae
SP
4782010-03-10 Sebastian Pop <sebastian.pop@amd.com>
479
480 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
481 graphite-max-bbs-per-function, and loop-block-tile-size.
482 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
483 with "maximum".
484 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
485
a5a59b11
SP
4862010-03-10 Sebastian Pop <sebastian.pop@amd.com>
487
488 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
489 forward declaration.
490 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
491 (add_upper_bounds_from_estimated_nit): New.
492 (build_loop_iteration_domains): Use it.
493
9d198913
SP
4942010-03-09 Sebastian Pop <sebastian.pop@amd.com>
495
496 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
497
1f380314
SP
4982010-03-09 Sebastian Pop <sebastian.pop@amd.com>
499
500 PR middle-end/43306
501 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
502 should be an INTEGER_CST. Also handle CASE_CONVERT.
503 * gcc.dg/graphite/pr43306.c: New.
504
b6bb0094
SP
5052010-03-09 Sebastian Pop <sebastian.pop@amd.com>
506
507 * graphite.c (graphite_initialize): To bound the number of bbs per
508 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
509 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
510 * doc/invoke.texi: Document it.
511
e84aaa33
SP
5122010-03-09 Sebastian Pop <sebastian.pop@amd.com>
513
514 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
515 * graphite-sese-to-poly.h (build_poly_scop): Same.
516
4e7dd376
SP
5172010-03-09 Sebastian Pop <sebastian.pop@amd.com>
518
519 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
520 the number of parameters in the scop. Use as an upper bound
521 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
522 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
523 * doc/invoke.texi: Document it.
524
697f511d
SP
5252010-03-05 Sebastian Pop <sebastian.pop@amd.com>
526
527 * graphite-sese-to-poly.c (add_param_constraints): Use
528 lower_bound_in_type and upper_bound_in_type.
529
456cc718
SP
5302010-03-05 Sebastian Pop <sebastian.pop@amd.com>
531
532 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
533 instead of unsigned_type_node.
534
3640d64c
SP
5352010-03-05 Sebastian Pop <sebastian.pop@amd.com>
536 Reza Yazdani <reza.yazdani@amd.com>
537
538 PR middle-end/43065
539 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
540 on pointer type parameters.
541
542 * gcc.dg/graphite/run-id-4.c: New.
543
5442010-03-05 Sebastian Pop <sebastian.pop@amd.com>
b75d95c9
SP
545
546 PR middle-end/43065
547 * gcc.dg/graphite/run-id-3.c: New.
548
73102986
TG
5492010-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
550 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
551
552 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
553 handle conversions from pointer to integers.
554 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
555 induction variable, to be able to work with code generated by CLooG.
556 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
557 (build_poly_scop): Bail out if we cannot codegen a loop.
558
e3f81db1
TG
5592010-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
560
561 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
562 code generation with gloog_error.
563
c7631a71
SP
5642010-03-04 Sebastian Pop <sebastian.pop@amd.com>
565
566 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
567 Call fold_convert on all the returned values.
568 (expand_scalar_variables_expr): Pass to expand_scalar_variables_ssa_name
569 the type of the resulting expression.
570
b0602cc8
SP
5712010-03-04 Sebastian Pop <sebastian.pop@amd.com>
572
573 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
574 ppl_min_for_le_pointset. Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
575 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
576
b188bb7c
SP
5772010-03-04 Sebastian Pop <sebastian.pop@amd.com>
578
579 * graphite-dependences.c (map_into_dep_poly): Removed.
580 (dependence_polyhedron_1): Use combine_context_id_scat.
581
aa52513e
SP
5822010-03-04 Sebastian Pop <sebastian.pop@amd.com>
583
584 * graphite-poly.h (struct poly_scattering): Add layout documentation.
585 (struct poly_bb): Same.
586 (combine_context_id_scat): New.
587
392c0ce1
SP
5882010-03-02 Sebastian Pop <sebastian.pop@amd.com>
589
590 PR middle-end/42326
591 * sese.c (name_defined_in_loop_p): Return false for default
592 definitions.
593
594 * gcc.dg/graphite/pr42326.c: New.
595
bd7742f8
SP
5962010-02-23 Sebastian Pop <sebastian.pop@amd.com>
597
598 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
599 and clean up the logic.
600
733ff09d
SP
6012010-02-23 Sebastian Pop <sebastian.pop@amd.com>
602
603 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
604 early return.
605
4caa8e21
SP
6062010-02-22 Sebastian Pop <sebastian.pop@amd.com>
607
608 PR middle-end/43083
609 * graphite-scop-detection.c (create_single_exit_edge): Move
610 the call to find_single_exit_edge to....
611 (create_sese_edges): ...here. Don't handle multiple edges
612 exiting the function.
613 (build_graphite_scops): Don't handle multiple edges
614 exiting the function.
615
616 * gcc.dg/graphite/pr43083.c: New.
617
c3382979
SP
6182010-02-22 Sebastian Pop <sebastian.pop@amd.com>
619
b8df8b8b 620 PR middle-end/43097
c3382979
SP
621 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
622 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
623
624 * gfortran.dg/graphite/pr43097.f: New.
625
13cd10a2
SP
6262010-02-22 Sebastian Pop <sebastian.pop@amd.com>
627 Manuel López-Ibáñez <manu@gcc.gnu.org>
628
629 PR middle-end/43140
630 * g++.dg/graphite/pr41305.C: Add -Wno-conversion-null.
631
6322010-02-22 Sebastian Pop <sebastian.pop@amd.com>
143b72a9
SP
633
634 PR middle-end/43026
635 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
636
637 * g++.dg/graphite/pr43026.C: New.
638
4e722673
SP
6392010-02-13 Tobias Grosser <grosser@fim.uni-passau.de>
640
641 * Merge from mainline (154736:156693).
642
c2814aab
SP
6432010-02-11 Sebastian Pop <sebastian.pop@amd.com>
644
645 PR middle-end/43012
646 * gcc.dg/graphite/pr43012.c: New.
be1c3b28 647
c2814aab 6482010-02-10 Sebastian Pop <sebastian.pop@amd.com>
be1c3b28 649
c2814aab 650 * graphite.c (graphite_transform_loops): Re-enable dbg_cnt.
be1c3b28
SP
6512010-02-10 Sebastian Pop <sebastian.pop@amd.com>
652
653 * g++.dg/graphite/pr42930.C: New.
654
141ecc24 6552010-02-10 Sebastian Pop <sebastian.pop@amd.com>
c4c4983e
SP
656
657 PR middle-end/42930
658 * graphite-scop-detection.c (graphite_can_represent_scev): Call
659 graphite_can_represent_init for MULT_EXPR.
660
141ecc24 6612010-02-10 Sebastian Pop <sebastian.pop@amd.com>
a4681954
SP
662
663 PR middle-end/42914
664 PR middle-end/42530
665 * graphite-sese-to-poly.c (remove_phi): New.
666 (translate_scalar_reduction_to_array): Call remove_phi.
667
668 * gcc.dg/graphite/pr42530.c: New.
669 * gcc.dg/graphite/pr42914.c: New.
670
141ecc24 6712010-02-10 Sebastian Pop <sebastian.pop@amd.com>
a1954f72
SP
672
673 PR middle-end/42771
674 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
675 * graphite-clast-to-gimple.h (gloog): Update declaration.
676 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
677 * graphite-poly.h (struct poly_bb): Add missing comments.
678 (struct scop): Add poly_scop_p field.
679 (POLY_SCOP_P): New.
680 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
681 * graphite.c (graphite_transform_loops): Build the polyhedral
682 representation for each scop before code generation.
683 * sese.c (rename_variables_in_operand): Removed.
684 (rename_variables_in_expr): Return the renamed expression.
685 (rename_sese_parameters): New.
686 * sese.h (rename_sese_parameters): Declared.
687
688 * gcc.dg/graphite/pr42771.c: New.
689
0be957dc
SP
6902010-02-07 Sebastian Pop <sebastian.pop@amd.com>
691
692 * gcc.dg/graphite/block-0.c: Call abort for runtime test. Always
693 return 0 from main.
694 * gcc.dg/graphite/block-1.c: Same.
695 * gcc.dg/graphite/block-3.c: Same.
696 * gcc.dg/graphite/block-4.c: Same.
697 * gcc.dg/graphite/block-5.c: Same.
698 * gcc.dg/graphite/block-6.c: Same.
699 * gcc.dg/graphite/block-7.c: Same.
700 * gcc.dg/graphite/interchange-0.c: Same.
701 * gcc.dg/graphite/interchange-1.c: Same.
702 * gcc.dg/graphite/interchange-10.c: Same.
703 * gcc.dg/graphite/interchange-11.c: Same.
704 * gcc.dg/graphite/interchange-12.c: Same.
705 * gcc.dg/graphite/interchange-2.c: Same.
706 * gcc.dg/graphite/interchange-3.c: Same.
707 * gcc.dg/graphite/interchange-4.c: Same.
708 * gcc.dg/graphite/interchange-5.c: Same.
709 * gcc.dg/graphite/interchange-6.c: Same.
710 * gcc.dg/graphite/interchange-7.c: Same.
711 * gcc.dg/graphite/interchange-8.c: Same.
712 * gcc.dg/graphite/interchange-9.c: Same.
713 * gcc.dg/graphite/interchange-mvt.c: Same.
714
4d48441c
SP
7152010-02-07 Sebastian Pop <sebastian.pop@amd.com>
716
717 * gfortran.dg/graphite/id-19.f: New.
718 * gfortran.dg/graphite/pr14741.f90: New.
719 * gfortran.dg/graphite/pr41924.f90: New.
720 * gfortran.dg/graphite/run-id-2.f90: New.
721
8d2220b2
SP
7222010-02-07 Sebastian Pop <sebastian.pop@amd.com>
723
724 PR middle-end/42988
725 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
726 to unknown_dependence.
727 (graphite_legal_transform_dr): Handle the unknown_dependence.
728 (graphite_carried_dependence_level_k): Same.
729
45489e99
SP
7302010-02-07 Sebastian Pop <sebastian.pop@amd.com>
731
732 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
733
28f9f145
SP
7342010-02-05 Sebastian Pop <sebastian.pop@amd.com>
735 Konrad Trifunovic <konrad.trifunovic@inria.fr>
736
737 PR middle-end/42637
738 * graphite-dependences.c (build_lexicographical_constraint): Return
739 a union of dependence polyhedra.
740 (dependence_polyhedron_1): Adapt for build_lexicographical_constraint.
741
45489e99
SP
742 * gcc.dg/graphite/block-0.c: Enable runtime check. XFAILed.
743 * gcc.dg/graphite/block-4.c: Same.
744 * gcc.dg/graphite/block-7.c: Same.
745 * gcc.dg/graphite/interchange-12.c: Same.
746 * gcc.dg/graphite/interchange-mvt.c: Same.
747 * gfortran.dg/graphite/interchange-1.f: XFAILed.
748 * gfortran.dg/graphite/interchange-3.f90: XFAILed.
749 * gfortran.dg/graphite/run-id-1.f: New testcase for PR42637.
28f9f145 750
4d0bf08b
SP
7512010-02-03 Sebastian Pop <sebastian.pop@amd.com>
752
45489e99 753 * gcc.dg/graphite/interchange-12.c: Return 0 to avoid
4d0bf08b
SP
754 the execution check to FAIL. This testcase is miscompiled by Graphite
755 and the check should be re-enabled.
45489e99
SP
756 * gcc.dg/graphite/interchange-mvt.c: Same.
757 * gcc.dg/graphite/block-0.c: Same.
758 * gcc.dg/graphite/block-4.c: Same.
759 * gcc.dg/graphite/block-7.c: Same.
4d0bf08b 760
54cf8879
SP
7612010-02-03 Sebastian Pop <sebastian.pop@amd.com>
762
45489e99
SP
763 * gcc.dg/graphite/interchange-mvt.c: Un-XFAILed.
764 * gcc.dg/graphite/scop-0.c: Fix spaces.
765 * gfortran.dg/graphite/block-1.f90: Rewrite expected output.
766 * gfortran.dg/graphite/block-2.f: Same.
767 * gfortran.dg/graphite/block-3.f90: Same.
768 * gfortran.dg/graphite/block-4.f90: Same.
769 * gfortran.dg/graphite/interchange-1.f: Un-XFAILed.
770 * gfortran.dg/graphite/interchange-3.f90: Un-XFAILed.
54cf8879 771
b5eb099f
SP
7722010-02-03 Sebastian Pop <sebastian.pop@amd.com>
773
774 * graphite-dependences.c (new_poly_ddr): Initialize PDDR_KIND and
775 PDDR_ORIGINAL_SCATTERING_P.
776 (pddr_is_empty): Rewritten.
777 (print_dependence_polyhedron_layout): New.
778 (print_pddr): New.
779 (debug_pddr): New.
780 (build_alias_set_powerset): Moved up.
781 (poly_drs_may_alias_p): Moved up.
782 (lexicographically_gt_p): Removed.
783 (build_lexicographically_gt_constraint): Renamed
784 build_lexicographical_constraint, reimplemented.
785 (dependence_polyhedron_1): Simplified parameters.
786 (dependence_polyhedron): Same. Keep along empty PDDRs
787 to make efficient use of the cache.
788 (reduction_dr_p): Compute the PBBs don't pass them as parameters.
789 (graphite_legal_transform_dr): Rewritten.
790 (graphite_legal_transform_bb): Pass fewer arguments to
791 graphite_legal_transform_dr.
792 (graphite_carried_dependence_level_k): Simplified implementation.
793 (dot_original_deps_stmt_1): Call dependence_polyhedron.
794 (dot_transformed_deps_stmt_1): Same.
795 (dot_original_deps): Same.
796 (dot_transformed_deps): Same.
797 * graphite-dependences.h (struct poly_ddr): Added a new field
798 original_scattering_p.
799 (PDDR_ORIGINAL_SCATTERING_P): New.
800 (print_pddr): Declared.
801 (debug_pddr): Declared.
802 * graphite-ppl.c: Clarify comment.
803 * sese.h (print_gimple_bb): Removed unused declaration.
804 (debug_gbb): Same.
805
64630e61
SP
8062010-02-03 Sebastian Pop <sebastian.pop@amd.com>
807
45489e99
SP
808 * g++.dg/graphite/graphite.exp: Rewritten.
809 * gcc.dg/graphite/graphite.exp: Rewritten.
810 * gfortran.dg/graphite/graphite.exp: Rewritten.
811 * gcc.dg/graphite/block-0.c: Added runtime test.
812 * gcc.dg/graphite/block-1.c: Same.
813 * gcc.dg/graphite/block-3.c: Same.
814 * gcc.dg/graphite/block-4.c: Same.
815 * gcc.dg/graphite/block-5.c: Same.
816 * gcc.dg/graphite/block-6.c: Same.
817 * gcc.dg/graphite/block-7.c: Same.
818 * gcc.dg/graphite/interchange-0.c: Same.
819 * gcc.dg/graphite/interchange-1.c: Same.
820 * gcc.dg/graphite/interchange-10.c: Same.
821 * gcc.dg/graphite/interchange-11.c: Same.
822 * gcc.dg/graphite/interchange-12.c: Same.
823 * gcc.dg/graphite/interchange-2.c: Same.
824 * gcc.dg/graphite/interchange-3.c: Same.
825 * gcc.dg/graphite/interchange-4.c: Same.
826 * gcc.dg/graphite/interchange-5.c: Same.
827 * gcc.dg/graphite/interchange-6.c: Same.
828 * gcc.dg/graphite/interchange-7.c: Same.
829 * gcc.dg/graphite/interchange-8.c: Same.
830 * gcc.dg/graphite/interchange-9.c: Same.
831 * gcc.dg/graphite/interchange-mvt.c: Same.
832 * gcc.dg/graphite/run-id-2.c: Remove useless dg-do run.
64630e61 833
4c8f3c48
RU
8342010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
835
836 * graphite-scop-detection.c (dot_all_scops): Make calls to dot run in
837 background.
838
8392010-01-22 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
840
841 * common.opt: Add -fgraphite-cloog-opts.
842 * graphite-clast-to-gimple.c (set_cloog_options): Same.
843 * opts.c (decode_options): Same.
844
86e4d552
SP
8452010-01-20 Sebastian Pop <sebastian.pop@amd.com>
846
45489e99
SP
847 * gcc.dg/graphite/id-17.c: New.
848 * gcc.dg/graphite/pr41888.c: New.
849 * gcc.dg/graphite/scop-22.c: New.
850 * gfortran.dg/graphite/pr40982.f90: New.
86e4d552 851
3070ac15
SP
8522010-01-20 Sebastian Pop <sebastian.pop@amd.com>
853
854 * graphite-dependences.c: Clarify comments.
855 (build_pddr): Add an extra parameter direction.
856 (graphite_legal_transform_dr): Use build_pddr.
857 (dot_original_deps_stmt_1): Update use of build_pddr.
858 (dot_transformed_deps_stmt_1): Same.
859 (dot_original_deps): Same.
860 (dot_transformed_deps): Same.
861
45489e99
SP
862 * gcc.dg/graphite/interchange-12.c: New.
863 * gcc.dg/graphite/block-7.c: New.
3070ac15 864
a7ed6c90
SP
8652010-01-20 Sebastian Pop <sebastian.pop@amd.com>
866
867 * graphite-dependences.c (pddr_original_scattering): Renamed build_pddr.
868 (pddr_transformed_scattering): Removed.
869 (graphite_legal_transform_dr): Use build_pddr.
870 (dot_original_deps_stmt_1): Same.
871 (dot_transformed_deps_stmt_1): Same.
872 (dot_original_deps): Same.
873 (dot_transformed_deps): Same.
874
e65a7579
SP
8752010-01-20 Sebastian Pop <sebastian.pop@amd.com>
876
877 * graphite-dependences.c (lexicographically_gt_p): Add comments.
878 (build_lexicographically_gt_constraint): Same.
879 (dependence_polyhedron_1): Same.
880 (dependence_polyhedron): Same.
881
7cbd4c5e
SP
8822010-01-20 Sebastian Pop <sebastian.pop@amd.com>
883
884 * graphite-dependences.c (build_pairwise_scheduling_equality): Removed.
885 (build_pairwise_scheduling_inequality): Renamed build_pairwise_scheduling.
886 (lexicographically_gt_p): Change type of direction to int.
887 (build_lexicographically_gt_constraint): Same.
888 (dependence_polyhedron_1): Same.
889 (dependence_polyhedron): Same.
890 (pddr_original_scattering): Use integers for direction.
891 (pddr_transformed_scattering): Same.
892 (graphite_legal_transform_dr): Same.
893 (graphite_carried_dependence_level_k): Same.
894
429ba740
SP
8952010-01-20 Sebastian Pop <sebastian.pop@amd.com>
896
897 * graphite-dependences.c (build_pairwise_constraint): Renamed
898 ppl_build_relation. Moved...
899 (dr_equality_constraints): Use ppl_build_relation.
900 (build_pairwise_scheduling_equality): Same.
901 (build_pairwise_scheduling_inequality): Same.
902 * graphite-ppl.c (ppl_build_relation): ...here.
903 * graphite-ppl.h (ppl_build_relation): Declared.
904
3c7c0158
SP
9052010-01-14 Sebastian Pop <sebastian.pop@amd.com>
906
907 PR middle-end/42681
908 * graphite-clast-to-gimple.c (gloog_error): New static variable.
909 (clast_to_gcc_expression): Do not build MULT_EXPR of POINTER_TYPE_P.
910 Set gloog_error when such an expression failed to be built.
911 (translate_clast): Early return when gloog_error is set.
912 (gloog): Clear gloog_error. When gloog_error is set, call
913 set_ifsese_condition to enable the original code. Return the status
914 of the code generation based on gloog_error.
915 * sese.c (set_ifsese_condition): New.
916 * sese.h (set_ifsese_condition): Declared.
917
45489e99 918 * g++.dg/graphite/pr42681.C: New.
3c7c0158 919
a7bf45de
SP
9202010-01-14 Sebastian Pop <sebastian.pop@amd.com>
921
922 PR middle-end/42732
923 * graphite-clast-to-gimple.c (gloog): Call scev_reset_htab and
924 rename_nb_iterations.
925 * sese.c (rename_variables_in_operand): New.
926 (rename_variables_in_expr): New.
927 (rename_nb_iterations): New.
928 (sese_adjust_liveout_phis): Update the rename_map.
929 * sese.h (rename_nb_iterations): Declared.
930 * tree-scalar-evolution.c (scev_reset_htab): New.
931 (scev_reset): Call scev_reset_htab.
932 * tree-scalar-evolution.h (scev_reset_htab): Declared.
933
45489e99 934 * gfortran.dg/graphite/pr42732.f: New.
a7bf45de 935
e1496917
SP
9362010-01-08 Sebastian Pop <sebastian.pop@amd.com>
937
938 PR middle-end/42393
939 * graphite-clast-to-gimple.c: Fix formatting.
940 * sese.c (defined_in_loop_p): Renamed name_defined_in_loop_p.
941 (expr_defined_in_loop_p): New.
942 (add_loop_exit_phis): Also handle full expressions: remove from
943 the rename_map the expressions defined in the loop that we're closing.
944
45489e99
SP
945 * gfortran.dg/graphite/pr42393-1.f90: New.
946 * gfortran.dg/graphite/pr42393.f90: Add new flags
e1496917
SP
947 -fno-loop-block -fno-loop-interchange -fno-loop-strip-mine to also
948 make this testcase useful in the Graphite branch.
949
c8ae0613
SP
9502010-01-08 Sebastian Pop <sebastian.pop@amd.com>
951
952 * graphite-scop-detection.c (exclude_component_ref): Removed.
953 (is_simple_operand): Removed.
954 (stmt_simple_for_scop_p): Remove use of is_simple_operand.
955
4e98c66c
SP
9562010-01-07 Sebastian Pop <sebastian.pop@amd.com>
957
958 PR middle-end/42221
959 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
960 the array indexing of ADDR_EXPRs.
961
45489e99 962 * gcc.dg/graphite/pr42221.c: New.
4e98c66c 963
fd4a56ff
SP
9642010-01-07 Sebastian Pop <sebastian.pop@amd.com>
965
966 PR middle-end/42521
967 * graphite.c (graphite_finalize): Call scev_reset.
968 (graphite_transform_loops): Do not call scev_reset between the code
969 generation of scops.
970
45489e99 971 * gcc.dg/graphite/pr42521.c: New.
fd4a56ff 972
eaffa762
SP
9732010-01-07 Sebastian Pop <sebastian.pop@amd.com>
974
975 * graphite-interchange.c (memory_stride_in_loop): Renamed
976 pdr_stride_in_loop.
977 (memory_strides_in_loop): Renamed memory_strides_in_loop_1.
978 (memory_strides_in_loop): Memoize the memory strides per loop.
979 (lst_interchange_profitable_p): Do not initialize to zero the memory
980 strides.
981 * graphite-poly.h (struct lst): Add a field memory_strides.
982 (LST_LOOP_MEMORY_STRIDES): New.
983 (new_lst_loop): Initialize LST_LOOP_MEMORY_STRIDES to -1.
984 (free_lst): Clear LST_LOOP_MEMORY_STRIDES.
985
bf69e754
SP
9862010-01-07 Sebastian Pop <sebastian.pop@amd.com>
987
988 * graphite-interchange.c (memory_strides_in_loop_depth): Renamed
989 memory_strides_in_loop. Gather memory strides on a whole loop.
990 (pbb_interchange_profitable_p): Renamed lst_interchange_profitable_p.
991 (lst_interchange_profitable_p): Removed.
992 (lst_try_interchange_loops): Call lst_interchange_profitable_p.
993
9fa29a09
SP
9942010-01-07 Sebastian Pop <sebastian.pop@amd.com>
995
996 Revert patch 2009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
997 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
998 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
999 Remove context_loop and level.
1000
11d6ea5e
SP
10012010-01-07 Richard Guenther <rguenther@suse.de>
1002
1003 PR tree-optimization/42641
1004 * sese.c (rename_map_elt_info): Use the SSA name version, do
1005 not hash pointers.
1006
10072010-01-06 Sebastian Pop <sebastian.pop@amd.com>
1008
1009 * graphite-blocking.c (scop_do_block): Print "SCoP will be loop
1010 blocked" only when both the strip mine and the interchange have
1011 been applied.
1012
45489e99
SP
1013 * gcc.dg/graphite/block-2.c: Removed.
1014 * gcc.dg/graphite/block-3.c: Add scan pattern.
1015 * gcc.dg/graphite/block-4.c: Same.
1016 * gcc.dg/graphite/block-5.c: Same.
1017 * gcc.dg/graphite/block-6.c: Same.
11d6ea5e 1018
556afcdc
SP
10192010-01-06 Sebastian Pop <sebastian.pop@amd.com>
1020
1021 * graphite-clast-to-gimple.c (save_clast_name_index): Free slot
1022 before allocating a new one.
1023 (copy_renames): Check that slot is not NULL.
1024 (mark_bb_with_pbb): Same.
1025 (compute_cloog_iv_types_1): Same.
1026 * graphite-interchange.c (lst_perfect_nestify): Free the before,
1027 nest, and after LSTs.
1028 (lst_try_interchange_loops): Same.
1029
e68c3c6c
SP
10302010-01-05 Sebastian Pop <sebastian.pop@amd.com>
1031
1032 PR middle-end/42178
1033 * graphite-interchange.c (lst_try_interchange_loops): Do not return
1034 the before, nest, and after LSTs.
1035 (lst_try_interchange): Removed.
1036 (lst_interchange_select_inner): Do not iterate over the LSTs if they
1037 were modified.
1038 (lst_interchange_select_outer): Apply interchange on the outer loop
1039 until there are no more changes in the inner loops.
1040
a84a556d
SP
10412009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1042
1043 Revert patch fixing PR middle-end/42221.
1044
10452009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1046
1047 PR middle-end/42180
1048 * graphite-sese-to-poly.c (follow_ssa_with_commutative_ops): Handle
1049 GIMPLE_CALL.
1050
45489e99 1051 * gfortran.dg/graphite/pr42180.f90: Add compile flags.
a84a556d 1052
b147df0b
SP
10532009-12-18 Sebastian Pop <sebastian.pop@amd.com>
1054
1055 PR middle-end/42180
1056 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split blocks
1057 that contain only one statement.
1058
45489e99 1059 * gfortran.dg/graphite/pr42180.f90: New.
a84a556d 1060
ce20f9d6
SP
10612009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1062
1063 PR middle-end/42393
45489e99 1064 * gfortran.dg/graphite/pr42393.f90: New.
ce20f9d6 1065
d2a271ac
SP
10662009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1067
1068 PR middle-end/42186
45489e99 1069 * gfortran.dg/graphite/pr42186.f90: New.
d2a271ac 1070
403ebc7e
SP
10712009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1072
1073 PR middle-end/42205
1074 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array_for_stmt):
1075 Insert the reduction copy in the same block as the phi node.
1076 (follow_ssa_with_commutative_ops): Handle GIMPLE_NOPs.
1077
45489e99
SP
1078 * gcc.dg/graphite/pr42205-1.c: New.
1079 * gcc.dg/graphite/pr42205-2.c: New.
403ebc7e
SP
1080
10812009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1082
1083 PR middle-end/42221
1084 * sese.c (expand_scalar_variables_expr): Follow the SSA links into
1085 the array indexing of ADDR_EXPRs.
1086
45489e99 1087 * gcc.dg/graphite/pr42221.c: New.
403ebc7e 1088
070ba483
SP
10892009-12-17 Sebastian Pop <sebastian.pop@amd.com>
1090
1091 PR middle-end/42178
1092 PR middle-end/42334
1093 * graphite-interchange.c (lst_try_interchange): Do not modify OUTER
1094 index. Call lst_interchange_select_inner only once.
1095 (lst_interchange_select_inner): Update use of lst_try_interchange.
1096 (lst_interchange_select_outer): Update.
1097
10982009-12-15 Sebastian Pop <sebastian.pop@amd.com>
1099
1100 PR middle-end/42178
1101 PR middle-end/42334
1102 * graphite-interchange.c (lst_try_interchange): Do not increment the
1103 the OUTER index when there is no AFTER kernel. Do not increment the
1104 OUTER index for after processing the AFTER kernel.
1105 (lst_interchange_select_inner): Call lst_try_interchange only on loops.
1106 (lst_interchange_select_outer): Do not pass in a pointer to the OUTER
1107 index. Do not pass to lst_interchange_select_inner the OUTER index.
1108 (scop_do_interchange): Update use of lst_interchange_select_outer.
1109
45489e99 1110 * gfortran.dg/graphite/graphite.exp
070ba483 1111 (DEFAULT_FLAGS_GRAPHITE_IDENTITY): Remove -fdump-tree-graphite-all.
45489e99 1112 * gfortran.dg/graphite/interchange-1.f: Add comment. Clean
070ba483 1113 the graphite dump file.
45489e99
SP
1114 * gfortran.dg/graphite/interchange-2.f: Same.
1115 * gfortran.dg/graphite/pr42334-1.f: New.
070ba483
SP
1116
11172009-12-15 Sebastian Pop <sebastian.pop@amd.com>
1118
1119 PR middle-end/42178
1120 PR middle-end/42334
1121 * graphite-interchange.c (lst_perfect_nestify): Reset to NULL the LSTs
1122 that are empty.
1123 (lst_do_interchange_1): Renamed lst_interchange_select_inner.
1124 (lst_try_interchange): Reimplemented.
1125 (lst_interchange_select_inner): Same.
1126 (lst_do_interchange): Renamed lst_interchange_select_outer.
1127 Reimplemented.
1128 (scop_do_interchange): Update use of lst_interchange_select_outer.
1129
45489e99
SP
1130 * g++.dg/graphite/pr42130.C: Add -fgraphite-identity.
1131 * gcc.dg/graphite/block-0.c: Un-XFAILed.
1132 * gcc.dg/graphite/pr42211.c: New.
1133 * gfortran.dg/graphite/pr42334.f90: New.
070ba483 1134
4b216ab0
SP
11352009-12-14 Sebastian Pop <sebastian.pop@amd.com>
1136
1137 PR middle-end/42181
1138 * graphite-scop-detection.c (graphite_can_represent_scev): Handle more
1139 carefully PLUS_EXPR, MINUS_EXPR, and MULT_EXPR.
1140
45489e99 1141 * gfortran.dg/graphite/pr42181.f90: New.
4b216ab0 1142
c880097d
SP
11432009-12-12 Sebastian Pop <sebpop@gmail.com>
1144
1145 PR middle-end/42284
1146 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Call
1147 insert_out_of_ssa_copy_on_edge for anything else than SSA_NAMEs.
1148 (detect_commutative_reduction_arg): Simplified.
1149 (detect_commutative_reduction): Early return when the argument of
1150 the close phi is not of an SSA_NAME.
1151
45489e99 1152 * gcc.dg/graphite/pr42284.c: New.
c880097d
SP
1153
11542009-12-11 Alexander Monakov <amonakov@ispras.ru>
1155
1156 * dbgcnt.def (graphite_scop): New counter.
1157 * graphite.c: Include dbgcnt.h
1158 (graphite_transform_loops): Use new counter to limit transformations.
1159
d505015a
SP
11602009-12-08 Sebastian Pop <sebpop@gmail.com>
1161
1162 PR middle-end/42285
1163 * graphite-scop-detection.c (graphite_can_represent_init): Also
1164 handle more complex MULT_EXPRs containing parameters by recursion
1165 on the structure.
1166
45489e99 1167 * gfortran.dg/graphite/pr42285.f90: New.
d505015a
SP
1168
11692009-12-01 Tobias Grosser <grosser@fim.uni-passau.de>
1170
45489e99 1171 * g++.dg/graphite/pr42130.C: Fix type.
d505015a 1172
ed807d06
AM
11732009-11-29 Alexander Monakov <amonakov@gcc.gnu.org>
1174
45489e99
SP
1175 * g++.dg/graphite/pr42130.C: Correct testcase.
1176
11772009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
1178
1179 * Merge from mainline (154493:154734).
1180
11812009-11-28 Tobias Grosser <grosser@fim.uni-passau.de>
1182
1183 * Merge from mainline (151362:154491).
ed807d06 1184
7c246f5e
TG
11852009-11-24 Tobias Grosser <grosser@fim.uni-passau.de>
1186
1187 * graphite-clast-to-gimple.c (try_mark_loop_parallel,
1188 graphite_create_new_loop_guard, translate_clast_for): Fix comments.
1189
0dd91484
TG
11902009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1191
1192 PR middle-end/42130
1193 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard,
1194 translate_clast_for_loop): New.
1195 (translate_clast_for): Add a condition around the loop, to do not
1196 execute loops with zero iterations.
45489e99
SP
1197 * g++.dg/graphite/pr42130.C: New.
1198 * gcc.dg/graphite/pr35356-2.c: Adapt.
0dd91484 1199
fd2d813d
TG
12002009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1201
1202 * graphite-clast-to-gimple.c (try_mark_loop_parallel): New.
1203 (translate_clast_for, translate_clast_guard, translate_clast, gloog):
1204 Remove context_loop and level.
1205
9016166f
TG
12062009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1207
1208 * graphite-clast-to-gimple.c (translate_clast_user,
1209 translate_clast_for, translate_clast_guard): Simplify and move common
1210 elements to translate_clast().
1211 (translate_clast): Simplify and get common elements.
1212
e1f9c1cd
TG
12132009-11-23 Tobias Grosser <grosser@fim.uni-passau.de>
1214
1215 * graphite-clast-to-gimple.c (translate_clast_user,
1216 translate_clast_for, translate_clast_guard): Split out of
1217 translate_clast.
1218
7a521ff2
TG
12192009-11-21 Tobias Grosser <grosser@fim.uni-passau.de>
1220
1221 * graphite-clast-to-gimple.c (clast_name_index, new_clast_name_index,
1222 clast_name_to_index, save_clast_name_index, debug_clast_name_index,
1223 debug_clast_name_indexes_1, debug_clast_name_indexes,
1224 clast_name_index_elt_info, eq_clast_name_indexes): Moved from sese.h.
1225 (clast_name_to_gcc, clast_to_gcc_expression,
1226 clast_to_gcc_expression_red, gcc_type_for_clast_expr,
1227 gcc_type_for_clast_eq, graphite_translate_clast_equation,
1228 graphite_create_guard_cond_expr, graphite_create_new_loop,
1229 translate_clast): Add params_index.
1230 (initialize_cloog_names): Create parameter strings from scratch, do
1231 not reference other strings.
1232 (create_params_index): New.
1233 (gloog): Initialize params_index.
1234 * graphite-scop-detection (free_scops_1): Removed.
1235 (limit_scops): Use normal free_scops.
1236 * graphite-sese-to-poly.c (save_var_names): Removed.
1237 (parameter_index_in_region): Do not initialize SESE_PARAM_NAMES
1238 and SESE_PARAMS_INDEX.
1239 * sese.c (new_sese, free_sese): Dito.
1240 * sese.h (struct sese): Remove params_index, params_names.
1241 (SESE_PARAMS_INDEX, SESE_PARAMS_NAMES): Removed.
1242
ca11b093
SP
12432009-11-20 Sebastian Pop <sebastian.pop@amd.com>
1244
1245 Revert the following patch from 2009-09-14:
1246 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
1247 tree-scalar-evolution.h, and then tree-data-ref.h.
1248 * graphite-clast-to-gimple.c: Same.
1249 * graphite-dependences.c: Same.
1250 * graphite-interchange.c: Same.
1251 * graphite-poly.c: Same.
1252 * graphite-scop-detection.c: Same.
1253 * graphite-sese-to-poly.c: Same.
1254 * graphite.c: Same.
1255 * lambda-code.c: Same.
1256 * matrix-reorg.c: Same.
1257 * tree-data-ref.c: Same.
1258 * tree-if-conv.c: Same.
1259 * tree-loop-distribu: Same.: Same.
1260 * tree-loop-linear.c: Same.
1261 * tree-parloops.c: Same.
1262 * tree-predcom.c: Same.
1263 * tree-vect-patterns.c: Same.
1264
8a9e9475
SP
12652009-11-20 Sebastian Pop <sebastian.pop@amd.com>
1266
1267 Revert patch from 2009-09-14.
1268 * tree-ssa-loop.c (gate_graphite_transforms): Re-enable Graphite
1269 passes at -O1 and below.
1270
4bf4e169
SP
12712009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1272
1273 PR middle-end/40281
45489e99 1274 * gcc.dg/graphite/pr40281.c: New.
4bf4e169
SP
1275
1276 * tree-scalar-evolution.c (instantiate_scev_poly): Base and stride
1277 evolutions should not variate in inner loops.
1278
12aec731
SP
12792009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1280
1281 PR middle-end/42050
45489e99 1282 * gfortran.dg/graphite/pr42050.f90: New.
12aec731 1283
aec12420
SP
12842009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1285
1286 * graphite-interchange.c (memory_strides_in_loop_depth): New.
1287 (pbb_interchange_profitable_p): Call memory_strides_in_loop_depth.
1288
25e20d33
SP
12892009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1290
1291 * graphite-blocking.c (scop_do_block): New.
1292 * graphite-poly.c (apply_poly_transforms): Call scop_do_block.
1293 * graphite-poly.h (scop_do_block): Declared.
1294
e3bde9f4
SP
12952009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1296
1297 * graphite-blocking.c (pbb_strip_mine_profitable_p): The parameter
1298 depth is the loop nesting depth in the LST. Call psct_dynamic_dim
1299 to transform depth into the time_depth before calling
1300 pbb_number_of_iterations_at_time.
1301 (lst_do_strip_mine): Use a scalar variable instead of recomputing
1302 lst_depth.
1303
27e432be
SP
13042009-11-18 Sebastian Pop <sebastian.pop@amd.com>
1305
1306 Reverted the patch for "scattering permutations" from 2009-10-28.
1307
1308 * graphite-poly.c (print_permutation): New.
1309 (debug_permutation): New.
1310 (new_poly_bb): Initialize PBB_PERMUTATION.
1311 (free_poly_bb): Free PBB_PERMUTATION.
1312 * graphite-poly.h (pbb_permutation_elt_p): Declared.
1313 (struct pbb_permutation_elt): New.
1314 (PBB_PERMUTATION_ELT_STRIDE): New.
1315 (PBB_PERMUTATION_ELT_STRIDED_P): New.
1316 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
1317 (new_pbb_permutation_elt): New.
1318 (pbb_permutation_elt_free): New.
1319 (struct poly_bb): Add field permutation.
1320 (PBB_PERMUTATION): New.
1321 (print_permutation): Declared.
1322 (debug_permutation): Declared.
1323
2bc529bf
KT
13242009-11-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
1325
1326 * graphite-interchange.c (build_partial_difference): New.
1327 (memory_stride_in_loop): Refactored the computation of
1328 equality constraints into build_partial_difference function.
1329 Added support for debugging stride computations.
1330
8c54631d
SP
13312009-11-03 Sebastian Pop <sebastian.pop@amd.com>
1332
1333 * graphite-clast-to-gimple.c (gloog): Free if_region,
1334 if_region->true_region, and if_region->region.
1335 * sese.c (if_region_set_false_region): Free if_region->false_region.
1336 (create_if_region_on_edge): Do not use GGC_NEW.
1337 (move_sese_in_condition): Remove useless initialization.
1338
7b7f2ca7
SP
13392009-11-03 Sebastian Pop <sebastian.pop@amd.com>
1340
1341 * graphite-interchange.c (lst_perfect_nestify): Pass 3 parameters
1342 for the loops created by the loop distribution. Do not modify the
1343 input LSTs.
1344 (lst_try_interchange_loops): Same. Use a temporary LST for the
1345 transformed schedule. Call lst_update_scattering before data
1346 dependence analysis.
1347 (lst_try_interchange): Pass an extra parameter INDEX.
1348 (lst_do_interchange_1): New.
1349 (lst_do_interchange): Call lst_do_interchange_1.
1350 (scop_do_interchange): Call lst_update_scattering.
1351 * graphite-poly.c (apply_poly_transforms): Do not call
1352 lst_update_scattering.
1353 * graphite-poly.h (lst_pred): New.
1354 (lst_succ): New.
1355 (lst_find_first_pbb): Return NULL when not found.
1356 (lst_empty_p): New.
1357 (lst_insert_in_sequence): Allow LST1 to be NULL.
1358 (lst_replace): New.
1359 (lst_substitute_3): New.
1360 * gcc.dg/graphite/interchange-1.c: XFail.
1361 * gcc.dg/graphite/interchange-8.c: XFail.
1362 * gcc.dg/graphite/interchange-11.c: XFail.
1363
6119e7d5
SP
13642009-10-30 Sebastian Pop <sebastian.pop@amd.com>
1365
1366 * graphite-interchange.c (lst_perfectly_nested_p): New.
1367 (lst_perfect_nestify): New.
1368 (lst_try_interchange_loops): Call store_lst_schedule,
1369 lst_perfectly_nested_p, lst_perfect_nestify and restore_lst_schedule.
1370 (scop_do_interchange): Avoid redundant legality test.
1371 Call lst_do_interchange on a copy of SCOP_TRANSFORMED_SCHEDULE.
1372 * graphite-poly.c (apply_poly_transforms): Call lst_update_scattering.
1373 * graphite-poly.h (psct_static_dim): New.
1374 (lst_dewey_number_at_depth): New.
1375 (lst_find_pbb): Restructured.
1376 (lst_find_first_pbb): Restructured.
1377 (lst_find_last_pbb): New.
1378 (lst_contains_p): New.
1379 (lst_contains_pbb): New.
1380 (lst_create_nest): New.
1381 (lst_remove_from_sequence): New.
1382 (pbb_update_scattering): New.
1383 (lst_update_scattering_under): New.
1384 (lst_update_scattering_seq): New.
1385 (lst_update_scattering): New.
1386 (lst_insert_in_sequence): New.
1387 (lst_distribute_lst): New.
1388 (lst_remove_all_before_including_pbb): New.
1389 (lst_remove_all_before_excluding_pbb): New.
1390
431f3f22
SP
13912009-10-30 Sebastian Pop <sebastian.pop@amd.com>
1392
1393 * tree-ssa-loop-niter.c (finite_loop_p): Do not call twice
1394 get_loop_exit_edges.
1395
4c768046
SP
13962009-10-30 Sebastian Pop <sebastian.pop@amd.com>
1397
1398 * graphite-poly.c (pbb_remove_duplicate_pdrs): Free collapsed.
1399
5fa8514e
SP
14002009-10-28 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1401
1402 * graphite-poly.c (print_permutation): New.
1403 (debug_permutation): New.
1404 (new_poly_bb): Initialize PBB_PERMUTATION.
1405 (free_poly_bb): Free PBB_PERMUTATION.
1406 * graphite-poly.h (pbb_permutation_elt_p): Declared.
1407 (struct pbb_permutation_elt): New.
1408 (PBB_PERMUTATION_ELT_STRIDE): New.
1409 (PBB_PERMUTATION_ELT_STRIDED_P): New.
1410 (PBB_PERMUTATION_ELT_TIME_DIMENSION): New.
1411 (new_pbb_permutation_elt): New.
1412 (pbb_permutation_elt_free): New.
1413 (struct poly_bb): Add field permutation.
1414 (PBB_PERMUTATION): New.
1415 (print_permutation): Declared.
1416 (debug_permutation): Declared.
1417
6c6f84d7
SP
14182009-10-26 Sebastian Pop <sebastian.pop@amd.com>
1419
1420 * graphite-clast-to-gimple.c (gloog): Do not call
1421 sese_reset_aux_in_loops.
1422 * graphite-sese-to-poly.c (build_loop_iteration_domains): Pass an
1423 extra argument for domains. Do not use loop->aux.
1424 (build_scop_iteration_domain): Initialize and free domains, pass it
1425 to build_loop_iteration_domains and extract the information from
1426 domains. Do not use loop->aux.
1427 * sese.c (sese_reset_aux_in_loops): Removed.
1428 * sese.h (sese_reset_aux_in_loops): Removed.
1429
585b3e19
SP
14302009-10-26 Sebastian Pop <sebastian.pop@amd.com>
1431
1432 * graphite-clast-to-gimple.c (find_pbb_via_hash): Moved up.
1433 (dependency_in_loop_p): Same.
1434 (translate_clast): Do not use loop->aux. Initialize
1435 loop->can_be_parallel.
1436 (mark_loops_parallel): Removed.
1437 * graphite-clast-to-gimple.h (mark_loops_parallel): Removed.
1438 * graphite.c (free_aux_in_new_loops): Removed.
1439 (graphite_finalize): Do not call free_aux_in_new_loops.
1440 (graphite_transform_loops): Do not call mark_loops_parallel.
1441
14422009-10-26 Li Feng <nemokingdom@gmail.com>
a7ed27ac
LF
1443
1444 * graphite-clast-to-gimple.c (get_stmtfor_depth): Removed.
1445 (translate_clast): Pass an extra parameter LEVEL.
1446 Call get_scattering_level.
1447 * graphite-clast-to-gimple.h (get_scattering_level): New.
1448
8e6ef139
SP
14492009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1450
1451 * cfgloop.c (alloc_loop): Initialize loop->single_iv.
1452 * cfgloop.h (struct loop): New field single_iv.
1453
1454 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): Do not use
1455 loop->aux anymore: use loop->single_iv.
1456 (graphite_loop_normal_form): Moved...
1457 (build_graphite_loop_normal_form): Removed.
1458 (gloog): Do not call build_graphite_loop_normal_form.
1459 (free_aux_in_new_loops): Moved...
1460 (mark_loops_parallel): Restructure.
1461 * graphite-clast-to-gimple.h (free_aux_in_new_loops): Do not declare.
1462 * graphite-sese-to-poly.c (graphite_loop_normal_form): ...here.
1463 (scop_canonicalize_loops): New.
1464 (build_poly_scop): Call scop_canonicalize_loops.
1465 * graphite.c (free_aux_in_new_loops): ...here.
1466
e6dd91b2
SP
14672009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1468
1469 * g++.dg/graphite/graphite.exp: Add the same rules as in
1470 gcc.dg/graphite/graphite.exp.
1471
47fb473f
SP
14722009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1473
1474 * g++.dg/graphite/id-1.C: New.
1475
63858ac6
SP
14762009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1477
1478 * graphite-sese-to-poly.c (create_zero_dim_array): Pass an extra
1479 argument base_name.
1480 (rewrite_close_phi_out_of_ssa): Update use of create_zero_dim_array.
1481 (rewrite_phi_out_of_ssa): Same.
1482 (rewrite_cross_bb_scalar_deps): Same.
1483 (translate_scalar_reduction_to_array): Same.
1484
decfe536
SP
14852009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1486
1487 * graphite-sese-to-poly.c (build_scop_drs): Disable call to
1488 dump_alias_graphs.
1489
0d5ef2a9
SP
14902009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1491
1492 * graphite-sese-to-poly.c (dump_alias_graphs): New.
1493 (build_scop_drs): Call dump_alias_graphs.
1494
f70de156
SP
14952009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1496
1497 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_SCHEDULE,
1498 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1499 (free_scop): Call free_lst on SCOP_ORIGINAL_SCHEDULE,
1500 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
1501 * graphite-poly.h (free_lst): New.
1502 (store_lst_schedule): Free SCOP_SAVED_SCHEDULE.
1503 (restore_lst_schedule): Free SCOP_TRANSFORMED_SCHEDULE.
1504
74715a9b
SP
15052009-10-22 Sebastian Pop <sebastian.pop@amd.com>
1506
1507 * graphite-poly.h (struct scop): Add a field saved_schedule.
1508 (SCOP_SAVED_SCHEDULE): New.
1509 (store_lst_schedule): New.
1510 (restore_lst_schedule): New.
1511 (store_scattering): Call store_lst_schedule.
1512 (restore_scattering): Call restore_lst_schedule.
1513
fb00d28e
SP
15142009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1515
1516 * graphite-sese-to-poly.c (free_data_refs_aux): Fix formatting.
1517 (pdr_add_alias_set): Same.
1518 (build_poly_dr): Same.
1519 (build_alias_set_optimal_p): Same.
1520 (build_base_obj_set_for_drs): Same. Do not store the result of
1521 graphds_dfs.
1522
917f481a
SP
15232009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1524
1525 * graphite-sese-to-poly.c (build_alias_set_optimal_p): Initialize
1526 all_components_are_cliques to 1.
1527
2b178a5f
LF
15282009-10-20 Li Feng <nemokingdom@gmail.com>
1529
1530 * graphite-sese-to-poly.c (free_data_refs_aux): Update to free
1531 the new structure.
1532 (pdr_add_alias_set): Update retrieving alias_set_num.
1533 (build_poly_dr): Update retrieving dr_base_object_set.
1534 (partition_drs_to_sets): Remove.
1535 (build_alias_set_optimal_p): New.
1536 (build_alias_set_for_drs): Rename.
1537 (build_scop_drs): Update.
1538 * graphite-sese-to-poly.h (struct base_alias_pair): New.
1539 (ALIAS_SET_INDEX): Remove.
1540 (BASE_OBJECT_SET_INDEX): Remove.
1541
e8af4842
SP
15422009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1543
1544 * sese.c (get_vdef_before_sese): Handle GIMPLE_ASSIGN and GIMPLE_CALL.
1545
3899a0b2
SP
15462009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1547
1548 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Do not infer
1549 loop upper bounds for 1-element arrays at end of structures.
1550 * tree-flow.h (array_at_struct_end_p): Declared.
1551 * tree-ssa-loop-niter.c (array_at_struct_end_p): Not static anymore.
1552
e34e5835
SP
15532009-10-20 Sebastian Pop <sebastian.pop@amd.com>
1554
1555 * g++.dg/graphite/pr41305.C: New.
1556
07b0d0e2
AM
15572009-10-20 Alexander Monakov <amonakov@ispras.ru>
1558
1559 * graphite-sese-to-poly.c (build_loop_iteration_domains): Generalize
1560 construction of parameter constraints from loop iteration analysis.
1561 * gcc.dg/graphite/run-id-2.c: New test.
1562
67255edf
SP
15632009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1564
1565 * graphite-interchange.c (memory_stride_in_loop): Delete p1, lma
1566 and new_cstr.
1567
14ba996b
SP
15682009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1569
1570 * graphite-dependences.c (dependence_polyhedron_1): Remove
1571 unused gdim dimensions from the DDR polyhedron.
1572
4454141a
SP
15732009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1574
1575 * graphite-dependences.c (pddr_transformed_scattering): New.
1576 (dot_original_deps_stmt_1): New.
1577 (dot_transformed_deps_stmt_1): New.
1578 (dot_deps_stmt_1): Call dot_original_deps_stmt_1 and
1579 dot_transformed_deps_stmt_1.
1580 (dot_original_deps): New.
1581 (dot_transformed_deps): New.
1582 (dot_deps_1): Call dot_original_deps and dot_transformed_deps.
1583
dd61070d
SP
15842009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1585
1586 * graphite-dependences.c (reduction_dr_1): Remove wrong
1587 assert: reduction BBs can have multiple reduction writes
4454141a 1588 to memory. interchange-3.f90 is an example.
dd61070d 1589
65421bcc
SP
15902009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1591
1592 * gfortran.dg/graphite/interchange-3.f90: New.
1593
3e9f43ee
SP
15942009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1595
1596 * gcc.dg/graphite/interchange-1.c: Un-XFAILed.
1597
16bf8ab1
SP
15982009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1599
1600 * graphite-dependences.c (dependence_polyhedron_1): Add the
1601 context to the dependence polyhedron.
1602
d422adfa
SP
16032009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1604
1605 * graphite-poly.c (pbb_remove_duplicate_pdrs): Initialize
1606 PBB_PDR_DUPLICATES_REMOVED.
1607 (new_poly_bb): Same.
1608
62e475c5
SP
16092009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1610
1611 * graphite-sese-to-poly.c (find_scop_parameters): Initialize
1612 SCOP_CONTEXT.
1613 (build_loop_iteration_domains): Extract bounds on parameters
1614 based on the data size.
1615 (build_scop_context): Do not initialize SCOP_CONTEXT;
1616 add new constraints.
1617
3ecbce7e
SP
16182009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1619
1620 * graphite-ppl.c (ppl_min_for_le_polyhedron): New.
1621 * graphite-ppl.h (graphite-ppl.h): Declared.
1622
04863400
SP
16232009-10-17 Sebastian Pop <sebastian.pop@amd.com>
1624
1625 * graphite-ppl.c (ppl_print_linear_expr): New.
1626 (debug_ppl_linear_expr): New.
1627 * graphite-ppl.h (ppl_print_linear_expr): Declared.
1628 (debug_ppl_linear_expr): Declared.
1629
009150e1
SP
16302009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1631
1632 * graphite-interchange.c: Fix comments.
1633 * gcc.dg/graphite/block-1.c: Fix comments.
1634
9b196c93
SP
16352009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1636
1637 * gcc.dg/graphite/interchange-7.c: Un-XFAILed.
1638 * gcc.dg/graphite/interchange-9.c: Un-XFAILed.
1639
caa675f8
SP
16402009-10-16 Sebastian Pop <sebastian.pop@amd.com>
1641
1642 Reapply the patch from Alexander Monakov that disappeared during
1643 the last merges from trunk.
1644
1645 2009-09-16 Alexander Monakov <amonakov@ispras.ru>
1646
1647 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
1648 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
1649
92d92abb
SP
16502009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1651
1652 * graphite-interchange.c (memory_stride_in_loop): The depth
1653 argument corresponds to a dynamic time dimension, so use
1654 psct_dynamic_dim to refer to the transformed scattering dimension.
1655
23159c56
SP
16562009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1657
1658 * graphite-interchange.c (memory_stride_in_loop): Fix comments.
1659
5c6c42c9
SP
16602009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1661
1662 * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the
1663 root of the LST.
1664 * graphite-interchange.c (lst_do_interchange): Avoid interchanging
1665 the root of the LST.
1666 * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost
1667 fake loop.
1668 (print_lst): Print the root of LST in a different format.
1669 * graphite-poly.h (lst_depth): Adjust to include the root of the LST.
1670
f58be90e
SP
16712009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1672
1673 * graphite-poly.c (print_scop): Fix pretty printing of a SCoP.
1674
4e4ee197
SP
16752009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1676
1677 * doc/passes.texi: Document the Graphite infrastructure.
1678
6c4499b6
SP
16792009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1680
1681 * graphite-sese-to-poly.c (insert_copyin): Use gsi_insert_seq_on_edge.
1682 (rewrite_commutative_reductions_out_of_ssa): Call gsi_commit_edge_inserts,
1683 and check the SSA representation.
1684
1685 * gfortran.dg/graphite/id-18.f90: New, reduced from PR41193.
1686
8e49fe91
SP
16872009-10-15 Sebastian Pop <sebastian.pop@amd.com>
1688
1689 * gcc.dg/graphite/pr40157.c: Use -floop-block as reported in the PR.
1690
bb2b2dfc
SP
16912009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1692
1693 * gcc.dg/graphite/interchange-11.c: New.
1694
e7ed4a64
SP
16952009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1696
1697 * gcc.dg/graphite/interchange-8.c: Enable loop interchange.
1698
d7f25aa6
SP
16992009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1700
1701 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1702 Add -fno-loop-strip-mine and -fno-loop-interchange.
1703 (DEFAULT_FLAGS_GRAPHITE_INTERCHANGE): Add -fno-loop-block and
1704 -fno-loop-strip-mine.
1705 * gfortran.dg/graphite/graphite.exp: Same.
1706
6231cf49
SP
17072009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1708
1709 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1710 Renamed DEFAULT_FLAGS_GRAPHITE_BLOCK.
1711 (DEFAULT_CFLAGS_GRAPHITE_IDENTITY): Renamed
1712 DEFAULT_FLAGS_GRAPHITE_IDENTITY.
1713 (DEFAULT_CFLAGS_GRAPHITE_INTERCHANGE): Renamed
1714 DEFAULT_FLAGS_GRAPHITE_INTERCHANGE.
1715 (DEFAULT_CFLAGS_GRAPHITE_SCOP): Renamed
1716 DEFAULT_FLAGS_GRAPHITE_SCOP.
1717 (DEFAULT_CFLAGS_RUN_ID): Renamed DEFAULT_FLAGS_RUN_ID.
1718 (DEFAULT_CFLAGS_GRAPHITE): Renamed DEFAULT_FLAGS_GRAPHITE.
1719
2b7c09a8
SP
17202009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1721
1722 * graphite-poly.c (pbb_number_of_iterations_at_time): Cleanup comments.
1723
b0c7a278
KT
17242009-10-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
1725 Sebastian Pop <sebastian.pop@amd.com>
1726
1727 * graphite-interchange.c (build_linearized_memory_access): Pass an
1728 offset as parameter.
1729 (memory_stride_in_loop): Include transform scattering in the
1730 access functions to be able to querry the strides in the
1731 transformed loops.
1732 (pbb_interchange_loop_depths): Interchange the psct_dynamic_dim,
1733 not the psct_iterator_dim.
1734
13ae6f91
SP
17352009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1736
1737 * graphite-blocking.c (pbb_do_strip_mine): Removed.
1738 (lst_do_strip_mine_loop): New.
1739 (lst_do_strip_mine): New.
1740 (scop_do_strip_mine): Call lst_do_strip_mine.
1741 * graphite-poly.h (lst_add_loop_under_loop): New.
1742 (lst_find_first_pbb): New.
1743
c0fe753b
SP
17442009-10-14 Sebastian Pop <sebastian.pop@amd.com>
1745
1746 * graphite-poly.c (loop_to_lst): Fix LST creation.
1747
8d75ec87
TG
17482009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
1749
45489e99 1750 * gcc.dg/graphite/id-15.c: (8 * 8) replaced with
8d75ec87
TG
1751 sizeof(unsigned long) to make it run on 32bit systems.
1752
17532009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
1754
45489e99 1755 * gcc.dg/graphite/run-id-1.c: Use smaller matrix to not
8d75ec87
TG
1756 SEGFAULT on 32bit.
1757
2e5a7cbf
RU
17582009-10-14 Ramakrishna Upadrasta <Ramakrishna.Upadrasta@inria.fr>
1759
8d75ec87
TG
1760 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): Fix
1761 Comment.
2e5a7cbf
RU
1762 (write_alias_graph_to_ascii_dot): New.
1763 (write_alias_graph_to_ascii_ecc): Ditto.
8d75ec87
TG
1764 (partition_drs_to_sets): Add testing of optimality of current method
1765 which assigns alias numbers according to DFS Comopnent number. used
1766 as heuristic for the upcoming ECC algorithm.
2e5a7cbf
RU
1767 (build_scop_drs): Write to file also with the ecc and dot format.
1768
1e82de2a
SP
17692009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1770
1771 * gfortran.dg/graphite/interchange-1.f: XFail.
1772
9bf13085
SP
17732009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1774
1775 * graphite.c (graphite_initialize): Do not handle functions with
1776 more than 100 basic blocks.
1777
e797c5f2
SP
17782009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1779
1780 * graphite-blocking.c (pbb_do_strip_mine): Use
1781 PARAM_LOOP_BLOCK_TILE_SIZE.
1782
bfa00f48
SP
17832009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1784
1785 * graphite-poly.c (dot_lst_1): New.
1786 (dot_lst): New.
1787 * graphite-poly.h (dot_lst): Declared.
1788
3c7bdeb8
SP
17892009-10-13 Sebastian Pop <sebastian.pop@amd.com>
1790
1791 * graphite-dependences.c (dot_deps_stmt_1): New.
1792 (dot_deps_stmt): New.
1793 * graphite-dependences.h (dot_deps_stmt): Declared.
1794
c7dc2fab
SP
17952009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1796
1797 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_dependence): Do
1798 not replace cross BB scalar dependences ending on PHI nodes.
1799 (rewrite_cross_bb_scalar_deps): Filter out GIMPLE_PHI nodes.
1800
24c79709
SP
18012009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1802
1803 * graphite-poly.c (apply_poly_transforms): Implement the high
1804 level driver for flag_loop_block.
45489e99 1805 * opts.c (decode_options): Enable flag_loop_block at -O2.
24c79709
SP
1806 * tree-ssa-loop.c (gate_graphite_transforms): Remove call to sorry for
1807 flag_loop_block.
1808
1809 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add
1810 -floop-block.
1811 * gfortran.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK):
1812 Add -floop-block.
1813
a0517b76
SP
18142009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1815
1816 * graphite-poly.h (lst_find_pbb): New.
1817 (find_lst_loop): New.
1818
9d077835
SP
18192009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1820
1821 * graphite-poly.c (new_scop): Remove init of SCOP_DEP_GRAPH.
1822 * graphite-poly.h (struct scop): Remove dep_graph field.
1823 (SCOP_DEP_GRAPH): Removed.
1824
75b63a91
SP
18252009-10-09 Sebastian Pop <sebastian.pop@amd.com>
1826
1827 * graphite-poly.h (copy_lst): Do full copy of LST.
1828
7cc4ff8d
SP
18292009-10-07 Sebastian Pop <sebastian.pop@amd.com>
1830
1831 * graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
1832 when the loop stride is zero.
1833
1834 * gcc.dg/graphite/id-16.c: New.
1835
60d2a8c3
SP
18362009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1837
1838 * graphite-dependences.c (reduction_dr_1): New.
1839 (reduction_dr_p): New.
1840 (graphite_legal_transform_dr): Call reduction_dr_p.
1841 (reduction_ddr): Renamed reduction_ddr_p.
1842 * graphite-poly.h (same_pdr_p): New.
1843 (number_of_write_pdrs): New.
1844 * graphite-sese-to-poly.c (nb_data_writes_in_bb): New.
1845 (split_reduction_stmt): Do not split reduction statements
1846 when there are no writes to memory.
1847 (translate_scalar_reduction_to_array_for_stmt): Insert the
1848 memory reduction statement just after the scalar reduction statement.
1849
1850 * gcc.dg/graphite/interchange-10.c: Updated to differ from interchange-4.c.
1851 Un-XFAIL-ed.
1852 * gcc.dg/graphite/interchange-3.c: Un-XFAIL-ed.
1853 * gcc.dg/graphite/interchange-4.c: Un-XFAIL-ed.
1854
95baeff8
SP
18552009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1856
1857 * graphite-interchange.c (lst_apply_interchange): New.
1858 (lst_interchange_profitable_p): New.
1859 (lst_try_interchange_loops): New.
1860 (lst_try_interchange): New.
1861 (lst_do_interchange): New.
1862 (pbb_do_interchange): Removed.
1863 (scop_do_interchange): Call lst_do_interchange.
1864
a36d12e2
SP
18652009-10-06 Sebastian Pop <sebastian.pop@amd.com>
1866
1867 * graphite-poly.c (print_scop): Print SCOP_ORIGINAL_SCHEDULE and
1868 SCOP_TRANSFORMED_SCHEDULE.
1869 (loop_to_lst): New.
1870 (scop_to_lst): New.
1871 (print_lst): New.
1872 (debug_lst): New.
1873 * graphite-poly.h (lst_p): New.
1874 (struct lst): New.
1875 (LST_LOOP_P): New.
1876 (LST_LOOP_FATHER): New.
1877 (LST_PBB): New.
1878 (LST_SEQ): New.
1879 (scop_to_lst): Declared.
1880 (print_lst): Declared.
1881 (debug_lst): Declared.
1882 (new_lst_loop): New.
1883 (new_lst_stmt): New.
1884 (copy_lst): New.
1885 (lst_depth): New.
1886 (lst_dewey_number): New.
1887 (struct scop): Add original_schedule and transformed_schedule fields.
1888 (SCOP_ORIGINAL_SCHEDULE): New.
1889 (SCOP_TRANSFORMED_SCHEDULE): New.
1890 * graphite-sese-to-poly.c (build_poly_scop): Call scop_to_lst.
1891
a0dd1440
SP
18922009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1893
1894 * graphite-dependences.c (reduction_ddr): New.
1895 (graphite_legal_transform_bb): Call reduction_ddr.
1896 * graphite-poly.c (new_poly_bb): Pass a new bool parameter.
1897 Initialize PBB_IS_REDUCTION.
1898 * graphite-poly.h (struct poly_bb): New bool field is_reduction.
1899 (PBB_IS_REDUCTION): New.
1900 (new_poly_bb): Update declaration.
1901 * graphite-scop-detection.h (build_scop_bbs): Removed.
1902 (nb_reductions_in_loop): Removed.
1903 * graphite-sese-to-poly.c (try_generate_gimple_bb): Pass a sbitmap
1904 parameter for reductions.
1905 (try_generate_gimple_bb): Update call to new_poly_bb.
1906 (build_scop_bbs_1): Same.
1907 (build_scop_bbs): Same.
1908 (gsi_for_phi_node): New.
1909 (scalar_close_phi_node_p): Remove gcc_assert.
1910 (split_reduction_stmt): New.
1911 (is_reduction_operation_p): New.
1912 (phi_contains_arg): New.
1913 (follow_ssa_with_commutative_ops): New.
1914 (detect_commutative_reduction_arg): New.
1915 (detect_commutative_reduction_assign): New.
1916 (follow_inital_value_to_phi): New.
1917 (edge_initial_value_for_loop_phi): New.
1918 (initial_value_for_loop_phi): New.
1919 (detect_commutative_reduction): New.
1920 (translate_scalar_reduction_to_array_for_stmt): New.
1921 (insert_copyout): New.
1922 (insert_copyin): New.
1923 (translate_scalar_reduction_to_array): New.
1924 (rewrite_commutative_reductions_out_of_ssa_close_phi): New.
1925 (rewrite_commutative_reductions_out_of_ssa_loop): New.
1926 (rewrite_commutative_reductions_out_of_ssa): New.
1927 (build_poly_scop): Call rewrite_commutative_reductions_out_of_ssa.
1928 * sese.h (split_region_for_bb): New.
1929
1930 * gcc.dg/graphite/graphite.exp (DEFAULT_CFLAGS_GRAPHITE_BLOCK): Add -ffast-math.
1931 * gcc.dg/graphite/interchange-1.c: Fix format.
1932 * gcc.dg/graphite/interchange-10.c: New.
1933
db7e9485
SP
19342009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1935
1936 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Remove
1937 buggy assert.
1938
5dcc64d9
SP
19392009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1940
1941 * graphite-sese-to-poly.c (scev_analyzable_p): New.
1942 (rewrite_cross_bb_scalar_dependence): New.
1943 (rewrite_cross_bb_scalar_deps): New.
1944 (rewrite_reductions_out_of_ssa): Use bb_in_sese_p.
1945 Call rewrite_cross_bb_scalar_deps.
1946
947121b8
SP
19472009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1948
1949 * graphite-sese-to-poly.c (gsi_for_ssa_name_def): Removed.
1950 (insert_out_of_ssa_copy): Directly use gsi_after_labels and
1951 gsi_for_stmt.
1952
d48e288d
SP
19532009-10-05 Sebastian Pop <sebastian.pop@amd.com>
1954
1955 * graphite-clast-to-gimple.c (build_cloog_prog): Use pbb_index.
1956 * graphite-interchange.c (pbb_do_interchange): Same.
1957 * graphite-poly.c (print_scattering_function): Same.
1958 (debug_pdrs): Same.
1959 * graphite-poly.h (pbb_loop): New.
1960 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Use pbb_loop.
1961
d17286f6
SP
19622009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1963
1964 * graphite-scop-detection.c (limit_scops): Do not build poly_bbs.
1965
ee03cd20
SP
19662009-09-27 Sebastian Pop <sebastian.pop@amd.com>
1967
1968 * graphite-sese-to-poly.c (partition_drs_to_sets): Drs is not modified,
1969 so don't pass a pointer to it.
1970 (build_alias_set_for_drs): Same.
1971 (build_base_obj_set_for_drs): Same.
1972 (build_scop_drs): Same.
1973
888beba1
LF
19742009-09-26 Li Feng <nemokingdom@gmail.com>
1975
1976 * graphite-sese-to-poly.c (build_scop_drs): Disable writing to file
1977 the alias graph of data references.
1978
cd43e5d7
LF
19792009-09-25 Li Feng <nemokingdom@gmail.com>
1980
1981 * graphite-sese-to-poly.c (write_alias_graph_to_ascii_dimacs): New.
1982 (build_scop_drs): When debugging, write the alias graph to file,
1983 otherwise, should be disabled.
1984
45489e99
SP
19852009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1986
1987 * Merge from mainline (151310:151361).
1988
19892009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1990
1991 * Merge from mainline (151171:151310).
1992
19932009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1994
1995 * Merge from mainline (151171:151806).
1996
19972009-09-17 Sebastian Pop <sebastian.pop@amd.com>
1998
1999 * Revert the last commit.
2000
20012009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2002
2003 * Merge from mainline (151171:151819).
2004
aeda6535
SP
20052009-09-17 Sebastian Pop <sebastian.pop@amd.com>
2006
2007 * graphite-scop-detection.c (stmt_simple_memref_p): Removed.
2008 (is_simple_operand): Remove call to stmt_simple_memref_p.
2009 (stmt_simple_for_scop_p): Update call to is_simple_operand.
2010
8b6b8570
DE
20112009-09-17 David Edelsohn <edelsohn@gnu.org>
2012
45489e99
SP
2013 * gcc.dg/graphite/interchange-mvt.c: New File.
2014 * gcc.dg/graphite/scop-dsyrk.c: New File.
2015 * gcc.dg/graphite/scop-dsyr2k.c: New File.
2016 * gcc.dg/graphite/scop-mvt.c: New File.
2017 * gcc.dg/graphite/scop-sor.c: New File.
8b6b8570 2018
1825f9a2
LF
20192009-09-17 Li Feng <nemokingdom@gmail.com>
2020
1825f9a2
LF
2021 * graphite-dependences.c (poly_drs_may_alias_p): Adjust definition.
2022 (pddr_original_scattering): Make sure 2 pdr2 in the same base object set.
2023 (graphite_carried_dependence_level_k): Ditto.
2024 * graphite-poly.c (new_poly_dr): Add init of PDR_BASE_OBJECT_SET.
2025 * graphite-poly.h (struct poly_dr): Add member dr_base_object_set.
2026 (new_poly_dr): Adjust declaration.
2027 * graphite-sese-to-poly.c (free_data_refs_aux): New.
2028 (free_gimple_bb): Added free_data_refs_aux.
2029 (build_poly_dr): Add dr_base_object_set.
2030 (partition_drs_to_sets): New.
2031 (dr_same_base_object_p): New.
2032 (build_alias_set_for_drs): New.
2033 (build_base_object_set_for_drs): New.
2034 (build_scop_drs): Add build_base_obj_set_for_drs.
2035 * graphite-sese-to-poly.h: Added #define for alias set number index and
2036 base object set index.
2037 * libgomp/testsuite/libgomp.graphite/force-parallel-6.c: Refine tests.
2038 * libgomp/testsuite/libgomp.graphite/pr4118.c: New.
2039
ac90803f
SP
20402009-09-16 Alexander Monakov <amonakov@ispras.ru>
2041
2042 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Add bounds only
2043 for ARRAY_REFs. Use array_ref_{low,up}_bound to determine bounds.
2044
54fc808a
SP
20452009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2046
2047 * graphite-sese-to-poly.c (struct irp_data): Removed.
2048 (idx_record_params): Removed.
2049 (find_params_in_bb): Scan for parameters the access functions; don't
2050 parse the tree representation.
2051
e88e021f
SP
20522009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2053
2054 * tree-ssa-loop.c (gate_graphite_transforms): Disable Graphite
2055 passes at -O1 and below.
2056
3690f8d7
SP
20572009-09-14 Sebastian Pop <sebastian.pop@amd.com>
2058
2059 * graphite-blocking.c: Fix order of includes: tree-chrec.h, then
2060 tree-scalar-evolution.h, and then tree-data-ref.h.
2061 * graphite-clast-to-gimple.c: Same.
2062 * graphite-dependences.c: Same.
2063 * graphite-interchange.c: Same.
2064 * graphite-poly.c: Same.
2065 * graphite-scop-detection.c: Same.
2066 * graphite-sese-to-poly.c: Same.
2067 * graphite.c: Same.
2068 * lambda-code.c: Same.
2069 * matrix-reorg.c: Same.
2070 * tree-data-ref.c: Same.
2071 * tree-if-conv.c: Same.
2072 * tree-loop-distribu: Same.: Same.
2073 * tree-loop-linear.c: Same.
2074 * tree-parloops.c: Same.
2075 * tree-predcom.c: Same.
2076 * tree-vect-patterns.c: Same.
2077
2495a183
SP
20782009-09-02 Sebastian Pop <sebastian.pop@amd.com>
2079
2080 Partially revert the previous patch, except the following.
2081 * tree-scalar-evolution.c (instantiate_scev_not): Adapted to pass
2082 as parameters the operands of the not expression.
2083
20179b0d
SP
20842009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2085
2086 * tree-scalar-evolution.c (instantiate_scev_assign): New.
2087 Do not call analyze_scalar_evolution on assignments.
2088 (instantiate_scev_phi): Call analyze_scalar_evolution.
2089 (instantiate_scev_name): Call instantiate_scev_assign and
2090 instantiate_scev_phi.
2091 (instantiate_scev_not): Adapted to pass as parameters the operands
2092 of the not expression.
2093
ffa34f4b
SP
20942009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2095
2096 * tree-scalar-evolution.c (instantiate_scev_binary): Adapted
2097 to pass as parameters the operands of the binary expression.
2098
4b9d48a1
SP
20992009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2100
2101 * tree-scalar-evolution.c (instantiate_scev_bitnot): Renamed
2102 instantiate_scev_not. Handle NEGATE_EXPR.
2103 (instantiate_scev_r): Handle NEGATE_EXPR.
2104
9e5dc77f
SP
21052009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2106
2107 * tree-scalar-evolution.c (instantiate_scev_1): Renamed
2108 instantiate_scev_r.
2109 (instantiate_scev_r): Move code in instantiate_scev_2
2110 and instantiate_scev_1.
2111
d814176c
SP
21122009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2113
2114 * tree-scalar-evolution.c (instantiate_scev_3): New.
2115 (instantiate_scev_1): Move code in instantiate_scev_3.
2116
ec6636eb
SP
21172009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2118
2119 * tree-scalar-evolution.c (instantiate_scev_poly): New.
2120 (instantiate_scev_1): Move code in instantiate_scev_poly.
2121
7ec0665d
SP
21222009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2123
2124 * tree-scalar-evolution.c (instantiate_scev_bitnot): New.
2125 (instantiate_scev_1): Move code in instantiate_scev_bitnot.
2126
9c382ce9
SP
21272009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2128
2129 * tree-scalar-evolution.c (instantiate_scev_convert): New.
2130 (instantiate_scev_1): Move code in instantiate_scev_convert.
2131
15fda317
SP
21322009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2133
2134 * tree-scalar-evolution.c (instantiate_scev_binary): New.
2135 (instantiate_scev_1): Move code in instantiate_scev_binary.
2136
320f5a78
SP
21372009-09-01 Sebastian Pop <sebastian.pop@amd.com>
2138
2139 * tree-scalar-evolution.c (instantiate_scev_name): New.
2140 (instantiate_scev_1): Move code in instantiate_scev_name.
2141
21422009-08-28 Sebastian Pop <sebastian.pop@amd.com>
2143
2144 * Merge from mainline (150992:151171).
2145
45489e99
SP
21462009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2147
2148 * opts.c (decode_options): Enable flag_loop_interchange at -O2.
2149
211694b6
SP
21502009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2151
2152 * graphite-dependences.c (graphite_legal_transform_bb): Call
2153 pbb_remove_duplicate_pdrs.
2154 * graphite-poly.c (can_collapse_pdr): Removed.
2155 (pdr_find_duplicate): Removed.
2156 (can_collapse_pdrs): New.
2157 (pbb_remove_duplicate_pdrs): New.
2158 (new_poly_dr): Do not look for duplicates.
2159 * graphite-poly.h (struct poly_bb): New field pdr_duplicates_removed.
2160 (PBB_PDR_DUPLICATES_REMOVED): New.
2161 (pbb_remove_duplicate_pdrs): Declared.
2162
7bd2a8a7
SP
21632009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2164
2165 * graphite-interchange.c (pbb_interchange_profitable_p): Adjust
2166 the strides by multiplying by PDR_NB_REFS.
2167 * graphite-poly.c (can_collapse_pdr): New.
2168 (pdr_find_duplicate): New.
2169 (new_poly_dr): Call pdr_find_duplicate. Collapse duplicate PDRs.
2170 Initialize PDR_NB_REFS.
2171 * graphite-poly.h (struct poly_dr): Add field nb_refs.
2172 (PDR_NB_REFS): New.
2173 (new_poly_dr): Number of subscripts is a graphite_dim_t.
2174
21752009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2176
2177 Revert one of the previous commits:
2178 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
2179 the computation of symmetric data dependence relations.
2180 (dependency_between_pbbs_p): Same.
2181
93b2db87
SP
21822009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2183
2184 PR middle-end/40965
2185 * graphite-poly.c (apply_poly_transforms): Remove legality test before
2186 any transform.
2187
d8eeb078
SP
21882009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2189
2190 * graphite-dependences.c (pddr_original_scattering): Return NULL
2191 for read-read dependence relations.
2192 * graphite-poly.h (enum poly_dr_type): Fix comment.
2193 (pdr_read_p): New.
2194 (pdr_write_p): New.
2195 (pdr_may_write_p): New.
2196
e6dec0fb
SP
21972009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2198
2199 * graphite-poly.h (enum POLY_DR_TYPE): Renamed poly_dr_type.
2200 (struct poly_dr): Same.
2201 (new_poly_dr): Same.
2202 * graphite-poly.c (new_poly_dr): Same.
2203
baf4b881
KT
22042009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2205 Sebastian Pop <sebastian.pop@amd.com>
2206
2207 * graphite-blocking.c (pbb_strip_mine_loop_depth): Renamed
2208 pbb_strip_mine_time_depth. Changed the implementation so that
2209 transformation is expressed as a transformation on
2210 time (scatttering) dimensions. Also, ensures that the 2d+1
2211 scheduling format is preserved.
2212 (pbb_strip_mine_profitable_p): Profitability is based on the
2213 iteration number of a given time (scattering) dimension,
2214 and not on a original loop depth dimension.
2215 (pbb_strip_mine): Call pbb_number_of_iterations_at_time.
2216 (pbb_do_strip_mine): Call psct_dynamic_dim.
2217 * graphite-poly.c (pbb_number_of_iterations_at_time): New.
2218 * graphite-poly.h (pbb_number_of_iterations_at_time): Declared.
2219 (pbb_nb_dynamic_scattering_transform): New.
2220 (psct_dynamic_dim): New.
2221
059a5f9f
KT
22222009-08-25 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2223
2224 * graphite-ppl.c (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
2225 * graphite-ppl.h (ppl_max_for_le): Renamed ppl_max_for_le_pointset.
2226 * graphite-poly.c (pbb_number_of_iterations): Rename ppl_max_for_le.
2227 * graphite-interchange.c (build_linearized_memory_access): Same.
2228 (memory_stride_in_loop): Same.
2229
afae0207
SP
22302009-08-25 Sebastian Pop <sebastian.pop@amd.com>
2231
2232 * graphite-dependences.c (pddr_original_scattering): New.
2233 (graphite_legal_transform_dr): Call pddr_original_scattering.
2234 (dot_deps_1): New.
2235 (dot_deps): New.
2236 * graphite-dependences.h (dot_deps): Declared.
2237 * graphite-poly.c (new_poly_dr): Initialize PDR_ID.
2238 (print_pdr): Print PDR_ID.
2239 * graphite-poly.h (struct poly_dr): Add field id.
2240 (PDR_ID): New.
2241 (pbb_index): New.
2242 * graphite-scop-detection.c (dot_all_scops_1): Cleanup comment.
2243
f8e0bb8b
SP
22442009-08-22 Sebastian Pop <sebastian.pop@amd.com>
2245
2246 * graphite-dependences.c (graphite_carried_dependence_level_k): Do
2247 not delete the original dependence relation.
2248
22492009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2250
2251 * graphite-dependences.c (graphite_legal_transform_bb): Avoid
2252 the computation of symmetric data dependence relations.
2253 (dependency_between_pbbs_p): Same.
2254
e37f165f
SP
22552009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2256
2257 * graphite-dependences.c (new_poly_dr_pair): Renamed new_poly_ddr.
2258 (eq_poly_dr_pair_p): Renamed eq_poly_ddr_p.
2259 (hash_poly_dr_pair_p): Renamed hash_poly_ddr_p.
2260 (free_poly_ddr): New.
2261 (pddr_is_empty): New.
2262 (dependence_polyhedron_1): Now returns a poly_ddr_p.
2263 (dependence_polyhedron): Same. Remove useless gcc_assert.
2264 Remove fprintfs.
2265 (graphite_legal_transform_dr): Call pddr_is_empty and free_poly_ddr.
2266 (graphite_carried_dependence_level_k): Call pddr_is_empty.
2267 * graphite-dependences.h (enum poly_dependence_kind): New.
2268 (poly_dr_pair): Renamed poly_ddr. Added a field kind.
2269 (PDRP_SOURCE): Renamed PDDR_SOURCE.
2270 (PDRP_SINK): Renamed PDDR_SINK.
2271 (PDRP_DDP): Renamed PDDR_DDP.
2272 (PDDR_KIND): New.
2273 (free_poly_ddr): Declared.
2274 * graphite-poly.c (new_scop): Use the new hash function names.
2275 * graphite-poly.h (struct scop): Renamed field original_pdr_pairs
2276 into original_pddrs.
2277 (SCOP_ORIGINAL_PDR_PAIRS): Renamed SCOP_ORIGINAL_PDDRS.
2278
22792009-08-21 Sebastian Pop <sebastian.pop@amd.com>
2280
2281 * Merge from mainline (150764:150992).
2282
45e76e9f
SP
22832009-08-18 Sebastian Pop <sebastian.pop@amd.com>
2284
2285 * cfgloopmanip.c (create_empty_loop_on_edge): Generate upper
2286 bounds with LT_EXPR to make niter analysis more precise on code
2287 generated by Graphite.
2288
66b466c3
SP
22892009-08-18 Sebastian Pop <sebastian.pop@amd.com>
2290
2291 * graphite-dependences.c (graphite_legal_transform_dr): Fix formatting.
2292 (graphite_legal_transform_bb): Same.
2293 (poly_drs_may_alias_p): Same.
2294
f263917c
SP
22952009-08-15 Sebastian Pop <sebastian.pop@amd.com>
2296
2297 PR middle-end/40981
2298 * graphite-ppl.c (ppl_max_for_le): Correct the use of
2299 ppl_Pointset_Powerset_C_Polyhedron_maximize.
2300
23012009-08-13 Sebastian Pop <sebastian.pop@amd.com>
2302
2303 * graphite-poly.c (print_pbb): Print PBB index.
2304
23052009-08-13 Sebastian Pop <sebastian.pop@amd.com>
2306
2307 * Merge from mainline (r150672:150764).
2308
23092009-08-13 Sebastian Pop <sebastian.pop@amd.com>
2310
2311 * graphite-interchange.c (ppl_max_for_le): Moved...
2312 * graphite-poly.c (pbb_number_of_iterations): Call ppl_max_for_le.
2313 * graphite-ppl.c (ppl_max_for_le): ... here.
2314 * graphite-ppl.h (ppl_max_for_le): Declared.
2315
23162009-08-12 Sebastian Pop <sebastian.pop@amd.com>
2317
2318 * Merge from mainline (r150372:150672).
2319
30de1632
SP
23202009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2321
2322 PR middle-end/40980
2323 * sese.c (convert_for_phi_arg): New.
2324 (add_guard_exit_phis): Use convert_for_phi_arg.
2325
45489e99 2326 * gfortran.dg/graphite/id-17.f: New.
30de1632 2327
8c31ebfa
SP
23282009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2329
2330 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Dont add
2331 unknown subscript upper bounds.
2332
45489e99 2333 * gcc.dg/graphite/interchange-6.c: Un-XFAIL.
8c31ebfa 2334
fb9fb290
SP
23352009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2336 Pranav Garg <pranav.garg2107@gmail.com>
2337
2338 * graphite-interchange.c (gather_access_strides): Removed.
2339 (ppl_max_for_le): New.
2340 (build_linearized_memory_access): New.
2341 (memory_stride_in_loop): New.
2342 (pbb_interchange_profitable_p): Reimplemented.
2343 * graphite-ppl.h (ppl_new_id_map): New.
2344 (ppl_interchange): New.
2345
45489e99 2346 * gcc.dg/graphite/interchange-6.c: XFAILed.
fb9fb290 2347
312aea7f
SP
23482009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2349
2350 * graphite-interchange.c (compute_subscript): Removed.
2351 (compute_array_size_cstr): Removed.
2352 (compute_array_size_poly): Removed.
2353 (compute_array_size): Removed.
2354 (gather_access_strides_poly): Removed.
2355 (gather_access_strides): Empty.
2356
25d7cc15
SP
23572009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2358
2359 * graphite-dependences.c (dependence_polyhedron_1): Replace
2360 pdr_nb_subscripts with PDR_NB_SUBSCRIPTS.
2361 (graphite_legal_transform_dr): Same.
2362 (graphite_carried_dependence_level_k): Same.
2363 * graphite-poly.c (new_poly_dr): Add a parameter nb_subscripts.
2364 Initialize PDR_NB_SUBSCRIPTS.
2365 (print_pdr_access_layout): Replace pdr_nb_subscripts with
2366 PDR_NB_SUBSCRIPTS.
2367 * graphite-poly.h (struct poly_dr): Add nb_subscripts field.
2368 (PDR_NB_SUBSCRIPTS): New.
2369 (pdr_nb_subscripts): Removed.
2370 (pdr_dim): Simplified.
2371 * graphite-sese-to-poly.c (build_poly_dr): Replace pdr_nb_subscripts
2372 with PDR_NB_SUBSCRIPTS.
2373
66096911
SP
23742009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2375
2376 * graphite-interchange.c (compute_array_size): Remove use of
2377 PDR_DATA_CONTAINER.
2378 * graphite-poly.c (new_poly_dr): Remove argument data_container.
2379 Do not initialize PDR_DATA_CONTAINER.
2380 (print_pdr): Do not print PDR_DATA_CONTAINER.
2381 * graphite-poly.h (struct poly_dr): Remove data_container field.
2382 (PDR_DATA_CONTAINER): Removed.
2383 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Remove use of
2384 PDR_DATA_CONTAINER.
2385 (build_poly_dr): Same.
2386
273c5dd3
SP
23872009-08-11 Sebastian Pop <sebastian.pop@amd.com>
2388
45489e99 2389 * gcc.dg/graphite/interchange-9.c: New.
273c5dd3 2390
7491e5f0
KT
23912009-08-05 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2392 Sebastian Pop <sebastian.pop@amd.com>
2393
2394 * graphite-dependences.c (graphite_legal_transform_dr): Work on a
2395 copy of the dependence polyhedron. Free the temporary objects.
2396 (graphite_carried_dependence_level_k): Free unused objects before
2397 returning.
2398
45489e99
SP
2399 * gcc.dg/graphite/interchange-1.c: XFAILed.
2400 * gcc.dg/graphite/interchange-2.c: XFAILed.
2401 * gcc.dg/graphite/interchange-3.c: XFAILed.
2402 * gcc.dg/graphite/interchange-4.c: XFAILed.
2403 * gcc.dg/graphite/interchange-7.c: XFAILed.
7491e5f0 2404
f4648ed1
SP
24052009-08-05 Sebastian Pop <sebastian.pop@amd.com>
2406
2407 * graphite-blocking.c (scop_do_strip_mine): Call store_scattering.
2408 Early return without analyzing the data dependences if no
2409 transform has been done. Call restore_scattering if the transform
2410 is not legal.
2411 (graphite-interchange.c): Same.
2412 * graphite-poly.c (print_scattering_function): Test for PBB_TRANSFORMED.
2413 (graphite_read_transforms): Initialize PBB_TRANSFORMED.
2414 (apply_poly_transforms): Do not gcc_assert that
2415 the transform is legal.
2416 (new_poly_bb): Initialize PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
2417 Do not initialize PBB_NB_SCATTERING_TRANSFORM, PBB_NB_LOCAL_VARIABLES,
2418 PBB_TRANSFORMED_SCATTERING, and PBB_ORIGINAL_SCATTERING.
2419 (free_poly_dr): Free PBB_TRANSFORMED, PBB_SAVED, and PBB_ORIGINAL.
2420 * graphite-poly.h (struct poly_scattering): New.
2421 (struct poly_bb): Add original, transformed, and saved fields.
2422 Remove transformed_scattering, original_scattering, nb_local_variables,
2423 and nb_scattering_transform fields.
2424 (PBB_ORIGINAL, PBB_TRANSFORMED, PBB_SAVED): New.
2425 (poly_scattering_new): New.
2426 (poly_scattering_free): New.
2427 (poly_scattering_copy): New.
2428 (store_scattering_pbb): New.
2429 (store_scattering): New.
2430 (restore_scattering_pbb): New.
2431 (restore_scattering): New.
2432 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
2433 Initialize PBB_TRANSFORMED and PBB_ORIGINAL.
273c5dd3 2434
e31a5bd4
SP
24352009-08-05 Sebastian Pop <sebastian.pop@amd.com>
2436
2437 * graphite-poly.c (print_pbb): Add parentheses in the pretty print.
2438 (print_scop): Same.
2439
8e88f9fd
SP
24402009-08-05 Sebastian Pop <sebastian.pop@amd.com>
2441
2442 * Makefile.in (graphite.o): Depends on PREDICT_H.
2443 * graphite.c: Include predict.h.
2444 (graphite_finalize): Call tree_estimate_probability.
2445 * predict.c (predict_loops): Do not call scev_initialize and
2446 scev_finalize.
2447 (tree_estimate_probability_bb): New.
2448 (tree_estimate_probability): Do not initialize loops: move that
2449 code to the driver. Call tree_estimate_probability_bb.
2450 (tree_estimate_probability_driver): New.
2451 (pass_profile): Use tree_estimate_probability_driver.
2452 * predict.h (tree_estimate_probability): Declared.
2453
87d4d0ee
SP
24542009-08-05 Sebastian Pop <sebastian.pop@amd.com>
2455
2456 * graphite-clast-to-gimple.c (gloog): Add time to TV_GRAPHITE_CODE_GEN.
2457 * graphite-dependences.c (graphite_legal_transform): Add time to
2458 TV_GRAPHITE_DATA_DEPS.
2459 (dependency_between_pbbs_p): Same.
2460 * timevar.def (TV_GRAPHITE_DATA_DEPS, TV_GRAPHITE_CODE_GEN): New.
2461
24622009-08-03 Sebastian Pop <sebastian.pop@amd.com>
2463
2464 * Merge from mainline (r149952:150372).
2465
2abae5f1
SP
24662009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2467
2468 * ChangeLog.graphite: Fix indenting, white spaces and 80 columns.
2469 * graphite-blocking.c: Same.
2470 * graphite-clast-to-gimple.c: Same.
2471 * graphite-dependences.c: Same.
2472 * graphite-poly.c: Same.
2473 * graphite-poly.h: Same.
2474 * graphite-ppl.c: Same.
2475 * graphite-scop-detection.c: Same.
2476 * graphite-sese-to-poly.c: Same.
2477 * graphite.c: Same.
2478
24792009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2480
2481 * graphite-sese-to-poly.c (loop_entry_phi_arg): New.
2482 (remove_simple_copy_phi): New.
2483 (remove_invariant_phi): New.
2484 (simple_copy_phi_p): New.
2485 (reduction_phi_p): New.
2486 (gsi_for_ssa_name_def): New.
2487 (insert_out_of_ssa_copy): New.
2488 (insert_out_of_ssa_copy_on_edge): New.
2489 (create_zero_dim_array): New.
2490 (scalar_close_phi_node_p): New.
2491 (rewrite_close_phi_out_of_ssa): New.
2492 (rewrite_phi_out_of_ssa): New.
2493 (rewrite_reductions_out_of_ssa): New.
2494 (build_poly_scop): Call rewrite_reductions_out_of_ssa.
2495
45489e99
SP
2496 * gcc.dg/graphite/id-11.c: New.
2497 * gcc.dg/graphite/id-15.c: New.
2498 * gcc.dg/graphite/interchange-1.c: Un-XFAIL.
2499 * gcc.dg/graphite/interchange-2.c: Un-XFAIL.
2500 * gcc.dg/graphite/interchange-3.c: Un-XFAIL.
2501 * gcc.dg/graphite/interchange-4.c: Un-XFAIL.
2502 * gcc.dg/graphite/interchange-7.c: Un-XFAIL.
2503 * gcc.dg/graphite/scop-matmult.c: Un-XFAIL.
2504 * gfortran.dg/graphite/id-13.f: New.
2505 * gfortran.dg/graphite/id-5.f: New.
2abae5f1
SP
2506
25072009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2508
2509 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not
2510 check that nb_reductions_in_loop is zero.
2511 * graphite-scop-detection.c (harmful_stmt_in_bb): Don't filter out
2512 reduction phi nodes.
2513 (nb_reductions_in_loop): Removed.
2514 (graphite_can_represent_loop): Do not call nb_reductions_in_loop.
2515 * graphite-sese-to-poly.c (phi_node_is_iv): Removed.
2516 (bb_contains_non_iv_scalar_phi_nodes): Removed.
2517 (scop_contains_non_iv_scalar_phi_nodes): Removed.
2518 (build_poly_scop): Do not call scop_contains_non_iv_scalar_phi_nodes.
2519
25202009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2521
2522 * graphite-clast-to-gimple.c (build_cloog_prog): Do not code generate
2523 statements that have an empty iteration domain.
45489e99 2524 * gfortran.dg/graphite/id-16.f: New.
2abae5f1
SP
2525
25262009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2527
2528 * tree-scalar-evolution.c (instantiate_scev_1): Return
2529 chrec_dont_know when the result is not above instantiate_below.
2530 * graphite-scop-detection.c (scopdet_basic_block_info): Fix formatting.
2531 * graphite-sese-to-poly.c (create_linear_expr_from_tree): Assert that
2532 the tree has a known scalar evolution.
45489e99
SP
2533 * gfortran.dg/graphite/id-14.f: New.
2534 * gfortran.dg/graphite/id-15.f: New.
2abae5f1
SP
2535
25362009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2537
2538 * sese.c (rename_variables_in_stmt): Pass in an extra parameter
2539 insert_gsi.
2540 (rename_variables): Keep inserting renames after the ones already
2541 inserted.
2542
25432009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2544
2545 * graphite-sese-to-poly.c (compare_bb_depths): New.
2546 (graphite_sort_dominated_info): New.
2547 (build_scop_bbs_1): Call graphite_sort_dominated_info.
2548 (build_scop_scattering): Fix comment.
2549
25502009-07-28 Sebastian Pop <sebastian.pop@amd.com>
2551
2552 * graphite.c (graphite_finalize): Call print_loops instead of
2553 dump_function_to_file.
45489e99
SP
2554 * gcc.dg/graphite/graphite.exp: Fix formatting.
2555 * gcc.dg/graphite/pr35356-1.c: New. Look for the number of
2abae5f1 2556 loops generated in the graphite output file.
45489e99
SP
2557 * gcc.dg/graphite/pr35356-2.c: New.
2558 * gcc.dg/graphite/pr35356-3.c: New. XFAILed for now.
2559 * gfortran.dg/graphite/id-12.f: New.
2abae5f1
SP
2560
25612009-07-24 Li Feng <nemokingdom@gmail.com>
2562
45489e99 2563 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c:
2abae5f1
SP
2564 Remove 2 XFAIL.
2565
25662009-07-24 Li Feng <nemokingdom@gmail.com>
2567 Tobias Grosser <grosser@fim.uni-passau.de>
2568
2569 * graphite-sese-to-poly.c (pdr_add_alias_set): Use data reference's
2570 alias set number build alias in ACCESSES polyhedron.
2571 (build_alias_set_for_drs): New.
2572 (build_pbb_drs): Added build_alias_set_for_drs.
2573 * graphite-dependences.c (poly_drs_may_alias_p): New.
2574 (graphite_carried_dependence_level_k): Check alias information
2575 before building polyhedron.
2576
25772009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2578
2579 * Makefile.in (lambda-code.o): Fix formatting.
2580
25812009-07-24 Tobias Grosser <grosser@fim.uni-passau.de>
2582
2583 * Merge from mainline (r149350-149952)
2584
25852009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
2586
2587 * graphite-poly.c (apply_poly_transforms): Move strip_mine
2588 before interchange to prepare for loop blocking.
2589
25902009-07-18 Tobias Grosser <grosser@fim.uni-passau.de>
2591
2592 * graphite-poly.c (apply_poly_transforms): Add checks after every
2593 transformation.
2594 * graphite-sese-to-poly.c (build_poly_scop): Remove check, as already
2595 done in apply_poly_transforms.
2596
25972009-07-17 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2598
2599 * graphite-dependences.c (build_lexicographically_gt_constraint):
2600 Replace RES parameter with *RES.
2601 (dependence_polyhedron_1): Pass an address of the parameter RES
2602 instead of value of RES.
2603
26042009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2605
2606 * graphite.c (graphite_finalize): Fix comment.
2607 (graphite_transform_loops): Reset scev info after code generation
2608 of each scop.
2609
26102009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2611
2612 * graphite.c (graphite_finalize): Call scev_reset.
2613
26142009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2615
2616 * graphite-clast-to-gimple.c (compute_cloog_iv_types): Do not create
2617 GBB_CLOOG_IV_TYPES hash table twice.
2618 * graphite-sese-to-poly.c (free_gimple_bb): Call free_data_refs.
2619 (add_condition_to_domain): Clear GMP values.
2620
26212009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2622
2623 * graphite-dependences.c: Fix formatting.
2624 * graphite-poly.c (free_poly_dr): Also free PDR_DATA_CONTAINER.
2625 (pbb_number_of_iterations): Free ppl_Linear_Expression.
2626 * graphite-sese-to-poly.c: Fix formatting.
2627 * graphite.c (graphite_transform_loops): Create the hash table
2628 after the early return.
2629
26302009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2631
45489e99
SP
2632 * gcc.dg/graphite/id-14.c: New.
2633 * gcc.dg/graphite/pr40157.c: New.
2634 * gfortran.dg/graphite/id-11.f: New.
2abae5f1
SP
2635
26362009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2637
2638 * graphite-sese-to-poly.c (nb_pbbs_in_loops): New.
2639 (build_poly_scop): Return false when there are no pbbs within
2640 loops to avoid to pass to cloog scops with no loops.
2641
26422009-07-16 Sebastian Pop <sebastian.pop@amd.com>
2643
2644 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Avoid
2645 useless test "i % 2".
2646 (build_pbb_scattering_polyhedrons): Fix formatting.
2647 (build_poly_dr): Same.
2648 * graphite.c (graphite_transform_loops): Restructure.
2649
26502009-07-14 Razya Ladelsky <razya@il.ibm.com>
2651
2652 * tree-ssa-loop-manip.c (rewrite_phi_with_iv): Remove
2653 reduction_list parameter.
2654 (rewrite_all_phi_nodes_with_iv): Same.
2655 (canonicalize_loop_ivs): Same.
2656 * tree-parloops.c (struct brli): Removed.
2657 (build_reduction_list_info): Removed.
2658 (build_new_reduction): New.
2659 (analyze_reduction_list): Removed.
2660 (gather_scalar_reductions): Find reductions instead of phi
2661 nodes that can't be canonicalized.
2662 (try_create_reduction_list): Remove reduction_list parameter.
2663 (gen_parallel_loop): Same.
2664 (parallelize_loops): Remove analyze_reductions variable,
2665 initialization and free.
2666 Change reduction_list htab initialization to reduction_info
2667 elements instead of ssa names.
2668 Call try_create_reduction_list and gen_parallel_loop without
2669 analyzed_reduction argument.
2670 * graphite-clast-to-gimple (graphite_loop_normal_form): Call
2671 canonicalize_loop_ivs with one less argument.
2672 * tree-flow.h (canonicalize_loop_ivs): Remove one argument.
2673
26742009-07-14 Konrad Trifunovic <konrad.trifunovic@gmail.com>
2675
2676 * graphite-dependences.c (new_poly_dr_pair): New.
2677 (dependence_polyhedron): Renamed into dependence_polyhedron_1.
2678 (new_poly_dr_pair): New.
2679 (eq_poly_dr_pair_p): New.
2680 (hash_poly_dr_pair_p): New.
2681 * graphite-dependences.h (struct poly_dr_pair): New.
2682 (eq_poly_dr_pair_p): Declared.
2683 (hash_poly_dr_pair_p): Declared.
2684 * graphite-poly.c (new_scop): Initialize SCOP_ORIGINAL_PDR_PAIRS.
2685 (free_scop): Free SCOP_ORIGINAL_PDR_PAIRS.
2686 * graphite-poly.h (struct scop): Add original_pdr_pairs field.
2687 * Makefile.in (graphite-poly.o): Add dependence on
2688 graphite-dependences.h.
2689
26902009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2691
2692 * graphite-scop-detection.c (graphite_can_represent_scev): Do not let
2693 polynomials of degree > 1 pass to Graphite.
2694 * tree-chrec.c (scev_is_linear_expression): Call
2695 evolution_function_is_affine_multivariate_p.
45489e99 2696 * gfortran.dg/graphite/id-10.f90: New.
2abae5f1
SP
2697
26982009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2699
2700 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop):
2701 Instantiate scevs varying in outer loops.
45489e99 2702 * gfortran.dg/graphite/id-9.f: Correct testcase.
2abae5f1
SP
2703
27042009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2705
2706 * graphite-sese-to-poly.c (build_loop_iteration_domains): Do not insert
2707 redundant constraint.
2708
27092009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2710
45489e99
SP
2711 * gcc.dg/graphite/graphite.exp: Fix comments.
2712 * gfortran.dg/graphite/graphite.exp: Trigger actions
2abae5f1 2713 based on the file names as in the C testsuite.
45489e99
SP
2714 * gfortran.dg/graphite/block-1.f90: Fix patterns.
2715 * gfortran.dg/graphite/block-2.f: Same.
2716 * gfortran.dg/graphite/block-3.f90: Same.
2717 * gfortran.dg/graphite/block-4.f90: Same.
2718 * gfortran.dg/graphite/id-1.f90: Same.
2719 * gfortran.dg/graphite/id-2.f90: Same.
2720 * gfortran.dg/graphite/id-3.f90: Same.
2721 * gfortran.dg/graphite/id-4.f90: Same.
2722 * gfortran.dg/graphite/id-6.f: Same.
2723 * gfortran.dg/graphite/id-9.f: Same.
2724 * gfortran.dg/graphite/interchange-1.f: Same.
2725 * gfortran.dg/graphite/interchange-2.f: Same.
2726 * gfortran.dg/graphite/scop-1.f: Same.
2abae5f1
SP
2727
27282009-07-14 Sebastian Pop <sebastian.pop@amd.com>
2729
2730 * sese.c (expand_scalar_variables_call): New.
2731 (expand_scalar_variables_ssa_name): Handle calls in expander.
2732
27332009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2734
45489e99 2735 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c:
2abae5f1 2736 Expect to see the pattern twice.
45489e99
SP
2737 * gcc.dg/graphite/interchange-0.c: Un-XFAIL.
2738 * gcc.dg/graphite/interchange-5.c: Same.
2739 * gcc.dg/graphite/interchange-6.c: Same.
2abae5f1
SP
2740
27412009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2742
45489e99
SP
2743 * gcc.dg/graphite/id-10.c: New.
2744 * gcc.dg/graphite/id-12.c: New.
2745 * gfortran.dg/graphite/id-7.f: New.
2746 * gfortran.dg/graphite/id-8.f: New.
2abae5f1
SP
2747
27482009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2749
2750 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix division by
2751 zero.
2752
27532009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2754
2755 * sese.c (rename_variables_in_stmt): Call fold_convert during renaming.
2756
27572009-07-13 Sebastian Pop <sebastian.pop@amd.com>
2758
2759 * sese.c (expand_scalar_variables_stmt): Avoid unnecessary expansion.
2760
27612009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2762
2763 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Fix order of
2764 building PDR subscripts.
2765
27662009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2767
2768 * graphite-sese-to-poly.c (pdr_add_data_dimensions): Fix the
2769 computation of array sizes.
2770
27712009-07-10 Sebastian Pop <sebastian.pop@amd.com>
2772
2773 * graphite-sese-to-poly.c (add_param_constraints): Disabled.
2774
27752009-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
2776
2777 * graphite-dependences.c (map_into_dep_poly, map_dr_into_dep_poly,
2778 build_pairwise_constraint, dr_equality_constraints,
2779 build_pairwise_scheduling_equality,
2780 build_pairwise_scheduling_inequality, lexicographically_gt_p,
2781 build_lexicographically_gt_constraint, dependence_polyhedron,
2782 graphite_legal_transform_dr, graphite_carried_dependence_level_k):
2783 Move from NNC_Polyhedron to C_Polyhedron.
2784 * graphite-interchange.c (compute_array_size_poly,
2785 gather_access_strides): Dito.
2786 * graphite-poly.c (apply_poly_transforms, new_poly_dr, free_poly_bb,
2787 free_scop, pbb_number_of_iterations): Dito.
2788 * graphite-poly.h (struct poly_dr, pdr_nb_subscripts, struct poly_bb,
2789 pbb_dim_iter_domain, struct scop): Dito.
2790 * graphite-ppl.c (new_Constraint_System_from_Cloog_Matrix,
2791 new_Cloog_Domain_from_ppl_Polyhedron,
2792 new_Cloog_Domain_from_ppl_Pointset_Powerset, ppl_set_coef_gmp,
2793 ppl_insert_dimensions_pointset, ppl_insert_dimensions_pointset,
2794 ppl_strip_loop, ppl_strip_loop, ppl_print_polyhedron_matrix,
2795 ppl_print_powerset_matrix, debug_ppl_polyhedron_matrix,
2796 debug_ppl_powerset_matrix, ppl_read_polyhedron_matrix): Dito.
2797 * graphite-ppl.h (ppl_Pointset_Powerset_C_Polyhedron_t,
2798 new_C_Polyhedron_from_Cloog_Matrix, ppl_print_powerset_matrix,
2799 debug_ppl_powerset_matrix, ppl_insert_dimensions_pointset): Dito.
2800 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons,
2801 build_loop_iteration_domains, ppl_constraint_type_from_tree_code,
2802 add_condition_to_domain, add_condition_to_pbb, build_scop_context,
2803 build_scop_iteration_domain, build_poly_dr): Dito
2804
28052009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2806
45489e99 2807 * gcc.dg/graphite/graphite.exp: Added a rule to execute
2abae5f1 2808 run-id-*.c files.
45489e99 2809 * gcc.dg/graphite/run-id-1.c: New.
2abae5f1
SP
2810
28112009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2812
2813 * graphite-sese-to-poly.c (build_loop_iteration_domains): Add the
2814 positivity constraint on the symbolic number of iterations.
2815
28162009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2817
2818 * graphite-sese-to-poly.c (build_loop_iteration_domains): Rewrite.
2819
28202009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2821 Tobias Grosser <grosser@fim.uni-passau.de>
2822
2823 * graphite-clast-to-gimple.c (build_scop_context): Removed.
2824 (build_cloog_prog): Directly use SCOP_CONTEXT.
2825 * graphite-poly.c (new_scop): Initialize SCOP_CONTEXT.
2826 (free_scop): Free SCOP_CONTEXT.
2827 (print_scop_context): New.
2828 (print_scop): Call print_scop_context.
2829 (debug_scop_context): New.
2830 * graphite-poly.h (print_scop_context, debug_scop_context): Declared.
2831 (struct scop): Added field context.
2832 (SCOP_CONTEXT): New.
2833 * graphite-sese-to-poly.c (add_param_constraints): New.
2834 (build_scop_context): New.
2835 (build_poly_scop): Call build_scop_context.
2836
28372009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2838
2839 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Moved...
2840 * graphite-ppl.c (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): New.
2841 (ppl_set_inhomogeneous, ppl_set_coef): Moved...
2842 * graphite-ppl.h: Include double-int.h and tree.h.
2843 (ppl_set_inhomogeneous_gmp, ppl_set_coef_gmp): Declared.
2844 (ppl_set_inhomogeneous, ppl_set_coef): ...here.
2845 (gmp_cst_to_tree): ...here. Reimplemented using mpz_get_double_int.
2846 (tree_int_to_gmp, ppl_set_inhomogeneous_tree, ppl_set_coef_tree): New.
2847
28482009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2849
2850 * graphite-clast-to-gimple.c (clast_to_gcc_expression_red): Generate
2851 POINTER_PLUS_EXPR for pointer types.
2852 (clast_to_gcc_expression): Same.
2853
28542009-07-09 Sebastian Pop <sebastian.pop@amd.com>
2855
2856 * graphite-poly.c (print_scattering_function): Early return when
2857 PBB_TRANSFORMED_SCATTERING is not initialized.
2858 (print_pbb_domain): Early return when PBB_DOMAIN is not initialized.
2859
28602009-07-08 Sebastian Pop <sebastian.pop@amd.com>
2861
2862 * tree-parloops.c (analyze_reduction_list): Remove unused variable
2863 to fix bootstrap.
2864
28652009-07-08 Razya Ladelsky <razya@il.ibm.com>
2866
2867 * tree-parloops.c (analyze_reduction_list): Change return
2868 value to void.
2869 (try_create_reduction_list): Move the call to
2870 analyze_reduction_list to the beginining.
2871 Call reduction_phi with analyzed_reductions as argument
2872 instead of reduction_list.
2873
28742009-07-08 Tobias Grosser <grosser@fim.uni-passau.de>
2875
2876 * Merge from mainline (r148296:149346)
2877
28782009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2879
2880 * graphite-scop-detection.c (graphite_can_represent_init): New.
2881 (graphite_can_represent_scev): Call graphite_can_represent_init:
2882 check that the initial value does not contain multiplications of
2883 parameters.
2884 (stmt_has_simple_data_refs_p): New.
2885 (stmt_simple_for_scop_p): Call stmt_simple_for_scop_p.
2886 (is_simple_operand): Fix formatting.
2887 * graphite-sese-to-poly.c (try_generate_gimple_bb): Fix formatting.
2888
28892009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2890
45489e99 2891 * gcc.dg/graphite/id-13.c: New.
2abae5f1
SP
2892 * graphite-sese-to-poly.c (graphite_stmt_p): Do not call
2893 analyze_scalar_evolution, use scalar_evolution_in_region.
2894 (scan_tree_for_params_right_scev): Add extra assert.
2895 (parameter_index_in_region_1): Split from parameter_index_in_region.
2896 (idx_record_params): Use scalar_evolution_in_region.
2897 (find_params_in_bb): Same.
2898 (find_scop_parameters): Same.
2899 (build_loop_iteration_domains): Same.
2900 (create_linear_expr_from_tree): Same.
2901 * sese.c (scalar_evolution_in_region): New.
2902 * sese.h (scalar_evolution_in_region): Declared.
2903 (defined_in_sese_p): New.
2904 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop): Not
2905 static anymore.
2906 * tree-scalar-evolution.h (compute_overall_effect_of_inner_loop):
2907 Declared.
2908
29092009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2910
2911 * Makefile.in: Replace dependences on tree-chrec.h with SCEV_H.
2912 TREE_DATA_REF_H also implies SCEV_H.
2913
29142009-07-07 Sebastian Pop <sebastian.pop@amd.com>
2915
2916 * graphite-poly.c (print_scop_params): New.
2917 (print_scop): Call print_scop_params.
2918 (debug_scop_params): New.
2919 * graphite-poly.h (print_scop_params, debug_scop_params): Declared.
2920
29212009-07-07 Li Feng <nemokingdom@gmail.com>
2922
45489e99
SP
2923 * gcc.dg/graphite/graphite_autopar/force-parallel-4.c: New.
2924 * gcc.dg/graphite/graphite_autopar/force-parallel-5.c: New.
2925 * gcc.dg/graphite/graphite_autopar/force-parallel-6.c: New.
2926 * gcc.dg/graphite/graphite_autopar/force-parallel-7.c: New.
2927 * gcc.dg/graphite/graphite_autopar/force-parallel-8.c: New.
2928 * gcc.dg/graphite/graphite_autopar/force-parallel-9.c: New.
2abae5f1
SP
2929
29302009-07-07 Li Feng <nemokingdom@gmail.com>
2931
2932 * graphite-clast-to-gimple.c (mark_loops_parallel): Dump information
2933 for dependency checking part.
45489e99 2934 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Add
2abae5f1 2935 tests for dependency checking.
45489e99
SP
2936 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
2937 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
2938 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Add
2abae5f1
SP
2939 flag -fdump-tree-graphite-all for autopar testsuites.
2940
29412009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2942
2943 * Makefile.in (tree-ssa-loop-manip.o): Depends on langhooks.h.
2944 * tree-parloops.c (rewrite_phi_with_iv, rewrite_all_phi_nodes_with_iv,
2945 canonicalize_loop_ivs): Moved...
2946 * tree-ssa-loop-manip.c: ... here. Include langhooks.h.
2947
29482009-07-06 Sebastian Pop <sebastian.pop@amd.com>
2949
2950 * tree-parloops.c (try_create_reduction_list): Pass an extra
2951 argument analyzed_reductions. Call analyze_reduction_list.
2952 (gen_parallel_loop): Do not call analyze_reduction_list.
2953 (parallelize_loops): Init and finalize analyzed_reductions.
2954
29552009-07-06 Li Feng <nemokingdom@gmail.com>
2956
45489e99 2957 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2abae5f1
SP
2958 Added flag -fno-loop-strip-mine for autopar testcase.
2959
29602009-07-04 Li Feng <nemokingdom@gmail.com>
2961
2962 * graphite-dependences.c (graphite_carried_dependence_level_k): Use
2963 transformed scattering dimension instead of unmatch orignal when
2964 calling dependence_polyhedron.
2965
29662009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2967
2968 * opts.c (decode_options): Enable flag_loop_strip_mine at -O2.
2969
29702009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2971
2972 * graphite-poly.c (pbb_number_of_iterations): Check for returned
2973 value 1 from ppl_Pointset_Powerset_NNC_Polyhedron_maximize.
2974
29752009-06-30 Sebastian Pop <sebastian.pop@amd.com>
2976
2977 * graphite-blocking.c (pbb_strip_mine_profitable_p): New.
2978 (pbb_do_strip_mine): Call pbb_strip_mine_profitable_p.
2979 * graphite-poly.c (pbb_number_of_iterations): New.
2980 * graphite-poly.h (pbb_number_of_iterations): Declared.
2981 (pbb_iterator_dim, pbb_parameter_dim): New.
2982
29832009-06-29 Sebastian Pop <sebastian.pop@amd.com>
2984
2985 * graphite-clast-to-gimple.c (graphite_create_new_loop): Revert the
2986 last commit on type of lower and upper bound of loops.
2987
29882009-06-29 Li Feng <nemokingdom@gmail.com>
2989
2990 * Makefile.in (graphite-clast-to-gimple.o): Added dependence on
2991 graphite-dependences.h.
2992 * graphite-clast-to-gimple.c (new_bb_pbb_def): New.
2993 (mark_bb_with_pbb): New.
2994 (get_stmtfor_depth): New.
2995 (find_pbb_via_hash): New.
2996 (dependency_in_loop_p): New.
2997 (mark_loops_parallel): New.
2998 (free_aux_in_new_loops): New.
2999 (translate_clast): Add parameter BB_PBB_MAPPING. Mark newly created
3000 bb with it's relevant pbb. Mark newly created loops. Remove mark
3001 innermost loop parallel without checking.
3002 (gloog): Add parameter BB_PBB_MAPPING.
3003 * graphite-clast-to-gimple.h (struct bb_pbb_def): New.
3004 (gloog): Change declaration.
3005 (mark_loop_parallel): Make extern.
3006 (free_aux_in_new_loops): Declare.
3007 (bb_pbb_map_hash): New.
3008 (eq_bb_pbb_map): New.
3009 * graphite.c (graphite_transform_loops): Added BB_PBB_MAPPING. Trigger
3010 auto parallelization when flag_graphite_force_parallel is set.
3011 (graphite_finalize): Added free_aux_in_new_loops.
3012 * tree-parloops.c (parallelize_loops): Only generate parallel code for
3013 the innermost loop that marked parallel. Use
3014 flag_graphite_force_parallel instead of loop->can_be_parallel.
3015 (loop_parallel_p): Move inner most checking out of function.
3016
30172009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3018
3019 * graphite-clast-to-gimple.c (graphite_create_new_loop): Make the
3020 type of lower and upper bound of loops signed long int.
3021
30222009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3023
3024 * cfgloopmanip.c (create_empty_loop_on_edge): Gimplify the loop exit
3025 expression outside the loop.
3026
30272009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3028
3029 * gcc.dg/graphite/interchange-8.c: New.
3030
30312009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3032
3033 * gcc.dg/graphite/interchange-0.c: XFailed.
3034 * gcc.dg/graphite/interchange-5.c: XFailed.
3035 * gcc.dg/graphite/interchange-6.c: XFailed.
3036
30372009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3038
3039 * graphite-interchange.c (compute_array_size_poly): The end of the
3040 recursion should return 1.
3041
30422009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3043
3044 * graphite-interchange.c (compute_array_size_cstr): Allow the
3045 subscript multiplier to be -1.
3046 (compute_array_size): Use PDR_DATA_CONTAINER and not PDR_ACCESSES.
3047 * graphite-poly.c (new_poly_dr): Takes an extra argument for the
3048 data_container. Initializes PDR_DATA_CONTAINER.
3049 (print_pdr_access_layout): New.
3050 (print_pdr): Call print_pdr_access_layout. Print PDR_DATA_CONTAINER.
3051 * graphite-poly.h (struct poly_dr): Adjust comment. Add a new field
3052 data_container.
3053 (PDR_DATA_CONTAINER): New.
3054 (new_poly_dr): Update declaration.
3055 * graphite-sese-to-poly.c (pdr_add_data_dimensions): New.
3056 (build_poly_dr): Call pdr_add_data_dimensions.
3057
30582009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3059
3060 * graphite-poly.h (struct poly_dr): Fix comment.
3061 * graphite-sese-to-poly.c (pdr_add_alias_set): New.
3062 (pdr_add_memory_accesses): New.
3063 (build_poly_dr): Call pdr_add_memory_accesses and pdr_add_alias_set.
3064
30652009-06-26 Sebastian Pop <sebastian.pop@amd.com>
3066
3067 * graphite-poly.c (print_pdrs, debug_pdrs): New.
3068 (print_pbb): Add call to print_pdrs.
3069 * graphite-poly.h (print_pdrs, debug_pdrs): Declared.
3070
30712009-06-24 Konrad Trifunovic <konrad.trifunovic@gmail.com>
3072 Li Feng <nemokingdom@gmail.com>
3073
3074 * graphite-dependences.c (graphite_carried_dependence_level_k): New.
3075 (dependency_between_pbbs_p): New.
3076 (lexicographically_gt_p): Assure !empty_p before polyhedron
3077 intersection assign.
3078 (build_lexicographically_gt_constraint): Correct lexicographically
3079 judging.
3080 * graphite-dependences.h: New.
3081 * Makefile.in (graphite-dependences.o): Add graphite-dependences.h.
3082
30832009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3084
3085 * graphite-clast-to-gimple.c (print_clast_stmt): New.
3086 (gloog): Print to dump_file the generated clast.
3087 * graphite-clast-to-gimple.h (print_clast_stmt): Declared.
3088 * graphite-interchange.c (pbb_do_interchange): Fix dump formatting.
3089
30902009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3091
3092 * graphite-poly.c (extend_scattering): Increment
3093 PBB_NB_LOCAL_VARIABLES by the number of added dimensions.
3094
30952009-06-24 Sebastian Pop <sebastian.pop@amd.com>
3096
3097 * graphite-interchange.c (compute_array_size_poly): Added exit of
3098 recursion condition. Continue iterating even after the first equality.
3099 (compute_array_size): Same.
3100
31012009-06-24 Li Feng <nemokingdom@gmail.com>
3102
45489e99 3103 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: Update
2abae5f1 3104 -fdump-tree-final_cleanup to -fdump-tree-optimized.
45489e99
SP
3105 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: Ditto.
3106 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: Ditto.
3107 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: Ditto.
2abae5f1
SP
3108
31092009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3110
3111 * sese.c (expand_scalar_variables_stmt): Expand scalar variables
3112 only when the use verifies is_gimple_reg.
3113
31142009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3115
3116 * graphite-clast-to-gimple.c (build_cloog_prog): Fix memory corruption.
3117 Allocate scaldims after call to unify_scattering_dimensions.
3118
31192009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3120
3121 * graphite-clast-to-gimple.c (translate_clast): Fix memory leak.
3122
31232009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3124 Albert Cohen <albert.cohen@inria.fr>
3125
3126 * graphite-blocking.c (pbb_strip_mine_loop_depth): Do not use local
3127 variables for the strip mining.
3128
31292009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3130 Pranav Garg <pranav.garg2107@gmail.com>
3131
3132 * Makefile.in (OBJS-common): Added graphite-blocking.o.
3133 (graphite-sese-to-poly.o): Moved down to be in lexicographical order.
3134 (graphite-blocking.o): New rule.
3135 (graphite-poly.o, graphite-ppl.o): Moved to be in lexicographical order.
3136 * graphite-blocking.c: New.
3137 * graphite-poly.c (apply_poly_transforms): Call scop_do_strip_mine for
3138 flag_loop_strip_mine.
3139 (psct_scattering_dim_for_loop_depth): New.
3140 * graphite-poly.h (scop_do_strip_mine): Declared.
3141 (psct_add_local_variable): Increment PBB_NB_LOCAL_VARIABLES.
3142 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when using
3143 flag_loop_strip_mine.
3144
31452009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3146
3147 * graphite-poly.c (extend_scattering): Avoid initializing and freeing
3148 a GMP value and a PPL coefficient at each iteration of a loop.
3149
31502009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3151
3152 * graphite-dependences.c (dependence_polyhedron): Do not use
3153 pbb_nb_scattering_dims anymore. Use pbb_nb_scattering_orig and
3154 pbb_nb_scattering_transform.
3155 (graphite_legal_transform_dr): Same.
3156 * graphite-poly.c (extend_scattering): Same.
3157 (unify_scattering_dimensions): Same.
3158 (print_scattering_function): Same.
3159 (new_poly_bb): Initialize PBB_NB_SCATTERING_TRANSFORM and
3160 PBB_NB_LOCAL_VARIABLES.
3161 * graphite-poly.h (pbb_nb_scattering): Removed declaration.
3162 (struct poly_bb): Added nb_local_variables and nb_scattering_transform.
3163 (PBB_NB_LOCAL_VARIABLES, PBB_NB_SCATTERING_TRANSFORM): New.
3164 (pbb_nb_scattering_orig, pbb_nb_scattering_transform): New.
3165 (pbb_nb_scattering_dims, pbb_nb_scattering): Removed.
3166 (pbb_nb_scattering_transform): New.
3167 (pbb_nb_local_vars): Return PBB_NB_LOCAL_VARIABLES.
3168 (psco_scattering_dim): Add assert on parameters.
3169 (psct_scattering_dim): Same.
3170 (psct_scattering_dim_for_loop_depth): Declared.
3171 (psct_local_var_dim): New.
3172 (psco_iterator_dim, psco_parameter_dim): Add assert on parameters.
3173 (psct_iterator_dim, psct_parameter_dim): Same. To maintain the
3174 correct layout, call pbb_nb_local_vars.
3175 (psct_add_local_variable, psct_add_scattering_dimension): New.
3176 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
3177 Initialize PBB_NB_SCATTERING_TRANSFORM.
3178
31792009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3180
3181 * graphite-ppl.c (set_inhomogeneous): Renamed ppl_set_inhomogeneous.
3182 (set_coef): Renamed ppl_set_coef.
3183 * graphite-ppl.h (ppl_set_inhomogeneous, ppl_set_coef): Declared.
3184
31852009-06-23 Sebastian Pop <sebastian.pop@amd.com>
3186
3187 * graphite-dependences.c (build_pairwise_scheduling_inequality): Don't
3188 test a boolean against 1.
3189 * graphite-interchange.c (pbb_interchange_loop_depths): Do not build
3190 a new polyhedron for the PBB_TRANSFORMED_SCATTERING.
3191 (pbb_do_interchange): Returns true when a transform has been performed.
3192 (scop_do_interchange): Same.
3193 * graphite-poly.c (apply_poly_transforms): Use the return value of
3194 scop_do_interchange.
3195 * graphite-poly.h (scop_do_interchange): Update declaration.
3196
31972009-06-23 Tobias Grosser <grosser@fim.uni-passau.de>
3198
3199 * graphite-clast-to-gimple.c (gloog): Reset loop->aux right
3200 after last use.
3201 * sese.c (sese_reset_aux_in_loops): New.
3202 * sese.h (sese_reset_aux_in_loops): New.
3203
32042009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3205
3206 * graphite-sese-to-poly.c (scan_tree_for_params_int): Pass in the
3207 multiplier and multiply the constant by the multiplier.
3208 (scan_tree_for_params): Bound the multiplier to its MULT_EXPR.
3209 (build_poly_dr): Do not use the multiplier to define the subscript.
3210
32112009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3212
3213 * graphite-poly.c (new_poly_dr): Pass an extra argument for the
3214 compiler's data reference. Initialize PDR_CDR.
3215 (print_pdr): Call dump_data_reference.
3216 * graphite-poly.h (struct poly_dr): Rename black_box into pbb.
3217 Add compiler_dr field.
3218 (PDR_BB): Renamed PDR_PBB.
3219 (PDR_CDR): New.
3220 * graphite-sese-to-poly.c (build_poly_dr): Pass to new_poly_dr
3221 GCC's data reference representation.
3222 * tree-data-ref.c (debug_data_references, debug_data_reference): New.
3223 * tree-data-ref.h (debug_data_references, debug_data_reference): Decl.
3224
32252009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3226
3227 * graphite-poly.c (print_scattering_function): Also print the layout.
3228 * graphite-poly.h (pbb_nb_local_vars): New.
3229
32302009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3231
3232 * graphite-poly.c (print_pbb_domain): Also print the layout names.
3233
32342009-06-19 Sebastian Pop <sebastian.pop@amd.com>
3235
3236 * graphite-poly.c (print_pdr, debug_pdr): New.
3237 * graphite-poly.h (print_pdr, debug_pdr): Declared.
3238 (PDR_BASE): Removed.
3239
32402009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3241
45489e99 3242 * gcc.dg/graphite/interchange-{1..7}.c: New avatars of
2abae5f1
SP
3243 ltrans-{1..6,8}.c.
3244
32452009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3246
3247 * graphite-interchange.c (compute_subscript): Allow also -1 in the
3248 subscript identification column.
3249 (pbb_do_interchange): Print to dump_file that some loops "will be
3250 interchanged". Rely on that chain of characters in the testcases.
3251 * gcc.dg/graphite/interchange-0.c: New.
3252 * gcc.dg/graphite/graphite.exp: Iterate over the testsuite
3253 interchange-*.c files and compile them with -floop-interchange.
3254
32552009-06-18 Pranav Garg <pranav.garg2107@gmail.com>
3256
3257 * graphite-interchange.c (interchange_profitable_p): Renamed
3258 pbb_interchange_profitable_p.
3259
32602009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3261 Harsha Jagasia <harsha.jagasia@amd.com>
3262 Pranav Garg <pranav.garg2107@gmail.com>
3263
3264 * graphite-interchange.c (interchange_profitable_p): Make static.
3265 (pbb_interchange_loop_depths, pbb_do_interchange,
3266 scop_do_interchange): New.
3267 * graphite-poly.c (apply_poly_transforms): Call scop_do_interchange
3268 for flag_loop_interchange.
3269 * graphite-poly.h (scop_do_interchange): Declared.
3270 * tree-ssa-loop.c (gate_graphite_transforms): Do not fail when
3271 flag_loop_interchange is used.
3272
32732009-06-18 Sebastian Pop <sebastian.pop@amd.com>
3274
3275 * graphite-dependences.c (dependence_polyhedron): Update use of
3276 pbb_nb_scattering_dims.
3277 * graphite-poly.h (pbb_nb_scattering_dims): Do not pass SCOP.
3278 (pbb_nb_scattering): Update use of pbb_nb_scattering_dims.
3279 (psco_scattering_dim, psct_scattering_dim, psco_iterator_dim,
3280 psct_iterator_dim, psco_parameter_dim, psct_parameter_dim): New.
3281
32822009-06-16 Sebastian Pop <sebastian.pop@amd.com>
3283
3284 * graphite.c: Cleanup foo.
3285
32862009-06-16 Sebastian Pop <sebastian.pop@amd.com>
3287
3288 * Merge from mainline (r143684:148293).
3289 * Disabled libpcp until it gets fixed.
3290
32912009-06-05 Sebastian Pop <sebastian.pop@amd.com>
3292 Harsha Jagasia <harsha.jagasia@amd.com>
3293
3294 * graphite-interchange.c: New.
3295 * Makefile.in (graphite-interchange.o): New.
3296 * graphite-poly.h (interchange_profitable_p): Declared.
3297 * graphite-ppl.h (value_max): New.
3298
32992009-06-04 Sebastian Pop <sebastian.pop@amd.com>
3300
3301 * graphite-dependences.c (dependence_polyhedron): Use pdr_dim.
3302 * graphite-poly.h: Fix some comments.
3303 (pdr_dim): New.
3304 (pdr_scop): New.
3305
33062009-06-04 Sebastian Pop <sebastian.pop@amd.com>
3307
3308 * graphite-poly.h
3309 (pdr_accessp_nb_subscripts): Renamed pdr_nb_subscripts.
3310 (pdr_accessp_nb_iterators): Renamed pdr_dim_iter_domain.
3311 (pdr_accessp_nb_params): Renamed pdr_nb_params.
3312 (pdr_accessp_alias_set_dim): Renamed pdr_alias_set_dim.
3313 (pdr_accessp_subscript_dim): Renamed pdr_subscript_dim.
3314 (pdr_accessp_iterator_dim): Renamed pdr_iterator_dim.
3315 (pdr_accessp_param_dim): Renamed pdr_parameter_dim.
3316 (pbb_nb_loops): Renamed pbb_dim_iter_domain.
3317 * graphite-clast-to-gimple.c: Same.
3318 * graphite-dependences.c: Same.
3319 * graphite-poly.c: Same.
3320 * graphite-sese-to-poly.c: Same.
3321
33222009-06-03 Sebastian Pop <sebastian.pop@amd.com>
3323
3324 * graphite-clast-to-gimple.c (build_iv_mapping): Insert full
3325 expressions for an IV rename, as returned by clast_to_gcc_expression.
3326 (copy_renames): Rename new_name to expr.
3327 * sese.c (debug_rename_elt): Same.
3328 (get_rename): Same.
3329 (set_rename): Same.
3330 (sese_adjust_liveout_phis): Call force_gimple_operand before using
3331 the information from the rename map.
3332 (rename_variables_in_stmt): Same.
3333 (add_loop_exit_phis): Rename new_name to expr.
3334 (insert_loop_close_phis): Same.
3335 (add_guard_exit_phis): Same. Call force_gimple_operand.
3336 * sese.h (struct rename_map_elt): Rename new_name to expr.
3337 (new_rename_map_elt): Same.
3338
33392009-06-03 Sebastian Pop <sebastian.pop@amd.com>
3340
3341 * graphite-clast-to-gimple.c (build_iv_mapping): Use set_rename.
3342 * sese.c (set_rename): Make it extern.
3343 * sese.h (set_rename): Declared.
3344
33452009-06-03 Sebastian Pop <sebastian.pop@amd.com>
3346
3347 * graphite-poly.c (extend_scattering): Free values.
3348 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset):
3349 Free iterators.
3350 (ppl_print_powerset_matrix): Same.
3351 * graphite-scop-detection.c (free_scops_1): New.
3352 (limit_scops): Call free_scops_1.
3353 * graphite-sese-to-poly.c (build_scop_bbs_1): Free dom.
3354 (build_poly_dr): Free PPL coefficients.
3355 * tree-parloops.c (rewrite_all_phi_nodes_with_iv): Free bbs.
3356
33572009-06-02 Sebastian Pop <sebastian.pop@amd.com>
3358
3359 * graphite-dependences.c: New.
3360 * graphite-data-ref.c: Removed.
3361 * graphite-data-ref.h: Removed.
3362 * Makefile.in (graphite-data-ref.o): Removed.
3363 (graphite-dependences.o): Added.
3364 * graphite-clast-to-gimple.c: Remove dependence on graphite-data-ref.h.
3365 * graphite-poly.c: Same.
3366 Move the data dependence testing to graphite-dependences.c.
3367
33682009-05-19 Tobias Grosser <grosser@fim.uni-passau.de>
3369
3370 * graphite-scop-detection.c (graphite_can_represent_loop): Renamed
3371 from graphite_cannot_represent_loop. Code refactored.
3372 (scopdet_basic_block_info): Call graphite_can_represent_loop.
3373
33742009-05-17 Li Feng <nemokingdom@gmail.com>
3375
45489e99 3376 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp:
2abae5f1
SP
3377 Cover all the testcases (not only the filtered ones).
3378
33792009-05-17 Tobias Grosser <grosser@fim.uni-passau.de>
3380
3381 * graphite-scop-detection.c (stmt_simple_for_scop_p): Remove
3382 unnecessary check. Update comments. Move check for REAL_TYPE here.
3383 (harmful_stmt_in_bb): Remove checks for conditions. This is already
3384 done in (stmt_simple_for_scop_p).
3385
33862009-05-14 Tobias Grosser <grosser@fim.uni-passau.de>
3387
3388 * graphite.c (print_global_statistics): New.
3389 (print_graphite_scop_statistic): New.
3390 (print_graphite_statistics): New.
3391 (graphite_initialize, graphite_transform_loops): Print statistics.
3392 * graphite-scop-detection (build_scops): Print statistics.
3393 (print_graphite_scop_statistics): New.
3394 (print_graphite_statistics): New.
3395
33962009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3397
3398 * graphite-clast-to-gimple.c (struct clast_name_index): Removed.
3399 (debug_clast_name_index): Removed.
3400 (debug_clast_name_indexes_1): Removed.
3401 (debug_clast_name_indexes): Removed.
3402 (clast_name_index_elt_info): Removed.
3403 (eq_clast_name_indexes): Removed.
3404 (clast_name_to_index): Removed.
3405 (new_clast_name_index): Removed.
3406 (save_clast_name_index): Removed.
3407 (save_var_name): Moved...
3408 (init_sese_params_index): Removed.
3409 (clast_name_to_gcc): Remove use of name_tree.
3410 (initialize_cloog_names): Same.
3411 (gloog): Do not call init_sese_params_index.
3412 * graphite-sese-to-poly.c (save_var_name): ...here.
3413 (parameter_index_in_region): New.
3414 * sese.c (new_sese): Initialize SESE_PARAMS_NAMES.
3415 (parameter_index_in_region): Removed.
3416 (is_parameter): Remove use of name_tree.
3417 * sese.h (struct name_tree): Removed.
3418 (struct sese): Remove use of name_tree. New field params_names.
3419 (SESE_PARAMS_NAMES): New.
3420 (SESE_PARAMS): Remove duplicate.
3421 (parameter_index_in_region): Removed.
3422 (sese_nb_params): Remove use of name_tree.
3423 (struct clast_name_index): New.
3424 (new_clast_name_index): New.
3425 (clast_name_to_index): New.
3426 (save_clast_name_index): New.
3427 (debug_clast_name_index): New.
3428 (debug_clast_name_indexes_1): New.
3429 (debug_clast_name_indexes): New.
3430 (clast_name_index_elt_info): New.
3431 (eq_clast_name_indexes): New.
3432
34332009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3434
3435 * graphite-clast-to-gimple.c (compute_cloog_iv_types_1): Call
3436 pbb_to_depth_to_oldiv. Remove call to oldiv_for_loop.
3437 (graphite_loop_normal_form): Do not pass region. Do not
3438 initialize SESE_OLDIVS.
3439 (build_graphite_loop_normal_form): Update call to
3440 graphite_loop_normal_form.
3441 * sese.c (debug_oldivs): Removed.
3442 (new_sese): Do not initialize SESE_OLDIVS.
3443 (free_sese): Do not free SESE_OLDIVS.
3444 (oldiv_for_loop): Removed.
3445 * sese.h (struct sese): Remove old_ivs.
3446 (SESE_OLDIVS): Removed.
3447 (oldiv_for_loop): Removed.
3448
34492009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3450
3451 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass newivs,
3452 remove ivstack. Remove call to loop_iv_stack_get_iv_from_name,
3453 replaced by a call to newivs_to_depth_to_newiv.
3454 (clast_to_gcc_expression): Pass newivs, remove ivstack.
3455 (clast_to_gcc_expression_red): Same.
3456 (gcc_type_for_clast_expr): Same.
3457 (gcc_type_for_clast_eq): Same.
3458 (graphite_translate_clast_equation): Same.
3459 (graphite_create_guard_cond_expr): Same.
3460 (graphite_create_new_guard): Same.
3461 (graphite_create_new_loop): Same.
3462 (build_iv_mapping): Same.
3463 (translate_clast): Same.
3464 (gloog): Same.
3465 (loop_iv_stack_patch_for_consts): Removed. *
3466 sese.c (iv_stack_entry_is_constant): Removed.
3467 (iv_stack_entry_is_iv): Removed.
3468 (loop_iv_stack_push_iv): Removed.
3469 (loop_iv_stack_insert_constant): Removed.
3470 (loop_iv_stack_pop): Removed.
3471 (loop_iv_stack_get_iv): Removed.
3472 (loop_iv_stack_get_iv_from_name): Removed.
3473 (debug_loop_iv_stack): Removed.
3474 (free_loop_iv_stack): Removed.
3475 (loop_iv_stack_remove_constants): Removed. *
3476 sese.h (iv_stack_entry_kind): Removed.
3477 (iv_stack_entry_data_union): Removed.
3478 (iv_stack_entry_struct): Removed.
3479 (iv_stack_entry_p): Removed.
3480 (debug_oldivs, debug_loop_iv_stack, loop_iv_stack_insert_constant,
3481 loop_iv_stack_get_iv_from_name, loop_iv_stack_push_iv,
3482 loop_iv_stack_get_iv, loop_iv_stack_remove_constants,
3483 loop_iv_stack_pop, free_loop_iv_stack): Removed.
3484 (gbb_loop_at_index): Fix indenting.
3485 (gbb_loop_index): Removed.
3486
34872009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3488
3489 * graphite-clast-to-gimple.c (clast_name_to_gcc): Do not use strcmp.
3490 Call clast_name_to_index.
3491
34922009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3493
3494 * graphite-clast-to-gimple.c (clast_name_to_gcc): Pass region,
3495 do not pass params. Get params from SESE_PARAMS.
3496 (clast_to_gcc_expression): Same.
3497 (clast_to_gcc_expression_red): Same.
3498 (gcc_type_for_clast_eq): Same.
3499 (graphite_translate_clast_equation): Same.
3500 (graphite_create_new_loop): Same.
3501 * sese.c (rename_variables_in_stmt): Fix comment.
3502
35032009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3504
3505 * graphite-clast-to-gimple.c (graphite_create_new_loop): Pass
3506 newivs_index.
3507 Call save_clast_name_index.
3508 (translate_clast): Pass newivs_index.
3509 (gloog): Create and free newivs_index.
3510
35112009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3512
3513 * graphite-clast-to-gimple.c (clast_name_index): New structure.
3514 (clast_name_index_p): New type.
3515 (debug_clast_name_index): New.
3516 (debug_clast_name_indexes_1): New.
3517 (debug_clast_name_indexes): New.
3518 (clast_name_index_elt_info): New.
3519 (eq_clast_name_indexes): New.
3520 (clast_name_to_index): New.
3521 (new_clast_name_index): New.
3522 (save_clast_name_index): New.
3523 (init_sese_params_index): New.
3524 (gloog): Call init_sese_params_index.
3525 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Declared.
3526 * sese.c (new_sese): Initialize SESE_PARAMS_INDEX.
3527 (free_sese): Free SESE_PARAMS_INDEX.
3528 * sese.h (struct sese): Add params_index.
3529 (SESE_PARAMS_INDEX): New.
3530
35312009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3532
3533 * graphite-clast-to-gimple.c (newivs_to_depth_to_newiv): New.
3534 (graphite_create_new_loop): Pass the newivs vector. Push the
3535 newly created IV to newivs.
3536 (translate_clast): Pass the newivs vector.
3537 (gloog): Create and destroy the newivs vector.
3538
35392009-05-13 Sebastian Pop <sebastian.pop@amd.com>
3540
3541 * graphite-clast-to-gimple.c (pbb_to_depth_to_oldiv): New.
3542 (graphite_loop_normal_form): Initialize loop->aux with the unique
3543 IV that has been created.
3544
35452009-05-13 Tobias Grosser <grosser@fim.uni-passau.de>
3546
3547 * tree-chrec.c (evolution_function_right_is_integer_cst): Allow
3548 scev with parameters in the base part. They where forbidden
3549 exidently.
3550
35512009-05-11 Li Feng <nemokingdom@gmail.com>
3552
45489e99 3553 * gcc.dg/graphite/graphite.exp: Set different default
2abae5f1 3554 compile options by file names.
45489e99
SP
3555 * gcc.dg/graphite/block{0-6}.c: Remove dg-option line.
3556 * gcc.dg/graphite/id-{1-9}.c: Ditto.
3557 * gcc.dg/graphite/scop-{0-20}.c: Ditto.
3558 * gcc.dg/graphite/scop-matmult.c: Ditto.
2abae5f1
SP
3559
35602009-05-08 Li Feng <nemokingdom@gmail.com>
3561
45489e99
SP
3562 * gcc.dg/graphite/graphite_autopar/graphite_autopar.exp: New.
3563 * gcc.dg/graphite/graphite_autopar/force-parallel-1.c: New.
3564 * gcc.dg/graphite/graphite_autopar/force-parallel-2.c: New.
3565 * gcc.dg/graphite/graphite_autopar/force-parallel-3.c: New.
2abae5f1
SP
3566
35672009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
3568
3569 * graphite-scop-detection (build_scops_1): Fix little bug introduced
3570 by final cleanup.
3571
35722009-05-07 Tobias Grosser <grosser@fim.uni-passau.de>
3573
3574 * graphite-scop-detection.c (graphite_can_represent_scev): Only
3575 allow integer constant strides.
3576 (graphite_can_represent_expr): Depend on outermost_loop.
3577 (stmt_simple_memref_p, graphite_cannot_represent_loop,
3578 harmful_stmt_in_bb, is_simple_operand, stmt_simple_for_scop_p,
3579 build_scops_1): Same.
3580 (scopdet_basic_block_info): Same and insert layered SCoP
3581 detection.
3582 (try_generate_gimple_bb): Cleanup.
3583 (build_scops): Enable data references.
3584
45489e99
SP
3585 * gcc.dg/graphite/id-5.c: New.
3586 * gcc.dg/graphite/id-9.c: New.
2abae5f1
SP
3587 * tree-chrec.c (evolution_function_right_is_integer_cst): New.
3588 * tree-chrec.h (evolution_function_right_is_integer_cst): New.
3589
35902009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3591
3592 * sese.c (expand_scalar_variables_ssa_name): Only build expressions,
3593 that we have not yet built for this SCoP.
3594
35952009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3596
3597 * sese.c (expand_scalar_variables_expr): Fix expand_scalar_variables
3598 for complex numbers.
3599
36002009-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
3601
3602 * graphite-ppl.c: Fix build if cloog is not available.
3603
36042009-05-04 Li Feng <nemokingdom@gmail.com>
3605
3606 * tree-parloops.c (loop_parallel_p): Remove construction of
3607 NITER and REDUCTION_LIST.
3608 (try_get_loop_niter): New.
3609 (try_create_reduction_list): New.
3610 (parallelize_loops): Bypass the failed checkings in autopar
3611 when can_be_parallel in loop structure is set to true.
3612
36132009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
3614
45489e99
SP
3615 * gcc.dg/graphite/id-6.c: Update testcase.
3616 * gcc.dg/graphite/scop-3.c: Dito.
2abae5f1
SP
3617
36182009-05-01 Tobias Grosser <grosser@fim.uni-passau.de>
3619
3620 * graphite-scop-detection.c (stmt_simple_for_scop_p):
3621 Enable EQ_EXPR and NE_EXPR again.
3622
36232009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
3624
3625 * graphite-scop-detection.c (graphite_can_represent_scev):
3626 Add check if scev is affine multivariate.
3627 (harmful_stmt_in_bb): Check if we can represent the conditions.
3628 (scopdet_basic_block_info (basic_block bb, VEC): Pass the loop to
3629 harmful_stmt_in_bb.
45489e99 3630 * gcc.dg/graphite/id-7.c: New.
2abae5f1
SP
3631
36322009-04-30 Tobias Grosser <grosser@fim.uni-passau.de>
3633
3634 * graphite-sese-to-poly.c (bb_contains_non_iv_scalar_phi_nodes):
3635 Check all bbs in region, not only the bbs that are represented in
3636 GRAPHITE.
3637 (build_poly_scop): Add newline.
45489e99 3638 * gcc.dg/graphite/id-8.c: New.
2abae5f1
SP
3639
36402009-04-30 Li Feng <nemokingdom@gmail.com>
3641
3642 * cfgloop.c (alloc_loop): Initialize can_be_parallel to false
3643 when loop initialize.
3644 * cfgloop.h (struct loop): Introduce flag can_be_parallel.
3645 * common.opt: Declare flag_graphite_force_parallel.
3646 * graphite-clast-to-gimple.c (translate_clast): Mark the innermost
3647 loop parallel.
3648 * graphite-poly.c (apply_poly_transforms): Introduce
3649 flag_graphite_force_parallel.
3650 * tree-ssa-loop.c (gate_graphite_transforms): ditto.
3651 * toplev.c (process_options): ditto and replace a not correctly
3652 encoded space.
3653
36542009-04-30 Li Feng <nemokingdom@gmail.com>
3655
3656 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts):
3657 Change the call of gbb_loop_at_index and/or gbb_loop_index due
3658 to the redefinition.
3659 (compute_cloog_iv_types_1): ditto.
3660 (build_iv_mapping): ditto.
3661 * graphite-sese-to-poly.c (new_gimple_bb): Remove GBB_LOOPS related
3662 initialization.
3663 (free_gimple_bb): Removed GBB_LOOPS related free part.
3664 (build_bb_loops): Removed.
3665 * sese.h (struct gimple_bb): Removed loops.
3666 (GBB_LOOPS): Removed.
3667 (gbb_loop_at_index): Instead of using GBB_LOOPS, we use sese instead.
3668 (gbb_loop_index): ditto.
3669
36702009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3671
3672 * graphite-scop-detection.c (graphite_can_represent_scev): Do not
3673 allow non constant strides.
45489e99 3674 * gcc.dg/graphite/scop-20.c: New.
2abae5f1
SP
3675
36762009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3677
3678 * graphite-scop-detection.c (dot_all_scops): Fix system call
3679 return value warning.
3680 (dot_scop): Same.
3681
36822009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3683
45489e99
SP
3684 * gcc.dg/graphite/id-6.c: Fix pattern.
3685 * gcc.dg/graphite/scop-3.c: Same.
2abae5f1
SP
3686
36872009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3688
3689 * graphite-poly.c (map_into_dep_poly, map_dr_into_dep_poly,
3690 build_pairwise_constraint, dr_equality_constraints,
3691 build_pairwise_scheduling_equality,
3692 build_pairwise_scheduling_inequality, lexicographically_gt_p,
3693 build_lexicographically_gt_constraint, dependence_polyhedron,
3694 graphite_legal_transform_dr, graphite_legal_transform_bb,
3695 graphite_legal_transform): New.
3696 * graphite-poly.h (graphite_legal_transform): Declared.
3697 * graphite-sese-to-poly.c (build_poly_scop): Call to
3698 graphite_legal_transform is disabled for the moment.
3699
37002009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3701
3702 * graphite-poly.h (pbb_nb_scattering_dims): New.
3703 (pbb_nb_scattering): Use it.
3704
37052009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3706
3707 * graphite-ppl.c (ppl_insert_dimensions_pointset): Add
3708 Pointset_Powerset version of ppl_insert_dimensions.
3709 * graphite-ppl.h (ppl_insert_dimensions_pointset): Declared.
3710
37112009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3712
3713 * graphite-ppl.c (ppl_insert_dimensions): Fix formatting.
3714
37152009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3716
3717 * graphite-poly.h: Fix comment.
3718
37192009-04-24 Sebastian Pop <sebastian.pop@amd.com>
3720
3721 * graphite-sese-to-poly.c (build_poly_dr): Fix data ref multiplier.
3722
37232009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3724
3725 * sese.c (expand_scalar_variables_stmt): Only iterate over the old
3726 statements.
3727
37282009-04-24 Tobias Grosser <grosser@fim.uni-passau.de>
3729
3730 * graphite-sese-to-poly.c (var_used_in_not_loop_header_phi_node): New.
3731 (graphite_stmt_p): Represent bbs necessary to build the phi nodes of
3732 conditions.
3733
37342009-04-20 Sebastian Pop <sebastian.pop@amd.com>
3735
3736 * graphite-scop-detection.c (stmt_simple_for_scop_p): Do not
3737 handle EQ_EXPR and NE_EXPR.
3738
37392009-04-17 Tobias Grosser <grosser@fim.uni-passau.de>
3740
3741 * graphite-poly.h (poly_dr): Fix comment.
3742
37432009-04-09 Sebastian Pop <sebastian.pop@amd.com>
3744 Tobias Grosser <grosser@fim.uni-passau.de>
3745
3746 * graphite-poly.c (new_poly_bb): Do not initialize PBB_DOMAIN
3747 with a zero dimension polyhedron.
3748 (find_scop_parameters): Move the call to scop_set_nb_params here.
3749 (build_loop_iteration_domains): Store in loop->aux the iteration
3750 domain polyhedron.
3751 (build_scop_iteration_domain): Fix PBB_DOMAIN for bbs not surrounded
3752 by any loop in scop.
3753 (build_poly_scop): Do not call scop_set_nb_params.
3754
37552009-04-09 Sebastian Pop <sebastian.pop@amd.com>
3756 Tobias Grosser <grosser@fim.uni-passau.de>
3757
3758 * graphite-sese-to-poly.c (add_condition_to_pbb): Pass code to
3759 add_condition_to_domain not GT_EXPR.
3760
37612009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3762
3763 * graphite-ppl.c (debug_ppl_powerset_matrix): New.
3764 * graphite-ppl.h (debug_ppl_powerset_matrix): New.
3765 * graphite-sese-to-poly.c (add_condition_to_pbb): Use
3766 upper_bound_assign to calculate unions.
45489e99 3767 * gcc.dg/graphite/id-6.c: New.
2abae5f1
SP
3768
37692009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3770
3771 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Do not
3772 handle abnormal edges.
3773
37742009-04-09 Tobias Grosser <grosser@fim.uni-passau.de>
3775
3776 * graphite-poly.c (new_poly_dr, free_poly_dr): New.
3777 (free_poly_bb): Also free poly_drs.
3778 * graphite-poly.h (new_poly_dr, free_poly_dr): New.
3779 (poly_dr): Polyhedron to Pointset_Powerset.
3780 (pdr_accessp_nb_subscripts): Same.
3781 * graphite-sese-to-poly.c (build_poly_dr): Same. And actually build
3782 poly_drs.
3783
37842009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3785
3786 * graphite-clast-to-gimple.c (initialize_cloog_names): Change cloog
3787 names into more meaningful names.
3788
37892009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3790
45489e99
SP
3791 * gfortran.dg/graphite/interchange-1.c: New.
3792 * gfortran.dg/graphite/interchange-2.c: New.
2abae5f1
SP
3793
37942009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3795
3796 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not build
3797 the reduction_list.
3798 * tree-parloops.c (rewrite_phi_with_iv): New.
3799 (rewrite_all_phi_nodes_with_iv): New.
3800 (canonicalize_loop_ivs): Call them.
3801
38022009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3803
3804 * graphite-sese-to-poly.c (try_generate_gimple_bb): Use
3805 graphite_find_data_references_in_stmt.
3806 * tree-data-ref.c (graphite_find_data_references_in_stmt): New.
3807 * tree-data-ref.h (graphite_find_data_references_in_stmt): Declared.
3808
38092009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3810
3811 * sese.c (add_loop_exit_phis): Don't fail on non SSA_NAME renames.
3812
38132009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3814
3815 * graphite-sese-to-poly.c (build_scop_bbs_1): Use bb_in_sese_p
3816 instead of bb_in_region.
3817 (flag_bb_in_region): Same. Renamed flag_bb_in_sese.
3818 (build_sese_conditions): Use flag_bb_in_sese.
3819 * sese.c (register_bb_in_sese): Removed.
3820 (new_sese): Remove initialization of SESE_REGION_BBS.
3821 (free_sese): Do not free SESE_REGION_BBS.
3822 * sese.h (struct sese): Remove field region_basic_blocks.
3823 (SESE_REGION_BBS): Removed.
3824 (bb_in_sese_p): Implement in function of bb_in_region.
3825
38262009-04-08 Sebastian Pop <sebastian.pop@amd.com>
3827
3828 * graphite-scop-detection.c (limit_scops): Deal only with single exit
3829 loops.
3830
38312009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3832
3833 * graphite-scop-detection.c (stmt_simple_for_scop_p): Allow NE_EXPR
3834 and EQ_EXPR.
3835 * graphite-sese-to-poly.c (create_linear_expr_from_tree): New.
3836 (add_condition_to_domain): New.
3837 (add_condition_to_pbb): New.
3838 (add_conditions_to_domain): Cleanup and handle of NE_EXPR and EQ_EXPR.
45489e99 3839 * gcc.dg/graphite/scop-3.c: Update number of detected SCoPs.
2abae5f1
SP
3840
38412009-04-08 Tobias Grosser <grosser@fim.uni-passau.de>
3842
3843 * graphite-clast-to-gimple.c (build_cloog_prog): ppl_Polyhedron ->
3844 ppl_Pointset_Powerset.
3845 * graphite-poly.c (new_poly_bb, free_poly_bb): Same.
3846 * graphite-poly.h (poly_bb): poly_bb.domain Same.
3847 (pbb_nb_loops): Same.
3848 * graphite-sese-to-poly.c (build_loop_iteration_domains,
3849 add_conditions_to_domain): Same.
3850 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
3851 (ppl_print_polyhedron_matrix): ppl_Polyhedron_t ->
3852 ppl_const_Polyhedron_t.
3853 (ppl_print_powerset_matrix): New.
3854 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Pointset_Powerset,
3855 ppl_print_powerset_matrix): New.
3856 (ppl_print_polyhedron_matrix): Updated.
3857
38582009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3859
3860 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Fix comment.
3861
38622009-04-07 Sebastian Pop <sebastian.pop@amd.com>
3863
3864 * graphite-poly.c (extend_scattering): Fix indenting. Free cstr.
3865 (print_iteration_domains, debug_iteration_domain,
3866 debug_iteration_domains): New.
3867 * graphite-poly.h (print_iteration_domains, debug_iteration_domain,
3868 debug_iteration_domains): Declared.
3869 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Fix
3870 indenting.
3871
38722009-04-03 Tobias Grosser <grosser@fim.uni-passau.de>
3873 Sebastian Pop <sebastian.pop@amd.com>
3874
3875 * graphite-poly.h (print_iteration_domain): New.
3876 * graphite-sese-to-poly.c (add_conditions_to_domain): Fixed bug.
3877 (build_sese_conditions_1, build_sese_conditions_after,
3878 build_sese_conditions_before): New.
3879 (build_sese_conditions): Rewritten.
3880
38812009-04-03 Sebastian Pop <sebastian.pop@amd.com>
3882 Tobias Grosser <grosser@fim.uni-passau.de>
3883
3884 Cleanup of code generation liveouts.
3885 * graphite-clast-to-gimple.c (translate_clast): Use a single
3886 rename_map instead of one per translated statement.
3887 Do not use SESE_LIVEOUT_RENAMES.
3888 (graphite_loop_normal_form): Do not use SESE_REDUCTION_LIST.
3889 (gloog): Do not use SESE_LIVEOUT_RENAMES.
3890 * graphite-scop-detection.c (harmful_stmt_in_bb): Return the close
3891 phi node of a reduction: when a loop contains a reduction used outside
3892 the loop, there should be a scalar close phi node on the exit block.
3893 * sese.c (new_sese): Do not initialize SESE_LIVEOUT,
3894 SESE_LIVEOUT_RENAMES, and SESE_REDUCTION_LIST.
3895 (free_sese): Do not free them.
3896 (sese_build_liveouts_use): Do not use them.
3897 (sese_build_liveouts_bb): Same.
3898 (sese_build_liveouts): Same.
3899 (sese_insert_phis_for_liveouts): Same.
3900 (sese_adjust_phis_for_liveouts): Same. Renamed sese_adjust_liveout_phis.
3901 (defined_in_loop_p): New.
3902 (alive_after_loop): New.
3903 (close_phi_not_yet_inserted_p): New.
3904 (struct alep, alep_p): New.
3905 (add_loop_exit_phis): Remove from the rename_map all the names defined
3906 in the code generated loop.
3907 (insert_loop_close_phis): Traverse the rename_map passed to it.
3908 Don't use SESE_LIVEOUT_RENAMES.
3909 (default_liveout_before_guard): Renamed default_before_guard.
3910 (insert_guard_phis): Do not use SESE_LIVEOUT_RENAMES.
3911 (graphite_copy_stmts_from_block): Do not directly call set_rename.
3912 (register_sese_liveout_renames): Removed.
3913 (copy_bb_and_scalar_dependences): Do not call it.
3914 * sese.h (struct sese): Removed fields: liveout, liveout_renames, and
3915 reduction_list.
3916 (SESE_LIVEOUT): Removed.
3917 (SESE_LIVEOUT_RENAMES): Removed.
3918 (SESE_REDUCTION_LIST): Removed.
3919 (sese_build_liveouts): Removed.
3920 (sese_adjust_phis_for_liveouts): Renamed sese_adjust_liveout_phis.
3921 (insert_loop_close_phis): Pass a htab_t instead of a sese.
3922 (insert_guard_phis): Same.
3923 (rename_map_elt): Declare a VEC of them.
3924 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
3925 trees not pointers to trees.
3926
3927 Rewrite in canonical close SSA form:
3928 * graphite-scop-detection.c (contains_only_close_phi_nodes): New.
3929 (limit_scops): Close the scop after the block containing the close phi
3930 nodes.
3931 (canonicalize_loop_closed_ssa): New.
3932 (canonicalize_loop_closed_ssa_form): New.
3933 (build_scops): Call canonicalize_loop_closed_ssa_form.
3934
3935 * graphite-sese-to-poly.c: Fix typos.
3936
39372009-04-03 Sebastian Pop <sebastian.pop@amd.com>
3938
3939 * graphite-poly.c (print_scattering_function, print_pbb_domain):
3940 Extended.
3941 (dump_gbb_conditions, dump_gbb_cases, print_iteration_domain): New.
3942 (print_pbb): Add conditions.
3943
39442009-04-01 Tobias Grosser <grosser@fim.uni-passau.de>
3945 Sebastian Pop <sebastian.pop@amd.com>
3946
3947 * graphite-scop-detection.c (bb_in_sd_region): Use bb_in_region.
3948 * graphite-sese-to-poly.c (all_non_dominated_preds_marked_p): New.
3949 (build_scop_bbs_1): New.
3950 (build_scop_bbs): Rewrite.
3951 * sese.h (bb_in_region): New.
3952
39532009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3954
3955 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
3956 poly_drs vector.
3957 (print_scop): Style.
3958 * graphite-poly.h (poly_bb): Add drs vector.
3959 (PBB_DRS): Add accessor.
3960 * graphite-sese-to-poly.c (build_poly_dr): New.
3961 (build_pbb_drs, build_scop_drs): New.
3962 (build_poly_scop): call build_scop_drs (Disabled at the moment).
3963
39642009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3965
3966 * tree-ssa-loop.c: Include forgotten toplev.h
3967
39682009-03-29 Tobias Grosser <grosser@fim.uni-passau.de>
3969
3970 * graphite-poly.c: (apply_poly_transforms): sorry -> gcc_unreachable.
45489e99
SP
3971 * gcc.dg/graphite/pr37883.c: Remove -floop-*
3972 * gcc.dg/graphite/pr37928.c: Same
3973 * gcc.dg/graphite/pr38409.c: Same
3974 * gcc.dg/graphite/pr38498.c: Same
3975 * gcc.dg/graphite/pr38559.c: Same
3976 * gcc.dg/graphite/pr39335.c: Same
3977 * gcc.dg/graphite/pr39335_1.c: Same
3978 * gfortran.dg/graphite/block-2.f: Same
2abae5f1
SP
3979 * tree-ssa-loop.c (gate_graphite_transforms): Always fail if called
3980 with -floop-*.
3981
39822009-03-28 Tobias Grosser <grosser@fim.uni-passau.de>
3983
3984 * graphite-sese-to-poly.c (ref_nb_loops, build_access_matrix_with_af,
3985 build_access_matrix, build_scop_data_accesses): Remove access function
3986 building. (We get a new version soon).
3987 (build_bb_loops, scan_tree_for_params_right_scev): Update.
3988 * sese.h (nb_loops_around_loop_in_sese): Remove.
3989 (sese_loop_depth): Do not use SESE_LOOP_NEST any more.
3990
39912009-03-27 Tobias Grosser <grosser@fim.uni-passau.de>
3992 Sebastian Pop <sebastian.pop@amd.com>
3993
3994 * graphite-scop-detection.c (struct scopdet_info): Rename last
3995 field to exit.
3996 (scopdet_basic_block_info, build_scops_1): Don't use
3997 CDI_POST_DOMINATORS. CDI_POST_DOMINATORS should never be used.
3998
39992009-03-26 Tobias Grosser <grosser@fim.uni-passau.de>
4000 Sebastian Pop <sebastian.pop@amd.com>
4001
4002 * graphite-clast-to-gimple.c (gloog): Call sese_build_liveouts.
4003 * sese.c (sese_build_liveouts_use): Renamed from
4004 sese_build_livein_liveouts_use. Remove liveins.
4005 (sese_build_liveouts_bb): Renamed from sese_build_livein_liveouts_bb.
4006 Call sese_build_liveouts_use.
4007 (sese_build_liveouts): Renamed from sese_build_livein_liveouts.
4008 Call sese_build_liveouts_bb.
4009 (new_sese, free_sese): Remove liveins.
4010 (sese_add_exit_phis_var): Deleted.
4011 (sese_insert_phis_for_liveouts): Call sese_add_exit_phis_edge
4012 directly.
4013 (graphite_copy_stmts_from_block): Remove SESE_NUM_VER.
4014
4015 * sese.h (sese): Remove num_ver and livein.
4016 (SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): Removed.
4017
40182009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
4019
4020 * graphite-sese-to-poly.c (build_scop_scattering): Fix compile.
4021
40222009-03-25 Tobias Grosser <grosser@fim.uni-passau.de>
4023
4024 * graphite-sese-to-poly.c (compare_prefix_loops): Removed.
4025 (build_scop_scattering): Do not use compare_prefix_loops any more.
4026 (nb_common_loops): New.
4027
40282009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4029
4030 * sese.c (get_new_name_from_old_name): Renamed get_rename.
4031 (register_old_and_new_names): Renamed set_rename.
4032
40332009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4034
4035 * graphite-scop-detection.h (nb_reductions_in_loop): Revert removal
4036 of the decl from the previous commit.
4037
40382009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4039
4040 * graphite-scop-detection.c (dot_scop): New.
4041 * graphite-scop-detection.h (dot_scop): Declared.
4042
40432009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4044
4045 * graphite-sese-to-poly.c (compare_prefix_loops): Fix compare.
4046
40472009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4048
4049 * cfgloopmanip.c (create_empty_loop_on_edge): Generate the loop exit
4050 condition at the end of the loop.
4051 * graphite.c (graphite_initialize, graphite_finalize): Print to
4052 dump_file the compiled function.
4053 * graphite-clast-to-gimple.c (graphite_create_new_loop): Update use
4054 of create_empty_loop_on_edge.
4055 (translate_clast): Update the code generation of loops for the new
4056 shape of loops.
4057 * cfgloop.h (create_empty_loop_on_edge): Update declaration.
4058
40592009-03-24 Sebastian Pop <sebastian.pop@amd.com>
4060
4061 Reverted the patch from 2009-03-19.
4062
40632009-03-19 Tobias Grosser <grosser@fim.uni-passau.de>
4064
4065 * graphite-poly.c (new_poly_bb, free_poly_bb): Initialize/free
4066 poly_drs vector.
4067 (print_scop): Style.
4068 * graphite-poly.h (poly_bb): Add drs vector.
4069 (PBB_DRS): Add accessor.
4070 * graphite-sese-to-poly.c (ref_nb_loops): Remove.
4071 (build_access_matrix_with_af, build_access_matrix,
4072 build_scop_data_accesses): Delete.
4073 (build_poly_dr): New.
4074 (build_pbb_drs, build_scop_drs): New.
4075 (build_poly_scop): call build_scop_drs.
4076
40772009-03-13 Sebastian Pop <sebastian.pop@amd.com>
4078
4079 * graphite-scop-detection.c (dot_all_scops_1): Close the table
4080 once per basic block.
4081
40822009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
4083
4084 * graphite-scop-detection.c (graphite_can_represent_scev): New.
4085 (graphite_can_represent_expr): Renamed from loop_affine_expr
4086 and enhanced.
4087 (stmt_simple_for_scop_p): Call graphite_can_represent_expr.
4088 (graphite_cannot_represent_loop): Add scop_entry to parameters.
4089 (scopdet_basic_block_info): Actually define entry_block.
4090 (stmt_simple_memref_p): Moved here from ...
4091
4092 * tree-data-ref.c (stmt_simple_memref_p): here.
4093 * tree-data-ref.h (stmt_simple_memref_p): Removed.
4094
40952009-03-13 Tobias Grosser <grosser@fim.uni-passau.de>
4096
45489e99 4097 * gcc.dg/graphite/id-4.c: New.
2abae5f1
SP
4098
40992009-03-12 Sebastian Pop <sebastian.pop@amd.com>
4100
4101 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
4102 (register_old_and_new_names): Update the content of the map.
4103 When there was already a rename_map_elt in the map at that
4104 location, free it.
4105 (copy_bb_and_scalar_dependences): Do rename_variables after
4106 expand_scalar_variables.
4107 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4108 of the map. When there was already a rename_map_elt in the
4109 map at that location, free it.
4110 (translate_clast): Pass the rename_map. Do not initialize and free
4111 a rename_map per stmt_user.
4112 (gloog): Initialize and free one rename_map and pass it to
4113 translate_clast.
4114
41152009-03-12 Sebastian Pop <sebastian.pop@amd.com>
4116
4117 * sese.c (expand_scalar_variables_stmt,
4118 expand_scalar_variables_ssa_name): Add a gimple_stmt_iterator
4119 parameter.
4120 (expand_scalar_variables_expr): Handle REALPART_EXPR and IMAGPART_EXPR.
4121 (expand_scalar_variables): Pass to expand_scalar_variables_stmt
4122 the gimple_stmt_iterator of the statement to be expanded.
4123 * graphite-scop-detection.c (is_simple_operand): Do handle
4124 REALPART_EXPR.
4125
41262009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4127
4128 * graphite-scop-detection.c (is_simple_operand): Do not handle
4129 REALPART_EXPR.
45489e99 4130 * gcc.dg/graphite/id-2.c: New.
2abae5f1
SP
4131
4132 * graphite-sese-to-poly.c (build_bb_loops,
4133 add_value_to_dim, scan_tree_for_params_right_scev,
4134 scan_tree_for_params_int, scan_tree_for_params, idx_record_params,
4135 find_params_in_bb, build_loop_iteration_domains,
4136 add_conditions_to_domain): Remove subtract.
4137
41382009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4139
4140 * graphite-clast-to-gimple.c (loop_iv_stack_patch_for_consts,
4141 build_iv_mapping, compute_cloog_iv_types_1, build_cloog_prog):
4142 pbb_loop_at_index -> gbb_loop_at_index.
4143 * graphite-poly.c (new_poly_bb, new_scop): New accessors.
4144 (debug_loop_vec): Delete.
4145 * graphite-poly.h (poly_bb, scop): Change black_box and region to void
4146 pointer. Move LOOPS to gimple_bb_p and insert nb_params.
4147 (PBB_LOOPS): Removed.
4148 (PBB_BLACK_BOX): Insert cast.
4149 (pbb_set_black_box): New setter.
4150 (pbb_loop_at_index, pbb_loop_index): Removed.
4151 (scop_set_region, scop_set_nb_params): New.
4152 * graphite-sese-to-poly.c (new_gimple_bb, free_gimple_bb,
4153 build_scop_scattering, build_bb_loops): Add GBB_LOOPS.
4154 (build_poly_scop): Use scop_set_nb_params.
4155 * sese.h (gimple_bb): Add LOOPS.
4156 (GBB_LOOPS, gbb_loop_index, gbb_loop_at_index): New.
4157
41582009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4159
4160 Revert previous commit.
4161
41622009-03-11 Sebastian Pop <sebastian.pop@amd.com>
4163
4164 * sese.c (expand_scalar_variables_expr): Handle tcc_comparison.
4165 (register_old_and_new_names): Update the content of the map.
4166 When there was already a rename_map_elt in the map at that
4167 location, free it.
4168 (copy_bb_and_scalar_dependences): Do rename_variables after
4169 expand_scalar_variables.
4170 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4171 of the map. When there was already a rename_map_elt in the
4172 map at that location, free it.
4173 (translate_clast): Pass the rename_map. Do not initialize and free
4174 a rename_map per stmt_user.
4175 (gloog): Initialize and free one rename_map and pass it to
4176 translate_clast.
4177
41782009-03-11 Tobias Grosser <grosser@fim.uni-passau.de>
4179
4180 Remove forgotten line in revert.
4181
41822009-03-11 Sebastian Pop <sebastian.pop@amd.com>
4183
4184 Revert previous commit.
4185
41862009-03-10 Sebastian Pop <sebastian.pop@amd.com>
4187
4188 * sese.c (register_old_and_new_names): Update the content
4189 of the map. When there was already a rename_map_elt in the
4190 map at that location, free it.
4191 (copy_bb_and_scalar_dependences): Do rename_variables after
4192 expand_scalar_variables.
4193 * graphite-clast-to-gimple.c (build_iv_mapping): Update the content
4194 of the map. When there was already a rename_map_elt in the
4195 map at that location, free it.
4196 (translate_clast): Pass the rename_map. Do not initialize and free
4197 a rename_map per stmt_user.
4198 (gloog): Initialize and free one rename_map and pass it to
4199 translate_clast.
4200
42012009-03-10 Sebastian Pop <sebastian.pop@amd.com>
4202
4203 * graphite-clast-to-gimple.c (translate_clast): context_loop
4204 is never NULL.
4205
42062009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
4207 Sebastian Pop <sebastian.pop@amd.com>
4208
4209 * graphite-ppl.c (ppl_insert_dimensions): Fix stupid mistake
4210 of the use of ppl_Polyhedron_map_space_dimensions.
4211
42122009-03-10 Tobias Grosser <grosser@fim.uni-passau.de>
4213 Sebastian Pop <sebastian.pop@amd.com>
4214
4215 * graphite-poly.c (unify_scattering_dimensions): Fix types.
4216 * graphite-poly.h (poly_dr_p, poly_dr, POLY_DR_TYPE, PDR_BB,
4217 PDR_TYPE, PDR_ACCESSES, pdr_accessp_nb_subscripts,
4218 pdr_accessp_nb_iterators, pdr_accessp_nb_params,
4219 pdr_accessp_alias_set_dim, pdr_accessp_subscript_dim,
4220 pdr_accessp_iterator_dim, pdr_accessp_param_dim,
4221 pbb_nb_params): New.
4222 (pbb_nb_loops, pbb_nb_scattering, scop_nb_params,
4223 nb_loops_around_pbb): Adapt return types.
4224
42252009-03-09 Tobias Grosser <grosser@fim.uni-passau.de>
4226
4227 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
4228 graphite-clast-to-gimple.o, graphite-data-ref.o,
4229 graphite-scop-detection.o, graphite-poly.o): Add
4230 more headers.
4231
42322009-03-05 Tobias Grosser <grosser@fim.uni-passau.de>
4233
4234 * Makefile.in (graphite.o, graphite-sese-to-poly.o,
4235 graphite-clast-to-gimple.o, graphite-data-ref.o,
4236 graphite-scop-detection.o, graphite-poly.o): Add graphite-poly.h.
4237
42382009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
4239
45489e99
SP
4240 * gcc.dg/graphite/pr37485.c: Remove -floop-block
4241 * gcc.dg/graphite/pr37828.c: Same.
4242 * gcc.dg/graphite/pr37684.c: Same.
4243 * gcc.dg/graphite/block-0.c: Same.
4244 * gcc.dg/graphite/block-1.c: Same.
4245 * gcc.dg/graphite/block-2.c: Same.
4246 * gcc.dg/graphite/block-3.c: Same.
4247 * gcc.dg/graphite/block-4.c: Same.
4248 * gcc.dg/graphite/block-5.c: Same.
4249 * gcc.dg/graphite/block-6.c: Same.
4250 * gfortran.dg/graphite/pr38083.f90: Same.
4251 * gfortran.dg/graphite/block-1.f90: Same.
4252 * gfortran.dg/graphite/block-3.f90: Same.
4253 * gfortran.dg/graphite/pr37852.f90: Same.
4254 * gfortran.dg/graphite/block-4.f90: Same.
4255 * gfortran.dg/graphite/pr37980.f90: Same.
4256 * gfortran.dg/graphite/pr38953.f90: Same.
4257 * gfortran.dg/graphite/pr37857.f90: Same.
2abae5f1
SP
4258 * opts.c: Remove -floop-block from -O2.
4259 * graphite-poly.c: Fail if -floop-block -floop-interchange or
4260 -floop-strip-mine are used.
4261
42622009-03-04 Tobias Grosser <grosser@fim.uni-passau.de>
4263 Sebastian Pop <sebastian.pop@amd.com>
4264
4265 * graphite-clast-to-gimple.c (build_cloog_prog): Unify scattering
4266 dimensions.
4267 * graphite-poly.c (pbb_compare, graphite_sort_pbbs,
4268 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine,
4269 strip_mine_profitable_p, is_interchange_valid,
4270 graphite_trans_bb_block, graphite_trans_loop_block,
4271 graphite_trans_scop_block): Temporary removed.
4272 (extend_scattering, unify_scattering_dimensions): New.
4273 (print_scattering_function, graphite_read_transforms):
4274 PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4275 (graphite_generate_scattering_fns): Removed.
4276 (apply_poly_transforms): Cleanup.
4277 (free_poly_bb): Add PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4278 (schedule_to_scattering): Moved.
4279 (PBB_STATIC_SCHEDULE, PBB_SCATTERING): Removed.
4280 (PBB_ORIGINAL_SCATTERING, PBB_TRANSFORMED_SCATTERING): New.
4281 (pbb_nb_scattering): New.
4282 (SCOP_ENTRY, SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
4283 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES):
4284 Removed.
4285 * graphite-ppl.c (ppl_insert_dimensions): Extended and renamed from
4286 shift_poly.
4287 (ppl_strip_loop): PBB_SCATTERING -> PBB_TRANSFORMED_SCATTERING.
4288 * graphite-scop-detection.c (dot_all_scops_1): PBB_SCATTERING
4289 -> PBB_TRANSFORMED_SCATTERING.
4290 * graphite-sese-to-poly.c (build_scop_bbs): Remove region.
4291 (build_pbb_scattering_polyhedron): Moved from schedule_to_scattering.
4292 (build_scop_scattering): Renamed from build_scop_canonical_schedules.
4293 (check_poly_representation): Do not return bool.
4294 (graphite_transform_loops): Reformat.
4295 * sese.h (SESE_ENTRY_BB, SESE_EXIT_BB): New.
4296
42972009-03-04 Sebastian Pop <sebastian.pop@amd.com>
4298
4299 * graphite-poly.c (print_pbb_domain, print_pbb, print_scop,
4300 debug_pbb_domain, debug_pbb, debug_scop): New.
4301 * graphite-poly.h (print_pbb_domain, print_pbb, print_scop,
4302 debug_pbb_domain, debug_pbb, debug_scop): Declared.
4303
43042009-03-02 Sebastian Pop <sebastian.pop@amd.com>
4305
4306 PR middle-end/39335
4307 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
4308 when the type precision of the induction variable should be
4309 larger than the type precision of nit.
4310 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
4311 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Same.
4312 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
4313
45489e99
SP
4314 * gcc.dg/graphite/pr39335_1.c: New.
4315 * gcc.dg/graphite/pr39335.c: New.
2abae5f1
SP
4316
43172009-03-02 Sebastian Pop <sebastian.pop@amd.com>
4318
4319 * tree-parloops.c (canonicalize_loop_ivs): reduction_list contains
4320 SSA_NAMES not struct reduction_info.
4321
43222009-03-02 Sebastian Pop <sebastian.pop@amd.com>
4323
4324 * sese.c (expand_scalar_variables_expr): Handle ADDR_EXPR.
4325
43262009-02-27 Sebastian Pop <sebastian.pop@amd.com>
4327 Tobias Grosser <grosser@fim.uni-passau.de>
4328
4329 * sese.c (new_sese): Initialize SESE_REDUCTION_LIST.
4330 (free_sese): Free SESE_REDUCTION_LIST.
4331 * sese.h (struct sese): Add field reduction_list.
4332 (SESE_REDUCTION_LIST): New.
4333 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Call
4334 canonicalize_loop_ivs on SESE_REDUCTION_LIST.
4335
43362009-02-27 Sebastian Pop <sebastian.pop@amd.com>
4337 Tobias Grosser <grosser@fim.uni-passau.de>
4338
4339 * tree-flow.h (gather_scalar_reductions): Use struct loop * instead
4340 of loop_p.
4341
43422009-02-27 Sebastian Pop <sebastian.pop@amd.com>
4343 Tobias Grosser <grosser@fim.uni-passau.de>
4344
4345 * tree-parloops.c (struct brli, build_reduction_list_info,
4346 analyze_reduction_list, gather_scalar_reductions): New.
4347 (loop_parallel_p): Build a reduction list containing only
4348 PHI_RESULT SSA_NAMEs: call gather_scalar_reductions.
4349 (gen_parallel_loop): Call the analysis analyze_reduction_list.
4350 (parallelize_loops): Now reduction_list is a htab_t of SSA_NAMEs.
4351 * tree-flow.h (gather_scalar_reductions): Declared.
4352
43532009-02-26 Sebastian Pop <sebastian.pop@amd.com>
4354
4355 PR middle-end/39308
4356 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Do not call
4357 number_of_iterations_exit from a gcc_assert.
4358
43592009-02-25 Sebastian Pop <sebastian.pop@amd.com>
4360 Jan Sjodin <jan.sjodin@amd.com>
4361
4362 * output.h (graphite_out_file, graphite_in_file): Declared.
4363 * toplev.c (graphite_out_file, graphite_in_file): New.
4364 (init_asm_output): Initialize graphite_in_file and graphite_out_file.
4365 * graphite-clast-to-gimple.c (build_cloog_prog): Read PBB_SCATTERING.
4366 Don't call schedule_to_scattering.
4367 * common.opt (fgraphite-write, fgraphite-read): New.
4368 * graphite-poly.c: Include output.h.
4369 (print_scattering_function, print_scattering_functions,
4370 debug_scattering_function, debug_scattering_functions,
4371 graphite_write_transforms, graphite_read_transforms,
4372 graphite_generate_scattering_fns): New.
4373 (apply_poly_transforms): Do not apply transform if flag_graphite_read.
4374 Call graphite_generate_scattering_fns, graphite_write_transforms,
4375 graphite_read_transforms.
4376 (new_poly_bb): Initialize PBB_SCATTERING.
4377 (free_poly_bb): Free PBB_SCATTERING.
4378 (schedule_to_scattering): Does not return, initialize PBB_SCATTERING.
4379 * graphite-poly.h (struct poly_bb): Add field scattering.
4380 (PBB_SCATTERING): New.
4381 (print_scattering_function, print_scattering_functions,
4382 debug_scattering_function, debug_scattering_functions): Declared.
4383 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Matrices contain
4384 GMP values, not integers!
4385 (ppl_print_polyhedron_matrix, debug_ppl_polyhedron_matrix,
4386 ppl_read_polyhedron_matrix): New.
4387 * graphite-ppl.h (ppl_print_polyhedron_matrix,
4388 debug_ppl_polyhedron_matrix,
4389 ppl_read_polyhedron_matrix): Declared.
4390 * Makefile.in (graphite-poly.o): Depends on output.h.
4391
43922009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4393 Tobias Grosser <grosser@fim.uni-passau.de>
4394
4395 Revert this change:
4396 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
4397 scalar evolutions in the scop_entry->loop_father.
4398
43992009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4400 Tobias Grosser <grosser@fim.uni-passau.de>
4401
4402 * graphite.h (ref_nb_loops): Remove declaration.
4403 (struct gimple_bb, gimple_bb_p, GBB_BB, GBB_DATA_REFS, GBB_CONDITIONS,
4404 GBB_CONDITION_CASES, GBB_CLOOG_IV_TYPES, gbb_loop, print_gimple_bb,
4405 debug_gbb): Moved to sese.h.
4406 * sese.h: As said.
4407
44082009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4409 Tobias Grosser <grosser@fim.uni-passau.de>
4410
4411 * graphite-data-ref.[ch]: Disable.
4412
44132009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4414 Tobias Grosser <grosser@fim.uni-passau.de>
4415
4416 * graphite-scop-detection.c (stmt_simple_for_scop_p): Analyze
4417 scalar evolutions in the scop_entry->loop_father.
4418
44192009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4420
4421 * graphite-scop-detection.c (nb_reductions_in_loop): Moved here...
4422 (graphite_cannot_represent_loop_niter): Renamed
4423 graphite_cannot_represent_loop. Call nb_reductions_in_loop.
4424 (limit_scops): build_sese_loop_nests does not return a bool.
4425 * graphite-scop-detection.h (nb_reductions_in_loop): Declared.
4426 * sese.c (nb_reductions_in_loop): ... from here.
4427 (graphite_loop_normal_form): ... from here.
4428 (sese_record_loop): Does not fail, so does not return a bool.
4429 (build_sese_loop_nests): Same.
4430 * sese.h (build_sese_loop_nests): Update declaration.
4431 * graphite-clast-to-gimple.c (graphite_loop_normal_form): Moved here...
4432 (build_graphite_loop_normal_form): New.
4433 (gloog): Call build_graphite_loop_normal_form.
4434 * graphite-sese-to-poly.c (build_poly_scop): Don't fail on
4435 build_sese_loop_nests.
4436
45489e99 4437 * gcc.dg/graphite/id-1.c: New.
2abae5f1
SP
4438
44392009-02-23 Sebastian Pop <sebastian.pop@amd.com>
4440 Tobias Grosser <grosser@fim.uni-passau.de>
4441
4442 * graphite-sese-to-poly.c (scan_tree_for_params): Remove REAL_CST.
4443 The SCoP detection fix is sufficient.
4444
44452009-02-21 Sebastian Pop <sebastian.pop@amd.com>
4446
4447 PR tree-optimization/39260
4448 * graphite-scop-detection.c (harmful_stmt_in_bb): Stop a SCoP when
4449 the basic block contains a condition with a real type.
4450 * graphite-sese-to-poly.c (scan_tree_for_params): Handle REAL_CST.
4451
4452 * gcc.dg/graphite/pr39260.c: New.
4453
44542009-02-21 Sebastian Pop <sebastian.pop@amd.com>
4455
4456 * graphite-poly.c: Inlcude params.h.
4457 (graphite_trans_loop_block): Use PARAM_LOOP_BLOCK_TILE_SIZE for
4458 the size of a tile.
4459 * Makefile.in (graphite-poly.o): Depend on PARAMS_H.
4460 * params.def (PARAM_LOOP_BLOCK_TILE_SIZE): Define.
4461
44622009-02-20 Sebastian Pop <sebastian.pop@amd.com>
4463 Tobias Grosser <grosser@fim.uni-passau.de>
4464
4465 * graphite-scop-detection.c (dot_all_scops_1,
4466 dot_all_scops): Moved here.
4467 * graphite-scop-detection.h (dot_all_scops): Declared here.
4468 * graphite.c (graphite_initialize, graphite_finalize): New.
4469 (graphite_transform_loops): Cleaned up.
4470 * sese.c (debug_oldivs): Moved here.
4471 * graphite-poly.c (graphite_apply_transformations): Renamed
4472 apply_poly_transforms.
4473 (debug_loop_vec): Moved here.
4474 * graphite-sese-to-poly.c (build_bb_loops, build_sese_conditions_1,
4475 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions,
4476 find_scop_parameters, build_scop_iteration_domain,
4477 add_conditions_to_constraints, build_scop_canonical_schedules,
4478 build_scop_data_accesses): Now static.
4479 (build_poly_scop, check_poly_representation): New.
4480
44812009-02-20 Sebastian Pop <sebastian.pop@amd.com>
4482
4483 * graphite.c (graphite_stmt_p, new_gimple_bb, free_gimple_bb,
4484 remove_gbbs_in_scop, free_scops, try_generate_gimple_bb,
4485 build_scop_bbs, ref_nb_loops, compare_prefix_loops,
4486 build_scop_canonical_schedules, build_bb_loops, add_value_to_dim,
4487 scan_tree_for_params_right_scev, scan_tree_for_params_int,
4488 scan_tree_for_params, struct irp_data, dx_record_params,
4489 find_params_in_bb, find_scop_parameters, gbb_from_bb,
4490 build_loop_iteration_domains, add_conditions_to_domain,
4491 phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes,
4492 scop_contains_non_iv_scalar_phi_nodes, build_sese_conditions_1,
4493 build_sese_conditions, add_conditions_to_constraints,
4494 build_scop_iteration_domain, build_access_matrix_with_af,
4495 build_access_matrix,
4496 build_scop_data_accesses): Moved to graphite-sese-to-poly.c.
4497
4498 * graphite-sese-to-poly.c: New.
4499 * graphite-sese-to-poly.h: New.
4500
4501 * Makefile.in: Add new rule for graphite-sese-to-poly.o.
4502
45032009-02-20 Sebastian Pop <sebastian.pop@amd.com>
4504
4505 * graphite.c: Split graphite code generation to a new file.
4506 (graphite_verify, gmp_cst_to_tree, clast_name_to_gcc,
4507 max_precision_type, clast_to_gcc_expression_red,
4508 clast_to_gcc_expression, gcc_type_for_clast_expr,
4509 gcc_type_for_clast_eq, loop_iv_stack_patch_for_consts,
4510 graphite_translate_clast_equation, graphite_create_guard_cond_expr,
4511 graphite_create_new_guard, clast_get_body_of_loop,
4512 gcc_type_for_cloog_iv, gcc_type_for_iv_of_clast_loop,
4513 graphite_create_new_loop, build_iv_mapping, copy_renames,
4514 translate_clast, find_cloog_iv_in_expr, compute_cloog_iv_types_1,
4515 compute_cloog_iv_types, free_scattering, save_var_name,
4516 initialize_cloog_names, build_scop_context, build_cloog_prog,
4517 set_cloog_options, debug_clast_stmt, scop_to_clast,
4518 print_generated_program, debug_generated_program,
4519 gloog): Moved to graphite-clast-to-gimple.c.
4520
4521 (struct cloog_prog_clast): Moved to graphite-clast-to-gimple.h.
4522
4523 (iv_stack_entry_is_constant, iv_stack_entry_is_iv,
4524 loop_iv_stack_push_iv, loop_iv_stack_insert_constant,
4525 loop_iv_stack_pop, loop_iv_stack_get_iv,
4526 loop_iv_stack_get_iv_from_name, debug_loop_iv_stack,
4527 free_loop_iv_stack, loop_iv_stack_remove_constants,
4528 debug_rename_elt, debug_rename_map_1, debug_rename_map,
4529 rename_map_elt_info, eq_rename_map_elts, debug_ivtype_elt,
4530 debug_ivtype_map_1, debug_ivtype_map, ivtype_map_elt_info,
4531 eq_ivtype_map_elts, sese_add_exit_phis_edge,
4532 sese_add_exit_phis_var, sese_insert_phis_for_liveouts,
4533 get_vdef_before_sese, sese_adjust_vphi,
4534 get_new_name_from_old_name, sese_adjust_phis_for_liveouts,
4535 oldiv_for_loop, rename_variables_in_stmt, is_parameter,
4536 is_iv, expand_scalar_variables_ssa_name,
4537 expand_scalar_variables_expr, expand_scalar_variables_stmt,
4538 expand_scalar_variables, rename_variables, remove_condition,
4539 get_true_edge_from_guard_bb, get_false_edge_from_guard_bb,
4540 add_loop_exit_phis, insert_loop_close_phis, struct igp,
4541 default_liveout_before_guard, add_guard_exit_phis,
4542 insert_guard_phis, register_old_and_new_names,
4543 graphite_copy_stmts_from_block, register_sese_liveout_renames,
4544 copy_bb_and_scalar_dependences, outermost_loop_in_sese,
4545 if_region_set_false_region, create_if_region_on_edge,
4546 move_sese_in_condition): Moved to sese.c.
4547
4548 (nb_loops_around_loop_in_sese, struct ifsese, if_region_entry,
4549 if_region_exit, if_region_get_condition_block,
4550 struct rename_map_elt, new_rename_map_elt, enum iv_stack_entry_kind,
4551 union iv_stack_entry_data_union, struct iv_stack_entry_struct,
4552 iv_stack_entry_p, loop_iv_stack, struct ivtype_map_elt,
4553 ivtype_map_elt, new_ivtype_map_elt,
4554 recompute_all_dominators): Moved to sese.h.
4555
4556 * graphite-clast-to-gimple.c: New.
4557 * graphite-clast-to-gimple.h: New.
4558 * Makefile.in: Add new rule for graphite-clast-to-gimple.o.
4559 * sese.c: Modified as said above.
4560 * sese.h: Same.
4561
45622009-02-20 Sebastian Pop <sebastian.pop@amd.com>
4563
4564 * graphite.c: Split scop detection to a new file.
4565 (enum gbb_type, gbb_type, get_bb_type, struct sd_region_p, sd_region,
4566 move_sd_regions, loop_affine_expr, exclude_component_ref,
4567 is_simple_operand, stmt_simple_for_scop_p, harmful_stmt_in_bb,
4568 graphite_cannot_represent_loop_niter, struct scopdet_info,
4569 scopdet_basic_block_info, build_scops_1, bb_in_sd_region,
4570 find_single_entry_edge, find_single_exit_edge,
4571 create_single_entry_edge, sd_region_without_exit,
4572 create_single_exit_edge, unmark_exit_edges, mark_exit_edges,
4573 create_sese_edges, build_graphite_scops, limit_scops, build_scops):
4574 Moved to graphite-scop-detection.c.
4575
4576 * graphite-scop-detection.c: New.
4577 * graphite-scop-detection.h: New.
4578 * Makefile.in: Add new rule for graphite-scop-detection.o.
4579
4580 * sese.c: Include tree-chrec.h, tree-data-ref.h, and
4581 tree-scalar-evolution.h.
4582 (nb_reductions_in_loop, graphite_loop_normal_form, sese_record_loop,
4583 build_sese_loop_nests): Moved here from graphite.c.
4584 (param_index): Renamed parameter_index_in_region.
4585
45862009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
4587 Sebastian Pop <sebastian.pop@amd.com>
4588
4589 * gcc.dg/graphite/block-0.c: Expected to fail now.
4590 * gcc.dg/graphite/block-1.c: Same.
4591 * gcc.dg/graphite/block-5.c: Same.
4592 * gcc.dg/graphite/block-6.c: Same.
4593
45942009-02-18 Tobias Grosser <grosser@fim.uni-passau.de>
4595 Sebastian Pop <sebastian.pop@amd.com>
4596
4597 * graphite.h: Separate from graphite_bb_p the polyhedral
4598 representation in poly_bb_p and the GCC specifics in gimple_bb_p.
4599 (struct data_dependence_polyhedron, RDGE_DDP, ddp_p): Moved to
4600 graphite-data-ref.h.
4601 (struct poly_bb, PBB_SCOP, PBB_STATIC_SCHEDULE, PBB_DOMAIN,
4602 PBB_BLACK_BOX, PBB_LOOPS, pbb_nb_loops, pbb_loop_at_index,
4603 pbb_loop_index, struct scop, SCOP_BBS, SCOP_REGION, SCOP_ENTRY,
4604 SCOP_EXIT, SCOP_REGION_BBS, SCOP_DEP_GRAPH, SCOP_PARAMS,
4605 SCOP_LOOP_NEST, SCOP_PARAMS, SCOP_OLDIVS, SCOP_LIVEOUT_RENAMES,
4606 scop_nb_params): Moved to graphite-poly.h.
4607 * graphite-data-ref.c: Same.
4608 * graphite-data-ref.h: New.
4609 * graphite.c: Same.
4610 (pbb_compare, graphite_sort_pbbs, graphite_trans_bb_move_loop,
4611 graphite_trans_bb_strip_mine, strip_mine_profitable_p,
4612 is_interchange_valid, graphite_trans_bb_block,
4613 graphite_trans_loop_block, scop_max_loop_depth,
4614 graphite_trans_scop_block, graphite_apply_transformations,
4615 new_poly_bb, free_poly_bb, new_scop, free_scop): Moved to
4616 graphite-poly.c.
4617 * graphite-poly.h: New.
4618 * graphite-poly.c: New.
4619 * Makefile.in (OBJS-common): Add graphite-poly.o.
4620 (graphite-poly.o): New rule.
4621 * tree-data-ref.h (struct data_reference): Remove unused scop field.
4622 (DR_SCOP): Removed.
4623
46242009-02-18 Sebastian Pop <sebastian.pop@amd.com>
4625 Tobias Grosser <grosser@fim.uni-passau.de>
4626
4627 * graphite.c: Replace gb -> gbb.
4628 * graphite.h: Same.
4629 * graphite-data-ref.c: Same.
4630
46312009-02-18 Sebastian Pop <sebastian.pop@amd.com>
4632 Tobias Grosser <grosser@fim.uni-passau.de>
4633
4634 * Makefile.in (OBJS-commmon): Add sese.o.
4635 (sese.o): New.
4636 (graphite.o): Add sese.h.
4637 * graphite.c (bb_in_ss_p, loop_in_sese_p,
4638 sese_build_livein_liveouts_use, sese_build_livein_liveouts_bb,
4639 sese_build_livein_liveouts, register_bb_in_sese, new_sese, free_sese):
4640 Move to sese.
4641 (block_before_scop): Add missing return.
4642 (new_scop, free_scop): Remove SESE data structures.
4643 (scop_record_loop, scan_tree_for_params, find_params_in_bb,
4644 find_scop_parameters, build_loop_iteration_domains,
4645 add_conditions_to_domain, register_scop_liveout_renames,
4646 copy_bb_and_scalar_dependences): Scop -> SESE.
4647
4648 (add_conditions_to_domain): SCoP -> SESE and remove check
4649 (scop_contains_non_iv_scalar_phi_nodes): New.
4650 (build_scop_conditions_1, build_scop_conditions): Remove check for
4651 non iv scalar phi nodes.
4652 (print_scop_statistics): New.
4653 (graphite_transform_loops): Cleanup.
4654
4655 * graphite.h: Move to sese & cleanup.
4656 * sese.c: New.
4657 * sese.h: New.
4658
46592009-02-16 Sebastian Pop <sebastian.pop@amd.com>
4660 Tobias Grosser <grosser@fim.uni-passau.de>
4661
4662 * graphite.c (build_scop_conditions_1): Conditions are only
4663 at the end of a basic block.
4664
46652009-02-16 Sebastian Pop <sebastian.pop@amd.com>
4666 Tobias Grosser <grosser@fim.uni-passau>
4667
4668 * graphite.h (struct graphite_bb): Remove compressed_alpha_matrix
4669 field.
4670 (GBB_ALPHA): Removed.
4671
46722009-02-16 Sebastian Pop <sebastian.pop@amd.com>
4673 Tobias Grosser <grosser@fim.uni-passau.de>
4674
4675 * graphite-data-ref.c (graphite_test_dependence): Don't use
4676 GBB_DYNAMIC_SCHEDULE.
4677 * graphite.c (new_graphite_bb): Same.
4678 (free_graphite_bb): Same.
4679 (build_scop_dynamic_schedules): Removed.
4680 (graphite_transform_loops): Don't call it.
4681 * graphite.h (struct graphite_bb): Remove dynamic_schedule field.
4682 (GBB_DYNAMIC_SCHEDULE): Removed.
4683
46842009-02-16 Sebastian Pop <sebastian.pop@amd.com>
4685 Tobias Grosser <grosser@fim.uni-passau.de>
4686
4687 * graphite.c (schedule_to_scattering): Don't use CloogMatrix.
4688 (print_graphite_bb): Same.
4689 (build_cloog_prog): Same.
4690
46912009-02-16 Sebastian Pop <sebastian.pop@amd.com>
4692 Tobias Grosser <grosser@fim.uni-passau.de>
4693
4694 * graphite.c (build_cloog_prog): Don't use CloogMatrix.
4695
46962009-02-16 Sebastian Pop <sebastian.pop@amd.com>
4697 Tobias Grosser <grosser@fim.uni-passau.de>
4698
4699 * graphite.c (build_scop_context): Don't use CloogMatrix.
4700 * graphite-ppl.c (new_Cloog_Domain_from_ppl_Polyhedron): New.
4701 * graphite-ppl.h (new_Cloog_Domain_from_ppl_Polyhedron): Declared.
4702
47032009-02-16 Sebastian Pop <sebastian.pop@amd.com>
4704 Tobias Grosser <grosser@fim.uni-passau.de>
4705
4706 * graphite.h (struct scop): Move params, old_ivs, loops, loop_nest,
4707 liveout_renames, add_params fields...
4708 (struct sese): ... here.
4709 (SESE_PARAMS, SESE_LOOPS, SESE_LOOP_NEST, SESE_ADD_PARAMS,
4710 SESE_PARAMS, SESE_OLDIVS, SESE_LIVEOUT_RENAMES): New.
4711
47122009-02-16 Sebastian Pop <sebastian.pop@amd.com>
4713 Tobias Grosser <grosser@fim.uni-passau.de>
4714
4715 * graphite.c (print_scop): Do not print the CLooG program.
4716 (new_scop, free_scop, initialize_cloog_names, build_scop_context,
4717 build_cloog_prog, gloog): Don't use SCOP_PROG.
4718 (find_transform): Renamed scop_to_clast.
4719 (print_generated_program, debug_generated_program): New.
4720 (graphite_transform_loops): Adapt to new interface.
4721 * graphite.h (struct scop): Remove program field.
4722 (SCOP_PROG): Removed.
4723 (print_generated_program, debug_generated_program): Declared.
4724
47252009-02-16 Sebastian Pop <sebastian.pop@amd.com>
4726
4727 * graphite-data-ref.c (schedule_precedes_p, schedule_same_p): New.
4728 (statement_precedes_p): Use schedule_same_p and schedule_precedes_p.
4729 * graphite.c (gbb_compare, schedule_to_scattering, print_graphite_bb,
4730 free_graphite_bb, build_scop_canonical_schedules,
4731 graphite_trans_bb_strip_mine, graphite_trans_scop_block): Static
4732 schedules are now represented using a ppl_Linear_Expression_t.
4733 * graphite.h (struct graphite_bb): Same.
4734 * graphite-ppl.c (ppl_lexico_compare_linear_expressions): New.
4735 * graphite-ppl.h (ppl_lexico_compare_linear_expressions): Declared.
4736
47372009-02-15 Sebastian Pop <sebastian.pop@amd.com>
4738
4739 * graphite.c: Free local memory.
4740 * graphite-ppl.c: Same.
4741
47422009-02-15 Sebastian Pop <sebastian.pop@amd.com>
4743
4744 * graphite.c (const_column_index, get_first_matching_sign_row_index,
4745 get_lower_bound_row, get_upper_bound_row, copy_constraint,
4746 swap_constraint_variables, scale_constraint_variable): Removed.
4747 (graphite_trans_bb_strip_mine): Remove pong.
4748 * graphite-ppl.c: Include missing header files.
4749 (set_inhomogeneous, set_coef, shift_poly, ppl_strip_loop): New.
4750 * graphite-ppl.h (ppl_strip_loop): Declared.
4751 * Makefile.in (graphite-ppl.o): Adjust dependences.
4752
47532009-02-14 Sebastian Pop <sebastian.pop@amd.com>
4754
4755 * graphite.c (build_loop_iteration_domains): Remove ping pong.
4756 (build_scop_iteration_domain): Same.
4757
47582009-02-13 Sebastian Pop <sebastian.pop@amd.com>
4759
4760 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
4761 ping pong.
4762 (add_value_to_dim, scan_tree_for_params_right_scev,
4763 scan_tree_for_params_int): New.
4764 * graphite-ppl.c (oppose_constraint): New.
4765 (insert_constraint_into_matrix): Implement missing cases.
4766 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
4767
47682009-02-13 Sebastian Pop <sebastian.pop@amd.com>
4769
4770 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
4771 use ppl_move_dimension.
4772
47732009-02-12 Sebastian Pop <sebastian.pop@amd.com>
4774
4775 * graphite-data-ref.c: Domains are now ppl_Polyhedra_t.
4776 * graphite.c: Same.
4777 * graphite.h: Same.
4778 * graphite-ppl.c: Same.
4779 * graphite-ppl.h: Same.
4780
47812009-02-12 Sebastian Pop <sebastian.pop@amd.com>
4782
4783 Revert last 3 commits.
4784
47852009-02-10 Sebastian Pop <sebastian.pop@amd.com>
4786
4787 * graphite.c (scan_tree_for_params, add_conditions_to_domain): Remove
4788 ping pong.
4789 (add_value_to_dim, scan_tree_for_params_right_scev,
4790 scan_tree_for_params_int): New.
4791 * graphite-ppl.c (oppose_constraint): New.
4792 (insert_constraint_into_matrix): Implement missing cases.
4793 * graphite-ppl.h (insert_constraint_into_matrix): Declared.
4794
47952009-02-10 Sebastian Pop <sebastian.pop@amd.com>
4796
4797 * graphite.c (graphite_trans_bb_move_loop): Remove unused variables.
4798
47992009-02-10 Sebastian Pop <sebastian.pop@amd.com>
4800 Tobias Grosser <grosser@fim.uni-passau.de>
4801
4802 * graphite.c (graphite_trans_bb_move_loop): Remove ping pong,
4803 use ppl_move_dimension.
4804 * graphite-ppl.c (ppl_move_dimension): New.
4805 * graphite-ppl.h (ppl_move_dimension): Declared.
4806
48072009-02-10 Sebastian Pop <sebastian.pop@amd.com>
4808
4809 * graphite.c: Do not include cloog/cloog.h.
4810 (print_graphite_bb): Remove ping pong, call PPL print function.
4811
48122009-02-10 Tobias Grosser <grosser@fim.uni-passau.de>
4813
4814 * Makefile.in (OBJS-common): Add graphite-ppl.o.
4815 (graphite.o): Add dependence on graphite-ppl.h.
4816 (graphite-ppl.o): New.
4817 (graphite-data-ref.c): Ping pong between PPL data structures
4818 and matrices.
4819 * graphite-ppl.c: New.
4820 * graphite-ppl.h: New.
4821 * graphite.c: Include graphite-ppl.h.
4822 (print_graphite_bb, add_conditions_to_domain, build_cloog_prog,
4823 graphite_trans_bb_move_loop, graphite_trans_bb_strip_mine):
4824 Ping pong between PPL data structures and matrices.
4825 (new_graphite_bb): Create a PPL constraint system.
4826 Call ppl_delete_Constraint_System instead of cloog_matrix_free.
4827 (build_loop_iteration_domains): Use PPL functions.
4828 * graphite.h: Include graphite-ppl.h. Fix comments.
4829 (graphite_bb): Use a ppl_Constraint_System_t instead of
4830 CloogMatrix for representing the domain.
4831 (scop): Remove static_schedule.
4832 (gbb_nb_loops): Ping pong between PPL data structures and matrices.
4833
48342009-02-06 Sebastian Pop <sebastian.pop@amd.com>
4835
4836 * graphite.c: Fix some comments.
4837
48382009-02-05 Sebastian Pop <sebastian.pop@amd.com>
4839
4840 PR middle-end/38953
4841 * graphite.c (if_region_set_false_region): After moving a region
4842 in the false branch of a condition, remove the empty dummy
4843 basic block.
4844 (gloog): Remove wrong fix for PR38953.
4845
48462009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
4847
4848 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
4849 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
4850 register_bb_in_sese, new_sese, free_sese): Moved.
4851 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
4852 outermost_loop_in_scop, build_scop_iteration_domain,
4853 expand_scalar_variables_ssa_name, get_vdef_before_scop,
4854 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
4855 Use loop_in_sese_p instead of loop_in_scop_p.
4856 (new_graphite_bb, new_scop, gloog): Do not initialize SCOP_BBS_B.
4857 (free_scop): Do not free SCOP_BBS_B.
4858 (nb_loops_around_loop_in_scop, nb_loops_around_gb,
4859 ref_nb_loops): Moved here...
4860 * graphite.h (ref_nb_loops): ... from here.
4861 (struct scop): Remove bbs_b bitmap.
4862 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
45489e99 4863 * gcc.dg/graphite/scop-19.c: New
2abae5f1
SP
4864
48652009-02-03 Tobias Grosser <grosser@fim.uni-passau.de>
4866
4867 * graphite.c (scopdet_basic_block_info): Fix bug in scop
4868 detection.
4869
48702009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
4871
4872 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
4873 eq_loop_to_cloog_loop): Remove.
4874 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP.
4875 * graphite.h (struct scop): Remove loop2cloog_loop.
4876 (loop_domain_dim, loop_iteration_vector_dim): Remove.
4877
48782009-01-30 Tobias Grosser <grosser@fim.uni-passau.de>
4879
4880 * opts.c (decode_options): Only add graphite options to O2
4881 if we compile with graphite enabled.
4882
48832009-01-26 Sebastian Pop <sebastian.pop@amd.com>
4884
4885 * Merge from mainline (r143163:143684).
4886
48872009-01-26 Sebastian Pop <sebastian.pop@amd.com>
4888
4889 * graphite.c (debug_value): Removed.
4890 * graphite.h (debug_value): Removed.
4891
48922009-01-23 Sebastian Pop <sebastian.pop@amd.com>
4893
4894 * passes.c (init_optimization_passes): Do not call pass_copy_prop
4895 after graphite: pass_copy_prop does not maintain a proper loop closed
4896 SSA form. pass_copy_prop should be fixed.
4897
48982009-01-23 Sebastian Pop <sebastian.pop@amd.com>
4899
4900 * graphite.c (scop_adjust_phis_for_liveouts): Fix warning.
4901
49022009-01-23 Sebastian Pop <sebastian.pop@amd.com>
4903
4904 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
4905 (gloog): Split the exit of the scop when the scop exit is a loop exit.
4906 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
4907 changed the CFG.
4908
49092009-01-20 Sebastian Pop <sebastian.pop@amd.com>
4910
4911 * graphite.c (gloog): Return true when code gen succeeded.
4912 (graphite_transform_loops): Do not call cleanup_tree_cfg if
4913 the code of the function did not changed. After cleanup_tree_cfg
4914 call rewrite_into_loop_closed_ssa to maintain the loop closed ssa
4915 form.
4916
49172009-01-19 Sebastian Pop <sebastian.pop@amd.com>
4918
4919 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
4920 gimple_call_lhs is NULL.
4921
49222009-01-16 Sebastian Pop <sebastian.pop@amd.com>
4923 Tobias Grosser <tobi.grosser@amd.com>
4924
4925 * graphite.c (graphite_trans_scop_block): Do not block single
4926 nested loops.
4927
49282009-01-15 Sebastian Pop <sebastian.pop@amd.com>
4929 Tobias Grosser <tobi.grosser@amd.com>
4930
4931 * graphite.c (build_scop_canonical_schedules): Start schedules at
4932 zero.
4933
49342009-01-15 Sebastian Pop <sebastian.pop@amd.com>
4935 Tobias Grosser <tobi.grosser@amd.com>
4936
4937 * graphite.c (compare_prefix_loops): New.
4938 (build_scop_canonical_schedules): Rewritten.
4939 (graphite_transform_loops): Move build_scop_canonical_schedules
4940 after build_scop_iteration_domain.
4941
49422009-01-14 Sebastian Pop <sebastian.pop@amd.com>
4943 Tobias Grosser <tobi.grosser@amd.com>
4944
4945 * graphite.c (add_conditions_to_domain): Add the loops to
4946 the dimension of the iteration domain. Do copy the domain
4947 only when it exists.
4948 (build_scop_conditions_1): Do not call add_conditions_to_domain.
4949 (add_conditions_to_constraints): New.
4950 (can_generate_code_stmt, can_generate_code): Removed.
4951 (gloog): Do not call can_generate_code.
4952 (graphite_transform_loops): Call add_conditions_to_constraints
4953 after building the iteration domain.
4954
49552009-01-14 Sebastian Pop <sebastian.pop@amd.com>
4956 Tobias Grosser <tobi.grosser@amd.com>
4957 Jan Sjodin <jan.sjodin@amd.com>
4958
4959 * graphite.c (scan_tree_for_params): On substractions negate
4960 all the coefficients of the term.
4961 (clast_to_gcc_expression_red): New. Handle reduction expressions
4962 of more than two operands.
4963 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
4964 (get_vdef_before_scop): Handle also the case of default definitions.
4965
49662009-01-14 Sebastian Pop <sebastian.pop@amd.com>
4967
4968 PR middle-end/38431
4969 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
4970 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
4971 (gloog): Do not call cleanup_tree_cfg.
4972 (graphite_transform_loops): Call cleanup_tree_cfg after all
4973 scops have been code generated.
4974
49752009-01-13 Sebastian Pop <sebastian.pop@amd.com>
4976
4977 * passes.c (init_optimization_passes): Schedule after
4978 graphite transforms pass_copy_prop, pass_dce_loop and pass_lim.
4979
49802009-01-13 Sebastian Pop <sebastian.pop@amd.com>
4981
4982 * graphite.c (expand_scalar_variables_stmt): Do not pass loop_p.
4983 Fix comment.
4984 (expand_scalar_variables_ssa_name): Do not pass loop_p. Fix comment.
4985 Set the type of an expression to the type of its assign statement.
4986 (expand_scalar_variables_expr): Do not pass loop_p.
4987 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
4988 (copy_bb_and_scalar_dependences): Do not pass loop_p.
4989 (translate_clast): Update call to copy_bb_and_scalar_dependences.
4990
49912009-01-11 Sebastian Pop <sebastian.pop@amd.com>
4992
4993 * graphite.c (expand_scalar_variables_ssa_name): Set the type of
4994 an expression to the gimple_expr_type of its assign statement.
4995 (expand_scalar_variables_expr): Stop recursion on tcc_constant
4996 or tcc_declaration.
4997
49982009-01-11 Sebastian Pop <sebastian.pop@amd.com>
4999
5000 PR tree-optimization/38786
45489e99 5001 * gcc.dg/graphite/pr38786.c: New.
2abae5f1
SP
5002 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
5003 the SSA_NAME case of expand_scalar_variables_expr.
5004 (expand_scalar_variables_expr): Also gather the scalar computation
5005 used to index the memory access.
5006 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
5007 the gimple_stmt_iterator where it inserts new code.
5008
50092009-01-10 Sebastian Pop <sebastian.pop@amd.com>
5010
45489e99 5011 * gcc.dg/graphite/block-3.c: Fix compile error on 32bit.
2abae5f1
SP
5012
50132009-01-10 Sebastian Pop <sebastian.pop@amd.com>
5014
5015 * opts.c (decode_options): Enable flag_graphite_identity and
5016 flag_loop_block in -O2 and above.
5017
50182009-01-08 Sebastian Pop <sebastian.pop@amd.com>
5019
5020 * libjava/classpath/lib/gnu/java/awt/peer/gtk/GtkMouseInfoPeer.class:
5021 Fix merge problem: replace with the file from trunk.
5022
50232009-01-08 Sebastian Pop <sebastian.pop@amd.com>
5024
5025 * Merge from mainline (r141727:143163).
5026
50272009-01-07 Sebastian Pop <sebastian.pop@amd.com>
5028 Jan Sjodin <jan.sjodin@amd.com>
5029
5030 PR tree-optimization/38559
45489e99 5031 * gcc.dg/graphite/pr38559.c: New.
2abae5f1
SP
5032
5033 * graphite.c (debug_value, copy_constraint,
5034 swap_constraint_variables, scale_constraint_variable, ): New.
5035 (get_lower_bound, get_upper_bound): Removed.
5036 (graphite_trans_bb_strip_mine): Clean up this code that works
5037 only for constant number of iterations. Fully copy upper and
5038 lower bound constraints, not only the constant part of them.
5039 * graphite.h (debug_value): Declared.
5040
50412009-01-06 Jan Sjodin <jan.sjodin@amd.com>
5042
5043 PR tree-optimization/38492
5044 PR tree-optimization/38498
5045 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
5046 * tree-chrec.h (scev_is_linear_expression): Declared.
5047 * graphite.c (graphite_cannot_represent_loop_niter): New.
5048 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
5049 (graphite_loop_normal_form): Use gcc_assert.
5050 (scan_tree_for_params): Use CASE_CONVERT.
5051 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
5052 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
5053 Use gcc_assert. Discard scops that contain unhandled cases.
5054 (build_scop_conditions): Return a boolean status for unhandled cases.
5055 (strip_mine_profitable_p): Print the loop number, not its depth.
5056 (is_interchange_valid): Pass the depth of the loop nest, don't
5057 recompute it wrongly.
5058 (graphite_trans_bb_block): Same.
5059 (graphite_trans_bb_block): Print tentative of loop blocking.
5060 (graphite_trans_scop_block): Do not print that the loop has been
5061 blocked.
5062 (graphite_transform_loops): Do not handle scops that contain condition
5063 scalar phi nodes.
5064
45489e99 5065 * gcc.dg/graphite/pr38500.c: Fixed warning as committed
2abae5f1 5066 in trunk.
45489e99
SP
5067 * gcc.dg/graphite/block-0.c: Update test.
5068 * gcc.dg/graphite/block-1.c: Same.
5069 * gcc.dg/graphite/block-2.c: Remove xfail and test for
2abae5f1 5070 blocking.
45489e99
SP
5071 * gcc.dg/graphite/block-4.c: Remove test for strip mine.
5072 * gcc.dg/graphite/block-3.c: New.
5073 * gcc.dg/graphite/pr38498.c: New.
2abae5f1
SP
5074
50752008-12-22 Harsha Jagasia <harsha.jagasia@amd.com>
5076
5077 PR tree-optimization/38510
5078 * gcc.dg/graphite/pr38510.c: New.
5079 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
5080 (translate_clast): Call recompute_all_dominators before
5081 graphite_verify.
5082 (gloog): Call recompute_all_dominators before graphite_verify.
5083
50842008-12-12 Sebastian Pop <sebastian.pop@amd.com>
5085
5086 PR tree-optimization/38492
5087 * graphite.c (rename_map_elt, debug_rename_elt,
5088 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
5089 rename_map_elt_info, eq_rename_map_elts,
5090 get_new_name_from_old_name, bb_in_sese_p): Moved around.
5091 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
5092 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
5093 (sese_build_livein_liveouts): New.
5094 (new_sese, free_sese): New.
5095 (new_scop): Call new_sese.
5096 (free_scop): Call free_sese.
5097 (rename_variables_from_edge, rename_phis_end_scop): Removed.
5098 (register_old_new_names): Renamed register_old_and_new_names.
5099 (register_scop_liveout_renames, add_loop_exit_phis,
5100 insert_loop_close_phis, struct igp,
5101 default_liveout_before_guard, add_guard_exit_phis,
5102 insert_guard_phis, copy_renames): New.
5103 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
5104 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
5105 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
5106 (scop_adjust_phis_for_liveouts): New.
5107 (gloog): Call scop_adjust_phis_for_liveouts.
5108
5109 * graphite.h (struct sese): Documented. Added fields liveout,
5110 num_ver and livein.
5111 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
5112 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
5113 (struct scop): Added field liveout_renames.
5114 (SCOP_LIVEOUT_RENAMES): New.
5115
51162008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5117
5118 PR tree-optimization/38409
5119 * gcc.dg/graphite/pr38409.c: New.
5120 * graphite.c (nb_reductions_in_loop): Use simple_iv.
5121
51222008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5123
5124 * graphite.c (gcc_type_for_cloog_iv): By default return
5125 integer_type_node.
5126 (graphite_create_new_loop): Don't fold_convert the already
5127 fold_convert-ed expression.
5128
51292008-12-11 Harsha Jagasia <harsha.jagasia@amd.com>
5130
5131 PR tree-optimization/38446
5132 * gcc.dg/graphite/pr38446.c: New.
5133 * graphite.c (register_bb_in_sese): New.
5134 (bb_in_sese_p): Check if bb belongs to sese region by explicitly
5135 looking at the bbs in the region.
5136 * graphite.h (sese): Add region_basic_blocks pointer set to
5137 structure and initialize at the time of defining new scop.
5138
51392008-12-11 Tobias Grosser <grosser@fim.uni-passau.de>
5140
5141 * graphite.c (new_graphite_bb): Initialize GBB_STATIC_SCHEDULE.
5142 (find_params_in_bb): Do not free data refs.
5143 (free_graphite_bb): Add FIXME on disabled free_data_refs.
5144
51452008-12-11 Sebastian Pop <sebastian.pop@amd.com>
5146
45489e99
SP
5147 * gcc.dg/graphite/scop-16.c: Test only scop specific info.
5148 * gcc.dg/graphite/scop-17.c: Same.
5149 * gcc.dg/graphite/block-5.c: New.
5150 * gcc.dg/graphite/block-6.c: New.
5151 * gcc.dg/graphite/pr37485.c: Clean dump file after.
5152 * gcc.dg/graphite/pr37684.c: Same.
5153 * gcc.dg/graphite/block-2.c: Same.
2abae5f1
SP
5154
5155 * graphite.c (struct ivtype_map_elt): New.
5156 (debug_ivtype_elt, debug_ivtype_map_1, debug_ivtype_map,
5157 new_ivtype_map_elt, ivtype_map_elt_info, eq_ivtype_map_elts,
5158 gcc_type_for_cloog_iv): New.
5159 (loop_iv_stack_patch_for_consts): Use the type of the induction
5160 variable from the original loop, except for the automatically
5161 generated loops, i.e., in the case of a strip-mined loop, in
5162 which case there is no original loop: in that case just use
5163 integer_type_node.
5164 (new_graphite_bb): Initialize GBB_CLOOG_IV_TYPES.
5165 (free_graphite_bb): Free GBB_CLOOG_IV_TYPES.
5166 (clast_name_to_gcc): Accept params to be NULL.
5167 (clast_to_gcc_expression): Take an extra parameter for the type.
5168 Convert to that type all the expressions built by this function.
5169 (gcc_type_for_clast_expr, gcc_type_for_clast_eq): New.
5170 (graphite_translate_clast_equation): Compute the type of the
5171 clast_equation before translating its LHS and RHS.
5172 (clast_get_body_of_loop, gcc_type_for_iv_of_clast_loop): New.
5173 (graphite_create_new_loop): Compute the type of the induction
5174 variable before translating the lower and upper bounds and before
5175 creating the induction variable.
5176 (rename_variables_from_edge, rename_phis_end_scop): New.
5177 (copy_bb_and_scalar_dependences): Call rename_phis_end_scop.
5178 (sese_add_exit_phis_edge): Do not use integer_zero_node.
5179 (find_cloog_iv_in_expr, compute_cloog_iv_types_1,
5180 compute_cloog_iv_types): New.
5181 (gloog): Call compute_cloog_iv_types before starting the
5182 translation of the clast.
5183
5184 * graphite.h (struct graphite_bb): New field cloog_iv_types.
5185 (GBB_CLOOG_IV_TYPES): New.
5186 (debug_ivtype_map): Declared.
5187 (oldiv_for_loop): New.
5188
51892008-12-10 Tobias Grosser <grosser@fim.uni-passau.de>
5190
5191 PR middle-end/38459
5192 * graphite.c (new_scop): Initialize SCOP_ADD_PARAMS.
5193 (param_index): Assert if parameter is not know after parameter
5194 detection.
5195 (find_params_in_bb): Detect params directly in GBB_CONDITIONS.
5196 (find_scop_parameters): Mark, that we have finished parameter
5197 detection.
5198 (graphite_transform_loops): Move condition detection before parameter
5199 detection.
5200 * graphite.h (struct scop): Add SCOP_ADD_PARAMS.
45489e99 5201 * gfortran.dg/graphite/pr38459.f90: New.
2abae5f1
SP
5202
52032008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
5204
5205 * graphite.c (graphite_transform_loops): Always call find_transform ()
5206 in ENABLE_CHECKING. So we test these code paths, even if we do not
5207 generate code.
5208
52092008-12-09 Tobias Grosser <grosser@fim.uni-passau.de>
5210
5211 * graphite.c (print_graphite_bb): Fix printing to file != dump_file.
5212 (print_scop): Ditto.
5213
52142008-12-08 Tobias Grosser <grosser@fim.uni-passau.de>
5215
5216 PR middle-end/38084
45489e99 5217 Fix gfortran.dg/graphite/id-3.f90.
2abae5f1
SP
5218 * graphite.c (scopdet_basic_block_info): Fix bug that found some
5219 regions more than once.
5220
52212008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5222
45489e99 5223 Fix gfortran.dg/graphite/id-4.f90.
2abae5f1
SP
5224 * graphite.c (scan_tree_for_params): Do not compute the multiplicand
5225 when not needed.
5226
52272008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5228
45489e99 5229 Fix gfortran.dg/graphite/id-1.f90.
2abae5f1
SP
5230 * graphite.c (gmp_cst_to_tree): Pass the type in parameter.
5231 (loop_iv_stack_patch_for_consts): Update use of gmp_cst_to_tree.
5232 (max_precision_type): New.
5233 (value_clast): Removed.
5234 (clast_to_gcc_expression): Be more careful to types of expressions.
5235 Use max_precision_type and update use of gmp_cst_to_tree.
5236 (graphite_translate_clast_equation): Use max_precision_type.
5237 (graphite_create_guard_cond_expr): Do not use integer_type_node,
5238 use the type of the condition.
5239 (graphite_create_new_loop): Do not use integer_type_node, use the
5240 max_precision_type of lb and ub.
5241
52422008-12-03 Sebastian Pop <sebastian.pop@amd.com>
5243
5244 * graphite.c (build_scops_1): Initialize open_scop.exit
5245 and sinfo.last.
5246
52472008-12-02 Sebastian Pop <sebastian.pop@amd.com>
5248
45489e99
SP
5249 * gcc.dg/graphite/pr38084.c: New.
5250 * gfortran.dg/graphite/id-1.f90: New.
5251 * gfortran.dg/graphite/id-2.f90: New.
5252 * gfortran.dg/graphite/id-3.f90: New.
5253 * gfortran.dg/graphite/id-4.f90: New.
5254 * gfortran.dg/graphite/pr37857.f90: New.
2abae5f1
SP
5255
52562008-12-02 Sebastian Pop <sebastian.pop@amd.com>
5257 Jan Sjodin <jan.sjodin@amd.com>
5258 Harsha Jagasia <harsha.jagasia@amd.com>
5259
5260 PR middle-end/37852
5261 PR middle-end/37883
5262 PR middle-end/37928
5263 PR middle-end/37980
5264 PR middle-end/38038
5265 PR middle-end/38039
5266 PR middle-end/38073
5267 PR middle-end/38083
5268 PR middle-end/38125
5269
45489e99
SP
5270 * gcc.dg/graphite/pr38073.c: New.
5271 * gcc.dg/graphite/pr37928.c: New.
5272 * gcc.dg/graphite/pr37883.c: New.
5273 * gcc.dg/graphite/pr38125.c: New.
5274 * gfortran.dg/graphite/pr38083.f90: New.
5275 * gfortran.dg/graphite/pr37852.f90: New.
5276 * gfortran.dg/graphite/pr37980.f90: New.
2abae5f1 5277
45489e99 5278 * gcc.dg/graphite/scop-18.c: Remove reduction, test for
2abae5f1
SP
5279 the number of detected scops. Copy exact same test for loop
5280 blocking...
45489e99 5281 * gcc.dg/graphite/block-1.c: Fix the number of expected
2abae5f1 5282 loops to be blocked as reductions are not handled.
45489e99 5283 * gcc.dg/graphite/block-4.c: ...here. New.
2abae5f1
SP
5284
5285 * tree-phinodes.c (remove_phi_nodes): New, extracted from...
5286 * tree-cfg.c (remove_phi_nodes_and_edges_for_unreachable_block):
5287 ...here.
5288 * tree-flow.h (remove_phi_nodes, canonicalize_loop_ivs): Declared.
5289 * Makefile.in (graphite.o): Depend on value-prof.h.
5290 (graphite.o-warn): Removed -Wno-error.
5291 * tree-parloops.c (canonicalize_loop_ivs): Allow reduction_list
5292 to be a NULL pointer. Call update_stmt. Return the newly created
5293 cannonical induction variable.
5294
5295 * graphite.h (debug_rename_map): Declared. Fix some comments.
5296
5297 * graphite.c: Reimplement the code generation from graphite to gimple.
5298 Include value-prof.h.
5299 (loop_iv_stack_get_iv): Do not return NULL for constant substitutions.
5300 (get_old_iv_from_ssa_name): Removed.
5301 (graphite_stmt_p): New.
5302 (new_graphite_bb): Test for useful statements before building a
5303 graphite statement for the basic block.
5304 (free_graphite_bb): Do not free GBB_DATA_REFS: this is a bug
5305 in free_data_ref that calls BITMAP_FREE (DR_VOPS (dr)) without
5306 reason.
5307 (recompute_all_dominators, graphite_verify,
5308 nb_reductions_in_loop, graphite_loop_normal_form): New.
5309 (scop_record_loop): Call graphite_loop_normal_form.
5310 (build_scop_loop_nests): Iterate over all the blocks of the
5311 function instead of relying on the incomplete information from
5312 SCOP_BBS. Return the success of the operation.
5313 (find_params_in_bb): Use the data from GBB_DATA_REFS.
5314 (add_bb_domains): Removed.
5315 (build_loop_iteration_domains): Don't call add_bb_domains.
5316 Add the iteration domain only to the basic blocks that have been
5317 translated to graphite.
5318 (build_scop_conditions_1): Add constraints only if the basic
5319 block have been translated to graphite.
5320 (build_scop_data_accesses): Completely disabled until data
5321 dependence is correctly implemented.
5322 (debug_rename_elt, debug_rename_map_1, debug_rename_map): New.
5323 (remove_all_edges_1, remove_all_edges): Removed.
5324 (get_new_name_from_old_name): New.
5325 (graphite_rename_variables_in_stmt): Renamed
5326 rename_variables_in_stmt. Call get_new_name_from_old_name.
5327 Use replace_exp and update_stmt.
5328 (is_old_iv): Renamed is_iv.
5329 (expand_scalar_variables_stmt): Extra parameter for renaming map.
5330 Use replace_exp and update_stmt.
5331 (expand_scalar_variables_expr): Same. Use the map to get the
5332 new names for the renaming of induction variables and for the
5333 renaming of variables after a basic block has been copied.
5334 (expand_scalar_variables): Same.
5335 (graphite_rename_variables): Renamed rename_variables.
5336 (move_phi_nodes): Removed.
5337 (get_false_edge_from_guard_bb): New.
5338 (build_iv_mapping): Do not insert the induction variable of a
5339 loop in the renaming iv map if the basic block does not belong
5340 to that loop.
5341 (register_old_new_names, graphite_copy_stmts_from_block,
5342 copy_bb_and_scalar_dependences): New.
5343 (translate_clast): Heavily reimplemented: copy basic blocks,
5344 do not move them. Finally, in call cleanup_tree_cfg in gloog.
5345 At each translation step call graphite_verify ensuring the
5346 consistency of the SSA, loops and dominators information.
5347 (collect_virtual_phis, find_vdef_for_var_in_bb,
5348 find_vdef_for_var_1, find_vdef_for_var,
5349 patch_phis_for_virtual_defs): Removed huge hack.
5350 (mark_old_loops, remove_dead_loops, skip_phi_defs,
5351 collect_scop_exit_phi_args, patch_scop_exit_phi_args,
5352 gbb_can_be_ignored, scop_remove_ignoreable_gbbs, ): Removed.
5353 (remove_sese_region, ifsese, if_region_entry, if_region_exit,
5354 if_region_get_condition_block, if_region_set_false_region,
5355 create_if_region_on_edge, move_sese_in_condition, bb_in_sese_p,
5356 sese_find_uses_to_rename_use, sese_find_uses_to_rename_bb,
5357 sese_add_exit_phis_edge, sese_add_exit_phis_var,
5358 rewrite_into_sese_closed_ssa): New.
5359 (gloog): Remove dead code. Early return if code cannot be
5360 generated. Call cleanup_tree_cfg once the scop has been code
5361 generated.
5362 (graphite_trans_scop_block, graphite_trans_loop_block): Do not
5363 block loops with less than two loops.
5364 (graphite_apply_transformations): Remove the call to
5365 scop_remove_ignoreable_gbbs.
5366 (limit_scops): When build_scop_loop_nests fails, continue on
5367 the next scop. Fix open_scop.entry.
5368 (graphite_transform_loops): Call recompute_all_dominators: force the
5369 recomputation of correct CDI_DOMINATORS and CDI_POST_DOMINATORS.
5370 Call initialize_original_copy_tables and free_original_copy_tables
5371 to be able to copy basic blocks during code generation.
5372 When build_scop_loop_nests fails, continue on next scop.
5373 (value_clast): New union.
5374 (clast_to_gcc_expression): Fix type cast warning.
5375
53762008-11-09 Sebastian Pop <sebastian.pop@amd.com>
5377
5378 * Merge from mainline (r140838:141727).
5379
53802008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
5381
5382 PR middle-end/37833
5383
5384 * graphite.c (scan_tree_for_params): Add POINTER_PLUS_EXPR.
5385
53862008-11-05 Tobias Grosser <grosser@fim.uni-passau.de>
5387
5388 PR middle-end/37943
5389
5390 * graphite.c (scopdet_basic_block_info): Fix loops with multiple
5391 exits and conditions.
45489e99 5392 * gcc.dg/graphite/pr37943.c: New.
2abae5f1
SP
5393
53942008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
5395
5396 PR middle-end/37886
5397 * graphite.c (gloog): Replace EXIT_BLOCK_PTR with scop exit.
5398
53992008-10-23 Tobias Grosser <grosser@fim.uni-passau.de>
5400
5401 * doc/invoke.texi: Fix spaces.
5402
54032008-10-22 Sebastian Pop <sebastian.pop@amd.com>
5404
5405 PR tree-optimization/37891
5406 Reverted last commit.
5407 * graphite.c (create_single_entry_edge): Set
5408 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
5409
54102008-10-21 Sebastian Pop <sebastian.pop@amd.com>
5411 Mitul Thakkar <mitul.thakkar@amd.com>
5412
5413 * graphite.c (create_single_entry_edge): Set
5414 EDGE_IRREDUCIBLE_LOOP and BB_IRREDUCIBLE_LOOP.
5415
54162008-10-16 Tobias Grosser <grosser@fim.uni-passau.de>
5417
5418 * doc/invoke.texi: Add -fgraphite-identity.
5419 * graphite.c (graphite_apply_transformations): Check for
5420 -fgraphite-identity.
5421 * toplev.c (process_options): Add flag_graphite_identity.
5422 * tree-ssa-loop.c: Add flag_graphite_identity.
5423
54242008-10-14 Sebastian Pop <sebastian.pop@amd.com>
5425
5426 Undo changes from 2008-10-02:
5427 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
5428 operand type when copying the operand to a variable of different type.
5429 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
5430 with the IV name after increment.
5431
54322008-10-14 Sebastian Pop <sebastian.pop@amd.com>
5433 Harsha Jagasia <harsha.jagasia@amd.com>
5434
5435 PR tree-optimization/37828
45489e99 5436 * gcc.dg/graphite/pr37828.c: New.
2abae5f1
SP
5437 * graphite.c (graphite_trans_loop_block): Do not loop block
5438 single nested loops.
5439
54402008-10-09 Harsha Jagasia <harsha.jagasia@amd.com>
5441 Sebastian Pop <sebastian.pop@amd.com>
5442
5443 * graphite.c (struct rename_map_elt, new_rename_map_elt,
5444 rename_map_elt_info, eq_rename_map_elts): New.
5445 (graphite_rename_ivs_stmt): Renamed graphite_rename_variables_in_stmt.
5446 (expand_scalar_variables_expr): Change parameters.
5447 (expand_scalar_variables_stmt): Same.
5448 (expand_scalar_variables): Same.
5449 (graphite_rename_ivs): Rename graphite_rename_variables.
5450 (build_iv_mapping): New.
5451 (translate_clast): Call build_iv_mapping.
5452 * graphite.h (gbb_p): New name.
5453
54542008-10-03 Harsha Jagasia <harsha.jagasia@amd.com>
5455
5456 PR tree-optimization/37684
5457 * gcc.dg/graphite/pr37684.c: New.
5458 * graphite.c (exclude_component_ref): New.
5459 (is_simple_operand): Call exclude_component_ref.
5460
54612008-10-02 Jan Sjodin <jan.sjodin@amd.com>
5462 Harsha Jagasia <harsha.jagasia@amd.com>
5463
5464 PR tree-optimization/37485
5465 * gcc.dg/graphite/block-2.c: New
5466 * graphite.c (gmp_cst_to_tree): Moved.
5467 (iv_stack_entry_is_constant): New.
5468 (iv_stack_entry_is_iv): New.
5469 (loop_iv_stack_push): Renamed to loop_iv_stack_push_iv.
5470 (loop_iv_stack_insert_constant): New.
5471 (loop_iv_stack_pop): Use new datatpype.
5472 (loop_iv_stack_get_iv): Same.
5473 (loop_iv_stack_get_iv_from_name): Same.
5474 (loop_iv_stack_debug): Renamed to debug_loop_iv_stack.
5475 (loop_iv_stack_patch_for_consts): New.
5476 (loop_iv_stack_remove_constants): New.
5477 (graphite_create_new_loop): Use loop_iv_stack_push_iv.
5478 (translate_clast): Call loop_iv_stack_patch_for_consts and
5479 loop_iv_stack_remove_constants.
5480 (gloog): Use new datatype. Redirect construction edge to end
5481 block to avoid accidental deletion.
5482 * graphite.h (enum iv_stack_entry_kind): New. Tag for data in
5483 iv stack entry.
5484 (union iv_stack_entry_data): New. Data in iv stack entry.
5485 (struct iv_stack_entry): New. Datatype for iv stack entries.
5486
54872008-10-02 Sebastian Pop <sebastian.pop@amd.com>
5488
5489 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Convert
5490 operand type when copying the operand to a variable of different type.
5491
54922008-10-02 Sebastian Pop <sebastian.pop@amd.com>
5493
5494 * cfgloopmanip.c (create_empty_loop_on_edge): Write exit condition
5495 with the IV name after increment.
5496
54972008-10-02 Sebastian Pop <sebastian.pop@amd.com>
5498
5499 * Merge from mainline (r140164:140838).
5500
55012008-09-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
5502
5503 * graphite-data-ref.c: New.
5504 * graphite.c (print_scop): Also dump the dependence graph.
5505 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): Moved...
5506 (new_scop): Initialize SCOP_DEP_GRAPH.
5507 (build_scop_dynamic_schedules): New.
5508 (build_access_matrix_with_af): Fixed column numbering.
5509 (graphite_transform_loops): Call build_scop_dynamic_schedules.
5510 * graphite.h: Add ifndef/define guards against multiple inclusion.
5511 (struct scop): Add dep_graph field.
5512 (SCOP_DEP_GRAPH): Defined.
5513 (ref_nb_loops): Fixed and moved to other position.
5514 (bb_in_scop_p, loop_in_scop_p, nb_loops_around_gb): ... here.
5515 (nb_loops_around_loop_in_scop): New.
5516 (graphite_dump_dependence_graph): Declared.
5517 (graphite_build_rdg_all_levels): Declared.
5518 (graphite_test_dependence): Declared.
5519 * Makefile.in (graphite-data-ref.o): New target.
5520
55212008-09-09 Sebastian Pop <sebastian.pop@amd.com>
5522
5523 * Merge from mainline (139870:140164).
5524
55252008-09-01 Sebastian Pop <sebastian.pop@amd.com>
5526
5527 * Merge from mainline (138275:139870).
45489e99 5528 * gcc.dg/graphite/scop-matmult.c: XFailed as one of
2abae5f1
SP
5529 the commits from trunk broke the niter detection.
5530
55312008-09-01 Sebastian Pop <sebastian.pop@amd.com>
5532
5533 * graphite.c: Add more documentation. Fix formatting.
5534 (debug_loop_vec, debug_oldivs, loop_iv_stack,
5535 loop_iv_stack_debug): Moved...
5536 (schedule_to_scattering): Move before use.
5537 (dot_all_scops): Include in "#if 0" the code for system
5538 call dotty.
5539
5540 * graphite.h: (debug_loop_vec, debug_oldivs, loop_iv_stack,
5541 loop_iv_stack_debug): ...here.
5542
55432008-08-29 Jan Sjodin <jan.sjodin@amd.com>
5544
5545 * tree-phinodes.c (make_phi_node): Extern.
5546 (add_phi_node_to_bb): New.
5547 (create_phi_node): Call add_phi_node_to_bb.
5548 * tree-ssa-loop-ivopts.c (get_phi_with_result): New.
5549 (remove_statement): Handle case where stored phi was updated
5550 and is no longer the same.
5551 * graphite.c (is_parameter): New.
5552 (is_old_iv): New.
5553 (expand_scalar_variables_expr): New.
5554 (expand_scalar_variables_stmt): New.
5555 (expand_scalar_variables): New.
5556 (move_phi_nodes): Create new phi instead of moving old one.
5557 (translate_clast): Call expand_scalar_variables.
5558 (find_vdef_for_var_in_bb): Also scan regular definitions.
5559 (skip_phi_defs): New.
5560 (collect_scop_exit_phi_args): New.
5561 (patch_scop_exit_phi_args): New.
5562 (gloog): Patch phis after scop.
5563 * tree-flow.h: (add_phi_node_to_bb): Declared.
5564 (make_phi_node): Declared.
5565
55662008-08-26 Sebastian Pop <sebastian.pop@amd.com>
5567
5568 * graphite.c (end_scop): Split the entry of the scop when it
5569 is the header of the loop in which the scop is ending.
5570 (build_scops_1, limit_scops): Update uses of end_scop.
5571
55722008-08-26 Sebastian Pop <sebastian.pop@amd.com>
5573
5574 * graphite.c (dot_all_scops_1): Do not fail on uninitialized
5575 SCOP_ENTRY or SCOP_EXIT.
5576
55772008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5578
5579 * graphite.c (get_construction_edge): Removed.
5580 (gloog): Construction edge is the scop entry edge.
5581
55822008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5583
5584 * graphite.c (can_generate_for_scop): Removed.
5585 (gloog): Do not call it.
5586
55872008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5588
5589 * graphite.c (new_scop): Entry of a scop is an edge.
5590 Initialize SESE region.
5591 (free_scop): Free SESE region.
5592 (build_scops_1, scopdet_bb_info): Work on edges, not on bbs.
5593 (split_difficult_bb): New, split from end_scop.
5594 (end_scop): Exit of a scop is an edge.
5595 (build_scop_bbs): Never check CDI_POST_DOMINATORS: this info is
5596 not automatically updated and thus is always wrong.
5597 * graphite.h (struct sese): New.
5598 (SESE_ENTRY): New.
5599 (SESE_EXIT): New.
5600 (struct scop): New field for a SESE region. Remove entry, exit.
5601 (SCOP_ENTRY, SCOP_EXIT): Update definitions to match same
5602 semantics as before. Moved comment around.
5603
56042008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
5605 Sebastian Pop <sebastian.pop@amd.com>
5606
5607 * graphite.c (graphite_transform_loops): Always enable gloog
5608 and find_transform when ENABLE_CHECKING.
5609
56102008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5611
5612 * graphite.c (graphite_transform_loops): Move pretty printer
5613 of SCOPs before doing any transform. Remove call to print_scops
5614 and dot_all_scops_1.
5615
56162008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5617
5618 * graphite.c (dump_gbb_conditions): Don't try to print NULL pointers.
5619 (print_graphite_bb): Same.
5620
56212008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5622
5623 * graphite.c (dot_all_scops_1): Cleanup.
5624 (move_scops): Fix comment.
5625
56262008-08-25 Sebastian Pop <sebastian.pop@amd.com>
5627
5628 * graphite.c (build_scop_bbs): Revert commit 139355:
5629
5630 2008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5631 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5632
5633 * graphite.c (build_scop_bbs): Factor up code.
5634
56352008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
5636
5637 * graphite.c (gloog): Update dominator info.
5638
56392008-08-25 Tobias Grosser <grosser@fim.uni-passau.de>
5640
5641 * graphite.c (remove_cond_exprs): Do not fail on empty bbs.
5642
56432008-08-24 Sebastian Pop <sebastian.pop@amd.com>
5644
5645 * graphite.c (new_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP
5646 initialization.
5647 (free_graphite_bb): Remove GBB_INDEX_TO_NUM_MAP free.
5648 (translate_clast): Correct formatting.
5649 * graphite.h (struct num_map): Removed.
5650 (struct graphite_bb): Remove num_map field.
5651 (GBB_INDEX_TO_NUM_MAP): Removed.
5652
56532008-08-24 Sebastian Pop <sebastian.pop@amd.com>
5654
5655 * graphite.c (build_access_matrix_with_af): Fix comments.
5656 (build_scop_data_accesses): Same.
5657
56582008-08-24 Sebastian Pop <sebastian.pop@amd.com>
5659
5660 * graphite.c (build_scop_data_accesses): Don't construct
5661 access matrices. Add a FIXME and an assert condition that
5662 should pass when the access matrices will be needed.
5663
56642008-08-24 Sebastian Pop <sebastian.pop@amd.com>
5665
5666 * tree-data-ref.c (stmt_simple_memref_p): Don't call
5667 really_constant_p.
5668 * graphite.c (build_graphite_bb): Renamed new_graphite_bb.
5669 Moved close by free_graphite_bb.
5670 (free_graphite_bb): Call free_data_refs. Reset bb->aux.
5671 (new_scop): Move close by free_scop.
5672 (graphite_transform_loops): Avoid linear scan to reset bb->aux.
5673
56742008-08-22 Jan Sjodin <jan.sjodin@amd.com>
5675
5676 * cfgloopmanip.c (create_empty_if_region_on_edge): New.
5677 * graphite.c (clast_to_gcc_expression): Call gmp_cst_to_tree
5678 instead of recursive call.
5679 (graphite_translate_clast_equation): New.
5680 (graphite_create_guard_cond_expr): New.
5681 (graphite_create_new_guard): New.
5682 (get_stack_index_from_iv): Removed.
5683 (graphite_rename_ivs_stmt): Use gbb_loop_index.
5684 (get_true_edge_from_guard_bb): New.
5685 (translate_clast): Handle stmt_guard in clast.
5686 (get_construction_edge): Allow construction edge detection for
5687 a scope entry with multiple predecessors if one predecessor is
5688 the immediate dominator of scope entry.
5689 (can_generate_code_stmt): Enable code generation for clast_guard.
5690 (gloog): Use correct context loop. Removed check for post dominators.
5691 * cfgloop.h (create_empty_if_region_on_edge): Declared.
5692
56932008-08-21 Sebastian Pop <sebastian.pop@amd.com>
5694
5695 * graphite.c (remove_dead_loops): Document better which
5696 loops are removed.
5697
56982008-08-21 Sebastian Pop <sebastian.pop@amd.com>
5699
5700 * Makefile.in: Rename POLYLIBLIBS and POLYLIBINC to PPLLIBS
5701 and PPLINC.
5702 (graphite.o): Also depends on pointer-set.h.
5703
57042008-08-21 Sebastian Pop <sebastian.pop@amd.com>
5705
5706 * graphite.c (scop_record_loop): Fix compile warning.
5707
57082008-08-21 Harsha Jagasia <harsha.jagasia@amd.com>
5709 Sebastian Pop <sebastian.pop@amd.com>
5710
5711 * graphite.c (scop_record_loop): DECL_NAME can be NULL.
5712
57132008-08-21 Sebastian Pop <sebastian.pop@amd.com>
5714
5715 * graphite.c (build_graphite_bb): Initialize bb->aux to
5716 point to the graphite_bb_p.
5717 (graphite_bb_from_bb): Renamed gbb_from_bb; returns the
5718 content of bb->aux.
5719 (add_bb_domains): Does not use the scop parameter.
5720 (graphite_transform_loops): Clean bb->aux at the end.
5721
57222008-08-20 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5723 Sebastian Pop <sebastian.pop@amd.com>
5724
45489e99 5725 * lib/target-supports.exp
2abae5f1
SP
5726 (check_effective_target_fgraphite): New.
5727
45489e99 5728 * gcc.dg/graphite/graphite.exp: Early exit when
2abae5f1
SP
5729 check_effective_target_fgraphite returns false.
5730 Set dg-do-what-default to compile.
5731 (scan-graphite-dump-times): Removed.
45489e99 5732 * gfortran.dg/graphite/graphite.exp: Same.
2abae5f1 5733
45489e99 5734 * gcc.dg/graphite/scop-0.c: Do not use "dg-do compile".
2abae5f1 5735 Use scan-tree-dump-times instead of scan-graphite-dump-times.
45489e99
SP
5736 * gcc.dg/graphite/scop-1.c: Same.
5737 * gcc.dg/graphite/scop-2.c: Same.
5738 * gcc.dg/graphite/scop-3.c: Same.
5739 * gcc.dg/graphite/scop-4.c: Same.
5740 * gcc.dg/graphite/scop-5.c: Same.
5741 * gcc.dg/graphite/scop-6.c: Same.
5742 * gcc.dg/graphite/scop-7.c: Same.
5743 * gcc.dg/graphite/scop-8.c: Same.
5744 * gcc.dg/graphite/scop-9.c: Same.
5745 * gcc.dg/graphite/scop-10.c: Same.
5746 * gcc.dg/graphite/scop-11.c: Same.
5747 * gcc.dg/graphite/scop-12.c: Same.
5748 * gcc.dg/graphite/scop-13.c: Same.
5749 * gcc.dg/graphite/scop-matmult.c: Same.
5750 * gcc.dg/graphite/scop-14.c: Same.
5751 * gcc.dg/graphite/scop-15.c: Same.
5752 * gcc.dg/graphite/block-0.c: Same.
5753 * gcc.dg/graphite/scop-16.c: Same.
5754 * gcc.dg/graphite/block-1.c: Same.
5755 * gcc.dg/graphite/scop-17.c: Same.
5756 * gcc.dg/graphite/scop-18.c: Same.
5757 * gfortran.dg/graphite/block-1.f90: Same.
5758 * gfortran.dg/graphite/scop-1.f: Same.
5759 * gfortran.dg/graphite/block-2.f: Same.
2abae5f1
SP
5760
57612008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5762
5763 * graphite.c: Fix some XXX comments.
5764 (build_scop_dynamic_schedules): Removed.
5765
57662008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5767
5768 * graphite.h (scop_max_loop_depth): Moved...
5769 * graphite.c (scop_max_loop_depth): ...here.
5770 (remove_all_edges_1): New.
5771 (remove_all_edges): Factored code.
5772 (remove_cond_exprs): Check only the last statement for
5773 a GIMPLE_COND expression.
5774
57752008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5776
5777 * graphite.c (scan_tree_for_params): Early return when the
5778 expression is a chrec_dont_know. Handle case NEGATE_EXPR.
5779 (find_scop_parameters): Factor out code.
5780 (graphite_trans_bb_strip_mine): Remove dead code.
5781
57822008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5783
5784 * graphite.c (clast_to_gcc_expression, graphite_create_new_loop,
5785 graphite_trans_bb_move_loop): Factor asserts.
5786 (gloog): Perform sanity checks only for ENABLE_CHECKING.
5787 Do not call calculate_dominance_info and estimate_bb_frequencies.
5788
57892008-08-20 Jan Sjodin <jan.sjodin@amd.com>
5790
5791 * graphite.c (create_loops_mapping, free_loops_mapping,
5792 create_loops_mapping_num, debug_loop_mapping_1,
5793 debug_loop_mapping, graphite_loops_mapping_max_loop_num,
5794 get_loop_mapping_for_num, graphite_loops_mapping_add_child,
5795 graphite_loops_mapping_add_child_num,
5796 graphite_loops_mapping_insert_child,
5797 graphite_loops_mapping_parent, get_loop_mapped_depth_for_num,
5798 get_loop_mapped_depth, split_loop_mapped_depth_for_num,
5799 loop_mapped_depth_split_loop, swap_loop_mapped_depth_for_num,
5800 create_num_from_index, get_num_from_index,
5801 swap_loop_mapped_depth): Removed.
5802 (new_scop): Do not initialize SCOP_LOOPS_MAPPING.
5803 (free_scop): Do not call free_loops_mapping.
5804 (graphite_get_new_iv_stack_index_from_old_iv): Renamed
5805 get_stack_index_from_iv. Use GBB_LOOPS instead of calling
5806 get_loop_mapped_depth.
5807 (graphite_trans_bb_move_loop): Do not update the loop mapping.
5808 (graphite_trans_bb_strip_mine): Same.
5809 * graphite.h (graphite_loops_mapping, graphite_loop_node): Removed.
5810 (struct scop): Remove field loops_mapping.
5811
58122008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5813 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5814
5815 * graphite.c (scop_record_loop): Factor out one level of the
5816 condition by early return.
5817 (build_scop_loop_nests): Format following FSF coding style.
5818 (build_scop_dynamic_schedules): Factor out code.
5819 (scopdet_bb_info): Reindent. Default case should not be reachable.
5820
58212008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5822 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5823
5824 * graphite.c (loop_affine_expr): Check for DECL_P or struct
5825 assignments that are not handled as simple operands for now.
5826
58272008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5828 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5829
5830 * graphite.c (build_scop_bbs): Factor up code.
5831
58322008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5833 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5834
5835 * graphite.c (stmt_simple_for_scop_p): Factor code out
5836 of the loop.
5837 (enum gbb_type): New. Group all the GBB_* types under it.
5838 (is_loop_exit): Moved...
5839 (end_scop): Enable BB spliting.
5840 * cfgloop.c (is_loop_exit): ...here. Reimplemented.
5841 * cfgloop.h (is_loop_exit): Declared.
5842
58432008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5844
5845 * doc/invoke.texi: Remove strides from examples containing
5846 DO loops when the strides are equal to 1.
5847
58482008-08-20 Harsha Jagasia <harsha.jagasia@amd.com>
5849 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5850
5851 * graphite.c (graphite_trans_scop_block): Or the result with
5852 the result from graphite_trans_loop_block.
45489e99
SP
5853 * gcc.dg/graphite/block-1.c: New.
5854 * gfortran.dg/graphite/block-1.f90: New.
5855 * gfortran.dg/graphite/block-2.f: New.
2abae5f1
SP
5856
58572008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5858
5859 * graphite.c (graphite_transform_loops): Call cloog_initialize
5860 and cloog_finalize.
5861
58622008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5863
5864 * tree-data-ref.c) (stmt_simple_memref_p): New.
5865 * tree-data-ref.h (stmt_simple_memref_p): Declared.
5866 * graphite.c (stmt_simple_memref_for_scop_p): Removed.
5867 (is_simple_operand): Call stmt_simple_memref_p.
5868
45489e99 5869 * gcc.dg/graphite/scop-matmult.c: Updated for not
2abae5f1
SP
5870 using pointer arithmetic, as this is optimized by PRE and
5871 makes the code too difficult to analyze.
5872
45489e99 5873 * gcc.dg/graphite/scop-18.c: Same.
2abae5f1
SP
5874
58752008-08-20 Sebastian Pop <sebastian.pop@amd.com>
5876
5877 * gdbinit.in (pgg): New.
5878
58792008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
5880
5881 * graphite.c (graphite_trans_loop_block): Fix warning.
5882
58832008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
5884
5885 * graphite.c (graphite_trans_loop_block): Fix my merge error.
5886
58872008-08-15 Tobias Grosser <grosser@fim.uni-passau.de>
5888
5889 * graphite.c (graphite_trans_bb_block): Remove check for
5890 flag_loop_strip_mine, flag_loop_block, flag_loop_interchange.
5891 Check if loop blocking is profitable for every loop, before applying
5892 the changes.
5893 (graphite_apply_transformations): Call graphite_trans_bb_block only,
5894 if flag_loop_block is set.
5895
58962008-08-14 Sebastian Pop <sebastian.pop@amd.com>
5897
5898 * graphite.c: Add some more documentation for the loop
5899 mapping.
5900
59012008-08-14 Sebastian Pop <sebastian.pop@amd.com>
5902
5903 * Makefile.in (tree-data-ref.o): Remove dependence on graphite.h.
5904 * graphite.c: Format on less than 80 columns.
5905 * graphite.h: Same.
5906
59072008-08-14 Sebastian Pop <sebastian.pop@amd.com>
5908
5909 * cfgloopmanip.c (loopify): Use update_dominators_in_loop.
5910
59112008-08-14 Sebastian Pop <sebastian.pop@amd.com>
5912
5913 * doc/invoke.texi (floop-block, floop-strip-mine,
5914 floop-interchange): Update documentation with examples.
5915
59162008-08-13 Sebastian Pop <sebastian.pop@amd.com>
5917
5918 * cfgloopmanip.c (create_empty_loop_on_edge): Don't call
5919 add_referenced_var.
5920 * graphite.c (graphite_create_new_loop): Call add_referenced_var.
5921
59222008-08-13 Sebastian Pop <sebastian.pop@amd.com>
5923
5924 * cfgloopmanip.c (create_empty_loop_on_edge): Improve documentation.
5925 Factor gcc_asserts into a single one. Use force_gimple_operand_gsi.
5926 * tree-scalar-evolution.c: Revert useless changes.
5927 * tree-phinodes.c: Same.
5928 * cfghooks.c: Same.
5929 * vec.h: Same.
5930 * tree-vectorizer.h: Same.
5931 * tree-flow.h: Same.
5932 * tree-cfg.c: Same.
5933 * common.opt (fgraphite): Update documentation.
5934
59352008-08-12 Harsha Jagasia <harsha.jagasia@amd.com>
5936
5937 * doc/invoke.texi (-floop-block, -floop-strip-mine,
5938 -floop-interchange): Add more text for explaining what each of these
5939 flags is doing.
5940 * tree-into-ssa.c (gimple_vec): Moved to...
5941 * graphite.c: Include gimple.h.
5942 (gimple_vec): Moved to...
5943 (del_loop_to_cloog_loop): Removed.
5944 (loop_affine_expr): Do not call create_data_ref when the
5945 operand is a constant.
5946 (new_scop): Use free instead of del_loop_to_cloog_loop.
5947 * Makefile.in (graphite.o): Depend on GIMPLE_H.
5948 * gimple.h (gimple_vec): ... here.
5949
59502008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5951
5952 * graphite.c (scopdet_bb_info): Only allow loops with known number of
5953 latch executions.
5954 (build_loop_iteration_domains): Fail, if latch executions unknown.
5955
59562008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5957
5958 * graphite.c (add_conditions_to_domain): New.
5959 (build_scop_conditions_1): Call add_conditions_to_domain.
5960 (set_cloog_options): Allow to disable optimizations.
5961
59622008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5963
5964 * graphite.c (find_params_in_bb): Look for parameters in conditions.
5965 Do not use walk_dominator_tree.
5966 (find_scop_parameters): Do not use walk_dominator_tree.
5967
59682008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5969
5970 * graphite.c (scan_tree_for_params) Add / Subtract inequality.
5971 (idx_record_params): Adapt.
5972 * graphite.h (scop_gimple_loop_depth): New.
5973
59742008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5975
5976 * graphite.c (build_scop_dynamic_schedules): Remove value_init.
5977 (scan_tree_for_params): Remove value_init.
5978 (build_scop_context): Remove value_init.
5979 (build_loop_iteration_domains): Remove value_init.
5980 (schedule_to_scattering): Remove value_init.
5981 (graphite_trans_bb_strip_mine): Remove value_init.
5982
59832008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
5984
5985 * gcc/graphite.c (limit_scops): New.
5986 (graphite_transform_loops): Add limit SCoPs.
45489e99
SP
5987 * gcc.dg/graphite/scop-0.c: Update number of SCoPs.
5988 * gcc.dg/graphite/scop-1.c: Update number of SCoPs.
5989 * gcc.dg/graphite/scop-10.c: Update number of SCoPs.
5990 * gcc.dg/graphite/scop-11.c: Update number of SCoPs.
5991 * gcc.dg/graphite/scop-12.c: Update number of SCoPs.
5992 * gcc.dg/graphite/scop-13.c: Update number of SCoPs.
5993 * gcc.dg/graphite/scop-14.c: Update number of SCoPs.
5994 * gcc.dg/graphite/scop-15.c: Update number of SCoPs.
5995 * gcc.dg/graphite/scop-16.c: Update number of SCoPs.
2abae5f1 5996 Change loop numbers.
45489e99 5997 * gcc.dg/graphite/scop-17.c: Update number of SCoPs.
2abae5f1 5998 Change loop numbers.
45489e99
SP
5999 * gcc.dg/graphite/scop-18.c: Update number of SCoPs.
6000 * gcc.dg/graphite/scop-2.c: Update number of SCoPs.
6001 * gcc.dg/graphite/scop-3.c: Update number of SCoPs.
6002 * gcc.dg/graphite/scop-4.c: Update number of SCoPs.
6003 * gcc.dg/graphite/scop-5.c: Update number of SCoPs.
6004 * gcc.dg/graphite/scop-6.c: Update number of SCoPs.
6005 * gcc.dg/graphite/scop-7.c: Update number of SCoPs.
6006 * gcc.dg/graphite/scop-8.c: Update number of SCoPs.
6007 * gcc.dg/graphite/scop-9.c: Update number of SCoPs.
6008 * gcc.dg/graphite/scop-matmult.c: Update number of SCoPs.
2abae5f1
SP
6009
60102008-08-11 Tobias Grosser <grosser@fim.uni-passau.de>
6011
6012 * graphite.c (graphite_transform_loops): Call always find_transform.
6013
60142008-08-08 Tobias Grosser <grosser@fim.uni-passau.de>
6015
6016 * graphite.c (free_loops_mapping): New.
6017 (stmt_simple_for_scop_p): Fix typo.
6018 (stmt_simple_for_scop_p): Fix tuples functions, that
6019 broke polyhedron.
6020 (free_graphite_bb): Fix some memleaks.
6021 (free_scop): Fix some memleaks.
6022 (scopdet_bb_info): Do not forget some tmp SCoPs.
6023 (find_params_in_bb): Fix some memleaks.
6024 (clast_to_gcc_expression): Fix warning.
6025
60262008-08-07 Tobias Grosser <grosser@fim.uni-passau.de>
6027
45489e99
SP
6028 * gcc.dg/graphite/scop-16.c: Fix for 32bit.
6029 * gcc.dg/graphite/scop-17.c: Fix for 32bit.
2abae5f1
SP
6030
60312008-08-04 Sebastian Pop <sebastian.pop@amd.com>
6032
6033 * tree-ssa-loop.c (tree-ssa-loop.o): Do not include toplev.h.
6034 Move code ifdef-ed HAVE_cloog...
6035 * graphite.c: Include toplev.h.
6036 ... here.
6037 * Makefile.in (OBJS-common): Always build graphite.o.
6038 (BACKEND): Remove @GRAPHITE@.
6039 (tree-ssa-loop.o): Do not depend on TOPLEV_H.
6040 (graphite.o): Depend on TOPLEV_H.
6041
60422008-08-04 Sebastian Pop <sebastian.pop@amd.com>
6043
6044 * Makefile.in (tree-ssa-loop.o): Depend on TOPLEV_H.
6045 Remove typo left from polylib to ppl conversion.
6046 * graphite.c (graphite_transforms): Use sorry instead of fatal.
6047
60482008-08-03 Sebastian Pop <sebastian.pop@amd.com>
6049
6050 * toplev.c (process_options): Move the graphite loop optimization
6051 flags...
6052 * tree-ssa-loop.c (graphite_transforms): ... here.
6053 When not configured with CLooG, print to dump_file that
6054 Graphite transforms were not performed.
45489e99 6055 * gcc.dg/graphite/graphite.exp (scan-graphite-dump-times):
2abae5f1 6056 New.
45489e99 6057 * gcc.dg/graphite/*.c: Updated all testcases to use
2abae5f1
SP
6058 scan-graphite-dump-times.
6059
60602008-08-03 Sebastian Pop <sebastian.pop@amd.com>
6061
6062 * graphite.c (dot_scop, dot_all_scops): Do not call system.
6063 Do not open /tmp/scop.dot and /tmp/allscops.dot.
6064
60652008-08-02 Sebastian Pop <sebastian.pop@amd.com>
6066 Jan Sjodin <jan.sjodin@amd.com>
6067
6068 * configure: Regenerated.
6069 * omp-low.c (expand_omp_sections): Remove now unused code.
6070 * config.in (HAVE_polylib): Removed.
6071 * configure.ac (HAVE_polylib, POLYLIBLIBS, POLYLIBINC): Removed.
6072 (PPLLIBS, PPLINC): Added.
6073 * graphite.c: Replace unsigned with int wherever possible.
6074 Don't access Cloog's data structures, but use accessor functions.
6075 Clast's stmt->type is now implemented as a vtable: change the
6076 switches of stmt->type into ifs.
6077 (polylib/polylibgmp.h): Don't include.
6078 (initialize_dependence_polyhedron,
6079 initialize_data_dependence_polyhedron, is_empty_polyhedron,
6080 statement_precedes_p, test_dependence, build_rdg_all_levels,
6081 dump_dependence_graph): Removed until this code is cleaned up
6082 or ported to Cloog.
6083 * Makefile.in (POLYLIBLIBS): Renamed PPLLIBS.
6084 (POLYLIBINC): Renamed PPLINC.
6085
60862008-08-01 Harsha Jagasia <harsha.jagasia@amd.com>
6087 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6088 Jan Sjodin <jan.sjodin@amd.com>
6089
6090 Finish the merge and tuplification of graphite.
6091
60922008-07-24 Sebastian Pop <sebastian.pop@amd.com>
6093 Jan Sjodin <jan.sjodin@amd.com>
6094
6095 Partial merge from mainline (138072:138275).
6096 * graphite.c still has to be tuplified.
6097
60982008-07-29 Jan Sjodin <jan.sjodin@amd.com>
6099
6100 * graphite.c (graphite_loops_mapping_max_loop_num): New.
6101 (create_num_from_index): New.
6102 (get_num_from_index): Also pass in the graphite BB.
6103 (free_graphite_bb): Free GBB_INDEX_TO_NUM_MAP.
6104 (build_graphite_bb): Initialize GBB_INDEX_TO_NUM_MAP.
6105 (graphite_trans_bb_strip_mine): Call create_num_from_index.
6106 (is_interchange_valid): Return false when failing.
6107 * graphite.h (struct num_map): New.
6108 (struct graphite_bb): New field num_map.
6109 (GBB_LOOPS_MAPPING): Renamed GBB_INDEX_TO_NUM_MAP.
6110
61112008-07-29 Tobias Grosser <grosser@fim.uni-passau.de>
6112
6113 * graphite.c (dump_gbb_conditions): Print also conditions like
6114 "if (a)". Remove dublicated code and use print_generic_expr ().
6115 (stmt_simple_for_scop_p): Only allow conditions we can handle
6116 {<, <=, >, >=}.
6117
61182008-07-25 Jan Sjodin <jan.sjodin@amd.com>
6119
6120 * graphite.h (struct scop): Removed new_ivs field.
6121 (SCOP_NEWIVS): Deleted.
6122 * graphite.c (new_scop, free_scop, clast_name_to_gcc,
6123 clast_to_gcc_expression, graphite_create_new_loop):
6124 Removed use of new_ivs.
6125
61262008-07-25 Jan Sjodin <jan.sjodin@amd.com>
6127
6128 * graphite.c (debug_oldivs, debug_loop_vec, create_loops_mapping,
6129 create_loops_mapping_num, debug_loop_mapping_1): New.
6130 (debug_loop_mapping): Call debug_loop_mapping_1.
6131 (get_loop_mapping_for_num,
6132 graphite_loops_mapping_add_child,
6133 graphite_loops_mapping_add_child_num,
6134 graphite_loops_mapping_insert_child,
6135 graphite_loops_mapping_parent,
6136 split_loop_mapped_depth_for_num,
6137 loop_mapped_depth_split_loop): New.
6138 (increment_loop_mapped_depths): Removed.
6139 (swap_loop_mapped_depth_for_num): Reimplemented.
6140 (new_scop): Call create_loops_mapping.
6141 (scop_record_loop): Call graphite_loops_mapping_insert_child.
6142 (translate_clast): Pass the old loop father in parameter, and pass
6143 it to get_old_iv_from_ssa_name.
6144 (remove_edges_around_useless_blocks, can_generate_code_stmt,
6145 can_generate_code, can_generate_for_scop): New.
6146 (graphite_trans_bb_block): Returns false when it fails to transform.
6147 * graphite.h (graphite_loop_node, graphite_loops_mapping): New.
6148
61492008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6150
6151 Reverted all the changes related to the streamization and
6152 loop fusion.
6153 These changes are now tracked in the streamization branch.
6154
61552008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6156 Jan Sjodin <jan.sjodin@amd.com>
6157
6158 * graphite.c (gbb_compare): Correctly constify.
6159 (gbb_can_be_ignored): Indent.
6160 (graphite_trans_scop_swap_1and2): Add legality check.
6161 Remove dead FIXMEs.
6162
61632008-07-25 Sebastian Pop <sebastian.pop@amd.com>
6164
6165 Remove fallouts from "Reverted the Condate changes".
6166 * tree.h: Remove unused decl.
45489e99 6167 * gcc.dg/tree-checker: Same.
2abae5f1
SP
6168 * timevar.def: Remove counter.
6169
61702008-07-24 Sebastian Pop <sebastian.pop@amd.com>
6171
6172 * Merge from mainline (135673:138072).
6173
6174 Reverted the MIRO changes (from 2008-04-05) that are now
6175 tracked in the miro branch.
6176 * tree-bounds.c: Removed.
6177 * tree-bounds.h: Removed.
6178
6179 Reverted the Condate changes (from 2006-07-04, 2007-03-20) that
6180 are now tracked in the condate branch.
6181 * tree-check.c: Removed.
6182 * tree-match.c: Removed.
6183 * condate.y: Removed.
6184
61852008-07-24 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6186
6187 * common.opt: New user flag -floop-block, -floop-strip-mine
6188 and -floop-interchange.
6189 * toplev.c (process_options): Enable -fgraphite pass if any one of the
6190 graphite loop optimization flags is turned on.
6191 * graphite.c (graphite_apply_transformations): Add flag_loop_block,
6192 flag_loop_strip_mine and flag_loop_interchange checks before
6193 optimizations.
6194 * doc/invoke.texi: Remove -fgraphite and add -floop-block,
6195 -floop-strip-mine and -floop-interchange.
45489e99 6196 * gcc.dg/graphite/block-0.c: Add -floop-block and remove
2abae5f1 6197 -fgraphite.
45489e99
SP
6198 * gcc.dg/graphite/scop-16.c: Ditto.
6199 * gcc.dg/graphite/scop-17.c: Ditto.
6200 * gcc.dg/graphite/scop-18.c: Ditto.
2abae5f1
SP
6201
62022008-07-23 Jan Sjodin <jan.sjodin@amd.com>
6203 Sebastian Pop <sebastian.pop@amd.com>
6204
6205 * cfgloopmanip.c (update_dominators_in_loop): Make it static.
6206 (create_empty_loop_on_edge): More fixes.
6207 * tree-phinodes.c (resize_phi_node): Extern.
6208 (unlink_phi_node, move_phi_node): New split from remove_phi_node.
6209 * cfghooks.c (update_dominator_information): New split from
6210 split_edge.
6211 * tree-vectorizer.c (rename_variables_in_bb): Extern.
6212 * tree-dfa.c (collect_dfa_stats): Start walking the CFG on the
6213 successor of the function entry block.
6214
6215 * graphite.c: Include pointer-set.h.
6216 (debug_loop_mapping, increment_loop_mapped_depths,
6217 get_loop_mapped_depth_for_num, get_loop_mapped_depth,
6218 set_loop_mapped_depth_for_num, set_loop_mapped_depth,
6219 swap_loop_mapped_depth_for_num, get_num_from_index,
6220 swap_loop_mapped_depth, loop_iv_stack_debug,
6221 loop_iv_stack_push, loop_iv_stack_pop, loop_iv_stack_get_iv,
6222 loop_iv_stack_get_iv_from_name, loop_iv_stack_debug,
6223 get_old_iv_from_ssa_name): New.
6224 (new_scop): Initialize SCOP_LOOPS_MAPPING.
6225 (free_scop): Free SCOP_LOOPS_MAPPING.
6226 (scop_record_loop): Record old ivs.
6227 (create_var_name): Removed.
6228 (initialize_cloog_names): Allocate double space in case strip mine
6229 applies to all loops once.
6230 (clast_name_to_gcc): Look up in the map ivstack passed in parameter.
6231 (clast_to_gcc_expression): Same. Implement more clast to gimple
6232 translation.
6233 (graphite_create_new_loop): Pass in ivstack.
6234 (remove_all_edges): Pass in the construction_edge.
6235 (graphite_remove_iv): Removed.
6236 (graphite_rename_ivs, graphite_rename_ivs_stmt,
6237 remove_cond_exprs): Rewritten.
6238 (move_phi_nodes): New.
6239 (disconnect_virtual_phi_nodes, disconnect_cond_expr): Removed.
6240 (translate_clast): Pass in ivstack. Rewrite some cases.
6241 (set_cloog_options, debug_clast_stmt): New.
6242 (find_transform): Use set_cloog_options.
6243 (outermost_loop_layer): Removed.
6244 (get_construction_edge, collect_virtual_phis, find_vdef_for_var_in_bb,
6245 find_vdef_for_var_1, find_vdef_for_var, patch_phis_for_virtual_defs,
6246 mark_old_loops, remove_dead_loops): New.
6247 (gloog): Rewritten.
6248 (graphite_trans_bb_move_loop): Call swap_loop_mapped_depth.
6249 (const_column_index, get_first_matching_sign_row_index,
6250 get_lower_bound_row, get_upper_bound_row, get_lower_bound,
6251 get_upper_bound): New.
6252 (graphite_trans_bb_strip_mine): Also update the iv map.
6253
6254 * graphite.h (graphite_loops_mapping, GBB_LOOPS_MAPPING): New.
6255 (struct name_tree): Add a loop field.
6256 (struct scop): Add a graphite_loops_mapping field.
6257 (SCOP_LOOPS_MAPPING): New.
6258 (debug_clast_stmt): Declare.
6259 * lambda.h (find_induction_var_from_exit_cond): Declare.
6260 (lambda-code.c): (find_induction_var_from_exit_cond): Extern.
6261 * cfgloop.h (update_dominators_in_loop): Removed declaration.
6262 (create_empty_loop_on_edge): Updated.
6263 * tree-flow.h (remove_bb, resize_phi_node, move_phi_node,
6264 rename_variables_in_bb): Declare.
6265 * tree-cfg.c (remove_bb): Extern.
6266
45489e99 6267 * gcc.dg/graphite/block-0.c: New.
2abae5f1
SP
6268
62692008-07-21 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
6270 Sebastian Pop <sebastian.pop@amd.com>
6271
6272 * graphite.c (strip_mine_profitable_p): New.
6273 (graphite_trans_bb_block): Disable strip mining if not profitable.
6274
45489e99
SP
6275 * gcc.dg/graphite/scop-18.c: New.
6276 * gcc.dg/graphite/scop-17.c: Fixed.
6277 * gcc.dg/graphite/scop-16.c: Fixed.
2abae5f1
SP
6278
62792008-07-17 Harsha Jagasia <harsha.jagasia@amd.com>
6280 Jan Sjodin <jan.sjodin@amd.com>
6281 Sebastian Pop <sebastian.pop@amd.com>
6282
6283 * graphite.c (is_interchange_valid): New.
6284 (graphite_trans_bb_block): Check loop nest of basic block for legality
6285 of interchange.
6286
6287 * graphite.h (gbb_inner_most_loop_index, outer_most_loop_1,
6288 outer_most_loop, gbb_outer_most_loop_index): New.
6289
6290 * tree-loop-linear.c (perfect_loop_nest_depth): Remove static.
6291 * tree-flow.h (perfect_loop_nest_depth): Declare as extern.
45489e99
SP
6292 * gcc.dg/graphite/scop-16.c: New.
6293 * gcc.dg/graphite/scop-17.c: New.
2abae5f1
SP
6294
62952008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
6296
6297 * graphite.c (scop_remove_ignoreable_gbbs): Also update bitmap.
6298 (graphite_trans_scop_block): Ignore SCoPs without bbs.
6299
63002008-07-11 Tobias Grosser <grosser@fim.uni-passau.de>
6301
6302 * graphite.c (new_scop): Initialize SCOP_EXIT.
6303 (scopdet_info): Add.
6304 (scopdet_bb_info): Rename from is_bb_addable. Cleanup, bugfixes.
6305 (build_scops_1): Cleanup, bugfixes.
6306 (build_scops): Cleanup.
6307
45489e99
SP
6308 * gcc.dg/graphite/scop-matmult.c: Remove duplicated code.
6309 * gcc.dg/graphite/scop-15.c: Add SCoP numbers.
2abae5f1
SP
6310
63112008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
6312
45489e99 6313 * gfortran.dg/graphite/scop-1.f: Update to reduced test case.
2abae5f1 6314
45489e99 6315 * gfortran.dg/graphite/graphite.exp: Use
2abae5f1
SP
6316 DEFAULT_GRAPHITE_FLAGS.
6317
45489e99 6318 * gcc.dg/graphite/scop-15.c: Update to reduced test case.
2abae5f1
SP
6319
63202008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
6321
6322 * graphite.c (scan_tree_for_params): Do not assert any more if
6323 MULT_EXPR parameter is negative.
6324
45489e99 6325 * gfortran.dg/graphite/scop-1.f: New.
2abae5f1 6326
45489e99 6327 * gfortran.dg/graphite/graphite.exp: New.
2abae5f1 6328
45489e99 6329 * gcc.dg/graphite/scop-15.c: New.
2abae5f1
SP
6330
63312008-07-10 Harsha Jagasia <harsha.jagasia@amd.com>
6332
6333 * graphite.c (is_bb_addable): Fix segfault in spec gzip and reformat.
6334
63352008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
6336
6337 * graphite.c (graphite_trans_bb_swap_loops): Rename from
6338 graphite_swap_loops.
6339 (graphite_trans_bb_move_loop): New.
6340 (graphite_trans_bb_strip_mine): Rename from graphite_strip_mine_loop.
6341 (graphite_trans_bb_block): New.
6342 (graphite_trans_loop_block): New.
6343 (graphite_trans_scop_swap_1and2): Rename from
6344 graphite_trans_swap_1and2.
6345 (graphite_trans_scop_strip): Rename from graphite_trans_strip.
6346 (graphite_trans_scop_block): New.
6347 (graphite_apply_transformations): Rename from
6348 graphite_transformations.
6349
45489e99 6350 * gcc.dg/graphite/scop-matmult.c: New.
2abae5f1
SP
6351
63522008-07-10 Tobias Grosser <grosser@fim.uni-passau.de>
6353
6354 * graphite.c (gbb_compare): New.
6355 (graphite_sort_gbbs): New.
6356 (gbb_can_be_ignored): New.
6357 (scop_remove_ignoreable_gbbs): New.
6358 (graphite_transformations): Cleanup and add
6359 scop_remove_ignoreable_gbbs.
6360 * lambda.h (lambda_vector_compare): New.
6361
63622008-07-09 Tobias Grosser <grosser@fim.uni-passau.de>
6363
6364 * graphite.c (print_graphite_bb): Correct printing of static schedule.
6365 (graphite_swap_loops): int -> unsigned
6366 (graphite_strip_mine_loop): int -> unsigned, Fix SCHEDULE
6367 (graphite_transformations): New.
6368 (graphite_transform_loops): Move to graphite_transformations.
6369 * graphite.h (gbb_nb_loops): Return unsigned.
6370
63712008-07-04 Tobias Grosser <grosser@fim.uni-passau.de>
6372
6373 * graphite.c (scan_tree_for_params): Fix insertion of parameters into
6374 the domain matrix. This makes scop-0.c work again.
6375
63762008-06-20 Richard Guenther <rguenther@suse.de>
6377
6378 * graphite.h: Adjust copyright to GPLv3.
6379 * graphite.c: Likewise.
6380 (stmt_simple_memref_for_scop_p): Split out from ...
6381 (stmt_simple_for_scop_p): ... here. Fix handling of calls
6382 and simplify.
6383 (get_bb_type): Optimize.
6384 (is_pred): Remove.
6385 (is_bb_addable): Fix memleak, replace is_pred call with
6386 single_pred.
6387 (build_scops): Use current_loops.
6388 (param_index): Fix memleak.
6389
63902008-06-20 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6391
6392 * graphite.c: Fix formatting.
6393
63942008-06-19 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6395
6396 * graphite.c (new_scop): Memory allocation for SCOP_{NEWIVS, OLDIVS}.
6397 (free_scop): Memory deallocation for SCOP_NEWIVS, SCOP_OLDIVS.
6398 (create_var_name, save_var_name): Newly defined functions.
6399 (initialize_cloog_names): Part of the code factored out to
6400 save_var_name.
6401 (clast_to_gcc_expression): Now handles the case of clast_red_sum
6402 in clast_reduction statement.
6403 (graphite_create_new_loop): Now takes a new parameter
6404 for outer_loop.
6405 (translate_clast): Now also takes the context_loop and bb_exit
6406 parameters. Rewritten the code so that it creates a gimple code
6407 inside the given context.
6408 (outermost_loop_layer, graphite_remove_iv, graphite_rename_ivs,
6409 remove_cond_expr, disconnect_cond_expr,
6410 disconnect_virtual_phi_nodes): Newly defined functions.
6411 * graphite.h (struct scop): added old_ivs vector.
6412 SCOP_OLDIVS: New macro.
6413
64142008-06-19 Sebastian Pop <sebastian.pop@amd.com>
6415
6416 * cfgloopmanip.c: Add missing function comments, fix formatting.
6417
64182008-06-18 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6419
6420 * cfgloopmanip.c (update_dominators_in_loop): Defined.
6421 (create_empty_loop_on_edge): Defined.
6422 * tree-parloops.c (canonicalize_loop_ivs): Returns tree
6423 instead of void.
6424 * cfgloop.h (create_empty_loop_on_edge): Declared as extern.
6425 (update_dominators_in_loop): Declared as extern
6426 * tree-flow.h (canonicalize_loop_ivs): Declared as extern.
6427
64282008-06-16 Tobias Grosser <grosser@fim.uni-passau.de>
6429
6430 * graphite.c (print_graphite_bb): Allow changing number of loops
6431 in SCoP domain.
6432 (initialize_cloog_names): Allow changing number of loops.
6433 (build_cloog_prog): Simplify.
6434 (find_transform): Enable cloog option --strides.
6435 (graphite_swap_loops): New.
6436 (graphite_strip_mine_loop): New.
6437 (graphite_trans_swap_1and2): New.
6438 (graphite_trans_strip): New.
6439 (graphite_transform_loops): Add graphite_trans_strip.
6440 * graphite.h (scop_max_loop_depth): New.
6441
64422008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
6443
6444 * graphite.c (build_scop_iteration_domain): Remove forgotten
6445 line. (Fixes compile)
6446
64472008-06-15 Tobias Grosser <grosser@fim.uni-passau.de>
6448
6449 * graphite.c (print_graphite_bb): Add output of GBB_LOOPS.
6450 (build_graphite_bb): Add GBB_LOOPS and GBB_DOMAIN and reorder.
6451 (build_bb_loops): New.
6452 (graphite_transform_loops): Add build_bb_loops.
6453 (schedule_to_scattering): Use gbb_nb_loops to support changing loop
6454 numbers.
6455 * graphite.h (graphite_bb): Add loops.
6456 (gbb_nb_loops): New.
6457 (gbb_loop_at_index): New.
6458 (gbb_loop_index): New.
6459 (nb_params_in_scop): Renamed to scop_nb_params. Updated all functions
6460 using nb_params_in_scop.
6461
64622008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
6463
6464 * graphite.c (print_graphite_bb): Adapt to minimized schedule.
6465 (build_scop_canonical_schedules): Build minimized schedule.
6466 (schedule_to_scattering): Adapt to minimized schedule.
6467 * graphite.h (graphite_bb): Add/Update descriptions.
6468
64692008-06-14 Adrien Eliche <aeliche@isty.uvsq.fr>
6470 Tobias Grosser <grosser@fim.uni-passau.de>
6471
6472 * graphite.c (print_graphite_bb): Add condition printing.
6473 (dump_value): New.
6474 (dump_gbb_conditions): New.
6475 (build_scop_conditions_1): New.
6476 (build_scop_conditions): New.
6477 * graphite.h (graphite_bb): Add conditions.
6478
64792008-06-14 Tobias Grosser <grosser@fim.uni-passau.de>
6480
6481 * graphite.c (print_graphite_bb):
6482 (free_graphite_bb): New.
6483 (free_scop): Free bbs.
6484 (get_bb_type): Free doms.
6485 (build_scop_context): Free context matrix.
6486 (build_loop_iteration_domains): Remove unused code.
6487 (build_cloog_prog): Free scattering function and blocklist.
6488 (find_transform): Free options.
6489
64902008-06-13 Tobias Grosser <grosser@fim.uni-passau.de>
6491
6492 * graphite.c (loop_body_to_cloog_stmts): Rename to add_bb_domains.
6493 Remove unnecessery cloog data structures. Make a copy of the domain
6494 (setup_cloog_loop): Rename to build_loop_iteration_domains. Remove
6495 unnecessary cloog data structures. Fix memory leaks. Remove insert
6496 into SCOP_LOOP2CLOOG_LOOP as the inserted CloogLoops will never be
6497 used.
6498 (build_scop_iteration_domain): Remove unnecessary cloog
6499 data structures. Fix memory leaks.
6500 (graphite_transform_loops): Disable build_scop_dynamic_schedules as it
6501 uses SCOP_LOOP2CLOOG_LOOP, that is at the moment not working.
6502
65032008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
6504
6505 * graphite.c (find_scop_params): Remove initialize_cloog_names.
6506
65072008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
6508
6509 * graphite.c (end_scop): Style fix.
6510 (schedule_to_scattering): Style and comment fix.
6511
65122008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
6513 * graphite.c (print_graphite_bb): Fix definiton of
6514 schedule_to_scattering.
6515 (initialize_cloog_names): Change nb_scattdims to max loop
6516 depth in SCoP.
6517 (schedule_to_scattering): Take parameter for number of scattering
6518 dimensions.
6519 (build_cloog_prog): Only build as much scattering dimensions as
6520 necessary.
6521
65222008-06-12 Tobias Grosser <grosser@fim.uni-passau.de>
6523
6524 * graphite.c (end_scop): Disable bb splitting. Fixes SIGSEGV
6525 in polyhedron/aermod.f90.
6526
65272008-06-11 Tobias Grosser <grosser@fim.uni-passau.de>
6528 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
6529 Harsha Jagasia <harsha.jagasia@amd.com>
6530
6531 * graphite.c (is_bb_addable): Fix segfault.
6532
65332008-06-10 Tobias Grosser <grosser@fim.uni-passau.de>
6534
6535 * graphite.c (is_bb_addable): Fix memory leak, handling of loops
6536 with multiple exits and conditional handling in edge cases.
6537 (is_loop_exit): Fix memory leak. (Forgotten in last commit)
6538
45489e99 6539 * gcc.dg/graphite/scop-14.c: New.
2abae5f1
SP
6540
65412008-06-06 Tobias Grosser <grosser@fim.uni-passau.de>
6542 Adrien Eliche <aeliche@isty.uvsq.fr>
6543
6544 * graphite.c (is_bb_addable): Add more comments and enhance
6545 readablity of the source code. Fix memory leak.
6546 (is_loop_exit): Fix memory leak.
6547
65482008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
6549
6550 * graphite.c (first_loop_in_scop): Deleted.
6551 (setup_cloog_loop): Only walk the loop chain for inner loops.
6552 (build_scop_iteration_domain): Execute setup_cloog_loop for
6553 all loops in the first layer.
6554
65552008-06-05 Tobias Grosser <grosser@fim.uni-passau.de>
6556
6557 * graphite.c (scan_tree_for_params): Change the way params are
6558 added to be indepenent of the number of loops.
6559 (setup_cloog_loop): Revert to short matrix format. Fix parameter
6560 handling.
6561 (build_cloog_prog): Revert to short matrix format.
6562
65632008-06-05 Sebastian Pop <sebastian.pop@amd.com>
6564 Dwarak Rajagopal <dwarak.rajagopal@amd.com>
6565
6566 * tree-loop-fusion.c (fuse_loops): Fix uninitialized variable
6567 warning.
6568
65692008-06-05 Sebastian Pop <sebastian.pop@amd.com>
6570
6571 * graphite.c (nb_data_refs_in_scop): New.
6572 (graphite_transform_loops): Print more stats: number of
6573 loops, basic blocks and data references per scop.
6574
65752008-06-04 Sebastian Pop <sebastian.pop@amd.com>
6576 Jan Sjodin <jan.sjodin@amd.com>
6577
6578 * graphite.c (loop_affine_expr, idx_record_params,
6579 find_scop_parameters, setup_cloog_loop): Use instantiate_scev
6580 instead of instantiate_parameters.
6581
65822008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
6583
6584 * graphite.c (schedule_to_scattering): Fix scattering dimensions,
6585 add support for parameters, add STATIC_SCHEDULE at the right places,
6586 cleanup.
6587
65882008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
6589
6590 * graphite.c (build_scop_loop_nests): Only add the loops, that
6591 are contained completely in the SCoP.
6592 (build_cloog_prog): Disable scattering, until schedule_to_scattering
6593 and the domains are fixed.
6594 (build_scop_canonical_schedules): Add support for bbs not contained
6595 in any SCoP.
6596
65972008-06-04 Tobias Grosser <grosser@fim.uni-passau.de>
6598
6599 * graphite.h (scop_contains_loop): Update comments to match
6600 the actual behavior.
6601 (scop_contains_loop): New.
6602 * graphite.c (schedule_to_scattering): Use scop_contains_loop.
6603
66042008-06-04 Sebastian Pop <sebastian.pop@amd.com>
6605
6606 * graphite.c (get_bb_type): On function body, i.e. loop_0,
6607 don't mark blocks as GBB_LOOP_SING_EXIT_HEADER, mark them
6608 as GBB_COND_HEADER.
6609
66102008-06-04 Sebastian Pop <sebastian.pop@amd.com>
6611 Tobias Grosser <grosser@fim.uni-passau.de>
6612
6613 * graphite.c (graphite_transform_loops): Early return when
6614 there are no loops in the function.
6615
66162008-05-31 Sebastian Pop <sebastian.pop@amd.com>
6617 Jan Sjodin <jan.sjodin@amd.com>
6618
6619 * graphite.c (scan_tree_for_params, setup_cloog_loop): Compute the
6620 offset of the last loop.
6621 (setup_cloog_loop): Copy the entire outer constraint matrix.
6622
66232008-05-31 Sebastian Pop <sebastian.pop@amd.com>
6624 Jan Sjodin <jan.sjodin@amd.com>
6625
6626 * graphite.c (stmt_in_scop_p, function_parameter_p,
6627 invariant_in_scop_p): Removed.
6628 (scan_tree_for_params): Can be used with no constraint
6629 matrix for gathering parameters.
6630 (idx_record_params): Don't use idx_record_param, instead use
6631 scan_tree_for_params.
6632 (find_scop_parameters): Same.
6633 (setup_cloog_loop, build_scop_iteration_domain, build_cloog_prog):
6634 Fix the size of loop domains.
6635 (schedule_to_scattering): Exit when the outer loop is not in scop.
6636 (find_transform): Enable build_cloog_prog.
6637
66382008-05-31 Sebastian Pop <sebastian.pop@amd.com>
6639 Jan Sjodin <jan.sjodin@amd.com>
6640
6641 * graphite.c (schedule_to_scattering): Make scattering domains
6642 uniformly of the same size, as required by CLooG 0.14.0 and before.
6643
66442008-05-31 Sebastian Pop <sebastian.pop@amd.com>
6645 Jan Sjodin <jan.sjodin@amd.com>
6646
6647 * graphite.c (schedule_to_scattering): Rewrite, correct the
6648 translation of the scheduling function to scattering.
6649 (build_cloog_prog): Call schedule_to_scattering only once.
6650 * graphite.h (scop_loop_index): Do not fail for loops not
6651 in the scop: return -1.
6652
66532008-05-30 Tobias Grosser <grosser@fim.uni-passau.de>
6654
6655 * graphite.c (build_graphite_bb): Initialize GBB_DOMAIN.
6656 (loop_body_to_cloog_stmts): Export GBB_DOMAIN.
6657 (setup_cloog_loop): Export GBB_DOMAIN.
6658 (build_cloog_prog): New. Create new CLOOG_PROG, which should be
6659 able to rebuild the original control flow.
6660 * graphite.h (graphite_bb): Add domain field and access macro.
6661 (GBB_DOMAIN): New.
6662
66632008-05-30 Sebastian Pop <sebastian.pop@amd.com>
6664
6665 * graphite.c (debug_gbb): New.
6666 (print_scop, build_graphite_bb): Use SCOP_BBS.
6667 (build_scop_bbs): Reimplemented.
6668 (dfs_bb_in_scop_p): Removed.
6669 (build_scop_loop_nests): Reorder loops inserted in
6670 SCOP_LOOP_NEST: outer loops should come first.
6671 (build_scop_canonical_schedules): Reinitialize at zero
6672 the components of the SCOP_STATIC_SCHEDULE for the loops
6673 that have already been parsed.
6674
6675 * graphite.h (debug_gbb): Declared.
6676
66772008-05-30 Sebastian Pop <sebastian.pop@amd.com>
6678 Jan Sjodin <jan.sjodin@amd.com>
6679
6680 * graphite.c (create_empty_loop): Renamed graphite_create_new_loop.
6681 (graphite_loop_to_gcc_loop): Removed.
6682 (remove_all_edges): New.
6683 (graphite_stmt_to_gcc_stmt): Renamed translate_clast.
6684 (gloog): Remove useless code.
6685
66862008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
6687
6688 * graphite.c (get_bb_type): Reworked. We distinguish between
6689 loops with one or multiple exits.
6690 (is_loop_exit): New.
6691 (is_pred): New.
6692 (is_bb_addable): Rework condition handling, now support for case
6693 case statements and loops with multiple exits.
6694
45489e99
SP
6695 * gcc.dg/graphite/scop-11.c: New.
6696 * gcc.dg/graphite/scop-12.c: New.
6697 * gcc.dg/graphite/scop-13.c: New.
2abae5f1
SP
6698
66992008-05-29 Tobias Grosser <grosser@fim.uni-passau.de>
6700
6701 * graphite.c (dot_all_scops_1): Fix some colors. Reuse colors, if
6702 we have too many colors.
6703
67042008-05-22 Sandeep Maram <smaram_b04@iiita.ac.in>
6705
6706 * doc/invoke.texi (-ftree-loop-fusion): Document.
6707 * tree-pass.h (pass_loop_fusion): Declared.
6708 * tree-loop-fusion.c: New.
6709 * timevar.def (TV_TREE_LOOP_FUSION): Declared.
6710 * tree-data-ref.c (find_data_references_in_loop): Make extern.
6711 * tree-data-ref.h (find_data_references_in_loop): Declared.
6712 * common.opt (ftree-loop-fusion): Declared.
6713 * Makefile.in (tree-loop-fusion.o): Added rule and to OBJS-common.
6714
67152008-05-21 Sebastian Pop <sebastian.pop@amd.com>
6716
6717 * graphite.c (build_access_matrix): Fix typo from the merge.
6718
67192008-05-20 Sebastian Pop <sebastian.pop@amd.com>
6720
6721 * Merge from mainline (130800:135673).
6722
67232008-05-07 Sebastian Pop <sebastian.pop@amd.com>
6724
6725 * graphite.c (end_scop): The exit of the scop is not part of the scop.
6726 Update dominators after splitting.
6727
67282008-05-07 Sebastian Pop <sebastian.pop@amd.com>
6729
6730 * graphite.c (is_bb_addable): Return the harmful statement.
6731 Factor up some code.
6732 (end_scop): New. Splits end of scope bbs on a harmful statement.
6733 (build_scops_1): Call end_scop.
6734
67352008-05-07 Sebastian Pop <sebastian.pop@amd.com>
6736
6737 * graphite.c: (succs_at_same_depth, end_scop, all_preds_visited_p,
6738 all_succs_visited_p, start_new_scop_for_each_succ, start_new_scop,
6739 add_dominators_to_open_scops, stop_last_open_scop, scop_end_loop,
6740 build_scops_1): Removed.
6741 (build_scops_2): Renamed build_scops_1.
6742
67432008-05-06 Sebastian Pop <sebastian.pop@amd.com>
6744
6745 * graphite.c: Fix formatting.
6746
67472008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
6748
6749 * graphite.c (get_bb_type): New.
6750 (move_scops): New.
6751 (build_scops_2): New.
6752 (is_bb_addable): New.
6753 (build_scops): Switch the scop detection.
6754 (build_scop_bbs): Add entry bb to scop.
6755 * graphite.h (struct scop): Update comment.
6756
67572008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
6758
6759 * graphite.c (dot_all_scops_1): Fix some incorrect colors and add
6760 more colors.
6761
67622008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
6763
45489e99
SP
6764 * gcc.dg/graphite/scop-1.c: Update.
6765 * gcc.dg/graphite/scop-2.c: Update.
6766 * gcc.dg/graphite/scop-4.c: Update.
6767 * gcc.dg/graphite/scop-5.c: Add.
6768 * gcc.dg/graphite/scop-6.c: Add.
2abae5f1
SP
6769
67702008-05-06 Sebastian Pop <sebastian.pop@amd.com>
6771
45489e99
SP
6772 * gcc.dg/graphite/scop-0.c: Add.
6773 * gcc.dg/graphite/scop-7.c: Add.
6774 * gcc.dg/graphite/scop-8.c: Add.
6775 * gcc.dg/graphite/scop-9.c: Add.
6776 * gcc.dg/graphite/scop-10.c: Add.
2abae5f1
SP
6777
67782008-05-06 Tobias Grosser <grosser@fim.uni-passau.de>
6779
6780 * graphite.c (scop_affine_expr): Renamed to loop_affine_expr.
6781 Check affine expressions depending on the outermost loop
6782 instead of a scop.
6783 (stmt_simple_for_scop_p): Same.
6784 (harmfule_stmt_in_scop): Same.
6785
67862008-04-28 Tobias Grosser <grosser@fim.uni-passau.de>
6787
6788 * graphite.c (dot_all_scops): Remove incorrect difficult bb coloring,
6789 mark entry and exit, that are not part of the SCoP and update HTML
6790 formatting.
6791
67922008-04-25 Sebastian Pop <sebastian.pop@amd.com>
6793
6794 * graphite.c (basic_block_simple_for_scop_p): Renamed
6795 harmful_stmt_in_bb.
6796 (save_scop, preds_at_same_depth, test_for_scop_bound): Removed.
6797 (add_dominators_to_open_scops, build_scops_1): Reimplemented.
6798 (all_preds_visited_p, all_succs_visited_p,
6799 start_new_scop_for_each_succ, start_new_scop, stop_last_open_scop,
6800 scop_end_loop): New.
6801 (build_scops): Do not use dfs_enumerate_from.
6802
45489e99 6803 * gcc.dg/graphite/scop-{1,2,4}.c: Updated.
2abae5f1
SP
6804
68052008-04-23 Sebastian Pop <sebastian.pop@amd.com>
6806
6807 * graphite.c: Add comments to functions that are missing a
6808 description.
6809 (graphite_create_iv): Removed. Merged in graphite_loop_to_gcc_loop.
6810
68112008-04-23 Sebastian Pop <sebastian.pop@amd.com>
6812
6813 * graphite.c (nb_params_in_scop): Moved...
6814 (graphite_bb_from_bb, loop_body_to_cloog_stmts): New.
6815 (setup_cloog_loop): Call loop_body_to_cloog_stmts.
6816 (clast_to_gcc_expression): Reduce column size to less than 80.
6817 (graphite_create_iv): Return the new name of the IV.
6818 (find_transform): Set options->esp and options->cpp.
6819 (gloog): Comment out the invalidation of the old loop code.
6820 (initialize_dependence_polyhedron): Replace scop_nb_params with
6821 nb_params_in_scop.
6822
6823 * graphite.h (nb_params_in_scop): ... here.
6824 (scop_nb_params): Removed.
6825 (loop_domain_dim): Return something even when the loop was not
6826 found in the hash table: avoid ICEing on all the graphite.exp
6827 testcases.
6828
68292008-04-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6830
6831 * tree-chrec.c (for_each_scev_op): SCEV can have 3 operands.
6832
6833 * graphite.c (build_scop_dynamic_schedules): Schedule is built
6834 according to nesting level.
6835 (find_scop_parameters): Call instantiate_parameters.
6836 (scan_tree_for_params): Extend it to handle general affine bounds.
6837 Inner loop bound can depend on outer loop induction variable.
6838 (setup_cloog_loop): tmp variable is allocated on stack. Call
6839 instantiate_parameters with respect to outermost_loop_in_scop.
6840 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): moved to
6841 graphite.h.
6842 (create_empty_loop): Function loopify should be given edge
6843 probability, instead of edge frequency. Dominance relation from
6844 switch_bb to loop_header.
6845 (clast_to_gcc_expression): Added handling of clast_reduction node.
6846 (gloog): New functionality for removing old loop.
6847 (test_dependence): Factored out from build_rdg_all_levels.
6848 (build_rdg_all_levels): Dependence testing factored out to
6849 test_dependence function.
6850
6851 * graphite.h (struct graphite_bb): Extended with dynamic_schedule.
6852 (loop_domain_dim, ref_nb_loops, loop_iteration_vector_dim): Moved
6853 from graphite.c
6854
68552008-04-07 Sebastian Pop <sebastian.pop@amd.com>
6856
6857 * graphite.c (free_scop, param_index, initialize_cloog_names,
6858 nb_params_in_scop): Use name_tree map instead of just a tree
6859 for keeping track of the variable name associated to that tree.
6860 (create_empty_loop, gmp_cst_to_tree, clast_name_to_gcc,
6861 clast_to_gcc_expression, graphite_create_iv,
6862 graphite_loop_to_gcc_loop, graphite_cond_to_gcc_cond,
6863 graphite_stmt_to_gcc_stmt): New.
6864 (gloog): Call these.
6865 * graphite.h (struct name_tree): New.
6866 (struct scop): Use name_tree instead of tree for params.
6867 Store a vector of name_tree for new_ivs.
6868 (SCOP_NEWIVS): New.
6869 (scop_nb_params): Use name_tree instead of tree.
6870
68712008-04-05 Alexander Lamaison <awl03@doc.ic.ac.uk>
6872 Sebastian Pop <sebastian.pop@amd.com>
6873
6874 * tree-bounds.c: New.
6875 * tree-bounds.h: New.
6876 * tree-pass.h: Declare pass_bounds_early and pass_bounds_late.
6877 * passes.c: Schedule pass_bounds_early, pass_bounds_late.
6878 * builtins.c (expand_builtin_alloca): Add flag_bounds as for
6879 flag_mudflap.
6880 * gcc.c: Same.
6881 * toplev.c: Same.
6882 * c-cppbuiltin.c: Same.
6883 * c-pragma.c: Same.
6884 * common.opt: Same.
6885 * varasm.c: Same.
6886 * tree-outof-ssa.c: Same.
6887 * c-common.c: Same.
6888 * Makefile.in: Same.
6889
68902008-03-15 Antoniu Pop <antoniu.pop@gmail.com>
6891 Sebastian Pop <sebastian.pop@amd.com>
6892
6893 * tree-loop-distribution.c (remaining_stmts,
6894 upstream_mem_writes): Removed static variables.
6895 (copy_loop_before, create_bb_after_loop,
6896 mark_nodes_having_upstream_mem_writes, free_rdg_components,
6897 rdg_build_components, rdg_build_partitions,
6898 dump_rdg_partitions): Extern.
6899 (generate_loops_for_partition, generate_code_for_partition): Do not
6900 return a bool.
6901 (already_processed_vertex_p, predecessor_has_mem_write,
6902 mark_nodes_having_upstream_mem_writes, has_upstream_mem_writes,
6903 rdg_flag_all_uses, rdg_flag_uses, rdg_flag_vertex_and_dependent,
6904 rdg_flag_loop_exits, rdg_flag_similar_memory_accesses,
6905 build_rdg_partition_for_component, rdg_build_partitions, ldist_gen):
6906 Pass remaining_stmts and upstream_mem_writes as parameters.
6907 (rdg_component): Moved...
6908 (build_rdg_partition_for_component): Do not aggregate components when
6909 flag_streamize_loops is set.
6910 (gen_sequential_loops): New.
6911 (ldist_gen): Call gen_sequential_loops.
6912
6913 * tree-pass.h (pass_loop_streamization): Declared.
6914
6915 * omp-low.c (expand_omp_sections): Call add_bb_to_loop on created
6916 basic blocks when loops structures exist.
6917
6918 * builtin-types.def (BT_FN_VOID_PTR_PTR_INT): New.
6919
6920 * tree-ssa-loop-ivopts.c (expr_invariant_in_region_p): New.
6921
6922 * tree-parloops.c (take_address_of, eliminate_local_variables_1,
6923 eliminate_local_variables_stmt, eliminate_local_variables,
6924 separate_decls_in_loop_name, separate_decls_in_loop_stmt,
6925 separate_decls_in_loop, gen_parallel_loop): Make them work on a region
6926 of code delimited by two edges in the CFG.
6927 (separate_decls_in_loop_name): Renamed separate_decls_in_region_name.
6928 (separate_decls_in_loop_stmt): Renamed separate_decls_in_region_stmt.
6929 (separate_decls_in_loop): Renamed separate_decls_in_region. Isolate
6930 the case of parallelisation of reductions.
6931 (create_loop_fn): Extern.
6932 (create_omp_parallel_region): New.
6933
6934 * tree-data-ref.c (dump_data_dependence_relation): Don't call
6935 dump_data_reference for printing dra and drb.
6936 (create_rdg_edge_for_ddr, create_rdg_edges_for_scalar): Initialise
6937 RDGE_RELATION.
6938 (build_rdg): Don't call free_dependence_relations for the moment, as
6939 we attach dependence relations on each edge of the RDG.
6940 To be fixed later.
6941
6942 * tree-data-ref.h (rdg_component): ...here.
6943 (struct rdg_edge): New field ddr_p relation.
6944 (RDGE_RELATION): New.
6945 (create_bb_after_loop, copy_loop_before,
6946 mark_nodes_having_upstream_mem_writes, rdg_build_components,
6947 rdg_build_partitions, dump_rdg_partitions,
6948 free_rdg_components): Declared.
6949
6950 * omp-builtins.def (BUILT_IN_GOMP_STREAM_ALIGN_PUSH,
6951 BUILT_IN_GOMP_STREAM_ALIGN_POP): New.
6952
6953 * tree-loop-streamization.c: New.
6954
6955 * tree-flow.h (gather_blocks_in_sese_region, create_loop_fn,
6956 create_omp_parallel_region, expr_invariant_in_region_p): Declared.
6957
6958 * Makefile.in (tree-loop-streamization.o): Added to OBJS-common.
6959
6960 * tree-cfg.c (gather_blocks_in_sese_region): Extern.
6961
6962 * passes.c: Schedule pass_loop_streamization.
6963
69642008-03-08 Tobias Grosser <grosser@fmi.uni-passau.de>
6965
6966 * graphite.c (dot_all_scops_1): Fix formatting for difficult bbs and
6967 update comment.
6968
69692008-03-07 Tobias Grosser <grosser@fim.uni-passau.de>
6970
6971 * graphite.c (dot_all_scops): Update formatting.
6972 Bbs can now be part of more than one SCoP.
6973
69742008-03-04 Sebastian Pop <sebastian.pop@amd.com>
6975
6976 * graphite.c (new_loop_to_cloog_loop_str, setup_cloog_loop): Fix
6977 malloc problems.
6978 (loop_domain_dim): Check for unregistered toplev SCOP loop.
6979 * graphite.h (loop_to_cloog_loop): New.
6980
69812008-03-04 Konrad Trifunovic <konrad.trifunovic@inria.fr>
6982
6983 * graphite.c (loop_domain_dim, ref_nb_loops,
6984 loop_iteration_vector_dim): New.
6985 (build_access_matrix_with_af, build_access_matrix,
6986 initialize_dependence_polyhedron): Fixed for new matrix layout.
6987 No longer assume that all iteration domains are of the same
6988 dimensionality.
6989
69902008-03-02 Sebastian Pop <sebastian.pop@amd.com>
6991
6992 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
6993 defined in a loop at depth 0 is invariant.
6994 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
6995 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
6996 be called at loop depth 0.
6997
6998 * graphite.c (basic_block_simple_for_scop_p): Take the scop as
6999 a parameter.
7000 (dot_all_scops_1): Update use of basic_block_simple_for_scop_p.
7001 (down_open_scop): Removed.
7002 (loop_in_scop_p): Redefined.
7003 (scop_affine_expr): New argument: scop.
7004 (stmt_simple_for_scop_p): New argument: scop. RETURN_EXPR is not
7005 a harmful statement ending a scop.
7006 (basic_block_simple_for_scop_p): New argument: scop.
7007 (get_loop_start): Removed.
7008 (new_scop): Initialize SCOP_LOOPS.
7009 (free_scop): Free SCOP_LOOPS.
7010 (succs_at_same_depth, preds_at_same_depth): New.
7011 (end_scop): Test the validity of a scop.
7012 (add_dominators_to_open_scops): New.
7013 (test_for_scop_bound): Call add_dominators_to_open_scops.
7014 Add cases for opening and closing multiple scops.
7015 (build_scops, build_scop_bbs): Iterate over basic blocks in
7016 depth first order.
7017 (build_graphite_bb): Pass scop directly.
7018 (dfs_bb_in_scop_p): New.
7019 (scop_record_loop): Use SCOP_LOOPS for not recording the same loop
7020 several times.
7021 (nb_loops_around_gb): Use loop_in_scop_p.
7022 (schedule_to_scattering): Disabled for the moment the code computing
7023 the "textual order for outer loop".
7024
7025 * graphite.h (struct scop): New field loops.
7026 (SCOP_LOOPS): New.
7027 (scop_loop_index): Test that the given loop belongs to SCOP_LOOPS.
7028
45489e99 7029 * gcc.dg/graphite/scop-{1,...,7}.c: Updated.
2abae5f1
SP
7030
70312008-02-27 Antoniu Pop <antoniu.pop@gmail.com>
7032 Sebastian Pop <sebastian.pop@amd.com>
7033
7034 * builtin-types.def (BT_FN_PTR_SIZE_UINT, BT_FN_BOOL_PTR): New.
7035 * common.opt (fstreamize-loops): New.
7036 * omp-builtins.def (BUILT_IN_GOMP_STREAM_CREATE,
7037 BUILT_IN_GOMP_STREAM_PUSH, BUILT_IN_GOMP_STREAM_HEAD,
7038 BUILT_IN_GOMP_STREAM_POP, BUILT_IN_GOMP_STREAM_EOS_P,
7039 BUILT_IN_GOMP_STREAM_SET_EOS, BUILT_IN_GOMP_STREAM_DESTROY): New.
7040
70412008-02-22 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7042
7043 * tree-data-ref.c (build_empty_rdg): New.
7044 (build_rdg): Use it.
7045 * tree-data-ref.h (build_empty_rdg): Declared.
7046 * graphite.c (free_scop): Free SCOP_LOOP2CLOOG_LOOP.
7047 (find_vertex_for_stmt): Removed.
7048 (build_rdg_all_levels): Use build_empty_rdg and rdg_vertex_for_stmt.
7049
70502008-02-21 Sebastian Pop <sebastian.pop@amd.com>
7051
7052 * tree-loop-distribution.c (generate_builtin): After cancelling the
7053 loop tree, also delete basic blocks.
7054 (rdg_flag_uses): Stop recursion when a vertex has already been
7055 processed.
7056
70572008-02-15 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7058
7059 * graphite.c (build_scop_alpha): Removed.
7060 (graphite_transform_loops): Add a dummy call to build_all_rdg_levels
7061 and dump_dependence_graph to avoid compiler warnings.
7062
70632008-02-14 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7064
7065 * tree-data-ref.c (dr_may_alias_p, create_rdg_vertices): Extern.
7066 * tree-data-ref.h (dr_may_alias_p, create_rdg_vertices): Declared.
7067 * graphite.c (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
7068 eq_loop_to_cloog_loop, del_loop_to_cloog_loop): New.
7069 (new_scop, setup_cloog_loop): Initialize SCOP_LOOP2CLOOG_LOOP.
7070 (initialize_dependence_polyhedron, find_vertex_for_stmt,
7071 initialize_data_dependence_polyhedron, is_empty_polyhedron,
7072 statement_precedes_p, build_rdg_all_levels, build_scop_alpha,
7073 dump_dependence_graph): New.
7074 * graphite.h (struct graphite_bb): New field compressed_alpha_matrix.
7075 (GBB_ALPHA): New.
7076 (struct scop): New field loop2cloog_loop.
7077 (SCOP_LOOP2CLOOG_LOOP, struct data_dependence_polyhedron,
7078 RDGE_DDP, ddp_p, struct loop_to_cloog_loop_str): New.
7079
70802008-02-10 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7081
7082 * graphite.c (build_graphite_bb): Fix initialization
7083 of the graphite basic block.
7084
70852008-02-05 Sebastian Pop <sebastian.pop@amd.com>
7086
7087 * graphite.c (scan_tree_for_params): Rewrite for the new layout of
7088 loop domain matrix. Pass in the number of loops contained in the
7089 constraint matrix.
7090 (nb_loops_around_gb): Moved before setup_cloog_loop that uses it.
7091 (setup_cloog_loop): Rewrite for the new layout of loop domain matrix:
7092 loops that are not surrounding the current loop are not represented
7093 in the domain constraint matrix.
7094 (build_scop_iteration_domain): Initial domain constraint matrix
7095 contains only the eq/ineq, cst, and scop parameters columns.
7096
70972008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7098
7099 * graphite.c (schedule_to_scattering, nb_loops_around_gb): New.
7100 (print_graphite_bb): Print scattering.
7101
71022008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7103
7104 * graphite.c (initialize_cloog_names): Initialize names of
7105 scattering variables.
7106
71072009-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7108
7109 * graphite.c (dot_all_scops_1): Disable debug output while
7110 printing graph.
7111
71122008-01-29 Tobias Grosser <grosser@fim.uni-passau.de>
7113
7114 * graphite.c (find_transform): Change cloog output language to C.
7115
71162008-01-27 Sebastian Pop <sebastian.pop@amd.com>
7117
7118 * tree-loop-distribution.c (generate_memset_zero,
7119 generate_builtin, generate_code_for_partition,
7120 rdg_flag_all_uses): New.
7121 (rdg_flag_uses): Gather in the same partition the statements defining
7122 the VUSES of the current statement.
7123 (rdg_flag_similar_stores): Renamed rdg_flag_similar_memory_accesses.
7124 Gather in the same partition not only the stores to the same memory
7125 access, but also the reads.
7126 (ldist_generate_loops): Renamed ldist_gen.
7127
71282008-01-24 Sebastian Pop <sebastian.pop@amd.com>
7129 Tobias Grosser <grosser@fmi.uni-passau.de>
7130
7131 * graphite.c (setup_cloog_loop): Chain all cloog loops with the
7132 next pointer, don't use the inner pointer.
7133
71342008-01-20 Tobias Grosser <grosser@fmi.uni-passau.de>
7135
7136 * graphite.c (dot_all_scops, dot_all_scops_1): New.
7137 (find_transform): Call dot_all_1.
7138 * graphite.h (dot_all_scops): Declared.
7139
71402007-12-14 Sebastian Pop <sebastian.pop@amd.com>
7141
7142 * tree-loop-distribution.c: Fix apsi.f ICE.
7143 (create_bb_after_loop): New.
7144 (generate_loops_for_partition): Use it.
45489e99 7145 * gfortran.dg/ldist-1.f90: New.
2abae5f1
SP
7146
7147 * tree-data-ref.c (dot_rdg): Use /tmp/rdg.dot for dotty format.
7148 * graphite.c (dot_scop): Use /tmp/scop.dot for dotty format.
7149
71502007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7151
7152 * graphite.c (find_transform): Dump cloog program sent to cloog.
7153
71542007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7155
7156 * graphite.c (initialize_cloog_names): Initialize cloog
7157 iterator names.
7158
71592007-12-13 Tobias Grosser <grosser@fmi.uni-passau.de>
7160
7161 * graphite.c (build_scop_context): Fix typo, for the matrix
7162 format: insert '0 >= 0' instead of '-1 >= 0'.
7163
71642007-12-13 Sebastian Pop <sebastian.pop@amd.com>
7165
7166 * Fix merge problems.
7167
71682007-12-13 Sebastian Pop <sebastian.pop@amd.com>
7169
7170 * graphite.c (setup_cloog_loop): Fix typo.
7171
71722007-12-12 Sebastian Pop <sebastian.pop@amd.com>
7173
7174 * doc/invoke.texi (-ftree-loop-distribution): Documented.
7175 * tree-loop-distribution.c: Reimplemented.
7176 * tree-pass.h (pass_loop_distribution): New.
7177 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Use
7178 print_loops.
7179 * graphds.h (struct graph): New field indexes.
7180 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7181
7182 * tree-vect-analyze.c: Remove declaration of static functions when not
7183 needed.
7184 * tree-vectorizer.c: Same.
7185 (rename_variables_in_loop): Now extern.
7186 (slpeel_tree_duplicate_loop_to_edge_cfg): Renamed
7187 tree_duplicate_loop_to_edge_cfg. Reset PENDING_STMT for edges after
7188 calling redirect_edge_and_branch_force.
7189
7190 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
7191
7192 * tree-data-ref.c: Don't include tree-chrec.h.
7193 (debug_data_dependence_relations): New.
7194 (dump_data_dependence_relation): Call dump_data_reference on data refs
7195 in the relation.
7196 (same_access_functions): Moved...
7197 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
7198 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7199 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
7200 struct rdg_vertex_info, ): New.
7201 (create_rdg_edge_for_ddr): Compute the dependence level before looking
7202 at DDR_REVERSED_P.
7203 (create_rdg_vertices): Initialize the htab of graph->indexes.
7204 Initialize RDG_MEM_WRITE_STMT and RDG_MEM_READS_STMT.
7205 (stmts_from_loop): Don't save LABEL_EXPR.
7206 (hash_stmt_vertex_info, eq_stmt_vertex_info,
7207 hash_stmt_vertex_del): New.
7208 (build_rdg): Initialize rdg->indexes.
7209 (free_rdg, stores_from_loop, ref_base_address,
7210 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
7211 have_similar_memory_accesses_1, ref_base_address_1,
7212 remove_similar_memory_refs): New.
7213
7214 * tree-data-ref.h: Include tree-chrec.h.
7215 (debug_data_dependence_relations): Declared.
7216 (same_access_functions): ...here. Now static inline.
7217 (ddr_is_anti_dependent, ddrs_have_anti_deps,
7218 ddr_dependence_level): New.
7219 (struct rdg_vertex): New fields has_mem_write, has_mem_reads.
7220 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT, RDG_MEM_WRITE_STMT,
7221 RDG_MEM_READS_STMT): New.
7222 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
7223 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
7224 rdg_vertex_for_stmt): Declared.
7225 (struct rdg_edge): New field level.
7226 (RDGE_LEVEL, free_rdg): New.
7227 (stores_from_loop, remove_similar_memory_refs,
7228 rdg_defs_used_in_other_loops_p,
7229 have_similar_memory_accesses): Declared.
7230 (rdg_has_similar_memory_accesses): New.
7231
7232 * lambda.h (dependence_level): New.
7233 * common.opt (ftree-loop-distribution): New.
7234 * tree-flow.h (debug_loop_ir): Renamed debug_loops.
7235 (print_loop_ir): Renamed print_loops.
7236 (debug_loop, debug_loop_num, print_loops_bb, mark_virtual_ops_in_bb,
7237 tree_duplicate_loop_to_edge_cfg, rename_variables_in_loop): Declared.
7238 * Makefile.in (TREE_DATA_REF_H): Depends on tree-chrec.h.
7239 (tree-loop-distribution.o): Added.
7240 * tree-cfg.c (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
7241 (mark_virtual_ops_in_bb): New.
7242 (print_loops_bb, debug_loop_num, debug_loop): New.
7243 * passes.c: Scheduled pass_loop_distribution.
7244
72452007-12-12 Konrad Trifunovic <konrad.trifunovic@inria.fr>
7246
7247 * graphite.c (scan_tree_for_params): Correct the number of columns
7248 for polylib format.
7249 (nb_flat_iterator): New.
7250 (setup_cloog_loop): Initialize to 1 the first column for inequalities.
7251 (build_scop_iteration_domain): Correct the number of columns for
7252 polylib format.
7253
72542007-12-12 Sebastian Pop <sebastian.pop@amd.com>
7255
7256 * Merge from mainline (129697:130800).
7257
72582007-10-30 Sebastian Pop <sebastian.pop@amd.com>
7259
7260 * graphite.c (build_graphite_bb): SCoP's basic blocks are post
7261 dominated by SCoP's exit.
7262 (graphite_transform_loops): Compute post dominators.
7263
72642007-10-28 Sebastian Pop <sebastian.pop@amd.com>
7265
7266 * Merge from mainline (127169:129697).
7267
72682007-10-28 Sebastian Pop <sebastian.pop@amd.com>
7269
7270 * graphite.c (affine_expr): Renamed scop_affine_expr. Use an extra
7271 parameter for the basic block that contains the expression. Use
7272 outermost_loop_in_scop for evolution_function_is_affine_multivariate_p.
7273 (stmt_simple_for_scop_p): Pass to scop_affine_expr the basic block of
7274 the expression.
7275 * graphite.h (gbb_loop): New.
7276 (GBB_LOOP): Removed.
7277
72782007-08-03 Sebastian Pop <sebpop@gmail.com>
7279
7280 * Makefile.in: Fix merge problem.
7281
72822007-08-03 Sebastian Pop <sebpop@gmail.com>
7283
7284 * Merge from mainline (125309:127169).
7285 * tree-loop-distribution.c: Disabled.
7286
72872007-06-05 Sebastian Pop <sebpop@gmail.com>
7288
7289 * Merge from mainline (r123693:125309).
7290
72912007-05-30 Sebastian Pop <sebpop@gmail.com>
7292
7293 * tree-loop-distribution.c (correct_modify_expr_p): Renamed
7294 correct_modify_p
7295 (correct_modify_p, check_statements, number_of_lvalue_uses,
7296 number_of_scalar_dependences, create_edges): Use GIMPLE_MODIFY_STMT
7297 instead of MODIFY_EXPR.
7298 (update_edge_with_ddv): Don't pass index_of_edge. Initialize
7299 and push new edges.
7300
73012007-05-24 Sebastian Pop <sebpop@gmail.com>
7302
7303 * tree-loop-distribution.c (struct rdg): Replace arrays by
7304 VECs for edges and vertices.
7305 (RDG_NBV, RDG_NBE, RDG_VERTEX, RDG_EDGE): Removed.
7306 (RDGV_NB_PARTITIONS): New.
7307 (PRDG_NBV, PRDG_NBE): Removed.
7308 (build_scc_graph, correct_partitions_p, mark_partitions, build_prdg,
7309 dump_rdg, find_vertex_with_stmt, create_vertices, free_rdg,
7310 number_of_scalar_dependences, create_edges, build_rdg): Use VECs.
7311
73122007-05-17 Georges-Andre Silber <silber@cri.ensmp.fr>
7313 Sebastian Pop <sebpop@gmail.com>
7314
7315 * doc/invoke.texi (-ftree-loop-distribution): Document.
7316 * tree-loop-distribution.c: New file.
7317 * tree-pass.h (pass_loop_distribution): Declared.
7318 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
7319 * tree-data-ref.c (initialize_data_dependence_relation): Initialize
7320 and set reversed_p.
7321 * tree-data-ref.h (data_dependence_relation): Add reversed_p.
7322 (DDR_REVERSED_P): New.
7323 * common.opt (-ftree-loop-distribution): New.
7324 * tree-flow.h (distribute_loops): Declared.
7325 * Makefile.in (OBJS-common): Depend on tree-loop-distribution.o.
7326 * passes.c (init_optimization_passes): Schedule loop distribution.
7327
73282007-05-12 Sebastian Pop <sebastian.pop@inria.fr>
7329
7330 * graphite.c (print_graphite_bb): Don't call dump_data_references.
7331 (print_scop): Don't print when scop is NULL.
7332 (build_scop_context, find_transform): Don't output to stderr.
7333
73342007-05-09 Sebastian Pop <sebastian.pop@inria.fr>
7335
7336 * tree-data-ref.c: Don't include graphite.h.
7337 Comment out the code for printing data reference's scop.
7338 (build_access_matrix_with_af): Moved...
7339 * tree-data-ref.h (build_access_matrix_with_af): Removed declaration.
7340 * graphite.c (build_access_matrix_with_af): ... here. Now static.
7341 (print_graphite_bb): Print basic block's schedule.
7342 (print_scop): Don't print the schedule, call cloog's pretty printer.
7343 (bb_in_scop_p): A basic block is in a scop only if it is both
7344 dominated and postdominated by the scop's entry and exit basic blocks.
7345 (function_parameter_p): New.
7346 (invariant_in_scop_p): Use function_parameter_p.
7347 (new_scop, save_scop): New.
7348 (end_scop, test_for_scop_bound, build_scops): Use new_scop, and
7349 save_scop.
7350 (scan_tree_for_params): Directly build the constraint as CloogMatrix.
7351 (loop_in_scop_p): New.
7352 (scop_record_loop): Use loop_in_scop_p.
7353 (build_scop_domain): Renamed build_scop_iteration_domain.
7354 (setup_cloog_loop, initialize_cloog_names, find_scop_parameters,
7355 nb_params_in_scop, build_scop_context, first_loop_in_scop,
7356 setup_cloog_loop, dot_scop_1, dot_scop): New.
7357 * graphite.h (GBB_LOOP, SCOP_PROG, dot_scop): New.
7358 (struct scop): Add a pointer to cloog's representation of a program.
7359
73602007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
7361
7362 * doc/invoke.texi (-ftree-check-verbose): Renamed
7363 -ftree-checks-verbose.
7364 * common.opt (flag_tree_check_verbose): Renamed
7365 flag_tree_checks_verbose.
7366 * tree-check.c (tree_check_warning): Use flag_tree_checks_verbose.
7367
73682007-04-14 Sebastian Pop <sebastian.pop@inria.fr>
7369
7370 * configure: Regenerated.
7371 * config.in: Regenerated.
7372 * tree-ssa-loop.c (graphite_transforms): Execute
7373 graphite_transform_loops only when HAVE_cloog.
7374 * configure.ac (HAVE_polylib, HAVE_cloog, GRAPHITE): Defined.
7375 * graphite.c: Include polylibgmp.h and cloog.h.
7376 (graphite_transform_loops): Removed loops parameter.
7377 * tree-flow.h (graphite_transform_loops): Update declaration.
7378 * Makefile.in (POLYLIBLIBS, POLYLIBINC, CLOOGLIBS, CLOOGINC): New.
7379 (LIBS): Depend on CLOOGLIBS and on POLYLIBLIBS.
7380 (INCLUDES): Depend on POLYLIBINC and on CLOOGINC.
7381 (OBJS-common): Remove dependence on graphite.o.
7382 (BACKEND): Depend on @GRAPHITE@.
7383
73842007-04-13 Sebastian Pop <sebastian.pop@inria.fr>
7385
7386 * doc/invoke.texi (-ftree-check-verbose): Documented.
45489e99
SP
7387 * gcc.dg/tree-checker/tree-checks-1.c: New.
7388 * gcc.dg/tree-checker/tree-checks-2.c: New.
7389 * gcc.dg/tree-checker/tree-checks-3.c: New.
7390 * gcc.dg/tree-checker/tree-checks-4.c: New.
7391 * gcc.dg/tree-checker/tree-checks.exp: New.
7392 * gcc.dg/tree-checker/condates.crp: New.
2abae5f1
SP
7393 * common.opt (ftree-checks-verbose): New.
7394 * tree-check.c (tree_check_warning): Move extra stderr output
7395 under control of flag_tree_check_verbose.
7396
73972007-04-12 Sebastian Pop <sebastian.pop@inria.fr>
7398
7399 * tree-match.c: Fix comments formatting.
7400 * tree-match.h: Fix comments formatting.
7401 * tree-check.c: Fix comments formatting.
7402 (tree_check_init): Restructure.
7403
74042007-04-12 Nic Volanschi <nic.volanschi@free.fr>
7405
7406 * doc/invoke.texi (-ftree-check, -ftree-checks): Documented.
7407
74082007-04-10 Sebastian Pop <sebastian.pop@inria.fr>
7409
7410 * Merge from mainline (r120733:123693).
7411
74122007-03-20 Nic Volanschi <nic.volanschi@free.fr>
7413
7414 * condate.y: New file.
7415 * tree-match.h (struct patt_info_s): New field sign.
7416 (struct condate_s): New field msg.
7417 (normalize_condate, name_condate, add_condate): New.
7418 (conds[], condate_parse): Made extern.
7419 * tree-check.c (tree_check_warning): First arg changed to cond;
7420 warning reformatted.
7421 (tree_check_init): Reset the TREE_VISITED bit on every CFG node.
7422 (tree_scan): New.
7423 (tree_check): Process trivial condates.
7424 (read_delimited_string): Removed.
7425 (print_cond): Print name and msg.
7426 (conds[]): Made extern.
7427 (parse_tree_check_file_once): Rewritten to use the parser in
7428 condate.y.
7429 Processing of option --tree_check_string moved to tree_scan().
7430 * Makefile.in: Added condate.y
7431
74322007-03-12 Sebastian Pop <sebastian.pop@inria.fr>
7433
7434 * tree-pretty-print.c (dump_generic_bb_buff, lazy_dump_generic_node):
7435 Use VECs instead of varrays.
7436 * diagnostic.h (lazy_dump_generic_node): Update declaration.
7437 * Makefile.in (pretty-print.o): Depend on vec.h.
7438 * pretty-print.c: Include tree.h and vec.h.
7439 (pp_clear_state, pp_write_list_to_stream, pp_base_format,
7440 pp_base_format, pp_construct, pp_base_string, pp_lazy_mode,
7441 new_tree_chunk, pp_add_tree, pp_add_string, pp_add_char, pp_write_list,
7442 pp_free_list): Use VECs instead of varrays.
7443 * pretty-print.h: Do not include varray.h.
7444 (struct tree_chunk_s): Declaration moved before its use.
7445 (output_buffer): Rename varray field to chunks.
7446 * tree-match.c (tree_equal, chunk_1st_char, chunks_lookahead,
7447 tree_1st_char, match_chunks_pattinfo, match_tree_pattinfo,
7448 save_global_holes): Use VECs instead of varrays.
7449 * tree-match.h: Declare VECs of cfg_node, and hole_p.
7450 * tree-check.c (scan_cfg_stmts, push_node,
7451 print_matching_stmt): Removed.
7452 (tree_check_instance, push_global_holes_if_new, tree_check,
7453 execute_tree_check): Use VECs instead of varrays.
7454 (gate_tree_check): Don't execute the CFG check when basic_block_info
7455 is not available.
7456
74572007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
7458
7459 * Merge from mainline (r115016:120733).
7460
74612007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
7462
7463 * Merge from mainline (r117632:117661).
7464
74652007-01-12 Sebastian Pop <sebastian.pop@inria.fr>
7466
7467 * tree-dump.c (dump_option_value_in): Add TDF_DEBUG.
7468 * tree-pass.h (TDF_DEBUG, debug_p): New.
7469 * tree-scalar-evolution.c (set_scalar_evolution, get_scalar_evolution,
7470 get_scalar_evolution, add_to_evolution, set_nb_iterations_in_loop,
7471 get_loop_exit_condition, analyze_evolution_in_loop,
7472 analyze_initial_condition, analyze_scalar_evolution,
7473 instantiate_parameters, number_of_latch_executions): Use debug_p.
7474 * tree-chrec.c (chrec_apply): Use debug_p.
7475 * tree-data-ref.c: Include graphite.h.
7476 (dump_data_reference): Print also the access matrix.
7477 (analyze_array, analyze_indirect_ref, init_data_ref,
7478 analyze_offset_expr, address_analysis, object_analysis,
7479 create_data_ref, finalize_ddr_dependent,
7480 non_affine_dependence_relation, analyze_ziv_subscript,
7481 analyze_siv_subscript_cst_affine,
7482 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
7483 can_use_analyze_subscript_affine_affine, analyze_siv_subscript,
7484 analyze_miv_subscript, analyze_overlapping_iterations,
7485 build_classic_dist_vector, subscript_dependence_tester,
7486 compute_affine_dependence, analyze_all_data_dependences): Use debug_p.
7487 (build_access_matrix_with_af): No longer static.
7488 * tree-data-ref.h (scop_p): ... declaration here.
7489 (data_reference.scop): New field.
7490 (DR_SCOP, DR_ACCESS_MATRIX): New.
7491 (build_access_matrix_with_af, dr_num_subscripts): Declared.
7492 * graphite.c (print_graphite_bb): Call dump_data_references.
7493 (print_scop): Use scop_nb_loops and scop_dim_domain.
7494 (test_for_scop_bound): Use debug_p.
7495 (scan_tree_for_params): Use scop_nb_loops, scop_nb_loops and
7496 scop_nb_params.
7497 (scop_loop_index): Moved...
7498 (scop_record_loop): New.
7499 (build_scop_loop_nests): Use scop_record_loop.
7500 (build_scop_domain): Use scop_dim_domain.
7501 (build_access_matrix): Implemented.
7502 (build_scop_canonical_schedules): Use scop_nb_loops.
7503 (build_graphite_bb): Initialize GBB_SCOP.
7504 * graphite.h (scop_p): Moved...
7505 (graphite_bb.scop): New field.
7506 (graphite_bb.iteration_domain, GBB_DOMAIN, scop.nb_params,
7507 scop.nb_loops, scop.dim_domain, SCOP_NB_LOOPS, SCOP_NB_PARAMS,
7508 SCOP_DIM_DOMAIN, SCOP_STMTS): Removed.
7509 (scop_nb_params, scop_nb_loops, scop_dim_domain, gbb_dim_domain,
7510 scop_loop_index): New.
7511 * Makefile.in (tree-data-ref.o): Depends on graphite.h.
7512
75132007-01-05 Sebastian Pop <sebastian.pop@inria.fr>
7514
7515 * Merge from mainline (r117661:120450).
7516
75172006-10-12 Sebastian Pop <sebastian.pop@inria.fr>
7518
7519 * tree-scalar-evolution.c (instantiate_parameters_1): Don't stop
7520 at the first declaration outside the varying loop, instantiate as
7521 far as possible.
7522 * tree-chrec.c (for_each_scev_op): New.
7523 * tree-chrec.h (for_each_scev_op): Declared.
7524 * tree-ssa-loop.c (pass_graphite_trans): Don't dump the function.
7525 * tree-data-ref.c (get_references_in_stmt,
7526 find_data_references_in_stmt): New, from trunk.
7527 (find_data_references_in_loop): Use get_references_in_stmt
7528 and find_data_references_in_loop, modified as in trunk.
7529 (build_access_matrix_with_af): New.
7530 * tree-data-ref.h (data_reference): Add a field access_matrix.
7531 (data_ref_loc): New, as in trunk.
7532 * graphite.c (print_graphite_bb, bb_in_scop_p, stmt_in_scop_p,
7533 invariant_in_scop_p, param_index, scan_tree_for_params,
7534 scop_loop_index, build_scop_loop_nests, build_scop_domain, irp_data,
7535 idx_record_param, idx_record_params, build_access_matrix,
7536 build_scop_data_accesses, build_scop_canonical_schedules,
7537 build_graphite_bb, build_scop_bbs, find_params_in_bb,
7538 build_scop_params): New.
7539 * graphite.h (graphite_bb): New.
7540 (scop): Add fields static_schedule, params, loop_nest,
7541 iteration_domain.
7542 * lambda.h: Declare vecs of lambda_matrix.
7543 * tree-flow.h (print_loop_ir_bb): Declared.
7544 * tree-cfg.c (print_loop_ir_bb): New.
7545 (print_loop): Use print_loop_ir_bb.
7546
75472006-10-12 Sebastian Pop <pop@cri.ensmp.fr>
7548
7549 * Merge from mainline (r115016:117632).
7550
75512006-10-11 Sebastian Pop <pop@cri.ensmp.fr>
7552
7553 * graphite.c (debug_scops): Adjust definition for avoiding a bootstrap
7554 break due to a warning.
7555
75562006-10-10 Sebastian Pop <pop@cri.ensmp.fr>
7557
7558 * graphite.c (print_scops, debug_scops): New.
7559 (graphite_transform): Renamed graphite_find_transform.
7560 * graphite.h (debug_scops): Declared.
7561
75622006-08-17 Sebastian Pop <pop@cri.ensmp.fr>
7563
7564 * tree-match.c: Reformat following the GNU style.
7565 * tree-match.h: Reformat following the GNU style.
7566 * tree-pattern.h: Removed empty file.
7567 * Makefile.in: Remove references to tree-pattern.h.
7568 * tree-check.c: Reformat following the GNU style.
7569 (execute_tree_check): Move gate condition code to...
7570 (gate_tree_check): ...here. New function.
7571 (pass_check): Use the gate function.
7572
75732006-07-04 Nic Volanschi <nic.volanschi@free.fr>
7574
7575 * tree-pattern.h: New. Tree pattern matching and checking using
7576 concrete syntax.
7577 * tree-check.c: New. Tree/CFG checking pass.
7578 * tree-match.c: New. Library for tree pattern matching.
7579 * opts.c, common.opt: Add options --ftree-check & --ftree-checks.
7580 * toplev.c, flags.h: Add globals for tree-check pass.
7581 * Makefile.in: Integrate the files in tree-check pass.
7582 * timevar.def, tree-optimize.c, tree-pass.h: Register tree-check pass.
7583 * pretty-print.c, pretty-print.h, tree-pretty-print.c, diagnostic.h:
7584 Introduce a "lazy" pretty-print mode.
7585 * tree.c, tree.h: Add tree_name.
7586
75872006-07-04 Sebastian Pop <pop@cri.ensmp.fr>
7588
7589 * doc/invoke.texi (-fgraphite): Correct typo.
7590 * tree-scalar-evolution.c (number_of_iterations_for_all_loops): Update
7591 use of print_loop_ir.
45489e99
SP
7592 * gcc.dg/graphite/scop-1.c: New.
7593 * gcc.dg/graphite/scop-2.c: New.
7594 * gcc.dg/graphite/graphite.exp: New.
2abae5f1
SP
7595 * graphite.c: Include domwalk.h.
7596 (print_scop): Print only the entry and exit blocks.
7597 (debug_scop): No longer static.
7598 (affine_expr): Fix formating. Return also true when the expression is
7599 constant.
7600 (stmt_simple_for_scop_p): Fix formating.
7601 (build_scops): Use domwalk.
7602 (get_loop_start, end_scop, test_for_scop_bound): New.
7603 (graphite_transform_loops): Avoid printing on stderr.
7604 * graphite.h (debug_scop): Declared.
7605 * tree-flow.h (debug_loop_ir, print_loop_ir): Update declarations.
7606 * Makefile.in (graphite.o): Depend on domwalk.h.
7607 * tree-cfg.c (print_loop, print_pred_bbs, print_succ_bbs): Remove
7608 declarations for static functions.
7609 (print_loop, print_loop_ir, debug_loop_ir): Use an extra parameter for
7610 controlling output verbosity.
7611
76122006-06-26 Sebastian Pop <pop@cri.ensmp.fr>
7613 Plesco Alexandru <shurikx@gmail.com>
7614
7615 * doc/invoke.texi (-fgraphite): Document.
7616 * tree-pass.h (pass_graphite_transforms): Declared.
7617 * timevar.def (TV_GRAPHITE_TRANSFORMS): New.
7618 * tree-ssa-loop.c (graphite_transforms, gate_graphite_transforms): New.
7619 (pass_graphite_transforms): Defined.
7620 * tree-data-ref.c (free_data_ref, data_reference): Extern.
7621 * tree-data-ref.h (free_data_ref, data_reference): Declared.
7622 * graphite.c, graphite.h: New.
7623 * common.opt (fgraphite): Declared.
7624 * tree-flow.h (graphite_transform_loops): Declared.
7625 * Makefile.in (OBJS-common): Add graphite.o.
7626 (graphite.o): New rule.
7627 * passes.c (pass_graphite_transforms): Scheduled.
7628