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