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