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