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